@articles-media/articles-dev-box 1.0.5 → 1.0.7

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.
@@ -0,0 +1,6 @@
1
+ "use strict";const jn=require("./jsx-runtime-nZSsnGb7.cjs"),x=require("react");function Bn(e){const{href:t,children:n,newPage:r,...s}=e;return jn.jsxRuntimeExports.jsx("a",{href:t,...s,...r&&{target:"_blank",rel:"noopener noreferrer"},children:n})}function Zt(e,t){return function(){return e.apply(t,arguments)}}const{toString:qn}=Object.prototype,{getPrototypeOf:ht}=Object,{iterator:je,toStringTag:en}=Symbol,Be=(e=>t=>{const n=qn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),X=e=>(e=e.toLowerCase(),t=>Be(t)===e),qe=e=>t=>typeof t===e,{isArray:we}=Array,Ee=qe("undefined");function Oe(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tn=X("ArrayBuffer");function Mn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tn(e.buffer),t}const Hn=qe("string"),q=qe("function"),nn=qe("number"),Te=e=>e!==null&&typeof e=="object",Vn=e=>e===!0||e===!1,ve=e=>{if(Be(e)!=="object")return!1;const t=ht(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(en in e)&&!(je in e)},$n=e=>{if(!Te(e)||Oe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Wn=X("Date"),zn=X("File"),Jn=X("Blob"),Kn=X("FileList"),Gn=e=>Te(e)&&q(e.pipe),Xn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=Be(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},Yn=X("URLSearchParams"),[Qn,Zn,er,tr]=["ReadableStream","Request","Response","Headers"].map(X),nr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),we(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Oe(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function rn(e,t){if(Oe(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sn=e=>!Ee(e)&&e!==fe;function nt(){const{caseless:e,skipUndefined:t}=sn(this)&&this||{},n={},r=(s,i)=>{const o=e&&rn(n,i)||i;ve(n[o])&&ve(s)?n[o]=nt(n[o],s):ve(s)?n[o]=nt({},s):we(s)?n[o]=s.slice():(!t||!Ee(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Ae(arguments[s],r);return n}const rr=(e,t,n,{allOwnKeys:r}={})=>(Ae(t,(s,i)=>{n&&q(s)?e[i]=Zt(s,n):e[i]=s},{allOwnKeys:r}),e),sr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),or=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ir=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&ht(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ar=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cr=e=>{if(!e)return null;if(we(e))return e;let t=e.length;if(!nn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ur=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ht(Uint8Array)),lr=(e,t)=>{const r=(e&&e[je]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},fr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dr=X("HTMLFormElement"),pr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),_t=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hr=X("RegExp"),on=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ae(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},mr=e=>{on(e,(t,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(q(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yr=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return we(e)?r(e):r(String(e).split(t)),n},Er=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Sr(e){return!!(e&&q(e.append)&&e[en]==="FormData"&&e[je])}const br=e=>{const t=new Array(10),n=(r,s)=>{if(Te(r)){if(t.indexOf(r)>=0)return;if(Oe(r))return r;if(!("toJSON"in r)){t[s]=r;const i=we(r)?[]:{};return Ae(r,(o,a)=>{const d=n(o,s+1);!Ee(d)&&(i[a]=d)}),t[s]=void 0,i}}return r};return n(e,0)},gr=X("AsyncFunction"),Rr=e=>e&&(Te(e)||q(e))&&q(e.then)&&q(e.catch),an=((e,t)=>e?setImmediate:t?((n,r)=>(fe.addEventListener("message",({source:s,data:i})=>{s===fe&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),fe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(fe.postMessage)),Or=typeof queueMicrotask<"u"?queueMicrotask.bind(fe):typeof process<"u"&&process.nextTick||an,Tr=e=>e!=null&&q(e[je]),c={isArray:we,isArrayBuffer:tn,isBuffer:Oe,isFormData:Xn,isArrayBufferView:Mn,isString:Hn,isNumber:nn,isBoolean:Vn,isObject:Te,isPlainObject:ve,isEmptyObject:$n,isReadableStream:Qn,isRequest:Zn,isResponse:er,isHeaders:tr,isUndefined:Ee,isDate:Wn,isFile:zn,isBlob:Jn,isRegExp:hr,isFunction:q,isStream:Gn,isURLSearchParams:Yn,isTypedArray:ur,isFileList:Kn,forEach:Ae,merge:nt,extend:rr,trim:nr,stripBOM:sr,inherits:or,toFlatObject:ir,kindOf:Be,kindOfTest:X,endsWith:ar,toArray:cr,forEachEntry:lr,matchAll:fr,isHTMLForm:dr,hasOwnProperty:_t,hasOwnProp:_t,reduceDescriptors:on,freezeMethods:mr,toObjectSet:yr,toCamelCase:pr,noop:Er,toFiniteNumber:wr,findKey:rn,global:fe,isContextDefined:sn,isSpecCompliantForm:Sr,toJSONObject:br,isAsyncFn:gr,isThenable:Rr,setImmediate:an,asap:Or,isIterable:Tr};function S(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}c.inherits(S,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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const cn=S.prototype,un={};["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=>{un[e]={value:e}});Object.defineProperties(S,un);Object.defineProperty(cn,"isAxiosError",{value:!0});S.from=(e,t,n,r,s,i)=>{const o=Object.create(cn);c.toFlatObject(e,o,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const a=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return S.call(o,a,d,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Ar=null;function rt(e){return c.isPlainObject(e)||c.isArray(e)}function ln(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ct(e,t,n){return e?e.concat(t).map(function(s,i){return s=ln(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function _r(e){return c.isArray(e)&&!e.some(rt)}const Cr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Me(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!c.isUndefined(h[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(c.isDate(u))return u.toISOString();if(c.isBoolean(u))return u.toString();if(!d&&c.isBlob(u))throw new S("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(u)||c.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,h){let b=u;if(u&&!h&&typeof u=="object"){if(c.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(c.isArray(u)&&_r(u)||(c.isFileList(u)||c.endsWith(m,"[]"))&&(b=c.toArray(u)))return m=ln(m),b.forEach(function(A,D){!(c.isUndefined(A)||A===null)&&t.append(o===!0?Ct([m],D,i):o===null?m:m+"[]",f(A))}),!1}return rt(u)?!0:(t.append(Ct(h,m,i),f(u)),!1)}const p=[],y=Object.assign(Cr,{defaultVisitor:l,convertValue:f,isVisitable:rt});function E(u,m){if(!c.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),c.forEach(u,function(b,w){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(w)?w.trim():w,m,y))===!0&&E(b,m?m.concat(w):[w])}),p.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return E(e),t}function xt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function mt(e,t){this._pairs=[],e&&Me(e,this,t)}const fn=mt.prototype;fn.append=function(t,n){this._pairs.push([t,n])};fn.toString=function(t){const n=t?function(r){return t.call(this,r,xt)}:xt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function xr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dn(e,t,n){if(!t)return e;const r=n&&n.encode||xr;c.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=c.isURLSearchParams(t)?t.toString():new mt(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Dt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const pn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dr=typeof URLSearchParams<"u"?URLSearchParams:mt,Lr=typeof FormData<"u"?FormData:null,Nr=typeof Blob<"u"?Blob:null,Fr={isBrowser:!0,classes:{URLSearchParams:Dr,FormData:Lr,Blob:Nr},protocols:["http","https","file","blob","url","data"]},yt=typeof window<"u"&&typeof document<"u",st=typeof navigator=="object"&&navigator||void 0,Pr=yt&&(!st||["ReactNative","NativeScript","NS"].indexOf(st.product)<0),vr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ur=yt&&window.location.href||"http://localhost",Ir=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yt,hasStandardBrowserEnv:Pr,hasStandardBrowserWebWorkerEnv:vr,navigator:st,origin:Ur},Symbol.toStringTag,{value:"Module"})),k={...Ir,...Fr};function kr(e,t){return Me(e,new k.classes.URLSearchParams,{visitor:function(n,r,s,i){return k.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function jr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Br(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function hn(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),d=i>=n.length;return o=!o&&c.isArray(s)?s.length:o,d?(c.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&c.isArray(s[o])&&(s[o]=Br(s[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(jr(r),s,n,0)}),n}return null}function qr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _e={transitional:pn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(hn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return kr(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Me(a?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),qr(t)):t}],transformResponse:[function(t){const n=this.transitional||_e.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?S.from(a,S.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});const Mr=c.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"]),Hr=e=>{const t={};let n,r,s;return e&&e.split(`
2
+ `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Mr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Lt=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function Ue(e){return e===!1||e==null?e:c.isArray(e)?e.map(Ue):String(e)}function Vr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $r=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function We(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Wr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let M=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,d,f){const l=Re(d);if(!l)throw new Error("header name must be a non-empty string");const p=c.findKey(s,l);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||d]=Ue(a))}const o=(a,d)=>c.forEach(a,(f,l)=>i(f,l,d));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(c.isString(t)&&(t=t.trim())&&!$r(t))o(Hr(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},d,f;for(const l of t){if(!c.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[f=l[0]]=(d=a[f])?c.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Re(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Vr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Re(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||We(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Re(o),o){const a=c.findKey(r,o);a&&(!n||We(r,r[a],a,n))&&(delete r[a],s=!0)}}return c.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||We(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,i)=>{const o=c.findKey(r,i);if(o){n[o]=Ue(s),delete n[i];return}const a=t?Wr(i):String(i).trim();a!==i&&delete n[i],n[a]=Ue(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Lt]=this[Lt]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Re(o);r[a]||(zr(s,o),r[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(M.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(M);function ze(e,t){const n=this||_e,r=t||n,s=M.from(r.headers);let i=r.data;return c.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function mn(e){return!!(e&&e.__CANCEL__)}function Se(e,t,n){S.call(this,e??"canceled",S.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(Se,S,{__CANCEL__:!0});function yn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new S("Request failed with status code "+n.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Jr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[i];o||(o=f),n[s]=d,r[s]=f;let p=i,y=0;for(;p!==s;)y+=n[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const E=l&&f-l;return E?Math.round(y*1e3/E):void 0}}function Gr(e,t){let n=0,r=1e3/t,s,i;const o=(f,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),p=l-n;p>=r?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-p)))},()=>s&&o(s)]}const ke=(e,t,n=3)=>{let r=0;const s=Kr(50,250);return Gr(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,d=o-r,f=s(d),l=o<=a;r=o;const p={loaded:o,total:a,progress:a?o/a:void 0,bytes:d,rate:f||void 0,estimated:f&&a&&l?(a-o)/f:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Nt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ft=e=>(...t)=>c.asap(()=>e(...t)),Xr=k.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,k.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(k.origin),k.navigator&&/(msie|trident)/i.test(k.navigator.userAgent)):()=>!0,Yr=k.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Qr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function En(e,t,n){let r=!Qr(t);return e&&(r||n==!1)?Zr(e,t):t}const Pt=e=>e instanceof M?{...e}:e;function pe(e,t){t=t||{};const n={};function r(f,l,p,y){return c.isPlainObject(f)&&c.isPlainObject(l)?c.merge.call({caseless:y},f,l):c.isPlainObject(l)?c.merge({},l):c.isArray(l)?l.slice():l}function s(f,l,p,y){if(c.isUndefined(l)){if(!c.isUndefined(f))return r(void 0,f,p,y)}else return r(f,l,p,y)}function i(f,l){if(!c.isUndefined(l))return r(void 0,l)}function o(f,l){if(c.isUndefined(l)){if(!c.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function a(f,l,p){if(p in t)return r(f,l);if(p in e)return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,l,p)=>s(Pt(f),Pt(l),p,!0)};return c.forEach(Object.keys({...e,...t}),function(l){const p=d[l]||s,y=p(e[l],t[l],l);c.isUndefined(y)&&p!==a||(n[l]=y)}),n}const wn=e=>{const t=pe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=M.from(o),t.url=dn(En(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(n)){if(k.hasStandardBrowserEnv||k.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,p])=>{f.includes(l.toLowerCase())&&o.set(l,p)})}}if(k.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&Xr(t.url))){const d=s&&i&&Yr.read(i);d&&o.set(s,d)}return t},es=typeof XMLHttpRequest<"u",ts=es&&function(e){return new Promise(function(n,r){const s=wn(e);let i=s.data;const o=M.from(s.headers).normalize();let{responseType:a,onUploadProgress:d,onDownloadProgress:f}=s,l,p,y,E,u;function m(){E&&E(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function b(){if(!h)return;const A=M.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:A,config:e,request:h};yn(function(_){n(_),m()},function(_){r(_),m()},R),h=null}"onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(b)},h.onabort=function(){h&&(r(new S("Request aborted",S.ECONNABORTED,e,h)),h=null)},h.onerror=function(D){const R=D&&D.message?D.message:"Network Error",v=new S(R,S.ERR_NETWORK,e,h);v.event=D||null,r(v),h=null},h.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||pn;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new S(D,R.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&c.forEach(o.toJSON(),function(D,R){h.setRequestHeader(R,D)}),c.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),a&&a!=="json"&&(h.responseType=s.responseType),f&&([y,u]=ke(f,!0),h.addEventListener("progress",y)),d&&h.upload&&([p,E]=ke(d),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(l=A=>{h&&(r(!A||A.type?new Se(null,e,h):A),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const w=Jr(s.url);if(w&&k.protocols.indexOf(w)===-1){r(new S("Unsupported protocol "+w+":",S.ERR_BAD_REQUEST,e));return}h.send(i||null)})},ns=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,a();const l=f instanceof Error?f:this.reason;r.abort(l instanceof S?l:new Se(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new S(`timeout ${t} of ms exceeded`,S.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>c.asap(a),d}},rs=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},ss=async function*(e,t){for await(const n of os(e))yield*rs(n,t)},os=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vt=(e,t,n,r)=>{const s=ss(e,t);let i=0,o,a=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){a(),d.close();return}let p=l.byteLength;if(n){let y=i+=p;n(y)}d.enqueue(new Uint8Array(l))}catch(f){throw a(f),f}},cancel(d){return a(d),s.return()}},{highWaterMark:2})},Ut=64*1024,{isFunction:Le}=c,is=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:It,TextEncoder:kt}=c.global,jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},as=e=>{e=c.merge.call({skipUndefined:!0},is,e);const{fetch:t,Request:n,Response:r}=e,s=t?Le(t):typeof fetch=="function",i=Le(n),o=Le(r);if(!s)return!1;const a=s&&Le(It),d=s&&(typeof kt=="function"?(u=>m=>u.encode(m))(new kt):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=i&&a&&jt(()=>{let u=!1;const m=new n(k.origin,{body:new It,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=o&&a&&jt(()=>c.isReadableStream(new r("").body)),p={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!p[u]&&(p[u]=(m,h)=>{let b=m&&m[u];if(b)return b.call(m);throw new S(`Response type '${u}' is not supported`,S.ERR_NOT_SUPPORT,h)})});const y=async u=>{if(u==null)return 0;if(c.isBlob(u))return u.size;if(c.isSpecCompliantForm(u))return(await new n(k.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(c.isArrayBufferView(u)||c.isArrayBuffer(u))return u.byteLength;if(c.isURLSearchParams(u)&&(u=u+""),c.isString(u))return(await d(u)).byteLength},E=async(u,m)=>{const h=c.toFiniteNumber(u.getContentLength());return h??y(m)};return async u=>{let{url:m,method:h,data:b,signal:w,cancelToken:A,timeout:D,onDownloadProgress:R,onUploadProgress:v,responseType:_,headers:Y,withCredentials:O="same-origin",fetchOptions:te}=wn(u),H=t||fetch;_=_?(_+"").toLowerCase():"text";let z=ns([w,A&&A.toAbortSignal()],D),V=null;const P=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let ne;try{if(v&&f&&h!=="get"&&h!=="head"&&(ne=await E(Y,b))!==0){let Q=new n(m,{method:"POST",body:b,duplex:"half"}),$;if(c.isFormData(b)&&($=Q.headers.get("content-type"))&&Y.setContentType($),Q.body){const[K,se]=Nt(ne,ke(Ft(v)));b=vt(Q.body,Ut,K,se)}}c.isString(O)||(O=O?"include":"omit");const j=i&&"credentials"in n.prototype,be={...te,signal:z,method:h.toUpperCase(),headers:Y.normalize().toJSON(),body:b,duplex:"half",credentials:j?O:void 0};V=i&&new n(m,be);let J=await(i?H(V,te):H(m,be));const re=l&&(_==="stream"||_==="response");if(l&&(R||re&&P)){const Q={};["status","statusText","headers"].forEach(he=>{Q[he]=J[he]});const $=c.toFiniteNumber(J.headers.get("content-length")),[K,se]=R&&Nt($,ke(Ft(R),!0))||[];J=new r(vt(J.body,Ut,K,()=>{se&&se(),P&&P()}),Q)}_=_||"text";let xe=await p[c.findKey(p,_)||"text"](J,u);return!re&&P&&P(),await new Promise((Q,$)=>{yn(Q,$,{data:xe,headers:M.from(J.headers),status:J.status,statusText:J.statusText,config:u,request:V})})}catch(j){throw P&&P(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,u,V),{cause:j.cause||j}):S.from(j,j&&j.code,u,V)}}},cs=new Map,Sn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,a=o,d,f,l=cs;for(;a--;)d=i[a],f=l.get(d),f===void 0&&l.set(d,f=a?new Map:as(t)),l=f;return f};Sn();const Et={http:Ar,xhr:ts,fetch:{get:Sn}};c.forEach(Et,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bt=e=>`- ${e}`,us=e=>c.isFunction(e)||e===null||e===!1;function ls(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let a;if(s=r,!us(r)&&(s=Et[(a=String(r)).toLowerCase()],s===void 0))throw new S(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
4
+ `+o.map(Bt).join(`
5
+ `):" "+Bt(o[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const bn={getAdapter:ls,adapters:Et};function Je(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function qt(e){return Je(e),e.headers=M.from(e.headers),e.data=ze.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bn.getAdapter(e.adapter||_e.adapter,e)(e).then(function(r){return Je(e),r.data=ze.call(e,e.transformResponse,r),r.headers=M.from(r.headers),r},function(r){return mn(r)||(Je(e),r&&r.response&&(r.response.data=ze.call(e,e.transformResponse,r.response),r.response.headers=M.from(r.response.headers))),Promise.reject(r)})}const gn="1.13.2",He={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{He[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mt={};He.transitional=function(t,n,r){function s(i,o){return"[Axios v"+gn+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new S(s(o," has been removed"+(n?" in "+n:"")),S.ERR_DEPRECATED);return n&&!Mt[o]&&(Mt[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};He.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function fs(e,t,n){if(typeof e!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],d=a===void 0||o(a,i,e);if(d!==!0)throw new S("option "+i+" must be "+d,S.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new S("Unknown option "+i,S.ERR_BAD_OPTION)}}const Ie={assertOptions:fs,validators:He},Z=Ie.validators;let de=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dt,response:new Dt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Ie.assertOptions(r,{silentJSONParsing:Z.transitional(Z.boolean),forcedJSONParsing:Z.transitional(Z.boolean),clarifyTimeoutError:Z.transitional(Z.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Ie.assertOptions(s,{encode:Z.function,serialize:Z.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ie.assertOptions(n,{baseUrl:Z.spelling("baseURL"),withXsrfToken:Z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&c.merge(i.common,i[n.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=M.concat(o,i);const a=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,p=0,y;if(!d){const u=[qt.bind(this),void 0];for(u.unshift(...a),u.push(...f),y=u.length,l=Promise.resolve(n);p<y;)l=l.then(u[p++],u[p++]);return l}y=a.length;let E=n;for(;p<y;){const u=a[p++],m=a[p++];try{E=u(E)}catch(h){m.call(this,h);break}}try{l=qt.call(this,E)}catch(u){return Promise.reject(u)}for(p=0,y=f.length;p<y;)l=l.then(f[p++],f[p++]);return l}getUri(t){t=pe(this.defaults,t);const n=En(t.baseURL,t.url,t.allowAbsoluteUrls);return dn(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){de.prototype[t]=function(n,r){return this.request(pe(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request(pe(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}de.prototype[t]=n(),de.prototype[t+"Form"]=n(!0)});let ds=class Rn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new Se(i,o,a),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rn(function(s){t=s}),cancel:t}}};function ps(e){return function(n){return e.apply(null,n)}}function hs(e){return c.isObject(e)&&e.isAxiosError===!0}const ot={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ot).forEach(([e,t])=>{ot[t]=e});function On(e){const t=new de(e),n=Zt(de.prototype.request,t);return c.extend(n,de.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return On(pe(e,s))},n}const N=On(_e);N.Axios=de;N.CanceledError=Se;N.CancelToken=ds;N.isCancel=mn;N.VERSION=gn;N.toFormData=Me;N.AxiosError=S;N.Cancel=N.CanceledError;N.all=function(t){return Promise.all(t)};N.spread=ps;N.isAxiosError=hs;N.mergeConfig=pe;N.AxiosHeaders=M;N.formToJSON=e=>hn(c.isHTMLForm(e)?new FormData(e):e);N.getAdapter=bn.getAdapter;N.HttpStatusCode=ot;N.default=N;const{Axios:to,AxiosError:no,CanceledError:ro,isCancel:so,CancelToken:oo,VERSION:io,all:ao,Cancel:co,isAxiosError:uo,spread:lo,toFormData:fo,AxiosHeaders:po,HttpStatusCode:ho,formToJSON:mo,getAdapter:yo,mergeConfig:Eo}=N;var Ne={exports:{}},Ke={};var Ht;function ms(){if(Ht)return Ke;Ht=1;var e=x;function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(p,y){var E=y(),u=r({inst:{value:E,getSnapshot:y}}),m=u[0].inst,h=u[1];return i(function(){m.value=E,m.getSnapshot=y,d(m)&&h({inst:m})},[p,E,y]),s(function(){return d(m)&&h({inst:m}),p(function(){d(m)&&h({inst:m})})},[p]),o(E),E}function d(p){var y=p.getSnapshot;p=p.value;try{var E=y();return!n(p,E)}catch{return!0}}function f(p,y){return y()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:a;return Ke.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,Ke}var Ge={};var Vt;function ys(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&(function(){function e(E,u){return E===u&&(E!==0||1/E===1/u)||E!==E&&u!==u}function t(E,u){l||s.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=u();if(!p){var h=u();i(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}h=o({inst:{value:m,getSnapshot:u}});var b=h[0].inst,w=h[1];return d(function(){b.value=m,b.getSnapshot=u,n(b)&&w({inst:b})},[E,m,u]),a(function(){return n(b)&&w({inst:b}),E(function(){n(b)&&w({inst:b})})},[E]),f(m),m}function n(E){var u=E.getSnapshot;E=E.value;try{var m=u();return!i(E,m)}catch{return!0}}function r(E,u){return u()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=x,i=typeof Object.is=="function"?Object.is:e,o=s.useState,a=s.useEffect,d=s.useLayoutEffect,f=s.useDebugValue,l=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Ge.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ge}var $t;function Es(){return $t||($t=1,process.env.NODE_ENV==="production"?Ne.exports=ms():Ne.exports=ys()),Ne.exports}var Wt=Es();const Tn=0,An=1,_n=2,zt=3;var Jt=Object.prototype.hasOwnProperty;function it(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&it(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Jt.call(e,n)&&++r&&!Jt.call(t,n)||!(n in t)||!it(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const ae=new WeakMap,ce=()=>{},I=ce(),at=Object,g=e=>e===I,ee=e=>typeof e=="function",ue=(e,t)=>({...e,...t}),Cn=e=>ee(e.then),Xe={},Fe={},wt="undefined",Ce=typeof window!=wt,ct=typeof document!=wt,ws=Ce&&"Deno"in window,Ss=()=>Ce&&typeof window.requestAnimationFrame!=wt,xn=(e,t)=>{const n=ae.get(e);return[()=>!g(t)&&e.get(t)||Xe,r=>{if(!g(t)){const s=e.get(t);t in Fe||(Fe[t]=s),n[5](t,ue(s,r),s||Xe)}},n[6],()=>!g(t)&&t in Fe?Fe[t]:!g(t)&&e.get(t)||Xe]};let ut=!0;const bs=()=>ut,[lt,ft]=Ce&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ce,ce],gs=()=>{const e=ct&&document.visibilityState;return g(e)||e!=="hidden"},Rs=e=>(ct&&document.addEventListener("visibilitychange",e),lt("focus",e),()=>{ct&&document.removeEventListener("visibilitychange",e),ft("focus",e)}),Os=e=>{const t=()=>{ut=!0,e()},n=()=>{ut=!1};return lt("online",t),lt("offline",n),()=>{ft("online",t),ft("offline",n)}},Ts={isOnline:bs,isVisible:gs},As={initFocus:Rs,initReconnect:Os},Kt=!x.useId,ye=!Ce||ws,_s=e=>Ss()?window.requestAnimationFrame(e):setTimeout(e,1),Ye=ye?x.useEffect:x.useLayoutEffect,Qe=typeof navigator<"u"&&navigator.connection,Gt=!ye&&Qe&&(["slow-2g","2g"].includes(Qe.effectiveType)||Qe.saveData),Pe=new WeakMap,Cs=e=>at.prototype.toString.call(e),Ze=(e,t)=>e===`[object ${t}]`;let xs=0;const dt=e=>{const t=typeof e,n=Cs(e),r=Ze(n,"Date"),s=Ze(n,"RegExp"),i=Ze(n,"Object");let o,a;if(at(e)===e&&!r&&!s){if(o=Pe.get(e),o)return o;if(o=++xs+"~",Pe.set(e,o),Array.isArray(e)){for(o="@",a=0;a<e.length;a++)o+=dt(e[a])+",";Pe.set(e,o)}if(i){o="#";const d=at.keys(e).sort();for(;!g(a=d.pop());)g(e[a])||(o+=a+":"+dt(e[a])+",");Pe.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},St=e=>{if(ee(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?dt(e):"",[e,t]};let Ds=0;const pt=()=>++Ds;async function Dn(...e){const[t,n,r,s]=e,i=ue({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=i.populateCache;const a=i.rollbackOnError;let d=i.optimisticData;const f=y=>typeof a=="function"?a(y):a!==!1,l=i.throwOnError;if(ee(n)){const y=n,E=[],u=t.keys();for(const m of u)!/^\$(inf|sub)\$/.test(m)&&y(t.get(m)._k)&&E.push(m);return Promise.all(E.map(p))}return p(n);async function p(y){const[E]=St(y);if(!E)return;const[u,m]=xn(t,E),[h,b,w,A]=ae.get(t),D=()=>{const P=h[E];return(ee(i.revalidate)?i.revalidate(u().data,y):i.revalidate!==!1)&&(delete w[E],delete A[E],P&&P[0])?P[0](_n).then(()=>u().data):u().data};if(e.length<3)return D();let R=r,v,_=!1;const Y=pt();b[E]=[Y,0];const O=!g(d),te=u(),H=te.data,z=te._c,V=g(z)?H:z;if(O&&(d=ee(d)?d(V,H):d,m({data:d,_c:V})),ee(R))try{R=R(V)}catch(P){v=P,_=!0}if(R&&Cn(R))if(R=await R.catch(P=>{v=P,_=!0}),Y!==b[E][0]){if(_)throw v;return R}else _&&O&&f(v)&&(o=!0,m({data:V,_c:I}));if(o&&!_)if(ee(o)){const P=o(R,V);m({data:P,error:I,_c:I})}else m({data:R,error:I,_c:I});if(b[E][1]=pt(),Promise.resolve(D()).then(()=>{m({_c:I})}),_){if(l)throw v;return}return R}}const Xt=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Ls=(e,t)=>{if(!ae.has(e)){const n=ue(As,t),r=Object.create(null),s=Dn.bind(I,e);let i=ce;const o=Object.create(null),a=(l,p)=>{const y=o[l]||[];return o[l]=y,y.push(p),()=>y.splice(y.indexOf(p),1)},d=(l,p,y)=>{e.set(l,p);const E=o[l];if(E)for(const u of E)u(p,y)},f=()=>{if(!ae.has(e)&&(ae.set(e,[r,Object.create(null),Object.create(null),Object.create(null),s,d,a]),!ye)){const l=n.initFocus(setTimeout.bind(I,Xt.bind(I,r,Tn))),p=n.initReconnect(setTimeout.bind(I,Xt.bind(I,r,An)));i=()=>{l&&l(),p&&p(),ae.delete(e)}}};return f(),[e,s,f,i]}return[e,ae.get(e)[4]]},Ns=(e,t,n,r,s)=>{const i=n.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!g(i)&&o>i||setTimeout(r,a,s)},Fs=it,[Ln,Ps]=Ls(new Map),vs=ue({onLoadingSlow:ce,onSuccess:ce,onError:ce,onErrorRetry:Ns,onDiscarded:ce,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Gt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Gt?5e3:3e3,compare:Fs,isPaused:()=>!1,cache:Ln,mutate:Ps,fallback:{}},Ts),Us=(e,t)=>{const n=ue(e,t);if(t){const{use:r,fallback:s}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),s&&o&&(n.fallback=ue(s,o))}return n},Is=x.createContext({}),ks="$inf$",Nn=Ce&&window.__SWR_DEVTOOLS_USE__,js=Nn?window.__SWR_DEVTOOLS_USE__:[],Bs=()=>{Nn&&(window.__SWR_DEVTOOLS_REACT__=x)},Fn=e=>ee(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],qs=()=>{const e=x.useContext(Is);return x.useMemo(()=>ue(vs,e),[e])},Ms=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=St(t),[,,,a]=ae.get(Ln);if(o.startsWith(ks))return n(...i);const d=a[o];return g(d)?n(...i):(delete a[o],d)}),r),Hs=js.concat(Ms),Vs=e=>function(...n){const r=qs(),[s,i,o]=Fn(n),a=Us(r,o);let d=e;const{use:f}=a,l=(f||[]).concat(Hs);for(let p=l.length;p--;)d=l[p](d);return d(s,i||a.fetcher||null,a)},$s=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s>=0&&(r[s]=r[r.length-1],r.pop())}},Ws=(e,t)=>(...n)=>{const[r,s,i]=Fn(n),o=(i.use||[]).concat(t);return e(r,s,{...i,use:o})};Bs();const et=x.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),tt={dedupe:!0},Yt=Promise.resolve(I),zs=(e,t,n)=>{const{cache:r,compare:s,suspense:i,fallbackData:o,revalidateOnMount:a,revalidateIfStale:d,refreshInterval:f,refreshWhenHidden:l,refreshWhenOffline:p,keepPreviousData:y,strictServerPrefetchWarning:E}=n,[u,m,h,b]=ae.get(r),[w,A]=St(e),D=x.useRef(!1),R=x.useRef(!1),v=x.useRef(w),_=x.useRef(t),Y=x.useRef(n),O=()=>Y.current,te=()=>O().isVisible()&&O().isOnline(),[H,z,V,P]=xn(r,w),ne=x.useRef({}).current,j=g(o)?g(n.fallback)?I:n.fallback[w]:o,be=(T,C)=>{for(const F in ne){const L=F;if(L==="data"){if(!s(T[L],C[L])&&(!g(T[L])||!s(De,C[L])))return!1}else if(C[L]!==T[L])return!1}return!0},J=x.useMemo(()=>{const T=!w||!t?!1:g(a)?O().isPaused()||i?!1:d!==!1:a,C=B=>{const oe=ue(B);return delete oe._k,T?{isValidating:!0,isLoading:!0,...oe}:oe},F=H(),L=P(),G=C(F),me=F===L?G:C(L);let U=G;return[()=>{const B=C(H());return be(B,U)?(U.data=B.data,U.isLoading=B.isLoading,U.isValidating=B.isValidating,U.error=B.error,U):(U=B,B)},()=>me]},[r,w]),re=Wt.useSyncExternalStore(x.useCallback(T=>V(w,(C,F)=>{be(F,C)||T()}),[r,w]),J[0],J[1]),xe=!D.current,Q=u[w]&&u[w].length>0,$=re.data,K=g($)?j&&Cn(j)?et(j):j:$,se=re.error,he=x.useRef(K),De=y?g($)?g(he.current)?K:he.current:$:K,le=w&&g(K),vn=!ye&&Wt.useSyncExternalStore(()=>ce,()=>!1,()=>!0);E&&vn&&!i&&le&&console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const bt=Q&&!g(se)?!1:xe&&!g(a)?a:O().isPaused()?!1:i?g(K)?!1:d:g(K)||d,gt=!!(w&&t&&xe&&bt),Un=g(re.isValidating)?gt:re.isValidating,In=g(re.isLoading)?gt:re.isLoading,ge=x.useCallback(async T=>{const C=_.current;if(!w||!C||R.current||O().isPaused())return!1;let F,L,G=!0;const me=T||{},U=!h[w]||!me.dedupe,B=()=>Kt?!R.current&&w===v.current&&D.current:w===v.current,oe={isValidating:!1,isLoading:!1},Ot=()=>{z(oe)},Tt=()=>{const W=h[w];W&&W[1]===L&&delete h[w]},At={isValidating:!0};g(H().data)&&(At.isLoading=!0);try{if(U&&(z(At),n.loadingTimeout&&g(H().data)&&setTimeout(()=>{G&&B()&&O().onLoadingSlow(w,n)},n.loadingTimeout),h[w]=[C(A),pt()]),[F,L]=h[w],F=await F,U&&setTimeout(Tt,n.dedupingInterval),!h[w]||h[w][1]!==L)return U&&B()&&O().onDiscarded(w),!1;oe.error=I;const W=m[w];if(!g(W)&&(L<=W[0]||L<=W[1]||W[1]===0))return Ot(),U&&B()&&O().onDiscarded(w),!1;const ie=H().data;oe.data=s(ie,F)?ie:F,U&&B()&&O().onSuccess(F,w,n)}catch(W){Tt();const ie=O(),{shouldRetryOnError:Ve}=ie;ie.isPaused()||(oe.error=W,U&&B()&&(ie.onError(W,w,ie),(Ve===!0||ee(Ve)&&Ve(W))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||te())&&ie.onErrorRetry(W,w,ie,kn=>{const $e=u[w];$e&&$e[0]&&$e[0](zt,kn)},{retryCount:(me.retryCount||0)+1,dedupe:!0})))}return G=!1,Ot(),!0},[w,r]),Rt=x.useCallback((...T)=>Dn(r,v.current,...T),[]);if(Ye(()=>{_.current=t,Y.current=n,g($)||(he.current=$)}),Ye(()=>{if(!w)return;const T=ge.bind(I,tt);let C=0;O().revalidateOnFocus&&(C=Date.now()+O().focusThrottleInterval);const L=$s(w,u,(G,me={})=>{if(G==Tn){const U=Date.now();O().revalidateOnFocus&&U>C&&te()&&(C=U+O().focusThrottleInterval,T())}else if(G==An)O().revalidateOnReconnect&&te()&&T();else{if(G==_n)return ge();if(G==zt)return ge(me)}});return R.current=!1,v.current=w,D.current=!0,z({_k:A}),bt&&(h[w]||(g(K)||ye?T():_s(T))),()=>{R.current=!0,L()}},[w]),Ye(()=>{let T;function C(){const L=ee(f)?f(H().data):f;L&&T!==-1&&(T=setTimeout(F,L))}function F(){!H().error&&(l||O().isVisible())&&(p||O().isOnline())?ge(tt).then(C):C()}return C(),()=>{T&&(clearTimeout(T),T=-1)}},[f,l,p,w]),x.useDebugValue(De),i){if(!Kt&&ye&&le)throw new Error("Fallback data is required when using Suspense in SSR.");le&&(_.current=t,Y.current=n,R.current=!1);const T=b[w],C=!g(T)&&le?Rt(T):Yt;if(et(C),!g(se)&&le)throw se;const F=le?ge(tt):Yt;!g(De)&&le&&(F.status="fulfilled",F.value=!0),et(F)}return{mutate:Rt,get data(){return ne.data=!0,De},get error(){return ne.error=!0,se},get isValidating(){return ne.isValidating=!0,Un},get isLoading(){return ne.isLoading=!0,In}}},Js=Vs(zs),Ks=6048e5,Gs=864e5,Xs=6e4,Qt=Symbol.for("constructDateFrom");function Pn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Qt in e?e[Qt](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ys(e,t){return Pn(t||e,e)}exports.Link=Bn;exports.axios=N;exports.constructFrom=Pn;exports.millisecondsInDay=Gs;exports.millisecondsInMinute=Xs;exports.millisecondsInWeek=Ks;exports.toDate=Ys;exports.useSWR=Js;exports.withMiddleware=Ws;
package/package.json CHANGED
@@ -1,75 +1,75 @@
1
- {
2
- "name": "@articles-media/articles-dev-box",
3
- "description": "Shared code, functions, and components for different Articles Media projects.",
4
- "version": "1.0.5",
5
- "type": "module",
6
- "imports": {
7
- "#root/src/*": "./src/*"
8
- },
9
- "main": "./dist/index.cjs",
10
- "module": "./dist/index.js",
11
- "files": [
12
- "dist"
13
- ],
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/Articles-Joey/articles-dev-box"
17
- },
18
- "exports": {
19
- ".": {
20
- "import": "./dist/index.js",
21
- "require": "./dist/index.cjs"
22
- },
23
- "./Ad": {
24
- "import": "./dist/Ad.js",
25
- "require": "./dist/Ad.cjs"
26
- },
27
- "./ArticlesAd": {
28
- "import": "./dist/ArticlesAd.js",
29
- "require": "./dist/ArticlesAd.cjs"
30
- },
31
- "./GameScoreboard": {
32
- "import": "./dist/GameScoreboard.js",
33
- "require": "./dist/GameScoreboard.cjs"
34
- },
35
- "./ReturnToLauncherButton": {
36
- "import": "./dist/ReturnToLauncherButton.js",
37
- "require": "./dist/ReturnToLauncherButton.cjs"
38
- },
39
- "./GlobalHead": {
40
- "import": "./dist/GlobalHead.js",
41
- "require": "./dist/GlobalHead.cjs"
42
- },
43
- "./GlobalBody": {
44
- "import": "./dist/GlobalBody.js",
45
- "require": "./dist/GlobalBody.cjs"
46
- },
47
- "./dist/style.css": "./dist/articles-dev-box.css"
48
- },
49
- "scripts": {
50
- "dev": "vite",
51
- "build": "vite build",
52
- "preview": "vite preview",
53
- "test": "echo \"Error: no test specified\" && exit 1"
54
- },
55
- "keywords": [],
56
- "author": "Articles Media",
57
- "license": "ISC",
58
- "peerDependencies": {
59
- "react": ">=19.2.3",
60
- "react-dom": ">=19.2.3"
61
- },
62
- "devDependencies": {
63
- "@vitejs/plugin-react": "^5.1.2",
64
- "classnames": "^2.5.1",
65
- "react-bootstrap": "^2.10.10",
66
- "sass": "^1.97.2",
67
- "vite": "^7.3.1"
68
- },
69
- "dependencies": {
70
- "axios": "^1.13.2",
71
- "date-fns": "^4.1.0",
72
- "react-intersection-observer": "^10.0.0",
73
- "swr": "^2.3.8"
74
- }
75
- }
1
+ {
2
+ "name": "@articles-media/articles-dev-box",
3
+ "description": "Shared code, functions, and components for different Articles Media projects.",
4
+ "version": "1.0.7",
5
+ "type": "module",
6
+ "imports": {
7
+ "#root/src/*": "./src/*"
8
+ },
9
+ "main": "./dist/index.cjs",
10
+ "module": "./dist/index.js",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Articles-Joey/articles-dev-box.git"
17
+ },
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.cjs"
22
+ },
23
+ "./Ad": {
24
+ "import": "./dist/Ad.js",
25
+ "require": "./dist/Ad.cjs"
26
+ },
27
+ "./ArticlesAd": {
28
+ "import": "./dist/ArticlesAd.js",
29
+ "require": "./dist/ArticlesAd.cjs"
30
+ },
31
+ "./GameScoreboard": {
32
+ "import": "./dist/GameScoreboard.js",
33
+ "require": "./dist/GameScoreboard.cjs"
34
+ },
35
+ "./ReturnToLauncherButton": {
36
+ "import": "./dist/ReturnToLauncherButton.js",
37
+ "require": "./dist/ReturnToLauncherButton.cjs"
38
+ },
39
+ "./GlobalHead": {
40
+ "import": "./dist/GlobalHead.js",
41
+ "require": "./dist/GlobalHead.cjs"
42
+ },
43
+ "./GlobalBody": {
44
+ "import": "./dist/GlobalBody.js",
45
+ "require": "./dist/GlobalBody.cjs"
46
+ },
47
+ "./dist/style.css": "./dist/articles-dev-box.css"
48
+ },
49
+ "scripts": {
50
+ "dev": "vite",
51
+ "build": "vite build",
52
+ "preview": "vite preview",
53
+ "test": "echo \"Error: no test specified\" && exit 1"
54
+ },
55
+ "keywords": [],
56
+ "author": "Articles Media",
57
+ "license": "ISC",
58
+ "peerDependencies": {
59
+ "react": ">=19.2.3",
60
+ "react-dom": ">=19.2.3"
61
+ },
62
+ "devDependencies": {
63
+ "@vitejs/plugin-react": "^5.1.2",
64
+ "classnames": "^2.5.1",
65
+ "react-bootstrap": "^2.10.10",
66
+ "sass": "^1.97.2",
67
+ "vite": "^7.3.1"
68
+ },
69
+ "dependencies": {
70
+ "axios": "^1.13.2",
71
+ "date-fns": "^4.1.0",
72
+ "react-intersection-observer": "^10.0.0",
73
+ "swr": "^2.3.8"
74
+ }
75
+ }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.cjs"),o=require("react"),t=require("./Modal-BNCxuVnD.cjs"),l=require("./Button-BVYvDTtH.cjs");function x(r){const{href:n,children:e,newPage:a,...i}=r;return s.jsxRuntimeExports.jsx("a",{href:n,...i,...a&&{target:"_blank",rel:"noopener noreferrer"},children:e})}function d(r){let{setModalShow:n,ad:e,previewData:a}=r;o.useEffect(()=>{console.log("Mounted")},[]);const i=()=>{n(!1)};return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsxs(t.Modal,{show:!0,backdropClassName:"ad-details-modal-backdrop",className:"articles-modal",centered:!0,onHide:i,size:"md",children:[s.jsxRuntimeExports.jsx(t.Modal.Header,{className:"align-items-center",closeButton:!0,children:s.jsxRuntimeExports.jsx(t.Modal.Title,{children:"Ad Details"})}),s.jsxRuntimeExports.jsxs(t.Modal.Body,{className:"",children:[s.jsxRuntimeExports.jsxs("p",{className:"mb-1",children:["Advertiser: ",s.jsxRuntimeExports.jsx("b",{children:e.business})]}),s.jsxRuntimeExports.jsxs("p",{className:"mb-0",children:["Ad ID: ",s.jsxRuntimeExports.jsx("b",{children:a?._id||e._id})]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"mb-1",children:"This ad is being shown to you for the following reasons"}),e.city?s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all zip codes within a"}),s.jsxRuntimeExports.jsx("span",{children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-light shadow-articles",children:"15 Mile Radius"})}),s.jsxRuntimeExports.jsx("div",{children:"of it's business"}),s.jsxRuntimeExports.jsx("hr",{className:"border w-50 border-white"}),s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{children:"Your Zip code"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-light shadow-articles ms-2",children:"12524"}),s.jsxRuntimeExports.jsx("div",{className:"ms-2",children:"is"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-light shadow-articles ms-2",children:"1.7 miles away"})]})]}):s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all users"})]}),s.jsxRuntimeExports.jsx("div",{className:"grow"}),s.jsxRuntimeExports.jsx("hr",{className:"w-100"}),s.jsxRuntimeExports.jsx("div",{className:"reason lh-sm mb-2",children:"Ads we display to you will always be transparent as to why you are seeing them."}),s.jsxRuntimeExports.jsx(x,{href:"https://articles.media/settings/account",newPage:!0,className:"",children:s.jsxRuntimeExports.jsx(l.ArticlesButton,{small:!0,children:"Settings"})})]}),s.jsxRuntimeExports.jsx(t.Modal.Footer,{className:"d-flex justify-content-center",children:s.jsxRuntimeExports.jsx(l.ArticlesButton,{variant:"articles",onClick:i,children:"Close"})})]})})}exports.default=d;
@@ -1,2 +0,0 @@
1
- "use strict";const K=require("./Button-BVYvDTtH.cjs"),c=require("react"),Ee=require("react-dom"),k=require("./jsx-runtime-nZSsnGb7.cjs");function zt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z=zt(c),he=!!(typeof window<"u"&&window.document&&window.document.createElement);var We=!1,Be=!1;try{var _e={get passive(){return We=!0},get once(){return Be=We=!0}};he&&(window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,!0))}catch{}function Rt(e,t,n,r){if(r&&typeof r!="boolean"&&!Be){var i=r.once,o=r.capture,a=n;!Be&&i&&(a=n.__once||function u(p){this.removeEventListener(t,u,o),n.call(this,p)},n.__once=a),e.addEventListener(t,a,We?r:o)}e.addEventListener(t,n,r)}function we(e){return e&&e.ownerDocument||document}function qe(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}var Re;function nt(e){if((!Re&&Re!==0||e)&&he){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Re=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Re}function Ht(){return c.useState(null)}function Vt(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function Ue(e){const t=Vt(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const rt=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Gt(e,t){const n=rt(e),r=rt(t);return i=>{n&&n(i),r&&r(i)}}function Tt(e,t){return c.useMemo(()=>Gt(e,t),[e,t])}function Kt(e){const t=c.useRef(e);return t.current=e,t}function Xt(e){const t=Kt(e);c.useEffect(()=>()=>t.current(),[])}function Jt(e){var t=we(e);return t&&t.defaultView||window}function Zt(e,t){return Jt(e).getComputedStyle(e,t)}var Qt=/([A-Z])/g;function en(e){return e.replace(Qt,"-$1").toLowerCase()}var tn=/^ms-/;function Te(e){return en(e).replace(tn,"-ms-")}var nn=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function rn(e){return!!(e&&nn.test(e))}function fe(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Te(t))||Zt(e).getPropertyValue(Te(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Te(i)):rn(i)?r+=i+"("+o+") ":n+=Te(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}function Se(e,t,n,r){return Rt(e,t,n,r),function(){qe(e,t,n,r)}}function on(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function sn(e){var t=fe(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function an(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||on(e,"transitionend",!0)},t+n),o=Se(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function Ct(e,t,n,r){n==null&&(n=sn(e)||0);var i=an(e,n,r),o=Se(e,"transitionend",t);return function(){i(),o()}}function Me(e){e===void 0&&(e=we());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function ot(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function un(){const e=c.useRef(!0),t=c.useRef(()=>e.current);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function cn(e){const t=c.useRef(e);return t.current=e,t}function ln(e){const t=cn(e);c.useEffect(()=>()=>t.current(),[])}function fn(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e}),t.current}function dn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function ce(e){const t=dn(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const pn="data-rr-ui-";function mn(e){return`${pn}${e}`}function vn(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const it=mn("modal-open");class He{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return vn(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(fe(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(it,""),fe(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(it),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Ot=c.createContext(he?window:void 0);Ot.Provider;function Ve(){return c.useContext(Ot)}const Ne=(e,t)=>he?e==null?(t||we()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function En(e,t){const n=Ve(),[r,i]=c.useState(()=>Ne(e,n?.document));if(!r){const o=Ne(e);o&&i(o)}return c.useEffect(()=>{},[t,r]),c.useEffect(()=>{const o=Ne(e);o!==r&&i(o)},[e,r]),r}const st=e=>!e||typeof e=="function"?e:t=>{e.current=t};function hn(e,t){const n=st(e),r=st(t);return i=>{n&&n(i),r&&r(i)}}function Ge(e,t){return c.useMemo(()=>hn(e,t),[e,t])}const yn=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",gn=typeof document<"u",at=gn||yn?c.useLayoutEffect:c.useEffect;function xn(e){return e.code==="Escape"||e.keyCode===27}function bn(){const e=z.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function je(e){if(!e||typeof e=="function")return null;const{major:t}=bn();return t>=19?e.props.ref:e.ref}function Rn({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=c.useRef(null),a=c.useRef(t),u=ce(n);c.useEffect(()=>{t?a.current=!0:u(o.current)},[t,u]);const p=Ge(o,je(e)),m=c.cloneElement(e,{ref:p});return t?m:i||!a.current&&r?null:m}const Tn=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Cn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function On(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:u,children:p}=e,m=Cn(e,Tn);const v=c.useRef(null),y=Ge(v,je(p)),T=A=>l=>{A&&v.current&&A(v.current,l)},_=c.useCallback(T(t),[t]),D=c.useCallback(T(n),[n]),j=c.useCallback(T(r),[r]),$=c.useCallback(T(i),[i]),F=c.useCallback(T(o),[o]),V=c.useCallback(T(a),[a]),L=c.useCallback(T(u),[u]);return Object.assign({},m,{nodeRef:v},t&&{onEnter:_},n&&{onEntering:D},r&&{onEntered:j},i&&{onExit:$},o&&{onExiting:F},a&&{onExited:V},u&&{addEndListener:L},{children:typeof p=="function"?(A,l)=>p(A,Object.assign({},l,{ref:y})):c.cloneElement(p,{ref:y})})}const Sn=["component"];function wn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const jn=z.forwardRef((e,t)=>{let{component:n}=e,r=wn(e,Sn);const i=On(r);return k.jsxRuntimeExports.jsx(n,Object.assign({ref:t},i))});function _n({in:e,onTransition:t}){const n=c.useRef(null),r=c.useRef(!0),i=ce(t);return at(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),at(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function Mn({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=c.useState(!t);t&&o&&a(!1);const u=_n({in:!!t,onTransition:m=>{const v=()=>{m.isStale()||(m.in?r?.(m.element,m.initial):(a(!0),n?.(m.element)))};Promise.resolve(i(m)).then(v,y=>{throw m.in||a(!0),y})}}),p=Ge(u,je(e));return o&&!t?null:c.cloneElement(e,{ref:p})}function ut(e,t,n){return e?k.jsxRuntimeExports.jsx(jn,Object.assign({},n,{component:e})):t?k.jsxRuntimeExports.jsx(Mn,Object.assign({},n,{transition:t})):k.jsxRuntimeExports.jsx(Rn,Object.assign({},n))}const Nn=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Pn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Pe;function An(e){return Pe||(Pe=new He({ownerDocument:e?.document})),Pe}function kn(e){const t=Ve(),n=e||An(t),r=c.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:c.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:c.useCallback(i=>{r.current.backdrop=i},[])})}const St=c.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:u=!0,keyboard:p=!0,onBackdropClick:m,onEscapeKeyDown:v,transition:y,runTransition:T,backdropTransition:_,runBackdropTransition:D,autoFocus:j=!0,enforceFocus:$=!0,restoreFocus:F=!0,restoreFocusOptions:V,renderDialog:L,renderBackdrop:A=I=>k.jsxRuntimeExports.jsx("div",Object.assign({},I)),manager:l,container:U,onShow:G,onHide:Z=()=>{},onExit:ie,onExited:Q,onExiting:ee,onEnter:ne,onEntering:re,onEntered:X}=e,se=Pn(e,Nn);const B=Ve(),H=En(U),W=kn(l),ae=un(),s=fn(n),[d,g]=c.useState(!n),h=c.useRef(null);c.useImperativeHandle(t,()=>W,[W]),he&&!s&&n&&(h.current=Me(B?.document)),n&&d&&g(!1);const E=ce(()=>{if(W.add(),C.current=Se(document,"keydown",S),w.current=Se(document,"focus",()=>setTimeout(x),!0),G&&G(),j){var I,be;const ge=Me((I=(be=W.dialog)==null?void 0:be.ownerDocument)!=null?I:B?.document);W.dialog&&ge&&!ot(W.dialog,ge)&&(h.current=ge,W.dialog.focus())}}),O=ce(()=>{if(W.remove(),C.current==null||C.current(),w.current==null||w.current(),F){var I;(I=h.current)==null||I.focus==null||I.focus(V),h.current=null}});c.useEffect(()=>{!n||!H||E()},[n,H,E]),c.useEffect(()=>{d&&O()},[d,O]),ln(()=>{O()});const x=ce(()=>{if(!$||!ae()||!W.isTopModal())return;const I=Me(B?.document);W.dialog&&I&&!ot(W.dialog,I)&&W.dialog.focus()}),b=ce(I=>{I.target===I.currentTarget&&(m?.(I),u===!0&&Z())}),S=ce(I=>{p&&xn(I)&&W.isTopModal()&&(v?.(I),I.defaultPrevented||Z())}),w=c.useRef(),C=c.useRef(),q=(...I)=>{g(!0),Q?.(...I)};if(!H)return null;const f=Object.assign({role:r,ref:W.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},se,{style:o,className:i,tabIndex:-1});let Y=L?L(f):k.jsxRuntimeExports.jsx("div",Object.assign({},f,{children:z.cloneElement(a,{role:"document"})}));Y=ut(y,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:ie,onExiting:ee,onExited:q,onEnter:ne,onEntering:re,onEntered:X,children:Y});let J=null;return u&&(J=A({ref:W.setBackdropRef,onClick:b}),J=ut(_,D,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),k.jsxRuntimeExports.jsx(k.jsxRuntimeExports.Fragment,{children:Ee.createPortal(k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[J,Y]}),H)})});St.displayName="Modal";const Dn=Object.assign(St,{Manager:He});function In(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Ln(e,t){e.classList?e.classList.add(t):In(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var $n=Function.prototype.bind.call(Function.prototype.call,[].slice);function pe(e,t){return $n(e.querySelectorAll(t))}function ct(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Fn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ct(e.className,t):e.setAttribute("class",ct(e.className&&e.className.baseVal||"",t))}const me={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Wn extends He{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,fe(n,{[t]:`${parseFloat(fe(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],fe(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Ln(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";pe(n,me.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),pe(n,me.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),pe(n,me.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Fn(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";pe(n,me.FIXED_CONTENT).forEach(o=>this.restore(r,o)),pe(n,me.STICKY_CONTENT).forEach(o=>this.restore(i,o)),pe(n,me.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Ae;function Bn(e){return Ae||(Ae=new Wn(e)),Ae}function qn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ye(e,t)}function Un(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ye(e,t)}var Ce={exports:{}},Oe={exports:{}},N={};var lt;function Yn(){if(lt)return N;lt=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(l){if(typeof l=="object"&&l!==null){var U=l.$$typeof;switch(U){case t:switch(l=l.type,l){case p:case m:case r:case o:case i:case y:return l;default:switch(l=l&&l.$$typeof,l){case u:case v:case D:case _:case a:return l;default:return U}}case n:return U}}}function A(l){return L(l)===m}return N.AsyncMode=p,N.ConcurrentMode=m,N.ContextConsumer=u,N.ContextProvider=a,N.Element=t,N.ForwardRef=v,N.Fragment=r,N.Lazy=D,N.Memo=_,N.Portal=n,N.Profiler=o,N.StrictMode=i,N.Suspense=y,N.isAsyncMode=function(l){return A(l)||L(l)===p},N.isConcurrentMode=A,N.isContextConsumer=function(l){return L(l)===u},N.isContextProvider=function(l){return L(l)===a},N.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},N.isForwardRef=function(l){return L(l)===v},N.isFragment=function(l){return L(l)===r},N.isLazy=function(l){return L(l)===D},N.isMemo=function(l){return L(l)===_},N.isPortal=function(l){return L(l)===n},N.isProfiler=function(l){return L(l)===o},N.isStrictMode=function(l){return L(l)===i},N.isSuspense=function(l){return L(l)===y},N.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===m||l===o||l===i||l===y||l===T||typeof l=="object"&&l!==null&&(l.$$typeof===D||l.$$typeof===_||l.$$typeof===a||l.$$typeof===u||l.$$typeof===v||l.$$typeof===$||l.$$typeof===F||l.$$typeof===V||l.$$typeof===j)},N.typeOf=L,N}var P={};var ft;function zn(){return ft||(ft=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(f){return typeof f=="string"||typeof f=="function"||f===r||f===m||f===o||f===i||f===y||f===T||typeof f=="object"&&f!==null&&(f.$$typeof===D||f.$$typeof===_||f.$$typeof===a||f.$$typeof===u||f.$$typeof===v||f.$$typeof===$||f.$$typeof===F||f.$$typeof===V||f.$$typeof===j)}function A(f){if(typeof f=="object"&&f!==null){var Y=f.$$typeof;switch(Y){case t:var J=f.type;switch(J){case p:case m:case r:case o:case i:case y:return J;default:var I=J&&J.$$typeof;switch(I){case u:case v:case D:case _:case a:return I;default:return Y}}case n:return Y}}}var l=p,U=m,G=u,Z=a,ie=t,Q=v,ee=r,ne=D,re=_,X=n,se=o,B=i,H=y,W=!1;function ae(f){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),s(f)||A(f)===p}function s(f){return A(f)===m}function d(f){return A(f)===u}function g(f){return A(f)===a}function h(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function E(f){return A(f)===v}function O(f){return A(f)===r}function x(f){return A(f)===D}function b(f){return A(f)===_}function S(f){return A(f)===n}function w(f){return A(f)===o}function C(f){return A(f)===i}function q(f){return A(f)===y}P.AsyncMode=l,P.ConcurrentMode=U,P.ContextConsumer=G,P.ContextProvider=Z,P.Element=ie,P.ForwardRef=Q,P.Fragment=ee,P.Lazy=ne,P.Memo=re,P.Portal=X,P.Profiler=se,P.StrictMode=B,P.Suspense=H,P.isAsyncMode=ae,P.isConcurrentMode=s,P.isContextConsumer=d,P.isContextProvider=g,P.isElement=h,P.isForwardRef=E,P.isFragment=O,P.isLazy=x,P.isMemo=b,P.isPortal=S,P.isProfiler=w,P.isStrictMode=C,P.isSuspense=q,P.isValidElementType=L,P.typeOf=A})()),P}var dt;function wt(){return dt||(dt=1,process.env.NODE_ENV==="production"?Oe.exports=Yn():Oe.exports=zn()),Oe.exports}var ke,pt;function Hn(){if(pt)return ke;pt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var p=Object.getOwnPropertyNames(a).map(function(v){return a[v]});if(p.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ke=i()?Object.assign:function(o,a){for(var u,p=r(o),m,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var y in u)t.call(u,y)&&(p[y]=u[y]);if(e){m=e(u);for(var T=0;T<m.length;T++)n.call(u,m[T])&&(p[m[T]]=u[m[T]])}}return p},ke}var De,mt;function Ke(){if(mt)return De;mt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return De=e,De}var Ie,vt;function jt(){return vt||(vt=1,Ie=Function.call.bind(Object.prototype.hasOwnProperty)),Ie}var Le,Et;function Vn(){if(Et)return Le;Et=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ke(),n={},r=jt();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,p,m){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var y;try{if(typeof o[v]!="function"){var T=Error((p||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}y=o[v](a,v,p,u,null,t)}catch(D){y=D}if(y&&!(y instanceof Error)&&e((p||"React class")+": type specification of "+u+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in n)){n[y.message]=!0;var _=m?m():"";e("Failed "+u+" type: "+y.message+(_??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Le=i,Le}var $e,ht;function Gn(){if(ht)return $e;ht=1;var e=wt(),t=Hn(),n=Ke(),r=jt(),i=Vn(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var p="Warning: "+u;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function a(){return null}return $e=function(u,p){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function y(s){var d=s&&(m&&s[m]||s[v]);if(typeof d=="function")return d}var T="<<anonymous>>",_={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:V(),arrayOf:L,element:A(),elementType:l(),instanceOf:U,node:Q(),objectOf:Z,oneOf:G,oneOfType:ie,shape:ne,exact:re};function D(s,d){return s===d?s!==0||1/s===1/d:s!==s&&d!==d}function j(s,d){this.message=s,this.data=d&&typeof d=="object"?d:{},this.stack=""}j.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var d={},g=0;function h(O,x,b,S,w,C,q){if(S=S||T,C=C||b,q!==n){if(p){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=S+":"+b;!d[Y]&&g<3&&(o("You are manually calling a React.PropTypes validation function for the `"+C+"` prop on `"+S+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),d[Y]=!0,g++)}}return x[b]==null?O?x[b]===null?new j("The "+w+" `"+C+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new j("The "+w+" `"+C+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:s(x,b,S,w,C)}var E=h.bind(null,!1);return E.isRequired=h.bind(null,!0),E}function F(s){function d(g,h,E,O,x,b){var S=g[h],w=B(S);if(w!==s){var C=H(S);return new j("Invalid "+O+" `"+x+"` of type "+("`"+C+"` supplied to `"+E+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(d)}function V(){return $(a)}function L(s){function d(g,h,E,O,x){if(typeof s!="function")return new j("Property `"+x+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var b=g[h];if(!Array.isArray(b)){var S=B(b);return new j("Invalid "+O+" `"+x+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an array."))}for(var w=0;w<b.length;w++){var C=s(b,w,E,O,x+"["+w+"]",n);if(C instanceof Error)return C}return null}return $(d)}function A(){function s(d,g,h,E,O){var x=d[g];if(!u(x)){var b=B(x);return new j("Invalid "+E+" `"+O+"` of type "+("`"+b+"` supplied to `"+h+"`, expected a single ReactElement."))}return null}return $(s)}function l(){function s(d,g,h,E,O){var x=d[g];if(!e.isValidElementType(x)){var b=B(x);return new j("Invalid "+E+" `"+O+"` of type "+("`"+b+"` supplied to `"+h+"`, expected a single ReactElement type."))}return null}return $(s)}function U(s){function d(g,h,E,O,x){if(!(g[h]instanceof s)){var b=s.name||T,S=ae(g[h]);return new j("Invalid "+O+" `"+x+"` of type "+("`"+S+"` supplied to `"+E+"`, expected ")+("instance of `"+b+"`."))}return null}return $(d)}function G(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function d(g,h,E,O,x){for(var b=g[h],S=0;S<s.length;S++)if(D(b,s[S]))return null;var w=JSON.stringify(s,function(q,f){var Y=H(f);return Y==="symbol"?String(f):f});return new j("Invalid "+O+" `"+x+"` of value `"+String(b)+"` "+("supplied to `"+E+"`, expected one of "+w+"."))}return $(d)}function Z(s){function d(g,h,E,O,x){if(typeof s!="function")return new j("Property `"+x+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var b=g[h],S=B(b);if(S!=="object")return new j("Invalid "+O+" `"+x+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an object."));for(var w in b)if(r(b,w)){var C=s(b,w,E,O,x+"."+w,n);if(C instanceof Error)return C}return null}return $(d)}function ie(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var d=0;d<s.length;d++){var g=s[d];if(typeof g!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(g)+" at index "+d+"."),a}function h(E,O,x,b,S){for(var w=[],C=0;C<s.length;C++){var q=s[C],f=q(E,O,x,b,S,n);if(f==null)return null;f.data&&r(f.data,"expectedType")&&w.push(f.data.expectedType)}var Y=w.length>0?", expected one of type ["+w.join(", ")+"]":"";return new j("Invalid "+b+" `"+S+"` supplied to "+("`"+x+"`"+Y+"."))}return $(h)}function Q(){function s(d,g,h,E,O){return X(d[g])?null:new j("Invalid "+E+" `"+O+"` supplied to "+("`"+h+"`, expected a ReactNode."))}return $(s)}function ee(s,d,g,h,E){return new j((s||"React class")+": "+d+" type `"+g+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function ne(s){function d(g,h,E,O,x){var b=g[h],S=B(b);if(S!=="object")return new j("Invalid "+O+" `"+x+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));for(var w in s){var C=s[w];if(typeof C!="function")return ee(E,O,x,w,H(C));var q=C(b,w,E,O,x+"."+w,n);if(q)return q}return null}return $(d)}function re(s){function d(g,h,E,O,x){var b=g[h],S=B(b);if(S!=="object")return new j("Invalid "+O+" `"+x+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));var w=t({},g[h],s);for(var C in w){var q=s[C];if(r(s,C)&&typeof q!="function")return ee(E,O,x,C,H(q));if(!q)return new j("Invalid "+O+" `"+x+"` key `"+C+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(g[h],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(s),null," "));var f=q(b,C,E,O,x+"."+C,n);if(f)return f}return null}return $(d)}function X(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(X);if(s===null||u(s))return!0;var d=y(s);if(d){var g=d.call(s),h;if(d!==s.entries){for(;!(h=g.next()).done;)if(!X(h.value))return!1}else for(;!(h=g.next()).done;){var E=h.value;if(E&&!X(E[1]))return!1}}else return!1;return!0;default:return!1}}function se(s,d){return s==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function B(s){var d=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":se(d,s)?"symbol":d}function H(s){if(typeof s>"u"||s===null)return""+s;var d=B(s);if(d==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return d}function W(s){var d=H(s);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function ae(s){return!s.constructor||!s.constructor.name?T:s.constructor.name}return _.checkPropTypes=i,_.resetWarningCache=i.resetWarningCache,_.PropTypes=_,_},$e}var Fe,yt;function Kn(){if(yt)return Fe;yt=1;var e=Ke();function t(){}function n(){}return n.resetWarningCache=t,Fe=function(){function r(a,u,p,m,v,y){if(y!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Fe}var gt;function Xn(){if(gt)return Ce.exports;if(gt=1,process.env.NODE_ENV!=="production"){var e=wt(),t=!0;Ce.exports=Gn()(e.isElement,t)}else Ce.exports=Kn()();return Ce.exports}var Jn=Xn();const R=K.getDefaultExportFromCjs(Jn),xt={disabled:!1};var Zn=process.env.NODE_ENV!=="production"?R.oneOfType([R.number,R.shape({enter:R.number,exit:R.number,appear:R.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&R.oneOfType([R.string,R.shape({enter:R.string,exit:R.string,active:R.string}),R.shape({enter:R.string,enterDone:R.string,enterActive:R.string,exit:R.string,exitDone:R.string,exitActive:R.string})]);const _t=c.createContext(null);var Qn=function(t){return t.scrollTop},xe="unmounted",ue="exited",oe="entering",le="entered",ze="exiting",te=(function(e){Un(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,u=a&&!a.isMounting?r.enter:r.appear,p;return o.appearStatus=null,r.in?u?(p=ue,o.appearStatus=oe):p=le:r.unmountOnExit||r.mountOnEnter?p=xe:p=ue,o.state={status:p},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===xe?{status:ue}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==oe&&a!==le&&(o=oe):(a===oe||a===le)&&(o=ze)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,u;return o=a=u=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,u=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:u}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===oe){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ee.findDOMNode(this);a&&Qn(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ue&&this.setState({status:xe})},n.performEnter=function(i){var o=this,a=this.props.enter,u=this.context?this.context.isMounting:i,p=this.props.nodeRef?[u]:[Ee.findDOMNode(this),u],m=p[0],v=p[1],y=this.getTimeouts(),T=u?y.appear:y.enter;if(!i&&!a||xt.disabled){this.safeSetState({status:le},function(){o.props.onEntered(m)});return}this.props.onEnter(m,v),this.safeSetState({status:oe},function(){o.props.onEntering(m,v),o.onTransitionEnd(T,function(){o.safeSetState({status:le},function(){o.props.onEntered(m,v)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:Ee.findDOMNode(this);if(!o||xt.disabled){this.safeSetState({status:ue},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:ze},function(){i.props.onExiting(u),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ue},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Ee.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],m=p[0],v=p[1];this.props.addEndListener(m,v)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===xe)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=qn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return c.createElement(_t.Provider,{value:null},typeof a=="function"?a(i,u):c.cloneElement(c.Children.only(a),u))},t})(c.Component);te.contextType=_t;te.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:R.shape({current:typeof Element>"u"?R.any:function(e,t,n,r,i,o){var a=e[t];return R.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:R.oneOfType([R.func.isRequired,R.element.isRequired]).isRequired,in:R.bool,mountOnEnter:R.bool,unmountOnExit:R.bool,appear:R.bool,enter:R.bool,exit:R.bool,timeout:function(t){var n=Zn;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:R.func,onEnter:R.func,onEntering:R.func,onEntered:R.func,onExit:R.func,onExiting:R.func,onExited:R.func}:{};function ve(){}te.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ve,onEntering:ve,onEntered:ve,onExit:ve,onExiting:ve,onExited:ve};te.UNMOUNTED=xe;te.EXITED=ue;te.ENTERING=oe;te.ENTERED=le;te.EXITING=ze;function bt(e,t){const n=fe(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function er(e,t){const n=bt(e,"transitionDuration"),r=bt(e,"transitionDelay"),i=Ct(e,o=>{o.target===e&&(i(),t(o))},n+r)}function tr(e){e.offsetHeight}function nr(e){return e&&"setState"in e?Ee.findDOMNode(e):e??null}const Mt=c.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:u,childRef:p,...m},v)=>{const y=c.useRef(null),T=Tt(y,p),_=U=>{T(nr(U))},D=U=>G=>{U&&y.current&&U(y.current,G)},j=c.useCallback(D(e),[e]),$=c.useCallback(D(t),[t]),F=c.useCallback(D(n),[n]),V=c.useCallback(D(r),[r]),L=c.useCallback(D(i),[i]),A=c.useCallback(D(o),[o]),l=c.useCallback(D(a),[a]);return k.jsxRuntimeExports.jsx(te,{ref:v,...m,onEnter:j,onEntered:F,onEntering:$,onExit:V,onExited:A,onExiting:L,addEndListener:l,nodeRef:y,children:typeof u=="function"?(U,G)=>u(U,{...G,ref:_}):c.cloneElement(u,{ref:_})})});Mt.displayName="TransitionWrapper";const rr={[oe]:"show",[le]:"show"},Xe=z.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},u=c.useCallback((p,m)=>{tr(p),r?.(p,m)},[r]);return k.jsxRuntimeExports.jsx(Mt,{ref:o,addEndListener:er,...a,onEnter:u,childRef:je(t),children:(p,m)=>z.cloneElement(t,{...m,className:K.classNames("fade",e,t.props.className,rr[p],n[p])})})});Xe.displayName="Fade";const or=["xxl","xl","lg","md","sm","xs"],ir="xs",Je=z.createContext({prefixes:{},breakpoints:or,minBreakpoint:ir}),{Consumer:pr,Provider:mr}=Je;function ye(e,t){const{prefixes:n}=c.useContext(Je);return e||n[t]||t}function sr(){const{dir:e}=c.useContext(Je);return e==="rtl"}const Nt=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ye(t,"modal-body"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Nt.displayName="ModalBody";const Pt=z.createContext({onHide(){}}),Ze=z.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:u,...p},m)=>{e=ye(e,"modal");const v=`${e}-dialog`,y=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return k.jsxRuntimeExports.jsx("div",{...p,ref:m,className:K.classNames(v,t,i&&`${e}-${i}`,r&&`${v}-centered`,u&&`${v}-scrollable`,o&&y),children:k.jsxRuntimeExports.jsx("div",{className:K.classNames(`${e}-content`,n),children:a})})});Ze.displayName="ModalDialog";const At=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ye(t,"modal-footer"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));At.displayName="ModalFooter";const ar={"aria-label":R.string,onClick:R.func,variant:R.oneOf(["white"])},Qe=z.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>k.jsxRuntimeExports.jsx("button",{ref:i,type:"button",className:K.classNames("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Qe.displayName="CloseButton";Qe.propTypes=ar;const kt=z.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const u=c.useContext(Pt),p=Ue(()=>{u?.onHide(),r?.()});return k.jsxRuntimeExports.jsxs("div",{ref:a,...o,children:[i,n&&k.jsxRuntimeExports.jsx(Qe,{"aria-label":e,variant:t,onClick:p})]})});kt.displayName="AbstractModalHeader";const Dt=z.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=ye(e,"modal-header"),k.jsxRuntimeExports.jsx(kt,{ref:o,...i,className:K.classNames(t,e),closeLabel:n,closeButton:r})));Dt.displayName="ModalHeader";const ur=(e=>z.forwardRef((t,n)=>k.jsxRuntimeExports.jsx("div",{...t,ref:n,className:K.classNames(t.className,e)}))),cr=ur("h4"),It=z.forwardRef(({className:e,bsPrefix:t,as:n=cr,...r},i)=>(t=ye(t,"modal-title"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));It.displayName="ModalTitle";function lr(e){return k.jsxRuntimeExports.jsx(Xe,{...e,timeout:null})}function fr(e){return k.jsxRuntimeExports.jsx(Xe,{...e,timeout:null})}const Lt=z.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=Ze,"data-bs-theme":u,"aria-labelledby":p,"aria-describedby":m,"aria-label":v,show:y=!1,animation:T=!0,backdrop:_=!0,keyboard:D=!0,onEscapeKeyDown:j,onShow:$,onHide:F,container:V,autoFocus:L=!0,enforceFocus:A=!0,restoreFocus:l=!0,restoreFocusOptions:U,onEntered:G,onExit:Z,onExiting:ie,onEnter:Q,onEntering:ee,onExited:ne,backdropClassName:re,manager:X,...se},B)=>{const[H,W]=c.useState({}),[ae,s]=c.useState(!1),d=c.useRef(!1),g=c.useRef(!1),h=c.useRef(null),[E,O]=Ht(),x=Tt(B,O),b=Ue(F),S=sr();e=ye(e,"modal");const w=c.useMemo(()=>({onHide:b}),[b]);function C(){return X||Bn({isRTL:S})}function q(M){if(!he)return;const de=C().getScrollbarWidth()>0,tt=M.scrollHeight>we(M).documentElement.clientHeight;W({paddingRight:de&&!tt?nt():void 0,paddingLeft:!de&&tt?nt():void 0})}const f=Ue(()=>{E&&q(E.dialog)});Xt(()=>{qe(window,"resize",f),h.current==null||h.current()});const Y=()=>{d.current=!0},J=M=>{d.current&&E&&M.target===E.dialog&&(g.current=!0),d.current=!1},I=()=>{s(!0),h.current=Ct(E.dialog,()=>{s(!1)})},be=M=>{M.target===M.currentTarget&&I()},ge=M=>{if(_==="static"){be(M);return}if(g.current||M.target!==M.currentTarget){g.current=!1;return}F?.()},$t=M=>{D?j?.(M):(M.preventDefault(),_==="static"&&I())},Ft=(M,de)=>{M&&q(M),Q?.(M,de)},Wt=M=>{h.current==null||h.current(),Z?.(M)},Bt=(M,de)=>{ee?.(M,de),Rt(window,"resize",f)},qt=M=>{M&&(M.style.display=""),ne?.(M),qe(window,"resize",f)},Ut=c.useCallback(M=>k.jsxRuntimeExports.jsx("div",{...M,className:K.classNames(`${e}-backdrop`,re,!T&&"show")}),[T,re,e]),et={...n,...H};et.display="block";const Yt=M=>k.jsxRuntimeExports.jsx("div",{role:"dialog",...M,style:et,className:K.classNames(t,e,ae&&`${e}-static`,!T&&"show"),onClick:_?ge:void 0,onMouseUp:J,"data-bs-theme":u,"aria-label":v,"aria-labelledby":p,"aria-describedby":m,children:k.jsxRuntimeExports.jsx(a,{...se,onMouseDown:Y,className:r,contentClassName:i,children:o})});return k.jsxRuntimeExports.jsx(Pt.Provider,{value:w,children:k.jsxRuntimeExports.jsx(Dn,{show:y,ref:x,backdrop:_,container:V,keyboard:!0,autoFocus:L,enforceFocus:A,restoreFocus:l,restoreFocusOptions:U,onEscapeKeyDown:$t,onShow:$,onHide:F,onEnter:Ft,onEntering:Bt,onEntered:G,onExit:Wt,onExiting:ie,onExited:qt,manager:C(),transition:T?lr:void 0,backdropTransition:T?fr:void 0,renderBackdrop:Ut,renderDialog:Yt})})});Lt.displayName="Modal";const dr=Object.assign(Lt,{Body:Nt,Header:Dt,Title:It,Footer:At,Dialog:Ze,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});exports.Modal=dr;
@@ -1,6 +0,0 @@
1
- "use strict";const x=require("react");function Qt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Un}=Object.prototype,{getPrototypeOf:ht}=Object,{iterator:je,toStringTag:Zt}=Symbol,ke=(e=>t=>{const n=Un.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),X=e=>(e=e.toLowerCase(),t=>ke(t)===e),qe=e=>t=>typeof t===e,{isArray:we}=Array,ye=qe("undefined");function Oe(e){return e!==null&&!ye(e)&&e.constructor!==null&&!ye(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const en=X("ArrayBuffer");function In(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&en(e.buffer),t}const Bn=qe("string"),q=qe("function"),tn=qe("number"),Te=e=>e!==null&&typeof e=="object",jn=e=>e===!0||e===!1,ve=e=>{if(ke(e)!=="object")return!1;const t=ht(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Zt in e)&&!(je in e)},kn=e=>{if(!Te(e)||Oe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},qn=X("Date"),Hn=X("File"),Mn=X("Blob"),Vn=X("FileList"),$n=e=>Te(e)&&q(e.pipe),Wn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=ke(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},zn=X("URLSearchParams"),[Jn,Kn,Gn,Xn]=["ReadableStream","Request","Response","Headers"].map(X),Yn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),we(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Oe(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function nn(e,t){if(Oe(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rn=e=>!ye(e)&&e!==fe;function nt(){const{caseless:e,skipUndefined:t}=rn(this)&&this||{},n={},r=(s,i)=>{const o=e&&nn(n,i)||i;ve(n[o])&&ve(s)?n[o]=nt(n[o],s):ve(s)?n[o]=nt({},s):we(s)?n[o]=s.slice():(!t||!ye(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Ae(arguments[s],r);return n}const Qn=(e,t,n,{allOwnKeys:r}={})=>(Ae(t,(s,i)=>{n&&q(s)?e[i]=Qt(s,n):e[i]=s},{allOwnKeys:r}),e),Zn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),er=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tr=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&ht(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},rr=e=>{if(!e)return null;if(we(e))return e;let t=e.length;if(!tn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},sr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ht(Uint8Array)),or=(e,t)=>{const r=(e&&e[je]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},ir=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ar=X("HTMLFormElement"),cr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),_t=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ur=X("RegExp"),sn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ae(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},lr=e=>{sn(e,(t,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(q(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fr=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return we(e)?r(e):r(String(e).split(t)),n},dr=()=>{},pr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function hr(e){return!!(e&&q(e.append)&&e[Zt]==="FormData"&&e[je])}const mr=e=>{const t=new Array(10),n=(r,s)=>{if(Te(r)){if(t.indexOf(r)>=0)return;if(Oe(r))return r;if(!("toJSON"in r)){t[s]=r;const i=we(r)?[]:{};return Ae(r,(o,a)=>{const d=n(o,s+1);!ye(d)&&(i[a]=d)}),t[s]=void 0,i}}return r};return n(e,0)},Er=X("AsyncFunction"),yr=e=>e&&(Te(e)||q(e))&&q(e.then)&&q(e.catch),on=((e,t)=>e?setImmediate:t?((n,r)=>(fe.addEventListener("message",({source:s,data:i})=>{s===fe&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),fe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(fe.postMessage)),wr=typeof queueMicrotask<"u"?queueMicrotask.bind(fe):typeof process<"u"&&process.nextTick||on,Sr=e=>e!=null&&q(e[je]),c={isArray:we,isArrayBuffer:en,isBuffer:Oe,isFormData:Wn,isArrayBufferView:In,isString:Bn,isNumber:tn,isBoolean:jn,isObject:Te,isPlainObject:ve,isEmptyObject:kn,isReadableStream:Jn,isRequest:Kn,isResponse:Gn,isHeaders:Xn,isUndefined:ye,isDate:qn,isFile:Hn,isBlob:Mn,isRegExp:ur,isFunction:q,isStream:$n,isURLSearchParams:zn,isTypedArray:sr,isFileList:Vn,forEach:Ae,merge:nt,extend:Qn,trim:Yn,stripBOM:Zn,inherits:er,toFlatObject:tr,kindOf:ke,kindOfTest:X,endsWith:nr,toArray:rr,forEachEntry:or,matchAll:ir,isHTMLForm:ar,hasOwnProperty:_t,hasOwnProp:_t,reduceDescriptors:sn,freezeMethods:lr,toObjectSet:fr,toCamelCase:cr,noop:dr,toFiniteNumber:pr,findKey:nn,global:fe,isContextDefined:rn,isSpecCompliantForm:hr,toJSONObject:mr,isAsyncFn:Er,isThenable:yr,setImmediate:on,asap:wr,isIterable:Sr};function S(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}c.inherits(S,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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const an=S.prototype,cn={};["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=>{cn[e]={value:e}});Object.defineProperties(S,cn);Object.defineProperty(an,"isAxiosError",{value:!0});S.from=(e,t,n,r,s,i)=>{const o=Object.create(an);c.toFlatObject(e,o,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const a=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return S.call(o,a,d,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const br=null;function rt(e){return c.isPlainObject(e)||c.isArray(e)}function un(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ct(e,t,n){return e?e.concat(t).map(function(s,i){return s=un(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function gr(e){return c.isArray(e)&&!e.some(rt)}const Rr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function He(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!c.isUndefined(h[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(c.isDate(u))return u.toISOString();if(c.isBoolean(u))return u.toString();if(!d&&c.isBlob(u))throw new S("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(u)||c.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,h){let b=u;if(u&&!h&&typeof u=="object"){if(c.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(c.isArray(u)&&gr(u)||(c.isFileList(u)||c.endsWith(m,"[]"))&&(b=c.toArray(u)))return m=un(m),b.forEach(function(A,D){!(c.isUndefined(A)||A===null)&&t.append(o===!0?Ct([m],D,i):o===null?m:m+"[]",f(A))}),!1}return rt(u)?!0:(t.append(Ct(h,m,i),f(u)),!1)}const p=[],E=Object.assign(Rr,{defaultVisitor:l,convertValue:f,isVisitable:rt});function y(u,m){if(!c.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),c.forEach(u,function(b,w){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(w)?w.trim():w,m,E))===!0&&y(b,m?m.concat(w):[w])}),p.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function xt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function mt(e,t){this._pairs=[],e&&He(e,this,t)}const ln=mt.prototype;ln.append=function(t,n){this._pairs.push([t,n])};ln.toString=function(t){const n=t?function(r){return t.call(this,r,xt)}:xt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Or(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function fn(e,t,n){if(!t)return e;const r=n&&n.encode||Or;c.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=c.isURLSearchParams(t)?t.toString():new mt(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Dt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tr=typeof URLSearchParams<"u"?URLSearchParams:mt,Ar=typeof FormData<"u"?FormData:null,_r=typeof Blob<"u"?Blob:null,Cr={isBrowser:!0,classes:{URLSearchParams:Tr,FormData:Ar,Blob:_r},protocols:["http","https","file","blob","url","data"]},Et=typeof window<"u"&&typeof document<"u",st=typeof navigator=="object"&&navigator||void 0,xr=Et&&(!st||["ReactNative","NativeScript","NS"].indexOf(st.product)<0),Dr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lr=Et&&window.location.href||"http://localhost",Nr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Et,hasStandardBrowserEnv:xr,hasStandardBrowserWebWorkerEnv:Dr,navigator:st,origin:Lr},Symbol.toStringTag,{value:"Module"})),B={...Nr,...Cr};function Fr(e,t){return He(e,new B.classes.URLSearchParams,{visitor:function(n,r,s,i){return B.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Pr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vr(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function pn(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),d=i>=n.length;return o=!o&&c.isArray(s)?s.length:o,d?(c.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&c.isArray(s[o])&&(s[o]=vr(s[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Pr(r),s,n,0)}),n}return null}function Ur(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _e={transitional:dn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(pn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Fr(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return He(a?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Ur(t)):t}],transformResponse:[function(t){const n=this.transitional||_e.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?S.from(a,S.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:B.classes.FormData,Blob:B.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});const Ir=c.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"]),Br=e=>{const t={};let n,r,s;return e&&e.split(`
2
- `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Ir[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Lt=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function Ue(e){return e===!1||e==null?e:c.isArray(e)?e.map(Ue):String(e)}function jr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function We(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function qr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Hr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let H=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,d,f){const l=Re(d);if(!l)throw new Error("header name must be a non-empty string");const p=c.findKey(s,l);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||d]=Ue(a))}const o=(a,d)=>c.forEach(a,(f,l)=>i(f,l,d));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(c.isString(t)&&(t=t.trim())&&!kr(t))o(Br(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},d,f;for(const l of t){if(!c.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[f=l[0]]=(d=a[f])?c.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Re(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return jr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Re(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||We(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Re(o),o){const a=c.findKey(r,o);a&&(!n||We(r,r[a],a,n))&&(delete r[a],s=!0)}}return c.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||We(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,i)=>{const o=c.findKey(r,i);if(o){n[o]=Ue(s),delete n[i];return}const a=t?qr(i):String(i).trim();a!==i&&delete n[i],n[a]=Ue(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Lt]=this[Lt]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Re(o);r[a]||(Hr(s,o),r[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(H.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(H);function ze(e,t){const n=this||_e,r=t||n,s=H.from(r.headers);let i=r.data;return c.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function hn(e){return!!(e&&e.__CANCEL__)}function Se(e,t,n){S.call(this,e??"canceled",S.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(Se,S,{__CANCEL__:!0});function mn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new S("Request failed with status code "+n.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[i];o||(o=f),n[s]=d,r[s]=f;let p=i,E=0;for(;p!==s;)E+=n[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const y=l&&f-l;return y?Math.round(E*1e3/y):void 0}}function $r(e,t){let n=0,r=1e3/t,s,i;const o=(f,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),p=l-n;p>=r?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-p)))},()=>s&&o(s)]}const Be=(e,t,n=3)=>{let r=0;const s=Vr(50,250);return $r(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,d=o-r,f=s(d),l=o<=a;r=o;const p={loaded:o,total:a,progress:a?o/a:void 0,bytes:d,rate:f||void 0,estimated:f&&a&&l?(a-o)/f:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Nt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ft=e=>(...t)=>c.asap(()=>e(...t)),Wr=B.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,B.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(B.origin),B.navigator&&/(msie|trident)/i.test(B.navigator.userAgent)):()=>!0,zr=B.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Jr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function En(e,t,n){let r=!Jr(t);return e&&(r||n==!1)?Kr(e,t):t}const Pt=e=>e instanceof H?{...e}:e;function pe(e,t){t=t||{};const n={};function r(f,l,p,E){return c.isPlainObject(f)&&c.isPlainObject(l)?c.merge.call({caseless:E},f,l):c.isPlainObject(l)?c.merge({},l):c.isArray(l)?l.slice():l}function s(f,l,p,E){if(c.isUndefined(l)){if(!c.isUndefined(f))return r(void 0,f,p,E)}else return r(f,l,p,E)}function i(f,l){if(!c.isUndefined(l))return r(void 0,l)}function o(f,l){if(c.isUndefined(l)){if(!c.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function a(f,l,p){if(p in t)return r(f,l);if(p in e)return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,l,p)=>s(Pt(f),Pt(l),p,!0)};return c.forEach(Object.keys({...e,...t}),function(l){const p=d[l]||s,E=p(e[l],t[l],l);c.isUndefined(E)&&p!==a||(n[l]=E)}),n}const yn=e=>{const t=pe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=H.from(o),t.url=fn(En(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(n)){if(B.hasStandardBrowserEnv||B.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,p])=>{f.includes(l.toLowerCase())&&o.set(l,p)})}}if(B.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&Wr(t.url))){const d=s&&i&&zr.read(i);d&&o.set(s,d)}return t},Gr=typeof XMLHttpRequest<"u",Xr=Gr&&function(e){return new Promise(function(n,r){const s=yn(e);let i=s.data;const o=H.from(s.headers).normalize();let{responseType:a,onUploadProgress:d,onDownloadProgress:f}=s,l,p,E,y,u;function m(){y&&y(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function b(){if(!h)return;const A=H.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:A,config:e,request:h};mn(function(_){n(_),m()},function(_){r(_),m()},R),h=null}"onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(b)},h.onabort=function(){h&&(r(new S("Request aborted",S.ECONNABORTED,e,h)),h=null)},h.onerror=function(D){const R=D&&D.message?D.message:"Network Error",v=new S(R,S.ERR_NETWORK,e,h);v.event=D||null,r(v),h=null},h.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||dn;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new S(D,R.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&c.forEach(o.toJSON(),function(D,R){h.setRequestHeader(R,D)}),c.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),a&&a!=="json"&&(h.responseType=s.responseType),f&&([E,u]=Be(f,!0),h.addEventListener("progress",E)),d&&h.upload&&([p,y]=Be(d),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(l=A=>{h&&(r(!A||A.type?new Se(null,e,h):A),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const w=Mr(s.url);if(w&&B.protocols.indexOf(w)===-1){r(new S("Unsupported protocol "+w+":",S.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Yr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,a();const l=f instanceof Error?f:this.reason;r.abort(l instanceof S?l:new Se(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new S(`timeout ${t} of ms exceeded`,S.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>c.asap(a),d}},Qr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Zr=async function*(e,t){for await(const n of es(e))yield*Qr(n,t)},es=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vt=(e,t,n,r)=>{const s=Zr(e,t);let i=0,o,a=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){a(),d.close();return}let p=l.byteLength;if(n){let E=i+=p;n(E)}d.enqueue(new Uint8Array(l))}catch(f){throw a(f),f}},cancel(d){return a(d),s.return()}},{highWaterMark:2})},Ut=64*1024,{isFunction:Le}=c,ts=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:It,TextEncoder:Bt}=c.global,jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ns=e=>{e=c.merge.call({skipUndefined:!0},ts,e);const{fetch:t,Request:n,Response:r}=e,s=t?Le(t):typeof fetch=="function",i=Le(n),o=Le(r);if(!s)return!1;const a=s&&Le(It),d=s&&(typeof Bt=="function"?(u=>m=>u.encode(m))(new Bt):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=i&&a&&jt(()=>{let u=!1;const m=new n(B.origin,{body:new It,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=o&&a&&jt(()=>c.isReadableStream(new r("").body)),p={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!p[u]&&(p[u]=(m,h)=>{let b=m&&m[u];if(b)return b.call(m);throw new S(`Response type '${u}' is not supported`,S.ERR_NOT_SUPPORT,h)})});const E=async u=>{if(u==null)return 0;if(c.isBlob(u))return u.size;if(c.isSpecCompliantForm(u))return(await new n(B.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(c.isArrayBufferView(u)||c.isArrayBuffer(u))return u.byteLength;if(c.isURLSearchParams(u)&&(u=u+""),c.isString(u))return(await d(u)).byteLength},y=async(u,m)=>{const h=c.toFiniteNumber(u.getContentLength());return h??E(m)};return async u=>{let{url:m,method:h,data:b,signal:w,cancelToken:A,timeout:D,onDownloadProgress:R,onUploadProgress:v,responseType:_,headers:Y,withCredentials:O="same-origin",fetchOptions:te}=yn(u),M=t||fetch;_=_?(_+"").toLowerCase():"text";let z=Yr([w,A&&A.toAbortSignal()],D),V=null;const P=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let ne;try{if(v&&f&&h!=="get"&&h!=="head"&&(ne=await y(Y,b))!==0){let Q=new n(m,{method:"POST",body:b,duplex:"half"}),$;if(c.isFormData(b)&&($=Q.headers.get("content-type"))&&Y.setContentType($),Q.body){const[K,se]=Nt(ne,Be(Ft(v)));b=vt(Q.body,Ut,K,se)}}c.isString(O)||(O=O?"include":"omit");const j=i&&"credentials"in n.prototype,be={...te,signal:z,method:h.toUpperCase(),headers:Y.normalize().toJSON(),body:b,duplex:"half",credentials:j?O:void 0};V=i&&new n(m,be);let J=await(i?M(V,te):M(m,be));const re=l&&(_==="stream"||_==="response");if(l&&(R||re&&P)){const Q={};["status","statusText","headers"].forEach(he=>{Q[he]=J[he]});const $=c.toFiniteNumber(J.headers.get("content-length")),[K,se]=R&&Nt($,Be(Ft(R),!0))||[];J=new r(vt(J.body,Ut,K,()=>{se&&se(),P&&P()}),Q)}_=_||"text";let xe=await p[c.findKey(p,_)||"text"](J,u);return!re&&P&&P(),await new Promise((Q,$)=>{mn(Q,$,{data:xe,headers:H.from(J.headers),status:J.status,statusText:J.statusText,config:u,request:V})})}catch(j){throw P&&P(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,u,V),{cause:j.cause||j}):S.from(j,j&&j.code,u,V)}}},rs=new Map,wn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,a=o,d,f,l=rs;for(;a--;)d=i[a],f=l.get(d),f===void 0&&l.set(d,f=a?new Map:ns(t)),l=f;return f};wn();const yt={http:br,xhr:Xr,fetch:{get:wn}};c.forEach(yt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kt=e=>`- ${e}`,ss=e=>c.isFunction(e)||e===null||e===!1;function os(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let a;if(s=r,!ss(r)&&(s=yt[(a=String(r)).toLowerCase()],s===void 0))throw new S(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
4
- `+o.map(kt).join(`
5
- `):" "+kt(o[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Sn={getAdapter:os,adapters:yt};function Je(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function qt(e){return Je(e),e.headers=H.from(e.headers),e.data=ze.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sn.getAdapter(e.adapter||_e.adapter,e)(e).then(function(r){return Je(e),r.data=ze.call(e,e.transformResponse,r),r.headers=H.from(r.headers),r},function(r){return hn(r)||(Je(e),r&&r.response&&(r.response.data=ze.call(e,e.transformResponse,r.response),r.response.headers=H.from(r.response.headers))),Promise.reject(r)})}const bn="1.13.2",Me={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Me[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ht={};Me.transitional=function(t,n,r){function s(i,o){return"[Axios v"+bn+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new S(s(o," has been removed"+(n?" in "+n:"")),S.ERR_DEPRECATED);return n&&!Ht[o]&&(Ht[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};Me.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function is(e,t,n){if(typeof e!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],d=a===void 0||o(a,i,e);if(d!==!0)throw new S("option "+i+" must be "+d,S.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new S("Unknown option "+i,S.ERR_BAD_OPTION)}}const Ie={assertOptions:is,validators:Me},Z=Ie.validators;let de=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dt,response:new Dt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Ie.assertOptions(r,{silentJSONParsing:Z.transitional(Z.boolean),forcedJSONParsing:Z.transitional(Z.boolean),clarifyTimeoutError:Z.transitional(Z.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Ie.assertOptions(s,{encode:Z.function,serialize:Z.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ie.assertOptions(n,{baseUrl:Z.spelling("baseURL"),withXsrfToken:Z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&c.merge(i.common,i[n.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=H.concat(o,i);const a=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,p=0,E;if(!d){const u=[qt.bind(this),void 0];for(u.unshift(...a),u.push(...f),E=u.length,l=Promise.resolve(n);p<E;)l=l.then(u[p++],u[p++]);return l}E=a.length;let y=n;for(;p<E;){const u=a[p++],m=a[p++];try{y=u(y)}catch(h){m.call(this,h);break}}try{l=qt.call(this,y)}catch(u){return Promise.reject(u)}for(p=0,E=f.length;p<E;)l=l.then(f[p++],f[p++]);return l}getUri(t){t=pe(this.defaults,t);const n=En(t.baseURL,t.url,t.allowAbsoluteUrls);return fn(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){de.prototype[t]=function(n,r){return this.request(pe(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request(pe(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}de.prototype[t]=n(),de.prototype[t+"Form"]=n(!0)});let as=class gn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new Se(i,o,a),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gn(function(s){t=s}),cancel:t}}};function cs(e){return function(n){return e.apply(null,n)}}function us(e){return c.isObject(e)&&e.isAxiosError===!0}const ot={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ot).forEach(([e,t])=>{ot[t]=e});function Rn(e){const t=new de(e),n=Qt(de.prototype.request,t);return c.extend(n,de.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Rn(pe(e,s))},n}const N=Rn(_e);N.Axios=de;N.CanceledError=Se;N.CancelToken=as;N.isCancel=hn;N.VERSION=bn;N.toFormData=He;N.AxiosError=S;N.Cancel=N.CanceledError;N.all=function(t){return Promise.all(t)};N.spread=cs;N.isAxiosError=us;N.mergeConfig=pe;N.AxiosHeaders=H;N.formToJSON=e=>pn(c.isHTMLForm(e)?new FormData(e):e);N.getAdapter=Sn.getAdapter;N.HttpStatusCode=ot;N.default=N;const{Axios:zs,AxiosError:Js,CanceledError:Ks,isCancel:Gs,CancelToken:Xs,VERSION:Ys,all:Qs,Cancel:Zs,isAxiosError:eo,spread:to,toFormData:no,AxiosHeaders:ro,HttpStatusCode:so,formToJSON:oo,getAdapter:io,mergeConfig:ao}=N;var Ne={exports:{}},Ke={};var Mt;function ls(){if(Mt)return Ke;Mt=1;var e=x;function t(p,E){return p===E&&(p!==0||1/p===1/E)||p!==p&&E!==E}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(p,E){var y=E(),u=r({inst:{value:y,getSnapshot:E}}),m=u[0].inst,h=u[1];return i(function(){m.value=y,m.getSnapshot=E,d(m)&&h({inst:m})},[p,y,E]),s(function(){return d(m)&&h({inst:m}),p(function(){d(m)&&h({inst:m})})},[p]),o(y),y}function d(p){var E=p.getSnapshot;p=p.value;try{var y=E();return!n(p,y)}catch{return!0}}function f(p,E){return E()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:a;return Ke.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,Ke}var Ge={};var Vt;function fs(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&(function(){function e(y,u){return y===u&&(y!==0||1/y===1/u)||y!==y&&u!==u}function t(y,u){l||s.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=u();if(!p){var h=u();i(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}h=o({inst:{value:m,getSnapshot:u}});var b=h[0].inst,w=h[1];return d(function(){b.value=m,b.getSnapshot=u,n(b)&&w({inst:b})},[y,m,u]),a(function(){return n(b)&&w({inst:b}),y(function(){n(b)&&w({inst:b})})},[y]),f(m),m}function n(y){var u=y.getSnapshot;y=y.value;try{var m=u();return!i(y,m)}catch{return!0}}function r(y,u){return u()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=x,i=typeof Object.is=="function"?Object.is:e,o=s.useState,a=s.useEffect,d=s.useLayoutEffect,f=s.useDebugValue,l=!1,p=!1,E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Ge.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ge}var $t;function ds(){return $t||($t=1,process.env.NODE_ENV==="production"?Ne.exports=ls():Ne.exports=fs()),Ne.exports}var Wt=ds();const On=0,Tn=1,An=2,zt=3;var Jt=Object.prototype.hasOwnProperty;function it(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&it(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Jt.call(e,n)&&++r&&!Jt.call(t,n)||!(n in t)||!it(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const ae=new WeakMap,ce=()=>{},I=ce(),at=Object,g=e=>e===I,ee=e=>typeof e=="function",ue=(e,t)=>({...e,...t}),_n=e=>ee(e.then),Xe={},Fe={},wt="undefined",Ce=typeof window!=wt,ct=typeof document!=wt,ps=Ce&&"Deno"in window,hs=()=>Ce&&typeof window.requestAnimationFrame!=wt,Cn=(e,t)=>{const n=ae.get(e);return[()=>!g(t)&&e.get(t)||Xe,r=>{if(!g(t)){const s=e.get(t);t in Fe||(Fe[t]=s),n[5](t,ue(s,r),s||Xe)}},n[6],()=>!g(t)&&t in Fe?Fe[t]:!g(t)&&e.get(t)||Xe]};let ut=!0;const ms=()=>ut,[lt,ft]=Ce&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ce,ce],Es=()=>{const e=ct&&document.visibilityState;return g(e)||e!=="hidden"},ys=e=>(ct&&document.addEventListener("visibilitychange",e),lt("focus",e),()=>{ct&&document.removeEventListener("visibilitychange",e),ft("focus",e)}),ws=e=>{const t=()=>{ut=!0,e()},n=()=>{ut=!1};return lt("online",t),lt("offline",n),()=>{ft("online",t),ft("offline",n)}},Ss={isOnline:ms,isVisible:Es},bs={initFocus:ys,initReconnect:ws},Kt=!x.useId,Ee=!Ce||ps,gs=e=>hs()?window.requestAnimationFrame(e):setTimeout(e,1),Ye=Ee?x.useEffect:x.useLayoutEffect,Qe=typeof navigator<"u"&&navigator.connection,Gt=!Ee&&Qe&&(["slow-2g","2g"].includes(Qe.effectiveType)||Qe.saveData),Pe=new WeakMap,Rs=e=>at.prototype.toString.call(e),Ze=(e,t)=>e===`[object ${t}]`;let Os=0;const dt=e=>{const t=typeof e,n=Rs(e),r=Ze(n,"Date"),s=Ze(n,"RegExp"),i=Ze(n,"Object");let o,a;if(at(e)===e&&!r&&!s){if(o=Pe.get(e),o)return o;if(o=++Os+"~",Pe.set(e,o),Array.isArray(e)){for(o="@",a=0;a<e.length;a++)o+=dt(e[a])+",";Pe.set(e,o)}if(i){o="#";const d=at.keys(e).sort();for(;!g(a=d.pop());)g(e[a])||(o+=a+":"+dt(e[a])+",");Pe.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},St=e=>{if(ee(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?dt(e):"",[e,t]};let Ts=0;const pt=()=>++Ts;async function xn(...e){const[t,n,r,s]=e,i=ue({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=i.populateCache;const a=i.rollbackOnError;let d=i.optimisticData;const f=E=>typeof a=="function"?a(E):a!==!1,l=i.throwOnError;if(ee(n)){const E=n,y=[],u=t.keys();for(const m of u)!/^\$(inf|sub)\$/.test(m)&&E(t.get(m)._k)&&y.push(m);return Promise.all(y.map(p))}return p(n);async function p(E){const[y]=St(E);if(!y)return;const[u,m]=Cn(t,y),[h,b,w,A]=ae.get(t),D=()=>{const P=h[y];return(ee(i.revalidate)?i.revalidate(u().data,E):i.revalidate!==!1)&&(delete w[y],delete A[y],P&&P[0])?P[0](An).then(()=>u().data):u().data};if(e.length<3)return D();let R=r,v,_=!1;const Y=pt();b[y]=[Y,0];const O=!g(d),te=u(),M=te.data,z=te._c,V=g(z)?M:z;if(O&&(d=ee(d)?d(V,M):d,m({data:d,_c:V})),ee(R))try{R=R(V)}catch(P){v=P,_=!0}if(R&&_n(R))if(R=await R.catch(P=>{v=P,_=!0}),Y!==b[y][0]){if(_)throw v;return R}else _&&O&&f(v)&&(o=!0,m({data:V,_c:I}));if(o&&!_)if(ee(o)){const P=o(R,V);m({data:P,error:I,_c:I})}else m({data:R,error:I,_c:I});if(b[y][1]=pt(),Promise.resolve(D()).then(()=>{m({_c:I})}),_){if(l)throw v;return}return R}}const Xt=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},As=(e,t)=>{if(!ae.has(e)){const n=ue(bs,t),r=Object.create(null),s=xn.bind(I,e);let i=ce;const o=Object.create(null),a=(l,p)=>{const E=o[l]||[];return o[l]=E,E.push(p),()=>E.splice(E.indexOf(p),1)},d=(l,p,E)=>{e.set(l,p);const y=o[l];if(y)for(const u of y)u(p,E)},f=()=>{if(!ae.has(e)&&(ae.set(e,[r,Object.create(null),Object.create(null),Object.create(null),s,d,a]),!Ee)){const l=n.initFocus(setTimeout.bind(I,Xt.bind(I,r,On))),p=n.initReconnect(setTimeout.bind(I,Xt.bind(I,r,Tn)));i=()=>{l&&l(),p&&p(),ae.delete(e)}}};return f(),[e,s,f,i]}return[e,ae.get(e)[4]]},_s=(e,t,n,r,s)=>{const i=n.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!g(i)&&o>i||setTimeout(r,a,s)},Cs=it,[Dn,xs]=As(new Map),Ds=ue({onLoadingSlow:ce,onSuccess:ce,onError:ce,onErrorRetry:_s,onDiscarded:ce,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Gt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Gt?5e3:3e3,compare:Cs,isPaused:()=>!1,cache:Dn,mutate:xs,fallback:{}},Ss),Ls=(e,t)=>{const n=ue(e,t);if(t){const{use:r,fallback:s}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),s&&o&&(n.fallback=ue(s,o))}return n},Ns=x.createContext({}),Fs="$inf$",Ln=Ce&&window.__SWR_DEVTOOLS_USE__,Ps=Ln?window.__SWR_DEVTOOLS_USE__:[],vs=()=>{Ln&&(window.__SWR_DEVTOOLS_REACT__=x)},Us=e=>ee(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Is=()=>{const e=x.useContext(Ns);return x.useMemo(()=>ue(Ds,e),[e])},Bs=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=St(t),[,,,a]=ae.get(Dn);if(o.startsWith(Fs))return n(...i);const d=a[o];return g(d)?n(...i):(delete a[o],d)}),r),js=Ps.concat(Bs),ks=e=>function(...n){const r=Is(),[s,i,o]=Us(n),a=Ls(r,o);let d=e;const{use:f}=a,l=(f||[]).concat(js);for(let p=l.length;p--;)d=l[p](d);return d(s,i||a.fetcher||null,a)},qs=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s>=0&&(r[s]=r[r.length-1],r.pop())}};vs();const et=x.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),tt={dedupe:!0},Yt=Promise.resolve(I),Hs=(e,t,n)=>{const{cache:r,compare:s,suspense:i,fallbackData:o,revalidateOnMount:a,revalidateIfStale:d,refreshInterval:f,refreshWhenHidden:l,refreshWhenOffline:p,keepPreviousData:E,strictServerPrefetchWarning:y}=n,[u,m,h,b]=ae.get(r),[w,A]=St(e),D=x.useRef(!1),R=x.useRef(!1),v=x.useRef(w),_=x.useRef(t),Y=x.useRef(n),O=()=>Y.current,te=()=>O().isVisible()&&O().isOnline(),[M,z,V,P]=Cn(r,w),ne=x.useRef({}).current,j=g(o)?g(n.fallback)?I:n.fallback[w]:o,be=(T,C)=>{for(const F in ne){const L=F;if(L==="data"){if(!s(T[L],C[L])&&(!g(T[L])||!s(De,C[L])))return!1}else if(C[L]!==T[L])return!1}return!0},J=x.useMemo(()=>{const T=!w||!t?!1:g(a)?O().isPaused()||i?!1:d!==!1:a,C=k=>{const oe=ue(k);return delete oe._k,T?{isValidating:!0,isLoading:!0,...oe}:oe},F=M(),L=P(),G=C(F),me=F===L?G:C(L);let U=G;return[()=>{const k=C(M());return be(k,U)?(U.data=k.data,U.isLoading=k.isLoading,U.isValidating=k.isValidating,U.error=k.error,U):(U=k,k)},()=>me]},[r,w]),re=Wt.useSyncExternalStore(x.useCallback(T=>V(w,(C,F)=>{be(F,C)||T()}),[r,w]),J[0],J[1]),xe=!D.current,Q=u[w]&&u[w].length>0,$=re.data,K=g($)?j&&_n(j)?et(j):j:$,se=re.error,he=x.useRef(K),De=E?g($)?g(he.current)?K:he.current:$:K,le=w&&g(K),Nn=!Ee&&Wt.useSyncExternalStore(()=>ce,()=>!1,()=>!0);y&&Nn&&!i&&le&&console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const bt=Q&&!g(se)?!1:xe&&!g(a)?a:O().isPaused()?!1:i?g(K)?!1:d:g(K)||d,gt=!!(w&&t&&xe&&bt),Fn=g(re.isValidating)?gt:re.isValidating,Pn=g(re.isLoading)?gt:re.isLoading,ge=x.useCallback(async T=>{const C=_.current;if(!w||!C||R.current||O().isPaused())return!1;let F,L,G=!0;const me=T||{},U=!h[w]||!me.dedupe,k=()=>Kt?!R.current&&w===v.current&&D.current:w===v.current,oe={isValidating:!1,isLoading:!1},Ot=()=>{z(oe)},Tt=()=>{const W=h[w];W&&W[1]===L&&delete h[w]},At={isValidating:!0};g(M().data)&&(At.isLoading=!0);try{if(U&&(z(At),n.loadingTimeout&&g(M().data)&&setTimeout(()=>{G&&k()&&O().onLoadingSlow(w,n)},n.loadingTimeout),h[w]=[C(A),pt()]),[F,L]=h[w],F=await F,U&&setTimeout(Tt,n.dedupingInterval),!h[w]||h[w][1]!==L)return U&&k()&&O().onDiscarded(w),!1;oe.error=I;const W=m[w];if(!g(W)&&(L<=W[0]||L<=W[1]||W[1]===0))return Ot(),U&&k()&&O().onDiscarded(w),!1;const ie=M().data;oe.data=s(ie,F)?ie:F,U&&k()&&O().onSuccess(F,w,n)}catch(W){Tt();const ie=O(),{shouldRetryOnError:Ve}=ie;ie.isPaused()||(oe.error=W,U&&k()&&(ie.onError(W,w,ie),(Ve===!0||ee(Ve)&&Ve(W))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||te())&&ie.onErrorRetry(W,w,ie,vn=>{const $e=u[w];$e&&$e[0]&&$e[0](zt,vn)},{retryCount:(me.retryCount||0)+1,dedupe:!0})))}return G=!1,Ot(),!0},[w,r]),Rt=x.useCallback((...T)=>xn(r,v.current,...T),[]);if(Ye(()=>{_.current=t,Y.current=n,g($)||(he.current=$)}),Ye(()=>{if(!w)return;const T=ge.bind(I,tt);let C=0;O().revalidateOnFocus&&(C=Date.now()+O().focusThrottleInterval);const L=qs(w,u,(G,me={})=>{if(G==On){const U=Date.now();O().revalidateOnFocus&&U>C&&te()&&(C=U+O().focusThrottleInterval,T())}else if(G==Tn)O().revalidateOnReconnect&&te()&&T();else{if(G==An)return ge();if(G==zt)return ge(me)}});return R.current=!1,v.current=w,D.current=!0,z({_k:A}),bt&&(h[w]||(g(K)||Ee?T():gs(T))),()=>{R.current=!0,L()}},[w]),Ye(()=>{let T;function C(){const L=ee(f)?f(M().data):f;L&&T!==-1&&(T=setTimeout(F,L))}function F(){!M().error&&(l||O().isVisible())&&(p||O().isOnline())?ge(tt).then(C):C()}return C(),()=>{T&&(clearTimeout(T),T=-1)}},[f,l,p,w]),x.useDebugValue(De),i){if(!Kt&&Ee&&le)throw new Error("Fallback data is required when using Suspense in SSR.");le&&(_.current=t,Y.current=n,R.current=!1);const T=b[w],C=!g(T)&&le?Rt(T):Yt;if(et(C),!g(se)&&le)throw se;const F=le?ge(tt):Yt;!g(De)&&le&&(F.status="fulfilled",F.value=!0),et(F)}return{mutate:Rt,get data(){return ne.data=!0,De},get error(){return ne.error=!0,se},get isValidating(){return ne.isValidating=!0,Fn},get isLoading(){return ne.isLoading=!0,Pn}}},Ms=ks(Hs);exports.axios=N;exports.useSWR=Ms;