pangea-lib 3.1.62 → 3.1.63
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 +1 -1
- package/dist/main.es.js +1 -1
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(U){return U instanceof this?U:new this(U)}static concat(U,...B){const K=new this(U);return B.forEach(Q=>K.set(Q)),K}static accessor(U){const B=(this[G2]=this[G2]={accessors:{}}).accessors,K=this.prototype;function Q(o1){const s1=m2(o1);B[s1]||(function(x1,V1){const L1=T.toCamelCase(" "+V1);["get","set","has"].forEach(w1=>{Object.defineProperty(x1,w1+L1,{value:function(N1,I1,J1){return this[w1].call(this,V1,N1,I1,J1)},configurable:!0})})}(K,o1),B[s1]=!0)}return T.isArray(U)?U.forEach(Q):Q(U),this}}y1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(y1.prototype,({value:O},U)=>{let B=U[0].toUpperCase()+U.slice(1);return{get:()=>O,set(K){this[B]=K}}}),T.freezeMethods(y1);var m1=y1;function S1(O,U){const B=this||O1,K=U||B,Q=m1.from(K.headers);let o1=K.data;return T.forEach(O,function(s1){o1=s1.call(B,o1,Q.normalize(),U?U.status:void 0)}),Q.normalize(),o1}function T1(O){return!(!O||!O.__CANCEL__)}function Q1(O,U,B){I.call(this,O??"canceled",I.ERR_CANCELED,U,B),this.name="CanceledError"}T.inherits(Q1,I,{__CANCEL__:!0});var Q2=d2.hasStandardBrowserEnv?{write(O,U,B,K,Q,o1){const s1=[O+"="+encodeURIComponent(U)];T.isNumber(B)&&s1.push("expires="+new Date(B).toGMTString()),T.isString(K)&&s1.push("path="+K),T.isString(Q)&&s1.push("domain="+Q),o1===!0&&s1.push("secure"),document.cookie=s1.join("; ")},read(O){const U=document.cookie.match(new RegExp("(^|;\\s*)("+O+")=([^;]*)"));return U?decodeURIComponent(U[3]):null},remove(O){this.write(O,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function _e(O,U){return O&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(U)?function(B,K){return K?B.replace(/\/?\/$/,"")+"/"+K.replace(/^\/+/,""):B}(O,U):U}var h3=d2.hasStandardBrowserEnv?function(){const O=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let B;function K(Q){let o1=Q;return O&&(U.setAttribute("href",o1),o1=U.href),U.setAttribute("href",o1),{href:U.href,protocol:U.protocol?U.protocol.replace(/:$/,""):"",host:U.host,search:U.search?U.search.replace(/^\?/,""):"",hash:U.hash?U.hash.replace(/^#/,""):"",hostname:U.hostname,port:U.port,pathname:U.pathname.charAt(0)==="/"?U.pathname:"/"+U.pathname}}return B=K(window.location.href),function(Q){const o1=T.isString(Q)?K(Q):Q;return o1.protocol===B.protocol&&o1.host===B.host}}():function(){return!0};function j3(O,U){let B=0;const K=function(Q,o1){Q=Q||10;const s1=new Array(Q),x1=new Array(Q);let V1,L1=0,w1=0;return o1=o1!==void 0?o1:1e3,function(N1){const I1=Date.now(),J1=x1[w1];V1||(V1=I1),s1[L1]=N1,x1[L1]=I1;let U1=w1,i2=0;for(;U1!==L1;)i2+=s1[U1++],U1%=Q;if(L1=(L1+1)%Q,L1===w1&&(w1=(w1+1)%Q),I1-V1<o1)return;const P2=J1&&I1-J1;return P2?Math.round(1e3*i2/P2):void 0}}(50,250);return Q=>{const o1=Q.loaded,s1=Q.lengthComputable?Q.total:void 0,x1=o1-B,V1=K(x1);B=o1;const L1={loaded:o1,total:s1,progress:s1?o1/s1:void 0,bytes:x1,rate:V1||void 0,estimated:V1&&s1&&o1<=s1?(s1-o1)/V1:void 0,event:Q};L1[U?"download":"upload"]=!0,O(L1)}}const k2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(O){return new Promise(function(U,B){let K=O.data;const Q=m1.from(O.headers).normalize();let o1,s1,{responseType:x1,withXSRFToken:V1}=O;function L1(){O.cancelToken&&O.cancelToken.unsubscribe(o1),O.signal&&O.signal.removeEventListener("abort",o1)}if(T.isFormData(K)){if(d2.hasStandardBrowserEnv||d2.hasStandardBrowserWebWorkerEnv)Q.setContentType(!1);else if((s1=Q.getContentType())!==!1){const[U1,...i2]=s1?s1.split(";").map(P2=>P2.trim()).filter(Boolean):[];Q.setContentType([U1||"multipart/form-data",...i2].join("; "))}}let w1=new XMLHttpRequest;if(O.auth){const U1=O.auth.username||"",i2=O.auth.password?unescape(encodeURIComponent(O.auth.password)):"";Q.set("Authorization","Basic "+btoa(U1+":"+i2))}const N1=_e(O.baseURL,O.url);function I1(){if(!w1)return;const U1=m1.from("getAllResponseHeaders"in w1&&w1.getAllResponseHeaders());(function(i2,P2,ue){const Sf=ue.config.validateStatus;ue.status&&Sf&&!Sf(ue.status)?P2(new I("Request failed with status code "+ue.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(ue.status/100)-4],ue.config,ue.request,ue)):i2(ue)})(function(i2){U(i2),L1()},function(i2){B(i2),L1()},{data:x1&&x1!=="text"&&x1!=="json"?w1.response:w1.responseText,status:w1.status,statusText:w1.statusText,headers:U1,config:O,request:w1}),w1=null}if(w1.open(O.method.toUpperCase(),g1(N1,O.params,O.paramsSerializer),!0),w1.timeout=O.timeout,"onloadend"in w1?w1.onloadend=I1:w1.onreadystatechange=function(){w1&&w1.readyState===4&&(w1.status!==0||w1.responseURL&&w1.responseURL.indexOf("file:")===0)&&setTimeout(I1)},w1.onabort=function(){w1&&(B(new I("Request aborted",I.ECONNABORTED,O,w1)),w1=null)},w1.onerror=function(){B(new I("Network Error",I.ERR_NETWORK,O,w1)),w1=null},w1.ontimeout=function(){let U1=O.timeout?"timeout of "+O.timeout+"ms exceeded":"timeout exceeded";const i2=O.transitional||b1;O.timeoutErrorMessage&&(U1=O.timeoutErrorMessage),B(new I(U1,i2.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,O,w1)),w1=null},d2.hasStandardBrowserEnv&&(V1&&T.isFunction(V1)&&(V1=V1(O)),V1||V1!==!1&&h3(N1))){const U1=O.xsrfHeaderName&&O.xsrfCookieName&&Q2.read(O.xsrfCookieName);U1&&Q.set(O.xsrfHeaderName,U1)}K===void 0&&Q.setContentType(null),"setRequestHeader"in w1&&T.forEach(Q.toJSON(),function(U1,i2){w1.setRequestHeader(i2,U1)}),T.isUndefined(O.withCredentials)||(w1.withCredentials=!!O.withCredentials),x1&&x1!=="json"&&(w1.responseType=O.responseType),typeof O.onDownloadProgress=="function"&&w1.addEventListener("progress",j3(O.onDownloadProgress,!0)),typeof O.onUploadProgress=="function"&&w1.upload&&w1.upload.addEventListener("progress",j3(O.onUploadProgress)),(O.cancelToken||O.signal)&&(o1=U1=>{w1&&(B(!U1||U1.type?new Q1(null,O,w1):U1),w1.abort(),w1=null)},O.cancelToken&&O.cancelToken.subscribe(o1),O.signal&&(O.signal.aborted?o1():O.signal.addEventListener("abort",o1)));const J1=function(U1){const i2=/^([-+\w]{1,25})(:?\/\/|:)/.exec(U1);return i2&&i2[1]||""}(N1);J1&&d2.protocols.indexOf(J1)===-1?B(new I("Unsupported protocol "+J1+":",I.ERR_BAD_REQUEST,O)):w1.send(K||null)})}};T.forEach(k2,(O,U)=>{if(O){try{Object.defineProperty(O,"name",{value:U})}catch{}Object.defineProperty(O,"adapterName",{value:U})}});const xe=O=>`- ${O}`,K4=O=>T.isFunction(O)||O===null||O===!1;var Z4=O=>{O=T.isArray(O)?O:[O];const{length:U}=O;let B,K;const Q={};for(let o1=0;o1<U;o1++){let s1;if(B=O[o1],K=B,!K4(B)&&(K=k2[(s1=String(B)).toLowerCase()],K===void 0))throw new I(`Unknown adapter '${s1}'`);if(K)break;Q[s1||"#"+o1]=K}if(!K){const o1=Object.entries(Q).map(([s1,x1])=>`adapter ${s1} `+(x1===!1?"is not supported by the environment":"is not available in the build"));throw new I("There is no suitable adapter to dispatch the request "+(U?o1.length>1?`since :
|
|
4
4
|
`+o1.map(xe).join(`
|
|
5
5
|
`):" "+xe(o1[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return K};function Q4(O){if(O.cancelToken&&O.cancelToken.throwIfRequested(),O.signal&&O.signal.aborted)throw new Q1(null,O)}function M0(O){return Q4(O),O.headers=m1.from(O.headers),O.data=S1.call(O,O.transformRequest),["post","put","patch"].indexOf(O.method)!==-1&&O.headers.setContentType("application/x-www-form-urlencoded",!1),Z4(O.adapter||O1.adapter)(O).then(function(U){return Q4(O),U.data=S1.call(O,O.transformResponse,U),U.headers=m1.from(U.headers),U},function(U){return T1(U)||(Q4(O),U&&U.response&&(U.response.data=S1.call(O,O.transformResponse,U.response),U.response.headers=m1.from(U.response.headers))),Promise.reject(U)})}const z0=O=>O instanceof m1?{...O}:O;function E3(O,U){U=U||{};const B={};function K(L1,w1,N1){return T.isPlainObject(L1)&&T.isPlainObject(w1)?T.merge.call({caseless:N1},L1,w1):T.isPlainObject(w1)?T.merge({},w1):T.isArray(w1)?w1.slice():w1}function Q(L1,w1,N1){return T.isUndefined(w1)?T.isUndefined(L1)?void 0:K(void 0,L1,N1):K(L1,w1,N1)}function o1(L1,w1){if(!T.isUndefined(w1))return K(void 0,w1)}function s1(L1,w1){return T.isUndefined(w1)?T.isUndefined(L1)?void 0:K(void 0,L1):K(void 0,w1)}function x1(L1,w1,N1){return N1 in U?K(L1,w1):N1 in O?K(void 0,L1):void 0}const V1={url:o1,method:o1,data:o1,baseURL:s1,transformRequest:s1,transformResponse:s1,paramsSerializer:s1,timeout:s1,timeoutMessage:s1,withCredentials:s1,withXSRFToken:s1,adapter:s1,responseType:s1,xsrfCookieName:s1,xsrfHeaderName:s1,onUploadProgress:s1,onDownloadProgress:s1,decompress:s1,maxContentLength:s1,maxBodyLength:s1,beforeRedirect:s1,transport:s1,httpAgent:s1,httpsAgent:s1,cancelToken:s1,socketPath:s1,responseEncoding:s1,validateStatus:x1,headers:(L1,w1)=>Q(z0(L1),z0(w1),!0)};return T.forEach(Object.keys(Object.assign({},O,U)),function(L1){const w1=V1[L1]||Q,N1=w1(O[L1],U[L1],L1);T.isUndefined(N1)&&w1!==x1||(B[L1]=N1)}),B}const Ue={};["object","boolean","number","function","string","symbol"].forEach((O,U)=>{Ue[O]=function(B){return typeof B===O||"a"+(U<1?"n ":" ")+O}});const J4={};Ue.transitional=function(O,U,B){function K(Q,o1){return"[Axios v1.6.8] Transitional option '"+Q+"'"+o1+(B?". "+B:"")}return(Q,o1,s1)=>{if(O===!1)throw new I(K(o1," has been removed"+(U?" in "+U:"")),I.ERR_DEPRECATED);return U&&!J4[o1]&&(J4[o1]=!0,console.warn(K(o1," has been deprecated since v"+U+" and will be removed in the near future"))),!O||O(Q,o1,s1)}};var Tt={assertOptions:function(O,U,B){if(typeof O!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const K=Object.keys(O);let Q=K.length;for(;Q-- >0;){const o1=K[Q],s1=U[o1];if(s1){const x1=O[o1],V1=x1===void 0||s1(x1,o1,O);if(V1!==!0)throw new I("option "+o1+" must be "+V1,I.ERR_BAD_OPTION_VALUE)}else if(B!==!0)throw new I("Unknown option "+o1,I.ERR_BAD_OPTION)}},validators:Ue};const X=Tt.validators;class r1{constructor(U){this.defaults=U,this.interceptors={request:new k1,response:new k1}}async request(U,B){try{return await this._request(U,B)}catch(K){if(K instanceof Error){let Q;Error.captureStackTrace?Error.captureStackTrace(Q={}):Q=new Error;const o1=Q.stack?Q.stack.replace(/^.+\n/,""):"";K.stack?o1&&!String(K.stack).endsWith(o1.replace(/^.+\n.+\n/,""))&&(K.stack+=`
|
|
6
|
-
`+o1):K.stack=o1}throw K}}_request(U,B){typeof U=="string"?(B=B||{}).url=U:B=U||{},B=E3(this.defaults,B);const{transitional:K,paramsSerializer:Q,headers:o1}=B;K!==void 0&&Tt.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Q!=null&&(T.isFunction(Q)?B.paramsSerializer={serialize:Q}:Tt.assertOptions(Q,{encode:X.function,serialize:X.function},!0)),B.method=(B.method||this.defaults.method||"get").toLowerCase();let s1=o1&&T.merge(o1.common,o1[B.method]);o1&&T.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),B.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(B)===!1||(V1=V1&&U1.synchronous,x1.unshift(U1.fulfilled,U1.rejected))});const L1=[];let w1;this.interceptors.response.forEach(function(U1){L1.push(U1.fulfilled,U1.rejected)});let N1,I1=0;if(!V1){const U1=[M0.bind(this),void 0];for(U1.unshift.apply(U1,x1),U1.push.apply(U1,L1),N1=U1.length,w1=Promise.resolve(B);I1<N1;)w1=w1.then(U1[I1++],U1[I1++]);return w1}N1=x1.length;let J1=B;for(I1=0;I1<N1;){const U1=x1[I1++],i2=x1[I1++];try{J1=U1(J1)}catch(P2){i2.call(this,P2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(I1=0,N1=L1.length;I1<N1;)w1=w1.then(L1[I1++],L1[I1++]);return w1}getUri(U){return g1(_e((U=E3(this.defaults,U)).baseURL,U.url),U.params,U.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(O){r1.prototype[O]=function(U,B){return this.request(E3(B||{},{method:O,url:U,data:(B||{}).data}))}}),T.forEach(["post","put","patch"],function(O){function U(B){return function(K,Q,o1){return this.request(E3(o1||{},{method:O,headers:B?{"Content-Type":"multipart/form-data"}:{},url:K,data:Q}))}}r1.prototype[O]=U(),r1.prototype[O+"Form"]=U(!0)});var J=r1;class e1{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let B;this.promise=new Promise(function(Q){B=Q});const K=this;this.promise.then(Q=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Q);K._listeners=null}),this.promise.then=Q=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Q);return s1.cancel=function(){K.unsubscribe(o1)},s1},U(function(Q,o1,s1){K.reason||(K.reason=new Q1(Q,o1,s1),B(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){this.reason?U(this.reason):this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const B=this._listeners.indexOf(U);B!==-1&&this._listeners.splice(B,1)}static source(){let U;return{token:new e1(function(B){U=B}),cancel:U}}}var c1=e1;const i1={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(i1).forEach(([O,U])=>{i1[U]=O});var C1=i1;const M1=function O(U){const B=new J(U),K=l(J.prototype.request,B);return T.extend(K,J.prototype,B,{allOwnKeys:!0}),T.extend(K,B,null,{allOwnKeys:!0}),K.create=function(Q){return O(E3(U,Q))},K}(O1);M1.Axios=J,M1.CanceledError=Q1,M1.CancelToken=c1,M1.isCancel=T1,M1.VERSION="1.6.8",M1.toFormData=z1,M1.AxiosError=I,M1.Cancel=M1.CanceledError,M1.all=function(O){return Promise.all(O)},M1.spread=function(O){return function(U){return O.apply(null,U)}},M1.isAxiosError=function(O){return T.isObject(O)&&O.isAxiosError===!0},M1.mergeConfig=E3,M1.AxiosHeaders=m1,M1.formToJSON=O=>G1(T.isHTMLForm(O)?new FormData(O):O),M1.getAdapter=Z4,M1.HttpStatusCode=C1,M1.default=M1,c.exports=M1}},r={};function n(c){var i=r[c];if(i!==void 0)return i.exports;var s=r[c]={exports:{}};return a[c].call(s.exports,s,s.exports,n),s.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)})())})(Np);var Xe=Np.exports,T4;let re=(T4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(T4.instance)throw new Error("Config is already initialized");T4.instance=new T4(t)}static getConfig(){if(!T4.instance)throw new Error("Config is not initialized. Call init() first.");return T4.instance.config}},v1(T4,"instance"),T4);const h4=I4.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),r=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(r,()=>To());function n(l){e.value||(e.value=!0,t.value=Xe.mergeDeep(t.value,l))}function c(l){a.value=l}function i(l){r.value=l}function s(){r.value=r.value==="light"?"dark":"light"}return{options:t,language:a,theme:r,init:n,setLanguage:c,setTheme:i,changeTheme:s}},{persist:!0}),x4=I4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!pc()),a=o.computed(()=>e.value&&Bv(e.value)),r=o.computed(()=>a.value&&e.value&&bn(a.value,e.value.name)),n=o.computed(()=>e.value&&e.value.meta),c=o.computed(()=>{var f;return(f=n.value)==null?void 0:f.access}),i=o.computed(()=>{var f;return Fe((f=n.value)==null?void 0:f.description)}),s=o.computed(()=>{var f;return!!Fe((f=n.value)==null?void 0:f.preventDisplayNavigationBars)}),l=o.computed(()=>!s.value&&t.value);return{currentRoute:e,isSideBarOpen:t,routeType:a,routeTitle:r,routeMeta:n,routeAccess:c,routeDescription:i,preventDisplayNavigationBars:s,isDisplayingSideBar:l}});function Dp(){const e=re.getConfig().stores.useAuthStore(),t=x4().routeType,a=`auth${Xe.getFirstChartInUppercase(t)}`;return e[a].accessToken}async function Op(e,t,a){const r=re.getConfig(),n=r.stores.useAuthStore(),c=`auth/login/${e}`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await r.api.postOne(c,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||r.defaultRoutes[e].auth};r.router.push(l)}async function Pp(){const e=re.getConfig(),t=e.stores.useAuthStore(),a=x4().routeType;try{const r=`auth/validateAccessToken/${a}`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a)}}function oT(e){const t=re.getConfig();t.stores.useAuthStore().setAuthUser(e);const r={name:`login${Xe.getFirstChartInUppercase(e)}`};t.router.push(r)}function sc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Xe.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function oc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function lT(e,t,a="animate__"){return new Promise(r=>{const n=`${a}${t}`,c=document.querySelector(e);if(!c)return;c.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),c==null||c.classList.remove(`${a}animated`,n),r("Animation ended")};c.addEventListener("animationend",i,{once:!0})})}function mn(e){return Object.keys(Tp).includes(e)}function Bp(e,t){let a=0,r=0,n=0,c=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),r=parseInt(f),n=parseInt(u),c=parseFloat(d)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,d]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,m)=>m===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,r=f,n=u,c=d}const i=t/100;return`rgba(${a}, ${r}, ${n}, ${c*i})`}function As(e,t){const r=`color-${Xe.camelToKebab(e)}`,n={preventConvertToKebab:!0};sc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;sc(`${r}-0${i}`,Bp(t,c),n)}}function fT(){const e=Ep,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const uT={es:{successfulLogout:"¡Vuelva pronto!"}},dT={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},hT={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},mT={es:{INTERNAL_SERVER_ERROR:"Ha ocurrido un error",DUPLICATE_KEY:"Item ya creado",FOREIGN_KEY_INTEGRITY:"El item no existe",MODELS_ASSOCIATED:"No se puede eliminar porque tiene items asociados",INVALID_INPUT_DATA:"Los datos ingresados no son correctos",ENTITY_NOT_FOUND:"El item no existe",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos",UNAUTHORIZED:"No autorizado"}},pT={es:{_LOGIN:"¡Bienvenido!"}},vT={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ir al detalle",seeDetailsBtn:"Detalles"}},gT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},yT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},xT={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"}},bT={es:{selectFileLabel:"Seleccionar imágenes",confirmDeleteText:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes"}},CT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"}}},MT={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},zT={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},wT={es:{removeAllBtn:"Eliminar todo"}},_T={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}"}},kT={authHelpers:uT,datetime:dT,alert:hT,apiConnectionsError:mT,apiConnectionsSuccess:pT,pgaButton:vT,pgaDisplay:gT,pgaEditor:yT,pgaForm:xT,pgaImage:bT,pgaLayout:CT,pgaModal:MT,pgaTable:zT,notifications:wT,validations:_T};function Fp(e){function t(a,r){return function(n,c,i){var y;const s=h4().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=r?r.split(".").reduce((x,C)=>x==null?void 0:x[C],f):f,d=(y=e==null?void 0:e.global)==null?void 0:y[s],h=n,m=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(c==null?void 0:c.count)||1,p=m.split("|").map(x=>x.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const x in c||{})x!=="count"&&c[x]!==void 0&&c[x]!==null&&(g=g.replace(new RegExp(`{${x}}`,"g"),c[x].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.uppercase&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const _2=Fp(kT),bi=_2("datetime");function m4(e,t){if(!e)return"-";const r={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:r.withoutYear||r.justTime?void 0:"numeric",month:r.justTime?void 0:r.format==="numeric"?"2-digit":r.format,day:r.withoutDay||r.justTime?void 0:"2-digit",weekday:r.withoutDay||r.justTime||r.format==="numeric"?void 0:r.format,hour:r.withTime||r.justTime?"2-digit":void 0,minute:r.withTime||r.justTime?"2-digit":void 0},c=e.toLocaleString(h4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function HT(e){return m4(e,{format:"short",withoutDay:!0,withTime:!1})}function Wa(e){return m4(e,{format:"numeric",withTime:!1})}function Ts(e){if(!e)return"";const t=Wa(e),a=new Date,r=new Date(a);r.setDate(a.getDate()+1);const n=new Date(a);if(n.setDate(a.getDate()-1),t===Wa(a))return bi("today");if(t===Wa(r))return bi("tomorrow");if(t===Wa(n))return bi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?m4(e,{...c,withoutYear:!0}):m4(e,c)}function lc(e){return m4(e,{justTime:!0})}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:Rp,setPrototypeOf:Af,isFrozen:VT,getPrototypeOf:LT,getOwnPropertyDescriptor:ST}=Object;let{freeze:u3,seal:I3,create:Ip}=Object,{apply:Es,construct:Ns}=typeof Reflect<"u"&&Reflect;u3||(u3=function(t){return t});I3||(I3=function(t){return t});Es||(Es=function(t,a,r){return t.apply(a,r)});Ns||(Ns=function(t,a){return new t(...a)});const Gn=k3(Array.prototype.forEach),Tf=k3(Array.prototype.pop),Ma=k3(Array.prototype.push),P8=k3(String.prototype.toLowerCase),Ci=k3(String.prototype.toString),Ef=k3(String.prototype.match),za=k3(String.prototype.replace),AT=k3(String.prototype.indexOf),TT=k3(String.prototype.trim),K3=k3(Object.prototype.hasOwnProperty),c3=k3(RegExp.prototype.test),wa=ET(TypeError);function k3(e){return function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return Es(e,t,r)}}function ET(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Ns(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P8;Af&&Af(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(VT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function NT(e){for(let t=0;t<e.length;t++)K3(e,t)||(e[t]=null);return e}function S0(e){const t=Ip(null);for(const[a,r]of Rp(e))K3(e,a)&&(Array.isArray(r)?t[a]=NT(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function _a(e,t){for(;e!==null;){const r=ST(e,t);if(r){if(r.get)return k3(r.get);if(typeof r.value=="function")return k3(r.value)}e=LT(e)}function a(){return null}return a}const Nf=u3(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Mi=u3(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zi=u3(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),DT=u3(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wi=u3(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),OT=u3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Df=u3(["#text"]),Of=u3(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_i=u3(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pf=u3(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xn=u3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PT=I3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),BT=I3(/<%[\w\W]*|[\w\W]*%>/gm),FT=I3(/\$\{[\w\W]*}/gm),RT=I3(/^data-[\-\w.\u00B7-\uFFFF]+$/),IT=I3(/^aria-[\-\w]+$/),$p=I3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$T=I3(/^(?:\w+script|data):/i),UT=I3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Up=I3(/^html$/i),WT=I3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Bf=Object.freeze({__proto__:null,ARIA_ATTR:IT,ATTR_WHITESPACE:UT,CUSTOM_ELEMENT:WT,DATA_ATTR:RT,DOCTYPE_NAME:Up,ERB_EXPR:BT,IS_ALLOWED_URI:$p,IS_SCRIPT_OR_DATA:$T,MUSTACHE_EXPR:PT,TMPLIT_EXPR:FT});const ka={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qT=function(){return typeof window>"u"?null:window},jT=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const c="dompurify"+(r?"#"+r:"");try{return t.createPolicy(c,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Ff=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Wp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qT();const t=U=>Wp(U);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==ka.document)return t.isSupported=!1,t;let{document:a}=e;const r=a,n=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:i,Node:s,Element:l,NodeFilter:f,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,v=l.prototype,p=_a(v,"cloneNode"),g=_a(v,"remove"),y=_a(v,"nextSibling"),x=_a(v,"childNodes"),C=_a(v,"parentNode");if(typeof i=="function"){const U=a.createElement("template");U.content&&U.content.ownerDocument&&(a=U.content.ownerDocument)}let b,M="";const{implementation:w,createNodeIterator:z,createDocumentFragment:k,getElementsByTagName:S}=a,{importNode:V}=r;let H=Ff();t.isSupported=typeof Rp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:E,TMPLIT_EXPR:j,DATA_ATTR:P,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:q}=Bf;let{IS_ALLOWED_URI:G}=Bf,D=null;const A=s2({},[...Nf,...Mi,...zi,...wi,...Df]);let L=null;const W=s2({},[...Of,..._i,...Pf,...Xn]);let Y=Object.seal(Ip(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),T=null,I=null,a1=!0,n1=!0,t1=!1,d1=!0,R=!1,p1=!0,z1=!1,h1=!1,l1=!1,f1=!1,u1=!1,g1=!1,k1=!0,b1=!1;const H1="user-content-";let F1=!0,$1=!1,W1={},K1=null;const d2=s2({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G1=null;const Y2=s2({},["audio","video","img","source","image","track"]);let O1=null;const c2=s2({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),G2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Pe=A2,y1=!1,m1=null;const S1=s2({},[G2,m2,A2],Ci);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const Q2=s2({},["title","style","font","a","script"]);let _e=null;const h3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const K4=a.createElement("form"),Z4=function(B){return B instanceof RegExp||B instanceof Function},Q4=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===B)){if((!B||typeof B!="object")&&(B={}),B=S0(B),_e=h3.indexOf(B.PARSER_MEDIA_TYPE)===-1?j3:B.PARSER_MEDIA_TYPE,k2=_e==="application/xhtml+xml"?Ci:P8,D=K3(B,"ALLOWED_TAGS")?s2({},B.ALLOWED_TAGS,k2):A,L=K3(B,"ALLOWED_ATTR")?s2({},B.ALLOWED_ATTR,k2):W,m1=K3(B,"ALLOWED_NAMESPACES")?s2({},B.ALLOWED_NAMESPACES,Ci):S1,O1=K3(B,"ADD_URI_SAFE_ATTR")?s2(S0(c2),B.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(B,"ADD_DATA_URI_TAGS")?s2(S0(Y2),B.ADD_DATA_URI_TAGS,k2):Y2,K1=K3(B,"FORBID_CONTENTS")?s2({},B.FORBID_CONTENTS,k2):d2,T=K3(B,"FORBID_TAGS")?s2({},B.FORBID_TAGS,k2):{},I=K3(B,"FORBID_ATTR")?s2({},B.FORBID_ATTR,k2):{},W1=K3(B,"USE_PROFILES")?B.USE_PROFILES:!1,a1=B.ALLOW_ARIA_ATTR!==!1,n1=B.ALLOW_DATA_ATTR!==!1,t1=B.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=B.SAFE_FOR_TEMPLATES||!1,p1=B.SAFE_FOR_XML!==!1,z1=B.WHOLE_DOCUMENT||!1,f1=B.RETURN_DOM||!1,u1=B.RETURN_DOM_FRAGMENT||!1,g1=B.RETURN_TRUSTED_TYPE||!1,l1=B.FORCE_BODY||!1,k1=B.SANITIZE_DOM!==!1,b1=B.SANITIZE_NAMED_PROPS||!1,F1=B.KEEP_CONTENT!==!1,$1=B.IN_PLACE||!1,G=B.ALLOWED_URI_REGEXP||$p,Pe=B.NAMESPACE||A2,T1=B.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=B.HTML_INTEGRATION_POINTS||Q1,Y=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(n1=!1),u1&&(f1=!0),W1&&(D=s2({},Df),L=[],W1.html===!0&&(s2(D,Nf),s2(L,Of)),W1.svg===!0&&(s2(D,Mi),s2(L,_i),s2(L,Xn)),W1.svgFilters===!0&&(s2(D,zi),s2(L,_i),s2(L,Xn)),W1.mathMl===!0&&(s2(D,wi),s2(L,Pf),s2(L,Xn))),B.ADD_TAGS&&(D===A&&(D=S0(D)),s2(D,B.ADD_TAGS,k2)),B.ADD_ATTR&&(L===W&&(L=S0(L)),s2(L,B.ADD_ATTR,k2)),B.ADD_URI_SAFE_ATTR&&s2(O1,B.ADD_URI_SAFE_ATTR,k2),B.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,B.FORBID_CONTENTS,k2)),F1&&(D["#text"]=!0),z1&&s2(D,["html","head","body"]),D.table&&(s2(D,["tbody"]),delete T.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=B.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=jT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));u3&&u3(B),xe=B}},M0=s2({},[...Mi,...zi,...DT]),z0=s2({},[...wi,...OT]),E3=function(B){let K=C(B);(!K||!K.tagName)&&(K={namespaceURI:Pe,tagName:"template"});const Q=P8(B.tagName),o1=P8(K.tagName);return m1[B.namespaceURI]?B.namespaceURI===m2?K.namespaceURI===A2?Q==="svg":K.namespaceURI===G2?Q==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Q]:B.namespaceURI===G2?K.namespaceURI===A2?Q==="math":K.namespaceURI===m2?Q==="math"&&Q1[o1]:!!z0[Q]:B.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===G2&&!T1[o1]?!1:!z0[Q]&&(Q2[Q]||!M0[Q]):!!(_e==="application/xhtml+xml"&&m1[B.namespaceURI]):!1},Ue=function(B){Ma(t.removed,{element:B});try{C(B).removeChild(B)}catch{g(B)}},J4=function(B,K){try{Ma(t.removed,{attribute:K.getAttributeNode(B),from:K})}catch{Ma(t.removed,{attribute:null,from:K})}if(K.removeAttribute(B),B==="is")if(f1||u1)try{Ue(K)}catch{}else try{K.setAttribute(B,"")}catch{}},Tt=function(B){let K=null,Q=null;if(l1)B="<remove></remove>"+B;else{const x1=Ef(B,/^[\r\n\t ]+/);Q=x1&&x1[0]}_e==="application/xhtml+xml"&&Pe===A2&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const o1=b?b.createHTML(B):B;if(Pe===A2)try{K=new h().parseFromString(o1,_e)}catch{}if(!K||!K.documentElement){K=w.createDocument(Pe,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return B&&Q&&s1.insertBefore(a.createTextNode(Q),s1.childNodes[0]||null),Pe===A2?S.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(B){return z.call(B.ownerDocument||B,B,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(B){return B instanceof d&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof u)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},J=function(B){return typeof s=="function"&&B instanceof s};function e1(U,B,K){Gn(U,Q=>{Q.call(t,B,K,xe)})}const c1=function(B){let K=null;if(e1(H.beforeSanitizeElements,B,null),r1(B))return Ue(B),!0;const Q=k2(B.nodeName);if(e1(H.uponSanitizeElement,B,{tagName:Q,allowedTags:D}),B.hasChildNodes()&&!J(B.firstElementChild)&&c3(/<[/\w]/g,B.innerHTML)&&c3(/<[/\w]/g,B.textContent)||B.nodeType===ka.progressingInstruction||p1&&B.nodeType===ka.comment&&c3(/<[/\w]/g,B.data))return Ue(B),!0;if(!D[Q]||T[Q]){if(!T[Q]&&C1(Q)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q)))return!1;if(F1&&!K1[Q]){const o1=C(B)||B.parentNode,s1=x(B)||B.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(B.__removalCount||0)+1,o1.insertBefore(L1,y(B))}}}return Ue(B),!0}return B instanceof l&&!E3(B)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&c3(/<\/no(script|embed|frames)/i,B.innerHTML)?(Ue(B),!0):(R&&B.nodeType===ka.text&&(K=B.textContent,Gn([_,E,j],o1=>{K=za(K,o1," ")}),B.textContent!==K&&(Ma(t.removed,{element:B.cloneNode()}),B.textContent=K)),e1(H.afterSanitizeElements,B,null),!1)},i1=function(B,K,Q){if(k1&&(K==="id"||K==="name")&&(Q in a||Q in K4))return!1;if(!(n1&&!I[K]&&c3(P,K))){if(!(a1&&c3(N,K))){if(!L[K]||I[K]){if(!(C1(B)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,B)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(B))&&(Y.attributeNameCheck instanceof RegExp&&c3(Y.attributeNameCheck,K)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(K))||K==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q))))return!1}else if(!O1[K]){if(!c3(G,za(Q,Z,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&B!=="script"&&AT(Q,"data:")===0&&G1[B])){if(!(t1&&!c3(F,za(Q,Z,"")))){if(Q)return!1}}}}}}return!0},C1=function(B){return B!=="annotation-xml"&&Ef(B,q)},M1=function(B){e1(H.beforeSanitizeAttributes,B,null);const{attributes:K}=B;if(!K||r1(B))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let o1=K.length;for(;o1--;){const s1=K[o1],{name:x1,namespaceURI:V1,value:L1}=s1,w1=k2(x1);let N1=x1==="value"?L1:TT(L1);if(Q.attrName=w1,Q.attrValue=N1,Q.keepAttr=!0,Q.forceKeepAttr=void 0,e1(H.uponSanitizeAttribute,B,Q),N1=Q.attrValue,b1&&(w1==="id"||w1==="name")&&(J4(x1,B),N1=H1+N1),p1&&c3(/((--!?|])>)|<\/(style|title)/i,N1)){J4(x1,B);continue}if(Q.forceKeepAttr||(J4(x1,B),!Q.keepAttr))continue;if(!d1&&c3(/\/>/i,N1)){J4(x1,B);continue}R&&Gn([_,E,j],J1=>{N1=za(N1,J1," ")});const I1=k2(B.nodeName);if(i1(I1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(I1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?B.setAttributeNS(V1,x1,N1):B.setAttribute(x1,N1),r1(B)?Ue(B):Tf(t.removed)}catch{}}}e1(H.afterSanitizeAttributes,B,null)},O=function U(B){let K=null;const Q=X(B);for(e1(H.beforeSanitizeShadowDOM,B,null);K=Q.nextNode();)e1(H.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&U(K.content);e1(H.afterSanitizeShadowDOM,B,null)};return t.sanitize=function(U){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Q=null,o1=null,s1=null;if(y1=!U,y1&&(U="<!-->"),typeof U!="string"&&!J(U))if(typeof U.toString=="function"){if(U=U.toString(),typeof U!="string")throw wa("dirty is not a string, aborting")}else throw wa("toString is not a function");if(!t.isSupported)return U;if(h1||Q4(B),t.removed=[],typeof U=="string"&&($1=!1),$1){if(U.nodeName){const L1=k2(U.nodeName);if(!D[L1]||T[L1])throw wa("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof s)K=Tt("<!---->"),Q=K.ownerDocument.importNode(U,!0),Q.nodeType===ka.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?K=Q:K.appendChild(Q);else{if(!f1&&!R&&!z1&&U.indexOf("<")===-1)return b&&g1?b.createHTML(U):U;if(K=Tt(U),!K)return f1?null:g1?M:""}K&&l1&&Ue(K.firstChild);const x1=X($1?U:K);for(;o1=x1.nextNode();)c1(o1),M1(o1),o1.content instanceof c&&O(o1.content);if($1)return U;if(f1){if(u1)for(s1=k.call(K.ownerDocument);K.firstChild;)s1.appendChild(K.firstChild);else s1=K;return(L.shadowroot||L.shadowrootmode)&&(s1=V.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&D["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&c3(Up,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
|
|
6
|
+
`+o1):K.stack=o1}throw K}}_request(U,B){typeof U=="string"?(B=B||{}).url=U:B=U||{},B=E3(this.defaults,B);const{transitional:K,paramsSerializer:Q,headers:o1}=B;K!==void 0&&Tt.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Q!=null&&(T.isFunction(Q)?B.paramsSerializer={serialize:Q}:Tt.assertOptions(Q,{encode:X.function,serialize:X.function},!0)),B.method=(B.method||this.defaults.method||"get").toLowerCase();let s1=o1&&T.merge(o1.common,o1[B.method]);o1&&T.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),B.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(B)===!1||(V1=V1&&U1.synchronous,x1.unshift(U1.fulfilled,U1.rejected))});const L1=[];let w1;this.interceptors.response.forEach(function(U1){L1.push(U1.fulfilled,U1.rejected)});let N1,I1=0;if(!V1){const U1=[M0.bind(this),void 0];for(U1.unshift.apply(U1,x1),U1.push.apply(U1,L1),N1=U1.length,w1=Promise.resolve(B);I1<N1;)w1=w1.then(U1[I1++],U1[I1++]);return w1}N1=x1.length;let J1=B;for(I1=0;I1<N1;){const U1=x1[I1++],i2=x1[I1++];try{J1=U1(J1)}catch(P2){i2.call(this,P2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(I1=0,N1=L1.length;I1<N1;)w1=w1.then(L1[I1++],L1[I1++]);return w1}getUri(U){return g1(_e((U=E3(this.defaults,U)).baseURL,U.url),U.params,U.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(O){r1.prototype[O]=function(U,B){return this.request(E3(B||{},{method:O,url:U,data:(B||{}).data}))}}),T.forEach(["post","put","patch"],function(O){function U(B){return function(K,Q,o1){return this.request(E3(o1||{},{method:O,headers:B?{"Content-Type":"multipart/form-data"}:{},url:K,data:Q}))}}r1.prototype[O]=U(),r1.prototype[O+"Form"]=U(!0)});var J=r1;class e1{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let B;this.promise=new Promise(function(Q){B=Q});const K=this;this.promise.then(Q=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Q);K._listeners=null}),this.promise.then=Q=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Q);return s1.cancel=function(){K.unsubscribe(o1)},s1},U(function(Q,o1,s1){K.reason||(K.reason=new Q1(Q,o1,s1),B(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){this.reason?U(this.reason):this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const B=this._listeners.indexOf(U);B!==-1&&this._listeners.splice(B,1)}static source(){let U;return{token:new e1(function(B){U=B}),cancel:U}}}var c1=e1;const i1={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(i1).forEach(([O,U])=>{i1[U]=O});var C1=i1;const M1=function O(U){const B=new J(U),K=l(J.prototype.request,B);return T.extend(K,J.prototype,B,{allOwnKeys:!0}),T.extend(K,B,null,{allOwnKeys:!0}),K.create=function(Q){return O(E3(U,Q))},K}(O1);M1.Axios=J,M1.CanceledError=Q1,M1.CancelToken=c1,M1.isCancel=T1,M1.VERSION="1.6.8",M1.toFormData=z1,M1.AxiosError=I,M1.Cancel=M1.CanceledError,M1.all=function(O){return Promise.all(O)},M1.spread=function(O){return function(U){return O.apply(null,U)}},M1.isAxiosError=function(O){return T.isObject(O)&&O.isAxiosError===!0},M1.mergeConfig=E3,M1.AxiosHeaders=m1,M1.formToJSON=O=>G1(T.isHTMLForm(O)?new FormData(O):O),M1.getAdapter=Z4,M1.HttpStatusCode=C1,M1.default=M1,c.exports=M1}},r={};function n(c){var i=r[c];if(i!==void 0)return i.exports;var s=r[c]={exports:{}};return a[c].call(s.exports,s,s.exports,n),s.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)})())})(Np);var Xe=Np.exports,T4;let re=(T4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(T4.instance)throw new Error("Config is already initialized");T4.instance=new T4(t)}static getConfig(){if(!T4.instance)throw new Error("Config is not initialized. Call init() first.");return T4.instance.config}},v1(T4,"instance"),T4);const h4=I4.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),r=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(r,()=>To());function n(l){e.value||(e.value=!0,t.value=Xe.mergeDeep(t.value,l))}function c(l){a.value=l}function i(l){r.value=l}function s(){r.value=r.value==="light"?"dark":"light"}return{options:t,language:a,theme:r,init:n,setLanguage:c,setTheme:i,changeTheme:s}},{persist:!0}),x4=I4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!pc()),a=o.computed(()=>e.value&&Bv(e.value)),r=o.computed(()=>a.value&&e.value&&bn(a.value,e.value.name)),n=o.computed(()=>e.value&&e.value.meta),c=o.computed(()=>{var f;return(f=n.value)==null?void 0:f.access}),i=o.computed(()=>{var f;return Fe((f=n.value)==null?void 0:f.description)}),s=o.computed(()=>{var f;return!!Fe((f=n.value)==null?void 0:f.preventDisplayNavigationBars)}),l=o.computed(()=>!s.value&&t.value);return{currentRoute:e,isSideBarOpen:t,routeType:a,routeTitle:r,routeMeta:n,routeAccess:c,routeDescription:i,preventDisplayNavigationBars:s,isDisplayingSideBar:l}});function Dp(){const e=re.getConfig().stores.useAuthStore(),t=x4().routeType,a=`auth${Xe.getFirstChartInUppercase(t)}`;return e[a].accessToken}async function Op(e,t,a){const r=re.getConfig(),n=r.stores.useAuthStore(),c=`auth/login/${e}`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await r.api.postOne(c,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||r.defaultRoutes[e].auth};r.router.push(l)}async function Pp(){const e=re.getConfig(),t=e.stores.useAuthStore(),a=x4().routeType;try{const r=`auth/validateAccessToken/${a}`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a)}}function oT(e){const t=re.getConfig();t.stores.useAuthStore().setAuthUser(e);const r={name:`login${Xe.getFirstChartInUppercase(e)}`};t.router.push(r)}function sc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Xe.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function oc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function lT(e,t,a="animate__"){return new Promise(r=>{const n=`${a}${t}`,c=document.querySelector(e);if(!c)return;c.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),c==null||c.classList.remove(`${a}animated`,n),r("Animation ended")};c.addEventListener("animationend",i,{once:!0})})}function mn(e){return Object.keys(Tp).includes(e)}function Bp(e,t){let a=0,r=0,n=0,c=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),r=parseInt(f),n=parseInt(u),c=parseFloat(d)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,d]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,m)=>m===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,r=f,n=u,c=d}const i=t/100;return`rgba(${a}, ${r}, ${n}, ${c*i})`}function As(e,t){const r=`color-${Xe.camelToKebab(e)}`,n={preventConvertToKebab:!0};sc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;sc(`${r}-0${i}`,Bp(t,c),n)}}function fT(){const e=Ep,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const uT={es:{successfulLogout:"¡Vuelva pronto!"}},dT={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},hT={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},mT={es:{INTERNAL_SERVER_ERROR:"Ha ocurrido un error",DUPLICATE_KEY:"Item ya creado",FOREIGN_KEY_INTEGRITY:"El item no existe",MODELS_ASSOCIATED:"No se puede eliminar porque tiene items asociados",INVALID_INPUT_DATA:"Los datos ingresados no son correctos",ENTITY_NOT_FOUND:"El item no existe",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos",UNAUTHORIZED:"No autorizado"}},pT={es:{_LOGIN:"¡Bienvenido!"}},vT={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},gT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},yT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},xT={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"}},bT={es:{selectFileLabel:"Seleccionar imágenes",confirmDeleteText:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes"}},CT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"}}},MT={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},zT={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},wT={es:{removeAllBtn:"Eliminar todo"}},_T={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}"}},kT={authHelpers:uT,datetime:dT,alert:hT,apiConnectionsError:mT,apiConnectionsSuccess:pT,pgaButton:vT,pgaDisplay:gT,pgaEditor:yT,pgaForm:xT,pgaImage:bT,pgaLayout:CT,pgaModal:MT,pgaTable:zT,notifications:wT,validations:_T};function Fp(e){function t(a,r){return function(n,c,i){var y;const s=h4().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=r?r.split(".").reduce((x,C)=>x==null?void 0:x[C],f):f,d=(y=e==null?void 0:e.global)==null?void 0:y[s],h=n,m=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(c==null?void 0:c.count)||1,p=m.split("|").map(x=>x.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const x in c||{})x!=="count"&&c[x]!==void 0&&c[x]!==null&&(g=g.replace(new RegExp(`{${x}}`,"g"),c[x].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.uppercase&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const _2=Fp(kT),bi=_2("datetime");function m4(e,t){if(!e)return"-";const r={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:r.withoutYear||r.justTime?void 0:"numeric",month:r.justTime?void 0:r.format==="numeric"?"2-digit":r.format,day:r.withoutDay||r.justTime?void 0:"2-digit",weekday:r.withoutDay||r.justTime||r.format==="numeric"?void 0:r.format,hour:r.withTime||r.justTime?"2-digit":void 0,minute:r.withTime||r.justTime?"2-digit":void 0},c=e.toLocaleString(h4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function HT(e){return m4(e,{format:"short",withoutDay:!0,withTime:!1})}function Wa(e){return m4(e,{format:"numeric",withTime:!1})}function Ts(e){if(!e)return"";const t=Wa(e),a=new Date,r=new Date(a);r.setDate(a.getDate()+1);const n=new Date(a);if(n.setDate(a.getDate()-1),t===Wa(a))return bi("today");if(t===Wa(r))return bi("tomorrow");if(t===Wa(n))return bi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?m4(e,{...c,withoutYear:!0}):m4(e,c)}function lc(e){return m4(e,{justTime:!0})}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:Rp,setPrototypeOf:Af,isFrozen:VT,getPrototypeOf:LT,getOwnPropertyDescriptor:ST}=Object;let{freeze:u3,seal:I3,create:Ip}=Object,{apply:Es,construct:Ns}=typeof Reflect<"u"&&Reflect;u3||(u3=function(t){return t});I3||(I3=function(t){return t});Es||(Es=function(t,a,r){return t.apply(a,r)});Ns||(Ns=function(t,a){return new t(...a)});const Gn=k3(Array.prototype.forEach),Tf=k3(Array.prototype.pop),Ma=k3(Array.prototype.push),P8=k3(String.prototype.toLowerCase),Ci=k3(String.prototype.toString),Ef=k3(String.prototype.match),za=k3(String.prototype.replace),AT=k3(String.prototype.indexOf),TT=k3(String.prototype.trim),K3=k3(Object.prototype.hasOwnProperty),c3=k3(RegExp.prototype.test),wa=ET(TypeError);function k3(e){return function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return Es(e,t,r)}}function ET(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Ns(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P8;Af&&Af(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(VT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function NT(e){for(let t=0;t<e.length;t++)K3(e,t)||(e[t]=null);return e}function S0(e){const t=Ip(null);for(const[a,r]of Rp(e))K3(e,a)&&(Array.isArray(r)?t[a]=NT(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function _a(e,t){for(;e!==null;){const r=ST(e,t);if(r){if(r.get)return k3(r.get);if(typeof r.value=="function")return k3(r.value)}e=LT(e)}function a(){return null}return a}const Nf=u3(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Mi=u3(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zi=u3(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),DT=u3(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wi=u3(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),OT=u3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Df=u3(["#text"]),Of=u3(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_i=u3(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pf=u3(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xn=u3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PT=I3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),BT=I3(/<%[\w\W]*|[\w\W]*%>/gm),FT=I3(/\$\{[\w\W]*}/gm),RT=I3(/^data-[\-\w.\u00B7-\uFFFF]+$/),IT=I3(/^aria-[\-\w]+$/),$p=I3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$T=I3(/^(?:\w+script|data):/i),UT=I3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Up=I3(/^html$/i),WT=I3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Bf=Object.freeze({__proto__:null,ARIA_ATTR:IT,ATTR_WHITESPACE:UT,CUSTOM_ELEMENT:WT,DATA_ATTR:RT,DOCTYPE_NAME:Up,ERB_EXPR:BT,IS_ALLOWED_URI:$p,IS_SCRIPT_OR_DATA:$T,MUSTACHE_EXPR:PT,TMPLIT_EXPR:FT});const ka={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qT=function(){return typeof window>"u"?null:window},jT=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const c="dompurify"+(r?"#"+r:"");try{return t.createPolicy(c,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Ff=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Wp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qT();const t=U=>Wp(U);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==ka.document)return t.isSupported=!1,t;let{document:a}=e;const r=a,n=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:i,Node:s,Element:l,NodeFilter:f,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,v=l.prototype,p=_a(v,"cloneNode"),g=_a(v,"remove"),y=_a(v,"nextSibling"),x=_a(v,"childNodes"),C=_a(v,"parentNode");if(typeof i=="function"){const U=a.createElement("template");U.content&&U.content.ownerDocument&&(a=U.content.ownerDocument)}let b,M="";const{implementation:w,createNodeIterator:z,createDocumentFragment:k,getElementsByTagName:S}=a,{importNode:V}=r;let H=Ff();t.isSupported=typeof Rp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:E,TMPLIT_EXPR:j,DATA_ATTR:P,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:q}=Bf;let{IS_ALLOWED_URI:G}=Bf,D=null;const A=s2({},[...Nf,...Mi,...zi,...wi,...Df]);let L=null;const W=s2({},[...Of,..._i,...Pf,...Xn]);let Y=Object.seal(Ip(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),T=null,I=null,a1=!0,n1=!0,t1=!1,d1=!0,R=!1,p1=!0,z1=!1,h1=!1,l1=!1,f1=!1,u1=!1,g1=!1,k1=!0,b1=!1;const H1="user-content-";let F1=!0,$1=!1,W1={},K1=null;const d2=s2({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G1=null;const Y2=s2({},["audio","video","img","source","image","track"]);let O1=null;const c2=s2({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),G2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Pe=A2,y1=!1,m1=null;const S1=s2({},[G2,m2,A2],Ci);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const Q2=s2({},["title","style","font","a","script"]);let _e=null;const h3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const K4=a.createElement("form"),Z4=function(B){return B instanceof RegExp||B instanceof Function},Q4=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===B)){if((!B||typeof B!="object")&&(B={}),B=S0(B),_e=h3.indexOf(B.PARSER_MEDIA_TYPE)===-1?j3:B.PARSER_MEDIA_TYPE,k2=_e==="application/xhtml+xml"?Ci:P8,D=K3(B,"ALLOWED_TAGS")?s2({},B.ALLOWED_TAGS,k2):A,L=K3(B,"ALLOWED_ATTR")?s2({},B.ALLOWED_ATTR,k2):W,m1=K3(B,"ALLOWED_NAMESPACES")?s2({},B.ALLOWED_NAMESPACES,Ci):S1,O1=K3(B,"ADD_URI_SAFE_ATTR")?s2(S0(c2),B.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(B,"ADD_DATA_URI_TAGS")?s2(S0(Y2),B.ADD_DATA_URI_TAGS,k2):Y2,K1=K3(B,"FORBID_CONTENTS")?s2({},B.FORBID_CONTENTS,k2):d2,T=K3(B,"FORBID_TAGS")?s2({},B.FORBID_TAGS,k2):{},I=K3(B,"FORBID_ATTR")?s2({},B.FORBID_ATTR,k2):{},W1=K3(B,"USE_PROFILES")?B.USE_PROFILES:!1,a1=B.ALLOW_ARIA_ATTR!==!1,n1=B.ALLOW_DATA_ATTR!==!1,t1=B.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=B.SAFE_FOR_TEMPLATES||!1,p1=B.SAFE_FOR_XML!==!1,z1=B.WHOLE_DOCUMENT||!1,f1=B.RETURN_DOM||!1,u1=B.RETURN_DOM_FRAGMENT||!1,g1=B.RETURN_TRUSTED_TYPE||!1,l1=B.FORCE_BODY||!1,k1=B.SANITIZE_DOM!==!1,b1=B.SANITIZE_NAMED_PROPS||!1,F1=B.KEEP_CONTENT!==!1,$1=B.IN_PLACE||!1,G=B.ALLOWED_URI_REGEXP||$p,Pe=B.NAMESPACE||A2,T1=B.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=B.HTML_INTEGRATION_POINTS||Q1,Y=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&Z4(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(n1=!1),u1&&(f1=!0),W1&&(D=s2({},Df),L=[],W1.html===!0&&(s2(D,Nf),s2(L,Of)),W1.svg===!0&&(s2(D,Mi),s2(L,_i),s2(L,Xn)),W1.svgFilters===!0&&(s2(D,zi),s2(L,_i),s2(L,Xn)),W1.mathMl===!0&&(s2(D,wi),s2(L,Pf),s2(L,Xn))),B.ADD_TAGS&&(D===A&&(D=S0(D)),s2(D,B.ADD_TAGS,k2)),B.ADD_ATTR&&(L===W&&(L=S0(L)),s2(L,B.ADD_ATTR,k2)),B.ADD_URI_SAFE_ATTR&&s2(O1,B.ADD_URI_SAFE_ATTR,k2),B.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,B.FORBID_CONTENTS,k2)),F1&&(D["#text"]=!0),z1&&s2(D,["html","head","body"]),D.table&&(s2(D,["tbody"]),delete T.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=B.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=jT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));u3&&u3(B),xe=B}},M0=s2({},[...Mi,...zi,...DT]),z0=s2({},[...wi,...OT]),E3=function(B){let K=C(B);(!K||!K.tagName)&&(K={namespaceURI:Pe,tagName:"template"});const Q=P8(B.tagName),o1=P8(K.tagName);return m1[B.namespaceURI]?B.namespaceURI===m2?K.namespaceURI===A2?Q==="svg":K.namespaceURI===G2?Q==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Q]:B.namespaceURI===G2?K.namespaceURI===A2?Q==="math":K.namespaceURI===m2?Q==="math"&&Q1[o1]:!!z0[Q]:B.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===G2&&!T1[o1]?!1:!z0[Q]&&(Q2[Q]||!M0[Q]):!!(_e==="application/xhtml+xml"&&m1[B.namespaceURI]):!1},Ue=function(B){Ma(t.removed,{element:B});try{C(B).removeChild(B)}catch{g(B)}},J4=function(B,K){try{Ma(t.removed,{attribute:K.getAttributeNode(B),from:K})}catch{Ma(t.removed,{attribute:null,from:K})}if(K.removeAttribute(B),B==="is")if(f1||u1)try{Ue(K)}catch{}else try{K.setAttribute(B,"")}catch{}},Tt=function(B){let K=null,Q=null;if(l1)B="<remove></remove>"+B;else{const x1=Ef(B,/^[\r\n\t ]+/);Q=x1&&x1[0]}_e==="application/xhtml+xml"&&Pe===A2&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const o1=b?b.createHTML(B):B;if(Pe===A2)try{K=new h().parseFromString(o1,_e)}catch{}if(!K||!K.documentElement){K=w.createDocument(Pe,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return B&&Q&&s1.insertBefore(a.createTextNode(Q),s1.childNodes[0]||null),Pe===A2?S.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(B){return z.call(B.ownerDocument||B,B,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(B){return B instanceof d&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof u)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},J=function(B){return typeof s=="function"&&B instanceof s};function e1(U,B,K){Gn(U,Q=>{Q.call(t,B,K,xe)})}const c1=function(B){let K=null;if(e1(H.beforeSanitizeElements,B,null),r1(B))return Ue(B),!0;const Q=k2(B.nodeName);if(e1(H.uponSanitizeElement,B,{tagName:Q,allowedTags:D}),B.hasChildNodes()&&!J(B.firstElementChild)&&c3(/<[/\w]/g,B.innerHTML)&&c3(/<[/\w]/g,B.textContent)||B.nodeType===ka.progressingInstruction||p1&&B.nodeType===ka.comment&&c3(/<[/\w]/g,B.data))return Ue(B),!0;if(!D[Q]||T[Q]){if(!T[Q]&&C1(Q)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q)))return!1;if(F1&&!K1[Q]){const o1=C(B)||B.parentNode,s1=x(B)||B.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(B.__removalCount||0)+1,o1.insertBefore(L1,y(B))}}}return Ue(B),!0}return B instanceof l&&!E3(B)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&c3(/<\/no(script|embed|frames)/i,B.innerHTML)?(Ue(B),!0):(R&&B.nodeType===ka.text&&(K=B.textContent,Gn([_,E,j],o1=>{K=za(K,o1," ")}),B.textContent!==K&&(Ma(t.removed,{element:B.cloneNode()}),B.textContent=K)),e1(H.afterSanitizeElements,B,null),!1)},i1=function(B,K,Q){if(k1&&(K==="id"||K==="name")&&(Q in a||Q in K4))return!1;if(!(n1&&!I[K]&&c3(P,K))){if(!(a1&&c3(N,K))){if(!L[K]||I[K]){if(!(C1(B)&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,B)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(B))&&(Y.attributeNameCheck instanceof RegExp&&c3(Y.attributeNameCheck,K)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(K))||K==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&c3(Y.tagNameCheck,Q)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Q))))return!1}else if(!O1[K]){if(!c3(G,za(Q,Z,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&B!=="script"&&AT(Q,"data:")===0&&G1[B])){if(!(t1&&!c3(F,za(Q,Z,"")))){if(Q)return!1}}}}}}return!0},C1=function(B){return B!=="annotation-xml"&&Ef(B,q)},M1=function(B){e1(H.beforeSanitizeAttributes,B,null);const{attributes:K}=B;if(!K||r1(B))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let o1=K.length;for(;o1--;){const s1=K[o1],{name:x1,namespaceURI:V1,value:L1}=s1,w1=k2(x1);let N1=x1==="value"?L1:TT(L1);if(Q.attrName=w1,Q.attrValue=N1,Q.keepAttr=!0,Q.forceKeepAttr=void 0,e1(H.uponSanitizeAttribute,B,Q),N1=Q.attrValue,b1&&(w1==="id"||w1==="name")&&(J4(x1,B),N1=H1+N1),p1&&c3(/((--!?|])>)|<\/(style|title)/i,N1)){J4(x1,B);continue}if(Q.forceKeepAttr||(J4(x1,B),!Q.keepAttr))continue;if(!d1&&c3(/\/>/i,N1)){J4(x1,B);continue}R&&Gn([_,E,j],J1=>{N1=za(N1,J1," ")});const I1=k2(B.nodeName);if(i1(I1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(I1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?B.setAttributeNS(V1,x1,N1):B.setAttribute(x1,N1),r1(B)?Ue(B):Tf(t.removed)}catch{}}}e1(H.afterSanitizeAttributes,B,null)},O=function U(B){let K=null;const Q=X(B);for(e1(H.beforeSanitizeShadowDOM,B,null);K=Q.nextNode();)e1(H.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&U(K.content);e1(H.afterSanitizeShadowDOM,B,null)};return t.sanitize=function(U){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Q=null,o1=null,s1=null;if(y1=!U,y1&&(U="<!-->"),typeof U!="string"&&!J(U))if(typeof U.toString=="function"){if(U=U.toString(),typeof U!="string")throw wa("dirty is not a string, aborting")}else throw wa("toString is not a function");if(!t.isSupported)return U;if(h1||Q4(B),t.removed=[],typeof U=="string"&&($1=!1),$1){if(U.nodeName){const L1=k2(U.nodeName);if(!D[L1]||T[L1])throw wa("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof s)K=Tt("<!---->"),Q=K.ownerDocument.importNode(U,!0),Q.nodeType===ka.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?K=Q:K.appendChild(Q);else{if(!f1&&!R&&!z1&&U.indexOf("<")===-1)return b&&g1?b.createHTML(U):U;if(K=Tt(U),!K)return f1?null:g1?M:""}K&&l1&&Ue(K.firstChild);const x1=X($1?U:K);for(;o1=x1.nextNode();)c1(o1),M1(o1),o1.content instanceof c&&O(o1.content);if($1)return U;if(f1){if(u1)for(s1=k.call(K.ownerDocument);K.firstChild;)s1.appendChild(K.firstChild);else s1=K;return(L.shadowroot||L.shadowrootmode)&&(s1=V.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&D["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&c3(Up,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
|
|
7
7
|
`+V1),R&&Gn([_,E,j],L1=>{V1=za(V1,L1," ")}),b&&g1?b.createHTML(V1):V1},t.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Q4(U),h1=!0},t.clearConfig=function(){xe=null,h1=!1},t.isValidAttribute=function(U,B,K){xe||Q4({});const Q=k2(U),o1=k2(B);return i1(Q,o1,K)},t.addHook=function(U,B){typeof B=="function"&&Ma(H[U],B)},t.removeHook=function(U){return Tf(H[U])},t.removeHooks=function(U){H[U]=[]},t.removeAllHooks=function(){H=Ff()},t}var qp=Wp();function YT(e){return qp.sanitize(e)}function jp(e){return qp.sanitize(e,{ALLOWED_TAGS:[]})}function Ds(e,t){const a=h4().language;let r=e.toLocaleString(a,{maximumFractionDigits:t==null?void 0:t.maxDecimals});return r==="-0"&&(r="0"),t!=null&&t.prefix&&(r=`${t.prefix} ${r}`),t!=null&&t.suffix&&(r=`${r} ${t.suffix}`),r}//! moment.js
|
|
8
8
|
//! version : 2.30.1
|
|
9
9
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
package/dist/main.es.js
CHANGED