/*! For license information please see 375.ac3798cd.js.LICENSE.txt */
"use strict";(self.webpackChunkspa=self.webpackChunkspa||[]).push([["375"],{306(t,e,r){r.d(e,{A:()=>k});classoextendsError{response;request;options;constructor(t,e,r){consto=t.status||0===t.status?t.status:"",s=t.statusText??"",i=`${o}${s}`.trim();super(`Request failed with ${i?`status code ${i}`:"an unknown error"}: ${e.method}${e.url}`),this.name="HTTPError",this.response=t,this.request=e,this.options=r}}classsextendsError{name="NonError";value;constructor(t){lete="Non-error value was thrown";try{"string"==typeoft?e=t:t&&"object"==typeoft&&"message"int&&"string"==typeoft.message&&(e=t.message)}catch{}super(e),this.value=t}}classiextendsError{name="ForceRetryError";customDelay;code;customRequest;constructor(t){conste=t?.cause?t.causeinstanceofError?t.cause:news(t.cause):void0;super(t?.code?`Forced retry: ${t.code}`:"Forced retry",e?{cause:e}:void0),this.customDelay=t?.delay,this.code=t?.code,this.customRequest=t?.request}}letn=(()=>{lett=!1,e=!1,r="function"==typeofglobalThis.Request;if("function"==typeofglobalThis.ReadableStream&&r)try{e=newglobalThis.Request("https://empty.invalid",{body:newglobalThis.ReadableStream,method:"POST",getduplex(){returnt=!0,"half"}}).headers.has("Content-Type")}catch(t){if(tinstanceofError&&"unsupported BodyInit type"===t.message)return!1;throwt}returnt&&!e})(),a="function"==typeofglobalThis.AbortController,h="function"==typeofglobalThis.AbortSignal&&"function"==typeofglobalThis.AbortSignal.any,l="function"==typeofglobalThis.ReadableStream,u="function"==typeofglobalThis.FormData,p=["get","post","put","patch","head","delete"],f={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},c=newTextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,d=Symbol("stop");classy{options;constructor(t){this.options=t}}letb=t=>newy(t),g={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},m={next:!0},w={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},R=(t,e,r)=>{leto,s=0;returnt.pipeThrough(newTransformStream({transform(t,i){if(i.enqueue(t),o){s+=o.byteLength;lett=0===e?0:s/e;t>=1&&(t=1-Number.EPSILON),r?.({percent:t,totalBytes:Math.max(e,s),transferredBytes:s},o)}o=t},flush(){o&&(s+=o.byteLength,r?.({percent:1,totalBytes:Math.max(e,s),transferredBytes:s},o))}}))},T=t=>null!==t&&"object"==typeoft,q=(...t)=>{for(leteoft)if((!T(e)||Array.isArray(e))&&void0!==e)throwTypeError("The `options` argument must be an object");returnS({},...t)},x=(t={},e={})=>{letr=newglobalThis.Headers(t),o=einstanceofglobalThis.Headers;for(let[t,s]ofnewglobalThis.Headers(e).entries())o&&"undefined"===s||void0===s?r.delete(t):r.set(t,s);returnr};functionP(t,e,r){returnObject.hasOwn(e,r)&&void0===e[r]?[]:S(t[r]??[],e[r]??[])}letA=(t={},e={})=>({beforeRequest:P(t,e,"beforeRequest"),beforeRetry:P(t,e,"beforeRetry"),afterResponse:P(t,e,"afterResponse"),beforeError:P(t,e,"beforeError")}),E=(t,e)=>{letr=newURLSearchParams;for(letoof[t,e])if(void0!==o)if(oinstanceofURLSearchParams)for(let[t,e]ofo.entries())r.append(t,e);elseif(Array.isArray(o))for(lettofo){if(!Array.isArray(t)||2!==t.length)throwTypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(t[0]),String(t[1]))}elseif(T(o))for(let[t,e]ofObject.entries(o))void0!==e&&r.append(t,String(e));elsefor(let[t,e]ofnewURLSearchParams(o).entries())r.append(t,e);returnr},S=(...t)=>{lete,r={},o={},s={},i=[];for(letnoft)if(Array.isArray(n))Array.isArray(r)||(r=[]),r=[...r,...n];elseif(T(n)){for(let[t,o]ofObject.entries(n)){if("signal"===t&&oinstanceofglobalThis.AbortSignal){i.push(o);continue}if("context"===t){if(null!=o&&(!T(o)||Array.isArray(o)))throwTypeError("The `context` option must be an object");r={...r,context:null==o?{}:{...r.context,...o}};continue}if("searchParams"===t){e=null==o?void0:void0===e?o:E(e,o);continue}T(o)&&tinr&&(o=S(r[t],o)),r={...r,[t]:o}}T(n.hooks)&&(s=A(s,n.hooks),r.hooks=s),T(n.headers)&&(o=x(o,n.headers),r.headers=o)}returnvoid0!==e&&(r.searchParams=e),i.length>0&&(1===i.length?r.signal=i[0]:h?r.signal=AbortSignal.any(i):r.signal=i.at(-1)),void0===r.context&&(r.context={}),r},v={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:t=>.3*2**(t-1)*1e3,jitter:void0,retryOnTimeout:!1};classCextendsError{request;constructor(t){super(`Request timed out: ${t.method}${t.url}`),this.name="TimeoutError",this.request=t}}asyncfunctionj(t,e,r,o){returnnewPromise((s,i)=>{letn=setTimeout(()=>{r&&r.abort(),i(newC(t))},o.timeout);o.fetch(t,e).then(s).catch(i).then(()=>{clearTimeout(n)})})}asyncfunctionO(t,{signal:e}){returnnewPromise((r,o)=>{functions(){clearTimeout(i),o(e.reason)}e&&(e.throwIfAborted(),e.addEventListener("abort",s,{once:!0}));leti=setTimeout(()=>{e?.removeEventListener("abort",s),r()},t)})}classU{staticcreate(t,e){letr=newU(t,e),s=async()=>{if("number"==typeofr.#t.timeout&&r.#t.timeout>0x7fffffff)throwRangeError("The `timeout` option cannot be greater than 2147483647");awaitPromise.resolve();lett=awaitr.#e();for(leteofr.#t.hooks.afterResponse){leto=r.#r(t.clone()),s=awaite(r.request,r.#o(),o,{retryCount:r.#s});if(sinstanceofglobalThis.Response&&(t=s),sinstanceofy)throwawaitPromise.all([o.body?.cancel(),t.body?.cancel()]),newi(s.options)}if(r.#r(t),!t.ok&&("function"==typeofr.#t.throwHttpErrors?r.#t.throwHttpErrors(t.status):r.#t.throwHttpErrors)){lete=newo(t,r.request,r.#o());for(lettofr.#t.hooks.beforeError)e=awaitt(e,{retryCount:r.#s});throwe}if(r.#t.onDownloadProgress){if("function"!=typeofr.#t.onDownloadProgress)throwTypeError("The `onDownloadProgress` option must be a function");if(!l)throwError("Streams are not supported in your environment. `ReadableStream` is missing.");return((t,e)=>{if(!t.body)returnt;if(204===t.status)returnnewResponse(null,{status:t.status,statusText:t.statusText,headers:t.headers});letr=Math.max(0,Number(t.headers.get("content-length"))||0);returnnewResponse(R(t.body,r,e),{status:t.status,statusText:t.statusText,headers:t.headers})})(t.clone(),r.#t.onDownloadProgress)}returnt},n=r.#i(s).finally(async()=>{lett=r.#n,e=[];t&&!t.bodyUsed&&e.push(t.body?.cancel()),r.request.bodyUsed||e.push(r.request.body?.cancel()),awaitPromise.all(e)});for(let[t,o]ofObject.entries(f))("bytes"!==t||"function"==typeofglobalThis.Response?.prototype?.bytes)&&(n[t]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||o);lets=awaitn;if("json"===t){if(204===s.status)return"";lett=awaits.text();return""===t?"":e.parseJson?e.parseJson(t):JSON.parse(t)}returns[t]()});returnn}static#a(t){return!t||"object"!=typeoft||Array.isArray(t)||tinstanceofURLSearchParams?t:Object.fromEntries(Object.entries(t).filter(([,t])=>void0!==t))}request;#h;#s=0;#l;#t;#n;#u;#p;constructor(t,e={}){if(this.#l=t,this.#t={...e,headers:x(this.#l.headers,e.headers),hooks:A({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},e.hooks),method:(t=>p.includes(t)?t.toUpperCase():t)(e.method??this.#l.method??"GET"),prefixUrl:String(e.prefixUrl||""),retry:((t={})=>{if("number"==typeoft)return{...v,limit:t};if(t.methods&&!Array.isArray(t.methods))throwError("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throwError("retry.statusCodes must be an array");lete=Object.fromEntries(Object.entries(t).filter(([,t])=>void0!==t));return{...v,...e}})(e.retry),throwHttpErrors:e.throwHttpErrors??!0,timeout:e.timeout??1e4,fetch:e.fetch??globalThis.fetch.bind(globalThis),context:e.context??{}},"string"!=typeofthis.#l&&!(this.#linstanceofURL||this.#linstanceofglobalThis.Request))throwTypeError("`input` must be a string, URL, or Request");if(this.#t.prefixUrl&&"string"==typeofthis.#l){if(this.#l.startsWith("/"))throwError("`input` must not begin with a slash when using `prefixUrl`");this.#t.prefixUrl.endsWith("/")||(this.#t.prefixUrl+="/"),this.#l=this.#t.prefixUrl+this.#l}a&&h&&(this.#u=this.#t.signal??this.#l.signal,this.#h=newglobalThis.AbortController,this.#t.signal=this.#u?AbortSignal.any([this.#u,this.#h.signal]):this.#h.signal),n&&(this.#t.duplex="half"),void0!==this.#t.json&&(this.#t.body=this.#t.stringifyJson?.(this.#t.json)??JSON.stringify(this.#t.json),this.#t.headers.set("content-type",this.#t.headers.get("content-type")??"application/json"));constr=e.headers&&newglobalThis.Headers(e.headers).has("content-type");if(this.#linstanceofglobalThis.Request&&(u&&this.#t.bodyinstanceofglobalThis.FormData||this.#t.bodyinstanceofURLSearchParams)&&!r&&this.#t.headers.delete("content-type"),this.request=newglobalThis.Request(this.#l,this.#t),(t=>void0!==t&&(Array.isArray(t)?t.length>0:tinstanceofURLSearchParams?t.size>0:"object"==typeoft?Object.keys(t).length>0:"string"==typeoft?t.trim().length>0:!!t))(this.#t.searchParams)){constt="string"==typeofthis.#t.searchParams?this.#t.searchParams.replace(/^\?/,""):newURLSearchParams(U.#a(this.#t.searchParams)).toString(),e=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+t);this.request=newglobalThis.Request(e,this.#t)}if(this.#t.onUploadProgress){if("function"!=typeofthis.#t.onUploadProgress)throwTypeError("The `onUploadProgress` option must be a function");if(!n)throwError("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#f(this.request,this.#t.body??void0)}}#c(){lett=this.#t.retry.delay(this.#s),e=t;return!0===this.#t.retry.jitter?e=Math.random()*t:"function"==typeofthis.#t.retry.jitter&&(!Number.isFinite(e=this.#t.retry.jitter(t))||e<0)&&(e=t),Math.min(this.#t.retry.backoffLimit??1/0,e)}async#d(t){if(this.#s++,this.#s>this.#t.retry.limit)throwt;lete=tinstanceofError?t:news(t);if(einstanceofi)returne.customDelay??this.#c();if(!this.#t.retry.methods.includes(this.request.method.toLowerCase()))throwt;if(void0!==this.#t.retry.shouldRetry){letr=awaitthis.#t.retry.shouldRetry({error:e,retryCount:this.#s});if(!1===r)throwt;if(!0===r)returnthis.#c()}if((tinstanceofC||t?.name===C.name)&&!this.#t.retry.retryOnTimeout)throwt;if(tinstanceofo||t?.name===o.name){if(!this.#t.retry.statusCodes.includes(t.response.status))throwt;lete=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(e&&this.#t.retry.afterStatusCodes.includes(t.response.status)){lett=1e3*Number(e);Number.isNaN(t)?t=Date.parse(e)-Date.now():t>=Date.parse("2024-01-01")&&(t-=Date.now());letr=this.#t.retry.maxRetryAfter??t;returnt<r?t:r}if(413===t.response.status)throwt}returnthis.#c()}#r(t){returnthis.#t.parseJson&&(t.json=async()=>this.#t.parseJson(awaitt.text())),t}async#i(t){try{returnawaitt()}catch(r){lete=Math.min(awaitthis.#d(r),0x7fffffff);if(this.#s<1)throwr;if(awaitO(e,this.#u?{signal:this.#u}:{}),rinstanceofi&&r.customRequest){lett=this.#t.signal?newglobalThis.Request(r.customRequest,{signal:this.#t.signal}):newglobalThis.Request(r.customRequest);this.#y(t)}for(lettofthis.#t.hooks.beforeRetry){lete=awaitt({request:this.request,options:this.#o(),error:r,retryCount:this.#s});if(einstanceofglobalThis.Request){this.#y(e);break}if(einstanceofglobalThis.Response)returne;if(e===d)return}returnthis.#i(t)}}async#e(){for(lettof(this.#h?.signal.aborted&&(this.#h=newglobalThis.AbortController,this.#t.signal=this.#u?AbortSignal.any([this.#u,this.#h.signal]):this.#h.signal,this.request=newglobalThis.Request(this.request,{signal:this.#t.signal})),this.#t.hooks.beforeRequest)){lete=awaitt(this.request,this.#o(),{retryCount:this.#s});if(einstanceofResponse)returne;if(einstanceofglobalThis.Request){this.#y(e);break}}lett=((t,e)=>{letr={};for(letoine)Object.hasOwn(e,o)&&(oinw||oing||oint&&!(oinm)||(r[o]=e[o]));returnr})(this.request,this.#t);return(this.#n=this.request,this.request=this.#n.clone(),!1===this.#t.timeout)?this.#t.fetch(this.#n,t):j(this.#n,t,this.#h,this.#t)}#o(){if(!this.#p){let{hooks:t,...e}=this.#t;this.#p=Object.freeze(e)}returnthis.#p}#y(t){this.#p=void0,this.request=this.#f(t)}#f(t,e){returnthis.#t.onUploadProgress&&t.body?((t,e,r)=>{if(!t.body)returnt;leto=(t=>{if(!t)return0;if(tinstanceofFormData){lete=0;for(let[r,o]oft)e+=c,e+=newTextEncoder().encode(`Content-Disposition: form-data; name="${r}"`).length,e+="string"==typeofo?newTextEncoder().encode(o).length:o.size;returne}if(tinstanceofBlob)returnt.size;if(tinstanceofArrayBuffer)returnt.byteLength;if("string"==typeoft)returnnewTextEncoder().encode(t).length;if(tinstanceofURLSearchParams)returnnewTextEncoder().encode(t.toString()).length;if("byteLength"int)returnt.byteLength;if("object"==typeoft&&null!==t)try{lete=JSON.stringify(t);returnnewTextEncoder().encode(e).length}catch{}return0})(r??t.body);returnnewRequest(t,{duplex:"half",body:R(t.body,o,e)})})(t,this.#t.onUploadProgress,e??this.#t.body??void0):t}}letL=t=>{lete=(e,r)=>U.create(e,q(t,r));for(letrofp)e[r]=(e,o)=>U.create(e,q(t,o,{method:r}));returne.create=t=>L(q(t)),e.extend=e=>("function"==typeofe&&(e=e(t??{})),L(q(t,e))),e.stop=d,e.retry=b,e},k=L()}}]);