pangea-lib 4.0.315 → 4.0.317

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs.js CHANGED
@@ -3,7 +3,7 @@
3
3
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(D){return D instanceof this?D:new this(D)}static concat(D,...q){const X=new this(D);return q.forEach(J=>X.set(J)),X}static accessor(D){const q=(this[T2]=this[T2]={accessors:{}}).accessors,X=this.prototype;function J(n1){const a1=h2(n1);q[a1]||(function(z1,w1){const H1=A.toCamelCase(" "+w1);["get","set","has"].forEach(k1=>{Object.defineProperty(z1,k1+H1,{value:function(O1,P1,Z1){return this[k1].call(this,w1,O1,P1,Z1)},configurable:!0})})}(X,n1),q[a1]=!0)}return A.isArray(D)?D.forEach(J):J(D),this}}u1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(u1.prototype,({value:I},D)=>{let q=D[0].toUpperCase()+D.slice(1);return{get:()=>I,set(X){this[q]=X}}}),A.freezeMethods(u1);var o1=u1;function _1(I,D){const q=this||q1,X=D||q,J=o1.from(X.headers);let n1=X.data;return A.forEach(I,function(a1){n1=a1.call(q,n1,J.normalize(),D?D.status:void 0)}),J.normalize(),n1}function L1(I){return!(!I||!I.__CANCEL__)}function W1(I,D,q){R.call(this,I??"canceled",R.ERR_CANCELED,D,q),this.name="CanceledError"}A.inherits(W1,R,{__CANCEL__:!0});var g2=G1.hasStandardBrowserEnv?{write(I,D,q,X,J,n1){const a1=[I+"="+encodeURIComponent(D)];A.isNumber(q)&&a1.push("expires="+new Date(q).toGMTString()),A.isString(X)&&a1.push("path="+X),A.isString(J)&&a1.push("domain="+J),n1===!0&&a1.push("secure"),document.cookie=a1.join("; ")},read(I){const D=document.cookie.match(new RegExp("(^|;\\s*)("+I+")=([^;]*)"));return D?decodeURIComponent(D[3]):null},remove(I){this.write(I,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function V2(I,D){return I&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(D)?function(q,X){return X?q.replace(/\/?\/$/,"")+"/"+X.replace(/^\/+/,""):q}(I,D):D}var B3=G1.hasStandardBrowserEnv?function(){const I=/(msie|trident)/i.test(navigator.userAgent),D=document.createElement("a");let q;function X(J){let n1=J;return I&&(D.setAttribute("href",n1),n1=D.href),D.setAttribute("href",n1),{href:D.href,protocol:D.protocol?D.protocol.replace(/:$/,""):"",host:D.host,search:D.search?D.search.replace(/^\?/,""):"",hash:D.hash?D.hash.replace(/^#/,""):"",hostname:D.hostname,port:D.port,pathname:D.pathname.charAt(0)==="/"?D.pathname:"/"+D.pathname}}return q=X(window.location.href),function(J){const n1=A.isString(J)?X(J):J;return n1.protocol===q.protocol&&n1.host===q.host}}():function(){return!0};function he(I,D){let q=0;const X=function(J,n1){J=J||10;const a1=new Array(J),z1=new Array(J);let w1,H1=0,k1=0;return n1=n1!==void 0?n1:1e3,function(O1){const P1=Date.now(),Z1=z1[k1];w1||(w1=P1),a1[H1]=O1,z1[H1]=P1;let I1=k1,J1=0;for(;I1!==H1;)J1+=a1[I1++],I1%=J;if(H1=(H1+1)%J,H1===k1&&(k1=(k1+1)%J),P1-w1<n1)return;const v2=Z1&&P1-Z1;return v2?Math.round(1e3*J1/v2):void 0}}(50,250);return J=>{const n1=J.loaded,a1=J.lengthComputable?J.total:void 0,z1=n1-q,w1=X(z1);q=n1;const H1={loaded:n1,total:a1,progress:a1?n1/a1:void 0,bytes:z1,rate:w1||void 0,estimated:w1&&a1&&n1<=a1?(a1-n1)/w1:void 0,event:J};H1[D?"download":"upload"]=!0,I(H1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(I){return new Promise(function(D,q){let X=I.data;const J=o1.from(I.headers).normalize();let n1,a1,{responseType:z1,withXSRFToken:w1}=I;function H1(){I.cancelToken&&I.cancelToken.unsubscribe(n1),I.signal&&I.signal.removeEventListener("abort",n1)}if(A.isFormData(X)){if(G1.hasStandardBrowserEnv||G1.hasStandardBrowserWebWorkerEnv)J.setContentType(!1);else if((a1=J.getContentType())!==!1){const[I1,...J1]=a1?a1.split(";").map(v2=>v2.trim()).filter(Boolean):[];J.setContentType([I1||"multipart/form-data",...J1].join("; "))}}let k1=new XMLHttpRequest;if(I.auth){const I1=I.auth.username||"",J1=I.auth.password?unescape(encodeURIComponent(I.auth.password)):"";J.set("Authorization","Basic "+btoa(I1+":"+J1))}const O1=V2(I.baseURL,I.url);function P1(){if(!k1)return;const I1=o1.from("getAllResponseHeaders"in k1&&k1.getAllResponseHeaders());(function(J1,v2,X2){const Os=X2.config.validateStatus;X2.status&&Os&&!Os(X2.status)?v2(new R("Request failed with status code "+X2.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(X2.status/100)-4],X2.config,X2.request,X2)):J1(X2)})(function(J1){D(J1),H1()},function(J1){q(J1),H1()},{data:z1&&z1!=="text"&&z1!=="json"?k1.response:k1.responseText,status:k1.status,statusText:k1.statusText,headers:I1,config:I,request:k1}),k1=null}if(k1.open(I.method.toUpperCase(),p1(O1,I.params,I.paramsSerializer),!0),k1.timeout=I.timeout,"onloadend"in k1?k1.onloadend=P1:k1.onreadystatechange=function(){k1&&k1.readyState===4&&(k1.status!==0||k1.responseURL&&k1.responseURL.indexOf("file:")===0)&&setTimeout(P1)},k1.onabort=function(){k1&&(q(new R("Request aborted",R.ECONNABORTED,I,k1)),k1=null)},k1.onerror=function(){q(new R("Network Error",R.ERR_NETWORK,I,k1)),k1=null},k1.ontimeout=function(){let I1=I.timeout?"timeout of "+I.timeout+"ms exceeded":"timeout exceeded";const J1=I.transitional||v1;I.timeoutErrorMessage&&(I1=I.timeoutErrorMessage),q(new R(I1,J1.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,I,k1)),k1=null},G1.hasStandardBrowserEnv&&(w1&&A.isFunction(w1)&&(w1=w1(I)),w1||w1!==!1&&B3(O1))){const I1=I.xsrfHeaderName&&I.xsrfCookieName&&g2.read(I.xsrfCookieName);I1&&J.set(I.xsrfHeaderName,I1)}X===void 0&&J.setContentType(null),"setRequestHeader"in k1&&A.forEach(J.toJSON(),function(I1,J1){k1.setRequestHeader(J1,I1)}),A.isUndefined(I.withCredentials)||(k1.withCredentials=!!I.withCredentials),z1&&z1!=="json"&&(k1.responseType=I.responseType),typeof I.onDownloadProgress=="function"&&k1.addEventListener("progress",he(I.onDownloadProgress,!0)),typeof I.onUploadProgress=="function"&&k1.upload&&k1.upload.addEventListener("progress",he(I.onUploadProgress)),(I.cancelToken||I.signal)&&(n1=I1=>{k1&&(q(!I1||I1.type?new W1(null,I,k1):I1),k1.abort(),k1=null)},I.cancelToken&&I.cancelToken.subscribe(n1),I.signal&&(I.signal.aborted?n1():I.signal.addEventListener("abort",n1)));const Z1=function(I1){const J1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(I1);return J1&&J1[1]||""}(O1);Z1&&G1.protocols.indexOf(Z1)===-1?q(new R("Unsupported protocol "+Z1+":",R.ERR_BAD_REQUEST,I)):k1.send(X||null)})}};A.forEach(s2,(I,D)=>{if(I){try{Object.defineProperty(I,"name",{value:D})}catch{}Object.defineProperty(I,"adapterName",{value:D})}});const L2=I=>`- ${I}`,Qe=I=>A.isFunction(I)||I===null||I===!1;var Je=I=>{I=A.isArray(I)?I:[I];const{length:D}=I;let q,X;const J={};for(let n1=0;n1<D;n1++){let a1;if(q=I[n1],X=q,!Qe(q)&&(X=s2[(a1=String(q)).toLowerCase()],X===void 0))throw new R(`Unknown adapter '${a1}'`);if(X)break;J[a1||"#"+n1]=X}if(!X){const n1=Object.entries(J).map(([a1,z1])=>`adapter ${a1} `+(z1===!1?"is not supported by the environment":"is not available in the build"));throw new R("There is no suitable adapter to dispatch the request "+(D?n1.length>1?`since :
4
4
  `+n1.map(L2).join(`
5
5
  `):" "+L2(n1[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return X};function e4(I){if(I.cancelToken&&I.cancelToken.throwIfRequested(),I.signal&&I.signal.aborted)throw new W1(null,I)}function G4(I){return e4(I),I.headers=o1.from(I.headers),I.data=_1.call(I,I.transformRequest),["post","put","patch"].indexOf(I.method)!==-1&&I.headers.setContentType("application/x-www-form-urlencoded",!1),Je(I.adapter||q1.adapter)(I).then(function(D){return e4(I),D.data=_1.call(I,I.transformResponse,D),D.headers=o1.from(D.headers),D},function(D){return L1(D)||(e4(I),D&&D.response&&(D.response.data=_1.call(I,I.transformResponse,D.response),D.response.headers=o1.from(D.response.headers))),Promise.reject(D)})}const Z4=I=>I instanceof o1?{...I}:I;function pe(I,D){D=D||{};const q={};function X(H1,k1,O1){return A.isPlainObject(H1)&&A.isPlainObject(k1)?A.merge.call({caseless:O1},H1,k1):A.isPlainObject(k1)?A.merge({},k1):A.isArray(k1)?k1.slice():k1}function J(H1,k1,O1){return A.isUndefined(k1)?A.isUndefined(H1)?void 0:X(void 0,H1,O1):X(H1,k1,O1)}function n1(H1,k1){if(!A.isUndefined(k1))return X(void 0,k1)}function a1(H1,k1){return A.isUndefined(k1)?A.isUndefined(H1)?void 0:X(void 0,H1):X(void 0,k1)}function z1(H1,k1,O1){return O1 in D?X(H1,k1):O1 in I?X(void 0,H1):void 0}const w1={url:n1,method:n1,data:n1,baseURL:a1,transformRequest:a1,transformResponse:a1,paramsSerializer:a1,timeout:a1,timeoutMessage:a1,withCredentials:a1,withXSRFToken:a1,adapter:a1,responseType:a1,xsrfCookieName:a1,xsrfHeaderName:a1,onUploadProgress:a1,onDownloadProgress:a1,decompress:a1,maxContentLength:a1,maxBodyLength:a1,beforeRedirect:a1,transport:a1,httpAgent:a1,httpsAgent:a1,cancelToken:a1,socketPath:a1,responseEncoding:a1,validateStatus:z1,headers:(H1,k1)=>J(Z4(H1),Z4(k1),!0)};return A.forEach(Object.keys(Object.assign({},I,D)),function(H1){const k1=w1[H1]||J,O1=k1(I[H1],D[H1],H1);A.isUndefined(O1)&&k1!==z1||(q[H1]=O1)}),q}const p3={};["object","boolean","number","function","string","symbol"].forEach((I,D)=>{p3[I]=function(q){return typeof q===I||"a"+(D<1?"n ":" ")+I}});const t4={};p3.transitional=function(I,D,q){function X(J,n1){return"[Axios v1.6.8] Transitional option '"+J+"'"+n1+(q?". "+q:"")}return(J,n1,a1)=>{if(I===!1)throw new R(X(n1," has been removed"+(D?" in "+D:"")),R.ERR_DEPRECATED);return D&&!t4[n1]&&(t4[n1]=!0,console.warn(X(n1," has been deprecated since v"+D+" and will be removed in the near future"))),!I||I(J,n1,a1)}};var w4={assertOptions:function(I,D,q){if(typeof I!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const X=Object.keys(I);let J=X.length;for(;J-- >0;){const n1=X[J],a1=D[n1];if(a1){const z1=I[n1],w1=z1===void 0||a1(z1,n1,I);if(w1!==!0)throw new R("option "+n1+" must be "+w1,R.ERR_BAD_OPTION_VALUE)}else if(q!==!0)throw new R("Unknown option "+n1,R.ERR_BAD_OPTION)}},validators:p3};const r1=w4.validators;class y1{constructor(D){this.defaults=D,this.interceptors={request:new b1,response:new b1}}async request(D,q){try{return await this._request(D,q)}catch(X){if(X instanceof Error){let J;Error.captureStackTrace?Error.captureStackTrace(J={}):J=new Error;const n1=J.stack?J.stack.replace(/^.+\n/,""):"";X.stack?n1&&!String(X.stack).endsWith(n1.replace(/^.+\n.+\n/,""))&&(X.stack+=`
6
- `+n1):X.stack=n1}throw X}}_request(D,q){typeof D=="string"?(q=q||{}).url=D:q=D||{},q=pe(this.defaults,q);const{transitional:X,paramsSerializer:J,headers:n1}=q;X!==void 0&&w4.assertOptions(X,{silentJSONParsing:r1.transitional(r1.boolean),forcedJSONParsing:r1.transitional(r1.boolean),clarifyTimeoutError:r1.transitional(r1.boolean)},!1),J!=null&&(A.isFunction(J)?q.paramsSerializer={serialize:J}:w4.assertOptions(J,{encode:r1.function,serialize:r1.function},!0)),q.method=(q.method||this.defaults.method||"get").toLowerCase();let a1=n1&&A.merge(n1.common,n1[q.method]);n1&&A.forEach(["delete","get","head","post","put","patch","common"],I1=>{delete n1[I1]}),q.headers=o1.concat(a1,n1);const z1=[];let w1=!0;this.interceptors.request.forEach(function(I1){typeof I1.runWhen=="function"&&I1.runWhen(q)===!1||(w1=w1&&I1.synchronous,z1.unshift(I1.fulfilled,I1.rejected))});const H1=[];let k1;this.interceptors.response.forEach(function(I1){H1.push(I1.fulfilled,I1.rejected)});let O1,P1=0;if(!w1){const I1=[G4.bind(this),void 0];for(I1.unshift.apply(I1,z1),I1.push.apply(I1,H1),O1=I1.length,k1=Promise.resolve(q);P1<O1;)k1=k1.then(I1[P1++],I1[P1++]);return k1}O1=z1.length;let Z1=q;for(P1=0;P1<O1;){const I1=z1[P1++],J1=z1[P1++];try{Z1=I1(Z1)}catch(v2){J1.call(this,v2);break}}try{k1=G4.call(this,Z1)}catch(I1){return Promise.reject(I1)}for(P1=0,O1=H1.length;P1<O1;)k1=k1.then(H1[P1++],H1[P1++]);return k1}getUri(D){return p1(V2((D=pe(this.defaults,D)).baseURL,D.url),D.params,D.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(I){y1.prototype[I]=function(D,q){return this.request(pe(q||{},{method:I,url:D,data:(q||{}).data}))}}),A.forEach(["post","put","patch"],function(I){function D(q){return function(X,J,n1){return this.request(pe(n1||{},{method:I,headers:q?{"Content-Type":"multipart/form-data"}:{},url:X,data:J}))}}y1.prototype[I]=D(),y1.prototype[I+"Form"]=D(!0)});var h1=y1;class m1{constructor(D){if(typeof D!="function")throw new TypeError("executor must be a function.");let q;this.promise=new Promise(function(J){q=J});const X=this;this.promise.then(J=>{if(!X._listeners)return;let n1=X._listeners.length;for(;n1-- >0;)X._listeners[n1](J);X._listeners=null}),this.promise.then=J=>{let n1;const a1=new Promise(z1=>{X.subscribe(z1),n1=z1}).then(J);return a1.cancel=function(){X.unsubscribe(n1)},a1},D(function(J,n1,a1){X.reason||(X.reason=new W1(J,n1,a1),q(X.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(D){this.reason?D(this.reason):this._listeners?this._listeners.push(D):this._listeners=[D]}unsubscribe(D){if(!this._listeners)return;const q=this._listeners.indexOf(D);q!==-1&&this._listeners.splice(q,1)}static source(){let D;return{token:new m1(function(q){D=q}),cancel:D}}}var g1=m1;const M1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(M1).forEach(([I,D])=>{M1[D]=I});var N1=M1;const V1=function I(D){const q=new h1(D),X=l(h1.prototype.request,q);return A.extend(X,h1.prototype,q,{allOwnKeys:!0}),A.extend(X,q,null,{allOwnKeys:!0}),X.create=function(J){return I(pe(D,J))},X}(q1);V1.Axios=h1,V1.CanceledError=W1,V1.CancelToken=g1,V1.isCancel=L1,V1.VERSION="1.6.8",V1.toFormData=x1,V1.AxiosError=R,V1.Cancel=V1.CanceledError,V1.all=function(I){return Promise.all(I)},V1.spread=function(I){return function(D){return I.apply(null,D)}},V1.isAxiosError=function(I){return A.isObject(I)&&I.isAxiosError===!0},V1.mergeConfig=pe,V1.AxiosHeaders=o1,V1.formToJSON=I=>n2(A.isHTMLForm(I)?new FormData(I):I),V1.getAdapter=Je,V1.HttpStatusCode=N1,V1.default=V1,r.exports=V1}},c={};function n(r){var i=c[r];if(i!==void 0)return i.exports;var o=c[r]={exports:{}};return a[r].call(o.exports,o,o.exports,n),o.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(z51);var c4=z51.exports,nt;let Te=(nt=class{constructor(t){S1(this,"config");this.config=t}static init(t){if(nt.instance)throw new Error("Config is already initialized");nt.instance=new nt(t)}static getConfig(){if(!nt.instance)throw new Error("Config is not initialized. Call init() first.");return nt.instance.config}},S1(nt,"instance"),nt);const g6=o0.defineStore("pga-app-options",()=>{const e=s.ref(!1),t=s.ref({language:"es",theme:"light"}),a=s.computed({get(){return t.value.language},set(l){t.value.language=l}}),c=s.computed({get(){return t.value.theme},set(l){t.value.theme=l}});s.watch(c,()=>yX());function n(l){e.value||(e.value=!0,t.value=c4.mergeDeep(t.value,l))}function r(l){a.value=l}function i(l){c.value=l}function o(){c.value=c.value==="light"?"dark":"light"}return{options:t,language:a,theme:c,init:n,setLanguage:r,setTheme:i,changeTheme:o}},{persist:!0}),H6=o0.defineStore("pga-route",()=>{const e=s.ref(),t=s.ref(!Lo()),a=s.ref(!1),c=s.computed(()=>e.value&&Qc1(e.value)),n=s.computed(()=>c.value&&e.value&&jf(c.value,e.value.name)),r=s.computed(()=>e.value&&e.value.meta),i=s.computed(()=>{var p;return(p=r.value)==null?void 0:p.access}),o=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.withTitle)}),l=s.computed(()=>{var p;return oe((p=r.value)==null?void 0:p.description)}),f=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.noDisplayNavBars)}),u=s.computed(()=>!f.value&&t.value),d=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.useFullPage)}),h=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.noPaddingX)});return{currentRoute:e,isSideBarOpen:t,isDisplayingBanner:a,routeType:c,routeTitle:n,meta:r,access:i,withTitle:o,description:l,noDisplayNavBars:f,isDisplayingSideBar:u,useFullPage:d,noPaddingX:h}});function C51(){var c;const e=Te.getConfig().stores.useAuthStore(),t=H6().routeType,a=`auth${c4.getFirstChartInUppercase(t)}`;return((c=e[a])==null?void 0:c.accessToken)||""}async function _51(e,t,a){const c=Te.getConfig(),n=c.stores.useAuthStore(),r=`${e}s/login`,i={basicAuth:t,isLoading:a==null?void 0:a.isLoading},o=await c.api.postOne(r,void 0,i);n.setAuthUser(e,o.data);const l={name:(a==null?void 0:a.redirectToName)||c.defaultRoutes[e].auth};c.router.push(l)}async function w51(){const e=Te.getConfig(),t=e.stores.useAuthStore(),a=H6().routeType;try{const c=`${a}s/validateAccessToken`,n=await e.api.getOne(c,void 0,void 0,{noDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function QS1(e){const t=Te.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const c={name:`login${c4.getFirstChartInUppercase(e)}`};t.router.push(c)}function iF(e,t,a){const c=document.querySelector(":root"),n="--pga-",r=a!=null&&a.noConvertToKebab?e:c4.camelToKebab(e);c.style.setProperty(`${n}${r}`,t)}function qo(e){if(e)document.body.style.removeProperty("overflow"),document.body.style.removeProperty("padding-right");else{const t=window.innerWidth-document.documentElement.clientWidth;if(document.body.style.overflow="hidden",!t)return;document.body.style.paddingRight=`${t}px`}}function JS1(e,t,a="animate__"){return new Promise(c=>{const n=`${a}${t}`,r=document.querySelector(e);if(!r)return;r.classList.add(`${a}animated`,n);const i=o=>{o.stopPropagation(),r==null||r.classList.remove(`${a}animated`,n),c("Animation ended")};r.addEventListener("animationend",i,{once:!0})})}function If(e){return Object.keys(BZ).includes(e)}function H51(e,t){let a=0,c=0,n=0,r=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const o=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=o.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),c=parseInt(f),n=parseInt(u),r=parseFloat(d)}if(e.startsWith("#")){let o=e;o.length===4&&(o="#"+o[1]+o[1]+o[2]+o[2]+o[3]+o[3]);let[,l,f,u,d]=o.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,p)=>p===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,c=f,n=u,r=d}const i=t/100;return`rgba(${a}, ${c}, ${n}, ${r*i})`}function dY(e,t){const c=`color-${c4.camelToKebab(e)}`,n={noConvertToKebab:!0};iF(c,t,n);for(let r=5;r<=95;r+=5){const i=r<10?`0${r}`:r%10===0?`${r/10}`:`${r}`;iF(`${c}-0${i}`,H51(t,r),n)}}function eN1(){const e=RZ,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const tN1={es:{successfulLogout:"¡Vuelva pronto!"}},aN1={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},cN1={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},nN1={es:{INTERNAL_SERVER_ERROR:"Se ha producido un error inesperado. Intente nuevamente.",DUPLICATE_KEY:"Ya existe un registro con esta información.",FOREIGN_KEY_INTEGRITY:"El registro de referencia no es válido.",MODELS_ASSOCIATED:"No es posible eliminar el registro porque posee información vinculada.",INVALID_INPUT_DATA:"La información proporcionada no es válida.",ENTITY_NOT_FOUND:"No se ha encontrado el registro solicitado.",VOUCHER_CREATION_FAILED:"Se ha producido un error al emitir el comprobante.",INVALID_CREDENTIALS:"Las credenciales de acceso son incorrectas.",UNAUTHORIZED:"No tiene permisos para realizar esta acción."}},rN1={es:{_LOGIN:"¡Bienvenido!"}},iN1={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},oN1={es:{createEvent:"Nuevo evento",day:"Día",week:"Semana",month:"Mes",configModalTitle:"Ajustes de visualización",configBtn:"Ajustes",displayWeekends:"¿Mostrar fines de semana?",timeFrom:"Hora de inicio",timeTo:"Hora de fin",timeStep:"Intervalo (min)",timeFromDescription:"Indica la hora a la que empezará a mostrarse el calendario.",timeToDescription:"Indica la hora a la que terminará de mostrarse el calendario.",timeStepDescription:"Determina en bloques de cuántos minutos se divide la cuadrícula.",errorTimeRange:"La hora de fin debe ser posterior a la de inicio.",applyBtn:"Aplicar"}},sN1={es:{noItemsText:"No hay resultados",noItemsDescriptionText:"Intenta ajustar los filtros de búsqueda o crear un nuevo registro.",showAll:"Mostrar todo",hide:"Ocultar"}},lN1={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},fN1={es:{selectImages:"Seleccionar imágenes",confirmDeleteImage:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes",selectVideos:"Seleccionar videos",confirmDeleteVideo:"El video se eliminará permanentemente.",maxVideosQuantityAlert:"Solo puede cargar {maxQuantity} videos"}},uN1={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},dN1={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"},notFound:{title:"404",subtitle:"Esta no es la página que estás buscando.",goBackBtn:"Volver al inicio"}}},hN1={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},pN1={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},mN1={es:{removeAllBtn:"Eliminar todo"}},vN1={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},yN1={authHelpers:tN1,datetime:aN1,alert:cN1,apiConnectionsError:nN1,apiConnectionsSuccess:rN1,pgaButton:iN1,pgaCalendar:oN1,pgaDisplay:sN1,pgaEditor:lN1,pgaFile:fN1,pgaForm:uN1,pgaLayout:dN1,pgaModal:hN1,pgaTable:pN1,notifications:mN1,validations:vN1};function L51(e){function t(a,c){return function(n,r,i){var g;const o=g6().language,l=e==null?void 0:e[a],f=l==null?void 0:l[o],u=c?c.split(".").reduce((M,x)=>M==null?void 0:M[x],f):f,d=(g=e==null?void 0:e.global)==null?void 0:g[o],h=n,p=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(r==null?void 0:r.count)||1,m=p.split("|").map(M=>M.trim());let y=m[0];m.length===2?y=v===1?m[0]:m[1]:m.length===3&&(y=v===0?m[0]:v===1?m[1]:m[2]),y=y.replace(new RegExp("{count}","g"),v.toString());for(const M in r||{})M!=="count"&&r[M]!==void 0&&r[M]!==null&&(y=y.replace(new RegExp(`{${M}}`,"g"),r[M].toString()));return i!=null&&i.singular?y=m[0]:i!=null&&i.plural&&m.length===2&&(y=m[1]),i!=null&&i.lowercase?y.toLowerCase():i!=null&&i.uppercase?y.toUpperCase():i!=null&&i.capitalize?`${y.charAt(0).toUpperCase()}${y.slice(1).toLowerCase()}`:y}}return t}const $2=L51(yN1),Xj=$2("datetime");function M6(e,t){if(!e)return"-";const a={format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1,...t},c={year:a.withoutYear||a.justTime?void 0:"numeric",month:a.justTime?void 0:a.format==="numeric"?"2-digit":a.format,day:a.withoutDay||a.justTime?void 0:"2-digit",weekday:a.withoutDay||a.justTime||a.format==="numeric"?void 0:a.format,hour:a.withTime||a.justTime?"2-digit":void 0,minute:a.withTime||a.justTime?"2-digit":void 0},n=e.toLocaleString(g6().language,c);return n.charAt(0).toUpperCase()+n.slice(1)}function gN1(e){return M6(e,{format:"short",withoutDay:!0,withTime:!1})}function _9(e){return M6(e,{format:"numeric",withTime:!1})}function hY(e,{format:t}={format:"long"}){if(!e)return"";const a=_9(e),c=new Date,n=new Date(c);n.setDate(c.getDate()+1);const r=new Date(c);if(r.setDate(c.getDate()-1),a===_9(c))return Xj("today");if(a===_9(n))return Xj("tomorrow");if(a===_9(r))return Xj("yesterday");const i={format:t,withTime:!1};return e.getFullYear()===c.getFullYear()?M6(e,{...i,withoutYear:!0}):M6(e,i)}function V51(e){return M6(e,{justTime:!0})}function S51(e,t){return function(){return e.apply(t,arguments)}}const{toString:MN1}=Object.prototype,{getPrototypeOf:FZ}=Object,E$=(e=>t=>{const a=MN1.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),L6=e=>(e=e.toLowerCase(),t=>E$(t)===e),D$=e=>t=>typeof t===e,{isArray:Ms}=Array,Ll=D$("undefined");function kN1(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&r0(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const N51=L6("ArrayBuffer");function xN1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&N51(e.buffer),t}const bN1=D$("string"),r0=D$("function"),A51=D$("number"),P$=e=>e!==null&&typeof e=="object",zN1=e=>e===!0||e===!1,uh=e=>{if(E$(e)!=="object")return!1;const t=FZ(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CN1=L6("Date"),_N1=L6("File"),wN1=L6("Blob"),HN1=L6("FileList"),LN1=e=>P$(e)&&r0(e.pipe),VN1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||r0(e.append)&&((t=E$(e))==="formdata"||t==="object"&&r0(e.toString)&&e.toString()==="[object FormData]"))},SN1=L6("URLSearchParams"),[NN1,AN1,TN1,EN1]=["ReadableStream","Request","Response","Headers"].map(L6),DN1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bf(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let c,n;if(typeof e!="object"&&(e=[e]),Ms(e))for(c=0,n=e.length;c<n;c++)t.call(null,e[c],c,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let o;for(c=0;c<i;c++)o=r[c],t.call(null,e[o],o,e)}}function T51(e,t){t=t.toLowerCase();const a=Object.keys(e);let c=a.length,n;for(;c-- >0;)if(n=a[c],t===n.toLowerCase())return n;return null}const Or=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),E51=e=>!Ll(e)&&e!==Or;function pY(){const{caseless:e}=E51(this)&&this||{},t={},a=(c,n)=>{const r=e&&T51(t,n)||n;uh(t[r])&&uh(c)?t[r]=pY(t[r],c):uh(c)?t[r]=pY({},c):Ms(c)?t[r]=c.slice():t[r]=c};for(let c=0,n=arguments.length;c<n;c++)arguments[c]&&Bf(arguments[c],a);return t}const PN1=(e,t,a,{allOwnKeys:c}={})=>(Bf(t,(n,r)=>{a&&r0(n)?e[r]=S51(n,a):e[r]=n},{allOwnKeys:c}),e),ON1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IN1=(e,t,a,c)=>{e.prototype=Object.create(t.prototype,c),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},BN1=(e,t,a,c)=>{let n,r,i;const o={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)i=n[r],(!c||c(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=a!==!1&&FZ(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},RN1=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const c=e.indexOf(t,a);return c!==-1&&c===a},FN1=e=>{if(!e)return null;if(Ms(e))return e;let t=e.length;if(!A51(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},$N1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&FZ(Uint8Array)),qN1=(e,t)=>{const c=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=c.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},jN1=(e,t)=>{let a;const c=[];for(;(a=e.exec(t))!==null;)c.push(a);return c},UN1=L6("HTMLFormElement"),WN1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,c,n){return c.toUpperCase()+n}),$21=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),YN1=L6("RegExp"),D51=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),c={};Bf(a,(n,r)=>{let i;(i=t(n,r,e))!==!1&&(c[r]=i||n)}),Object.defineProperties(e,c)},GN1=e=>{D51(e,(t,a)=>{if(r0(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const c=e[a];if(r0(c)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},ZN1=(e,t)=>{const a={},c=n=>{n.forEach(r=>{a[r]=!0})};return Ms(e)?c(e):c(String(e).split(t)),a},XN1=()=>{},KN1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Kj="abcdefghijklmnopqrstuvwxyz",q21="0123456789",P51={DIGIT:q21,ALPHA:Kj,ALPHA_DIGIT:Kj+Kj.toUpperCase()+q21},QN1=(e=16,t=P51.ALPHA_DIGIT)=>{let a="";const{length:c}=t;for(;e--;)a+=t[Math.random()*c|0];return a};function JN1(e){return!!(e&&r0(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eA1=e=>{const t=new Array(10),a=(c,n)=>{if(P$(c)){if(t.indexOf(c)>=0)return;if(!("toJSON"in c)){t[n]=c;const r=Ms(c)?[]:{};return Bf(c,(i,o)=>{const l=a(i,n+1);!Ll(l)&&(r[o]=l)}),t[n]=void 0,r}}return c};return a(e,0)},tA1=L6("AsyncFunction"),aA1=e=>e&&(P$(e)||r0(e))&&r0(e.then)&&r0(e.catch),O51=((e,t)=>e?setImmediate:t?((a,c)=>(Or.addEventListener("message",({source:n,data:r})=>{n===Or&&r===a&&c.length&&c.shift()()},!1),n=>{c.push(n),Or.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",r0(Or.postMessage)),cA1=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||O51,T1={isArray:Ms,isArrayBuffer:N51,isBuffer:kN1,isFormData:VN1,isArrayBufferView:xN1,isString:bN1,isNumber:A51,isBoolean:zN1,isObject:P$,isPlainObject:uh,isReadableStream:NN1,isRequest:AN1,isResponse:TN1,isHeaders:EN1,isUndefined:Ll,isDate:CN1,isFile:_N1,isBlob:wN1,isRegExp:YN1,isFunction:r0,isStream:LN1,isURLSearchParams:SN1,isTypedArray:$N1,isFileList:HN1,forEach:Bf,merge:pY,extend:PN1,trim:DN1,stripBOM:ON1,inherits:IN1,toFlatObject:BN1,kindOf:E$,kindOfTest:L6,endsWith:RN1,toArray:FN1,forEachEntry:qN1,matchAll:jN1,isHTMLForm:UN1,hasOwnProperty:$21,hasOwnProp:$21,reduceDescriptors:D51,freezeMethods:GN1,toObjectSet:ZN1,toCamelCase:WN1,noop:XN1,toFiniteNumber:KN1,findKey:T51,global:Or,isContextDefined:E51,ALPHABET:P51,generateString:QN1,isSpecCompliantForm:JN1,toJSONObject:eA1,isAsyncFn:tA1,isThenable:aA1,setImmediate:O51,asap:cA1};function x2(e,t,a,c,n){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),a&&(this.config=a),c&&(this.request=c),n&&(this.response=n,this.status=n.status?n.status:null)}T1.inherits(x2,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:T1.toJSONObject(this.config),code:this.code,status:this.status}}});const I51=x2.prototype,B51={};["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=>{B51[e]={value:e}});Object.defineProperties(x2,B51);Object.defineProperty(I51,"isAxiosError",{value:!0});x2.from=(e,t,a,c,n,r)=>{const i=Object.create(I51);return T1.toFlatObject(e,i,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),x2.call(i,e.message,t,a,c,n),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const nA1=null;function mY(e){return T1.isPlainObject(e)||T1.isArray(e)}function R51(e){return T1.endsWith(e,"[]")?e.slice(0,-2):e}function j21(e,t,a){return e?e.concat(t).map(function(n,r){return n=R51(n),!a&&r?"["+n+"]":n}).join(a?".":""):t}function rA1(e){return T1.isArray(e)&&!e.some(mY)}const iA1=T1.toFlatObject(T1,{},null,function(t){return/^is[A-Z]/.test(t)});function O$(e,t,a){if(!T1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=T1.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!T1.isUndefined(y[m])});const c=a.metaTokens,n=a.visitor||u,r=a.dots,i=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&T1.isSpecCompliantForm(t);if(!T1.isFunction(n))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(T1.isDate(v))return v.toISOString();if(!l&&T1.isBlob(v))throw new x2("Blob is not supported. Use a Buffer instead.");return T1.isArrayBuffer(v)||T1.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,m,y){let g=v;if(v&&!y&&typeof v=="object"){if(T1.endsWith(m,"{}"))m=c?m:m.slice(0,-2),v=JSON.stringify(v);else if(T1.isArray(v)&&rA1(v)||(T1.isFileList(v)||T1.endsWith(m,"[]"))&&(g=T1.toArray(v)))return m=R51(m),g.forEach(function(x,k){!(T1.isUndefined(x)||x===null)&&t.append(i===!0?j21([m],k,r):i===null?m:m+"[]",f(x))}),!1}return mY(v)?!0:(t.append(j21(y,m,r),f(v)),!1)}const d=[],h=Object.assign(iA1,{defaultVisitor:u,convertValue:f,isVisitable:mY});function p(v,m){if(!T1.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(v),T1.forEach(v,function(g,M){(!(T1.isUndefined(g)||g===null)&&n.call(t,g,T1.isString(M)?M.trim():M,m,h))===!0&&p(g,m?m.concat(M):[M])}),d.pop()}}if(!T1.isObject(e))throw new TypeError("data must be an object");return p(e),t}function U21(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(c){return t[c]})}function $Z(e,t){this._pairs=[],e&&O$(e,this,t)}const F51=$Z.prototype;F51.append=function(t,a){this._pairs.push([t,a])};F51.toString=function(t){const a=t?function(c){return t.call(this,c,U21)}:U21;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function oA1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $51(e,t,a){if(!t)return e;const c=a&&a.encode||oA1;T1.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let r;if(n?r=n(t,a):r=T1.isURLSearchParams(t)?t.toString():new $Z(t,a).toString(c),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class sA1{constructor(){this.handlers=[]}use(t,a,c){return this.handlers.push({fulfilled:t,rejected:a,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T1.forEach(this.handlers,function(c){c!==null&&t(c)})}}const W21=sA1,q51={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lA1=typeof URLSearchParams<"u"?URLSearchParams:$Z,fA1=typeof FormData<"u"?FormData:null,uA1=typeof Blob<"u"?Blob:null,dA1={isBrowser:!0,classes:{URLSearchParams:lA1,FormData:fA1,Blob:uA1},protocols:["http","https","file","blob","url","data"]},qZ=typeof window<"u"&&typeof document<"u",vY=typeof navigator=="object"&&navigator||void 0,hA1=qZ&&(!vY||["ReactNative","NativeScript","NS"].indexOf(vY.product)<0),pA1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mA1=qZ&&window.location.href||"http://localhost",vA1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qZ,hasStandardBrowserEnv:hA1,hasStandardBrowserWebWorkerEnv:pA1,navigator:vY,origin:mA1},Symbol.toStringTag,{value:"Module"})),p4={...vA1,...dA1};function yA1(e,t){return O$(e,new p4.classes.URLSearchParams,Object.assign({visitor:function(a,c,n,r){return p4.isNode&&T1.isBuffer(a)?(this.append(c,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function gA1(e){return T1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MA1(e){const t={},a=Object.keys(e);let c;const n=a.length;let r;for(c=0;c<n;c++)r=a[c],t[r]=e[r];return t}function j51(e){function t(a,c,n,r){let i=a[r++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),l=r>=a.length;return i=!i&&T1.isArray(n)?n.length:i,l?(T1.hasOwnProp(n,i)?n[i]=[n[i],c]:n[i]=c,!o):((!n[i]||!T1.isObject(n[i]))&&(n[i]=[]),t(a,c,n[i],r)&&T1.isArray(n[i])&&(n[i]=MA1(n[i])),!o)}if(T1.isFormData(e)&&T1.isFunction(e.entries)){const a={};return T1.forEachEntry(e,(c,n)=>{t(gA1(c),n,a,0)}),a}return null}function kA1(e,t,a){if(T1.isString(e))try{return(t||JSON.parse)(e),T1.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(a||JSON.stringify)(e)}const jZ={transitional:q51,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const c=a.getContentType()||"",n=c.indexOf("application/json")>-1,r=T1.isObject(t);if(r&&T1.isHTMLForm(t)&&(t=new FormData(t)),T1.isFormData(t))return n?JSON.stringify(j51(t)):t;if(T1.isArrayBuffer(t)||T1.isBuffer(t)||T1.isStream(t)||T1.isFile(t)||T1.isBlob(t)||T1.isReadableStream(t))return t;if(T1.isArrayBufferView(t))return t.buffer;if(T1.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(c.indexOf("application/x-www-form-urlencoded")>-1)return yA1(t,this.formSerializer).toString();if((o=T1.isFileList(t))||c.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return O$(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||n?(a.setContentType("application/json",!1),kA1(t)):t}],transformResponse:[function(t){const a=this.transitional||jZ.transitional,c=a&&a.forcedJSONParsing,n=this.responseType==="json";if(T1.isResponse(t)||T1.isReadableStream(t))return t;if(t&&T1.isString(t)&&(c&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?x2.from(o,x2.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:p4.classes.FormData,Blob:p4.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T1.forEach(["delete","get","head","post","put","patch"],e=>{jZ.headers[e]={}});const UZ=jZ,xA1=T1.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"]),bA1=e=>{const t={};let a,c,n;return e&&e.split(`
6
+ `+n1):X.stack=n1}throw X}}_request(D,q){typeof D=="string"?(q=q||{}).url=D:q=D||{},q=pe(this.defaults,q);const{transitional:X,paramsSerializer:J,headers:n1}=q;X!==void 0&&w4.assertOptions(X,{silentJSONParsing:r1.transitional(r1.boolean),forcedJSONParsing:r1.transitional(r1.boolean),clarifyTimeoutError:r1.transitional(r1.boolean)},!1),J!=null&&(A.isFunction(J)?q.paramsSerializer={serialize:J}:w4.assertOptions(J,{encode:r1.function,serialize:r1.function},!0)),q.method=(q.method||this.defaults.method||"get").toLowerCase();let a1=n1&&A.merge(n1.common,n1[q.method]);n1&&A.forEach(["delete","get","head","post","put","patch","common"],I1=>{delete n1[I1]}),q.headers=o1.concat(a1,n1);const z1=[];let w1=!0;this.interceptors.request.forEach(function(I1){typeof I1.runWhen=="function"&&I1.runWhen(q)===!1||(w1=w1&&I1.synchronous,z1.unshift(I1.fulfilled,I1.rejected))});const H1=[];let k1;this.interceptors.response.forEach(function(I1){H1.push(I1.fulfilled,I1.rejected)});let O1,P1=0;if(!w1){const I1=[G4.bind(this),void 0];for(I1.unshift.apply(I1,z1),I1.push.apply(I1,H1),O1=I1.length,k1=Promise.resolve(q);P1<O1;)k1=k1.then(I1[P1++],I1[P1++]);return k1}O1=z1.length;let Z1=q;for(P1=0;P1<O1;){const I1=z1[P1++],J1=z1[P1++];try{Z1=I1(Z1)}catch(v2){J1.call(this,v2);break}}try{k1=G4.call(this,Z1)}catch(I1){return Promise.reject(I1)}for(P1=0,O1=H1.length;P1<O1;)k1=k1.then(H1[P1++],H1[P1++]);return k1}getUri(D){return p1(V2((D=pe(this.defaults,D)).baseURL,D.url),D.params,D.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(I){y1.prototype[I]=function(D,q){return this.request(pe(q||{},{method:I,url:D,data:(q||{}).data}))}}),A.forEach(["post","put","patch"],function(I){function D(q){return function(X,J,n1){return this.request(pe(n1||{},{method:I,headers:q?{"Content-Type":"multipart/form-data"}:{},url:X,data:J}))}}y1.prototype[I]=D(),y1.prototype[I+"Form"]=D(!0)});var h1=y1;class m1{constructor(D){if(typeof D!="function")throw new TypeError("executor must be a function.");let q;this.promise=new Promise(function(J){q=J});const X=this;this.promise.then(J=>{if(!X._listeners)return;let n1=X._listeners.length;for(;n1-- >0;)X._listeners[n1](J);X._listeners=null}),this.promise.then=J=>{let n1;const a1=new Promise(z1=>{X.subscribe(z1),n1=z1}).then(J);return a1.cancel=function(){X.unsubscribe(n1)},a1},D(function(J,n1,a1){X.reason||(X.reason=new W1(J,n1,a1),q(X.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(D){this.reason?D(this.reason):this._listeners?this._listeners.push(D):this._listeners=[D]}unsubscribe(D){if(!this._listeners)return;const q=this._listeners.indexOf(D);q!==-1&&this._listeners.splice(q,1)}static source(){let D;return{token:new m1(function(q){D=q}),cancel:D}}}var g1=m1;const M1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(M1).forEach(([I,D])=>{M1[D]=I});var N1=M1;const V1=function I(D){const q=new h1(D),X=l(h1.prototype.request,q);return A.extend(X,h1.prototype,q,{allOwnKeys:!0}),A.extend(X,q,null,{allOwnKeys:!0}),X.create=function(J){return I(pe(D,J))},X}(q1);V1.Axios=h1,V1.CanceledError=W1,V1.CancelToken=g1,V1.isCancel=L1,V1.VERSION="1.6.8",V1.toFormData=x1,V1.AxiosError=R,V1.Cancel=V1.CanceledError,V1.all=function(I){return Promise.all(I)},V1.spread=function(I){return function(D){return I.apply(null,D)}},V1.isAxiosError=function(I){return A.isObject(I)&&I.isAxiosError===!0},V1.mergeConfig=pe,V1.AxiosHeaders=o1,V1.formToJSON=I=>n2(A.isHTMLForm(I)?new FormData(I):I),V1.getAdapter=Je,V1.HttpStatusCode=N1,V1.default=V1,r.exports=V1}},c={};function n(r){var i=c[r];if(i!==void 0)return i.exports;var o=c[r]={exports:{}};return a[r].call(o.exports,o,o.exports,n),o.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(z51);var c4=z51.exports,nt;let Te=(nt=class{constructor(t){S1(this,"config");this.config=t}static init(t){if(nt.instance)throw new Error("Config is already initialized");nt.instance=new nt(t)}static getConfig(){if(!nt.instance)throw new Error("Config is not initialized. Call init() first.");return nt.instance.config}},S1(nt,"instance"),nt);const g6=o0.defineStore("pga-app-options",()=>{const e=s.ref(!1),t=s.ref({language:"es",theme:"light"}),a=s.computed({get(){return t.value.language},set(l){t.value.language=l}}),c=s.computed({get(){return t.value.theme},set(l){t.value.theme=l}});s.watch(c,()=>yX());function n(l){e.value||(e.value=!0,t.value=c4.mergeDeep(t.value,l))}function r(l){a.value=l}function i(l){c.value=l}function o(){c.value=c.value==="light"?"dark":"light"}return{options:t,language:a,theme:c,init:n,setLanguage:r,setTheme:i,changeTheme:o}},{persist:!0}),H6=o0.defineStore("pga-route",()=>{const e=s.ref(),t=s.ref(!Lo()),a=s.ref(!1),c=s.computed(()=>e.value&&Qc1(e.value)),n=s.computed(()=>c.value&&e.value&&jf(c.value,e.value.name)),r=s.computed(()=>e.value&&e.value.meta),i=s.computed(()=>{var p;return(p=r.value)==null?void 0:p.access}),o=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.withTitle)}),l=s.computed(()=>{var p;return oe((p=r.value)==null?void 0:p.description)}),f=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.noDisplayNavBars)}),u=s.computed(()=>!f.value&&t.value),d=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.useFullPage)}),h=s.computed(()=>{var p;return!!oe((p=r.value)==null?void 0:p.noPaddingX)});return{currentRoute:e,isSideBarOpen:t,isDisplayingBanner:a,routeType:c,routeTitle:n,meta:r,access:i,withTitle:o,description:l,noDisplayNavBars:f,isDisplayingSideBar:u,useFullPage:d,noPaddingX:h}});function C51(){var c;const e=Te.getConfig().stores.useAuthStore(),t=H6().routeType,a=`auth${c4.getFirstChartInUppercase(t)}`;return((c=e[a])==null?void 0:c.accessToken)||""}async function _51(e,t,a){const c=Te.getConfig(),n=c.stores.useAuthStore(),r=`${e}s/login`,i={basicAuth:t,isLoading:a==null?void 0:a.isLoading},o=await c.api.postOne(r,void 0,i);n.setAuthUser(e,o.data);const l={name:(a==null?void 0:a.redirectToName)||c.defaultRoutes[e].auth};c.router.push(l)}async function w51(){const e=Te.getConfig(),t=e.stores.useAuthStore(),a=H6().routeType;try{const c=`${a}s/validateAccessToken`,n=await e.api.getOne(c,void 0,void 0,{noDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function QS1(e){const t=Te.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const c={name:`login${c4.getFirstChartInUppercase(e)}`};t.router.push(c)}function iF(e,t,a){const c=document.querySelector(":root"),n="--pga-",r=a!=null&&a.noConvertToKebab?e:c4.camelToKebab(e);c.style.setProperty(`${n}${r}`,t)}function qo(e){if(e)document.body.style.removeProperty("overflow"),document.body.style.removeProperty("padding-right");else{const t=window.innerWidth-document.documentElement.clientWidth;if(document.body.style.overflow="hidden",!t)return;document.body.style.paddingRight=`${t}px`}}function JS1(e,t,a="animate__"){return new Promise(c=>{const n=`${a}${t}`,r=document.querySelector(e);if(!r)return;r.classList.add(`${a}animated`,n);const i=o=>{o.stopPropagation(),r==null||r.classList.remove(`${a}animated`,n),c("Animation ended")};r.addEventListener("animationend",i,{once:!0})})}function If(e){return Object.keys(BZ).includes(e)}function H51(e,t){let a=0,c=0,n=0,r=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const o=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=o.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),c=parseInt(f),n=parseInt(u),r=parseFloat(d)}if(e.startsWith("#")){let o=e;o.length===4&&(o="#"+o[1]+o[1]+o[2]+o[2]+o[3]+o[3]);let[,l,f,u,d]=o.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,p)=>p===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,c=f,n=u,r=d}const i=t/100;return`rgba(${a}, ${c}, ${n}, ${r*i})`}function dY(e,t){const c=`color-${c4.camelToKebab(e)}`,n={noConvertToKebab:!0};iF(c,t,n);for(let r=5;r<=95;r+=5){const i=r<10?`0${r}`:r%10===0?`${r/10}`:`${r}`;iF(`${c}-0${i}`,H51(t,r),n)}}function eN1(){const e=RZ,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const tN1={es:{successfulLogout:"¡Vuelva pronto!"}},aN1={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},cN1={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},nN1={es:{INTERNAL_SERVER_ERROR:"Se ha producido un error inesperado. Intente nuevamente.",DUPLICATE_KEY:"Ya existe un registro con esta información.",FOREIGN_KEY_INTEGRITY:"El registro de referencia no es válido.",MODELS_ASSOCIATED:"No es posible eliminar el registro porque posee información vinculada.",INVALID_INPUT_DATA:"La información proporcionada no es válida.",ENTITY_NOT_FOUND:"No se ha encontrado el registro solicitado.",VOUCHER_CREATION_FAILED:"Se ha producido un error al emitir el comprobante.",INVALID_CREDENTIALS:"Las credenciales de acceso son incorrectas.",UNAUTHORIZED:"No tiene permisos para realizar esta acción."}},rN1={es:{_LOGIN:"¡Bienvenido!"}},iN1={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},oN1={es:{createEvent:"Nuevo evento",day:"Día",week:"Semana",month:"Mes",configModalTitle:"Ajustes de visualización",configBtn:"Ajustes",displayWeekends:"¿Mostrar fines de semana?",timeFrom:"Hora de inicio",timeTo:"Hora de fin",timeStep:"Intervalo (min)",timeFromDescription:"Indica la hora a la que empezará a mostrarse el calendario.",timeToDescription:"Indica la hora a la que terminará de mostrarse el calendario.",timeStepDescription:"Determina en bloques de cuántos minutos se divide la cuadrícula.",defaultColor:"Color por defecto",errorTimeRange:"La hora de fin debe ser posterior a la de inicio.",applyBtn:"Aplicar"}},sN1={es:{noItemsText:"No hay resultados",noItemsDescriptionText:"Intenta ajustar los filtros de búsqueda o crear un nuevo registro.",showAll:"Mostrar todo",hide:"Ocultar"}},lN1={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},fN1={es:{selectImages:"Seleccionar imágenes",confirmDeleteImage:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes",selectVideos:"Seleccionar videos",confirmDeleteVideo:"El video se eliminará permanentemente.",maxVideosQuantityAlert:"Solo puede cargar {maxQuantity} videos"}},uN1={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},dN1={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"},notFound:{title:"404",subtitle:"Esta no es la página que estás buscando.",goBackBtn:"Volver al inicio"}}},hN1={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},pN1={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},mN1={es:{removeAllBtn:"Eliminar todo"}},vN1={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},yN1={authHelpers:tN1,datetime:aN1,alert:cN1,apiConnectionsError:nN1,apiConnectionsSuccess:rN1,pgaButton:iN1,pgaCalendar:oN1,pgaDisplay:sN1,pgaEditor:lN1,pgaFile:fN1,pgaForm:uN1,pgaLayout:dN1,pgaModal:hN1,pgaTable:pN1,notifications:mN1,validations:vN1};function L51(e){function t(a,c){return function(n,r,i){var g;const o=g6().language,l=e==null?void 0:e[a],f=l==null?void 0:l[o],u=c?c.split(".").reduce((M,x)=>M==null?void 0:M[x],f):f,d=(g=e==null?void 0:e.global)==null?void 0:g[o],h=n,p=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(r==null?void 0:r.count)||1,m=p.split("|").map(M=>M.trim());let y=m[0];m.length===2?y=v===1?m[0]:m[1]:m.length===3&&(y=v===0?m[0]:v===1?m[1]:m[2]),y=y.replace(new RegExp("{count}","g"),v.toString());for(const M in r||{})M!=="count"&&r[M]!==void 0&&r[M]!==null&&(y=y.replace(new RegExp(`{${M}}`,"g"),r[M].toString()));return i!=null&&i.singular?y=m[0]:i!=null&&i.plural&&m.length===2&&(y=m[1]),i!=null&&i.lowercase?y.toLowerCase():i!=null&&i.uppercase?y.toUpperCase():i!=null&&i.capitalize?`${y.charAt(0).toUpperCase()}${y.slice(1).toLowerCase()}`:y}}return t}const $2=L51(yN1),Xj=$2("datetime");function M6(e,t){if(!e)return"-";const a={format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1,...t},c={year:a.withoutYear||a.justTime?void 0:"numeric",month:a.justTime?void 0:a.format==="numeric"?"2-digit":a.format,day:a.withoutDay||a.justTime?void 0:"2-digit",weekday:a.withoutDay||a.justTime||a.format==="numeric"?void 0:a.format,hour:a.withTime||a.justTime?"2-digit":void 0,minute:a.withTime||a.justTime?"2-digit":void 0},n=e.toLocaleString(g6().language,c);return n.charAt(0).toUpperCase()+n.slice(1)}function gN1(e){return M6(e,{format:"short",withoutDay:!0,withTime:!1})}function _9(e){return M6(e,{format:"numeric",withTime:!1})}function hY(e,{format:t}={format:"long"}){if(!e)return"";const a=_9(e),c=new Date,n=new Date(c);n.setDate(c.getDate()+1);const r=new Date(c);if(r.setDate(c.getDate()-1),a===_9(c))return Xj("today");if(a===_9(n))return Xj("tomorrow");if(a===_9(r))return Xj("yesterday");const i={format:t,withTime:!1};return e.getFullYear()===c.getFullYear()?M6(e,{...i,withoutYear:!0}):M6(e,i)}function V51(e){return M6(e,{justTime:!0})}function S51(e,t){return function(){return e.apply(t,arguments)}}const{toString:MN1}=Object.prototype,{getPrototypeOf:FZ}=Object,E$=(e=>t=>{const a=MN1.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),L6=e=>(e=e.toLowerCase(),t=>E$(t)===e),D$=e=>t=>typeof t===e,{isArray:Ms}=Array,Ll=D$("undefined");function kN1(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&r0(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const N51=L6("ArrayBuffer");function xN1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&N51(e.buffer),t}const bN1=D$("string"),r0=D$("function"),A51=D$("number"),P$=e=>e!==null&&typeof e=="object",zN1=e=>e===!0||e===!1,uh=e=>{if(E$(e)!=="object")return!1;const t=FZ(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CN1=L6("Date"),_N1=L6("File"),wN1=L6("Blob"),HN1=L6("FileList"),LN1=e=>P$(e)&&r0(e.pipe),VN1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||r0(e.append)&&((t=E$(e))==="formdata"||t==="object"&&r0(e.toString)&&e.toString()==="[object FormData]"))},SN1=L6("URLSearchParams"),[NN1,AN1,TN1,EN1]=["ReadableStream","Request","Response","Headers"].map(L6),DN1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bf(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let c,n;if(typeof e!="object"&&(e=[e]),Ms(e))for(c=0,n=e.length;c<n;c++)t.call(null,e[c],c,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let o;for(c=0;c<i;c++)o=r[c],t.call(null,e[o],o,e)}}function T51(e,t){t=t.toLowerCase();const a=Object.keys(e);let c=a.length,n;for(;c-- >0;)if(n=a[c],t===n.toLowerCase())return n;return null}const Or=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),E51=e=>!Ll(e)&&e!==Or;function pY(){const{caseless:e}=E51(this)&&this||{},t={},a=(c,n)=>{const r=e&&T51(t,n)||n;uh(t[r])&&uh(c)?t[r]=pY(t[r],c):uh(c)?t[r]=pY({},c):Ms(c)?t[r]=c.slice():t[r]=c};for(let c=0,n=arguments.length;c<n;c++)arguments[c]&&Bf(arguments[c],a);return t}const PN1=(e,t,a,{allOwnKeys:c}={})=>(Bf(t,(n,r)=>{a&&r0(n)?e[r]=S51(n,a):e[r]=n},{allOwnKeys:c}),e),ON1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IN1=(e,t,a,c)=>{e.prototype=Object.create(t.prototype,c),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},BN1=(e,t,a,c)=>{let n,r,i;const o={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)i=n[r],(!c||c(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=a!==!1&&FZ(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},RN1=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const c=e.indexOf(t,a);return c!==-1&&c===a},FN1=e=>{if(!e)return null;if(Ms(e))return e;let t=e.length;if(!A51(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},$N1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&FZ(Uint8Array)),qN1=(e,t)=>{const c=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=c.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},jN1=(e,t)=>{let a;const c=[];for(;(a=e.exec(t))!==null;)c.push(a);return c},UN1=L6("HTMLFormElement"),WN1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,c,n){return c.toUpperCase()+n}),$21=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),YN1=L6("RegExp"),D51=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),c={};Bf(a,(n,r)=>{let i;(i=t(n,r,e))!==!1&&(c[r]=i||n)}),Object.defineProperties(e,c)},GN1=e=>{D51(e,(t,a)=>{if(r0(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const c=e[a];if(r0(c)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},ZN1=(e,t)=>{const a={},c=n=>{n.forEach(r=>{a[r]=!0})};return Ms(e)?c(e):c(String(e).split(t)),a},XN1=()=>{},KN1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Kj="abcdefghijklmnopqrstuvwxyz",q21="0123456789",P51={DIGIT:q21,ALPHA:Kj,ALPHA_DIGIT:Kj+Kj.toUpperCase()+q21},QN1=(e=16,t=P51.ALPHA_DIGIT)=>{let a="";const{length:c}=t;for(;e--;)a+=t[Math.random()*c|0];return a};function JN1(e){return!!(e&&r0(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eA1=e=>{const t=new Array(10),a=(c,n)=>{if(P$(c)){if(t.indexOf(c)>=0)return;if(!("toJSON"in c)){t[n]=c;const r=Ms(c)?[]:{};return Bf(c,(i,o)=>{const l=a(i,n+1);!Ll(l)&&(r[o]=l)}),t[n]=void 0,r}}return c};return a(e,0)},tA1=L6("AsyncFunction"),aA1=e=>e&&(P$(e)||r0(e))&&r0(e.then)&&r0(e.catch),O51=((e,t)=>e?setImmediate:t?((a,c)=>(Or.addEventListener("message",({source:n,data:r})=>{n===Or&&r===a&&c.length&&c.shift()()},!1),n=>{c.push(n),Or.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",r0(Or.postMessage)),cA1=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||O51,T1={isArray:Ms,isArrayBuffer:N51,isBuffer:kN1,isFormData:VN1,isArrayBufferView:xN1,isString:bN1,isNumber:A51,isBoolean:zN1,isObject:P$,isPlainObject:uh,isReadableStream:NN1,isRequest:AN1,isResponse:TN1,isHeaders:EN1,isUndefined:Ll,isDate:CN1,isFile:_N1,isBlob:wN1,isRegExp:YN1,isFunction:r0,isStream:LN1,isURLSearchParams:SN1,isTypedArray:$N1,isFileList:HN1,forEach:Bf,merge:pY,extend:PN1,trim:DN1,stripBOM:ON1,inherits:IN1,toFlatObject:BN1,kindOf:E$,kindOfTest:L6,endsWith:RN1,toArray:FN1,forEachEntry:qN1,matchAll:jN1,isHTMLForm:UN1,hasOwnProperty:$21,hasOwnProp:$21,reduceDescriptors:D51,freezeMethods:GN1,toObjectSet:ZN1,toCamelCase:WN1,noop:XN1,toFiniteNumber:KN1,findKey:T51,global:Or,isContextDefined:E51,ALPHABET:P51,generateString:QN1,isSpecCompliantForm:JN1,toJSONObject:eA1,isAsyncFn:tA1,isThenable:aA1,setImmediate:O51,asap:cA1};function x2(e,t,a,c,n){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),a&&(this.config=a),c&&(this.request=c),n&&(this.response=n,this.status=n.status?n.status:null)}T1.inherits(x2,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:T1.toJSONObject(this.config),code:this.code,status:this.status}}});const I51=x2.prototype,B51={};["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=>{B51[e]={value:e}});Object.defineProperties(x2,B51);Object.defineProperty(I51,"isAxiosError",{value:!0});x2.from=(e,t,a,c,n,r)=>{const i=Object.create(I51);return T1.toFlatObject(e,i,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),x2.call(i,e.message,t,a,c,n),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const nA1=null;function mY(e){return T1.isPlainObject(e)||T1.isArray(e)}function R51(e){return T1.endsWith(e,"[]")?e.slice(0,-2):e}function j21(e,t,a){return e?e.concat(t).map(function(n,r){return n=R51(n),!a&&r?"["+n+"]":n}).join(a?".":""):t}function rA1(e){return T1.isArray(e)&&!e.some(mY)}const iA1=T1.toFlatObject(T1,{},null,function(t){return/^is[A-Z]/.test(t)});function O$(e,t,a){if(!T1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=T1.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!T1.isUndefined(y[m])});const c=a.metaTokens,n=a.visitor||u,r=a.dots,i=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&T1.isSpecCompliantForm(t);if(!T1.isFunction(n))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(T1.isDate(v))return v.toISOString();if(!l&&T1.isBlob(v))throw new x2("Blob is not supported. Use a Buffer instead.");return T1.isArrayBuffer(v)||T1.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,m,y){let g=v;if(v&&!y&&typeof v=="object"){if(T1.endsWith(m,"{}"))m=c?m:m.slice(0,-2),v=JSON.stringify(v);else if(T1.isArray(v)&&rA1(v)||(T1.isFileList(v)||T1.endsWith(m,"[]"))&&(g=T1.toArray(v)))return m=R51(m),g.forEach(function(x,k){!(T1.isUndefined(x)||x===null)&&t.append(i===!0?j21([m],k,r):i===null?m:m+"[]",f(x))}),!1}return mY(v)?!0:(t.append(j21(y,m,r),f(v)),!1)}const d=[],h=Object.assign(iA1,{defaultVisitor:u,convertValue:f,isVisitable:mY});function p(v,m){if(!T1.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(v),T1.forEach(v,function(g,M){(!(T1.isUndefined(g)||g===null)&&n.call(t,g,T1.isString(M)?M.trim():M,m,h))===!0&&p(g,m?m.concat(M):[M])}),d.pop()}}if(!T1.isObject(e))throw new TypeError("data must be an object");return p(e),t}function U21(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(c){return t[c]})}function $Z(e,t){this._pairs=[],e&&O$(e,this,t)}const F51=$Z.prototype;F51.append=function(t,a){this._pairs.push([t,a])};F51.toString=function(t){const a=t?function(c){return t.call(this,c,U21)}:U21;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function oA1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $51(e,t,a){if(!t)return e;const c=a&&a.encode||oA1;T1.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let r;if(n?r=n(t,a):r=T1.isURLSearchParams(t)?t.toString():new $Z(t,a).toString(c),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class sA1{constructor(){this.handlers=[]}use(t,a,c){return this.handlers.push({fulfilled:t,rejected:a,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T1.forEach(this.handlers,function(c){c!==null&&t(c)})}}const W21=sA1,q51={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lA1=typeof URLSearchParams<"u"?URLSearchParams:$Z,fA1=typeof FormData<"u"?FormData:null,uA1=typeof Blob<"u"?Blob:null,dA1={isBrowser:!0,classes:{URLSearchParams:lA1,FormData:fA1,Blob:uA1},protocols:["http","https","file","blob","url","data"]},qZ=typeof window<"u"&&typeof document<"u",vY=typeof navigator=="object"&&navigator||void 0,hA1=qZ&&(!vY||["ReactNative","NativeScript","NS"].indexOf(vY.product)<0),pA1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mA1=qZ&&window.location.href||"http://localhost",vA1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qZ,hasStandardBrowserEnv:hA1,hasStandardBrowserWebWorkerEnv:pA1,navigator:vY,origin:mA1},Symbol.toStringTag,{value:"Module"})),p4={...vA1,...dA1};function yA1(e,t){return O$(e,new p4.classes.URLSearchParams,Object.assign({visitor:function(a,c,n,r){return p4.isNode&&T1.isBuffer(a)?(this.append(c,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function gA1(e){return T1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MA1(e){const t={},a=Object.keys(e);let c;const n=a.length;let r;for(c=0;c<n;c++)r=a[c],t[r]=e[r];return t}function j51(e){function t(a,c,n,r){let i=a[r++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),l=r>=a.length;return i=!i&&T1.isArray(n)?n.length:i,l?(T1.hasOwnProp(n,i)?n[i]=[n[i],c]:n[i]=c,!o):((!n[i]||!T1.isObject(n[i]))&&(n[i]=[]),t(a,c,n[i],r)&&T1.isArray(n[i])&&(n[i]=MA1(n[i])),!o)}if(T1.isFormData(e)&&T1.isFunction(e.entries)){const a={};return T1.forEachEntry(e,(c,n)=>{t(gA1(c),n,a,0)}),a}return null}function kA1(e,t,a){if(T1.isString(e))try{return(t||JSON.parse)(e),T1.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(a||JSON.stringify)(e)}const jZ={transitional:q51,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const c=a.getContentType()||"",n=c.indexOf("application/json")>-1,r=T1.isObject(t);if(r&&T1.isHTMLForm(t)&&(t=new FormData(t)),T1.isFormData(t))return n?JSON.stringify(j51(t)):t;if(T1.isArrayBuffer(t)||T1.isBuffer(t)||T1.isStream(t)||T1.isFile(t)||T1.isBlob(t)||T1.isReadableStream(t))return t;if(T1.isArrayBufferView(t))return t.buffer;if(T1.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(c.indexOf("application/x-www-form-urlencoded")>-1)return yA1(t,this.formSerializer).toString();if((o=T1.isFileList(t))||c.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return O$(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||n?(a.setContentType("application/json",!1),kA1(t)):t}],transformResponse:[function(t){const a=this.transitional||jZ.transitional,c=a&&a.forcedJSONParsing,n=this.responseType==="json";if(T1.isResponse(t)||T1.isReadableStream(t))return t;if(t&&T1.isString(t)&&(c&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?x2.from(o,x2.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:p4.classes.FormData,Blob:p4.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T1.forEach(["delete","get","head","post","put","patch"],e=>{jZ.headers[e]={}});const UZ=jZ,xA1=T1.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"]),bA1=e=>{const t={};let a,c,n;return e&&e.split(`
7
7
  `).forEach(function(i){n=i.indexOf(":"),a=i.substring(0,n).trim().toLowerCase(),c=i.substring(n+1).trim(),!(!a||t[a]&&xA1[a])&&(a==="set-cookie"?t[a]?t[a].push(c):t[a]=[c]:t[a]=t[a]?t[a]+", "+c:c)}),t},Y21=Symbol("internals");function Is(e){return e&&String(e).trim().toLowerCase()}function dh(e){return e===!1||e==null?e:T1.isArray(e)?e.map(dh):String(e)}function zA1(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=a.exec(e);)t[c[1]]=c[2];return t}const CA1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qj(e,t,a,c,n){if(T1.isFunction(c))return c.call(this,t,a);if(n&&(t=a),!!T1.isString(t)){if(T1.isString(c))return t.indexOf(c)!==-1;if(T1.isRegExp(c))return c.test(t)}}function _A1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,c)=>a.toUpperCase()+c)}function wA1(e,t){const a=T1.toCamelCase(" "+t);["get","set","has"].forEach(c=>{Object.defineProperty(e,c+a,{value:function(n,r,i){return this[c].call(this,t,n,r,i)},configurable:!0})})}class I${constructor(t){t&&this.set(t)}set(t,a,c){const n=this;function r(o,l,f){const u=Is(l);if(!u)throw new Error("header name must be a non-empty string");const d=T1.findKey(n,u);(!d||n[d]===void 0||f===!0||f===void 0&&n[d]!==!1)&&(n[d||l]=dh(o))}const i=(o,l)=>T1.forEach(o,(f,u)=>r(f,u,l));if(T1.isPlainObject(t)||t instanceof this.constructor)i(t,a);else if(T1.isString(t)&&(t=t.trim())&&!CA1(t))i(bA1(t),a);else if(T1.isHeaders(t))for(const[o,l]of t.entries())r(l,o,c);else t!=null&&r(a,t,c);return this}get(t,a){if(t=Is(t),t){const c=T1.findKey(this,t);if(c){const n=this[c];if(!a)return n;if(a===!0)return zA1(n);if(T1.isFunction(a))return a.call(this,n,c);if(T1.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=Is(t),t){const c=T1.findKey(this,t);return!!(c&&this[c]!==void 0&&(!a||Qj(this,this[c],c,a)))}return!1}delete(t,a){const c=this;let n=!1;function r(i){if(i=Is(i),i){const o=T1.findKey(c,i);o&&(!a||Qj(c,c[o],o,a))&&(delete c[o],n=!0)}}return T1.isArray(t)?t.forEach(r):r(t),n}clear(t){const a=Object.keys(this);let c=a.length,n=!1;for(;c--;){const r=a[c];(!t||Qj(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const a=this,c={};return T1.forEach(this,(n,r)=>{const i=T1.findKey(c,r);if(i){a[i]=dh(n),delete a[r];return}const o=t?_A1(r):String(r).trim();o!==r&&delete a[r],a[o]=dh(n),c[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return T1.forEach(this,(c,n)=>{c!=null&&c!==!1&&(a[n]=t&&T1.isArray(c)?c.join(", "):c)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
8
8
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const c=new this(t);return a.forEach(n=>c.set(n)),c}static accessor(t){const c=(this[Y21]=this[Y21]={accessors:{}}).accessors,n=this.prototype;function r(i){const o=Is(i);c[o]||(wA1(n,i),c[o]=!0)}return T1.isArray(t)?t.forEach(r):r(t),this}}I$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T1.reduceDescriptors(I$.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(c){this[a]=c}}});T1.freezeMethods(I$);const s6=I$;function Jj(e,t){const a=this||UZ,c=t||a,n=s6.from(c.headers);let r=c.data;return T1.forEach(e,function(o){r=o.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function U51(e){return!!(e&&e.__CANCEL__)}function ks(e,t,a){x2.call(this,e??"canceled",x2.ERR_CANCELED,t,a),this.name="CanceledError"}T1.inherits(ks,x2,{__CANCEL__:!0});function W51(e,t,a){const c=a.config.validateStatus;!a.status||!c||c(a.status)?e(a):t(new x2("Request failed with status code "+a.status,[x2.ERR_BAD_REQUEST,x2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function HA1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LA1(e,t){e=e||10;const a=new Array(e),c=new Array(e);let n=0,r=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=c[r];i||(i=f),a[n]=l,c[n]=f;let d=r,h=0;for(;d!==n;)h+=a[d++],d=d%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),f-i<t)return;const p=u&&f-u;return p?Math.round(h*1e3/p):void 0}}function VA1(e,t){let a=0,c=1e3/t,n,r;const i=(f,u=Date.now())=>{a=u,n=null,r&&(clearTimeout(r),r=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),d=u-a;d>=c?i(f,u):(n=f,r||(r=setTimeout(()=>{r=null,i(n)},c-d)))},()=>n&&i(n)]}const oF=(e,t,a=3)=>{let c=0;const n=LA1(50,250);return VA1(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,l=i-c,f=n(l),u=i<=o;c=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:f||void 0,estimated:f&&o&&u?(o-i)/f:void 0,event:r,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},a)},G21=(e,t)=>{const a=e!=null;return[c=>t[0]({lengthComputable:a,total:e,loaded:c}),t[1]]},Z21=e=>(...t)=>T1.asap(()=>e(...t)),SA1=p4.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,p4.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(p4.origin),p4.navigator&&/(msie|trident)/i.test(p4.navigator.userAgent)):()=>!0,NA1=p4.hasStandardBrowserEnv?{write(e,t,a,c,n,r){const i=[e+"="+encodeURIComponent(t)];T1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),T1.isString(c)&&i.push("path="+c),T1.isString(n)&&i.push("domain="+n),r===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function AA1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TA1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y51(e,t){return e&&!AA1(t)?TA1(e,t):t}const X21=e=>e instanceof s6?{...e}:e;function oi(e,t){t=t||{};const a={};function c(f,u,d,h){return T1.isPlainObject(f)&&T1.isPlainObject(u)?T1.merge.call({caseless:h},f,u):T1.isPlainObject(u)?T1.merge({},u):T1.isArray(u)?u.slice():u}function n(f,u,d,h){if(T1.isUndefined(u)){if(!T1.isUndefined(f))return c(void 0,f,d,h)}else return c(f,u,d,h)}function r(f,u){if(!T1.isUndefined(u))return c(void 0,u)}function i(f,u){if(T1.isUndefined(u)){if(!T1.isUndefined(f))return c(void 0,f)}else return c(void 0,u)}function o(f,u,d){if(d in t)return c(f,u);if(d in e)return c(void 0,f)}const l={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(f,u,d)=>n(X21(f),X21(u),d,!0)};return T1.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||n,h=d(e[u],t[u],u);T1.isUndefined(h)&&d!==o||(a[u]=h)}),a}const G51=e=>{const t=oi({},e);let{data:a,withXSRFToken:c,xsrfHeaderName:n,xsrfCookieName:r,headers:i,auth:o}=t;t.headers=i=s6.from(i),t.url=$51(Y51(t.baseURL,t.url),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(T1.isFormData(a)){if(p4.hasStandardBrowserEnv||p4.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(p4.hasStandardBrowserEnv&&(c&&T1.isFunction(c)&&(c=c(t)),c||c!==!1&&SA1(t.url))){const f=n&&r&&NA1.read(r);f&&i.set(n,f)}return t},EA1=typeof XMLHttpRequest<"u",DA1=EA1&&function(e){return new Promise(function(a,c){const n=G51(e);let r=n.data;const i=s6.from(n.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:f}=n,u,d,h,p,v;function m(){p&&p(),v&&v(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout;function g(){if(!y)return;const x=s6.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:x,config:e,request:y};W51(function(C){a(C),m()},function(C){c(C),m()},b),y=null}"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(g)},y.onabort=function(){y&&(c(new x2("Request aborted",x2.ECONNABORTED,e,y)),y=null)},y.onerror=function(){c(new x2("Network Error",x2.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let k=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||q51;n.timeoutErrorMessage&&(k=n.timeoutErrorMessage),c(new x2(k,b.clarifyTimeoutError?x2.ETIMEDOUT:x2.ECONNABORTED,e,y)),y=null},r===void 0&&i.setContentType(null),"setRequestHeader"in y&&T1.forEach(i.toJSON(),function(k,b){y.setRequestHeader(b,k)}),T1.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),o&&o!=="json"&&(y.responseType=n.responseType),f&&([h,v]=oF(f,!0),y.addEventListener("progress",h)),l&&y.upload&&([d,p]=oF(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(u=x=>{y&&(c(!x||x.type?new ks(null,e,y):x),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const M=HA1(n.url);if(M&&p4.protocols.indexOf(M)===-1){c(new x2("Unsupported protocol "+M+":",x2.ERR_BAD_REQUEST,e));return}y.send(r||null)})},PA1=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let c=new AbortController,n;const r=function(f){if(!n){n=!0,o();const u=f instanceof Error?f:this.reason;c.abort(u instanceof x2?u:new ks(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,r(new x2(`timeout ${t} of ms exceeded`,x2.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(r):f.removeEventListener("abort",r)}),e=null)};e.forEach(f=>f.addEventListener("abort",r));const{signal:l}=c;return l.unsubscribe=()=>T1.asap(o),l}},OA1=PA1,IA1=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let c=0,n;for(;c<a;)n=c+t,yield e.slice(c,n),c=n},BA1=async function*(e,t){for await(const a of RA1(e))yield*IA1(a,t)},RA1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:c}=await t.read();if(a)break;yield c}}finally{await t.cancel()}},K21=(e,t,a,c)=>{const n=BA1(e,t);let r=0,i,o=l=>{i||(i=!0,c&&c(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){o(),l.close();return}let d=u.byteLength;if(a){let h=r+=d;a(h)}l.enqueue(new Uint8Array(u))}catch(f){throw o(f),f}},cancel(l){return o(l),n.return()}},{highWaterMark:2})},B$=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Z51=B$&&typeof ReadableStream=="function",FA1=B$&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),X51=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$A1=Z51&&X51(()=>{let e=!1;const t=new Request(p4.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Q21=64*1024,yY=Z51&&X51(()=>T1.isReadableStream(new Response("").body)),sF={stream:yY&&(e=>e.body)};B$&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!sF[t]&&(sF[t]=T1.isFunction(e[t])?a=>a[t]():(a,c)=>{throw new x2(`Response type '${t}' is not supported`,x2.ERR_NOT_SUPPORT,c)})})})(new Response);const qA1=async e=>{if(e==null)return 0;if(T1.isBlob(e))return e.size;if(T1.isSpecCompliantForm(e))return(await new Request(p4.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(T1.isArrayBufferView(e)||T1.isArrayBuffer(e))return e.byteLength;if(T1.isURLSearchParams(e)&&(e=e+""),T1.isString(e))return(await FA1(e)).byteLength},jA1=async(e,t)=>{const a=T1.toFiniteNumber(e.getContentLength());return a??qA1(t)},UA1=B$&&(async e=>{let{url:t,method:a,data:c,signal:n,cancelToken:r,timeout:i,onDownloadProgress:o,onUploadProgress:l,responseType:f,headers:u,withCredentials:d="same-origin",fetchOptions:h}=G51(e);f=f?(f+"").toLowerCase():"text";let p=OA1([n,r&&r.toAbortSignal()],i),v;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&$A1&&a!=="get"&&a!=="head"&&(y=await jA1(u,c))!==0){let b=new Request(t,{method:"POST",body:c,duplex:"half"}),_;if(T1.isFormData(c)&&(_=b.headers.get("content-type"))&&u.setContentType(_),b.body){const[C,H]=G21(y,oF(Z21(l)));c=K21(b.body,Q21,C,H)}}T1.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;v=new Request(t,{...h,signal:p,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:c,duplex:"half",credentials:g?d:void 0});let M=await fetch(v);const x=yY&&(f==="stream"||f==="response");if(yY&&(o||x&&m)){const b={};["status","statusText","headers"].forEach(V=>{b[V]=M[V]});const _=T1.toFiniteNumber(M.headers.get("content-length")),[C,H]=o&&G21(_,oF(Z21(o),!0))||[];M=new Response(K21(M.body,Q21,C,()=>{H&&H(),m&&m()}),b)}f=f||"text";let k=await sF[T1.findKey(sF,f)||"text"](M,e);return!x&&m&&m(),await new Promise((b,_)=>{W51(b,_,{data:k,headers:s6.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:v})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new x2("Network Error",x2.ERR_NETWORK,e,v),{cause:g.cause||g}):x2.from(g,g&&g.code,e,v)}}),gY={http:nA1,xhr:DA1,fetch:UA1};T1.forEach(gY,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const J21=e=>`- ${e}`,WA1=e=>T1.isFunction(e)||e===null||e===!1,K51={getAdapter:e=>{e=T1.isArray(e)?e:[e];const{length:t}=e;let a,c;const n={};for(let r=0;r<t;r++){a=e[r];let i;if(c=a,!WA1(a)&&(c=gY[(i=String(a)).toLowerCase()],c===void 0))throw new x2(`Unknown adapter '${i}'`);if(c)break;n[i||"#"+r]=c}if(!c){const r=Object.entries(n).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?r.length>1?`since :
9
9
  `+r.map(J21).join(`
@@ -9468,7 +9468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
9468
9468
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const c=new this(t);return a.forEach(n=>c.set(n)),c}static accessor(t){const a=(this[z61]=this[z61]={accessors:{}}).accessors,c=this.prototype;function n(r){const i=p9(r);a[i]||(Cs3(c,r),a[i]=!0)}return E1.isArray(t)?t.forEach(n):n(t),this}}rj.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E1.reduceDescriptors(rj.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(c){this[a]=c}}});E1.freezeMethods(rj);const p6=rj;function kW(e,t){const a=this||sJ,c=t||a,n=p6.from(c.headers);let r=c.data;return E1.forEach(e,function(i){r=i.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function Ov1(e){return!!(e&&e.__CANCEL__)}function Ns(e,t,a){b2.call(this,e??"canceled",b2.ERR_CANCELED,t,a),this.name="CanceledError"}E1.inherits(Ns,b2,{__CANCEL__:!0});function Iv1(e,t,a){const c=a.config.validateStatus;!a.status||!c||c(a.status)?e(a):t(new b2("Request failed with status code "+a.status,[b2.ERR_BAD_REQUEST,b2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function _s3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ws3(e,t){e=e||10;const a=new Array(e),c=new Array(e);let n=0,r=0,i;return t=t!==void 0?t:1e3,function(o){const l=Date.now(),f=c[r];i||(i=l),a[n]=o,c[n]=l;let u=r,d=0;for(;u!==n;)d+=a[u++],u=u%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),l-i<t)return;const h=f&&l-f;return h?Math.round(d*1e3/h):void 0}}function Hs3(e,t){let a=0,c=1e3/t,n,r;const i=(o,l=Date.now())=>{a=l,n=null,r&&(clearTimeout(r),r=null),e.apply(null,o)};return[(...o)=>{const l=Date.now(),f=l-a;f>=c?i(o,l):(n=o,r||(r=setTimeout(()=>{r=null,i(n)},c-f)))},()=>n&&i(n)]}const t$=(e,t,a=3)=>{let c=0;const n=ws3(50,250);return Hs3(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,l=i-c,f=n(l),u=i<=o;c=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:f||void 0,estimated:f&&o&&u?(o-i)/f:void 0,event:r,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},a)},C61=(e,t)=>{const a=e!=null;return[c=>t[0]({lengthComputable:a,total:e,loaded:c}),t[1]]},_61=e=>(...t)=>E1.asap(()=>e(...t)),Ls3=m4.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,m4.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(m4.origin),m4.navigator&&/(msie|trident)/i.test(m4.navigator.userAgent)):()=>!0,Vs3=m4.hasStandardBrowserEnv?{write(e,t,a,c,n,r){const i=[e+"="+encodeURIComponent(t)];E1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),E1.isString(c)&&i.push("path="+c),E1.isString(n)&&i.push("domain="+n),r===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ss3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ns3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bv1(e,t){return e&&!Ss3(t)?Ns3(e,t):t}const w61=e=>e instanceof p6?{...e}:e;function vi(e,t){t=t||{};const a={};function c(f,u,d,h){return E1.isPlainObject(f)&&E1.isPlainObject(u)?E1.merge.call({caseless:h},f,u):E1.isPlainObject(u)?E1.merge({},u):E1.isArray(u)?u.slice():u}function n(f,u,d,h){if(E1.isUndefined(u)){if(!E1.isUndefined(f))return c(void 0,f,d,h)}else return c(f,u,d,h)}function r(f,u){if(!E1.isUndefined(u))return c(void 0,u)}function i(f,u){if(E1.isUndefined(u)){if(!E1.isUndefined(f))return c(void 0,f)}else return c(void 0,u)}function o(f,u,d){if(d in t)return c(f,u);if(d in e)return c(void 0,f)}const l={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(f,u,d)=>n(w61(f),w61(u),d,!0)};return E1.forEach(Object.keys(Object.assign({},e,t)),function(f){const u=l[f]||n,d=u(e[f],t[f],f);E1.isUndefined(d)&&u!==o||(a[f]=d)}),a}const Rv1=e=>{const t=vi({},e);let{data:a,withXSRFToken:c,xsrfHeaderName:n,xsrfCookieName:r,headers:i,auth:o}=t;t.headers=i=p6.from(i),t.url=Ev1(Bv1(t.baseURL,t.url),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(E1.isFormData(a)){if(m4.hasStandardBrowserEnv||m4.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(m4.hasStandardBrowserEnv&&(c&&E1.isFunction(c)&&(c=c(t)),c||c!==!1&&Ls3(t.url))){const f=n&&r&&Vs3.read(r);f&&i.set(n,f)}return t},As3=typeof XMLHttpRequest<"u",Ts3=As3&&function(e){return new Promise(function(t,a){const c=Rv1(e);let n=c.data;const r=p6.from(c.headers).normalize();let{responseType:i,onUploadProgress:o,onDownloadProgress:l}=c,f,u,d,h,p;function v(){h&&h(),p&&p(),c.cancelToken&&c.cancelToken.unsubscribe(f),c.signal&&c.signal.removeEventListener("abort",f)}let m=new XMLHttpRequest;m.open(c.method.toUpperCase(),c.url,!0),m.timeout=c.timeout;function y(){if(!m)return;const M=p6.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),x={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:M,config:e,request:m};Iv1(function(k){t(k),v()},function(k){a(k),v()},x),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(a(new b2("Request aborted",b2.ECONNABORTED,e,m)),m=null)},m.onerror=function(){a(new b2("Network Error",b2.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let M=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const x=c.transitional||Dv1;c.timeoutErrorMessage&&(M=c.timeoutErrorMessage),a(new b2(M,x.clarifyTimeoutError?b2.ETIMEDOUT:b2.ECONNABORTED,e,m)),m=null},n===void 0&&r.setContentType(null),"setRequestHeader"in m&&E1.forEach(r.toJSON(),function(M,x){m.setRequestHeader(x,M)}),E1.isUndefined(c.withCredentials)||(m.withCredentials=!!c.withCredentials),i&&i!=="json"&&(m.responseType=c.responseType),l&&([d,p]=t$(l,!0),m.addEventListener("progress",d)),o&&m.upload&&([u,h]=t$(o),m.upload.addEventListener("progress",u),m.upload.addEventListener("loadend",h)),(c.cancelToken||c.signal)&&(f=M=>{m&&(a(!M||M.type?new Ns(null,e,m):M),m.abort(),m=null)},c.cancelToken&&c.cancelToken.subscribe(f),c.signal&&(c.signal.aborted?f():c.signal.addEventListener("abort",f)));const g=_s3(c.url);if(g&&m4.protocols.indexOf(g)===-1){a(new b2("Unsupported protocol "+g+":",b2.ERR_BAD_REQUEST,e));return}m.send(n||null)})},Es3=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let c=new AbortController,n;const r=function(f){if(!n){n=!0,o();const u=f instanceof Error?f:this.reason;c.abort(u instanceof b2?u:new Ns(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,r(new b2(`timeout ${t} of ms exceeded`,b2.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(r):f.removeEventListener("abort",r)}),e=null)};e.forEach(f=>f.addEventListener("abort",r));const{signal:l}=c;return l.unsubscribe=()=>E1.asap(o),l}},Ds3=Es3,Ps3=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let c=0,n;for(;c<a;)n=c+t,yield e.slice(c,n),c=n},Os3=async function*(e,t){for await(const a of Is3(e))yield*Ps3(a,t)},Is3=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:c}=await t.read();if(a)break;yield c}}finally{await t.cancel()}},H61=(e,t,a,c)=>{const n=Os3(e,t);let r=0,i,o=l=>{i||(i=!0,c&&c(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){o(),l.close();return}let d=u.byteLength;if(a){let h=r+=d;a(h)}l.enqueue(new Uint8Array(u))}catch(f){throw o(f),f}},cancel(l){return o(l),n.return()}},{highWaterMark:2})},ij=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fv1=ij&&typeof ReadableStream=="function",Bs3=ij&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$v1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rs3=Fv1&&$v1(()=>{let e=!1;const t=new Request(m4.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),L61=64*1024,EG=Fv1&&$v1(()=>E1.isReadableStream(new Response("").body)),a$={stream:EG&&(e=>e.body)};ij&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!a$[t]&&(a$[t]=E1.isFunction(e[t])?a=>a[t]():(a,c)=>{throw new b2(`Response type '${t}' is not supported`,b2.ERR_NOT_SUPPORT,c)})})})(new Response);const Fs3=async e=>{if(e==null)return 0;if(E1.isBlob(e))return e.size;if(E1.isSpecCompliantForm(e))return(await new Request(m4.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E1.isArrayBufferView(e)||E1.isArrayBuffer(e))return e.byteLength;if(E1.isURLSearchParams(e)&&(e=e+""),E1.isString(e))return(await Bs3(e)).byteLength},$s3=async(e,t)=>E1.toFiniteNumber(e.getContentLength())??Fs3(t),qs3=ij&&(async e=>{let{url:t,method:a,data:c,signal:n,cancelToken:r,timeout:i,onDownloadProgress:o,onUploadProgress:l,responseType:f,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Rv1(e);f=f?(f+"").toLowerCase():"text";let p=Ds3([n,r&&r.toAbortSignal()],i),v;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&Rs3&&a!=="get"&&a!=="head"&&(y=await $s3(u,c))!==0){let b=new Request(t,{method:"POST",body:c,duplex:"half"}),_;if(E1.isFormData(c)&&(_=b.headers.get("content-type"))&&u.setContentType(_),b.body){const[C,H]=C61(y,t$(_61(l)));c=H61(b.body,L61,C,H)}}E1.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;v=new Request(t,{...h,signal:p,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:c,duplex:"half",credentials:g?d:void 0});let M=await fetch(v);const x=EG&&(f==="stream"||f==="response");if(EG&&(o||x&&m)){const b={};["status","statusText","headers"].forEach(V=>{b[V]=M[V]});const _=E1.toFiniteNumber(M.headers.get("content-length")),[C,H]=o&&C61(_,t$(_61(o),!0))||[];M=new Response(H61(M.body,L61,C,()=>{H&&H(),m&&m()}),b)}f=f||"text";let k=await a$[E1.findKey(a$,f)||"text"](M,e);return!x&&m&&m(),await new Promise((b,_)=>{Iv1(b,_,{data:k,headers:p6.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:v})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new b2("Network Error",b2.ERR_NETWORK,e,v),{cause:g.cause||g}):b2.from(g,g&&g.code,e,v)}}),DG={http:as3,xhr:Ts3,fetch:qs3};E1.forEach(DG,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const V61=e=>`- ${e}`,js3=e=>E1.isFunction(e)||e===null||e===!1,qv1={getAdapter:e=>{e=E1.isArray(e)?e:[e];const{length:t}=e;let a,c;const n={};for(let r=0;r<t;r++){a=e[r];let i;if(c=a,!js3(a)&&(c=DG[(i=String(a)).toLowerCase()],c===void 0))throw new b2(`Unknown adapter '${i}'`);if(c)break;n[i||"#"+r]=c}if(!c){const r=Object.entries(n).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?r.length>1?`since :
9469
9469
  `+r.map(V61).join(`
9470
9470
  `):" "+V61(r[0]):"as no adapter specified";throw new b2("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return c},adapters:DG};function xW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ns(null,e)}function S61(e){return xW(e),e.headers=p6.from(e.headers),e.data=kW.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qv1.getAdapter(e.adapter||sJ.adapter)(e).then(function(t){return xW(e),t.data=kW.call(e,e.transformResponse,t),t.headers=p6.from(t.headers),t},function(t){return Ov1(t)||(xW(e),t&&t.response&&(t.response.data=kW.call(e,e.transformResponse,t.response),t.response.headers=p6.from(t.response.headers))),Promise.reject(t)})}const jv1="1.7.8",oj={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oj[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const N61={};oj.transitional=function(e,t,a){function c(n,r){return"[Axios v"+jv1+"] Transitional option '"+n+"'"+r+(a?". "+a:"")}return(n,r,i)=>{if(e===!1)throw new b2(c(r," has been removed"+(t?" in "+t:"")),b2.ERR_DEPRECATED);return t&&!N61[r]&&(N61[r]=!0,console.warn(c(r," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(n,r,i):!0}};oj.spelling=function(e){return(t,a)=>(console.warn(`${a} is likely a misspelling of ${e}`),!0)};function Us3(e,t,a){if(typeof e!="object")throw new b2("options must be an object",b2.ERR_BAD_OPTION_VALUE);const c=Object.keys(e);let n=c.length;for(;n-- >0;){const r=c[n],i=t[r];if(i){const o=e[r],l=o===void 0||i(o,r,e);if(l!==!0)throw new b2("option "+r+" must be "+l,b2.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new b2("Unknown option "+r,b2.ERR_BAD_OPTION)}}const WR={assertOptions:Us3,validators:oj},D6=WR.validators;class c${constructor(t){this.defaults=t,this.interceptors={request:new b61,response:new b61}}async request(t,a){try{return await this._request(t,a)}catch(c){if(c instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const r=n.stack?n.stack.replace(/^.+\n/,""):"";try{c.stack?r&&!String(c.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(c.stack+=`
9471
- `+r):c.stack=r}catch{}}throw c}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=vi(this.defaults,a);const{transitional:c,paramsSerializer:n,headers:r}=a;c!==void 0&&WR.assertOptions(c,{silentJSONParsing:D6.transitional(D6.boolean),forcedJSONParsing:D6.transitional(D6.boolean),clarifyTimeoutError:D6.transitional(D6.boolean)},!1),n!=null&&(E1.isFunction(n)?a.paramsSerializer={serialize:n}:WR.assertOptions(n,{encode:D6.function,serialize:D6.function},!0)),WR.assertOptions(a,{baseUrl:D6.spelling("baseURL"),withXsrfToken:D6.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=r&&E1.merge(r.common,r[a.method]);r&&E1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),a.headers=p6.concat(i,r);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(a)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,d=0,h;if(!l){const v=[S61.bind(this),void 0];for(v.unshift.apply(v,o),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=o.length;let p=a;for(d=0;d<h;){const v=o[d++],m=o[d++];try{p=v(p)}catch(y){m.call(this,y);break}}try{u=S61.call(this,p)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=vi(this.defaults,t);const a=Bv1(t.baseURL,t.url);return Ev1(a,t.params,t.paramsSerializer)}}E1.forEach(["delete","get","head","options"],function(e){c$.prototype[e]=function(t,a){return this.request(vi(a||{},{method:e,url:t,data:(a||{}).data}))}});E1.forEach(["post","put","patch"],function(e){function t(a){return function(c,n,r){return this.request(vi(r||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:n}))}}c$.prototype[e]=t(),c$.prototype[e+"Form"]=t(!0)});const YR=c$;class lJ{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(n){a=n});const c=this;this.promise.then(n=>{if(!c._listeners)return;let r=c._listeners.length;for(;r-- >0;)c._listeners[r](n);c._listeners=null}),this.promise.then=n=>{let r;const i=new Promise(o=>{c.subscribe(o),r=o}).then(n);return i.cancel=function(){c.unsubscribe(r)},i},t(function(n,r,i){c.reason||(c.reason=new Ns(n,r,i),a(c.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 a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=c=>{t.abort(c)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new lJ(function(a){t=a}),cancel:t}}}const Ws3=lJ;function Ys3(e){return function(t){return e.apply(null,t)}}function Gs3(e){return E1.isObject(e)&&e.isAxiosError===!0}const PG={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(PG).forEach(([e,t])=>{PG[t]=e});const Zs3=PG;function Uv1(e){const t=new YR(e),a=bv1(YR.prototype.request,t);return E1.extend(a,YR.prototype,t,{allOwnKeys:!0}),E1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(c){return Uv1(vi(e,c))},a}const qe=Uv1(sJ);qe.Axios=YR;qe.CanceledError=Ns;qe.CancelToken=Ws3;qe.isCancel=Ov1;qe.VERSION=jv1;qe.toFormData=nj;qe.AxiosError=b2;qe.Cancel=qe.CanceledError;qe.all=function(e){return Promise.all(e)};qe.spread=Ys3;qe.isAxiosError=Gs3;qe.mergeConfig=vi;qe.AxiosHeaders=p6;qe.formToJSON=e=>Pv1(E1.isHTMLForm(e)?new FormData(e):e);qe.getAdapter=qv1.getAdapter;qe.HttpStatusCode=Zs3;qe.default=qe;const Xs3={timeFrom:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(0),lessEqualRule:nW(23)},timeTo:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(24)},timeStep:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(60)}},Ks3=s.defineComponent({__name:"ConfigModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{},config:{required:!0},configModifiers:{}},emits:s.mergeModels(["configChanged"],["update:modelValue","update:config"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=s.useModel(e,"config"),n=t,r=$2("pgaCalendar"),i=s.ref({...c.value}),o=Yn1(Xs3,i);async function l(){if(!await o.value.$validate())return;if(i.value.timeTo<=i.value.timeFrom){H0("danger",r("errorTimeRange"));return}const f={...i.value};c.value=f,n("configChanged",f),a.value=!1}return(f,u)=>{const d=s.resolveComponent("PgaSwitch"),h=s.resolveComponent("PgaInput"),p=s.resolveComponent("PgaForm"),v=s.resolveComponent("PgaModal");return s.openBlock(),s.createBlock(v,{modelValue:a.value,"onUpdate:modelValue":u[7]||(u[7]=m=>a.value=m),title:s.unref(r)("configModalTitle"),width:"32rem",confirmButtons:"",acceptText:s.unref(r)("applyBtn"),acceptIcon:"check",onAccept:u[8]||(u[8]=m=>l())},{default:s.withCtx(()=>[s.createVNode(p,null,{default:s.withCtx(()=>[s.createVNode(d,{modelValue:i.value.displayWeekends,"onUpdate:modelValue":u[0]||(u[0]=m=>i.value.displayWeekends=m),label:s.unref(r)("displayWeekends"),labelInLine:""},null,8,["modelValue","label"]),s.createVNode(h,{modelValue:i.value.timeFrom,"onUpdate:modelValue":u[1]||(u[1]=m=>i.value.timeFrom=m),type:"number",integer:"",label:s.unref(r)("timeFrom"),description:s.unref(r)("timeFromDescription"),errors:s.unref(o).timeFrom.$errors,onKeyup:u[2]||(u[2]=s.withKeys(m=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeTo,"onUpdate:modelValue":u[3]||(u[3]=m=>i.value.timeTo=m),type:"number",integer:"",label:s.unref(r)("timeTo"),description:s.unref(r)("timeToDescription"),errors:s.unref(o).timeTo.$errors,onKeyup:u[4]||(u[4]=s.withKeys(m=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeStep,"onUpdate:modelValue":u[5]||(u[5]=m=>i.value.timeStep=m),type:"number",integer:"",label:s.unref(r)("timeStep"),description:s.unref(r)("timeStepDescription"),errors:s.unref(o).timeStep.$errors,onKeyup:u[6]||(u[6]=s.withKeys(m=>l(),["enter"]))},null,8,["modelValue","label","description","errors"])]),_:1})]),_:1},8,["modelValue","title","acceptText"])}}}),Qs3={class:"pga-calendar"},Js3={class:"calendar-header"},e93={class:"calendar-header__actions"},t93={class:"calendar-header__navigation"},a93={class:"calendar-header__views"},c93=["onClick"],n93=50,r93=s.defineComponent({__name:"PgaCalendar",props:s.mergeModels({noEventsLabel:{},isLoading:{type:Boolean},holidays:{},vacations:{},updateDatesFn:{type:Function}},{config:{required:!0},configModifiers:{},events:{required:!0},eventsModifiers:{},searchRange:{default:void 0},searchRangeModifiers:{}}),emits:s.mergeModels(["configChanged","createEvent","eventClicked","refreshList"],["update:config","update:events","update:searchRange"]),setup(e,{emit:t}){const a=s.useModel(e,"config"),c=s.useModel(e,"events"),n=s.useModel(e,"searchRange"),r=e,i=t,o=$2("pgaCalendar"),l=Lo(),f=s.ref(l?"day":"week"),u=Te.getConfig().delayTime;let d=0,h;const p=s.ref(!1),v=s.computed(()=>l?["month","day"]:["month","week","day"]),m=s.computed(()=>["years","year",...l?["week"]:[]]),y=s.computed(()=>{var V;const H=((V=r.vacations)==null?void 0:V.flatMap(({start:N,end:L})=>{const w=[],P=new Date(N),j=new Date(L);for(;P<=j;){const T=P.getUTCFullYear(),B=P.getUTCMonth(),F=P.getUTCDate(),K=new Date(Date.UTC(T,B,F));w.push(K.toISOString().split("T")[0]),P.setUTCDate(P.getUTCDate()+1)}return w}))||[];return[...r.holidays||[],...H]}),g=s.computed(()=>a.value.timeStep*6e4);function M(H){const V=new Date(H);V.setMinutes(0,0,0);const N=H.getTime()-V.getTime(),L=Math.floor(N/g.value);return new Date(V.getTime()+L*g.value)}function x(H){const V={start:H.startDate,end:H.endDate};n.value&&V.start>=n.value.start&&V.end<=n.value.end||(n.value=V,i("refreshList",V))}function k(){const H=M(new Date),V=new Date(H.getTime()+g.value);i("createEvent",{start:H,end:V})}function b(H){if(f.value==="month")return;const V=Date.now();if(V-d<u){h&&clearTimeout(h);return}d=V;const N=M(H),L=new Date(N.getTime()+g.value);h=setTimeout(()=>i("createEvent",{start:N,end:L}),u)}async function _(H){const V=c.value.find(N=>N.id===H.event.id);V.start=M(H.event.start),V.end=M(H.event.end);try{await r.updateDatesFn(V)}catch{V.start=new Date(H.originalEvent.start),V.end=new Date(H.originalEvent.end)}}function C(H){setTimeout(()=>i("eventClicked",H),u)}return(H,V)=>(s.openBlock(),s.createElementBlock("div",Qs3,[s.createElementVNode("div",Js3,[s.createElementVNode("div",e93,[s.createVNode(A2,{variant:"filled",size:"s",icon:"plus",text:s.unref(o)("createEvent"),onClick:V[0]||(V[0]=N=>k())},null,8,["text"]),s.createVNode(A2,{variant:"flat",size:"s",icon:"cog",text:s.unref(o)("configBtn"),onClick:V[1]||(V[1]=N=>p.value=!0)},null,8,["text"]),s.createVNode(Ks3,{modelValue:p.value,"onUpdate:modelValue":V[2]||(V[2]=N=>p.value=N),config:a.value,"onUpdate:config":V[3]||(V[3]=N=>a.value=N),onConfigChanged:V[4]||(V[4]=N=>i("configChanged",N))},null,8,["modelValue","config"])]),s.createElementVNode("div",t93,[s.createElementVNode("div",a93,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(v.value,N=>(s.openBlock(),s.createBlock(A2,{key:N,variant:f.value===N?"filled":"flat",size:"s",text:s.unref(o)(N),onClick:L=>f.value=N},null,8,["variant","text","onClick"]))),128))])])]),s.createVNode(s.unref(ll2),{ref:"vuecalRef",activeView:f.value,"onUpdate:activeView":V[5]||(V[5]=N=>f.value=N),hideViewSelector:"",showTimeInCells:"",watchRealTime:"",events:c.value,locale:s.unref(g6)().language,disableViews:m.value,disableDays:y.value,hideWeekends:!a.value.displayWeekends,timeFrom:a.value.timeFrom*60,timeTo:a.value.timeTo*60,timeStep:a.value.timeStep,timeCellHeight:n93,editableEvents:{drag:!!H.updateDatesFn},style:{"min-height":"22.5rem"},onReady:V[6]||(V[6]=N=>x(N)),onViewChange:V[7]||(V[7]=N=>x(N)),onCellClick:V[8]||(V[8]=N=>b(N)),onEventDrop:V[9]||(V[9]=N=>_(N))},s.createSlots({"previous-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-left"})]),"next-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-right"})]),event:s.withCtx(({event:N})=>[s.createElementVNode("div",{class:"cal-event-container",onClick:L=>C(N)},[s.renderSlot(H.$slots,"event",{event:N},void 0,!0)],8,c93)]),_:2},[H.isLoading?{name:"title",fn:s.withCtx(()=>[s.createVNode(w8,{size:"m"})]),key:"0"}:void 0,H.noEventsLabel?{name:"no-event",fn:s.withCtx(()=>[s.createVNode(D3,{text:H.noEventsLabel},null,8,["text"])]),key:"1"}:void 0]),1032,["activeView","events","locale","disableViews","disableDays","hideWeekends","timeFrom","timeTo","timeStep","editableEvents"])]))}});const i93=Q1(r93,[["__scopeId","data-v-aa6cd0c7"]]);/*!
9471
+ `+r):c.stack=r}catch{}}throw c}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=vi(this.defaults,a);const{transitional:c,paramsSerializer:n,headers:r}=a;c!==void 0&&WR.assertOptions(c,{silentJSONParsing:D6.transitional(D6.boolean),forcedJSONParsing:D6.transitional(D6.boolean),clarifyTimeoutError:D6.transitional(D6.boolean)},!1),n!=null&&(E1.isFunction(n)?a.paramsSerializer={serialize:n}:WR.assertOptions(n,{encode:D6.function,serialize:D6.function},!0)),WR.assertOptions(a,{baseUrl:D6.spelling("baseURL"),withXsrfToken:D6.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=r&&E1.merge(r.common,r[a.method]);r&&E1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),a.headers=p6.concat(i,r);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(a)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,d=0,h;if(!l){const v=[S61.bind(this),void 0];for(v.unshift.apply(v,o),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=o.length;let p=a;for(d=0;d<h;){const v=o[d++],m=o[d++];try{p=v(p)}catch(y){m.call(this,y);break}}try{u=S61.call(this,p)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=vi(this.defaults,t);const a=Bv1(t.baseURL,t.url);return Ev1(a,t.params,t.paramsSerializer)}}E1.forEach(["delete","get","head","options"],function(e){c$.prototype[e]=function(t,a){return this.request(vi(a||{},{method:e,url:t,data:(a||{}).data}))}});E1.forEach(["post","put","patch"],function(e){function t(a){return function(c,n,r){return this.request(vi(r||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:n}))}}c$.prototype[e]=t(),c$.prototype[e+"Form"]=t(!0)});const YR=c$;class lJ{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(n){a=n});const c=this;this.promise.then(n=>{if(!c._listeners)return;let r=c._listeners.length;for(;r-- >0;)c._listeners[r](n);c._listeners=null}),this.promise.then=n=>{let r;const i=new Promise(o=>{c.subscribe(o),r=o}).then(n);return i.cancel=function(){c.unsubscribe(r)},i},t(function(n,r,i){c.reason||(c.reason=new Ns(n,r,i),a(c.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 a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=c=>{t.abort(c)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new lJ(function(a){t=a}),cancel:t}}}const Ws3=lJ;function Ys3(e){return function(t){return e.apply(null,t)}}function Gs3(e){return E1.isObject(e)&&e.isAxiosError===!0}const PG={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(PG).forEach(([e,t])=>{PG[t]=e});const Zs3=PG;function Uv1(e){const t=new YR(e),a=bv1(YR.prototype.request,t);return E1.extend(a,YR.prototype,t,{allOwnKeys:!0}),E1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(c){return Uv1(vi(e,c))},a}const qe=Uv1(sJ);qe.Axios=YR;qe.CanceledError=Ns;qe.CancelToken=Ws3;qe.isCancel=Ov1;qe.VERSION=jv1;qe.toFormData=nj;qe.AxiosError=b2;qe.Cancel=qe.CanceledError;qe.all=function(e){return Promise.all(e)};qe.spread=Ys3;qe.isAxiosError=Gs3;qe.mergeConfig=vi;qe.AxiosHeaders=p6;qe.formToJSON=e=>Pv1(E1.isHTMLForm(e)?new FormData(e):e);qe.getAdapter=qv1.getAdapter;qe.HttpStatusCode=Zs3;qe.default=qe;const Xs3={timeFrom:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(0),lessEqualRule:nW(23)},timeTo:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(24)},timeStep:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(60)}},Ks3=s.defineComponent({__name:"ConfigModal",props:s.mergeModels({config:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["configChanged"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t,r=$2("pgaCalendar"),i=s.ref({...c.config}),o=Yn1(Xs3,i);async function l(){if(await o.value.$validate()){if(i.value.timeTo<=i.value.timeFrom){H0("danger",r("errorTimeRange"));return}n("configChanged",i.value),a.value=!1}}return(f,u)=>{const d=s.resolveComponent("PgaSwitch"),h=s.resolveComponent("PgaInput"),p=s.resolveComponent("PgaColorSelector"),v=s.resolveComponent("PgaForm"),m=s.resolveComponent("PgaModal");return s.openBlock(),s.createBlock(m,{modelValue:a.value,"onUpdate:modelValue":u[8]||(u[8]=y=>a.value=y),title:s.unref(r)("configModalTitle"),width:"32rem",confirmButtons:"",acceptText:s.unref(r)("applyBtn"),acceptIcon:"check",onAccept:u[9]||(u[9]=y=>l())},{default:s.withCtx(()=>[s.createVNode(v,null,{default:s.withCtx(()=>[s.createVNode(d,{modelValue:i.value.displayWeekends,"onUpdate:modelValue":u[0]||(u[0]=y=>i.value.displayWeekends=y),label:s.unref(r)("displayWeekends"),labelInLine:""},null,8,["modelValue","label"]),s.createVNode(h,{modelValue:i.value.timeFrom,"onUpdate:modelValue":u[1]||(u[1]=y=>i.value.timeFrom=y),type:"number",integer:"",label:s.unref(r)("timeFrom"),description:s.unref(r)("timeFromDescription"),errors:s.unref(o).timeFrom.$errors,onKeyup:u[2]||(u[2]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeTo,"onUpdate:modelValue":u[3]||(u[3]=y=>i.value.timeTo=y),type:"number",integer:"",label:s.unref(r)("timeTo"),description:s.unref(r)("timeToDescription"),errors:s.unref(o).timeTo.$errors,onKeyup:u[4]||(u[4]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeStep,"onUpdate:modelValue":u[5]||(u[5]=y=>i.value.timeStep=y),type:"number",integer:"",label:s.unref(r)("timeStep"),description:s.unref(r)("timeStepDescription"),errors:s.unref(o).timeStep.$errors,onKeyup:u[6]||(u[6]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(p,{modelValue:i.value.defaultColor,"onUpdate:modelValue":u[7]||(u[7]=y=>i.value.defaultColor=y),label:s.unref(r)("defaultColor")},null,8,["modelValue","label"])]),_:1})]),_:1},8,["modelValue","title","acceptText"])}}}),Qs3={class:"pga-calendar"},Js3={class:"calendar-header"},e93={class:"calendar-header__actions"},t93={class:"calendar-header__navigation"},a93={class:"calendar-header__views"},c93=["onClick"],n93=50,r93=s.defineComponent({__name:"PgaCalendar",props:s.mergeModels({config:{},noEventsLabel:{},isLoading:{type:Boolean},holidays:{},vacations:{},updateDatesFn:{type:Function}},{events:{required:!0},eventsModifiers:{},searchRange:{default:void 0},searchRangeModifiers:{}}),emits:s.mergeModels(["configChanged","createEvent","eventClicked","refreshList"],["update:events","update:searchRange"]),setup(e,{emit:t}){const a=s.useModel(e,"events"),c=s.useModel(e,"searchRange"),n=e,r=t,i=$2("pgaCalendar"),o=Lo(),l=s.ref(o?"day":"week"),f=Te.getConfig().delayTime;let u=0,d;const h=s.ref(!1),p=s.computed(()=>o?["month","day"]:["month","week","day"]),v=s.computed(()=>["years","year",...o?["week"]:[]]),m=s.computed(()=>{var H;const C=((H=n.vacations)==null?void 0:H.flatMap(({start:V,end:N})=>{const L=[],w=new Date(V),P=new Date(N);for(;w<=P;){const j=w.getUTCFullYear(),T=w.getUTCMonth(),B=w.getUTCDate(),F=new Date(Date.UTC(j,T,B));L.push(F.toISOString().split("T")[0]),w.setUTCDate(w.getUTCDate()+1)}return L}))||[];return[...n.holidays||[],...C]}),y=s.computed(()=>n.config.timeStep*6e4);function g(C){const H=new Date(C);H.setMinutes(0,0,0);const V=C.getTime()-H.getTime(),N=Math.floor(V/y.value);return new Date(H.getTime()+N*y.value)}function M(C){const H={start:C.startDate,end:C.endDate};c.value&&H.start>=c.value.start&&H.end<=c.value.end||(c.value=H,r("refreshList",H))}function x(){const C=g(new Date),H=new Date(C.getTime()+y.value);r("createEvent",{start:C,end:H})}function k(C){if(l.value==="month")return;const H=Date.now();if(H-u<f){d&&clearTimeout(d);return}u=H;const V=g(C),N=new Date(V.getTime()+y.value);d=setTimeout(()=>r("createEvent",{start:V,end:N}),f)}async function b(C){const H=a.value.find(V=>V.id===C.event.id);H.start=g(C.event.start),H.end=g(C.event.end);try{await n.updateDatesFn(H)}catch{H.start=new Date(C.originalEvent.start),H.end=new Date(C.originalEvent.end)}}function _(C){setTimeout(()=>r("eventClicked",C),f)}return(C,H)=>(s.openBlock(),s.createElementBlock("div",Qs3,[s.createElementVNode("div",Js3,[s.createElementVNode("div",e93,[s.createVNode(A2,{variant:"filled",size:"s",icon:"plus",text:s.unref(i)("createEvent"),onClick:H[0]||(H[0]=V=>x())},null,8,["text"]),s.createVNode(A2,{variant:"flat",size:"s",icon:"cog",text:s.unref(i)("configBtn"),onClick:H[1]||(H[1]=V=>h.value=!0)},null,8,["text"]),s.createVNode(Ks3,{modelValue:h.value,"onUpdate:modelValue":H[2]||(H[2]=V=>h.value=V),config:C.config,onConfigChanged:H[3]||(H[3]=V=>r("configChanged",V))},null,8,["modelValue","config"])]),s.createElementVNode("div",t93,[s.createElementVNode("div",a93,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,V=>(s.openBlock(),s.createBlock(A2,{key:V,variant:l.value===V?"filled":"flat",size:"s",text:s.unref(i)(V),onClick:N=>l.value=V},null,8,["variant","text","onClick"]))),128))])])]),s.createVNode(s.unref(ll2),{ref:"vuecalRef",activeView:l.value,"onUpdate:activeView":H[4]||(H[4]=V=>l.value=V),hideViewSelector:"",showTimeInCells:"",watchRealTime:"",events:a.value,locale:s.unref(g6)().language,disableViews:v.value,disableDays:m.value,hideWeekends:!C.config.displayWeekends,timeFrom:C.config.timeFrom*60,timeTo:C.config.timeTo*60,timeStep:C.config.timeStep,timeCellHeight:n93,editableEvents:{drag:!!C.updateDatesFn},style:{"min-height":"22.5rem"},onReady:H[5]||(H[5]=V=>M(V)),onViewChange:H[6]||(H[6]=V=>M(V)),onCellClick:H[7]||(H[7]=V=>k(V)),onEventDrop:H[8]||(H[8]=V=>b(V))},s.createSlots({"previous-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-left"})]),"next-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-right"})]),event:s.withCtx(({event:V})=>[s.createElementVNode("div",{class:"cal-event-container",onClick:N=>_(V)},[s.renderSlot(C.$slots,"event",{event:V},void 0,!0)],8,c93)]),_:2},[C.isLoading?{name:"title",fn:s.withCtx(()=>[s.createVNode(w8,{size:"m"})]),key:"0"}:void 0,C.noEventsLabel?{name:"no-event",fn:s.withCtx(()=>[s.createVNode(D3,{text:C.noEventsLabel},null,8,["text"])]),key:"1"}:void 0]),1032,["activeView","events","locale","disableViews","disableDays","hideWeekends","timeFrom","timeTo","timeStep","editableEvents"])]))}});const i93=Q1(r93,[["__scopeId","data-v-eeff253c"]]);/*!
9472
9472
  * @kurkle/color v0.3.4
9473
9473
  * https://github.com/kurkle/color#readme
9474
9474
  * (c) 2024 Jukka Kurkela