sass-template-common 0.9.238 → 0.9.239

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.
@@ -23,7 +23,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23
23
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...a){const n=new this(s);return a.forEach(r=>n.set(r)),n}static accessor(s){const n=(this[Un]=this[Un]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=yt(i);n[l]||(Ml(r,i),n[l]=!0)}return E.isArray(s)?s.forEach(o):o(s),this}};Ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Ae.prototype,({value:e},s)=>{let a=s[0].toUpperCase()+s.slice(1);return{get:()=>e,set(n){this[a]=n}}}),E.freezeMethods(Ae);function _s(e,s){const a=this||At,n=s||a,r=Ae.from(n.headers);let o=n.data;return E.forEach(e,function(l){o=l.call(a,o,r.normalize(),s?s.status:void 0)}),r.normalize(),o}function Ln(e){return!!(e&&e.__CANCEL__)}function ht(e,s,a){ee.call(this,e??"canceled",ee.ERR_CANCELED,s,a),this.name="CanceledError"}E.inherits(ht,ee,{__CANCEL__:!0});function Pn(e,s,a){const n=a.config.validateStatus;!a.status||!n||n(a.status)?e(a):s(new ee("Request failed with status code "+a.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function _l(e){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return s&&s[1]||""}function Dl(e,s){e=e||10;const a=new Array(e),n=new Array(e);let r=0,o=0,i;return s=s!==void 0?s:1e3,function(c){const d=Date.now(),h=n[o];i||(i=d),a[r]=c,n[r]=d;let f=o,u=0;for(;f!==r;)u+=a[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),d-i<s)return;const g=h&&d-h;return g?Math.round(u*1e3/g):void 0}}function ql(e,s){let a=0,n=1e3/s,r,o;const i=(d,h=Date.now())=>{a=h,r=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const h=Date.now(),f=h-a;f>=n?i(d,h):(r=d,o||(o=setTimeout(()=>{o=null,i(r)},n-f)))},()=>r&&i(r)]}const Qt=(e,s,a=3)=>{let n=0;const r=Dl(50,250);return ql(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-n,d=r(c),h=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&h?(l-i)/d:void 0,event:o,lengthComputable:l!=null,[s?"download":"upload"]:!0};e(f)},a)},On=(e,s)=>{const a=e!=null;return[n=>s[0]({lengthComputable:a,total:e,loaded:n}),s[1]]},Bn=e=>(...s)=>E.asap(()=>e(...s)),jl=ue.hasStandardBrowserEnv?((e,s)=>a=>(a=new URL(a,ue.origin),e.protocol===a.protocol&&e.host===a.host&&(s||e.port===a.port)))(new URL(ue.origin),ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent)):()=>!0,Gl=ue.hasStandardBrowserEnv?{write(e,s,a,n,r,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(s)}`];E.isNumber(a)&&l.push(`expires=${new Date(a).toUTCString()}`),E.isString(n)&&l.push(`path=${n}`),E.isString(r)&&l.push(`domain=${r}`),o===!0&&l.push("secure"),E.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Fl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hl(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e}function Mn(e,s,a){let n=!Fl(s);return e&&(n||a==!1)?Hl(e,s):s}const _n=e=>e instanceof Ae?{...e}:e;function Xe(e,s){s=s||{};const a={};function n(d,h,f,u){return E.isPlainObject(d)&&E.isPlainObject(h)?E.merge.call({caseless:u},d,h):E.isPlainObject(h)?E.merge({},h):E.isArray(h)?h.slice():h}function r(d,h,f,u){if(E.isUndefined(h)){if(!E.isUndefined(d))return n(void 0,d,f,u)}else return n(d,h,f,u)}function o(d,h){if(!E.isUndefined(h))return n(void 0,h)}function i(d,h){if(E.isUndefined(h)){if(!E.isUndefined(d))return n(void 0,d)}else return n(void 0,h)}function l(d,h,f){if(f in s)return n(d,h);if(f in e)return n(void 0,d)}const c={url:o,method:o,data:o,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:l,headers:(d,h,f)=>r(_n(d),_n(h),f,!0)};return E.forEach(Object.keys({...e,...s}),function(h){const f=c[h]||r,u=f(e[h],s[h],h);E.isUndefined(u)&&f!==l||(a[h]=u)}),a}const Dn=e=>{const s=Xe({},e);let{data:a,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=s;if(s.headers=i=Ae.from(i),s.url=En(Mn(s.baseURL,s.url,s.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),E.isFormData(a)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(E.isFunction(a.getHeaders)){const c=a.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([h,f])=>{d.includes(h.toLowerCase())&&i.set(h,f)})}}if(ue.hasStandardBrowserEnv&&(n&&E.isFunction(n)&&(n=n(s)),n||n!==!1&&jl(s.url))){const c=r&&o&&Gl.read(o);c&&i.set(r,c)}return s},Vl=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,n){const r=Dn(e);let o=r.data;const i=Ae.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=r,h,f,u,g,m;function p(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(r.method.toUpperCase(),r.url,!0),w.timeout=r.timeout;function b(){if(!w)return;const N=Ae.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:N,config:e,request:w};Pn(function(I){a(I),p()},function(I){n(I),p()},A),w=null}"onloadend"in w?w.onloadend=b:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(b)},w.onabort=function(){w&&(n(new ee("Request aborted",ee.ECONNABORTED,e,w)),w=null)},w.onerror=function(v){const A=v&&v.message?v.message:"Network Error",x=new ee(A,ee.ERR_NETWORK,e,w);x.event=v||null,n(x),w=null},w.ontimeout=function(){let v=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const A=r.transitional||kn;r.timeoutErrorMessage&&(v=r.timeoutErrorMessage),n(new ee(v,A.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,w)),w=null},o===void 0&&i.setContentType(null),"setRequestHeader"in w&&E.forEach(i.toJSON(),function(v,A){w.setRequestHeader(A,v)}),E.isUndefined(r.withCredentials)||(w.withCredentials=!!r.withCredentials),l&&l!=="json"&&(w.responseType=r.responseType),d&&([u,m]=Qt(d,!0),w.addEventListener("progress",u)),c&&w.upload&&([f,g]=Qt(c),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(h=N=>{w&&(n(!N||N.type?new ht(null,e,w):N),w.abort(),w=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const C=_l(r.url);if(C&&ue.protocols.indexOf(C)===-1){n(new ee("Unsupported protocol "+C+":",ee.ERR_BAD_REQUEST,e));return}w.send(o||null)})},zl=(e,s)=>{const{length:a}=e=e?e.filter(Boolean):[];if(s||a){let n=new AbortController,r;const o=function(d){if(!r){r=!0,l();const h=d instanceof Error?d:this.reason;n.abort(h instanceof ee?h:new ht(h instanceof Error?h.message:h))}};let i=s&&setTimeout(()=>{i=null,o(new ee(`timeout ${s} of ms exceeded`,ee.ETIMEDOUT))},s);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>E.asap(l),c}},Ql=function*(e,s){let a=e.byteLength;if(a<s){yield e;return}let n=0,r;for(;n<a;)r=n+s,yield e.slice(n,r),n=r},Wl=async function*(e,s){for await(const a of $l(e))yield*Ql(a,s)},$l=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const s=e.getReader();try{for(;;){const{done:a,value:n}=await s.read();if(a)break;yield n}}finally{await s.cancel()}},qn=(e,s,a,n)=>{const r=Wl(e,s);let o=0,i,l=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:d,value:h}=await r.next();if(d){l(),c.close();return}let f=h.byteLength;if(a){let u=o+=f;a(u)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},jn=64*1024,{isFunction:Wt}=E,Yl=(({Request:e,Response:s})=>({Request:e,Response:s}))(E.global),{ReadableStream:Gn,TextEncoder:Fn}=E.global,Hn=(e,...s)=>{try{return!!e(...s)}catch{return!1}},Kl=e=>{e=E.merge.call({skipUndefined:!0},Yl,e);const{fetch:s,Request:a,Response:n}=e,r=s?Wt(s):typeof fetch=="function",o=Wt(a),i=Wt(n);if(!r)return!1;const l=r&&Wt(Gn),c=r&&(typeof Fn=="function"?(m=>p=>m.encode(p))(new Fn):async m=>new Uint8Array(await new a(m).arrayBuffer())),d=o&&l&&Hn(()=>{let m=!1;const p=new a(ue.origin,{body:new Gn,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!p}),h=i&&l&&Hn(()=>E.isReadableStream(new n("").body)),f={stream:h&&(m=>m.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(p,w)=>{let b=p&&p[m];if(b)return b.call(p);throw new ee(`Response type '${m}' is not supported`,ee.ERR_NOT_SUPPORT,w)})});const u=async m=>{if(m==null)return 0;if(E.isBlob(m))return m.size;if(E.isSpecCompliantForm(m))return(await new a(ue.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(E.isArrayBufferView(m)||E.isArrayBuffer(m))return m.byteLength;if(E.isURLSearchParams(m)&&(m=m+""),E.isString(m))return(await c(m)).byteLength},g=async(m,p)=>{const w=E.toFiniteNumber(m.getContentLength());return w??u(p)};return async m=>{let{url:p,method:w,data:b,signal:C,cancelToken:N,timeout:v,onDownloadProgress:A,onUploadProgress:x,responseType:I,headers:P,withCredentials:q="same-origin",fetchOptions:F}=Dn(m),B=s||fetch;I=I?(I+"").toLowerCase():"text";let z=zl([C,N&&N.toAbortSignal()],v),W=null;const M=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let U;try{if(x&&d&&w!=="get"&&w!=="head"&&(U=await g(P,b))!==0){let k=new a(p,{method:"POST",body:b,duplex:"half"}),j;if(E.isFormData(b)&&(j=k.headers.get("content-type"))&&P.setContentType(j),k.body){const[Q,V]=On(U,Qt(Bn(x)));b=qn(k.body,jn,Q,V)}}E.isString(q)||(q=q?"include":"omit");const L=o&&"credentials"in a.prototype,H={...F,signal:z,method:w.toUpperCase(),headers:P.normalize().toJSON(),body:b,duplex:"half",credentials:L?q:void 0};W=o&&new a(p,H);let D=await(o?B(W,F):B(p,H));const Y=h&&(I==="stream"||I==="response");if(h&&(A||Y&&M)){const k={};["status","statusText","headers"].forEach($=>{k[$]=D[$]});const j=E.toFiniteNumber(D.headers.get("content-length")),[Q,V]=A&&On(j,Qt(Bn(A),!0))||[];D=new n(qn(D.body,jn,Q,()=>{V&&V(),M&&M()}),k)}I=I||"text";let S=await f[E.findKey(f,I)||"text"](D,m);return!Y&&M&&M(),await new Promise((k,j)=>{Pn(k,j,{data:S,headers:Ae.from(D.headers),status:D.status,statusText:D.statusText,config:m,request:W})})}catch(L){throw M&&M(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,m,W),{cause:L.cause||L}):ee.from(L,L&&L.code,m,W)}}},Jl=new Map,Vn=e=>{let s=e&&e.env||{};const{fetch:a,Request:n,Response:r}=s,o=[n,r,a];let i=o.length,l=i,c,d,h=Jl;for(;l--;)c=o[l],d=h.get(c),d===void 0&&h.set(c,d=l?new Map:Kl(s)),h=d;return d};Vn();const Ds={http:bl,xhr:Vl,fetch:{get:Vn}};E.forEach(Ds,(e,s)=>{if(e){try{Object.defineProperty(e,"name",{value:s})}catch{}Object.defineProperty(e,"adapterName",{value:s})}});const zn=e=>`- ${e}`,Zl=e=>E.isFunction(e)||e===null||e===!1;function Xl(e,s){e=E.isArray(e)?e:[e];const{length:a}=e;let n,r;const o={};for(let i=0;i<a;i++){n=e[i];let l;if(r=n,!Zl(n)&&(r=Ds[(l=String(n)).toLowerCase()],r===void 0))throw new ee(`Unknown adapter '${l}'`);if(r&&(E.isFunction(r)||(r=r.get(s))))break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=a?i.length>1?`since :
24
24
  `+i.map(zn).join(`
25
25
  `):" "+zn(i[0]):"as no adapter specified";throw new ee("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r}const Qn={getAdapter:Xl,adapters:Ds};function qs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ht(null,e)}function Wn(e){return qs(e),e.headers=Ae.from(e.headers),e.data=_s.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qn.getAdapter(e.adapter||At.adapter,e)(e).then(function(n){return qs(e),n.data=_s.call(e,e.transformResponse,n),n.headers=Ae.from(n.headers),n},function(n){return Ln(n)||(qs(e),n&&n.response&&(n.response.data=_s.call(e,e.transformResponse,n.response),n.response.headers=Ae.from(n.response.headers))),Promise.reject(n)})}const $n="1.13.2",$t={};["object","boolean","number","function","string","symbol"].forEach((e,s)=>{$t[e]=function(n){return typeof n===e||"a"+(s<1?"n ":" ")+e}});const Yn={};$t.transitional=function(s,a,n){function r(o,i){return"[Axios v"+$n+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,l)=>{if(s===!1)throw new ee(r(i," has been removed"+(a?" in "+a:"")),ee.ERR_DEPRECATED);return a&&!Yn[i]&&(Yn[i]=!0,console.warn(r(i," has been deprecated since v"+a+" and will be removed in the near future"))),s?s(o,i,l):!0}},$t.spelling=function(s){return(a,n)=>(console.warn(`${n} is likely a misspelling of ${s}`),!0)};function Rl(e,s,a){if(typeof e!="object")throw new ee("options must be an object",ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const o=n[r],i=s[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new ee("option "+o+" must be "+c,ee.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ee("Unknown option "+o,ee.ERR_BAD_OPTION)}}const Yt={assertOptions:Rl,validators:$t},Ie=Yt.validators;let Re=class{constructor(s){this.defaults=s||{},this.interceptors={request:new Tn,response:new Tn}}async request(s,a){try{return await this._request(s,a)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
26
- `+o):n.stack=o}catch{}}throw n}}_request(s,a){typeof s=="string"?(a=a||{},a.url=s):a=s||{},a=Xe(this.defaults,a);const{transitional:n,paramsSerializer:r,headers:o}=a;n!==void 0&&Yt.assertOptions(n,{silentJSONParsing:Ie.transitional(Ie.boolean),forcedJSONParsing:Ie.transitional(Ie.boolean),clarifyTimeoutError:Ie.transitional(Ie.boolean)},!1),r!=null&&(E.isFunction(r)?a.paramsSerializer={serialize:r}:Yt.assertOptions(r,{encode:Ie.function,serialize:Ie.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Yt.assertOptions(a,{baseUrl:Ie.spelling("baseURL"),withXsrfToken:Ie.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=o&&E.merge(o.common,o[a.method]);o&&E.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),a.headers=Ae.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(a)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let h,f=0,u;if(!c){const m=[Wn.bind(this),void 0];for(m.unshift(...l),m.push(...d),u=m.length,h=Promise.resolve(a);f<u;)h=h.then(m[f++],m[f++]);return h}u=l.length;let g=a;for(;f<u;){const m=l[f++],p=l[f++];try{g=m(g)}catch(w){p.call(this,w);break}}try{h=Wn.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,u=d.length;f<u;)h=h.then(d[f++],d[f++]);return h}getUri(s){s=Xe(this.defaults,s);const a=Mn(s.baseURL,s.url,s.allowAbsoluteUrls);return En(a,s.params,s.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(s){Re.prototype[s]=function(a,n){return this.request(Xe(n||{},{method:s,url:a,data:(n||{}).data}))}}),E.forEach(["post","put","patch"],function(s){function a(n){return function(o,i,l){return this.request(Xe(l||{},{method:s,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Re.prototype[s]=a(),Re.prototype[s+"Form"]=a(!0)});let ec=class ko{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(o){a=o});const n=this;this.promise.then(r=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](r);n._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{n.subscribe(l),o=l}).then(r);return i.cancel=function(){n.unsubscribe(o)},i},s(function(o,i,l){n.reason||(n.reason=new ht(o,i,l),a(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const a=this._listeners.indexOf(s);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const s=new AbortController,a=n=>{s.abort(n)};return this.subscribe(a),s.signal.unsubscribe=()=>this.unsubscribe(a),s.signal}static source(){let s;return{token:new ko(function(r){s=r}),cancel:s}}};function tc(e){return function(a){return e.apply(null,a)}}function sc(e){return E.isObject(e)&&e.isAxiosError===!0}const js={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(js).forEach(([e,s])=>{js[s]=e});function Kn(e){const s=new Re(e),a=hn(Re.prototype.request,s);return E.extend(a,Re.prototype,s,{allOwnKeys:!0}),E.extend(a,s,null,{allOwnKeys:!0}),a.create=function(r){return Kn(Xe(e,r))},a}const ne=Kn(At);ne.Axios=Re,ne.CanceledError=ht,ne.CancelToken=ec,ne.isCancel=Ln,ne.VERSION=$n,ne.toFormData=Vt,ne.AxiosError=ee,ne.Cancel=ne.CanceledError,ne.all=function(s){return Promise.all(s)},ne.spread=tc,ne.isAxiosError=sc,ne.mergeConfig=Xe,ne.AxiosHeaders=Ae,ne.formToJSON=e=>In(E.isHTMLForm(e)?new FormData(e):e),ne.getAdapter=Qn.getAdapter,ne.HttpStatusCode=js,ne.default=ne;const{Axios:vu,AxiosError:Nu,CanceledError:Su,isCancel:xu,CancelToken:Eu,VERSION:Tu,all:ku,Cancel:Iu,isAxiosError:Uu,spread:Lu,toFormData:Pu,AxiosHeaders:Ou,HttpStatusCode:Bu,formToJSON:Mu,getAdapter:_u,mergeConfig:Du}=ne,Gs="https://goamg.amplifyapp.com/vndomv",ac={menu:"menu-principal"};function nc(e){const a=((e??"").split("/").pop()??"").replace(/\.html?$/i,"");return ac[a]??a}function Jn(e,s,a,n){const r=(s??"").replace(/^\/+|\/+$/g,"");return`${e.url.replace(/\/+$/,"")}/${e.clientName}/${r}/${a}/${n}/${n}.json`}class qe{constructor(s){this.props=s,s?.config?.configVersion&&(this.configVersion=s.config.configVersion),s?.exclude&&(this.exclude=s.exclude)}configVersion=".config";exclude="keywords,gallery,related,relatedexternal,external,customfields";generateTokenOffline=async s=>{const{PUBLIC_IS_OFFLINE:a,PUBLIC_USERNAME_OFFLINE:n,PUBLIC_PASSWORD_OFFLINE:r}=O();if(a==="true")try{return(await this.props?.axiosApi.get("/auth",{params:{username:n,password:r,browserid:s}}).catch(i=>(console.log(`[/auth]Error: ${i.message}`),Promise.reject(i))))?.data.data[0]?.token}catch(o){console.log(`[/auth] Error: ${o.message}`),console.log(o)}};getEntitySection=s=>this.props?.axiosApi.get("/entity-section",{params:s}).catch(a=>(console.log(`[/entity-section] Error: ${a.message}`),Promise.reject(a)));getMainMenu=s=>{const a=O().BUCKET_ORIGIN;if(a?.menu){const n=Jn(a,this.props?.config?.servicePrefix,"menu",nc(s.path));return console.log(`[bucket:menu] GET ${n}`),ne.get(n,{headers:{Referer:a.referer??Gs}}).catch(r=>(console.log(`[bucket:menu] Error: ${r.response?.status??"network"} ${r.message} (${n})`),Promise.reject(r)))}return this.props?.axiosApi.get("/config/menu",{params:s}).catch(n=>(console.log(`[/config/menu] Error: ${n.message}`),Promise.reject(n)))};getNewsListZone=s=>this.props?.axiosApi.get("/news-list-zone",{params:s}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),Promise.reject(a)));getNewsListZoneSection=s=>this.props?.axiosApi.get("/news-list-zone-section",{params:s}).catch(a=>(console.log(`[/news-list-zone-section] Error: ${a.message}`),Promise.reject(a)));getNewsList=s=>this.props?.axiosApi.get("/news-list",{params:s}).catch(a=>(console.log(`[/news-list] Error: ${a.message}`),Promise.reject(a)));getNewsListTag=s=>this.props?.axiosApi.get("/news-list-tag",{params:s}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListSection=s=>this.props?.axiosApi.get("/news-list-section",{params:s}).catch(a=>(console.log(`[/news-list-section] Error: ${a}`),console.log(`[/news-list-section] Error: ${a.message}`),Promise.reject(a)));getNewsListAvanced=s=>this.props?.axiosApi.get("/news-list-advanced",{params:s}).catch(a=>(console.log(`[/news-list-advanced] Error: ${a.message}`),Promise.reject(a)));getNewsListTags=s=>this.props?.axiosApi.get("/news-list-tag",{params:s}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListTagEntity=s=>this.props?.axiosApi.get("/news-list-tag-entity",{params:s}).catch(a=>(console.log(`[/news-list-tag-entity] Error: ${a.message}`),Promise.reject(a)));getNewsListTagLite=s=>this.props?.axiosApi.get("/news-list-tag-lite",{params:s}).catch(a=>(console.log(`[/news-list-tag-lite] Error: ${a.message}`),Promise.reject(a)));getNewsListAutor=s=>this.props?.axiosApi.get("/news-list-author",{params:s}).catch(a=>(console.log(`[/news-list-author] Error: ${a.message}`),Promise.reject(a)));getNewsSearch=s=>this.props?.axiosApi.get("/news-list-search",{params:s}).catch(a=>(console.log(`[/news-list-search] Error: ${a.message}`),Promise.reject(a)));getAutorInfo=s=>this.props?.axiosApi.get("/authors",{params:s}).catch(a=>(console.log(`[/authors] Error: ${a.message}`),Promise.reject(a)));getvideoListAdvanced=s=>this.props?.axiosApi.get("/videos-list-advanced",{params:s}).catch(a=>(console.log(`[/videos-list-advanced] Error: ${a.message}`),Promise.reject(a)));getVideos=s=>this.props?.axiosApi.get("/videos",{params:s}).catch(a=>(console.log(`[/videos] Error: ${a.message}`),Promise.reject(a)));getVideosList=s=>this.props?.axiosApi.get("/videos-list",{params:s}).catch(a=>(console.log(`[/videos-list] Error: ${a.message}`),Promise.reject(a)));getBanners=async s=>{const a=O().BUCKET_ORIGIN;if(a?.banners){const r=Jn(a,this.props?.config?.servicePrefix,"banners",(s.template??"").toLowerCase());return console.log(`[bucket:banners] GET ${r}`),ne.get(r,{headers:{Referer:a.referer??Gs}}).catch(o=>(console.log(`[bucket:banners] Error: ${o.response?.status??"network"} ${o.message} (${r})`),Promise.reject(o)))}const n=s.path?s.path:`/${this.configVersion}/banners.html`;return this.props?.axiosApi.get("/config/banners",{params:{...s,path:this.props?.config?.servicePrefix+n}}).catch(r=>(console.log(`[/config/banners] Error: ${r.message}`),Promise.reject(r)))};getPages=s=>this.props?.axiosApi.get("/config/pages",{params:s}).catch(a=>(console.log(`[/config/pages] Error: ${a.message}`),Promise.reject(a)));getRankingS3=async(s,a={Referer:Gs})=>!s||s===""?{data:[]}:await ne.get(s,{headers:a}).catch(n=>{console.log(`[Rankings s3] Error: ${n.message}`)});getNews=s=>this.props?.axiosApi.get("/news",{params:{...s,exclude:`${s.exclude},pixel`}}).catch(a=>(console.log(`[/news] Error: ${a.message}`),Promise.reject(a)));getNewsMultimedia=s=>this.props?.axiosApi.get("/news-items-multimedia",{params:s}).catch(a=>(console.log(`[/news-items-multimedia] Error: ${a.message}`),Promise.reject(a)));getNewsItemsList=s=>this.props?.axiosApi.get("/news-items-list",{params:s}).catch(a=>(console.log(`[/news-items-list] Error: ${a.message}`),Promise.reject(a)));getNewsListPath=s=>this.props?.axiosApi.get("/news-list-paths",{params:s}).catch(a=>(console.log(`[/news-list-paths] Error: ${a.message}`),Promise.reject(a)));getNewsSchemasImages=s=>this.props?.axiosApi.get("/schemas/news-images",{params:s}).catch(a=>(console.log(`[/schemas/news-images] Error: ${a.message}`),Promise.reject(a)));getNewsItemsRelated=(s,a)=>this.props?.axiosApi.get("/news-items-related",{params:{path:s,imagesizes:this.props?.imgSizes.md,exclude:this.exclude,...a}}).catch(n=>(console.log(`[/news-items-related] Error: ${n.message}`),{data:{data:[]}}));sendEmail=s=>this.props?.axiosApi.post("/send/email",s,{headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:"JSESSIONID=21FDC2B9C2782893562BC53D52981A0B"}}).catch(a=>(console.log(`[/send/email] Error: ${a.message}`),Promise.reject(a)));searchData=async s=>{const a=await this.getNewsSearch(s);return a&&a?.data.data&&a?.data.data.length>0?{search:a}:{lastNews:await this.getNewsList(s)}};commonNewsServices=async(s,a={getNews:`${this.props?.imgSizes.note}${this.props?.imgSizes.lg}`,getNewsItemsList:`${this.props?.imgSizes.xl}${this.props?.imgSizes.lg}`,getAutorInfo:`${this.props?.imgSizes.sm}`,getNewsItemsRelated:"w:212,h:142,t:2;w:100,h:100,t:2"},n={getNewsItemsRelated:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel",getAutorInfo:"groups"})=>{const[r,o]=await Promise.allSettled([this.getNews({imagesizes:a.getNews,path:s}),this.getNewsItemsList({path:s,imagesizes:a.getNewsItemsList})]),i=We(r)?.data,l=i?.[0];let c=[];l?.authors?.length===1&&l?.config?.showauthor&&l.authors[0]?.internaluser&&(c=(await this.getAutorInfo({user:l.authors[0].name,exclude:n.getAutorInfo,imagesizes:a.getAutorInfo}))?.data.data??[]);const d=Bt(l),f=(We(o)?.data??[])[0]?.list?.items?.map(b=>Bt(b)),u=[];f?.forEach(b=>{b&&b.length>0&&b.forEach(C=>{C.forEach(N=>{const v=this.getNews({path:N.replaceAll("|","/"),imagesizes:a.getNewsItemsRelated,exclude:n.getNewsItemsRelated});v&&u.push(v)})})});const m=(await Promise.allSettled([...u])).map(b=>We(b)?.data),p=await Ua(d,this.getNews);let w=[];try{w=(await this.getNewsSchemasImages({path:s}))?.data?.data??[]}catch(b){console.warn("getNewsSchemasImages failed:",b),w=[]}return{news:i??[],autor:c,newsRelatedResponses:p,itemList:We(o)?.data??[],newsRelatedListResponses:m,schemasImages:w??[]}}}class Zn extends qe{MULTIPUBLICATION_FETCHES;PUBLIC_PUBLICATION_ID;IS_MULTIPUBLICATION;constructor(s){super(s);const{MULTIPUBLICATION_FETCHES:a,PUBLIC_PUBLICATION_ID:n}=O();this.MULTIPUBLICATION_FETCHES=a,this.PUBLIC_PUBLICATION_ID=n,this.IS_MULTIPUBLICATION=a!=null&&a!==""||n!=null&&n!==""}getBlockSass=async s=>{const a=await this.props?.axiosApi.get("/config/blocks-saas",{params:{...s,exclude:this.exclude,path:this.props?.config?.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(d=>(console.log(`[/config/blocks-saas] Error: ${d.message}`),Promise.reject(d)));if(!a||!a.data||!a.data.data||a.data.data.length===0||!a.data.data[0]?.value||!a.data.data[0].block||!this.props?.imgSizes[a.data.data[0].block])return{blockSass:a?a.data.data:void 0};const n=a.data.data[0]??[],r=n?.value.split("="),o=r[0]??"",i=r[1]??"",l=n?.block,c={videos:async()=>{const d={size:this.props?.imgSizes[l].size??5,imagesizes:`${this.props?.imgSizesVideo.lg}${this.props?.imgSizesVideo.md}`,query:"Keywords:("+(i??"videohome")+")"};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const h=await this.getvideoListAdvanced(d);return{blockSass:a.data.data,content:h?h.data:void 0}}catch(h){return console.log(`[/videos-list-advanced] Error: ${h?.message}`),{blockSass:a.data.data,content:void 0}}},tag:async()=>{const{USE_QUOTE_IN_QUERY_TAG_HOME:d}=O(),h={query:d?'claves:("'+i+'")':"claves:("+i+")",size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(h.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const f=await this.getNewsListAvanced(h);return{blockSass:a.data.data,content:f?f.data:void 0}}catch(f){return console.log(`[/news-list-advanced] Error: ${f?.message}`),{blockSass:a.data.data,content:void 0}}},seccion:async()=>{const d={query:`seccion:(${i})`,size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const h=await this.getNewsListAvanced(d);return{blockSass:a.data.data,content:h?h.data:void 0}}catch(h){return console.log(`[/news-list-advanced] Error: ${h?.message}`),{blockSass:a.data.data,content:void 0}}}};if(o in c){const d=c[o];return await d()}return{blockSass:a.data.data}}}class rc{issuuApi="https://api.issuu.com/v2";api=void 0;q="";constructor(s){this.q=s.q,this.api=ne.create({baseURL:s.issuuApi?s.issuuApi:this.issuuApi,params:{state:s.state?s.state:"PUBLISHED",size:s.size?s.size:16,q:s.q},headers:{Authorization:`Bearer ${s.token}`}})}async getListIssuuPublications({page:s=1}){try{return await this.api?.get("/publications",{params:{q:this.q,page:s}})}catch(a){throw a}}async getListIssuuPublicationBySlug(s){try{return await this.api?.get(`/publications/${s}/embed`)}catch(a){throw a}}}const oc=async(e,s,a,n,r,o,i)=>{const l=new Zn({config:s,imgSizes:a,imgSizesVideo:n,axiosApi:e,exclude:i}),c=[];for(let f=1;f<=r;f++)for(let u=1;u<=o;u++)c.push({func:l.getBlockSass,slot_id:f+"_"+u});const d=await Promise.allSettled([...c.map(f=>f.func({template:"Home_"+f.slot_id}))]);return(()=>{const f={};for(let u=0;u<d.length;u++){const g=ka(d[u]),m="Home_"+(Math.floor(u/o)+1)+"_"+(Math.floor(u%o)+1);g&&(f[m]={...g})}return f})()},ic=e=>{const s=We(e);return s&&s.data?s.data:s},lc=async e=>{const s=await Promise.allSettled(Object.values(e).map(r=>{const o=r.promise??Promise.resolve(void 0);return o.catch(()=>{}),o})),a=Object.keys(e),n={};for(const r in e){const o=e[r];if(!o)continue;const i=o.custom_extractData??ic;n[r]=i(s[a.indexOf(r)])}return n},fe=e=>({title:e.title,description:e.description}),Xn=(e="")=>e.replace(/-/g," ").replace(/^./,s=>s.toUpperCase()),Ct=e=>e.includes("/page/")?e.replace(/\/page\/\d+$/,""):e,me=e=>{try{const s=ce();if(!s)return e;const a=new URL(e),n=a.pathname;return n===s||n.startsWith(`${s}/`)?e:a.origin+s+e.slice(a.origin.length)}catch{return e}},Ue=(e,s,a,n)=>{const r=me(s),o={...a?{title:a}:{},...n?{description:n}:{}};return{alternates:{...e.alternates,canonical:r},openGraph:{...e.openGraph,url:r,...o},twitter:{...e.twitter,url:r,...o}}},Rn={404:e=>{const{meta:s}=e;return fe(s)},home:e=>{const{meta:s,config:a}=e;return{...s,...Ue(s,a.siteUrl,s.title)}},slug:e=>{const{meta:s,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Xn(n)}`;return{...s,title:o,...Ue(s,a.siteUrl+r,o)}},auth:e=>{const{meta:s,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Xn(n)}`;return{...s,title:o,...Ue(s,a.siteUrl+r,o)}},news:e=>{const{meta:s,config:a,currentNew:n,schemasImages:r}=e;if(!n)return fe(s);const o=Oa(s,n,a,r);return o?{...s,...o}:fe(s)},seccion:async e=>{const{meta:s,config:a,pathname:n,slug:r,axiosApi:o,meta_info:i}=e,{CONFIG_sectionMetaInfo:l,CONFIG_sectionBatchedFetch:c,PUBLIC_LNG:d}=O(),f=Ct(n).split("/"),u=[],g=lt(n),m=Number(a.newsListLimit)||0,p=d==="en";if(l&&i)return i.next&&u.push({rel:"next",url:Ke(a,f,g)}),g>1&&u.push({rel:"prev",url:Je(a,f,g)}),{...s,title:i.title,alternates:{...s.alternates,canonical:me(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...s.openGraph,title:i.title,type:"website",url:me(`${a.siteUrl}${n}`)},twitter:{...s.twitter,card:"summary_large_image",title:i.title,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}};const w=new qe({config:a,axiosApi:o});try{let b,C;if(c){const x=await Da({fetchFn:I=>w.getNewsListSection(I),baseParams:{section:r,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields"},userPage:g,newsListLimit:m});b=x.data,C=x.hasNextPage}else{const x=await w.getNewsListSection({section:r,size:m,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:g});if(!x)return fe(s);b=x.data.data,C=!(b.length<m)}const N=b[0];C&&u.push({rel:"next",url:Ke(a,f,g)}),g>1&&u.push({rel:"prev",url:Je(a,f,g)});const v=p?`Latest News from ${N.info.section?.name} | ${a.name}`:`Últimas Noticias de ${N.info.section?.name} | ${a.name}`,A=p?`All the latest news from ${N.info.section?.name} on ${a.name}`:`Todas las últimas noticias de ${N.info.section?.name} en ${a.name}`;return{...s,title:v,description:A,alternates:{...s.alternates,canonical:me(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...s.openGraph,title:v,description:A,type:"website",url:me(`${a.siteUrl}${n}`),locale:s.openGraph.locale},twitter:{...s.twitter,card:"summary_large_image",title:v,description:A,site:s.twitter.site,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}}}catch(b){return console.error(b),fe(s)}},tema:async e=>{const{meta:s,config:a,pathname:n,slug:r,axiosApi:o}=e,i=new qe({config:a,axiosApi:o}),c=Ct(n).split("/"),d=[],h=lt(n),f=Number(a.newsListLimit)||0,u=/([t][0-9]{4})\w+/.exec(r||""),g=u&&u?.length>0?u[0].replace("t",""):"",{PUBLIC_TAG_TYPE:m,PUBLIC_LNG:p}=O(),w=p==="en";try{const b=await i.getNewsListTags({tagid:g,size:f,tagtype:Number(m),newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:h});if(!b)return fe(s);const C=b.data.entity;if(!C)return fe(s);b.data.data?.length<f||d.push({rel:"next",url:Ke(a,c,h)}),h>1&&d.push({rel:"prev",url:Je(a,c,h)});const N=w?`Latest news about ${C.name} | ${a.name}`:`Últimas noticias de ${C.name} | ${a.name}`,v=w?`The latest news about ${C.name} on ${a.name}`:`Las últimas noticias sobre ${C.name} en ${a.name}`;return{...s,title:N,description:v,alternates:{...s.alternates,canonical:me(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...s.openGraph,title:N,description:v,type:"website",url:me(`${a.siteUrl}${n}`),locale:s.openGraph.locale},twitter:{...s.twitter,card:"summary_large_image",title:N,description:v,site:s.twitter.site,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}}}catch(b){return console.error(b),fe(s)}},"ultimas-noticias":async e=>{const{meta:s,config:a,pathname:n,texts:r,axiosApi:o}=e,i=new qe({config:a,axiosApi:o}),c=Ct(n).split("/"),d=[],h=lt(n),f=Number(a.newsListLimit)||0,u=`${a.name} | ${r.lastNotesTitle}`,g={...s,title:u,...Ue(s,a.siteUrl+"/"+a.paths["ultimas-noticias"],u)};if(!o)return g;try{const m=await i.getNewsList({size:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:h});return m?(m.data.data.length<f||d.push({rel:"next",url:Ke(a,c,h)}),h>1&&d.push({rel:"prev",url:Je(a,c,h)}),{...s,title:u,...Ue(s,a.siteUrl+n,u),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}):g}catch(m){return console.error(m),g}},video:async e=>{const{meta:s,config:a,internalPath:n,axiosApi:r}=e,o=new qe({config:a,axiosApi:r});try{const i=await o.getVideos({imagesizes:"w:1200,h:630,t:2;",path:n});return i?.data?.data?.length?{...s,...Ha(s,i.data.data[0],a)??{}}:fe(s)}catch(i){return console.error("metadata (video) error:",i),fe(s)}},videos:async e=>{const{meta:s,config:a,pathname:n,axiosApi:r}=e,o=new qe({config:a,axiosApi:r}),l=Ct(n).split("/"),c=[],d=lt(n),h=Number(a.newsListLimit)||0;try{const f=await o.getvideoListAdvanced({size:h,query:"Category:(videohome OR destacadoseccion OR seccion)",page:Number(d)});if(!f)return fe(s);f.data.data.length<h||c.push({rel:"next",url:Ke(a,l,d)}),d>1&&c.push({rel:"prev",url:Je(a,l,d)});const u="Videos | "+a.name;return{...s,title:u,...Ue(s,a.siteUrl+n,u),manifest:a.manifest,icons:{...a.icons,other:c},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(f){return console.error(f),fe(s)}},pages:async(e,s)=>{const{meta:a,config:n,pathname:r,slug:o,axiosApi:i}=e,l=new qe({config:n,axiosApi:i});try{const c=await l.getPages({path:s||n.servicePrefix+`/pages/${o}`});if(!c)return fe(a);const d=c.data.data[0]?.info.title??"",h=`${n.name} | ${d}`;return{...a,title:h,...Ue(a,n.siteUrl+r,h)}}catch(c){return console.error(c),fe(a)}},contacto:e=>{const{meta:s,config:a,pathname:n}=e,r=O().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Contact":"Contacto"}`;return{...s,title:o,...Ue(s,a.siteUrl+n,o)}},anuncia:e=>{const{meta:s,config:a,pathname:n}=e,r=O().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Advertise":"Anuncia"}`;return{...s,title:o,...Ue(s,a.siteUrl+n,o)}},buscar:e=>{const{meta:s,config:a,pathname:n,query:r,texts:o}=e;if(r&&r.trim()!==""){const i=`${a.name} | ${`${o.resultsOfPrefix}'${r}'`}`;return{...s,title:i,alternates:{...s.alternates,canonical:me(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...s.openGraph,title:i,type:"website",url:me(`${a.siteUrl}${n}${r?"?query="+r:""}`)},twitter:{...s.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}${r?"?query="+r:""}`)}}}else{const i=`${a.name} | ${o.searchKeyWord}`;return{...s,title:i,alternates:{...s.alternates,canonical:me(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...s.openGraph,title:i,type:"website",url:me(`${a.siteUrl}${n}`)},twitter:{...s.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}}}},autor:async e=>{const{meta:s,config:a,pathname:n,imgSizes:r,slug:o,axiosApi:i}=e,l=new qe({config:a,axiosApi:i,imgSizes:r}),d=Ct(n).split("/"),h=[],f=lt(n),u=O().PUBLIC_LNG==="en",g=Number(a.newsListLimit)||0;try{const m=await l.getAutorInfo({user:o,exclude:"groups",imagesizes:r.sm}),p=await l.getNewsListAutor({size:g,user:o,page:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",imagesizes:r.md});if(!p)return fe(s);p.data.data.length<g||h.push({rel:"next",url:Ke(a,d,f)}),f>1&&h.push({rel:"prev",url:Je(a,d,f)});const w=m?.data.data[0]?.info.fullname,b=u?`Latest News from ${w} | ${a.name}`:`Últimas Noticias de ${w} | ${a.name}`,C=u?`All the latest news from ${w} on ${a.name}`:`Todas las últimas noticias de ${w} en ${a.name}`;return{...s,title:b,description:C,...Ue(s,a.siteUrl+n,b,C),manifest:a.manifest,icons:{...a.icons,other:h},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(m){return console.error(m),fe(s)}}},cc=e=>e?e.replace(/<[^>]*>/g,"").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&#39;/gi,"'").replace(/\s+/g," ").trim():"",dc=({autor:e,listAutor:s,config:a})=>{const n=s?.[0]??null,{DATE_TIMEZONE:r="America/Mexico_City",PUBLIC_ASSETS_URL:o,PUBLIC_LNG:i}=O(),l=i==="en",c=r,d=n?.info?.date?.modified?Fe(n.info.date.modified,c):void 0,h=e.addtional?.USER_JOBSTART?Fe(e.addtional.USER_JOBSTART,c):void 0,f=o&&o!=="false"?o:"",u=e.addtional,g=u?.USER_USERFB||u?.USER_PAGE_FACEBOOK||u?.USER_FACEBOOK_FAN_PAGE,m=u?.USER_USERTWT||u?.USER_PAGE_TWITTER,p=u?.USER_USERIG||u?.USER_PAGE_INSTAGRAM,w=u?.USER_USERLIN||u?.USER_PAGE_LINKEDIN,b=u?.USER_PAGE_TIKTOK,C=u?.USER_PAGE_YOUTUBE,N=u?.USER_PAGE_PINTEREST,v=l?u?.USER_POSITION_EN||"":u?.USER_JOBTITLE||u?.USER_POSITION||"",A=l?u?.USER_DESCRIPCION_EN||u?.USER_MIBIO_EN||"":u?.USER_DESCRIPCION||u?.USER_MIBIO||"",x=e?.addtional?.USER_SHOWEMAIL===!0||u?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",I=ce(),P={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",name:e.info.fullname??e.info.name,alternateName:e.info.nickname?e.info.nickname:e.info.name,identifier:e.info.id,description:cc(A),image:e.info.image?e.info.image.sizes.map((q,F)=>F===0&&e.info.image.sizes.length!==1?null:f+q.url).filter(Boolean):[],sameAs:[g,p,w,m,b,C,N].filter(Boolean),jobTitle:v,url:a.siteUrl+I+(a.paths.autor!==""?`/${a.paths.autor}/`:"/")+e.info.name}};return h&&(P.dateCreated=h),d&&(P.dateModified=d),x&&(P.mainEntity.email=e.info.email),t.jsx("script",{type:"application/ld+json",children:JSON.stringify(ke(P))})},hc=`(function(){"use strict";const Me="__html-audit-manifest";function je(e){const t=e.getElementById(Me);if(!t||!t.textContent)return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||!n.expects?null:n}catch{return null}}function g(e,t,n,o,r){return{id:e,label:t,status:n,detail:o,expected:r}}function w(e,t,n,o,r){return o==null?g(e,t,n?"ok":"info",r,void 0):o?n?g(e,t,"ok",r,!0):g(e,t,"missing",r||"Esperado por config pero AUSENTE",!0):n?g(e,t,"warn",r||"Presente pero no estaba configurado",!1):g(e,t,"info",r||"No configurado",!1)}const ce={ok:0,info:1,warn:2,missing:3};function J(e,t){if(!t||!t.length)return e;e.issues=t;let n=e.status;for(const o of t)ce[o.status]>ce[n]&&(n=o.status);return e.status=n,e}function N(e,t){return!!e.querySelector(t)}function q(e,t){return e.querySelectorAll(t).length}function F(e){const t=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?t.push(...r):t.push(r)}catch{}}),t}function U(e,t){return F(e).some(n=>{const o=n?.["@type"];return typeof o=="string"?o===t:Array.isArray(o)?o.includes(t):!1})}function pe(e,t){const n=[],o=r=>{if(!r||typeof r!="object")return;if(Array.isArray(r)){r.forEach(o);return}const s=r,i=s["@type"];(i===t||Array.isArray(i)&&i.includes(t))&&n.push(s),Array.isArray(s["@graph"])&&s["@graph"].forEach(o)};return F(e).forEach(o),n}const qe=600,Ue=6e3;function de(e,t){return e.length>t?e.slice(0,t)+\`
26
+ `+o):n.stack=o}catch{}}throw n}}_request(s,a){typeof s=="string"?(a=a||{},a.url=s):a=s||{},a=Xe(this.defaults,a);const{transitional:n,paramsSerializer:r,headers:o}=a;n!==void 0&&Yt.assertOptions(n,{silentJSONParsing:Ie.transitional(Ie.boolean),forcedJSONParsing:Ie.transitional(Ie.boolean),clarifyTimeoutError:Ie.transitional(Ie.boolean)},!1),r!=null&&(E.isFunction(r)?a.paramsSerializer={serialize:r}:Yt.assertOptions(r,{encode:Ie.function,serialize:Ie.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Yt.assertOptions(a,{baseUrl:Ie.spelling("baseURL"),withXsrfToken:Ie.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=o&&E.merge(o.common,o[a.method]);o&&E.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),a.headers=Ae.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(a)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let h,f=0,u;if(!c){const m=[Wn.bind(this),void 0];for(m.unshift(...l),m.push(...d),u=m.length,h=Promise.resolve(a);f<u;)h=h.then(m[f++],m[f++]);return h}u=l.length;let g=a;for(;f<u;){const m=l[f++],p=l[f++];try{g=m(g)}catch(w){p.call(this,w);break}}try{h=Wn.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,u=d.length;f<u;)h=h.then(d[f++],d[f++]);return h}getUri(s){s=Xe(this.defaults,s);const a=Mn(s.baseURL,s.url,s.allowAbsoluteUrls);return En(a,s.params,s.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(s){Re.prototype[s]=function(a,n){return this.request(Xe(n||{},{method:s,url:a,data:(n||{}).data}))}}),E.forEach(["post","put","patch"],function(s){function a(n){return function(o,i,l){return this.request(Xe(l||{},{method:s,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Re.prototype[s]=a(),Re.prototype[s+"Form"]=a(!0)});let ec=class ko{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(o){a=o});const n=this;this.promise.then(r=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](r);n._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{n.subscribe(l),o=l}).then(r);return i.cancel=function(){n.unsubscribe(o)},i},s(function(o,i,l){n.reason||(n.reason=new ht(o,i,l),a(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const a=this._listeners.indexOf(s);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const s=new AbortController,a=n=>{s.abort(n)};return this.subscribe(a),s.signal.unsubscribe=()=>this.unsubscribe(a),s.signal}static source(){let s;return{token:new ko(function(r){s=r}),cancel:s}}};function tc(e){return function(a){return e.apply(null,a)}}function sc(e){return E.isObject(e)&&e.isAxiosError===!0}const js={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(js).forEach(([e,s])=>{js[s]=e});function Kn(e){const s=new Re(e),a=hn(Re.prototype.request,s);return E.extend(a,Re.prototype,s,{allOwnKeys:!0}),E.extend(a,s,null,{allOwnKeys:!0}),a.create=function(r){return Kn(Xe(e,r))},a}const ne=Kn(At);ne.Axios=Re,ne.CanceledError=ht,ne.CancelToken=ec,ne.isCancel=Ln,ne.VERSION=$n,ne.toFormData=Vt,ne.AxiosError=ee,ne.Cancel=ne.CanceledError,ne.all=function(s){return Promise.all(s)},ne.spread=tc,ne.isAxiosError=sc,ne.mergeConfig=Xe,ne.AxiosHeaders=Ae,ne.formToJSON=e=>In(E.isHTMLForm(e)?new FormData(e):e),ne.getAdapter=Qn.getAdapter,ne.HttpStatusCode=js,ne.default=ne;const{Axios:vu,AxiosError:Nu,CanceledError:Su,isCancel:xu,CancelToken:Eu,VERSION:Tu,all:ku,Cancel:Iu,isAxiosError:Uu,spread:Lu,toFormData:Pu,AxiosHeaders:Ou,HttpStatusCode:Bu,formToJSON:Mu,getAdapter:_u,mergeConfig:Du}=ne,Gs="https://goamg.amplifyapp.com/vndomv",ac={menu:"menu-principal"};function nc(e){const a=((e??"").split("/").pop()??"").replace(/\.html?$/i,"");return ac[a]??a}function Jn(e,s,a,n){const o=(s??"").replace(/^\/+|\/+$/g,"")||e.forceSite||e.clientName;return`${e.url.replace(/\/+$/,"")}/${e.clientName}/${o}/${a}/${n}/${n}.json`}class qe{constructor(s){this.props=s,s?.config?.configVersion&&(this.configVersion=s.config.configVersion),s?.exclude&&(this.exclude=s.exclude)}configVersion=".config";exclude="keywords,gallery,related,relatedexternal,external,customfields";generateTokenOffline=async s=>{const{PUBLIC_IS_OFFLINE:a,PUBLIC_USERNAME_OFFLINE:n,PUBLIC_PASSWORD_OFFLINE:r}=O();if(a==="true")try{return(await this.props?.axiosApi.get("/auth",{params:{username:n,password:r,browserid:s}}).catch(i=>(console.log(`[/auth]Error: ${i.message}`),Promise.reject(i))))?.data.data[0]?.token}catch(o){console.log(`[/auth] Error: ${o.message}`),console.log(o)}};getEntitySection=s=>this.props?.axiosApi.get("/entity-section",{params:s}).catch(a=>(console.log(`[/entity-section] Error: ${a.message}`),Promise.reject(a)));getMainMenu=s=>{const a=O().BUCKET_ORIGIN;if(a?.menu){const n=Jn(a,this.props?.config?.servicePrefix,"menu",nc(s.path));return console.log(`[bucket:menu] GET ${n}`),ne.get(n,{headers:{Referer:a.referer??Gs}}).catch(r=>(console.log(`[bucket:menu] Error: ${r.response?.status??"network"} ${r.message} (${n})`),Promise.reject(r)))}return this.props?.axiosApi.get("/config/menu",{params:s}).catch(n=>(console.log(`[/config/menu] Error: ${n.message}`),Promise.reject(n)))};getNewsListZone=s=>this.props?.axiosApi.get("/news-list-zone",{params:s}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),Promise.reject(a)));getNewsListZoneSection=s=>this.props?.axiosApi.get("/news-list-zone-section",{params:s}).catch(a=>(console.log(`[/news-list-zone-section] Error: ${a.message}`),Promise.reject(a)));getNewsList=s=>this.props?.axiosApi.get("/news-list",{params:s}).catch(a=>(console.log(`[/news-list] Error: ${a.message}`),Promise.reject(a)));getNewsListTag=s=>this.props?.axiosApi.get("/news-list-tag",{params:s}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListSection=s=>this.props?.axiosApi.get("/news-list-section",{params:s}).catch(a=>(console.log(`[/news-list-section] Error: ${a}`),console.log(`[/news-list-section] Error: ${a.message}`),Promise.reject(a)));getNewsListAvanced=s=>this.props?.axiosApi.get("/news-list-advanced",{params:s}).catch(a=>(console.log(`[/news-list-advanced] Error: ${a.message}`),Promise.reject(a)));getNewsListTags=s=>this.props?.axiosApi.get("/news-list-tag",{params:s}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListTagEntity=s=>this.props?.axiosApi.get("/news-list-tag-entity",{params:s}).catch(a=>(console.log(`[/news-list-tag-entity] Error: ${a.message}`),Promise.reject(a)));getNewsListTagLite=s=>this.props?.axiosApi.get("/news-list-tag-lite",{params:s}).catch(a=>(console.log(`[/news-list-tag-lite] Error: ${a.message}`),Promise.reject(a)));getNewsListAutor=s=>this.props?.axiosApi.get("/news-list-author",{params:s}).catch(a=>(console.log(`[/news-list-author] Error: ${a.message}`),Promise.reject(a)));getNewsSearch=s=>this.props?.axiosApi.get("/news-list-search",{params:s}).catch(a=>(console.log(`[/news-list-search] Error: ${a.message}`),Promise.reject(a)));getAutorInfo=s=>this.props?.axiosApi.get("/authors",{params:s}).catch(a=>(console.log(`[/authors] Error: ${a.message}`),Promise.reject(a)));getvideoListAdvanced=s=>this.props?.axiosApi.get("/videos-list-advanced",{params:s}).catch(a=>(console.log(`[/videos-list-advanced] Error: ${a.message}`),Promise.reject(a)));getVideos=s=>this.props?.axiosApi.get("/videos",{params:s}).catch(a=>(console.log(`[/videos] Error: ${a.message}`),Promise.reject(a)));getVideosList=s=>this.props?.axiosApi.get("/videos-list",{params:s}).catch(a=>(console.log(`[/videos-list] Error: ${a.message}`),Promise.reject(a)));getBanners=async s=>{const a=O().BUCKET_ORIGIN;if(a?.banners){const r=Jn(a,this.props?.config?.servicePrefix,"banners",(s.template??"").toLowerCase());return console.log(`[bucket:banners] GET ${r}`),ne.get(r,{headers:{Referer:a.referer??Gs}}).catch(o=>(console.log(`[bucket:banners] Error: ${o.response?.status??"network"} ${o.message} (${r})`),Promise.reject(o)))}const n=s.path?s.path:`/${this.configVersion}/banners.html`;return this.props?.axiosApi.get("/config/banners",{params:{...s,path:this.props?.config?.servicePrefix+n}}).catch(r=>(console.log(`[/config/banners] Error: ${r.message}`),Promise.reject(r)))};getPages=s=>this.props?.axiosApi.get("/config/pages",{params:s}).catch(a=>(console.log(`[/config/pages] Error: ${a.message}`),Promise.reject(a)));getRankingS3=async(s,a={Referer:Gs})=>!s||s===""?{data:[]}:await ne.get(s,{headers:a}).catch(n=>{console.log(`[Rankings s3] Error: ${n.message}`)});getNews=s=>this.props?.axiosApi.get("/news",{params:{...s,exclude:`${s.exclude},pixel`}}).catch(a=>(console.log(`[/news] Error: ${a.message}`),Promise.reject(a)));getNewsMultimedia=s=>this.props?.axiosApi.get("/news-items-multimedia",{params:s}).catch(a=>(console.log(`[/news-items-multimedia] Error: ${a.message}`),Promise.reject(a)));getNewsItemsList=s=>this.props?.axiosApi.get("/news-items-list",{params:s}).catch(a=>(console.log(`[/news-items-list] Error: ${a.message}`),Promise.reject(a)));getNewsListPath=s=>this.props?.axiosApi.get("/news-list-paths",{params:s}).catch(a=>(console.log(`[/news-list-paths] Error: ${a.message}`),Promise.reject(a)));getNewsSchemasImages=s=>this.props?.axiosApi.get("/schemas/news-images",{params:s}).catch(a=>(console.log(`[/schemas/news-images] Error: ${a.message}`),Promise.reject(a)));getNewsItemsRelated=(s,a)=>this.props?.axiosApi.get("/news-items-related",{params:{path:s,imagesizes:this.props?.imgSizes.md,exclude:this.exclude,...a}}).catch(n=>(console.log(`[/news-items-related] Error: ${n.message}`),{data:{data:[]}}));sendEmail=s=>this.props?.axiosApi.post("/send/email",s,{headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:"JSESSIONID=21FDC2B9C2782893562BC53D52981A0B"}}).catch(a=>(console.log(`[/send/email] Error: ${a.message}`),Promise.reject(a)));searchData=async s=>{const a=await this.getNewsSearch(s);return a&&a?.data.data&&a?.data.data.length>0?{search:a}:{lastNews:await this.getNewsList(s)}};commonNewsServices=async(s,a={getNews:`${this.props?.imgSizes.note}${this.props?.imgSizes.lg}`,getNewsItemsList:`${this.props?.imgSizes.xl}${this.props?.imgSizes.lg}`,getAutorInfo:`${this.props?.imgSizes.sm}`,getNewsItemsRelated:"w:212,h:142,t:2;w:100,h:100,t:2"},n={getNewsItemsRelated:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel",getAutorInfo:"groups"})=>{const[r,o]=await Promise.allSettled([this.getNews({imagesizes:a.getNews,path:s}),this.getNewsItemsList({path:s,imagesizes:a.getNewsItemsList})]),i=We(r)?.data,l=i?.[0];let c=[];l?.authors?.length===1&&l?.config?.showauthor&&l.authors[0]?.internaluser&&(c=(await this.getAutorInfo({user:l.authors[0].name,exclude:n.getAutorInfo,imagesizes:a.getAutorInfo}))?.data.data??[]);const d=Bt(l),f=(We(o)?.data??[])[0]?.list?.items?.map(b=>Bt(b)),u=[];f?.forEach(b=>{b&&b.length>0&&b.forEach(C=>{C.forEach(N=>{const v=this.getNews({path:N.replaceAll("|","/"),imagesizes:a.getNewsItemsRelated,exclude:n.getNewsItemsRelated});v&&u.push(v)})})});const m=(await Promise.allSettled([...u])).map(b=>We(b)?.data),p=await Ua(d,this.getNews);let w=[];try{w=(await this.getNewsSchemasImages({path:s}))?.data?.data??[]}catch(b){console.warn("getNewsSchemasImages failed:",b),w=[]}return{news:i??[],autor:c,newsRelatedResponses:p,itemList:We(o)?.data??[],newsRelatedListResponses:m,schemasImages:w??[]}}}class Zn extends qe{MULTIPUBLICATION_FETCHES;PUBLIC_PUBLICATION_ID;IS_MULTIPUBLICATION;constructor(s){super(s);const{MULTIPUBLICATION_FETCHES:a,PUBLIC_PUBLICATION_ID:n}=O();this.MULTIPUBLICATION_FETCHES=a,this.PUBLIC_PUBLICATION_ID=n,this.IS_MULTIPUBLICATION=a!=null&&a!==""||n!=null&&n!==""}getBlockSass=async s=>{const a=await this.props?.axiosApi.get("/config/blocks-saas",{params:{...s,exclude:this.exclude,path:this.props?.config?.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(d=>(console.log(`[/config/blocks-saas] Error: ${d.message}`),Promise.reject(d)));if(!a||!a.data||!a.data.data||a.data.data.length===0||!a.data.data[0]?.value||!a.data.data[0].block||!this.props?.imgSizes[a.data.data[0].block])return{blockSass:a?a.data.data:void 0};const n=a.data.data[0]??[],r=n?.value.split("="),o=r[0]??"",i=r[1]??"",l=n?.block,c={videos:async()=>{const d={size:this.props?.imgSizes[l].size??5,imagesizes:`${this.props?.imgSizesVideo.lg}${this.props?.imgSizesVideo.md}`,query:"Keywords:("+(i??"videohome")+")"};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const h=await this.getvideoListAdvanced(d);return{blockSass:a.data.data,content:h?h.data:void 0}}catch(h){return console.log(`[/videos-list-advanced] Error: ${h?.message}`),{blockSass:a.data.data,content:void 0}}},tag:async()=>{const{USE_QUOTE_IN_QUERY_TAG_HOME:d}=O(),h={query:d?'claves:("'+i+'")':"claves:("+i+")",size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(h.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const f=await this.getNewsListAvanced(h);return{blockSass:a.data.data,content:f?f.data:void 0}}catch(f){return console.log(`[/news-list-advanced] Error: ${f?.message}`),{blockSass:a.data.data,content:void 0}}},seccion:async()=>{const d={query:`seccion:(${i})`,size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const h=await this.getNewsListAvanced(d);return{blockSass:a.data.data,content:h?h.data:void 0}}catch(h){return console.log(`[/news-list-advanced] Error: ${h?.message}`),{blockSass:a.data.data,content:void 0}}}};if(o in c){const d=c[o];return await d()}return{blockSass:a.data.data}}}class rc{issuuApi="https://api.issuu.com/v2";api=void 0;q="";constructor(s){this.q=s.q,this.api=ne.create({baseURL:s.issuuApi?s.issuuApi:this.issuuApi,params:{state:s.state?s.state:"PUBLISHED",size:s.size?s.size:16,q:s.q},headers:{Authorization:`Bearer ${s.token}`}})}async getListIssuuPublications({page:s=1}){try{return await this.api?.get("/publications",{params:{q:this.q,page:s}})}catch(a){throw a}}async getListIssuuPublicationBySlug(s){try{return await this.api?.get(`/publications/${s}/embed`)}catch(a){throw a}}}const oc=async(e,s,a,n,r,o,i)=>{const l=new Zn({config:s,imgSizes:a,imgSizesVideo:n,axiosApi:e,exclude:i}),c=[];for(let f=1;f<=r;f++)for(let u=1;u<=o;u++)c.push({func:l.getBlockSass,slot_id:f+"_"+u});const d=await Promise.allSettled([...c.map(f=>f.func({template:"Home_"+f.slot_id}))]);return(()=>{const f={};for(let u=0;u<d.length;u++){const g=ka(d[u]),m="Home_"+(Math.floor(u/o)+1)+"_"+(Math.floor(u%o)+1);g&&(f[m]={...g})}return f})()},ic=e=>{const s=We(e);return s&&s.data?s.data:s},lc=async e=>{const s=await Promise.allSettled(Object.values(e).map(r=>{const o=r.promise??Promise.resolve(void 0);return o.catch(()=>{}),o})),a=Object.keys(e),n={};for(const r in e){const o=e[r];if(!o)continue;const i=o.custom_extractData??ic;n[r]=i(s[a.indexOf(r)])}return n},fe=e=>({title:e.title,description:e.description}),Xn=(e="")=>e.replace(/-/g," ").replace(/^./,s=>s.toUpperCase()),Ct=e=>e.includes("/page/")?e.replace(/\/page\/\d+$/,""):e,me=e=>{try{const s=ce();if(!s)return e;const a=new URL(e),n=a.pathname;return n===s||n.startsWith(`${s}/`)?e:a.origin+s+e.slice(a.origin.length)}catch{return e}},Ue=(e,s,a,n)=>{const r=me(s),o={...a?{title:a}:{},...n?{description:n}:{}};return{alternates:{...e.alternates,canonical:r},openGraph:{...e.openGraph,url:r,...o},twitter:{...e.twitter,url:r,...o}}},Rn={404:e=>{const{meta:s}=e;return fe(s)},home:e=>{const{meta:s,config:a}=e;return{...s,...Ue(s,a.siteUrl,s.title)}},slug:e=>{const{meta:s,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Xn(n)}`;return{...s,title:o,...Ue(s,a.siteUrl+r,o)}},auth:e=>{const{meta:s,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Xn(n)}`;return{...s,title:o,...Ue(s,a.siteUrl+r,o)}},news:e=>{const{meta:s,config:a,currentNew:n,schemasImages:r}=e;if(!n)return fe(s);const o=Oa(s,n,a,r);return o?{...s,...o}:fe(s)},seccion:async e=>{const{meta:s,config:a,pathname:n,slug:r,axiosApi:o,meta_info:i}=e,{CONFIG_sectionMetaInfo:l,CONFIG_sectionBatchedFetch:c,PUBLIC_LNG:d}=O(),f=Ct(n).split("/"),u=[],g=lt(n),m=Number(a.newsListLimit)||0,p=d==="en";if(l&&i)return i.next&&u.push({rel:"next",url:Ke(a,f,g)}),g>1&&u.push({rel:"prev",url:Je(a,f,g)}),{...s,title:i.title,alternates:{...s.alternates,canonical:me(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...s.openGraph,title:i.title,type:"website",url:me(`${a.siteUrl}${n}`)},twitter:{...s.twitter,card:"summary_large_image",title:i.title,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}};const w=new qe({config:a,axiosApi:o});try{let b,C;if(c){const x=await Da({fetchFn:I=>w.getNewsListSection(I),baseParams:{section:r,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields"},userPage:g,newsListLimit:m});b=x.data,C=x.hasNextPage}else{const x=await w.getNewsListSection({section:r,size:m,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:g});if(!x)return fe(s);b=x.data.data,C=!(b.length<m)}const N=b[0];C&&u.push({rel:"next",url:Ke(a,f,g)}),g>1&&u.push({rel:"prev",url:Je(a,f,g)});const v=p?`Latest News from ${N.info.section?.name} | ${a.name}`:`Últimas Noticias de ${N.info.section?.name} | ${a.name}`,A=p?`All the latest news from ${N.info.section?.name} on ${a.name}`:`Todas las últimas noticias de ${N.info.section?.name} en ${a.name}`;return{...s,title:v,description:A,alternates:{...s.alternates,canonical:me(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...s.openGraph,title:v,description:A,type:"website",url:me(`${a.siteUrl}${n}`),locale:s.openGraph.locale},twitter:{...s.twitter,card:"summary_large_image",title:v,description:A,site:s.twitter.site,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}}}catch(b){return console.error(b),fe(s)}},tema:async e=>{const{meta:s,config:a,pathname:n,slug:r,axiosApi:o}=e,i=new qe({config:a,axiosApi:o}),c=Ct(n).split("/"),d=[],h=lt(n),f=Number(a.newsListLimit)||0,u=/([t][0-9]{4})\w+/.exec(r||""),g=u&&u?.length>0?u[0].replace("t",""):"",{PUBLIC_TAG_TYPE:m,PUBLIC_LNG:p}=O(),w=p==="en";try{const b=await i.getNewsListTags({tagid:g,size:f,tagtype:Number(m),newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:h});if(!b)return fe(s);const C=b.data.entity;if(!C)return fe(s);b.data.data?.length<f||d.push({rel:"next",url:Ke(a,c,h)}),h>1&&d.push({rel:"prev",url:Je(a,c,h)});const N=w?`Latest news about ${C.name} | ${a.name}`:`Últimas noticias de ${C.name} | ${a.name}`,v=w?`The latest news about ${C.name} on ${a.name}`:`Las últimas noticias sobre ${C.name} en ${a.name}`;return{...s,title:N,description:v,alternates:{...s.alternates,canonical:me(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...s.openGraph,title:N,description:v,type:"website",url:me(`${a.siteUrl}${n}`),locale:s.openGraph.locale},twitter:{...s.twitter,card:"summary_large_image",title:N,description:v,site:s.twitter.site,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}}}catch(b){return console.error(b),fe(s)}},"ultimas-noticias":async e=>{const{meta:s,config:a,pathname:n,texts:r,axiosApi:o}=e,i=new qe({config:a,axiosApi:o}),c=Ct(n).split("/"),d=[],h=lt(n),f=Number(a.newsListLimit)||0,u=`${a.name} | ${r.lastNotesTitle}`,g={...s,title:u,...Ue(s,a.siteUrl+"/"+a.paths["ultimas-noticias"],u)};if(!o)return g;try{const m=await i.getNewsList({size:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:h});return m?(m.data.data.length<f||d.push({rel:"next",url:Ke(a,c,h)}),h>1&&d.push({rel:"prev",url:Je(a,c,h)}),{...s,title:u,...Ue(s,a.siteUrl+n,u),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}):g}catch(m){return console.error(m),g}},video:async e=>{const{meta:s,config:a,internalPath:n,axiosApi:r}=e,o=new qe({config:a,axiosApi:r});try{const i=await o.getVideos({imagesizes:"w:1200,h:630,t:2;",path:n});return i?.data?.data?.length?{...s,...Ha(s,i.data.data[0],a)??{}}:fe(s)}catch(i){return console.error("metadata (video) error:",i),fe(s)}},videos:async e=>{const{meta:s,config:a,pathname:n,axiosApi:r}=e,o=new qe({config:a,axiosApi:r}),l=Ct(n).split("/"),c=[],d=lt(n),h=Number(a.newsListLimit)||0;try{const f=await o.getvideoListAdvanced({size:h,query:"Category:(videohome OR destacadoseccion OR seccion)",page:Number(d)});if(!f)return fe(s);f.data.data.length<h||c.push({rel:"next",url:Ke(a,l,d)}),d>1&&c.push({rel:"prev",url:Je(a,l,d)});const u="Videos | "+a.name;return{...s,title:u,...Ue(s,a.siteUrl+n,u),manifest:a.manifest,icons:{...a.icons,other:c},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(f){return console.error(f),fe(s)}},pages:async(e,s)=>{const{meta:a,config:n,pathname:r,slug:o,axiosApi:i}=e,l=new qe({config:n,axiosApi:i});try{const c=await l.getPages({path:s||n.servicePrefix+`/pages/${o}`});if(!c)return fe(a);const d=c.data.data[0]?.info.title??"",h=`${n.name} | ${d}`;return{...a,title:h,...Ue(a,n.siteUrl+r,h)}}catch(c){return console.error(c),fe(a)}},contacto:e=>{const{meta:s,config:a,pathname:n}=e,r=O().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Contact":"Contacto"}`;return{...s,title:o,...Ue(s,a.siteUrl+n,o)}},anuncia:e=>{const{meta:s,config:a,pathname:n}=e,r=O().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Advertise":"Anuncia"}`;return{...s,title:o,...Ue(s,a.siteUrl+n,o)}},buscar:e=>{const{meta:s,config:a,pathname:n,query:r,texts:o}=e;if(r&&r.trim()!==""){const i=`${a.name} | ${`${o.resultsOfPrefix}'${r}'`}`;return{...s,title:i,alternates:{...s.alternates,canonical:me(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...s.openGraph,title:i,type:"website",url:me(`${a.siteUrl}${n}${r?"?query="+r:""}`)},twitter:{...s.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}${r?"?query="+r:""}`)}}}else{const i=`${a.name} | ${o.searchKeyWord}`;return{...s,title:i,alternates:{...s.alternates,canonical:me(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...s.openGraph,title:i,type:"website",url:me(`${a.siteUrl}${n}`)},twitter:{...s.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:me(`${a.siteUrl}${n}`)}}}},autor:async e=>{const{meta:s,config:a,pathname:n,imgSizes:r,slug:o,axiosApi:i}=e,l=new qe({config:a,axiosApi:i,imgSizes:r}),d=Ct(n).split("/"),h=[],f=lt(n),u=O().PUBLIC_LNG==="en",g=Number(a.newsListLimit)||0;try{const m=await l.getAutorInfo({user:o,exclude:"groups",imagesizes:r.sm}),p=await l.getNewsListAutor({size:g,user:o,page:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",imagesizes:r.md});if(!p)return fe(s);p.data.data.length<g||h.push({rel:"next",url:Ke(a,d,f)}),f>1&&h.push({rel:"prev",url:Je(a,d,f)});const w=m?.data.data[0]?.info.fullname,b=u?`Latest News from ${w} | ${a.name}`:`Últimas Noticias de ${w} | ${a.name}`,C=u?`All the latest news from ${w} on ${a.name}`:`Todas las últimas noticias de ${w} en ${a.name}`;return{...s,title:b,description:C,...Ue(s,a.siteUrl+n,b,C),manifest:a.manifest,icons:{...a.icons,other:h},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(m){return console.error(m),fe(s)}}},cc=e=>e?e.replace(/<[^>]*>/g,"").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&#39;/gi,"'").replace(/\s+/g," ").trim():"",dc=({autor:e,listAutor:s,config:a})=>{const n=s?.[0]??null,{DATE_TIMEZONE:r="America/Mexico_City",PUBLIC_ASSETS_URL:o,PUBLIC_LNG:i}=O(),l=i==="en",c=r,d=n?.info?.date?.modified?Fe(n.info.date.modified,c):void 0,h=e.addtional?.USER_JOBSTART?Fe(e.addtional.USER_JOBSTART,c):void 0,f=o&&o!=="false"?o:"",u=e.addtional,g=u?.USER_USERFB||u?.USER_PAGE_FACEBOOK||u?.USER_FACEBOOK_FAN_PAGE,m=u?.USER_USERTWT||u?.USER_PAGE_TWITTER,p=u?.USER_USERIG||u?.USER_PAGE_INSTAGRAM,w=u?.USER_USERLIN||u?.USER_PAGE_LINKEDIN,b=u?.USER_PAGE_TIKTOK,C=u?.USER_PAGE_YOUTUBE,N=u?.USER_PAGE_PINTEREST,v=l?u?.USER_POSITION_EN||"":u?.USER_JOBTITLE||u?.USER_POSITION||"",A=l?u?.USER_DESCRIPCION_EN||u?.USER_MIBIO_EN||"":u?.USER_DESCRIPCION||u?.USER_MIBIO||"",x=e?.addtional?.USER_SHOWEMAIL===!0||u?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",I=ce(),P={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",name:e.info.fullname??e.info.name,alternateName:e.info.nickname?e.info.nickname:e.info.name,identifier:e.info.id,description:cc(A),image:e.info.image?e.info.image.sizes.map((q,F)=>F===0&&e.info.image.sizes.length!==1?null:f+q.url).filter(Boolean):[],sameAs:[g,p,w,m,b,C,N].filter(Boolean),jobTitle:v,url:a.siteUrl+I+(a.paths.autor!==""?`/${a.paths.autor}/`:"/")+e.info.name}};return h&&(P.dateCreated=h),d&&(P.dateModified=d),x&&(P.mainEntity.email=e.info.email),t.jsx("script",{type:"application/ld+json",children:JSON.stringify(ke(P))})},hc=`(function(){"use strict";const Me="__html-audit-manifest";function je(e){const t=e.getElementById(Me);if(!t||!t.textContent)return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||!n.expects?null:n}catch{return null}}function g(e,t,n,o,r){return{id:e,label:t,status:n,detail:o,expected:r}}function w(e,t,n,o,r){return o==null?g(e,t,n?"ok":"info",r,void 0):o?n?g(e,t,"ok",r,!0):g(e,t,"missing",r||"Esperado por config pero AUSENTE",!0):n?g(e,t,"warn",r||"Presente pero no estaba configurado",!1):g(e,t,"info",r||"No configurado",!1)}const ce={ok:0,info:1,warn:2,missing:3};function J(e,t){if(!t||!t.length)return e;e.issues=t;let n=e.status;for(const o of t)ce[o.status]>ce[n]&&(n=o.status);return e.status=n,e}function N(e,t){return!!e.querySelector(t)}function q(e,t){return e.querySelectorAll(t).length}function F(e){const t=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?t.push(...r):t.push(r)}catch{}}),t}function U(e,t){return F(e).some(n=>{const o=n?.["@type"];return typeof o=="string"?o===t:Array.isArray(o)?o.includes(t):!1})}function pe(e,t){const n=[],o=r=>{if(!r||typeof r!="object")return;if(Array.isArray(r)){r.forEach(o);return}const s=r,i=s["@type"];(i===t||Array.isArray(i)&&i.includes(t))&&n.push(s),Array.isArray(s["@graph"])&&s["@graph"].forEach(o)};return F(e).forEach(o),n}const qe=600,Ue=6e3;function de(e,t){return e.length>t?e.slice(0,t)+\`
27
27
  … (recortado)\`:e}function E(e,t=qe){return e?de(e.outerHTML||"",t):""}function h(e,t){return t&&t.length&&(e.evidence=t),e}function O(e,t){return Array.from(e.querySelectorAll(t)).map(n=>({label:n.getAttribute("property")||n.getAttribute("name")||n.getAttribute("rel")||n.getAttribute("type")||n.tagName.toLowerCase(),snippet:E(n)}))}function K(e,t){if(!e||typeof e!="object")return;if(Array.isArray(e)){e.forEach(r=>K(r,t));return}const n=e,o=n["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r)),Array.isArray(n["@graph"])&&K(n["@graph"],t)}function ue(e){const t=e.querySelectorAll('script[type="application/ld+json"]'),n=[];return t.forEach((o,r)=>{const s=o.textContent||"",i=new Set;let l=s,a=!0;try{const u=JSON.parse(s);K(u,i),l=JSON.stringify(u,null,2)}catch{a=!1}const c=o.id,p=[...i],d=p.length?p.join(", "):c||\`bloque #\${r+1}\`;n.push({types:p,label:a?d:\`\${d} (JSON inválido)\`,snippet:de(l,Ue)})}),n}function _(e,t){return ue(e).filter(n=>n.types.includes(t)).map(n=>({label:n.label,snippet:n.snippet}))}function _e(e){return ue(e).map(t=>({label:t.label,snippet:t.snippet}))}const Ie=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector("meta[charset]");o.push(h(w("htmlAttrs.charset","<meta charset>",!!r,n?n.charset:null,"Falta <meta charset>"),r?[{label:"<meta charset>",snippet:E(r)}]:[]));const s=e.querySelector('meta[name="viewport"]');o.push(h(w("htmlAttrs.viewport","<meta name=viewport>",!!s,n?n.viewport:null,"Falta <meta name=viewport>"),s?[{label:"<meta name=viewport>",snippet:E(s)}]:[]));const i=e.documentElement.getAttribute("lang");o.push(g("htmlAttrs.lang","html[lang]",i?"ok":"info",i?\`lang="\${i}"\`:"No emitido por el paquete (lo agrega el sitio)"));const l=e.documentElement.getAttribute("dir");o.push(g("htmlAttrs.dir","html[dir]",l?"ok":"info",l?\`dir="\${l}"\`:"No emitido por el paquete"));const a=new Map;e.querySelectorAll("[id]").forEach(p=>{const d=p.id;d&&a.set(d,(a.get(d)||0)+1)});const c=[...a.entries()].filter(([,p])=>p>1).map(([p])=>p);return o.push(g("htmlAttrs.duplicateIds","IDs duplicados",c.length?"warn":"ok",c.length?\`Duplicados: \${c.slice(0,10).join(", ")}\`:"Sin IDs duplicados")),{key:"htmlAttrs",title:"HTML attrs",findings:o}},Fe=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector('script[type="speculationrules"]');o.push(h(w("structure.speculationRules","Speculation rules",!!r,n?n.speculationRules:null,"Speculation rules desactivadas"),r?[{label:"speculationrules",snippet:E(r,2e3)}]:[])),t?.speculationType&&o.push(g("structure.speculationType","Speculation type","info",\`Tipo esperado: \${t.speculationType}\`));const s=q(e,"main");o.push(g("structure.main","<main>",s===1?"ok":s===0?"info":"warn",s===1?"1 <main>":s===0?"Sin <main> (lo arma el sitio)":\`\${s} <main> (debería ser 1)\`)),o.push(g("structure.header","<header>",N(e,"header")?"ok":"info",N(e,"header")?"Presente":"Sin <header>")),o.push(g("structure.footer","<footer>",N(e,"footer")?"ok":"info",N(e,"footer")?"Presente":"Sin <footer>"));const i=q(e,"h1");return o.push(g("structure.h1","<h1>",i===1?"ok":"warn",i===0?"Sin <h1>":i===1?"1 <h1>":\`\${i} <h1> (revisar jerarquía)\`)),{key:"structure",title:"Estructura",findings:o}},Pe=["og:title","og:description","og:type","og:url","og:site_name","og:locale","og:image"],He=["twitter:card","twitter:title","twitter:description","twitter:image","twitter:site"];function M(e,t){return{status:e,message:t}}function X(e,t=60){const n=e.trim();return n.length>t?n.slice(0,t)+"…":n}function P(e,t={}){const n=(e||"").trim();if(!n)return[];const o=[],r=t.absolute!==!1,s=t.https!==!1,i=/^[a-z][a-z0-9+.-]*:/i.test(n),l=n.startsWith("//");r&&!i&&!l&&o.push(M("warn",\`URL relativa ("\${X(n)}"); se espera absoluta\`));let a=null;try{a=new URL(n,t.base)}catch{return o.push(M("warn",\`URL malformada: "\${X(n)}"\`)),o}return(a.protocol==="http:"||a.protocol==="https:")&&(s&&a.protocol==="http:"&&o.push(M("warn","Usa http (inseguro); se espera https")),a.pathname.includes("//")&&o.push(M("warn",\`Doble slash en el path: "\${X(a.pathname)}"\`)),t.sameHost&&a.host!==t.sameHost&&o.push(M("warn",\`Host distinto: "\${a.host}" (se espera "\${t.sameHost}")\`))),o}function fe(e,t){const n=(e||"").trim();if(!n)return null;try{return new URL(n,t).href}catch{return null}}const Be={NewsArticle:["@context","headline","datePublished","image","author","publisher"]};function De(e){return e==null?!0:typeof e=="string"?e.trim()==="":Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function We(e,t){return t.filter(n=>De(e[n])).map(n=>M("warn",\`Falta campo requerido: \${n}\`))}function Ge(e){const t=e.itemListElement;return Array.isArray(t)?t.length:t?1:0}function z(e){return e===void 0||e==="meta"?null:e}function L(e,t,n,o,r,s,i){const l=e.querySelector(o),a=w(t,n,!!l,r,l?he(l):s);return l&&(h(a,[{label:n,snippet:E(l)}]),i&&J(a,i(l))),a}function he(e){const n=(e.getAttribute("content")||e.getAttribute("href")||e.textContent||"").trim();return n.length>80?n.slice(0,80)+"…":n||"presente"}const Ve=(e,t)=>{const n=t?.expects.metadata,o=[],r=e.location?.href,s=e.location?.host,i=e.querySelector('link[rel="canonical"]')?.getAttribute("href")||"",l=e.querySelector("title"),a=!!l&&!!l.textContent?.trim();o.push(h(w("metadata.title","<title>",a,z(n?.title),a?he(l):"Falta <title> o está vacío"),l?[{label:"<title>",snippet:E(l)}]:[])),o.push(L(e,"metadata.description","meta description",'meta[name="description"]',z(n?.description),"Falta <meta name=description>"));const c=e.querySelectorAll('meta[name="keywords"], meta[name="news_keywords"]');o.push(h(g("metadata.keywords","keywords / news_keywords",c.length?"ok":"info",c.length?\`\${c.length} tag(s)\`:"Sin keywords (opcional)"),O(e,'meta[name="keywords"], meta[name="news_keywords"]'))),o.push(L(e,"metadata.robots","meta robots",'meta[name="robots"]',z(n?.robots),"Sin meta robots (esperado solo en news/video)")),o.push(L(e,"metadata.canonical","link canonical",'link[rel="canonical"]',z(n?.canonical),"Falta <link rel=canonical>",m=>P(m.getAttribute("href"),{base:r,https:!0,sameHost:s})));const p=t?.expects.hreflang,d='link[rel="alternate"][hreflang]',u=e.querySelectorAll(d),x=Array.from(u).map(m=>m.getAttribute("hreflang")||""),C=p?.expected?p.langs.filter(m=>!x.includes(m)):[];o.push(h(w("metadata.hreflang","link alternate hreflang",u.length>0&&C.length===0,p?p.expected:null,p?.expected?C.length?\`Faltan hreflang: \${C.join(", ")}\`:\`\${u.length} hreflang (\${x.join(", ")})\`:u.length?\`\${u.length} hreflang (\${x.join(", ")})\`:"Sin hreflang (no esperado en esta ruta)"),O(e,d))),o.push(L(e,"metadata.og.title","og:title",'meta[property="og:title"]',z(n?.openGraph),"Falta og:title")),o.push(L(e,"metadata.og.image","og:image",'meta[property="og:image"]',z(n?.openGraph),"Falta og:image (sin imagen de preview al compartir)",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of Pe){if(m==="og:title"||m==="og:image")continue;const T="metadata."+m.replace(":","."),ae=m==="og:url"?le=>Je(le.getAttribute("content"),i,r):void 0;o.push(L(e,T,m,\`meta[property="\${m}"]\`,null,\`Sin \${m} (opcional)\`,ae))}const $=q(e,'meta[property^="og:"]');o.push(h(g("metadata.og.count","Tags og:* totales",$>0?"ok":"info",\`\${$} tag(s) og:*\`),O(e,'meta[property^="og:"]'))),o.push(L(e,"metadata.twitter.card","twitter:card",'meta[name="twitter:card"]',z(n?.twitter),"Falta twitter:card")),o.push(L(e,"metadata.twitter.image","twitter:image",'meta[name="twitter:image"]',z(n?.twitter),"Falta twitter:image",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of He){if(m==="twitter:card"||m==="twitter:image")continue;const T="metadata."+m.replace(":",".");o.push(L(e,T,m,\`meta[name="\${m}"]\`,null,\`Sin \${m} (opcional)\`))}const R=q(e,'meta[name^="twitter:"]');o.push(h(g("metadata.twitter.count","Tags twitter:* totales",R>0?"ok":"info",\`\${R} tag(s) twitter:*\`),O(e,'meta[name^="twitter:"]')));const j=q(e,'meta[property^="article:"]');o.push(h(w("metadata.article","article:* (published/modified/section/author/tag)",j>0,z(n?.article),j>0?\`\${j} tag(s) article:*\`:"Sin article:* (esperado solo en news)"),O(e,'meta[property^="article:"]'))),o.push(L(e,"metadata.rss","link alternate RSS",'link[rel="alternate"][type="application/rss+xml"]',z(n?.rss),"Sin alternate RSS (esperado solo en news)")),o.push(L(e,"metadata.manifest","link manifest",'link[rel="manifest"]',null,"Sin <link rel=manifest> (opcional)"));const k='link[rel="icon"], link[rel="apple-touch-icon"], link[rel="shortcut icon"], link[rel="mask-icon"]',A=q(e,k);return o.push(h(g("metadata.icons","favicons / icons",A?"ok":"info",A?\`\${A} icono(s)\`:"Sin favicons declarados"),O(e,k))),{key:"metadata",title:"Metadata",findings:o}};function Je(e,t,n){const o=P(e,{base:n,https:!0}),r=fe(e,n),s=fe(t,n);return r&&s&&r!==s&&o.push(M("warn",\`og:url no coincide con canonical (\${s})\`)),o}const Ke=(e,t)=>{const n=t?.expects.schemas,o=[];o.push(h(w("schemas.NewsMediaOrganization","NewsMediaOrganization (OrgList)",N(e,"script#WebsiteOrgListSchema")||U(e,"NewsMediaOrganization"),n?n.NewsMediaOrganization:!0,"Falta NewsMediaOrganization (se emite siempre)"),_(e,"NewsMediaOrganization"))),o.push(h(w("schemas.WebSite","WebSite (WebsiteList)",N(e,"script#WebsiteListSchema")||U(e,"WebSite"),n?n.WebSite:null,"Falta WebSite"),_(e,"WebSite")));{const a=h(w("schemas.NewsArticle","NewsArticle",U(e,"NewsArticle"),n?n.NewsArticle:null,"NewsArticle esperado pero AUSENTE (puede ser API vacía)"),_(e,"NewsArticle"));if(a.status==="ok"){const c=pe(e,"NewsArticle");c.length&&J(a,We(c[0],Be.NewsArticle))}o.push(a)}o.push(h(w("schemas.Videos","VideoObject",U(e,"VideoObject"),n?n.Videos:null,"VideoObject esperado pero AUSENTE"),_(e,"VideoObject"))),o.push(h(w("schemas.Autor","ProfilePage (Autor)",U(e,"ProfilePage"),n?n.Autor:null,"ProfilePage esperado pero AUSENTE"),_(e,"ProfilePage")));{const a=h(w("schemas.ItemList","ItemList",N(e,"script#webSiteItemListSchema")||U(e,"ItemList"),n?n.ItemList:null,"ItemList esperado pero AUSENTE (PuedeVacío)"),_(e,"ItemList"));if(a.status==="ok"){const c=pe(e,"ItemList"),p=c.reduce((d,u)=>d+Ge(u),0);a.detail=\`\${c.length} ItemList; \${p} entr\${p===1?"y":"ies"}\`,c.length&&p===0&&J(a,[M("warn","ItemList sin itemListElement (lista vacía)")])}o.push(a)}o.push(h(w("schemas.SoftwareApplication","SoftwareApplication",N(e,'script[id^="SoftwareApplicationSchema-"]')||U(e,"SoftwareApplication"),n?n.SoftwareApplication:null,"SoftwareApplication esperado pero AUSENTE"),_(e,"SoftwareApplication")));const r=e.querySelectorAll('script[type="application/ld+json"]');let s=0;r.forEach(a=>{if(a.textContent)try{JSON.parse(a.textContent)}catch{s++}});const i=Xe(e),l=i?\`; @graph: \${i} nodo(s)\`:"";return o.push(h(g("schemas.parsed","JSON-LD parseables",s?"warn":"ok",\`\${r.length} bloque(s); \${s} inválido(s)\${l}. Tipos: \${Qe(e)}\`),_e(e))),{key:"schemas",title:"Schemas JSON-LD",findings:o}};function Xe(e){let t=0;const n=o=>{if(!o||typeof o!="object")return;if(Array.isArray(o)){o.forEach(n);return}const r=o;Array.isArray(r["@graph"])&&(t+=r["@graph"].length,r["@graph"].forEach(n))};return F(e).forEach(n),t}function Qe(e){const t=new Set;return F(e).forEach(n=>{const o=n?.["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r))}),t.size?[...t].join(", "):"—"}const Ye=(e,t)=>{const n=t?.expects,o=e.querySelector('link[rel="amphtml"]');return{key:"amp",title:"AMP",findings:[h(w("amp.amphtml","link rel=amphtml",!!o,n?n.amp:null,o?\`href=\${o.getAttribute("href")||""}\`:"No hay AMP"),o?[{label:"link rel=amphtml",snippet:E(o)}]:[])]}};function H(e){return e.slice(0,8).map(t=>({label:t.getAttribute("src")||"(sin src)",snippet:E(t,300)}))}function me(e,t){const n=(e.getAttribute("src")||"").trim();if(!n||n.startsWith("data:"))return null;try{return new URL(n,t)}catch{return null}}const Ze=(e,t)=>{const n=Array.from(e.querySelectorAll("img")),o=[],r=e.location?.href;let s=null;if(t?.expects.assetsUrl)try{s=new URL(t.expects.assetsUrl).host}catch{s=null}o.push(g("images.count","<img> totales","info",\`\${n.length} imagen(es)\`));const i=n.filter(p=>!p.hasAttribute("alt"));o.push(h(g("images.alt","img sin atributo alt",i.length?"warn":"ok",i.length?\`\${i.length} <img> sin alt: \${Q(i)}\`:"Todas las <img> declaran alt"),H(i)));const l=n.filter(p=>p.getAttribute("loading")==="lazy").length;o.push(g("images.lazy","img loading=lazy","info",\`\${l}/\${n.length} lazy\`));const a=n.filter(p=>{const d=p.getAttribute("src");return d!==null&&d.trim()===""});o.push(h(g("images.emptySrc","img con src vacío",a.length?"warn":"ok",a.length?\`\${a.length} <img> con src=""\`:"Sin src vacíos"),H(a)));const c=n.filter(p=>me(p,r)?.protocol==="http:");if(o.push(h(g("images.insecure","img con src http (inseguro)",c.length?"warn":"ok",c.length?\`\${c.length} <img> en http: \${Q(c)}\`:"Sin imágenes http (mixed content)"),H(c))),s){const p=n.filter(d=>{const u=me(d,r);return!!u&&(u.protocol==="http:"||u.protocol==="https:")&&u.host!==s});o.push(h(g("images.offAssets",\`img fuera del dominio de assets (\${s})\`,"info",p.length?\`\${p.length} <img> en otro host: \${Q(p)}\`:"Todas las <img> absolutas vienen del dominio de assets"),H(p)))}return{key:"images",title:"Imágenes",findings:o}};function Q(e){return e.slice(0,5).map(t=>t.getAttribute("src")||"(sin src)").join(", ")}function Y(e,t){for(const n of t){const o=e.querySelector(n);if(o)return o}return null}function B(e,t){return e?[{label:t,snippet:E(e)}]:[]}const et=[Ie,Fe,Ve,Ke,Ye,(e,t)=>{const n=t?.expects,o=[],r=n?.assetsUrl;let s;r?s=Array.from(e.querySelectorAll('link[rel="preconnect"]')).some(c=>(c.getAttribute("href")||"").indexOf(r)===0):s=!!e.querySelector('link[rel="preconnect"]'),o.push(h(w("css.preconnectAssets","preconnect assets",s,n?n.preconnectAssets:null,"Falta <link rel=preconnect> a PUBLIC_ASSETS_URL"),O(e,'link[rel="preconnect"], link[rel="dns-prefetch"]'))),o.push(h(w("css.preloadImages","preload de imágenes",!!e.querySelector('link[rel="preload"][as="image"]'),n?n.preloadImages:null,"No hay preload de imágenes (preloadImages)"),O(e,'link[rel="preload"][as="image"]')));const i=!!e.querySelector('link[rel="preload"][as="font"]'),l=!!e.querySelector('link[href*="fonts.googleapis"], link[href*="fonts.gstatic"]'),a=n?.font;return a==="selfHosted"?o.push(w("css.font","Font self-hosted",i,!0,"Font self-hosted esperada pero sin <link as=font>")):a==="google"?o.push(w("css.font","Google Fonts",l,!0,"Google Fonts esperada pero ausente")):o.push(g("css.font","Fonts","info",i?"Font self-hosted presente":l?"Google Fonts presente":"Sin fuente configurada por el paquete")),o.push(h(g("css.stylesheets","<link rel=stylesheet> totales","info",\`\${q(e,'link[rel="stylesheet"]')} stylesheet(s) (los agrega el sitio)\`),O(e,'link[rel="stylesheet"]'))),{key:"cssImports",title:"CSS / preconnect / fonts",findings:o}},Ze,(e,t)=>{const n=t?.expects.analytics,o=[],r=Y(e,["script#googleanalytics",'script[src*="gtag/js"]']);o.push(h(w("content.ga4","GA4",!!r,n?n.ga4:null,"GA4 no configurado"),B(r,"GA4")));const s=Y(e,["script#GTM",'script[src*="googletagmanager.com/gtm.js"]','iframe[src*="googletagmanager.com/ns.html"]']);o.push(h(w("content.gtm","Google Tag Manager",!!s,n?n.gtm:null,"GTM no configurado"),B(s,"GTM")));const i=Y(e,["script#comscore",'script[src*="scorecardresearch"]']);o.push(h(w("content.comscore","Comscore",!!i,n?n.comscore:null,"Comscore no configurado"),B(i,"Comscore")));const l=e.querySelector('script[src*="marfeel"]')||Array.from(e.querySelectorAll("script")).find(u=>(u.textContent||"").includes("marfeel"))||null;o.push(h(w("content.marfeel","Marfeel",!!l,n?n.marfeel:null,"Marfeel no configurado"),B(l,"Marfeel")));const c=Array.from(e.querySelectorAll("h1,h2,h3,h4,h5,h6")).filter(u=>!(u.textContent||"").trim());o.push(h(g("content.emptyHeadings","Headings vacíos",c.length?"warn":"ok",c.length?\`\${c.length} heading(s) sin texto\`:"Sin headings vacíos"),c.slice(0,8).map(u=>({label:u.tagName.toLowerCase(),snippet:E(u,200)}))));const p=Array.from(e.querySelectorAll("a")),d=p.filter(u=>{const x=u.getAttribute("href");return x===null||x.trim()===""||x.trim()==="#"});return o.push(h(g("content.links","Links sin destino",d.length?"warn":"ok",\`\${p.length} link(s); \${d.length} sin href válido\`),d.slice(0,8).map(u=>({label:(u.textContent||"").trim().slice(0,40)||"(sin texto)",snippet:E(u,200)})))),{key:"content",title:"Contenido",findings:o}}];function ge(e,t){const n=et.map(r=>r(e,t)),o={ok:0,missing:0,warn:0,info:0};for(const r of n)for(const s of r.findings)o[s.status]++;return{route:t?t.route:null,hasManifest:!!t,totals:o,categories:n,blindSpots:t?t.blindSpots||[]:[]}}const tt=\`
28
28
  /* all: initial corta toda herencia del host; los resets explícitos de abajo pinean la
29
29
  base tipográfica para no depender del font-size/zoom de la página contenedora. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.9.238",
3
+ "version": "0.9.239",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"