sass-template-common 0.16.4 → 0.16.6

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.
@@ -4,7 +4,7 @@ Migrar cada slot listado a un valor explícito en tu imageSizes.ts (REFACTOR_IMG
4
4
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const n=new this(t);return a.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[Fr]=this[Fr]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=Yt(i);n[l]||(Jd(r,i),n[l]=!0)}return T.isArray(t)?t.forEach(o):o(t),this}};Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(Ce.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[a]=n}}}),T.freezeMethods(Ce);function Ga(e,t){const a=this||Wt,n=t||a,r=Ce.from(n.headers);let o=n.data;return T.forEach(e,function(l){o=l.call(a,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function jr(e){return!!(e&&e.__CANCEL__)}function It(e,t,a){ee.call(this,e??"canceled",ee.ERR_CANCELED,t,a),this.name="CanceledError"}T.inherits(It,ee,{__CANCEL__:!0});function Hr(e,t,a){const n=a.config.validateStatus;!a.status||!n||n(a.status)?e(a):t(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 Zd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xd(e,t){e=e||10;const a=new Array(e),n=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=n[o];i||(i=d),a[r]=c,n[r]=d;let h=o,f=0;for(;h!==r;)f+=a[h++],h=h%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),d-i<t)return;const p=u&&d-u;return p?Math.round(f*1e3/p):void 0}}function Rd(e,t){let a=0,n=1e3/t,r,o;const i=(d,u=Date.now())=>{a=u,r=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const u=Date.now(),h=u-a;h>=n?i(d,u):(r=d,o||(o=setTimeout(()=>{o=null,i(r)},n-h)))},()=>r&&i(r)]}const ks=(e,t,a=3)=>{let n=0;const r=Xd(50,250);return Rd(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-n,d=r(c),u=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-i)/d:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},a)},Vr=(e,t)=>{const a=e!=null;return[n=>t[0]({lengthComputable:a,total:e,loaded:n}),t[1]]},zr=e=>(...t)=>T.asap(()=>e(...t)),eu=me.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,me.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,tu=me.hasStandardBrowserEnv?{write(e,t,a,n,r,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];T.isNumber(a)&&l.push(`expires=${new Date(a).toUTCString()}`),T.isString(n)&&l.push(`path=${n}`),T.isString(r)&&l.push(`domain=${r}`),o===!0&&l.push("secure"),T.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function su(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function au(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $r(e,t,a){let n=!su(t);return e&&(n||a==!1)?au(e,t):t}const Qr=e=>e instanceof Ce?{...e}:e;function ct(e,t){t=t||{};const a={};function n(d,u,h,f){return T.isPlainObject(d)&&T.isPlainObject(u)?T.merge.call({caseless:f},d,u):T.isPlainObject(u)?T.merge({},u):T.isArray(u)?u.slice():u}function r(d,u,h,f){if(T.isUndefined(u)){if(!T.isUndefined(d))return n(void 0,d,h,f)}else return n(d,u,h,f)}function o(d,u){if(!T.isUndefined(u))return n(void 0,u)}function i(d,u){if(T.isUndefined(u)){if(!T.isUndefined(d))return n(void 0,d)}else return n(void 0,u)}function l(d,u,h){if(h in t)return n(d,u);if(h 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,u,h)=>r(Qr(d),Qr(u),h,!0)};return T.forEach(Object.keys({...e,...t}),function(u){const h=c[u]||r,f=h(e[u],t[u],u);T.isUndefined(f)&&h!==l||(a[u]=f)}),a}const Wr=e=>{const t=ct({},e);let{data:a,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;if(t.headers=i=Ce.from(i),t.url=_r($r(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),T.isFormData(a)){if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(T.isFunction(a.getHeaders)){const c=a.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([u,h])=>{d.includes(u.toLowerCase())&&i.set(u,h)})}}if(me.hasStandardBrowserEnv&&(n&&T.isFunction(n)&&(n=n(t)),n||n!==!1&&eu(t.url))){const c=r&&o&&tu.read(o);c&&i.set(r,c)}return t},nu=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,n){const r=Wr(e);let o=r.data;const i=Ce.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=r,u,h,f,p,m;function g(){p&&p(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function w(){if(!b)return;const S=Ce.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:e,request:b};Hr(function(x){a(x),g()},function(x){n(x),g()},y),b=null}"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(w)},b.onabort=function(){b&&(n(new ee("Request aborted",ee.ECONNABORTED,e,b)),b=null)},b.onerror=function(v){const y=v&&v.message?v.message:"Network Error",N=new ee(y,ee.ERR_NETWORK,e,b);N.event=v||null,n(N),b=null},b.ontimeout=function(){let v=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const y=r.transitional||qr;r.timeoutErrorMessage&&(v=r.timeoutErrorMessage),n(new ee(v,y.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,b)),b=null},o===void 0&&i.setContentType(null),"setRequestHeader"in b&&T.forEach(i.toJSON(),function(v,y){b.setRequestHeader(y,v)}),T.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),l&&l!=="json"&&(b.responseType=r.responseType),d&&([f,m]=ks(d,!0),b.addEventListener("progress",f)),c&&b.upload&&([h,p]=ks(c),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(u=S=>{b&&(n(!S||S.type?new It(null,e,b):S),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const C=Zd(r.url);if(C&&me.protocols.indexOf(C)===-1){n(new ee("Unsupported protocol "+C+":",ee.ERR_BAD_REQUEST,e));return}b.send(o||null)})},ru=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let n=new AbortController,r;const o=function(d){if(!r){r=!0,l();const u=d instanceof Error?d:this.reason;n.abort(u instanceof ee?u:new It(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new ee(`timeout ${t} of ms exceeded`,ee.ETIMEDOUT))},t);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=()=>T.asap(l),c}},ou=function*(e,t){let a=e.byteLength;if(a<t){yield e;return}let n=0,r;for(;n<a;)r=n+t,yield e.slice(n,r),n=r},iu=async function*(e,t){for await(const a of lu(e))yield*ou(a,t)},lu=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:n}=await t.read();if(a)break;yield n}}finally{await t.cancel()}},Yr=(e,t,a,n)=>{const r=iu(e,t);let o=0,i,l=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await r.next();if(d){l(),c.close();return}let h=u.byteLength;if(a){let f=o+=h;a(f)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},Kr=64*1024,{isFunction:Is}=T,cu=(({Request:e,Response:t})=>({Request:e,Response:t}))(T.global),{ReadableStream:Jr,TextEncoder:Zr}=T.global,Xr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},du=e=>{e=T.merge.call({skipUndefined:!0},cu,e);const{fetch:t,Request:a,Response:n}=e,r=t?Is(t):typeof fetch=="function",o=Is(a),i=Is(n);if(!r)return!1;const l=r&&Is(Jr),c=r&&(typeof Zr=="function"?(m=>g=>m.encode(g))(new Zr):async m=>new Uint8Array(await new a(m).arrayBuffer())),d=o&&l&&Xr(()=>{let m=!1;const g=new a(me.origin,{body:new Jr,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!g}),u=i&&l&&Xr(()=>T.isReadableStream(new n("").body)),h={stream:u&&(m=>m.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!h[m]&&(h[m]=(g,b)=>{let w=g&&g[m];if(w)return w.call(g);throw new ee(`Response type '${m}' is not supported`,ee.ERR_NOT_SUPPORT,b)})});const f=async m=>{if(m==null)return 0;if(T.isBlob(m))return m.size;if(T.isSpecCompliantForm(m))return(await new a(me.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(T.isArrayBufferView(m)||T.isArrayBuffer(m))return m.byteLength;if(T.isURLSearchParams(m)&&(m=m+""),T.isString(m))return(await c(m)).byteLength},p=async(m,g)=>{const b=T.toFiniteNumber(m.getContentLength());return b??f(g)};return async m=>{let{url:g,method:b,data:w,signal:C,cancelToken:S,timeout:v,onDownloadProgress:y,onUploadProgress:N,responseType:x,headers:O,withCredentials:$="same-origin",fetchOptions:q}=Wr(m),B=t||fetch;x=x?(x+"").toLowerCase():"text";let G=ru([C,S&&S.toAbortSignal()],v),z=null;const _=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let U;try{if(N&&d&&b!=="get"&&b!=="head"&&(U=await p(O,w))!==0){let I=new a(g,{method:"POST",body:w,duplex:"half"}),F;if(T.isFormData(w)&&(F=I.headers.get("content-type"))&&O.setContentType(F),I.body){const[Q,V]=Vr(U,ks(zr(N)));w=Yr(I.body,Kr,Q,V)}}T.isString($)||($=$?"include":"omit");const P=o&&"credentials"in a.prototype,H={...q,signal:G,method:b.toUpperCase(),headers:O.normalize().toJSON(),body:w,duplex:"half",credentials:P?$:void 0};z=o&&new a(g,H);let D=await(o?B(z,q):B(g,H));const Y=u&&(x==="stream"||x==="response");if(u&&(y||Y&&_)){const I={};["status","statusText","headers"].forEach(W=>{I[W]=D[W]});const F=T.toFiniteNumber(D.headers.get("content-length")),[Q,V]=y&&Vr(F,ks(zr(y),!0))||[];D=new n(Yr(D.body,Kr,Q,()=>{V&&V(),_&&_()}),I)}x=x||"text";let E=await h[T.findKey(h,x)||"text"](D,m);return!Y&&_&&_(),await new Promise((I,F)=>{Hr(I,F,{data:E,headers:Ce.from(D.headers),status:D.status,statusText:D.statusText,config:m,request:z})})}catch(P){throw _&&_(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,m,z),{cause:P.cause||P}):ee.from(P,P&&P.code,m,z)}}},uu=new Map,Rr=e=>{let t=e&&e.env||{};const{fetch:a,Request:n,Response:r}=t,o=[n,r,a];let i=o.length,l=i,c,d,u=uu;for(;l--;)c=o[l],d=u.get(c),d===void 0&&u.set(c,d=l?new Map:du(t)),u=d;return d};Rr();const Fa={http:Od,xhr:nu,fetch:{get:Rr}};T.forEach(Fa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eo=e=>`- ${e}`,hu=e=>T.isFunction(e)||e===null||e===!1;function fu(e,t){e=T.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,!hu(n)&&(r=Fa[(l=String(n)).toLowerCase()],r===void 0))throw new ee(`Unknown adapter '${l}'`);if(r&&(T.isFunction(r)||(r=r.get(t))))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 :
5
5
  `+i.map(eo).join(`
6
6
  `):" "+eo(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 to={getAdapter:fu,adapters:Fa};function ja(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new It(null,e)}function so(e){return ja(e),e.headers=Ce.from(e.headers),e.data=Ga.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),to.getAdapter(e.adapter||Wt.adapter,e)(e).then(function(n){return ja(e),n.data=Ga.call(e,e.transformResponse,n),n.headers=Ce.from(n.headers),n},function(n){return jr(n)||(ja(e),n&&n.response&&(n.response.data=Ga.call(e,e.transformResponse,n.response),n.response.headers=Ce.from(n.response.headers))),Promise.reject(n)})}const ao="1.13.2",Ls={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ls[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const no={};Ls.transitional=function(t,a,n){function r(o,i){return"[Axios v"+ao+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,l)=>{if(t===!1)throw new ee(r(i," has been removed"+(a?" in "+a:"")),ee.ERR_DEPRECATED);return a&&!no[i]&&(no[i]=!0,console.warn(r(i," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(o,i,l):!0}},Ls.spelling=function(t){return(a,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function mu(e,t,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=t[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 Ps={assertOptions:mu,validators:Ls},_e=Ps.validators;let dt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dr,response:new Dr}}async request(t,a){try{return await this._request(t,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+=`
7
- `+o):n.stack=o}catch{}}throw n}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=ct(this.defaults,a);const{transitional:n,paramsSerializer:r,headers:o}=a;n!==void 0&&Ps.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),r!=null&&(T.isFunction(r)?a.paramsSerializer={serialize:r}:Ps.assertOptions(r,{encode:_e.function,serialize:_e.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Ps.assertOptions(a,{baseUrl:_e.spelling("baseURL"),withXsrfToken:_e.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=o&&T.merge(o.common,o[a.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),a.headers=Ce.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(a)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,h=0,f;if(!c){const m=[so.bind(this),void 0];for(m.unshift(...l),m.push(...d),f=m.length,u=Promise.resolve(a);h<f;)u=u.then(m[h++],m[h++]);return u}f=l.length;let p=a;for(;h<f;){const m=l[h++],g=l[h++];try{p=m(p)}catch(b){g.call(this,b);break}}try{u=so.call(this,p)}catch(m){return Promise.reject(m)}for(h=0,f=d.length;h<f;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=ct(this.defaults,t);const a=$r(t.baseURL,t.url,t.allowAbsoluteUrls);return _r(a,t.params,t.paramsSerializer)}};T.forEach(["delete","get","head","options"],function(t){dt.prototype[t]=function(a,n){return this.request(ct(n||{},{method:t,url:a,data:(n||{}).data}))}}),T.forEach(["post","put","patch"],function(t){function a(n){return function(o,i,l){return this.request(ct(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}dt.prototype[t]=a(),dt.prototype[t+"Form"]=a(!0)});let pu=class Hl{constructor(t){if(typeof t!="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},t(function(o,i,l){n.reason||(n.reason=new It(o,i,l),a(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=n=>{t.abort(n)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new Hl(function(r){t=r}),cancel:t}}};function gu(e){return function(a){return e.apply(null,a)}}function bu(e){return T.isObject(e)&&e.isAxiosError===!0}const Ha={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(Ha).forEach(([e,t])=>{Ha[t]=e});function ro(e){const t=new dt(e),a=Cr(dt.prototype.request,t);return T.extend(a,dt.prototype,t,{allOwnKeys:!0}),T.extend(a,t,null,{allOwnKeys:!0}),a.create=function(r){return ro(ct(e,r))},a}const re=ro(Wt);re.Axios=dt,re.CanceledError=It,re.CancelToken=pu,re.isCancel=jr,re.VERSION=ao,re.toFormData=Ts,re.AxiosError=ee,re.Cancel=re.CanceledError,re.all=function(t){return Promise.all(t)},re.spread=gu,re.isAxiosError=bu,re.mergeConfig=ct,re.AxiosHeaders=Ce,re.formToJSON=e=>Gr(T.isHTMLForm(e)?new FormData(e):e),re.getAdapter=to.getAdapter,re.HttpStatusCode=Ha,re.default=re;const{Axios:ng,AxiosError:rg,CanceledError:og,isCancel:ig,CancelToken:lg,VERSION:cg,all:dg,Cancel:ug,isAxiosError:hg,spread:fg,toFormData:mg,AxiosHeaders:pg,HttpStatusCode:gg,formToJSON:bg,getAdapter:wg,mergeConfig:Ag}=re,wu=45e3,Ie=new Map,oo=new Map;function io(e,t,a){if(a===void 0){Ie.get(e)?.generation===t&&Ie.delete(e);return}Ie.set(e,{expiresAt:0,generation:t,lastGood:a})}let Ke=null;function Au(){if(Ke!==null)return Ke;if(!globalThis.process?.versions?.node)return Ke={},Ke;try{const t=globalThis.require;if(!t)return Ke={},Ke;const a=t("node:http"),n=t("node:https");Ke={httpAgent:new a.Agent({keepAlive:!0,keepAliveMsecs:1e3,maxSockets:50}),httpsAgent:new n.Agent({keepAlive:!0,keepAliveMsecs:1e3,maxSockets:50})}}catch{Ke={}}return Ke}function Lt(e,t){const a=e.replace(/\/+$/,""),n=oo.get(a);if(n)return n;const r=re.create({...Au(),headers:{Referer:t}});return oo.set(a,r),r}function lo(){const e=L(),t=e.BUCKET_ORIGIN?.cacheTtlMs??e.CONFIG_configCacheTtlMs??wu;return t<=0?0:t}async function co(e,t){const a=Va(e),n=performance.now();try{const r=await t();return ft({...a,outcome:"network",durationMs:performance.now()-n,ok:!0}),r}catch(r){throw ft({...a,outcome:"network",durationMs:performance.now()-n,ok:!1}),r}}function ut(e,t,a={}){const n=Va(e),r=typeof a=="number"?a:a.ttlMs??lo(),o=typeof a=="number"?void 0:a.shouldCache,i=typeof a=="number"?!1:!!a.staleOnError;if(r<=0)return co(e,t);const l=Date.now(),c=Ie.get(e);if(c?.value!==void 0&&c.expiresAt>l)return ft({...n,outcome:"cache-hit",durationMs:0}),Promise.resolve(c.value);if(c?.promise){if(c.expiresAt>l)return ft({...n,outcome:"dedup",durationMs:0}),c.promise;Ie.set(e,{expiresAt:0,generation:c.generation,lastGood:c.lastGood})}const d=Ie.get(e),u=d?.lastGood,h=(d?.generation??0)+1,f=co(e,t).then(p=>{const m=Ie.get(e);return m?.generation!==h?p:o&&!o(p)?(m?.generation===h&&io(e,h,u),i&&u!==void 0?(ft({...n,outcome:"stale",durationMs:0,ok:!1}),u):p):(Ie.set(e,{expiresAt:Date.now()+r,generation:h,value:p,lastGood:p}),p)}).catch(p=>(Ie.get(e)?.generation===h&&io(e,h,u),i&&u!==void 0?(ft({...n,outcome:"stale",durationMs:0,ok:!1}),u):Promise.reject(p)));return Ie.set(e,{expiresAt:l+r,generation:h,promise:f,lastGood:u}),f}function yu(e){e?Ie.delete(e):Ie.clear()}function Kt(e,t){ge.add({service:`bucket:${e}`,endpoint:t,method:"GET",message:"BUCKET_ORIGIN es el método único para este sitio: agotó los reintentos, NO se cae al CMS. El recurso se sirve VACÍO.",layer:"axios-service"})}const ht="https://goamg.amplifyapp.com/vndomv",Cu={menu:"menu-principal"};function Us(e){const a=((e??"").split("/").pop()??"").replace(/\.html?$/i,"");return Cu[a]??a}function Je(e,t,a,n,r=!1){const o=(t??"").replace(/^\/+|\/+$/g,""),i=e.forceSite||o||e.clientName,l=(e.proxyUrl??e.url).replace(/\/+$/,""),c=r?`offline/${n}.json`:`${n}.json`;return`${l}/${e.clientName}/${i}/${a}/${n}/${c}`}function Jt(e,t,a){return`${e.startsWith("/")?e:e?`/${e}`:""}/${t}/${a}`.replace(/\/+/g,"/")}const vu=3,Su=300*1e3;let Zt=null;function Nu(e,t){if(!e.length)return 0;const a=[...e].sort((n,r)=>n-r);return a[Math.floor(a.length*t)]??a[a.length-1]}function Eu(e,t,a,n){const r=e.length?e.reduce((o,i)=>o+i,0)/e.length:0;return{ok:t,status:a,size:n,avg:r,p50:Nu(e,.5),min:e[0]??0,max:e[e.length-1]??0}}async function Os(e,t){const a=[];let n=0,r=0,o=!1;for(let i=0;i<t;i++){const l=performance.now();try{const c=await e();a.push(performance.now()-l),n=c.status,r=c.size,o=c.status>=200&&c.status<300}catch{a.push(performance.now()-l),o=!1}}return a.sort((i,l)=>i-l),Eu(a,o,n,r)}function uo(e){const t=`[config-origin] ── comparativo API vs Bucket (${e.runs} runs${e.cached?", cache":""}) ──`,a=(r,o)=>r.padEnd(o),n=[t,`${a("Recurso",22)} ${a("API (avg/p50)",18)} ${a("Bucket (avg/p50)",18)} Ganador`];for(const r of e.rows){const o=`${r.api.avg.toFixed(0)}ms / ${r.api.p50.toFixed(0)}ms`,i=`${r.bucket.avg.toFixed(0)}ms / ${r.bucket.p50.toFixed(0)}ms`,l=`${r.winner.toUpperCase()} (~${r.advantagePct.toFixed(0)}%)`;n.push(`${a(r.name,22)} ${a(o,18)} ${a(i,18)} ${l}`)}return n.push(`Home paralelo (4 menus + 1 banner): API ${e.homeParallel.api.toFixed(0)}ms | Bucket ${e.homeParallel.bucket.toFixed(0)}ms`),n.push("────────────────────────────────────────────────────────────"),n.join(`
7
+ `+o):n.stack=o}catch{}}throw n}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=ct(this.defaults,a);const{transitional:n,paramsSerializer:r,headers:o}=a;n!==void 0&&Ps.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),r!=null&&(T.isFunction(r)?a.paramsSerializer={serialize:r}:Ps.assertOptions(r,{encode:_e.function,serialize:_e.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Ps.assertOptions(a,{baseUrl:_e.spelling("baseURL"),withXsrfToken:_e.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=o&&T.merge(o.common,o[a.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),a.headers=Ce.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(a)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,h=0,f;if(!c){const m=[so.bind(this),void 0];for(m.unshift(...l),m.push(...d),f=m.length,u=Promise.resolve(a);h<f;)u=u.then(m[h++],m[h++]);return u}f=l.length;let p=a;for(;h<f;){const m=l[h++],g=l[h++];try{p=m(p)}catch(b){g.call(this,b);break}}try{u=so.call(this,p)}catch(m){return Promise.reject(m)}for(h=0,f=d.length;h<f;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=ct(this.defaults,t);const a=$r(t.baseURL,t.url,t.allowAbsoluteUrls);return _r(a,t.params,t.paramsSerializer)}};T.forEach(["delete","get","head","options"],function(t){dt.prototype[t]=function(a,n){return this.request(ct(n||{},{method:t,url:a,data:(n||{}).data}))}}),T.forEach(["post","put","patch"],function(t){function a(n){return function(o,i,l){return this.request(ct(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}dt.prototype[t]=a(),dt.prototype[t+"Form"]=a(!0)});let pu=class Hl{constructor(t){if(typeof t!="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},t(function(o,i,l){n.reason||(n.reason=new It(o,i,l),a(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=n=>{t.abort(n)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new Hl(function(r){t=r}),cancel:t}}};function gu(e){return function(a){return e.apply(null,a)}}function bu(e){return T.isObject(e)&&e.isAxiosError===!0}const Ha={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(Ha).forEach(([e,t])=>{Ha[t]=e});function ro(e){const t=new dt(e),a=Cr(dt.prototype.request,t);return T.extend(a,dt.prototype,t,{allOwnKeys:!0}),T.extend(a,t,null,{allOwnKeys:!0}),a.create=function(r){return ro(ct(e,r))},a}const re=ro(Wt);re.Axios=dt,re.CanceledError=It,re.CancelToken=pu,re.isCancel=jr,re.VERSION=ao,re.toFormData=Ts,re.AxiosError=ee,re.Cancel=re.CanceledError,re.all=function(t){return Promise.all(t)},re.spread=gu,re.isAxiosError=bu,re.mergeConfig=ct,re.AxiosHeaders=Ce,re.formToJSON=e=>Gr(T.isHTMLForm(e)?new FormData(e):e),re.getAdapter=to.getAdapter,re.HttpStatusCode=Ha,re.default=re;const{Axios:rg,AxiosError:og,CanceledError:ig,isCancel:lg,CancelToken:cg,VERSION:dg,all:ug,Cancel:hg,isAxiosError:fg,spread:mg,toFormData:pg,AxiosHeaders:gg,HttpStatusCode:bg,formToJSON:wg,getAdapter:Ag,mergeConfig:yg}=re,wu=45e3,Ie=new Map,oo=new Map;function io(e,t,a){if(a===void 0){Ie.get(e)?.generation===t&&Ie.delete(e);return}Ie.set(e,{expiresAt:0,generation:t,lastGood:a})}let Ke=null;function Au(){if(Ke!==null)return Ke;if(!globalThis.process?.versions?.node)return Ke={},Ke;try{const t=globalThis.require;if(!t)return Ke={},Ke;const a=t("node:http"),n=t("node:https");Ke={httpAgent:new a.Agent({keepAlive:!0,keepAliveMsecs:1e3,maxSockets:50}),httpsAgent:new n.Agent({keepAlive:!0,keepAliveMsecs:1e3,maxSockets:50})}}catch{Ke={}}return Ke}function Lt(e,t){const a=e.replace(/\/+$/,""),n=oo.get(a);if(n)return n;const r=re.create({...Au(),headers:{Referer:t}});return oo.set(a,r),r}function lo(){const e=L(),t=e.BUCKET_ORIGIN?.cacheTtlMs??e.CONFIG_configCacheTtlMs??wu;return t<=0?0:t}async function co(e,t){const a=Va(e),n=performance.now();try{const r=await t();return ft({...a,outcome:"network",durationMs:performance.now()-n,ok:!0}),r}catch(r){throw ft({...a,outcome:"network",durationMs:performance.now()-n,ok:!1}),r}}function ut(e,t,a={}){const n=Va(e),r=typeof a=="number"?a:a.ttlMs??lo(),o=typeof a=="number"?void 0:a.shouldCache,i=typeof a=="number"?!1:!!a.staleOnError;if(r<=0)return co(e,t);const l=Date.now(),c=Ie.get(e);if(c?.value!==void 0&&c.expiresAt>l)return ft({...n,outcome:"cache-hit",durationMs:0}),Promise.resolve(c.value);if(c?.promise){if(c.expiresAt>l)return ft({...n,outcome:"dedup",durationMs:0}),c.promise;Ie.set(e,{expiresAt:0,generation:c.generation,lastGood:c.lastGood})}const d=Ie.get(e),u=d?.lastGood,h=(d?.generation??0)+1,f=co(e,t).then(p=>{const m=Ie.get(e);return m?.generation!==h?p:o&&!o(p)?(m?.generation===h&&io(e,h,u),i&&u!==void 0?(ft({...n,outcome:"stale",durationMs:0,ok:!1}),u):p):(Ie.set(e,{expiresAt:Date.now()+r,generation:h,value:p,lastGood:p}),p)}).catch(p=>(Ie.get(e)?.generation===h&&io(e,h,u),i&&u!==void 0?(ft({...n,outcome:"stale",durationMs:0,ok:!1}),u):Promise.reject(p)));return Ie.set(e,{expiresAt:l+r,generation:h,promise:f,lastGood:u}),f}function yu(e){e?Ie.delete(e):Ie.clear()}function Kt(e,t){ge.add({service:`bucket:${e}`,endpoint:t,method:"GET",message:"BUCKET_ORIGIN es el método único para este sitio: agotó los reintentos, NO se cae al CMS. El recurso se sirve VACÍO.",layer:"axios-service"})}const ht="https://goamg.amplifyapp.com/vndomv",Cu={menu:"menu-principal"};function Us(e){const a=((e??"").split("/").pop()??"").replace(/\.html?$/i,"");return Cu[a]??a}function Je(e,t,a,n,r=!1){const o=(t??"").replace(/^\/+|\/+$/g,""),i=e.forceSite||o||e.clientName,l=(e.proxyUrl??e.url).replace(/\/+$/,""),c=r?`offline/${n}.json`:`${n}.json`;return`${l}/${e.clientName}/${i}/${a}/${n}/${c}`}function Jt(e,t,a){return`${e.startsWith("/")?e:e?`/${e}`:""}/${t}/${a}`.replace(/\/+/g,"/")}const vu=3,Su=300*1e3;let Zt=null;function Nu(e,t){if(!e.length)return 0;const a=[...e].sort((n,r)=>n-r);return a[Math.floor(a.length*t)]??a[a.length-1]}function Eu(e,t,a,n){const r=e.length?e.reduce((o,i)=>o+i,0)/e.length:0;return{ok:t,status:a,size:n,avg:r,p50:Nu(e,.5),min:e[0]??0,max:e[e.length-1]??0}}async function Os(e,t){const a=[];let n=0,r=0,o=!1;for(let i=0;i<t;i++){const l=performance.now();try{const c=await e();a.push(performance.now()-l),n=c.status,r=c.size,o=c.status>=200&&c.status<300}catch{a.push(performance.now()-l),o=!1}}return a.sort((i,l)=>i-l),Eu(a,o,n,r)}function uo(e){const t=`[config-origin] ── comparativo API vs Bucket (${e.runs} runs${e.cached?", cache":""}) ──`,a=(r,o)=>r.padEnd(o),n=[t,`${a("Recurso",22)} ${a("API (avg/p50)",18)} ${a("Bucket (avg/p50)",18)} Ganador`];for(const r of e.rows){const o=`${r.api.avg.toFixed(0)}ms / ${r.api.p50.toFixed(0)}ms`,i=`${r.bucket.avg.toFixed(0)}ms / ${r.bucket.p50.toFixed(0)}ms`,l=`${r.winner.toUpperCase()} (~${r.advantagePct.toFixed(0)}%)`;n.push(`${a(r.name,22)} ${a(o,18)} ${a(i,18)} ${l}`)}return n.push(`Home paralelo (4 menus + 1 banner): API ${e.homeParallel.api.toFixed(0)}ms | Bucket ${e.homeParallel.bucket.toFixed(0)}ms`),n.push("────────────────────────────────────────────────────────────"),n.join(`
8
8
  `)}async function Tu(e){if(!Bs())return null;const t=Date.now();if(Zt&&Zt.expiresAt>t)return{...Zt.report,cached:!0};const a=L().BUCKET_ORIGIN;if(!a?.url||!a.clientName)return null;const n=e.runs??vu,r=a.referer??ht,o=Lt(a.proxyUrl??a.url,r),i=[{name:"menu (menu.html)",kind:"menu",menuFile:"menu.html"},{name:"menu (footer.html)",kind:"menu",menuFile:"footer.html"},{name:"banners Home",kind:"banners",bannerTemplate:"Home"},{name:"banners Seccion",kind:"banners",bannerTemplate:"Seccion"},{name:"banners Nota",kind:"banners",bannerTemplate:"Nota"}],l=[];for(const p of i){let m,g;if(p.kind==="menu"&&p.menuFile){const S=Jt(e.servicePrefix,e.configVersion,p.menuFile),v=Us(S),y=Je(a,e.servicePrefix,"menu",v);m=await Os(async()=>{const N=await e.axiosApi.get("/config/menu",{params:{path:S}}),x=JSON.stringify(N.data??"").length;return{status:N.status,size:x}},n),g=await Os(async()=>{const N=await o.get(y),x=JSON.stringify(N.data??"").length;return{status:N.status,size:x}},n)}else if(p.bannerTemplate){const S=Jt(e.servicePrefix,e.configVersion,"banners.html"),v=p.bannerTemplate.toLowerCase(),y=Je(a,e.servicePrefix,"banners",v);m=await Os(async()=>{const N=await e.axiosApi.get("/config/banners",{params:{path:S,template:p.bannerTemplate}}),x=JSON.stringify(N.data??"").length;return{status:N.status,size:x}},n),g=await Os(async()=>{const N=await o.get(y),x=JSON.stringify(N.data??"").length;return{status:N.status,size:x}},n)}else continue;const b=m.avg-g.avg,w=b>0?"bucket":"api",C=Math.abs(b)/Math.max(m.avg,g.avg,1)*100;l.push({name:p.name,api:m,bucket:g,winner:w,advantagePct:C,deltaMs:b})}const c=a,d=["sidebar.html","menu.html","footer.html","pages.html"];async function u(p){const m=performance.now();return await Promise.all([...d.map(async g=>{const b=Jt(e.servicePrefix,e.configVersion,g);if(p==="api")(await e.axiosApi.get("/config/menu",{params:{path:b}})).data;else{const w=Us(b),C=Je(c,e.servicePrefix,"menu",w);(await o.get(C)).data}}),(async()=>{const g=Jt(e.servicePrefix,e.configVersion,"banners.html");if(p==="api")(await e.axiosApi.get("/config/banners",{params:{path:g,template:"Home"}})).data;else{const b=Je(c,e.servicePrefix,"banners","home");(await o.get(b)).data}})()]),performance.now()-m}const h={api:await u("api"),bucket:await u("bucket")},f={runs:n,rows:l,homeParallel:h,generatedAt:new Date().toISOString(),cached:!1};return Zt={expiresAt:t+Su,report:f},f}function xu(){Zt=null}const Xt=[];function Bs(){return L().HTML_AUDIT===!0}function Va(e){const[,t,a,...n]=e.split(":");return{kind:t==="banners"?"banners":"menu",origin:a==="bucket"?"bucket":"api",target:n.join(":")}}function ho(e){const t=e.outcome==="network"?` ${e.durationMs.toFixed(0)}ms`:"",a=e.outcome==="network"&&e.ok===!1?" FAIL":"";return`[config-origin] ${e.outcome.toUpperCase()} ${e.origin} ${e.kind}${t}${a} → ${e.target}`}function ku(){const e={network:0,cacheHit:0,dedup:0,stale:0,api:0,bucket:0,networkMs:0};for(const t of Xt)t.origin==="api"?e.api++:e.bucket++,t.outcome==="network"?(e.network++,e.networkMs+=t.durationMs):t.outcome==="cache-hit"?e.cacheHit++:t.outcome==="dedup"?e.dedup++:t.outcome==="stale"&&e.stale++;return{entries:[...Xt],totals:e}}function Iu(e){const{totals:t,entries:a,comparison:n}=e,r=[];if(a.length){const o=t.network>0?(t.networkMs/t.network).toFixed(0):"0";r.push("[config-origin] ── sesión ──",` entries: ${a.length} | network: ${t.network} (avg ${o}ms) | cache-hit: ${t.cacheHit} | dedup: ${t.dedup} | stale: ${t.stale}`,` origen: api=${t.api} bucket=${t.bucket}`,...a.map(i=>` · ${ho(i).replace("[config-origin] ","")}`))}return n?.rows.length&&r.push(uo(n)),r.length?(r.push("────────────────────────────"),r.join(`
9
9
  `)):"[config-origin] (sin fetches de menú/banners)"}function ft(e){Bs()&&(Xt.push(e),console.log(ho(e)))}function fo(e){return{...ku(),comparison:e??null}}function Lu(e){if(!Bs())return null;const t=fo(e);return(t.entries.length>0||t.comparison?.rows.length)&&console.log(Iu(t)),Xt.length=0,t.entries.length>0||t.comparison?.rows.length?t:null}function Pu(){Xt.length=0}const mo=e=>e==="/"||e==="/index.html",Uu=new Set(["@type","@context"]),po=e=>{if(e==null)return!0;if(typeof e=="string")return e.trim()==="";if(Array.isArray(e))return e.length===0;if(typeof e=="object"){const t=Object.keys(e);return t.length===0?!0:t.every(a=>Uu.has(a))}return!1},De=e=>{if(Array.isArray(e))return e.map(t=>De(t)).filter(t=>!po(t));if(e&&typeof e=="object"){const t={};for(const[a,n]of Object.entries(e)){const r=De(n);po(r)||(t[a]=r)}return t}return e},qe=(e,t,a)=>{console.warn(`[sass-template-common][CONTRACT VIOLATION] ${e}: campo REQUERIDO ausente → "${t}". Degradando para no romper el stream. Esto NO debería pasar si el frontmatter validó el contrato.`,a??"")},Ou=["script","style","noscript","template","iframe","frame","frameset","object","embed","applet","svg","math","form","input","textarea","select","option","button","link","meta","base","title","head","canvas","audio","video","portal"],Bu=["class","dir","lang","title"],go={a:["href","target","rel","aria-label"],abbr:[],b:[],blockquote:["cite"],br:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],h2:[],h3:[],h4:[],h5:[],h6:[],hr:[],i:[],img:["src","alt","width","height","loading"],li:["value"],mark:[],ol:["start","type"],p:[],pre:[],s:[],small:[],span:[],strong:[],sub:[],sup:[],time:["datetime"],u:[],ul:[]},bo=new Set(["br","hr","img"]),Mu=new Set(["http","https","mailto","tel"]),_u=new Set(["http","https"]),Du=e=>e.replace(/&#x([0-9a-f]+);?/gi,(t,a)=>String.fromCharCode(parseInt(a,16))).replace(/&#(\d+);?/g,(t,a)=>String.fromCharCode(parseInt(a,10))).replace(/&colon;/gi,":").replace(/&(?:tab|newline|nbsp);/gi," ").replace(/[\u0000-\u0020\u00a0\u2028\u2029]/g,""),wo=(e,t)=>{const a=Du(e);if(!a)return!1;if(a.startsWith("//"))return!0;const n=/^([a-z][a-z0-9+.-]*):/i.exec(a);return n?t.has(n[1].toLowerCase()):!0},Ao=e=>e.replace(/&(?![a-z#][a-z0-9]{0,30};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),yo=/([a-z_:][\w:.-]*)\s*(?:=\s*("[^"]*"|'[^']*'|[^\s"'=<>]+))?/gi,qu=(e,t)=>{const a=new Set([...Bu,...go[e]]),n=[];let r=!1,o="";yo.lastIndex=0;let i;for(;(i=yo.exec(t))!==null;){const l=i[1].toLowerCase(),c=i[2]??"",u=c.startsWith('"')||c.startsWith("'")?c.slice(1,-1):c;if(a.has(l)&&!(l==="href"&&!wo(u,Mu))&&!(l==="src"&&!wo(u,_u))){if(l==="target"){if(u.toLowerCase()!=="_blank")continue;r=!0}if(l==="rel"){o=u;continue}n.push(`${l}="${Ao(u)}"`)}}if(r){const l=o.split(/\s+/).filter(Boolean),c=new Set(l.map(d=>d.toLowerCase()));for(const d of["noopener","noreferrer"])c.has(d)||l.push(d);o=l.join(" ")}return o&&n.push(`rel="${Ao(o)}"`),n.length?` ${n.join(" ")}`:""},Co=e=>{let t=e;for(const a of Ou)t=t.replace(new RegExp(`<${a}\\b[^>]*>[\\s\\S]*?</${a}\\s*>`,"gi"),""),t=t.replace(new RegExp(`</?${a}\\b[^>]*>`,"gi"),"");return t},Gu=/<(\/)?([a-z][a-z0-9]*)\b([^>]*?)(\/)?>/gi,Ms=e=>{if(!e)return"";let t=String(e);return t=t.replace(/<!--[\s\S]*?-->/g,"").replace(/<!--[\s\S]*$/g,""),t=t.replace(/<![\s\S]*?>/g,""),t=Co(t),t=t.replace(Gu,(a,n,r,o,i)=>{const l=String(r).toLowerCase();if(!(l in go))return"";if(n)return bo.has(l)?"":`</${l}>`;const c=qu(l,String(o));return bo.has(l)?`<${l}${c} />`:`<${l}${c}>`}),t=t.replace(/<(?![a-z/])/gi,"&lt;"),t},vo=(e,t)=>{if(!Number.isFinite(t)||t<0||t>1114111)return e;if(t<32)return" ";try{return String.fromCodePoint(t)}catch{return e}},Fu={aacute:"á",eacute:"é",iacute:"í",oacute:"ó",uacute:"ú",Aacute:"Á",Eacute:"É",Iacute:"Í",Oacute:"Ó",Uacute:"Ú",ntilde:"ñ",Ntilde:"Ñ",uuml:"ü",Uuml:"Ü",agrave:"à",egrave:"è",ccedil:"ç",iexcl:"¡",iquest:"¿",ordf:"ª",ordm:"º",deg:"°",middot:"·",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",hellip:"…",mdash:"—",ndash:"–",bull:"•",euro:"€",pound:"£",yen:"¥",cent:"¢",copy:"©",reg:"®",trade:"™"},So=e=>e?Co(String(e)).replace(/<!--[\s\S]*?-->/g,"").replace(/<(?:br|\/p|\/div|\/li|\/h[1-6]|\/blockquote)\b[^>]*>/gi," ").replace(/<[^>]*>/g,"").replace(/&nbsp;/gi," ").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&#x([0-9a-f]+);/gi,(t,a)=>vo(t,parseInt(a,16))).replace(/&#(\d+);/g,(t,a)=>vo(t,parseInt(a,10))).replace(/&([a-zA-Z]+);/g,(t,a)=>Fu[a]??t).replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&amp;/gi,"&").replace(/\s+/g," ").trim():"";function No(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;")}function Eo(e){return e.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")}function ju(e){const t=e.split("?")[0]?.toLowerCase()??"";return t.endsWith(".ogg")||t.endsWith(".oga")?"audio/ogg":t.endsWith(".wav")?"audio/wav":t.endsWith(".m4a")||t.endsWith(".mp4")?"audio/mp4":t.endsWith(".aac")?"audio/aac":"audio/mpeg"}function To(e,t,a){return e.toLowerCase().indexOf(t,a)}function xo(e,t,a){let n=1,r=a;const o=e.length;for(;r<o&&n>0;){const i=To(e,"<div",r),l=To(e,"</div>",r);if(l===-1){r=o;break}i!==-1&&i<l?(n+=1,r=i+4):(n-=1,r=l+6)}return{blockEnd:r,fullBlock:e.slice(t,r)}}function Hu(e){const t=e.match(/data-source\s*=\s*(["'])([\s\S]*?)\1/i);if(t?.[2])return Eo(t[2].trim());const a=e.match(/data-source\s*=\s*([^\s>]+)/i);return a?.[1]?Eo(a[1].trim()):""}function Vu(e){const t=e.search(/<div\b[^>]*ck-editor-audios[^>]*>/i);let a=e;if(t!==-1){const o=e.indexOf(">",t)+1;a=xo(e,t,o).fullBlock}const n=Hu(a);if(!n)return null;const r=e.match(/data-title\s*=\s*(["'])([\s\S]*?)\1/i);return{src:n,title:(r?.[2]||"").trim()}}function zu(e,t){const a=No(e),n=ju(e),r=t?No(t.replace(/-/g," ")):"",o=r?` title="${r}" aria-label="${r}"`:"";return`<figure class="ck-audio-player"><audio controls preload="metadata" src="${a}"${o}><source src="${a}" type="${n}" />Tu navegador no soporta audio HTML5. <a href="${a}">Descargar audio</a></audio></figure>`}function $u(e,t){const a=e.toLowerCase();let n=t;for(;n<e.length;){const r=a.indexOf("ck-audio-player",n);if(r===-1)return null;const o=e.lastIndexOf("<",r);if(o<t||o===-1){n=r+15;continue}if(!a.startsWith("<div",o)){n=r+15;continue}const i=e.indexOf(">",r);return i===-1?null:{start:o,tagEnd:i+1}}return null}function za(e){if(!e||!e.includes("ck-audio-player")&&!e.includes("ck-editor-audios"))return e;let t="",a=0,n=0;for(;n<e.length;){const r=$u(e,n);if(!r)break;t+=e.slice(a,r.start);const{blockEnd:o,fullBlock:i}=xo(e,r.start,r.tagEnd),l=Vu(i);t+=l?zu(l.src,l.title):i,a=o,n=o}return t+=e.slice(a),t}const Qu=(e,t)=>e&&t?{author:e?.authors?.[0]?.name??"",creator:e?.authors?.[0]?.name??"",section:e?.info?.section?.name??"",tags:t,hiddentags:String(e?.keywords?.hiddentags)??"",newsType:e?.info?.type??"",publishDate:(()=>{const a=e?.info?.date?.firstpublish,n=a!=null?new Date(a):null;return!n||isNaN(n.getTime())?(qe("dimensionValuesFormat","info.date.firstpublish"),""):n.toISOString().split("T")[0]})()}:void 0,ko=({id:e,dimensionValues:t={},event_analytics:a,eventReplaces:n})=>{const r=k.useMemo(()=>{const l={};return Object.keys(t).forEach(c=>{l[c]=c}),l},[t]),{ANALYTICS_ga4:o}=L(),i=a&&a.show&&a.value?vt(a.value,n):"";return o&&s.jsxs(s.Fragment,{children:[s.jsx("script",{defer:!0,src:"https://www.googletagmanager.com/gtag/js?"+o}),s.jsx("script",{id:"googleanalytics",defer:!0,dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || [];
10
10
  function gtag(){dataLayer.push(arguments);}
@@ -425,9 +425,9 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
425
425
  c0.6,0.2,1.1,0.2,1.5,0.1c0.5-0.1,1.4-0.6,1.6-1.1c0.2-0.5,0.2-1,0.1-1.1C19.7,17.1,19.6,17,19.4,16.9`})})})})},ze=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/x.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",width:23,height:23,...e}):s.jsx("svg",{...e,width:28,height:28,version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",children:s.jsx("path",{fill:"currentColor",d:"M5.9,6.1l7.1,9.8l-7.1,7.9h1.6l6.2-7l5,7h5.4l-7.5-10.3l6.6-7.4h-1.6L16,12.5l-4.6-6.4L5.9,6.1L5.9,6.1zM8.2,7.4h2.5l11,15.3h-2.5L8.2,7.4z"})})},ta=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/youtube.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:32,height:20,src:a,alt:"",...e}):s.jsxs("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:[s.jsx("path",{fill:"currentColor",d:`M15,23.9c-0.7,0-7.3,0-9.2-0.6C4.6,23,3.7,22,3.2,20.8c-0.4-2-0.4-5.6-0.4-5.8c0-0.2,0-3.8,0.6-5.8C3.7,7.9,4.7,7,5.9,6.5c1.9-0.4,8.9-0.4,9.2-0.4c0.7,0,7.3,0,9.2,0.6C25.5,7,26.4,8,26.9,9.2c0,0,0,0,0,0.1c0.5,1.9,0.3,5.7,0.3,5.9
426
426
  c0,0.1,0,3.8-0.4,5.7c-0.4,1.3-1.3,2.2-2.6,2.6C22.2,23.9,15.3,23.9,15,23.9z M15.1,7.6c-2,0-7.4,0.1-8.8,0.4C6,8.1,5.1,8.5,4.8,9.5c-0.5,1.8-0.5,5.4-0.5,5.4s0,3.6,0.4,5.4c0.1,0.3,0.5,1.2,1.6,1.5c1.4,0.4,6.8,0.5,8.7,0.5c2,0,7.4-0.1,8.8-0.4
427
427
  c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
428
- c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),s.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]})},Wh=["telegram"],bt={facebook:e=>s.jsx(Zs,{...e}),instagram:e=>s.jsx(Xs,{...e}),whatsapp:e=>s.jsx(Qh,{...e}),tiktok:e=>s.jsx(ea,{...e}),youtube:e=>s.jsx(ta,{...e}),x:e=>s.jsx(ze,{...e}),gnews:e=>s.jsx(jh,{...e}),podcast:e=>s.jsx(Hh,{...e}),telegram:e=>s.jsx(zh,{...e}),linkedin:e=>s.jsx(Ve,{...e}),spotify:e=>s.jsx(Vh,{...e}),threads:e=>s.jsx($h,{...e}),pinterest:e=>s.jsx(Rs,{...e})},Yh=e=>{const{freeZone:t,socials:a,menu:n,customBlock:r,custom_styles:o={}}=e,i=pt();return s.jsxs("footer",{className:"su-flex su-flex-col su-items-center su-justify-center sass-com-ft-content",style:o,children:[s.jsxs("section",{className:"su-flex su-items-center su-gap-8 sass-com-ft-brandContent",children:[s.jsx(M,{href:"/","aria-label":i.goToHomeAria??"Ir a la home",children:s.jsx("span",{className:"sass-com-ft-logoStyled",children:e.logo})}),s.jsx("div",{className:"su-flex-center su-gap-4 sass-com-ft-socialMedia",children:Object.keys(a).map(l=>!l||!a[l]||!bt[l]?null:a[l]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[l].title+" link",className:"su-flex-center sass-com-ft-linkSocialNetwoks",href:a[l].url,children:bt[l]({className:`${`sass-com-ft-social${l.charAt(0).toUpperCase()+l.slice(1)}`}`})},l))})]}),s.jsxs("section",{className:"sass-com-ft-sectionContent",children:[s.jsx("div",{className:"sass-com-ft-section",children:n.filter(l=>!l.subitem).map((l,c)=>s.jsx(M,{block_subPublication:!0,href:l.link?l.link:void 0,target:l.target,className:"sass-com-ft-menuItem footer-menu-item","aria-label":l.description,children:l.description},c))}),s.jsx("div",{className:"sass-com-ft-section",children:t&&t.map((l,c)=>s.jsx(M,{block_subPublication:!0,href:l.link?l?.link:void 0,target:l.target,className:"sass-com-ft-otherItems",children:l.description},c))})]}),r&&s.jsx(s.Fragment,{children:r}),s.jsxs("section",{className:"sass-com-ft-copyrigth",children:[s.jsx("p",{className:"sass-com-ft-copyrigthText",children:e.copyrigth}),s.jsx(M,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:i.bluestackPlatformTitle??"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:s.jsx(Fh,{})})]})]})},ss=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/facebook-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})})},Ra=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/email.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),s.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]})},en=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/email-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),s.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]})},tn=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/facebook-note.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})})},sn=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/plus.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})})},Kh={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(tn,{className:e,forceSVG:!0}),solid:e=>s.jsx(ss,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Qs,{className:e,forceSVG:!0}),solid:e=>s.jsx($s,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ra,{className:e,forceSVG:!0}),solid:e=>s.jsx(en,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0})}}};function ci({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const a=pt();return s.jsxs("div",{className:"sass-com-ja3-socialNetworkSection",children:[e.options?.map(n=>{const r=Kh[n];if(!r)return null;const o=e.variant==="outline"?r.icon.outline:r.icon.solid,i=r.url(t);return s.jsx(M,{href:i,target:"_blank",rel:"noopener noreferrer","aria-label":`${a.shareOnPrefix??"Compartir en"} ${n}`,className:`sass-com-ja3-socialButton sass-com-ja3-${n.toLowerCase()}Button sass-com-ja3-${n.toLowerCase()}Styled`,children:o("")},n)}),s.jsx("button",{type:"button","data-text":a.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja3-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Ws,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja3-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(sn,{})})]})}const Jh=e=>{const t=`${e?.video.main.author} - `,a=e?.video.main.author?Xe(e.video.info.date.created,t):{},n=()=>e?.video.main.author?`${t}${xe(e.video.info.date.created)}`:e?.video.main.author;return s.jsx("div",{className:"sass-com-bv3-content",children:s.jsx(Gs,{children:s.jsxs("div",{className:"sass-com-bv3-videoContent",children:[s.jsx("p",{className:"sass-com-bv3-title",children:e.video.main.title}),e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv3-contentFrame",dangerouslySetInnerHTML:{__html:e.video.main.code}}),s.jsxs("div",{className:"sass-com-bv3-articleSection",children:[s.jsx("p",{className:"sass-com-bv3-article",children:Be(e.video.main.description)}),s.jsx("p",{className:"sass-com-bv3-correspondent",...a,children:n()})]})]})})})},di=e=>{const{currentPage:t,showNext:a,maxPages:n,pathname:r,query:o,block_subPublication:i}=e,l=(c,d,u)=>{let h="";const f=d.split("/");return f.indexOf("page")!==-1&&f.splice(h.indexOf("page")-1,f.length-1),f.forEach((p,m)=>{m!==0&&(h+=`/${p}`)}),c==="next"?h+=`/page/${t+1}${u?`?query=${u}`:""}`:h+=`/page/${t-1}${u?`?query=${u}`:""}`};return(t>1||a&&t<n)&&s.jsxs("section",{className:"sass-com-np-content",children:[t>1&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("prev",r||"",o||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<n&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("next",r||"",o||""),children:e.texts.nextButtonText??"Siguiente"})]})},ui=e=>{const t=/-t(\d+)$/.exec(e);return t?t[1]??"":/^t(\d+)/.exec(e)?.[1]??""};function an({route:e,slug:t,page:a,size:n,cfg:r=L()}){const o=Dt(r);if(!o)return null;const i=o.routeOverrides?.[e]??{},l=i.newsType??o.newsType,c=i.imageSizes??o.imageSizes,d=String(r.PUBLIC_PUBLICATION_ID??""),u=String(r.MULTIPUBLICATION_FETCHES??r.PUBLIC_PUBLICATION_ID??""),h={size:String(n),page:String(a),exclude:o.exclude};switch(l&&(h.newstype=l),c&&(h.imagesizes=c),e){case"seccion":return{path:"news-list-section",params:{publication:d,section:t,...h}};case"tema":return{path:"news-list-tag",params:{publication:u,tagid:ui(t),tagtype:String(r.PUBLIC_TAG_TYPE??""),...h}};case"ultimas-noticias":return{path:"news-list",params:{publication:u,...h}};case"autor":case"cartonista":return{path:"news-list-author",params:{publication:u,user:t,...h}};default:return null}}const Zh=["columnistas","columnistaslocales","columnistasnacionales","ediciones"],Xh=e=>e==="en"?{button:"LOAD MORE",loading:"LOADING..."}:{button:"VER MÁS",loading:"CARGANDO..."},nn=({route:e,slug:t,renderedCount:a,batchSize:n,currentPage:r=1,texts:o={},paths:i,prerenderClass:l,cardOption:c,targetSelector:d,itemSelector:u})=>{const h=L(),f=Dt(h);if(!f||!us(e,h)||c&&Zh.includes(c)||a<n)return null;const p=r+1;if(p>f.maxPages)return null;const m=h.PUBLIC_LNG??"es",g=Xh(m),b=o.listLoadMoreButton??g.button,w=o.listLoadMoreLoading??g.loading;let C,S;if(f.cdnDirect){const v=an({route:e,slug:t,page:p,size:n,cfg:h});if(v){const y={...v.params};delete y.page,C=`${h.PUBLIC_API_PATH_VERSION??""}/${v.path}?${new URLSearchParams(y)}`,S=JSON.stringify({"x-api-token":h.PUBLIC_X_SECURITY_TOKEN??"","x-security-token":h.PUBLIC_X_SECURITY_WAF_TOKEN??"","Content-Type":"application/json"})}}return s.jsx("section",{className:"sass-com-np-content list-load-more","data-load-more":"","data-route":e,"data-slug":t,"data-next-page":String(p),"data-max-pages":String(f.maxPages),"data-size":String(n),"data-endpoint":`${de(h)}${f.endpoint}`,"data-label":b,"data-loading-label":w,"data-image-base":Ye()??"","data-paths":JSON.stringify(i??{}),"data-show-tag":h.SHOW_TAG_BY_SECTION?"1":"0","data-lng":m,"data-tz":h.DATE_TIMEZONE??"","data-prerender-class":l,"data-target":d,"data-item":u,"data-direct-url":C,"data-direct-headers":S,children:s.jsx("button",{type:"button",className:"sass-com-np-linkStyled list-load-more__button",children:b})})};async function hi({endpoint:e,route:t,slug:a,page:n,size:r,direct:o}){const i=o?.url??`${e}?${new URLSearchParams({route:t,slug:a,page:String(n)})}`,l=await fetch(i,{headers:o?.headers??{}});if(!l.ok)throw new Error(`HTTP ${l.status}`);const d=(await l.json())?.data??[];return{items:d,hasMore:d.length>=r}}const as=(e,t)=>{e&&t!=null&&(e.textContent=t)},Bt=(e,t)=>{if(e)for(const[a,n]of Object.entries(t))n!=null&&e.setAttribute(a,n)},Rh=(e,t)=>e?e.startsWith("http")||!t||e.includes(t)?e:t+e:"",e1=(e,t)=>{const a=t.showTagBySection?e?.keywords?.tags?.[0]:void 0;return a?.approved?{text:a.name,href:Me(a,t.paths)}:{text:e?.info?.section?.name,href:e?.info?.section?.url}},fi=e=>!!e.querySelector(".sass-com-nd-linkStyled");function mi(e,t,a){const n=e.cloneNode(!0),r=t;a.prerenderClass&&n.querySelectorAll(`.${a.prerenderClass}`).forEach(S=>S.classList.remove(a.prerenderClass));const o=r?.info?.link?.url??"",i=r?.info?.link?.target??"_self",l=r?.main?.title?.section??r?.main?.title?.article??"",c=r?.preview?.sizes?.[0]?.url,d=n.querySelector("img");d&&c&&(Bt(d,{src:Rh(c,a.imageBase),alt:r?.preview?.description||l}),d.removeAttribute("srcset")),Bt(n.querySelector(".sass-com-sc1-image, .sass-com-sc6-linkImage"),{href:o,title:l,"aria-label":l,target:i});const u=e1(r,a),h=n.querySelector(".sass-com-nd-sectionDescription");as(h,u.text),Bt(h,{href:u.href,"aria-label":u.text});const f=n.querySelector(".sass-com-nd-linkStyled");as(f,l),Bt(f,{href:o,"aria-label":l,target:i});const p=r?.main?.subtitle;as(n.querySelector(".sass-com-nd-description"),typeof p=="string"?p:p?.striped??"");const m=r?.authors,g=Array.isArray(m)?m[0]:m,b=g?.Figure||g?.fullname||"Redacción";as(n.querySelector(".sass-com-nd-correspondentName"),b),Bt(n.querySelector(".sass-com-nd-correspondentLink"),{href:g?.name?`/${a.paths?.autor??"autor"}/${g.name}`:void 0,"aria-label":b});const w=r?.info?.date?.modified,C=n.querySelector("time.sass-com-nd-correspondentTime");return C&&w&&(C.removeAttribute("dateTime"),Bt(C,{datetime:ke(w,a.timeZone)||void 0,[Ot]:String(w)}),as(C,xe(w,{PUBLIC_LNG:a.lng,DATE_TIMEZONE:a.timeZone}))),n}const pi="list:appended",gi=".sass-com-nc-contentGrid",t1=".sass-pg-sec-ItemCustomContent",bi=(e,t)=>{if(!e)return t;try{return JSON.parse(e)}catch{return t}},s1=e=>{const t=e.dataset.target;return t?document.querySelector(t):e.closest(".sass-com-nc-content")?.querySelector(gi)??document.querySelector(gi)},a1=(e,t)=>{const a=e.querySelectorAll(t);for(const n of a)if(fi(n))return n;return null},n1=e=>{if(e.dataset.loadMoreBound==="1")return;const t=e.querySelector("button"),a=s1(e),n=a?a1(a,e.dataset.item||t1):null;if(!t||!a||!n){e.remove();return}e.dataset.loadMoreBound="1";const r=e.dataset.label??t.textContent??"",o=e.dataset.loadingLabel??r,i=Number(e.dataset.maxPages??"5"),l=Number(e.dataset.size??"0"),c={imageBase:e.dataset.imageBase??"",paths:bi(e.dataset.paths,{}),showTagBySection:e.dataset.showTag==="1",lng:e.dataset.lng??"es",timeZone:e.dataset.tz??"",prerenderClass:e.dataset.prerenderClass||void 0},d=e.dataset.directUrl?{url:e.dataset.directUrl,headers:bi(e.dataset.directHeaders,{})}:void 0,u=h=>{t.disabled=h,t.setAttribute("aria-busy",String(h)),t.textContent=h?o:r};t.addEventListener("click",async()=>{const h=Number(e.dataset.nextPage??"2");u(!0);try{const{items:f,hasMore:p}=await hi({endpoint:e.dataset.endpoint??"",route:e.dataset.route??"",slug:e.dataset.slug??"",page:h,size:l,direct:d?{...d,url:`${d.url}&page=${h}`}:void 0}),m=f.map(g=>mi(n,g,c));if(m.forEach(g=>a.appendChild(g)),m.length&&document.dispatchEvent(new CustomEvent(pi)),e.dataset.nextPage=String(h+1),!m.length||!p||h+1>i){e.remove();return}u(!1)}catch(f){console.error("[load-more] no se pudo traer la pagina siguiente:",f),u(!1)}})};function r1(e=null){if(typeof document>"u")return;(e??document).querySelectorAll("[data-load-more]").forEach(a=>n1(a))}const Mt=(e,t)=>new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":"application/json","Cache-Control":"public, max-age=0, s-maxage=120, stale-while-revalidate=600"}});async function o1(e,{size:t,cfg:a=L(),timeoutMs:n=2e4}){const r=Dt(a);if(!r)return Mt({error:"load-more disabled"},404);const o=e.searchParams.get("route")??"",i=e.searchParams.get("slug")??"",l=e.searchParams.get("page"),c=Number(l??"0");if(!r.routes.includes(o))return Mt({error:`Unknown listing route: ${o}`},400);if(!Number.isInteger(c)||c<2||c>r.maxPages)return Mt({error:`Page out of range: ${l}`},400);const d=an({route:o,slug:i,page:c,size:t,cfg:a});if(!d)return Mt({error:`Unknown listing route: ${o}`},400);const u=`${a.PUBLIC_API_HOST??""}${a.PUBLIC_API_PATH??""}${a.PUBLIC_API_PATH_VERSION??""}/${d.path}?${new URLSearchParams(d.params)}`,h=new AbortController,f=setTimeout(()=>h.abort(),n);try{const p=await fetch(u,{signal:h.signal,headers:{"x-api-token":a.PUBLIC_X_SECURITY_TOKEN??"","x-security-token":a.PUBLIC_X_SECURITY_WAF_TOKEN??""}});if(!p.ok)throw new Error(`HTTP ${p.status}`);const m=await p.json();return Mt({data:m?.data??[]},200)}catch(p){return console.error("[list-load-more] Error:",p?.message??p),Mt({error:"Failed to fetch news",message:p?.message??""},500)}finally{clearTimeout(f)}}const rn=e=>{const{grid:t=3}=e;return s.jsxs("section",{className:"sass-com-nc-content",children:[s.jsx("div",{className:`sass-com-nc-contentGrid ${e.className?e.className:""} ${t===3?"sass-com-nc-contentGrid3":"sass-com-nc-contentGrid4"} news-content`,children:e.children}),s.jsx(s.Fragment,{children:e.paginatorComponent})]})},wi=({homepreview:e="imagen",videos:t,external:a,preview:n,linkClassName:r="sass-com-sc1-image",linkHref:o,linkTarget:i,linkTitle:l,isVideo:c=!1,isLarge:d,priorityHigh:u=!1})=>{const{CONFIG_videoClipUrl:h}=L(),f=e??"imagen",p=Array.isArray(t)?t:[],m=()=>{const C=p[0]?.clip;return C?s.jsx("div",{className:"sass-com-sc1-videoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:s.jsx("source",{src:`${h}${C}`,type:"video/mp4"})})}):null},g=()=>{const C=p[0]?.code;return C?s.jsx("iframe",{className:"sass-com-sc1-videoIframeContainer",src:`https://www.youtube.com/embed/${C}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,title:l}):null},b=()=>{const C=p.find($=>$.type==="video-embedded");if(!C?.code)return null;const v=/src\s*=\s*"([^"]+)"/.exec(C.code),y=v?v[1]:null;if(!y)return null;const N=n.original?.url??n.sizes?.[0]?.url??"",x=Ye()??"",O=N.startsWith("http")||N.includes(x)||x===""?N:x+N;return s.jsx("iframe",{className:"sass-com-sc1-embeddedIframeContainer",src:y,frameBorder:"0",allowFullScreen:!0,title:l,style:{"--thumbnail-url":`url(${O})`}})},w=()=>s.jsx(M,{"aria-label":l,className:r,title:l,href:o,target:i,children:s.jsx(ve,{preview:n,isVideo:c,isLarge:d,priorityHigh:u})});switch(f){case"videoYouTube":return p[0]?.code?s.jsx(g,{}):s.jsx(w,{});case"videoEmbedded":return p.some(C=>C.type==="video-embedded"&&C.code)?s.jsx(b,{}):s.jsx(w,{});case"clip":return p[0]?.clip?s.jsx(m,{}):s.jsx(w,{});case"iframe":return a?.iframe?s.jsx("div",{className:"sass-com-sc1-iframeContainer",dangerouslySetInnerHTML:{__html:a.iframe}}):s.jsx(w,{});default:return s.jsx(w,{})}},Pe=e=>{const{main:t,authors:a,info:n,preview:r,share:o,isVideo:i,config:l,overImage:c="default",isTitle:d,priorityHigh:u=!1,isLarge:h,paths:f,keywords:p,speculationPrerenderClass:m}=e;return s.jsxs("section",{className:"sass-com-sc1-content",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"sass-com-sc1-contentWrapper",children:s.jsx(wi,{homepreview:l?.homepreview,videos:e.videos,external:e.external,preview:r,linkClassName:"sass-com-sc1-image",linkHref:n?.link?.url,linkTarget:n?.link?.target,linkTitle:t?.title?.section,isVideo:i,isLarge:h,priorityHigh:u})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(He,{main:t,authors:a,info:n,preview:r,share:o,config:l,overImage:c,isTitle:d,paths:f,keywords:p,speculationPrerenderClass:m})})]})},ns=e=>{const{isVideo:t,info:a,main:n,overImage:r="default",titleGradient:o=!1,speculationPrerenderClass:i}=e,l=mt("sass-com-sc2-linkStyled",i),{SHOW_TAG_BY_SECTION:c,SUB_PUBLICATION_PREFIX_IN_ROUTES:d}=L(),u=()=>{if(c&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const h=e.keywords.tags[0],f=h.name;return h.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":f,block_subPublication:d?.tema,className:"sass-com-sc2-sectionDescription",href:Me(h,e.paths),children:f})}):s.jsx("div",{className:"sass-com-sc2-sectionDescription",children:f})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-com-sc2-sectionDescription",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return s.jsxs("section",{className:"sass-com-sc2-content",children:[s.jsx(M,{className:"sass-com-sc2-imageLink",title:n?.title?.section,href:a.link.url,target:a.link.target,children:s.jsx(ve,{preview:e.preview,isVideo:t})}),s.jsxs("div",{className:["sass-com-sc2-boxInformation",o?"sass-com-sc2-titleGradient":""].join(" "),style:{width:r!=="default"?"90%":"",left:r==="left"?0:r==="right"?"calc(10% - 1px)":"auto",top:r!=="default"?"-1rem":""},children:[s.jsx(u,{}),s.jsx("h2",{className:"sass-com-sc2-articule",children:s.jsx(M,{className:l,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},rs=async e=>{const{data:t,autorIcon:a,speculationPrerenderClass:n}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:r}=L(),o=Array.isArray(t?.authors)?t.authors[0]:void 0,i=o?.image?.sizes?.[0]?.url??"",l=i?await ue(i):"",c=()=>t?.config?.showtime?`${xe(t.info?.date?.modified)}`:"",d=s.jsxs("div",{className:"sass-com-oc2-autorContent",children:[l?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-oc2-image",src:l,alt:o?.fullname??""}):s.jsx("div",{className:"sass-com-oc2-contentIcon",children:a}),s.jsx("p",{className:"sass-com-oc2-autorName",children:Be(o?.fullname??"Redacción",18)}),s.jsx("p",{className:"sass-com-oc2-time",...t?.config?.showtime?Xe(t.info?.date?.modified):{},children:c()})]});return s.jsxs("div",{className:"sass-com-oc2-content",children:[o?.internaluser?s.jsx(M,{block_subPublication:r?.autor,href:o.internaluser?`/${e.paths.autor}/${o?.name}`:"#",children:d}):d,s.jsxs("div",{className:"sass-com-oc2-boxInformationContent",children:[s.jsx(M,{className:n?`${n} sass-com-oc2-title`:"sass-com-oc2-title",href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),s.jsx("p",{className:"sass-com-oc2-comment",children:Be(t?.main?.subtitle?.striped||"")})]})]})},i1=e=>s.jsx("div",{className:"sass-com-lt-content",children:s.jsx(Gs,{className:`sass-com-lt-contentLayout ${e.className}`,children:e.children})}),l1=e=>{const t=e.logo;return s.jsxs("section",{className:"sass-com-err-content",children:[e.backgroundImgURL&&s.jsx("img",{className:"sass-com-err-before su-absolute su-inset-0 su-size-full su-object-cover",src:e.backgroundImgURL,alt:"Imagen de fondo del error"}),s.jsxs("div",{className:"sass-com-err-textContent error-text-content",children:[s.jsx(t,{}),s.jsx("p",{className:"sass-com-err-title",children:e.title}),s.jsx("p",{className:"sass-com-err-description",children:e.description}),s.jsx(M,{className:"sass-com-err-linkStyled su-no-underline su-flex-center",href:"/",children:e.buttonText??"Inicio"})]})]})},c1=e=>s.jsxs("div",{className:"sass-com-cin-content",children:[s.jsxs("div",{className:"sass-com-cin-contentLabel",children:[s.jsx("label",{className:"sass-com-cin-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-cin-required",children:"*"})]}),s.jsx("input",{className:"sass-com-cin-input",...e})]}),d1=e=>s.jsxs("div",{className:"sass-com-csel-content",children:[s.jsxs("div",{className:"sass-com-csel-contentLabel",children:[s.jsx("label",{className:"sass-com-csel-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-csel-required",children:"*"})]}),s.jsxs("select",{className:"sass-com-csel-input",...e,children:[s.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>s.jsx("option",{value:t.value,children:t.label},a))]})]}),u1=e=>s.jsxs("div",{className:"sass-com-cta-content",children:[s.jsx("label",{className:"sass-com-cta-label",children:e.label}),s.jsx("textarea",{className:"sass-com-cta-input",...e})]}),Ai=e=>{const t=yt(e.preview);let a="";return t.description&&(a=t.description),t.copyright&&(a=`${a} ${t.copyright}`),t.photographer&&(a=`${a} ${t.photographer}`),s.jsx("div",{className:"sass-com-in2-content",children:s.jsx(ve,{preview:t,isLarge:!0,priorityHigh:!0,figCaption:a})})},yi=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],c=(Array.isArray(i?.videos)?i.videos:[]).find(d=>d?.type==="video-embedded");return c?.code?s.jsxs("div",{className:"sass-pg-veh-content",children:[s.jsx("div",{dangerouslySetInnerHTML:{__html:typeof c.code=="string"?c.code:""}}),c?.title&&s.jsx("p",{className:"sass-pg-veh-title",children:c.title})]}):null}catch{return null}},Ci=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],c=(Array.isArray(i?.videos)?i.videos:[]).find(d=>d?.type==="video-youtube");return!c?.code||typeof c.code!="string"?null:s.jsxs("div",{className:"sass-pg-vyh-content",children:[s.jsx("iframe",{className:"sass-pg-vyh-iframeStyled",src:`https://www.youtube.com/embed/${c.code}`,frameBorder:"0",allowFullScreen:!0}),c?.title&&s.jsx("p",{className:"sass-pg-vyh-title",children:c.title})]})}catch{return null}},vi=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNews({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const l=o[0]?.external?.iframe;return typeof l!="string"||l.trim()===""?null:s.jsx("div",{className:"sass-pg-ifh-content",dangerouslySetInnerHTML:{__html:l}})}catch{return null}},Ue={imagen:"imagen",videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},h1={[Ue.videoEmbedded]:yi,[Ue.videoYouTube]:Ci,[Ue.iframe]:vi},Si=({news:e,commonServices:t})=>{const{config:a,info:n}=e;a||qe("ArticulePreview","config");const r=a?.articlepreview,o=n?.link?.internal,i=r?h1[r]:null;return i?s.jsx("div",{className:"sass-pg-nap-content",children:s.jsx(i,{newsformated:e,internal:o,commonServices:t})}):null},f1=new Set([Ue.videoEmbedded,Ue.videoYouTube,Ue.iframe]),Ni=e=>{const t=e.config?.articlepreview,a=!!e.commonServices&&!!t&&t!==Ue.imagen&&f1.has(t);return console.log("useArticlePreview",t,a),s.jsx(s.Fragment,{children:s.jsxs("div",{className:"sass-com-lbh-boxInformation sass-liveblog-header",children:[a?s.jsx(Si,{news:e,commonServices:e.commonServices}):s.jsx(Ai,{preview:e.preview}),s.jsxs("div",{className:"sass-com-lbh-textBox",children:[s.jsxs("div",{className:"sass-com-lbh-contentBox",children:[e?.info?.section&&s.jsx(M,{className:"sass-com-lbh-sectionDescription",href:e?.info?.section?.url,children:e?.info?.section?.name}),s.jsxs("div",{className:"sass-com-lbh-liveBox",children:[s.jsx("span",{className:"sass-com-lbh-dot"}),s.jsx("p",{children:"EN VIVO"})]})]}),s.jsx("h1",{className:"sass-com-lbh-articule",children:e.main?.title?.section}),e.config?.showsubtitle&&s.jsx("p",{className:"sass-com-lbh-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})})},Ei=e=>s.jsx("section",{className:"sass-com-tl-content sass-liveblog-time-line",children:e.itemList[0]?.list.items.map((t,a)=>s.jsxs("div",{className:"sass-com-tl-contentLine",children:[s.jsx("div",{className:"sass-com-tl-dateLink",children:Hn(t.date)}),s.jsx(M,{className:"sass-com-tl-contentText",href:`#item-${a+1}`,children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),Ti=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/linkedin-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:s.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
428
+ c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),s.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]})},Wh=["telegram"],bt={facebook:e=>s.jsx(Zs,{...e}),instagram:e=>s.jsx(Xs,{...e}),whatsapp:e=>s.jsx(Qh,{...e}),tiktok:e=>s.jsx(ea,{...e}),youtube:e=>s.jsx(ta,{...e}),x:e=>s.jsx(ze,{...e}),gnews:e=>s.jsx(jh,{...e}),podcast:e=>s.jsx(Hh,{...e}),telegram:e=>s.jsx(zh,{...e}),linkedin:e=>s.jsx(Ve,{...e}),spotify:e=>s.jsx(Vh,{...e}),threads:e=>s.jsx($h,{...e}),pinterest:e=>s.jsx(Rs,{...e})},Yh=e=>{const{freeZone:t,socials:a,menu:n,customBlock:r,custom_styles:o={}}=e,i=pt();return s.jsxs("footer",{className:"su-flex su-flex-col su-items-center su-justify-center sass-com-ft-content",style:o,children:[s.jsxs("section",{className:"su-flex su-items-center su-gap-8 sass-com-ft-brandContent",children:[s.jsx(M,{href:"/","aria-label":i.goToHomeAria??"Ir a la home",children:s.jsx("span",{className:"sass-com-ft-logoStyled",children:e.logo})}),s.jsx("div",{className:"su-flex-center su-gap-4 sass-com-ft-socialMedia",children:Object.keys(a).map(l=>!l||!a[l]||!bt[l]?null:a[l]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[l].title+" link",className:"su-flex-center sass-com-ft-linkSocialNetwoks",href:a[l].url,children:bt[l]({className:`${`sass-com-ft-social${l.charAt(0).toUpperCase()+l.slice(1)}`}`})},l))})]}),s.jsxs("section",{className:"sass-com-ft-sectionContent",children:[s.jsx("div",{className:"sass-com-ft-section",children:n.filter(l=>!l.subitem).map((l,c)=>s.jsx(M,{block_subPublication:!0,href:l.link?l.link:void 0,target:l.target,className:"sass-com-ft-menuItem footer-menu-item","aria-label":l.description,children:l.description},c))}),s.jsx("div",{className:"sass-com-ft-section",children:t&&t.map((l,c)=>s.jsx(M,{block_subPublication:!0,href:l.link?l?.link:void 0,target:l.target,className:"sass-com-ft-otherItems",children:l.description},c))})]}),r&&s.jsx(s.Fragment,{children:r}),s.jsxs("section",{className:"sass-com-ft-copyrigth",children:[s.jsx("p",{className:"sass-com-ft-copyrigthText",children:e.copyrigth}),s.jsx(M,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:i.bluestackPlatformTitle??"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:s.jsx(Fh,{})})]})]})},ss=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/facebook-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})})},Ra=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/email.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),s.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]})},en=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/email-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),s.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]})},tn=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/facebook-note.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})})},sn=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/plus.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})})},Kh={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(tn,{className:e,forceSVG:!0}),solid:e=>s.jsx(ss,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Qs,{className:e,forceSVG:!0}),solid:e=>s.jsx($s,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ra,{className:e,forceSVG:!0}),solid:e=>s.jsx(en,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0})}}};function ci({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const a=pt();return s.jsxs("div",{className:"sass-com-ja3-socialNetworkSection",children:[e.options?.map(n=>{const r=Kh[n];if(!r)return null;const o=e.variant==="outline"?r.icon.outline:r.icon.solid,i=r.url(t);return s.jsx(M,{href:i,target:"_blank",rel:"noopener noreferrer","aria-label":`${a.shareOnPrefix??"Compartir en"} ${n}`,className:`sass-com-ja3-socialButton sass-com-ja3-${n.toLowerCase()}Button sass-com-ja3-${n.toLowerCase()}Styled`,children:o("")},n)}),s.jsx("button",{type:"button","data-text":a.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja3-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Ws,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja3-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(sn,{})})]})}const Jh=e=>{const t=`${e?.video.main.author} - `,a=e?.video.main.author?Xe(e.video.info.date.created,t):{},n=()=>e?.video.main.author?`${t}${xe(e.video.info.date.created)}`:e?.video.main.author;return s.jsx("div",{className:"sass-com-bv3-content",children:s.jsx(Gs,{children:s.jsxs("div",{className:"sass-com-bv3-videoContent",children:[s.jsx("p",{className:"sass-com-bv3-title",children:e.video.main.title}),e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv3-contentFrame",dangerouslySetInnerHTML:{__html:e.video.main.code}}),s.jsxs("div",{className:"sass-com-bv3-articleSection",children:[s.jsx("p",{className:"sass-com-bv3-article",children:Be(e.video.main.description)}),s.jsx("p",{className:"sass-com-bv3-correspondent",...a,children:n()})]})]})})})},di=e=>{const{currentPage:t,showNext:a,maxPages:n,pathname:r,query:o,block_subPublication:i}=e,l=(c,d,u)=>{let h="";const f=d.split("/");return f.indexOf("page")!==-1&&f.splice(h.indexOf("page")-1,f.length-1),f.forEach((p,m)=>{m!==0&&(h+=`/${p}`)}),c==="next"?h+=`/page/${t+1}${u?`?query=${u}`:""}`:h+=`/page/${t-1}${u?`?query=${u}`:""}`};return(t>1||a&&t<n)&&s.jsxs("section",{className:"sass-com-np-content",children:[t>1&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("prev",r||"",o||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<n&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("next",r||"",o||""),children:e.texts.nextButtonText??"Siguiente"})]})},ui=e=>{const t=/-t(\d+)$/.exec(e);return t?t[1]??"":/^t(\d+)/.exec(e)?.[1]??""};function an({route:e,slug:t,page:a,size:n,cfg:r=L()}){const o=Dt(r);if(!o)return null;const i=o.routeOverrides?.[e]??{},l=i.newsType??o.newsType,c=i.imageSizes??o.imageSizes,d=String(r.PUBLIC_PUBLICATION_ID??""),u=String(r.MULTIPUBLICATION_FETCHES??r.PUBLIC_PUBLICATION_ID??""),h={size:String(n),page:String(a),exclude:o.exclude};switch(l&&(h.newstype=l),c&&(h.imagesizes=c),e){case"seccion":return{path:"news-list-section",params:{publication:d,section:t,...h}};case"tema":return{path:"news-list-tag",params:{publication:u,tagid:ui(t),tagtype:String(r.PUBLIC_TAG_TYPE??""),...h}};case"ultimas-noticias":return{path:"news-list",params:{publication:u,...h}};case"autor":case"cartonista":return{path:"news-list-author",params:{publication:u,user:t,...h}};default:return null}}const Zh=["columnistas","columnistaslocales","columnistasnacionales","ediciones"],Xh=e=>e==="en"?{button:"LOAD MORE",loading:"LOADING..."}:{button:"VER MÁS",loading:"CARGANDO..."},nn=({route:e,slug:t,renderedCount:a,batchSize:n,currentPage:r=1,texts:o={},paths:i,prerenderClass:l,cardOption:c,targetSelector:d,itemSelector:u})=>{const h=L(),f=Dt(h);if(!f||!us(e,h)||c&&Zh.includes(c)||a<n)return null;const p=r+1;if(p>f.maxPages)return null;const m=h.PUBLIC_LNG??"es",g=Xh(m),b=o.listLoadMoreButton??g.button,w=o.listLoadMoreLoading??g.loading;let C,S;if(f.cdnDirect){const v=an({route:e,slug:t,page:p,size:n,cfg:h});if(v){const y={...v.params};delete y.page,C=`${h.PUBLIC_API_PATH_VERSION??""}/${v.path}?${new URLSearchParams(y)}`,S=JSON.stringify({"x-api-token":h.PUBLIC_X_SECURITY_TOKEN??"","x-security-token":h.PUBLIC_X_SECURITY_WAF_TOKEN??"","Content-Type":"application/json"})}}return s.jsx("section",{className:"sass-com-np-content list-load-more","data-load-more":"","data-route":e,"data-slug":t,"data-next-page":String(p),"data-max-pages":String(f.maxPages),"data-size":String(n),"data-endpoint":`${de(h)}${f.endpoint}`,"data-label":b,"data-loading-label":w,"data-image-base":Ye()??"","data-paths":JSON.stringify(i??{}),"data-show-tag":h.SHOW_TAG_BY_SECTION?"1":"0","data-lng":m,"data-tz":h.DATE_TIMEZONE??"","data-prerender-class":l,"data-target":d,"data-item":u,"data-direct-url":C,"data-direct-headers":S,children:s.jsx("button",{type:"button",className:"sass-com-np-linkStyled list-load-more__button",children:b})})};async function hi({endpoint:e,route:t,slug:a,page:n,size:r,direct:o}){const i=o?.url??`${e}?${new URLSearchParams({route:t,slug:a,page:String(n)})}`,l=await fetch(i,{headers:o?.headers??{}});if(!l.ok)throw new Error(`HTTP ${l.status}`);const d=(await l.json())?.data??[];return{items:d,hasMore:d.length>=r}}const as=(e,t)=>{e&&t!=null&&(e.textContent=t)},Bt=(e,t)=>{if(e)for(const[a,n]of Object.entries(t))n!=null&&e.setAttribute(a,n)},Rh=(e,t)=>e?e.startsWith("http")||!t||e.includes(t)?e:t+e:"",e1=(e,t)=>{const a=t.showTagBySection?e?.keywords?.tags?.[0]:void 0;return a?.approved?{text:a.name,href:Me(a,t.paths)}:{text:e?.info?.section?.name,href:e?.info?.section?.url}},fi=e=>!!e.querySelector(".sass-com-nd-linkStyled");function mi(e,t,a){const n=e.cloneNode(!0),r=t;a.prerenderClass&&n.querySelectorAll(`.${a.prerenderClass}`).forEach(S=>S.classList.remove(a.prerenderClass));const o=r?.info?.link?.url??"",i=r?.info?.link?.target??"_self",l=r?.main?.title?.section??r?.main?.title?.article??"",c=r?.preview?.sizes?.[0]?.url,d=n.querySelector("img");d&&c&&(Bt(d,{src:Rh(c,a.imageBase),alt:r?.preview?.description||l}),d.removeAttribute("srcset")),Bt(n.querySelector(".sass-com-sc1-image, .sass-com-sc6-linkImage"),{href:o,title:l,"aria-label":l,target:i});const u=e1(r,a),h=n.querySelector(".sass-com-nd-sectionDescription");as(h,u.text),Bt(h,{href:u.href,"aria-label":u.text});const f=n.querySelector(".sass-com-nd-linkStyled");as(f,l),Bt(f,{href:o,"aria-label":l,target:i});const p=r?.main?.subtitle;as(n.querySelector(".sass-com-nd-description"),typeof p=="string"?p:p?.striped??"");const m=r?.authors,g=Array.isArray(m)?m[0]:m,b=g?.Figure||g?.fullname||"Redacción";as(n.querySelector(".sass-com-nd-correspondentName"),b),Bt(n.querySelector(".sass-com-nd-correspondentLink"),{href:g?.name?`/${a.paths?.autor??"autor"}/${g.name}`:void 0,"aria-label":b});const w=r?.info?.date?.modified,C=n.querySelector("time.sass-com-nd-correspondentTime");return C&&w&&(C.removeAttribute("dateTime"),Bt(C,{datetime:ke(w,a.timeZone)||void 0,[Ot]:String(w)}),as(C,xe(w,{PUBLIC_LNG:a.lng,DATE_TIMEZONE:a.timeZone}))),n}const pi="list:appended",gi=".sass-com-nc-contentGrid",t1=".sass-pg-sec-ItemCustomContent",bi=(e,t)=>{if(!e)return t;try{return JSON.parse(e)}catch{return t}},s1=e=>{const t=e.dataset.target;return t?document.querySelector(t):e.closest(".sass-com-nc-content")?.querySelector(gi)??document.querySelector(gi)},a1=(e,t)=>{const a=e.querySelectorAll(t);for(const n of a)if(fi(n))return n;return null},n1=e=>{if(e.dataset.loadMoreBound==="1")return;const t=e.querySelector("button"),a=s1(e),n=a?a1(a,e.dataset.item||t1):null;if(!t||!a||!n){e.remove();return}e.dataset.loadMoreBound="1";const r=e.dataset.label??t.textContent??"",o=e.dataset.loadingLabel??r,i=Number(e.dataset.maxPages??"5"),l=Number(e.dataset.size??"0"),c={imageBase:e.dataset.imageBase??"",paths:bi(e.dataset.paths,{}),showTagBySection:e.dataset.showTag==="1",lng:e.dataset.lng??"es",timeZone:e.dataset.tz??"",prerenderClass:e.dataset.prerenderClass||void 0},d=e.dataset.directUrl?{url:e.dataset.directUrl,headers:bi(e.dataset.directHeaders,{})}:void 0,u=h=>{t.disabled=h,t.setAttribute("aria-busy",String(h)),t.textContent=h?o:r};t.addEventListener("click",async()=>{const h=Number(e.dataset.nextPage??"2");u(!0);try{const{items:f,hasMore:p}=await hi({endpoint:e.dataset.endpoint??"",route:e.dataset.route??"",slug:e.dataset.slug??"",page:h,size:l,direct:d?{...d,url:`${d.url}&page=${h}`}:void 0}),m=f.map(g=>mi(n,g,c));if(m.forEach(g=>a.appendChild(g)),m.length&&document.dispatchEvent(new CustomEvent(pi)),e.dataset.nextPage=String(h+1),!m.length||!p||h+1>i){e.remove();return}u(!1)}catch(f){console.error("[load-more] no se pudo traer la pagina siguiente:",f),u(!1)}})};function r1(e=null){if(typeof document>"u")return;(e??document).querySelectorAll("[data-load-more]").forEach(a=>n1(a))}const Mt=(e,t)=>new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":"application/json","Cache-Control":"public, max-age=0, s-maxage=120, stale-while-revalidate=600"}});async function o1(e,{size:t,cfg:a=L(),timeoutMs:n=2e4}){const r=Dt(a);if(!r)return Mt({error:"load-more disabled"},404);const o=e.searchParams.get("route")??"",i=e.searchParams.get("slug")??"",l=e.searchParams.get("page"),c=Number(l??"0");if(!r.routes.includes(o))return Mt({error:`Unknown listing route: ${o}`},400);if(!Number.isInteger(c)||c<2||c>r.maxPages)return Mt({error:`Page out of range: ${l}`},400);const d=an({route:o,slug:i,page:c,size:t,cfg:a});if(!d)return Mt({error:`Unknown listing route: ${o}`},400);const u=`${a.PUBLIC_API_HOST??""}${a.PUBLIC_API_PATH??""}${a.PUBLIC_API_PATH_VERSION??""}/${d.path}?${new URLSearchParams(d.params)}`,h=new AbortController,f=setTimeout(()=>h.abort(),n);try{const p=await fetch(u,{signal:h.signal,headers:{"x-api-token":a.PUBLIC_X_SECURITY_TOKEN??"","x-security-token":a.PUBLIC_X_SECURITY_WAF_TOKEN??""}});if(!p.ok)throw new Error(`HTTP ${p.status}`);const m=await p.json();return Mt({data:m?.data??[]},200)}catch(p){return console.error("[list-load-more] Error:",p?.message??p),Mt({error:"Failed to fetch news",message:p?.message??""},500)}finally{clearTimeout(f)}}const rn=e=>{const{grid:t=3}=e;return s.jsxs("section",{className:"sass-com-nc-content",children:[s.jsx("div",{className:`sass-com-nc-contentGrid ${e.className?e.className:""} ${t===3?"sass-com-nc-contentGrid3":"sass-com-nc-contentGrid4"} news-content`,children:e.children}),s.jsx(s.Fragment,{children:e.paginatorComponent})]})},wi=({homepreview:e="imagen",videos:t,external:a,preview:n,linkClassName:r="sass-com-sc1-image",linkHref:o,linkTarget:i,linkTitle:l,isVideo:c=!1,isLarge:d,priorityHigh:u=!1})=>{const{CONFIG_videoClipUrl:h}=L(),f=e??"imagen",p=Array.isArray(t)?t:[],m=()=>{const C=p[0]?.clip;return C?s.jsx("div",{className:"sass-com-sc1-videoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:s.jsx("source",{src:`${h}${C}`,type:"video/mp4"})})}):null},g=()=>{const C=p[0]?.code;return C?s.jsx("iframe",{className:"sass-com-sc1-videoIframeContainer",src:`https://www.youtube.com/embed/${C}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,title:l}):null},b=()=>{const C=p.find($=>$.type==="video-embedded");if(!C?.code)return null;const v=/src\s*=\s*"([^"]+)"/.exec(C.code),y=v?v[1]:null;if(!y)return null;const N=n.original?.url??n.sizes?.[0]?.url??"",x=Ye()??"",O=N.startsWith("http")||N.includes(x)||x===""?N:x+N;return s.jsx("iframe",{className:"sass-com-sc1-embeddedIframeContainer",src:y,frameBorder:"0",allowFullScreen:!0,title:l,style:{"--thumbnail-url":`url(${O})`}})},w=()=>s.jsx(M,{"aria-label":l,className:r,title:l,href:o,target:i,children:s.jsx(ve,{preview:n,isVideo:c,isLarge:d,priorityHigh:u})});switch(f){case"videoYouTube":return p[0]?.code?s.jsx(g,{}):s.jsx(w,{});case"videoEmbedded":return p.some(C=>C.type==="video-embedded"&&C.code)?s.jsx(b,{}):s.jsx(w,{});case"clip":return p[0]?.clip?s.jsx(m,{}):s.jsx(w,{});case"iframe":return a?.iframe?s.jsx("div",{className:"sass-com-sc1-iframeContainer",dangerouslySetInnerHTML:{__html:a.iframe}}):s.jsx(w,{});default:return s.jsx(w,{})}},Pe=e=>{const{main:t,authors:a,info:n,preview:r,share:o,isVideo:i,config:l,overImage:c="default",isTitle:d,priorityHigh:u=!1,isLarge:h,paths:f,keywords:p,speculationPrerenderClass:m}=e;return s.jsxs("section",{className:"sass-com-sc1-content",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"sass-com-sc1-contentWrapper",children:s.jsx(wi,{homepreview:l?.homepreview,videos:e.videos,external:e.external,preview:r,linkClassName:"sass-com-sc1-image",linkHref:n?.link?.url,linkTarget:n?.link?.target,linkTitle:t?.title?.section,isVideo:i,isLarge:h,priorityHigh:u})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(He,{main:t,authors:a,info:n,preview:r,share:o,config:l,overImage:c,isTitle:d,paths:f,keywords:p,speculationPrerenderClass:m})})]})},ns=e=>{const{isVideo:t,info:a,main:n,overImage:r="default",titleGradient:o=!1,speculationPrerenderClass:i}=e,l=mt("sass-com-sc2-linkStyled",i),{SHOW_TAG_BY_SECTION:c,SUB_PUBLICATION_PREFIX_IN_ROUTES:d}=L(),u=()=>{if(c&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const h=e.keywords.tags[0],f=h.name;return h.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":f,block_subPublication:d?.tema,className:"sass-com-sc2-sectionDescription",href:Me(h,e.paths),children:f})}):s.jsx("div",{className:"sass-com-sc2-sectionDescription",children:f})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-com-sc2-sectionDescription",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return s.jsxs("section",{className:"sass-com-sc2-content",children:[s.jsx(M,{className:"sass-com-sc2-imageLink",title:n?.title?.section,href:a.link.url,target:a.link.target,children:s.jsx(ve,{preview:e.preview,isVideo:t})}),s.jsxs("div",{className:["sass-com-sc2-boxInformation",o?"sass-com-sc2-titleGradient":""].join(" "),style:{width:r!=="default"?"90%":"",left:r==="left"?0:r==="right"?"calc(10% - 1px)":"auto",top:r!=="default"?"-1rem":""},children:[s.jsx(u,{}),s.jsx("h2",{className:"sass-com-sc2-articule",children:s.jsx(M,{className:l,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},rs=async e=>{const{data:t,autorIcon:a,speculationPrerenderClass:n}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:r}=L(),o=Array.isArray(t?.authors)?t.authors[0]:void 0,i=o?.image?.sizes?.[0]?.url??"",l=i?await ue(i):"",c=()=>t?.config?.showtime?`${xe(t.info?.date?.modified)}`:"",d=s.jsxs("div",{className:"sass-com-oc2-autorContent",children:[l?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-oc2-image",src:l,alt:o?.fullname??""}):s.jsx("div",{className:"sass-com-oc2-contentIcon",children:a}),s.jsx("p",{className:"sass-com-oc2-autorName",children:Be(o?.fullname??"Redacción",18)}),s.jsx("p",{className:"sass-com-oc2-time",...t?.config?.showtime?Xe(t.info?.date?.modified):{},children:c()})]});return s.jsxs("div",{className:"sass-com-oc2-content",children:[o?.internaluser?s.jsx(M,{block_subPublication:r?.autor,href:o.internaluser?`/${e.paths.autor}/${o?.name}`:"#",children:d}):d,s.jsxs("div",{className:"sass-com-oc2-boxInformationContent",children:[s.jsx(M,{className:n?`${n} sass-com-oc2-title`:"sass-com-oc2-title",href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),s.jsx("p",{className:"sass-com-oc2-comment",children:Be(t?.main?.subtitle?.striped||"")})]})]})},i1=async({nombre:e,foto:t="",descripcion:a="",perfilUrl:n="",autorIcon:r,profileLinkLabel:o="Ver perfil"})=>{const i=t?await ue(t):"",l=!!n;return s.jsxs("div",{className:"sass-com-stc-content",children:[i?s.jsx("img",{className:"sass-com-stc-image",src:i,alt:e,loading:"lazy",fetchPriority:"low"}):s.jsx("div",{className:"sass-com-stc-contentIcon",children:r}),s.jsxs("div",{className:"sass-com-stc-text",children:[s.jsx("p",{className:"sass-com-stc-name",children:e}),a?s.jsx("p",{className:"sass-com-stc-description",children:a}):null,l?s.jsx(M,{className:"sass-com-stc-profileLink",href:n,children:o}):null]})]})},l1=e=>s.jsx("div",{className:"sass-com-lt-content",children:s.jsx(Gs,{className:`sass-com-lt-contentLayout ${e.className}`,children:e.children})}),c1=e=>{const t=e.logo;return s.jsxs("section",{className:"sass-com-err-content",children:[e.backgroundImgURL&&s.jsx("img",{className:"sass-com-err-before su-absolute su-inset-0 su-size-full su-object-cover",src:e.backgroundImgURL,alt:"Imagen de fondo del error"}),s.jsxs("div",{className:"sass-com-err-textContent error-text-content",children:[s.jsx(t,{}),s.jsx("p",{className:"sass-com-err-title",children:e.title}),s.jsx("p",{className:"sass-com-err-description",children:e.description}),s.jsx(M,{className:"sass-com-err-linkStyled su-no-underline su-flex-center",href:"/",children:e.buttonText??"Inicio"})]})]})},d1=e=>s.jsxs("div",{className:"sass-com-cin-content",children:[s.jsxs("div",{className:"sass-com-cin-contentLabel",children:[s.jsx("label",{className:"sass-com-cin-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-cin-required",children:"*"})]}),s.jsx("input",{className:"sass-com-cin-input",...e})]}),u1=e=>s.jsxs("div",{className:"sass-com-csel-content",children:[s.jsxs("div",{className:"sass-com-csel-contentLabel",children:[s.jsx("label",{className:"sass-com-csel-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-csel-required",children:"*"})]}),s.jsxs("select",{className:"sass-com-csel-input",...e,children:[s.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>s.jsx("option",{value:t.value,children:t.label},a))]})]}),h1=e=>s.jsxs("div",{className:"sass-com-cta-content",children:[s.jsx("label",{className:"sass-com-cta-label",children:e.label}),s.jsx("textarea",{className:"sass-com-cta-input",...e})]}),Ai=e=>{const t=yt(e.preview);let a="";return t.description&&(a=t.description),t.copyright&&(a=`${a} ${t.copyright}`),t.photographer&&(a=`${a} ${t.photographer}`),s.jsx("div",{className:"sass-com-in2-content",children:s.jsx(ve,{preview:t,isLarge:!0,priorityHigh:!0,figCaption:a})})},yi=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],c=(Array.isArray(i?.videos)?i.videos:[]).find(d=>d?.type==="video-embedded");return c?.code?s.jsxs("div",{className:"sass-pg-veh-content",children:[s.jsx("div",{dangerouslySetInnerHTML:{__html:typeof c.code=="string"?c.code:""}}),c?.title&&s.jsx("p",{className:"sass-pg-veh-title",children:c.title})]}):null}catch{return null}},Ci=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],c=(Array.isArray(i?.videos)?i.videos:[]).find(d=>d?.type==="video-youtube");return!c?.code||typeof c.code!="string"?null:s.jsxs("div",{className:"sass-pg-vyh-content",children:[s.jsx("iframe",{className:"sass-pg-vyh-iframeStyled",src:`https://www.youtube.com/embed/${c.code}`,frameBorder:"0",allowFullScreen:!0}),c?.title&&s.jsx("p",{className:"sass-pg-vyh-title",children:c.title})]})}catch{return null}},vi=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNews({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const l=o[0]?.external?.iframe;return typeof l!="string"||l.trim()===""?null:s.jsx("div",{className:"sass-pg-ifh-content",dangerouslySetInnerHTML:{__html:l}})}catch{return null}},Ue={imagen:"imagen",videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},f1={[Ue.videoEmbedded]:yi,[Ue.videoYouTube]:Ci,[Ue.iframe]:vi},Si=({news:e,commonServices:t})=>{const{config:a,info:n}=e;a||qe("ArticulePreview","config");const r=a?.articlepreview,o=n?.link?.internal,i=r?f1[r]:null;return i?s.jsx("div",{className:"sass-pg-nap-content",children:s.jsx(i,{newsformated:e,internal:o,commonServices:t})}):null},m1=new Set([Ue.videoEmbedded,Ue.videoYouTube,Ue.iframe]),Ni=e=>{const t=e.config?.articlepreview,a=!!e.commonServices&&!!t&&t!==Ue.imagen&&m1.has(t);return console.log("useArticlePreview",t,a),s.jsx(s.Fragment,{children:s.jsxs("div",{className:"sass-com-lbh-boxInformation sass-liveblog-header",children:[a?s.jsx(Si,{news:e,commonServices:e.commonServices}):s.jsx(Ai,{preview:e.preview}),s.jsxs("div",{className:"sass-com-lbh-textBox",children:[s.jsxs("div",{className:"sass-com-lbh-contentBox",children:[e?.info?.section&&s.jsx(M,{className:"sass-com-lbh-sectionDescription",href:e?.info?.section?.url,children:e?.info?.section?.name}),s.jsxs("div",{className:"sass-com-lbh-liveBox",children:[s.jsx("span",{className:"sass-com-lbh-dot"}),s.jsx("p",{children:"EN VIVO"})]})]}),s.jsx("h1",{className:"sass-com-lbh-articule",children:e.main?.title?.section}),e.config?.showsubtitle&&s.jsx("p",{className:"sass-com-lbh-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})})},Ei=e=>s.jsx("section",{className:"sass-com-tl-content sass-liveblog-time-line",children:e.itemList[0]?.list.items.map((t,a)=>s.jsxs("div",{className:"sass-com-tl-contentLine",children:[s.jsx("div",{className:"sass-com-tl-dateLink",children:Hn(t.date)}),s.jsx(M,{className:"sass-com-tl-contentText",href:`#item-${a+1}`,children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),Ti=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/linkedin-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:s.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
429
429
  H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
430
- h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})})},m1={tiktok:{hosts:["tiktok.com","vm.tiktok.com"],fromHandle:e=>`https://www.tiktok.com/@${e}`},youtube:{hosts:["youtube.com","youtu.be"],fromHandle:e=>/^UC[A-Za-z0-9_-]{22}$/.test(e)?`https://www.youtube.com/channel/${e}`:`https://www.youtube.com/@${e}`},pinterest:{hosts:["pinterest.com","pin.it","pinterest.es","pinterest.com.mx"],fromHandle:e=>`https://www.pinterest.com/${e}`}},p1=new Set(["","-","--",".","#","n/a","na","no","null","undefined","false","none","ninguno","ninguna","sin dato","sin datos"]),g1=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/,b1=e=>e.replace(/^[\s"'<(\[]+/,"").replace(/[\s"'>)\].,;:]+$/,""),w1=(e,t)=>/^https?:\/\//i.test(e)||/^www\./i.test(e)?!0:t.some(a=>e.toLowerCase().startsWith(`${a}/`)),A1=e=>{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;let a;try{a=new URL(t)}catch{return null}return!a.hostname.includes(".")||/\s/.test(a.hostname)?null:a.toString()},$e=(e,t)=>{const a=m1[e];if(!a||typeof t!="string")return"";const n=b1(t.trim());if(p1.has(n.toLowerCase()))return"";if(w1(n,a.hosts))return A1(n)??"";const r=n.replace(/^[@/]+/,"").replace(/\/+$/,"");return g1.test(r)?a.fromHandle(r):""},sa=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},xi=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),st=(e,t,a)=>s.jsx("img",{className:a,src:ne(`/autor-${e}.svg`),alt:t,fetchPriority:"low",loading:"lazy"}),y1=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,socialIconsCustom:r=!1,showPosition:o=!1,showEmailAsSocial:i=!1,allowBioHtml:l=!1}=e,c=a,{PUBLIC_LNG:d}=L(),u=d==="en",h=t?.addtional,f=t?.info?.image?.sizes?.[0]?.url??"",p=t?.info?.fullname??"",m=t?.info?.email??"",g=u?h?.USER_DESCRIPCION_EN||h?.USER_MIBIO_EN||"":h?.USER_DESCRIPCION||h?.USER_MIBIO||"",b=u?h?.USER_POSITION_EN||"":h?.USER_JOBTITLE||h?.USER_POSITION||"",w=sa(t?.addtional?.USER_USERFB??""),C=sa(t?.addtional?.USER_USERIG??""),S=sa(t?.addtional?.USER_USERTWT??""),v=sa(t?.addtional?.USER_USERLIN??""),y=$e("tiktok",h?.USER_PAGE_TIKTOK),N=$e("youtube",h?.USER_PAGE_YOUTUBE),x=$e("pinterest",h?.USER_PAGE_PINTEREST),O=()=>i||!m||m.trim()===""?!1:xi(m),$=h?.USER_SHOWEMAIL===!0||h?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",q=i&&$&&xi(m),B=G=>`mailto:${G.trim()}`;return s.jsx("section",{className:`sass-com-ah1-content su-flex-center su-relative su-w-full ${e.className??""}`,children:s.jsxs("div",{className:"sass-com-ah1-info",children:[f?s.jsx("div",{className:"sass-com-ah1-image-container sass-image-autor-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+p,className:"sass-com-ah1-image su-object-cover",src:await ue(f)})}):s.jsx("div",{className:"sass-com-ah1-icon-wrap sass-image-autor-wrapper su-flex-center",children:s.jsx(c,{})}),s.jsx("h1",{className:"sass-com-ah1-name",children:p}),o&&b&&s.jsx("p",{className:"sass-com-ah1-position",children:b}),O()&&s.jsx("a",{href:B(m),className:"sass-com-ah1-email","aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,children:m}),l?s.jsx("div",{className:"sass-com-ah1-description",dangerouslySetInnerHTML:{__html:Ms(g)}}):s.jsx("p",{className:"sass-com-ah1-description",children:g}),s.jsxs("div",{className:"sass-com-ah1-social",children:[w&&s.jsx("a",{href:w,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?st(n?"facebook-black":"facebook","Facebook","sass-com-ah1-social-icon sass-social-icon-facebook"):n?s.jsx(ss,{className:"sass-com-ah1-social-icon sass-social-icon-facebook",forceSVG:!0}):s.jsx(Zs,{className:"sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook",forceSVG:!0})}),C&&s.jsx("a",{href:C,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("instagram","Instagram","sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram"):s.jsx(Xs,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("x","X","sass-com-ah1-social-icon sass-com-ah1-social-icon-x"):s.jsx(ze,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-x",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?st(n?"linkedin-black":"linkedin","LinkedIn","sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin"):n?s.jsx(Ti,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"TikTok",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("tiktok","TikTok","sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok"):s.jsx(ea,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok",forceSVG:!0,width:28,height:28})}),N&&s.jsx("a",{href:N,target:"_blank","aria-label":"YouTube",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("youtube","YouTube","sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube"):s.jsx(ta,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube",forceSVG:!0,width:28,height:28})}),x&&s.jsx("a",{href:x,target:"_blank","aria-label":"Pinterest",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("pinterest","Pinterest","sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest"):s.jsx(Rs,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest",forceSVG:!0,width:28,height:28})}),q&&s.jsx("a",{href:B(m),"aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"nofollow noreferrer",children:r?st(n?"email-black":"email","Email","sass-com-ah1-social-icon sass-com-ah1-social-icon-email"):n?s.jsx(en,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0}):s.jsx(Ra,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0})})]})]})})},C1=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,allowBioHtml:r=!1}=e,o=a,{PUBLIC_LNG:i}=L(),l=i==="en",c=t?.addtional,d=t?.info?.image?.sizes?.[0]?.url??"",u=t?.info?.fullname??"",h=t?.info?.email??"",f=c?.USER_SHOWEMAIL===!0||c?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",p=c?.USER_SHOWBIO??!1,m=l?c?.USER_DESCRIPCION_EN||c?.USER_MIBIO_EN||"":c?.USER_DESCRIPCION||c?.USER_MIBIO||"",g=t?.addtional?.USER_USERFB??"",b=t?.addtional?.USER_USERIG??"",w=t?.addtional?.USER_USERTWT??"",C=t?.addtional?.USER_USERLIN??"",S=$e("tiktok",c?.USER_PAGE_TIKTOK),v=$e("youtube",c?.USER_PAGE_YOUTUBE),y=$e("pinterest",c?.USER_PAGE_PINTEREST);return s.jsx("section",{className:"sass-com-ah2-content su-flex su-w-full su-items-center su-justify-end",children:s.jsxs("div",{className:"sass-com-ah2-contentInfo su-stack-center su-relative su-w-full su-gap-2 su-p-4",children:[d?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-ah2-imageStyled su-object-cover",src:await ue(d)}):s.jsx("div",{className:"sass-com-ah2-contentIconStyled su-flex-center",children:s.jsx(o,{})}),s.jsxs("div",{className:"sass-com-ah2-contentAuthor su-stack-center su-md:items-start",children:[s.jsx("h1",{className:"sass-com-ah2-name",children:u}),f&&s.jsx("p",{className:"sass-com-ah2-email",children:h}),p&&(r?s.jsx("div",{className:"sass-com-ah2-description",dangerouslySetInnerHTML:{__html:Ms(m)}}):s.jsx("p",{className:"sass-com-ah2-description",children:m})),s.jsxs("div",{className:"sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",children:[g&&s.jsx("a",{href:g,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(ss,{className:"sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0}):s.jsx(Zs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0})}),b&&s.jsx("a",{href:b,target:"_blank",rel:"noreferrer",children:s.jsx(Xs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-instagram",forceSVG:!0})}),w&&s.jsx("a",{href:w,target:"_blank",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-x",forceSVG:!0})}),C&&s.jsx("a",{href:C,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(Ti,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(ea,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-tiktok",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(ta,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-youtube",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Rs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-pinterest",forceSVG:!0})})]})]})]})})},ki=e=>s.jsxs("section",{className:"sass-com-lnc-content",children:[e.children,s.jsxs("div",{className:"sass-com-lnc-bannerSection",style:e.readestCustomStyles,children:[e.bannerTop,s.jsx(Js,{content:e.ranking,title:e.readestTitle,videosSectionLabel:e.videosSectionLabel,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),v1=async e=>{const t=ts(),a={...e,main:{...e.main,title:{...e.main.title,article:Be(e.main.title.article,60)}}};return e&&e.info?s.jsxs("section",{className:"sass-com-sc7-content",children:[s.jsx("a",{className:"sass-com-sc7-linkImage",target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:s.jsxs("div",{style:{position:"relative"},children:[s.jsx("img",{src:await ue(e.preview.sizes[0]?.url||"")}),s.jsx(t,{className:"sass-com-sc7-playStyled saas-image-play-icon"})]})}),s.jsx("div",{className:"sass-com-sc7-newsDescription",children:s.jsx(He,{...a,paths:e.paths})})]}):null},S1=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),s.jsx("div",{className:"sass-com-bv4-content",children:s.jsxs(Gs,{className:"sass-com-bv4-contentLayoutVideoSection",children:[s.jsxs("a",{className:"sass-com-bv4-header",href:e.goBackLink??"/videos",children:[s.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"currentColor"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),s.jsxs("div",{className:"sass-com-bv4-videos",children:[s.jsxs("div",{className:"sass-com-bv4-videoContent",style:e.mainVideoStyles,children:[e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv4-contentFrame",dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),s.jsx("div",{className:"sass-com-bv4-articleSection",children:s.jsx(He,{isTitle:!0,cutSubtitle:!1,...At({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),s.jsxs("div",{className:"sass-com-bv4-sectionVideoList",style:e.listVideoStyles,children:[e.banner&&s.jsx(be,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&s.jsx("h2",{className:"sass-com-bv4-relatedTitle saas-video-related-title",children:e.relatedName}),Array.isArray(t)&&t.map((a,n)=>k.createElement(v1,{...At(a,!0,!1,!1),key:n,paths:e.paths}))]})]})]})})},he=k.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:n=!1,noHeading:r=!1}=e,o=r?s.jsx("div",{className:"sass-com-sec-title",children:e.title}):a?s.jsx("h1",{className:"sass-com-sec-title",children:e.title}):s.jsx("h2",{className:"sass-com-sec-title",children:e.title});return s.jsxs("section",{className:"sass-com-sec-content",children:[e.title&&s.jsxs("div",{className:["sass-com-sec-titleContent",e.className??""].join(" "),"data-after":`${n}`,children:[s.jsx("hr",{className:"sass-com-sec-startLine"}),e.titleUrl?s.jsx(M,{href:e.titleUrl,children:o}):o,s.jsx("hr",{className:"sass-com-sec-line"}),e.titleUrl&&s.jsx(M,{className:"sass-com-sec-readMore",href:e.titleUrl?.toString()??""})]}),e.title&&s.jsx("hr",{className:["sass-com-sec-bottomLine",e.className??""].join(" ")}),s.jsx("div",{className:"sass-com-sec-childrenContent",ref:t,children:e.children})]})}),on=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),aa=e=>s.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:"currentColor"})}),N1=()=>s.jsx("div",{className:"sass-com-sb-buttonContent",children:s.jsx("label",{className:"sass-com-sb-buttonStyled",htmlFor:"side-bar-state",children:s.jsx(gt,{className:"sass-com-sb-icon"})})}),E1=({action:e,placeholder:t,ariaLabel:a})=>s.jsx("div",{className:"sass-com-sb-inputContent",children:s.jsxs("form",{className:"sass-com-sb-inputStyled",action:e,method:"GET",children:[s.jsx("input",{className:"sass-com-sb-buscar",type:"text",name:"query",placeholder:t}),s.jsx("button",{type:"submit","aria-label":a,className:"sass-com-sb-searchSubmit",children:s.jsx(on,{color:"var(--search-input-icons)"})})]})}),T1=({item:e,index:t})=>{const a=`accordion_${t}`,n=Array.isArray(e.subitem);return s.jsxs("div",{className:"sass-com-sb-accordionStyled",children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"}}),s.jsx("span",{className:"sass-com-sb-accordionHeading",children:n?s.jsxs("div",{className:"sass-com-sb-accordionSummeryStyled",children:[e.link?s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link,target:e.target,children:e.description}):s.jsx("div",{className:"sass-com-sb-accordionTitle",children:e.description}),s.jsx("label",{className:"sass-com-sb-accordionToggle",htmlFor:a,"aria-label":`Expandir ${e.description}`,children:s.jsx(aa,{className:"sass-com-sb-accordionChevron",width:13,height:13})})]}):s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link??void 0,target:e.target,children:e.description})}),n&&s.jsx("div",{className:"sass-com-sb-accordionDetailsStyled",style:{"--max-height":`${e.subitem.length*45}px`},children:e.subitem.map((r,o)=>s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-subLinkStyled",href:r.link??void 0,target:r.target,children:r.description},o))})]})},x1=({socials:e,copyright:t})=>s.jsxs("div",{className:"sass-com-sb-footerSlider",children:[s.jsx("div",{className:"sass-com-sb-socialMedia",children:Object.keys(e).map(a=>e[a]?.show&&bt[a]?s.jsx("a",{href:e[a].url,target:"_blank",rel:"noreferrer","aria-label":`${e[a].title} link`,className:"sass-com-sb-linkSocialNetwork",children:bt[a]({className:`sass-com-sb-icon ${`sass-com-sb-icon-${a}`}`})},a):null)}),t&&s.jsx("p",{className:"sass-com-sb-copyRights",children:t})]}),k1=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:n,searchKeyWord:r,searchLink:o,custom_styles:i={}})=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:l,CONFIG_buscar_html:c}=L(),d=l?.buscar?de():"",u=c?".html":"";return s.jsxs("aside",{className:"sass-com-sb-drawerStyled",id:"sidebar-expandable",style:i,children:[s.jsx("input",{type:"checkbox",id:"side-bar-state"}),s.jsxs("section",{className:"sass-com-sb-sidebarCustom",children:[s.jsx(N1,{}),s.jsx(E1,{action:`${d}${o||"/buscar"}${u}`,placeholder:`${r}...`,ariaLabel:r}),s.jsxs("div",{className:"sass-com-sb-mainContent",children:[s.jsxs("div",{children:[n,e.map((h,f)=>s.jsx(T1,{item:h,index:f},f))]}),s.jsx(x1,{socials:t,copyright:a})]})]})]})},Ii=e=>s.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),Li=e=>{const{alertZone:t,id:a="close-alert"}=e,n=()=>s.jsx(M,{className:"sass-com-hlm-headLine",href:t?.data[0]?.info.link.url,target:t?.data[0]?.info.link.target,title:t?.data[0]?.main.title.home,children:t?.data[0]?.main?.title.home??""});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(t&&t?.data&&t?.data[0]?.main?.title.home)}),t&&t?.data&&t?.data[0]?.main?.title.home&&s.jsxs("div",{id:"alert-chip",className:"sass-com-hlm-content",style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[s.jsxs("div",{className:"sass-com-hlm-live",children:[s.jsx("div",{className:"sass-com-hlm-chipStyled",children:t?.entity?.description}),e.forceShow&&s.jsx(n,{}),s.jsx("label",{htmlFor:a,children:s.jsx(gt,{className:"sass-com-hlm-closeLiveStyled"})})]}),s.jsx(n,{})]})]})},Pi=e=>{const{cintillo:t,tapeTitle:a,socials:n}=e,r="",o=t?.findIndex(i=>i.link===r)??0;return(Array.isArray(t)||e.socialIcons)&&s.jsxs("section",{className:"sass-com-htape-content",children:[Array.isArray(t)&&s.jsxs("div",{className:"sass-com-htape-tabs header-page-tape-content",children:[a!==""&&s.jsx("p",{className:"sass-com-htape-title",children:`${a}`}),t&&t[o]&&s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",target:t[o]?.target,href:t[o]?.link,style:{color:t[o]?.link===r?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[o]?.link===r?"700":"400"},children:t[o]?.description},o),t&&t.map((i,l)=>{if(l!==o)return s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",href:i?.link,style:{color:i?.link===r?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===r?"700":"400"},children:i?.description},l)})]}),s.jsx("div",{className:"sass-com-htape-socialNetwork",children:Object.keys(n).map(i=>!i||!n[i]||!bt[i]?null:n[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[i].title+" link",className:"sass-com-htape-linkSocialNetwork",href:n[i].url,children:bt[i]({className:["sass-com-htape-icon",`sass-com-htape-${String(i)}`].join(" ")})},i))})]})},I1=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return s.jsxs("header",{className:"sass-com-h1sk-headerStyled",style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&s.jsx(Pi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{className:`${t&&t?.data&&!e.showAlertPop?"sass-com-h1sk-headerContentAlert":"sass-com-h1sk-headerContent"} center-mobile-header-icon`,children:[s.jsx(Xa,{id:"button-app",className:"sass-com-h1sk-menuButton",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:s.jsx(Ii,{className:"sass-com-h1sk-startIcon",color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),s.jsxs("div",{className:"sass-com-h1sk-iconContent",children:[s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:k.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.icon)}),e.mobileIcon?s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:k.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&s.jsxs("div",{className:"sass-com-h1sk-headLineContent",children:[s.jsx("div",{className:"sass-com-h1sk-headLineTitle headLineTitle",children:t.entity.description?`${t.entity.description}`:""}),s.jsx(M,{className:"sass-com-h1sk-headLine",href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:Be(t.data[0]?.main.title.home??"",120)})]}),s.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:["sass-com-h1sk-buttonSection",t?.data?"sass-com-h1sk-hasAlertZone":"","search-button"].join(" "),children:[s.jsx(M,{block_subPublication:n?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:"sass-com-h1sk-buttonSectionSearch search-button-icon",style:{display:"flex"},children:e.searchIcon??s.jsx(on,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),e.customComponent&&e.customComponent,!e.showAlertPop&&s.jsx(Li,{alertZone:t,forceShow:e.showAlertPop})]})},L1=e=>{const{items:t}=e;return s.jsx("ul",{className:"sass-com-mopt-ul",children:t.map((a,n)=>s.jsxs("li",{className:"sass-com-mopt-liBefore sass-com-mopt-li",children:[a.link?s.jsxs(M,{block_subPublication:!0,"aria-label":a.description,className:"sass-com-mopt-linkStyled",href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&s.jsx(aa,{})]}):s.jsxs("span",{"aria-label":a.description,className:"sass-com-mopt-linkStyled",children:[a.description,Array.isArray(a.subitem)&&s.jsx(aa,{})]}),Array.isArray(a.subitem)&&s.jsx("ul",{className:"sass-com-mopt-ulContent",children:s.jsx("div",{className:"sass-com-mopt-contentModal",children:a.subitem.map((r,o)=>s.jsx("li",{className:"sass-com-mopt-li",children:s.jsx(M,{block_subPublication:!0,className:"sass-com-mopt-itemLink","aria-label":r.description,href:r.link?r.link:void 0,target:r.target,children:r.description})},o))})})]},n))})},P1=e=>{const{menu:t,alertZone:a,custom_styles:n={},prerender_classes:r}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=L();return s.jsxs("header",{className:"sass-com-h1st-headerStyled",id:"saas-header-static",style:{...n,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.preHeader,e.socialIcons&&e.headerTape?.static&&s.jsx(Pi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:["sass-com-h1st-headerContent",a?.data?"sass-com-h1st-hasAlertZone":""].join(" "),children:[s.jsx("div",{className:"sass-com-h1st-menuButtonSection sass-header-menu-button",children:s.jsxs(Xa,{className:"sass-com-h1st-menuButton",id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[s.jsx(Ii,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),s.jsx("p",{className:"sass-com-h1st-buttonText",style:{lineHeight:0},children:e.menuText})]})}),s.jsx("div",{className:"sass-com-h1st-logoContent",children:s.jsx(M,{href:"/","aria-label":"Home",className:"header-logo-link",children:k.createElement("span",{className:"sass-com-h1st-logoStyled"},e.icon)})}),s.jsxs("div",{className:"sass-com-h1st-buttonSection sass-header-right-button-section",children:[s.jsx(M,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:"sass-com-h1st-buttonSectionSearch","aria-label":e.searchKeyWord,style:{display:"flex"},children:s.jsx(on,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?s.jsxs("div",{className:"sass-com-h1st-headLineContent",children:[s.jsx("p",{className:"sass-com-h1st-headLineTitle headLineTitle",children:a.entity.description?`${a.entity.description}`:""}),s.jsx(M,{className:`sass-com-h1st-headLine ${r?.alert}`,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:Be(a.data[0]?.main.title.home??"",120)})]}):s.jsx("div",{className:"sass-com-h1st-line"}),s.jsx("div",{className:"sass-com-h1st-menuSection",style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&s.jsx(L1,{items:t})})]}),e.customComponent&&e.customComponent]})},U1=e=>{const{alertZone:t,children:a,sidebar:n,custom_styles:r={}}=e,o=e.childrenContentTag??"div",i=s.jsxs(o,{className:["sass-com-h1-childrenContent",e.showAlertPop?"sass-com-h1-op2":"",t?.data?"sass-com-h1-childrenContentAux":""].join(" "),style:e.showOnlyStickyHeader?{...r,"--hasAlertMargin":"3.6rem !important"}:r,id:"content-layout",children:[e.showAlertPop&&s.jsx(Li,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return s.jsxs(s.Fragment,{children:[e.childrenContentPosition==="before-headers"&&i,s.jsx(I1,{...e}),!e.showOnlyStickyHeader&&s.jsx(P1,{...e}),e.childrenContentPosition!=="before-headers"&&i,s.jsx(k1,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:n,searchLink:e.searchLink,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},O1=async e=>{const t=e.info&&typeof e.info=="object"?e.info.image:void 0,a=(t&&typeof t=="object"?t:void 0)||e.image,r=a?.sizes?.find(o=>o.width===100&&o.height===100)?.url||a?.sizes?.[0]?.url||a?.original?.url||"";return r&&await ue(r)||""},Ui=({name:e,imageUrl:t})=>s.jsxs(s.Fragment,{children:[t?s.jsx("img",{className:"sass-com-ts-chipImage su-object-cover",src:t,alt:"",loading:"lazy",fetchPriority:"low"}):null,e]}),Oi=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L();if(!e?.tags?.length)return null;const a=await Promise.all(e.tags.map(async n=>({item:n,imageUrl:await O1(n)})));return s.jsx("section",{className:"sass-com-ts-content",children:s.jsxs("div",{className:"sass-com-ts-tags",children:[s.jsx("p",{className:"sass-com-ts-tagStyled",children:e.title?e.title:"Tags:"}),a.map(({item:n,imageUrl:r},o)=>n.approved?s.jsx(M,{block_subPublication:t?.tema,href:Me(n,e.paths),children:s.jsx("div",{className:["sass-com-ts-chipStyled","sass-com-ts-tagLink",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(Ui,{name:n.name,imageUrl:r})})},o):s.jsx("div",{className:["sass-com-ts-chipStyled",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(Ui,{name:n.name,imageUrl:r})},o))]})})},Bi=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,PUBLIC_LNG:n}=L(),r=de(),o=n==="en",i=t?.addtional,l=t?.info?.name??"",c=t?.info?.fullname??"",d=t?.info?.image?.sizes?.[0]?.url??"",u=o?i?.USER_DESCRIPCION_EN||i?.USER_MIBIO_EN||"":i?.USER_DESCRIPCION||i?.USER_MIBIO||"",h=Ms(u),f=t?.addtional?.USER_USERFB??"",p=t?.addtional?.USER_USERIG??"",m=t?.addtional?.USER_USERTWT??"",g=t?.addtional?.USER_USERLIN??"",b=$e("tiktok",i?.USER_PAGE_TIKTOK),w=$e("youtube",i?.USER_PAGE_YOUTUBE),C=$e("pinterest",i?.USER_PAGE_PINTEREST),S=`${r}/${e.paths.autor}/${l}`,N=u.replace(/<[^>]*>/g,"").replace(/&[^;]+;/g," ").trim().length>360,x=`ja2-bio-toggle-${l}`;return!!t&&s.jsx("section",{className:"sass-com-ja2-contentBox",children:s.jsxs("div",{className:"sass-com-ja2-content",children:[s.jsxs("div",{className:"sass-com-ja2-avatarContent",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:S,children:d?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+l,className:"sass-com-ja2-imageStyled",src:await ue(d)}):s.jsx("div",{className:"sass-com-ja2-contentIconStyled",children:e.autorIcon})}),s.jsxs("section",{className:"sass-com-ja2-journalistSection",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:S,children:c}),s.jsxs("section",{className:"sass-com-ja2-socialNetworkSection",children:[f&&s.jsx("a",{href:f,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),p&&s.jsx("a",{href:p,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[s.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),s.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),s.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_281_2357",children:s.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),m&&s.jsx("a",{href:m,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),g&&s.jsx("a",{href:g,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})}),b&&s.jsx("a",{href:b,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(ea,{className:"sass-com-ja2-tiktokStyled",forceSVG:!0,width:24,height:24})}),w&&s.jsx("a",{href:w,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(ta,{className:"sass-com-ja2-youtubeStyled",forceSVG:!0,width:24,height:24})}),C&&s.jsx("a",{href:C,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Rs,{className:"sass-com-ja2-pinterestStyled",forceSVG:!0,width:24,height:24})})]})]})]}),N?s.jsxs("div",{className:"sass-com-ja2-bioExpandable",children:[s.jsx("input",{type:"checkbox",id:x,className:"sass-com-ja2-bioToggle"}),s.jsx("div",{className:"sass-com-ja2-article sass-com-ja2-article-clamp",dangerouslySetInnerHTML:{__html:h}}),s.jsxs("div",{className:"sass-com-ja2-bioFooter",children:[s.jsxs("label",{htmlFor:x,className:"sass-com-ja2-bioToggleLink",children:[s.jsx("span",{className:"sass-com-ja2-bioToggleLinkMore",children:String(e.texts.authorViewMore??"Ver más")}),s.jsx("span",{className:"sass-com-ja2-bioToggleLinkLess",children:"Ver menos"})]}),s.jsx("label",{htmlFor:x,className:"sass-com-ja2-bioArrow","aria-label":"Leer más / Leer menos",children:s.jsx("svg",{viewBox:"0 0 24 24",fill:"none",width:"18",height:"18","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),s.jsx("a",{"aria-label":l,className:"sass-com-ja2-bioAuthorLink",href:S,children:String(e.texts.authorViewMore??"Ver más")})]}):s.jsx("div",{className:"sass-com-ja2-article",dangerouslySetInnerHTML:{__html:`${h} <a aria-label="${l}" href="${S}">${String(e.texts.authorViewMore??"Ver más")}</a>`}})]})})},Mi=async e=>{const{news:t,texts:a}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return t?t.config?.showauthor&&t.authors?.length>1&&s.jsx("div",{className:"sass-com-jg-content su-flex su-w-full su-flex-col su-items-center su-justify-evenly su-gap-0 su-md:flex-row",children:Array.isArray(t.authors)&&t.authors?.map(async r=>s.jsxs("div",{className:"sass-com-jg-contentCard",children:[r.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-jg-imageStyled su-flex-center",src:await ue(r.image?.sizes?.[0]?.url||"")},r.fullname):s.jsx("div",{className:"sass-com-jg-contentIconStyled su-flex-center",children:e.autorIcon},r.fullname),s.jsxs("div",{className:"sass-com-jg-contentInfo",children:[r.internaluser?s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-fullName",href:`/${e.paths.autor}/${r.name}`,children:r.fullname}):s.jsx("p",{className:"sass-com-jg-fullName",children:r.fullname}),r.internaluser&&s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-LearnMoreLink",href:`/${e.paths.autor}/${r.name}`,children:String(a.JournalistGroupLink??"")})]})]},`author-${r.firstname}`))}):(qe("JournalistGroup","news"),null)},na=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},B1=async e=>{const t=e.img?await ue(e.img):"",a=na(e.social?.facebook??""),n=na(e.social?.instagram??""),r=na(e.social?.twitter??""),o=na(e.social?.linkedin??""),i=e.social&&(a||n||r||o);return s.jsx("section",{className:`sass-com-th-content ${e.className}`,children:s.jsxs("div",{className:`sass-com-th-contentInfo ${t?"":"sass-com-th-contentInfoWithoutImg"}`,children:[e.img&&s.jsx("div",{className:"sass-com-th-imageContainer sass-image-tag-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-th-imageStyled su-object-cover",src:t})}),s.jsx("h1",{className:"sass-com-th-name",children:e.tag}),e.description&&s.jsx("div",{className:"sass-com-th-description",dangerouslySetInnerHTML:{__html:e.description}}),e.url&&s.jsx("a",{className:"sass-com-th-urlTag",href:e.url,children:e.url}),i&&s.jsxs("div",{className:"sass-com-th-contenSocialNetwork",children:[a&&s.jsx("a",{href:a,target:"_blank",className:"sass-com-th-socialFacebookIcon sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Zs,{className:"sass-com-th-faceBookIcon",forceSVG:!0})}),n&&s.jsx("a",{href:n,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(Xs,{className:"sass-com-th-socialIcon",forceSVG:!0})}),r&&s.jsx("a",{href:r,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-th-socialIcon",forceSVG:!0})}),o&&s.jsx("a",{href:o,target:"_blank",className:"sass-com-th-socialIconLink sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Ve,{className:"sass-com-th-socialIcon",forceSVG:!0})})]})]})})},ln=s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",fill:"currentColor",children:s.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})});function M1({googleSourceShare:e,googleProfile:t,whatsAppShare:a,text:n}){return s.jsxs("div",{className:"sass-com-src-container",children:[e&&s.jsxs("a",{className:"sass-com-src-button",href:e,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google Source",width:28,height:28}),n.sourceButtons?.googleSourceShare||"Añádenos como fuente preferida",ln]}),t&&s.jsxs("a",{className:"sass-com-src-button",href:t,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-news-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google News",width:28,height:28}),n.sourceButtons?.googleProfile||"Google News",ln]}),a&&s.jsxs("a",{className:"sass-com-src-button",href:a,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-whatsapp-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"WhatsApp",width:28,height:28}),n.sourceButtons?.whatsAppShare||"Sumate al canal de WhatsApp",ln]})]})}function _1(e){const{main:t,authors:a,info:n,preview:r,config:o,keywords:i,isVideo:l,isLarge:c,priorityHigh:d,share:u,overImage:h,isTitle:f,paths:p}=e,{CONFIG_videoClipUrl:m}=L(),g=o?.homepreview??"imagen",b=()=>{const y=e.videos?.[0]?.clip;return y?s.jsx("div",{className:"homeCardVideoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,width:"480",height:"535",children:s.jsx("source",{src:`${m}${y}`,type:"video/mp4"})})}):null},w=()=>{if(!e.videos)return null;const y=e.videos?.[0]?.code;return y?s.jsx("iframe",{className:"homeCardVideoIframeContainer",src:`https://www.youtube.com/embed/${y}`,frameBorder:"0",allowFullScreen:!0}):null},C=()=>{if(!e.videos)return null;const y=(e.videos??[]).find(G=>G.type==="video-embedded");if(!y?.code)return null;const x=/src\s*=\s*"([^"]+)"/.exec(y.code),O=x?x[1]:null;if(!O)return null;const $=r.original?.url??r.sizes?.[0]?.url??"",q=Ye()??"",B=$.startsWith("http")||$.includes(q)||q===""?$:q+$;return s.jsx("iframe",{className:"homeCardEmbeddedIframeContainer",src:O,frameBorder:"0",allowFullScreen:!0,style:{"--thumbnail-url":`url(${B})`}})},S=()=>{const N=e.gallery??[];return N.length?s.jsx(je,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:N.map((x,O)=>{const $=x?.url||x?.id||`gallery-${O}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:x,isVideo:l,isLarge:c,priorityHigh:d})},$)})}):null};let v=null;switch(g){case"fotogaleria":v=s.jsx(S,{});break;case"videoYouTube":v=s.jsx(w,{});break;case"videoEmbedded":v=s.jsx(C,{});break;case"clip":v=s.jsx(b,{});break;case"iframe":v=s.jsx("div",{className:"homeCardIframeContainer",dangerouslySetInnerHTML:{__html:e?.external?.iframe??""}});break;default:v=s.jsx(M,{"aria-label":e?.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:r,isVideo:l,isLarge:c,priorityHigh:d})});break}return s.jsxs("section",{className:"homeCardContent",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"homeCardContentWrapper",children:v}),s.jsx("div",{className:"homeCardNewsDescription",children:s.jsx(He,{main:t,authors:a,info:n,preview:r,share:u,config:o,overImage:h,isTitle:f,paths:p,keywords:i})})]})}const ra={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram",LinkedIn:"linkedin",Spotify:"spotify",Threads:"threads",Pinterest:"pinterest"},oa=()=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),s.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),s.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),s.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),ia=(e,t)=>a=>s.jsx("img",{className:a,src:ne(e),alt:t,fetchPriority:"low",loading:"lazy"}),D1={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(tn,{className:e,forceSVG:!0}),solid:e=>s.jsx(ss,{className:e,forceSVG:!0}),custom:ia("/ja-facebook.svg","Facebook")}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0}),custom:ia("/ja-x.svg","X")}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Qs,{className:e,forceSVG:!0}),solid:e=>s.jsx($s,{className:e,forceSVG:!0}),custom:ia("/ja-whatsapp.svg","Whatsapp")}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0}),custom:ia("/ja-linkedin.svg","LinkedIn")}}};function q1({noteShare:e,GoogleProfile:t}){const a=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const n=e.variant==="custom",r=pt();return s.jsxs("div",{className:"sass-com-ja5-socialNetworkSection",children:[e.options?.map(o=>{const i=D1[o];if(!i)return null;const l=i.icon[e.variant]??i.icon.solid,c=i.url(a);return s.jsx(M,{href:c,target:"_blank",rel:"noopener noreferrer","aria-label":`${r.shareOnPrefix??"Compartir en"} ${o}`,className:`sass-com-ja5-socialButton sass-com-ja5-${o.toLowerCase()}Button sass-com-ja5-${o.toLowerCase()}Styled`,children:l("")},o)}),s.jsx("button",{type:"button","data-text":r.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja5-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Ws,{forceSVG:!n})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja5-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(sn,{forceSVG:!n})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-com-ja5-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:String(t??"Seguir")}),s.jsx(oa,{})]})]})}const _i=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{CONFIG_shareOnlyWhatsApp:r,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i,EXPERIMENTAL_commentsV2Paths:l}=L(),c=t.info?.link?.internal??"",d=i||(l??[]).some(w=>c===w||c.endsWith(w)),u=de(),h=w=>`${u}/${e.paths.autor}/${w}`,f=t.authors.map(w=>w.internaluser?`<a href="${h(w.name)}">${w.fullname}</a>`:w.fullname).join(", "),m=t.authors.length===1?"sass-com-ja5--singleAuthor":"sass-com-ja5--multiAuthor",b=`sass-com-ja5-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:`sass-com-ja5-content sass-journalist-articule-5 ${m}`,children:s.jsxs("div",{className:"sass-com-ja5-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionsRow",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionDiv",children:[e.noteShare?.customButton&&(d?s.jsxs("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","aria-label":"Custom button for the journalist article",children:[s.jsx("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M0 22V4C0 3.45 0.195833 2.97917 0.5875 2.5875C0.979167 2.19583 1.45 2 2 2H12.1C12.0333 2.33333 12 2.66667 12 3C12 3.33333 12.0333 3.66667 12.1 4H2V17.125L3.15 16H18V7.9C18.3833 7.81667 18.7417 7.70417 19.075 7.5625C19.4083 7.42083 19.7167 7.23333 20 7V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H4L0 22ZM14.875 5.125C14.2917 4.54167 14 3.83333 14 3C14 2.16667 14.2917 1.45833 14.875 0.875C15.4583 0.291667 16.1667 0 17 0C17.8333 0 18.5417 0.291667 19.125 0.875C19.7083 1.45833 20 2.16667 20 3C20 3.83333 19.7083 4.54167 19.125 5.125C18.5417 5.70833 17.8333 6 17 6C16.1667 6 15.4583 5.70833 14.875 5.125Z",fill:"currentColor"})}),s.jsx("span",{children:String(n.CommentButtonJournalist??"Sumate al debate")})]}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"})),r&&s.jsxs("a",{className:"sass-com-ja5-socialActionLink",href:a[ra.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),s.jsx("span",{children:String(n.WhatsAppLinkJournalist??"")})]}),e.noteShare?.googleSourceShare&&s.jsxs(M,{href:e.noteShare?.googleSourceShare??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M12.6458 13.125L15.4896 11.4063L18.3333 13.125L17.5833 9.875L20.0833 7.71875L16.8021 7.4375L15.4896 4.375L14.1771 7.4375L10.8958 7.71875L13.3958 9.875L12.6458 13.125ZM13.2396 21.25H20.2396C20.0938 21.7917 19.8438 22.2292 19.4896 22.5625C19.1354 22.8958 18.6771 23.1042 18.1146 23.1875L4.48958 24.8438C3.80208 24.9479 3.18229 24.7865 2.63021 24.3594C2.07813 23.9323 1.76042 23.375 1.67708 22.6875L0.0208333 9.03125C-0.0625 8.34375 0.104167 7.72917 0.520833 7.1875C0.9375 6.64583 1.48958 6.33333 2.17708 6.25L3.61458 6.0625V8.5625L2.48958 8.71875L4.17708 22.375L13.2396 21.25ZM8.61458 18.75C7.92708 18.75 7.33854 18.5052 6.84896 18.0156C6.35938 17.526 6.11458 16.9375 6.11458 16.25V2.5C6.11458 1.8125 6.35938 1.22396 6.84896 0.734375C7.33854 0.244792 7.92708 0 8.61458 0H22.3646C23.0521 0 23.6406 0.244792 24.1302 0.734375C24.6198 1.22396 24.8646 1.8125 24.8646 2.5V16.25C24.8646 16.9375 24.6198 17.526 24.1302 18.0156C23.6406 18.5052 23.0521 18.75 22.3646 18.75H8.61458ZM8.61458 16.25H22.3646V2.5H8.61458V16.25Z",fill:"#363131"})}),s.jsx("span",{children:String(n.GoogleSource??"Añadir como fuente preferida")})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx(oa,{}),s.jsx("span",{children:String(n.GoogleProfile??"Seguir")})]})]}),s.jsx("div",{className:"sass-com-ja5-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(q1,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:["sass-com-ja5-journalistSection",m,t.config?.showtime&&"sass-com-ja5-journalistSection--withDate"].filter(Boolean).join(" "),children:[s.jsxs("div",{className:"sass-com-ja5-journalistMain",children:[s.jsx("div",{className:`sass-com-ja5-imageContent ${b}`,children:Array.isArray(t.authors)&&t.authors?.map(async w=>w.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+w.fullname,className:"sass-com-ja5-imageStyled sass-com-ja5-imageAutor su-object-cover su-flex-center",src:await ue(w.image.sizes[0]?.url||"")},w.fullname):s.jsx("div",{className:"sass-com-ja5-contentIconStyled sass-com-ja5-imageAutor su-flex-center",children:e.autorIcon},w.fullname))}),s.jsx("div",{className:`sass-com-ja5-journalistInfoLink ${m}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <span class="sass-com-ja5-journalistNames">${f??"Redaccion"}</span>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja5-journalistInfoDate",dateTime:ke(t.info.date.modified,o),...Xe(t.info.date.modified,void 0,"note"),children:Ft(t.info.date.modified)})]})]})})},wt=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=e.authors?.[0],r=n?.fullname??"Redacción",o=`${r} - `,i=!!e?.config?.showtime,l=i?Xe(e.info?.date?.modified,o):{},c=()=>i?`${o}${xe(e.info?.date?.modified)}`:r,d=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const h=e.keywords.tags[0],f=h.name;return h.approved?s.jsxs("h3",{children:[" ",s.jsx(M,{"aria-label":f,className:"sass-bmd-sup-tagmx",block_subPublication:a?.tema,href:Me(h,e.paths),children:f})]}):s.jsx("div",{className:"sass-bmd-sup-tagmx",children:f})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tagmx",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},u=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const h=e.keywords.tags[0],f=h.name;return h.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":f,className:"sass-bmd-sup-tag",block_subPublication:a?.tema,href:Me(h,e.paths),children:f})}):s.jsx("div",{className:"sass-bmd-sup-tag",children:f})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tag",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return s.jsxs("section",{className:"sass-bmd-sup-content destacado-super-content",children:[s.jsx(M,{href:e?.info?.link?.url,target:e?.info?.link?.target,"aria-label":e?.main?.title?.home,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:s.jsx(ve,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),s.jsxs("div",{className:"sass-bmd-sup-contentNews",children:[s.jsx(d,{}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(u,{}),s.jsx(M,{className:mt("sass-bmd-sup-linkTitle",e.speculationPrerenderClass),href:e?.info?.link?.url,target:e?.info?.link?.target,children:s.jsx("h1",{className:"sass-bmd-sup-titular",children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&s.jsx("div",{className:"sass-bmd-sup-description",dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),n?.internaluser?s.jsx(M,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${n?.name}`,className:"sass-bmd-sup-correspondent",...l,children:c()}):s.jsx("p",{className:"sass-bmd-sup-correspondentLink",...l,children:c()})]})]})},Di=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,showSuper:d,textPosition:u,heightImageOverwrite:h,heightImageOverwriteMobile:f}=e;return s.jsxs("section",{className:"su-grid su-w-full su-gap-8 sass-bmd-dd-content",children:[d?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(wt,{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,paths:e.paths,textPosition:u,heightImageOverwrite:h,heightImageOverwriteMobile:f,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Pe,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,speculationPrerenderClass:e.speculationPrerenderClass,priorityHigh:!0,isTitle:!0}),e.banners&&s.jsx(be,{banners:e.banners,name:"destacado_"+(e.rightOnlyBanner?1:2),legacy:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsx(Ks,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})},G1="w:412,h:231,t:2;",la=e=>Array.isArray(e)?e:[],F1=()=>{const e=ts();return s.jsx("div",{className:"sass-bmd-ddl-fallback","aria-hidden":"true",children:s.jsx(e,{className:"sass-bmd-ddl-fallbackPlayIcon"})})};async function j1(e){const{main:t,info:a,preview:n,config:r,isVideo:o,commonServices:i}=e,l=r?.homepreview,c=async()=>{if(!i||!a?.link?.internal)return null;try{return(await i.getNewsMultimedia({path:a.link.internal,imagesizes:G1}))?.data?.data?.[0]??null}catch{return null}};let d=null;switch(l){case"fotogaleria":{const u=await c(),h=la(u?.gallery);h.length>0&&(d=s.jsx(je,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:h.map((f,p)=>{const m=f?.url||f?.id||`gallery-${p}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(Za,{preview:n,isVideo:o})},m)})}));break}case"videoYouTube":{const u=await c(),h=la(u?.videos).find(f=>f?.type==="video-youtube")?.code;h&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-videoIframeContainer",src:`https://www.youtube.com/embed/${h}`,frameBorder:"0",allowFullScreen:!0}));break}case"videoEmbedded":{const u=await c(),h=la(u?.videos).find(f=>f?.type==="video-embedded");if(h?.code){const p=/src\s*=\s*"([^"]+)"/.exec(h.code)?.[1];p&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-embeddedIframeContainer",src:p,frameBorder:"0",allowFullScreen:!0}))}break}case"iframe":{const u=e.external?.iframe??"";u.trim()&&(d=s.jsx("div",{className:"sass-bmd-ddl-iframeContainer",dangerouslySetInnerHTML:{__html:u}}));break}case"videoFlash":{const u=await c(),h=la(u?.videos).find(f=>f?.type==="video-link");h?.code&&(d=s.jsx("iframe",{src:h.code,frameBorder:"0",allowFullScreen:!0,className:"sass-bmd-ddl-embeddedIframeContainer"}));break}case"imagen":{n&&(d=s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(ve,{preview:n})}));break}}return s.jsx("section",{className:"sass-bmd-ddl-contentHomeCard",children:d??s.jsx(F1,{})})}const H1=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,commonServices:d,showSuper:u,textPosition:h,heightImageOverwrite:f,heightImageOverwriteMobile:p}=e;return s.jsxs("section",{className:"sass-bmd-ddl-content",children:[s.jsx("div",{className:"sass-bmd-ddl-sectionCardWrapper",children:u?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(wt,{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,paths:e.paths,textPosition:h,heightImageOverwrite:f,heightImageOverwriteMobile:p,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Pe,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,isTitle:!0,priorityHigh:!0,speculationPrerenderClass:e.speculationPrerenderClass})}),s.jsxs("div",{className:"sass-bmd-ddl-newsDescriptionWrapper",children:[e.banners&&s.jsx(be,{banners:e.banners,name:"destacado_"+(e.rightOnlyBanner?1:2),legacy:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsxs("section",{children:[s.jsx("div",{className:"sass-bmd-ddl-playerWrapper",style:e.customLiveStyles,children:s.jsx(j1,{...e.block[0],paths:e.paths,commonServices:d})}),s.jsx(Ks,{block:e.block.slice(2,4),itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})]})]})},V1=({content:e,customLargeSection:t,customSmallSection:a,paths:n,speculationPrerenderClass:r})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&s.jsxs("section",{className:"sass-bmd-dnh-content",children:[s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnh-firstSection",children:s.jsx(wt,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})}),s.jsx("div",{style:a,className:"su-flex su-flex-col su-w-full su-h-auto sass-bmd-dnh-secondSection",children:e.map((i,l)=>l>0&&k.createElement(wt,{...i,key:l,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r}))})]})},z1=({content:e,customLargeSection:t,customSlimSection:a,paths:n,speculationPrerenderClass:r})=>Array.isArray(e)&&e.length>0&&s.jsx("section",{className:"su-grid su-w-full su-gap-2 sass-bmd-dnv-content",children:e.map((o,i)=>i===0?s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnv-firstSection",children:s.jsx(wt,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i):s.jsx("section",{style:a,children:k.createElement(wt,{...o,key:i,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i))}),qi=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=mt("sass-com-bh-title",e.speculationPrerenderClass),r=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],i=o.name;return o.approved?s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{"aria-label":i,className:"sass-com-bh-sectionDescription",block_subPublication:a?.tema,href:Me(o,e.paths),children:i})}):s.jsx("div",{className:"sass-com-bh-sectionDescription",children:i})}else if(e.mainNew.info?.section?.url)return s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{className:"sass-com-bh-sectionDescription",href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return s.jsxs("div",{className:"sass-com-bh-content",children:[s.jsx(r,{}),s.jsx(M,{className:n,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-com-bh-subtitle",children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&s.jsx(M,{href:e.goTo.url,className:"sass-com-bh-linkStyled",children:e.goTo.description})]})},Gi=e=>{const{content:t,title:a,isVideo:n,priorityHigh:r=!1,isLarge:o}=e;if(!t||!t[0]||t.length===0)return;const i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),l={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:i?t[0].main.title.home:t[0].main.title.section}}},c=t.slice(1),d=l;return l&&c&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"su-flex su-flex-col-reverse su-overflow-hidden sass-bd-dn-headerSection",children:[s.jsx(qi,{mainNew:l,goTo:e.goTo,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(wi,{homepreview:l.config?.homepreview,videos:d.videos,external:l.external,preview:l.preview,linkClassName:"sass-bd-dn-headerSectionLink sass-com-sc1-image",linkHref:l?.info?.link?.url,linkTarget:l?.info?.link?.target,linkTitle:l.main?.title?.section,isVideo:n,isLarge:o,priorityHigh:r})]}),s.jsxs("div",{className:"su-grid sass-bd-dn-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(c)&&c.map((u,h)=>{const f={...u,main:{...u.main,title:{...u.main.title,section:i?u.main.title.home:u.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Pe,{...f,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},h)})]})]})};function $1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const Q1=e=>{const{isOpinion:t=!1}=e,a=o=>s.jsx("div",{className:"sass-bs-mo-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mo-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},o),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];o===2&&n.push(a(o)),i&&n.push(s.jsx("div",{className:"sass-bs-mo-boxPosition",style:{order:o},children:s.jsx(rs,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${o}`))}const r=n.length%2===0?$1(n):n;return s.jsx("section",{style:e.customStyles,children:s.jsx(he,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:s.jsxs("div",{className:"sass-bs-mo-content",children:[s.jsx("div",{className:"sass-bs-mo-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mo-bannerContent",children:e.halfPageBanner})]})})})},W1=e=>{const{showTitle:t=!0}=e;return s.jsxs("div",{className:"sass-bs-eb1-content",children:[t&&s.jsx("p",{className:"sass-bs-eb1-title",children:"Editorial"}),s.jsx(He,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},Y1=e=>{const{news:t}=e,a=e.isHome??!1;return Array.isArray(t)&&s.jsxs("div",{className:"sass-bs-m2c-content",children:[s.jsxs("div",{className:"sass-bs-m2c-newsContent",children:[e.bannerArray&&e.bannerArray.map((n,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition banner-context",style:{order:2+5*r},children:s.jsx("div",{className:"sass-bs-m2c-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:n})})},r)),t.map((n,r)=>{const o={...n,main:{...n.main,title:{...n.main.title,section:a?n.main.title.home:n.main.title.section}}};return s.jsx("div",{className:"sass-bs-m2c-boxPosition",style:{order:r},children:s.jsx(Pe,{...o,share:e.share,paths:e.paths})},r)})]}),s.jsx("div",{className:"sass-bs-m2c-bannerContent",children:e.halfPageBanner})]})},K1=e=>s.jsxs(s.Fragment,{children:[s.jsx(ii,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction,linkUrl:e.linkUrl}),s.jsx(li,{...e})]}),Fi=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=c=>e.hasLines&&(c+1)%3!==0?"sass-bs-m3c-contentSeparator":"",n=c=>`${e.slot_id}_${c}`,r=c=>e.legacySlotId?`${e.legacySlotId}_${c}`:void 0,o=[];let i=0,l=1;for(let c=0;c<t.length;c++){e.banners&&e.bannerPositionIndex?.includes(c)&&(o.push(s.jsx("section",{className:a(i),children:e.banners?.some(f=>ka(n(l),r(l)).includes(f.key))&&s.jsx(be,{banners:e.banners,name:n(l),legacy:r(l)})},i)),i++,l++);const d=e.isVideo?At(t[c],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[c];if(!d)continue;const u=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),h={...d,main:{...d.main,title:{...d.main.title,section:u?d.main.title.home:d.main.title.section}}};o.push(s.jsx("section",{className:a(i),children:s.jsx(Pe,{...h,isVideo:e.isVideo,paths:e.paths,speculationPrerenderClass:ei(i,e.speculationPrerenderClass,e.speculationPrerender)})},i)),i++}return o.length===2&&o.push(s.jsx("div",{},i)),s.jsx("div",{className:`${e.hasLines?"sass-bs-m3c-newsContentWithLines":"sass-bs-m3c-newsContentWithoutLines"} sass-bs-m3c-newsContent`,children:o})};function J1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const Z1=e=>{const t=e.isHome??!1,a=s.jsx("div",{className:"sass-bs-mbn-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mbn-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},"banner-static"),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];if(o===2&&n.push(a),i){const l={...i,main:{...i.main,title:{...i.main.title,section:t?i.main.title.home:i.main.title.section}}};n.push(s.jsx("div",{className:"sass-bs-mbn-boxPosition",style:{order:o},children:s.jsx(He,{...l,paths:e.paths})},`description-block-2-odd-${o}`))}}n.length%2!==0&&n.push(s.jsx("div",{style:{order:n.length}},"extra_div"+n.length));const r=J1(n);return s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsxs("div",{className:"sass-bs-mbn-content",children:[s.jsx("div",{className:"sass-bs-mbn-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mbn-bannerContent",children:e.halfPageBanner})]})})},ji=e=>s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsx(Fi,{content:e.content,paths:e.paths,slot_id:e.slot_id,legacySlotId:e.legacySlotId,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle,speculationPrerender:e.speculationPrerender,speculationPrerenderClass:e.speculationPrerenderClass})}),Hi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m14-newsContent ${e.hasLines?"sass-bd-m14-contentSeparator":""}`,children:t?.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Pe,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},Vi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m15-newsContent ${e.hasLines?"sass-bd-m15-contentSeparator":"sass-bd-m15-newsContentWhitoutLine"}`,children:t.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Pe,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},zi=e=>{const{content:t,title:a,isVideo:n=!0}=e;if(!t||t.length===0)return;const r=t[0],o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i=t.slice(1);return r&&i&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"sass-bd-dv-headerSection",children:[s.jsx(qi,{goTo:e.goTo,mainNew:At(r),paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(M,{className:"sass-bd-dv-headerSectionLink",href:r?.info?.link.url,target:r?.info?.link.target,"aria-label":"Video",children:s.jsx(ve,{preview:{sizes:r?.main?.image.sizes,description:r?.main?.image.description},isVideo:n,isLarge:!0})})]}),s.jsxs("div",{className:"sass-bd-dv-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const d=At(l),u={...d,main:{...d.main,title:{...d.main.title,section:o?d.main.title.home:d.main.title.section}}};return s.jsx("div",{style:{order:c},children:k.createElement(Pe,{...u,isVideo:n,key:c,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})]})]})},X1=async e=>{const{showNewsLikeTitle:t=!1,speculationPrerenderClass:a}=e;return e&&e.info?s.jsxs("section",{className:"sass-com-sc6-content",style:{"--heightImageOverwrite":"100%"},children:[s.jsx(M,{className:"sass-com-sc6-linkImage",target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:s.jsx(ve,{preview:e.preview})}),s.jsx("div",{className:"sass-com-sc6-textContent",children:s.jsx(He,{...e,paths:e.paths,speculationPrerenderClass:a})})]}):null},$i=e=>{if(!e.content||e.content.length===0)return;const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{title:e.title,children:s.jsx("div",{className:`su-grid sass-bd-m13c-content ${e.hasLines?"sass-bd-m13c-contentSeparator":""}`,children:Array.isArray(e.content)&&e.content?.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx("section",{className:e.hasLines?"sass-bd-m13-hasLinesBlock":"",children:k.createElement(X1,{...r,key:n,showNewsLikeTitle:e.showNewsLikeTitle,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},n)})})})},Qi=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:s.jsx(ns,{...l,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},i)})})})},R1=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L(),{data:a,speculationPrerenderClass:n}=e,r=mt("sass-com-opt1-linkStyled",n);return s.jsxs("div",{className:"sass-com-opt1-content",children:[Array.isArray(a.authors)&&a?.authors[0]?.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-opt1-imageStyled",src:await ue(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-opt1-contentIcon",children:e.autorIcon}),s.jsxs("div",{className:"sass-com-opt1-boxInformation",children:[s.jsx("p",{className:"sass-com-opt1-authorName",children:a?.authors?.[0]?.internaluser?s.jsx(M,{block_subPublication:t?.autor,href:a.authors?.[0]?.internaluser?`/${e.paths.autor}/${a?.authors?.[0]?.name}`:"#",children:a?.authors?.[0]?.fullname??"Redacción"}):a?.authors?.[0]?.fullname??"Redacción"}),s.jsx("p",{className:"sass-com-opt1-title",children:s.jsx(M,{className:r,href:a?.info?.link?.url,target:a?.info?.link?.target,children:Be(a?.main?.title?.home,40)})}),s.jsx("p",{className:"sass-com-opt1-comment",children:a?.main?.subtitle?.striped}),s.jsx("p",{className:"sass-com-opt1-dateText",children:Ae(a.info.date.modified).locale("es").format("DD [De] MMMM")})]})]})},Wi=e=>{const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{titleUrl:e.titleUrl,title:e.title,children:s.jsx(je,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx(R1,{autorIcon:e.autorIcon,data:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},n)})})})},cn=({content:e,title:t,slot_id:a="video-carousel",titleUrl:n,identificador:r=0})=>{if(!e||e.length===0)return null;const o=ts();return s.jsx("div",{style:{"--carrousel-button-top":"230px"},children:s.jsx(he,{title:t,titleUrl:n,children:s.jsx(je,{slot_id:a,cardWidth:330,paginationCircle:!0,children:e.map(async(i,l)=>s.jsxs("div",{className:"sass-bd-vc-card",children:[s.jsxs("a",{href:i.info?.link?.url,className:"sass-bd-vc-imageWrapper",children:[s.jsx("img",{src:await ue(i?.main?.image?.sizes[0]?.url??""),alt:i.main?.title||"Video",className:"sass-bd-vc-image",width:329,height:485,loading:r===0&&l<4?"eager":"lazy",fetchPriority:r===0&&l<4?"high":"low",decoding:"async"}),s.jsx(o,{className:"sass-bd-vc-playIcon"})]}),s.jsxs("div",{className:"sass-bd-vc-cardContent",children:[s.jsx("a",{href:i.info?.link?.url,className:"sass-bd-vc-cardTitle",children:i?.main?.title}),s.jsx("div",{className:"sass-bd-vc-time",children:xe(i?.info?.date?.modified??i?.info?.date?.created)})]})]},l))})})})},dn=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent"});case"columnistasnacionales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(rs,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistaslocales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(rs,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistas":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(rs,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});default:return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Pe,{...t,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})}},ef=e=>{const{data:t,currentPage:a,banners:n,slug:r,ranking:o,pathname:i,texts:l={},custom_bannerPosition:c,loadMore:d}=e,u=d&&us(d.route)?s.jsx(nn,{route:d.route,slug:d.slug,renderedCount:t.length,batchSize:e.NEWS_PER_SECTION,currentPage:a,texts:l,paths:e.paths,prerenderClass:e.speculationPrerender?.class,cardOption:r}):s.jsx(di,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),h=c||{3:1,8:2,13:3},f=h?Object.keys(h).map(p=>parseInt(p)):[];switch(e.option){case"op1":return s.jsx(ki,{ranking:o,readestTitle:l.readestTitle??"",videosSectionLabel:l.videosSectionTitle,paths:e.paths,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(be,{banners:n??[],name:"right_1"}),banner:s.jsx(be,{banners:n??[],name:"right_2"}),children:s.jsx("section",{className:"sass-pg-sec-content",children:t.length>0?s.jsx(rn,{className:["sass-pg-sec-newsContentSection","padding-0"].join(" "),paginatorComponent:u,children:Array.isArray(t)&&t?.map((p,m)=>s.jsxs(k.Fragment,{children:[f.includes(m+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent banner-context",children:s.jsx(be,{banners:n??[],name:`block_${h[m+1]}`,legacy:`block_2_${h[m+1]}`})}),s.jsx(dn,{autorIcon:e.autorIcon,item:p,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&m<e.speculationPrerender.length?e.speculationPrerender.class:void 0},m)]},m))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return s.jsx(s.Fragment,{children:t.length>0?s.jsx(rn,{className:"padding-0",paginatorComponent:u,children:Array.isArray(t)&&t?.map((p,m)=>s.jsxs(k.Fragment,{children:[f.includes(m+1)&&s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(be,{banners:n??[],name:`block_${h[m+1]}`,legacy:`block_2_${h[m+1]}`})}),s.jsx(dn,{autorIcon:e.autorIcon,item:p,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&m<e.speculationPrerender.length?e.speculationPrerender.class:void 0},m)]},m))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return s.jsx(s.Fragment,{})}},tf=e=>{const{data:t}=e;return s.jsx("section",{className:"sass-pg-cont-content",children:t.map((a,n)=>s.jsx("div",{className:"sass-pg-cont-contactInfoContent",dangerouslySetInnerHTML:{__html:a.body.rendered}},n))})},sf=e=>s.jsxs("section",{className:"sass-com-lnoc-container",children:[s.jsx("div",{className:"sass-com-lnoc-note",children:e.children}),s.jsx("div",{className:"sass-com-lnoc-commercial",children:s.jsxs("div",{className:"sass-com-lnoc-commercialContent",children:[e.slug==="liveblogs"&&s.jsx(Ei,{itemList:e.itemList}),e.bannerTop,s.jsx(Js,{content:e.ranking,title:String(e.texts.readestTitle??""),videosSectionLabel:e.texts.videosSectionTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),s.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),s.jsx("div",{className:"sass-com-lnoc-complement",children:e.complement})]}),Yi=e=>{const t=e.option==="liveblogs",a=e.subtitleBeforeImage?"sass-pg-news-headerSection--subtitleBeforeImage":"",n=()=>{if(!e.news[0]?.main?.title)return qe("HeaderSectionComponent","news[0].main.title"),null;const r={...e.news[0],config:{...e.news[0]?.config??{},zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{...e.news[0]?.info?.link,url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return s.jsx("header",{className:a||void 0,style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"auto","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.liveblogs},children:s.jsx(Ni,{...r,commonServices:e.commonServices,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return s.jsx("header",{className:["sass-pg-news-contentHeader",a].filter(Boolean).join(" "),style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.common},children:s.jsx(He,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!0,colorSubTitle:"black",isTitle:!0,paths:e.paths,newsDescriptionSectionTag:e.newsDescriptionSectionTag})})}};return s.jsxs(s.Fragment,{children:[s.jsx(n,{}),!t&&e.commonServices&&s.jsx(Si,{news:e.news[0],commonServices:e.commonServices})]})},af=e=>s.jsx("section",{className:"su-w-full sass-com-ccard-content",id:e.id,children:e.children}),nf=async(e,t,a)=>{if(!a)return e;const n=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,r=[...e.matchAll(n)];let o=e;for(const i of r){const l=i[1],c=i[2]??"";let d;if(a.forEach(y=>{Array.isArray(y)&&!d&&(d=y.find(N=>c.replaceAll("/","|").includes(N?.info.link.internal||"")))}),!d){const y=l.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');o=o.replace(l,y);continue}const u=d.preview?.sizes?.[0],h=u?await ue(u.url):"",f=d.info.section?.url??"#",p=d.info.section?.name??"Sección",m=d.info.link?.url??"#",g=d.main?.title.article??"Título",b=(await Promise.all(d.preview?.sizes?.map(async y=>{const N=await ue(y.url);return y.width<200?`<source srcset="${N}" media="(width < 750px)"/>`:`<source srcset="${N}" media="(width >= 750px)"/>`})||[])).reduce((y,N)=>y+=N,""),w=l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),C=w?w[0]:"",S=`
430
+ h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})})},p1={tiktok:{hosts:["tiktok.com","vm.tiktok.com"],fromHandle:e=>`https://www.tiktok.com/@${e}`},youtube:{hosts:["youtube.com","youtu.be"],fromHandle:e=>/^UC[A-Za-z0-9_-]{22}$/.test(e)?`https://www.youtube.com/channel/${e}`:`https://www.youtube.com/@${e}`},pinterest:{hosts:["pinterest.com","pin.it","pinterest.es","pinterest.com.mx"],fromHandle:e=>`https://www.pinterest.com/${e}`}},g1=new Set(["","-","--",".","#","n/a","na","no","null","undefined","false","none","ninguno","ninguna","sin dato","sin datos"]),b1=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/,w1=e=>e.replace(/^[\s"'<(\[]+/,"").replace(/[\s"'>)\].,;:]+$/,""),A1=(e,t)=>/^https?:\/\//i.test(e)||/^www\./i.test(e)?!0:t.some(a=>e.toLowerCase().startsWith(`${a}/`)),y1=e=>{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;let a;try{a=new URL(t)}catch{return null}return!a.hostname.includes(".")||/\s/.test(a.hostname)?null:a.toString()},$e=(e,t)=>{const a=p1[e];if(!a||typeof t!="string")return"";const n=w1(t.trim());if(g1.has(n.toLowerCase()))return"";if(A1(n,a.hosts))return y1(n)??"";const r=n.replace(/^[@/]+/,"").replace(/\/+$/,"");return b1.test(r)?a.fromHandle(r):""},sa=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},xi=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),st=(e,t,a)=>s.jsx("img",{className:a,src:ne(`/autor-${e}.svg`),alt:t,fetchPriority:"low",loading:"lazy"}),C1=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,socialIconsCustom:r=!1,showPosition:o=!1,showEmailAsSocial:i=!1,allowBioHtml:l=!1}=e,c=a,{PUBLIC_LNG:d}=L(),u=d==="en",h=t?.addtional,f=t?.info?.image?.sizes?.[0]?.url??"",p=t?.info?.fullname??"",m=t?.info?.email??"",g=u?h?.USER_DESCRIPCION_EN||h?.USER_MIBIO_EN||"":h?.USER_DESCRIPCION||h?.USER_MIBIO||"",b=u?h?.USER_POSITION_EN||"":h?.USER_JOBTITLE||h?.USER_POSITION||"",w=sa(t?.addtional?.USER_USERFB??""),C=sa(t?.addtional?.USER_USERIG??""),S=sa(t?.addtional?.USER_USERTWT??""),v=sa(t?.addtional?.USER_USERLIN??""),y=$e("tiktok",h?.USER_PAGE_TIKTOK),N=$e("youtube",h?.USER_PAGE_YOUTUBE),x=$e("pinterest",h?.USER_PAGE_PINTEREST),O=()=>i||!m||m.trim()===""?!1:xi(m),$=h?.USER_SHOWEMAIL===!0||h?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",q=i&&$&&xi(m),B=G=>`mailto:${G.trim()}`;return s.jsx("section",{className:`sass-com-ah1-content su-flex-center su-relative su-w-full ${e.className??""}`,children:s.jsxs("div",{className:"sass-com-ah1-info",children:[f?s.jsx("div",{className:"sass-com-ah1-image-container sass-image-autor-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+p,className:"sass-com-ah1-image su-object-cover",src:await ue(f)})}):s.jsx("div",{className:"sass-com-ah1-icon-wrap sass-image-autor-wrapper su-flex-center",children:s.jsx(c,{})}),s.jsx("h1",{className:"sass-com-ah1-name",children:p}),o&&b&&s.jsx("p",{className:"sass-com-ah1-position",children:b}),O()&&s.jsx("a",{href:B(m),className:"sass-com-ah1-email","aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,children:m}),l?s.jsx("div",{className:"sass-com-ah1-description",dangerouslySetInnerHTML:{__html:Ms(g)}}):s.jsx("p",{className:"sass-com-ah1-description",children:g}),s.jsxs("div",{className:"sass-com-ah1-social",children:[w&&s.jsx("a",{href:w,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?st(n?"facebook-black":"facebook","Facebook","sass-com-ah1-social-icon sass-social-icon-facebook"):n?s.jsx(ss,{className:"sass-com-ah1-social-icon sass-social-icon-facebook",forceSVG:!0}):s.jsx(Zs,{className:"sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook",forceSVG:!0})}),C&&s.jsx("a",{href:C,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("instagram","Instagram","sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram"):s.jsx(Xs,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("x","X","sass-com-ah1-social-icon sass-com-ah1-social-icon-x"):s.jsx(ze,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-x",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?st(n?"linkedin-black":"linkedin","LinkedIn","sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin"):n?s.jsx(Ti,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"TikTok",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("tiktok","TikTok","sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok"):s.jsx(ea,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok",forceSVG:!0,width:28,height:28})}),N&&s.jsx("a",{href:N,target:"_blank","aria-label":"YouTube",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("youtube","YouTube","sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube"):s.jsx(ta,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube",forceSVG:!0,width:28,height:28})}),x&&s.jsx("a",{href:x,target:"_blank","aria-label":"Pinterest",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?st("pinterest","Pinterest","sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest"):s.jsx(Rs,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest",forceSVG:!0,width:28,height:28})}),q&&s.jsx("a",{href:B(m),"aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"nofollow noreferrer",children:r?st(n?"email-black":"email","Email","sass-com-ah1-social-icon sass-com-ah1-social-icon-email"):n?s.jsx(en,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0}):s.jsx(Ra,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0})})]})]})})},v1=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,allowBioHtml:r=!1}=e,o=a,{PUBLIC_LNG:i}=L(),l=i==="en",c=t?.addtional,d=t?.info?.image?.sizes?.[0]?.url??"",u=t?.info?.fullname??"",h=t?.info?.email??"",f=c?.USER_SHOWEMAIL===!0||c?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",p=c?.USER_SHOWBIO??!1,m=l?c?.USER_DESCRIPCION_EN||c?.USER_MIBIO_EN||"":c?.USER_DESCRIPCION||c?.USER_MIBIO||"",g=t?.addtional?.USER_USERFB??"",b=t?.addtional?.USER_USERIG??"",w=t?.addtional?.USER_USERTWT??"",C=t?.addtional?.USER_USERLIN??"",S=$e("tiktok",c?.USER_PAGE_TIKTOK),v=$e("youtube",c?.USER_PAGE_YOUTUBE),y=$e("pinterest",c?.USER_PAGE_PINTEREST);return s.jsx("section",{className:"sass-com-ah2-content su-flex su-w-full su-items-center su-justify-end",children:s.jsxs("div",{className:"sass-com-ah2-contentInfo su-stack-center su-relative su-w-full su-gap-2 su-p-4",children:[d?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-ah2-imageStyled su-object-cover",src:await ue(d)}):s.jsx("div",{className:"sass-com-ah2-contentIconStyled su-flex-center",children:s.jsx(o,{})}),s.jsxs("div",{className:"sass-com-ah2-contentAuthor su-stack-center su-md:items-start",children:[s.jsx("h1",{className:"sass-com-ah2-name",children:u}),f&&s.jsx("p",{className:"sass-com-ah2-email",children:h}),p&&(r?s.jsx("div",{className:"sass-com-ah2-description",dangerouslySetInnerHTML:{__html:Ms(m)}}):s.jsx("p",{className:"sass-com-ah2-description",children:m})),s.jsxs("div",{className:"sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",children:[g&&s.jsx("a",{href:g,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(ss,{className:"sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0}):s.jsx(Zs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0})}),b&&s.jsx("a",{href:b,target:"_blank",rel:"noreferrer",children:s.jsx(Xs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-instagram",forceSVG:!0})}),w&&s.jsx("a",{href:w,target:"_blank",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-x",forceSVG:!0})}),C&&s.jsx("a",{href:C,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(Ti,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(ea,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-tiktok",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(ta,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-youtube",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Rs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-pinterest",forceSVG:!0})})]})]})]})})},ki=e=>s.jsxs("section",{className:"sass-com-lnc-content",children:[e.children,s.jsxs("div",{className:"sass-com-lnc-bannerSection",style:e.readestCustomStyles,children:[e.bannerTop,s.jsx(Js,{content:e.ranking,title:e.readestTitle,videosSectionLabel:e.videosSectionLabel,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),S1=async e=>{const t=ts(),a={...e,main:{...e.main,title:{...e.main.title,article:Be(e.main.title.article,60)}}};return e&&e.info?s.jsxs("section",{className:"sass-com-sc7-content",children:[s.jsx("a",{className:"sass-com-sc7-linkImage",target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:s.jsxs("div",{style:{position:"relative"},children:[s.jsx("img",{src:await ue(e.preview.sizes[0]?.url||"")}),s.jsx(t,{className:"sass-com-sc7-playStyled saas-image-play-icon"})]})}),s.jsx("div",{className:"sass-com-sc7-newsDescription",children:s.jsx(He,{...a,paths:e.paths})})]}):null},N1=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),s.jsx("div",{className:"sass-com-bv4-content",children:s.jsxs(Gs,{className:"sass-com-bv4-contentLayoutVideoSection",children:[s.jsxs("a",{className:"sass-com-bv4-header",href:e.goBackLink??"/videos",children:[s.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"currentColor"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),s.jsxs("div",{className:"sass-com-bv4-videos",children:[s.jsxs("div",{className:"sass-com-bv4-videoContent",style:e.mainVideoStyles,children:[e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv4-contentFrame",dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),s.jsx("div",{className:"sass-com-bv4-articleSection",children:s.jsx(He,{isTitle:!0,cutSubtitle:!1,...At({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),s.jsxs("div",{className:"sass-com-bv4-sectionVideoList",style:e.listVideoStyles,children:[e.banner&&s.jsx(be,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&s.jsx("h2",{className:"sass-com-bv4-relatedTitle saas-video-related-title",children:e.relatedName}),Array.isArray(t)&&t.map((a,n)=>k.createElement(S1,{...At(a,!0,!1,!1),key:n,paths:e.paths}))]})]})]})})},he=k.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:n=!1,noHeading:r=!1}=e,o=r?s.jsx("div",{className:"sass-com-sec-title",children:e.title}):a?s.jsx("h1",{className:"sass-com-sec-title",children:e.title}):s.jsx("h2",{className:"sass-com-sec-title",children:e.title});return s.jsxs("section",{className:"sass-com-sec-content",children:[e.title&&s.jsxs("div",{className:["sass-com-sec-titleContent",e.className??""].join(" "),"data-after":`${n}`,children:[s.jsx("hr",{className:"sass-com-sec-startLine"}),e.titleUrl?s.jsx(M,{href:e.titleUrl,children:o}):o,s.jsx("hr",{className:"sass-com-sec-line"}),e.titleUrl&&s.jsx(M,{className:"sass-com-sec-readMore",href:e.titleUrl?.toString()??""})]}),e.title&&s.jsx("hr",{className:["sass-com-sec-bottomLine",e.className??""].join(" ")}),s.jsx("div",{className:"sass-com-sec-childrenContent",ref:t,children:e.children})]})}),on=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),aa=e=>s.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:"currentColor"})}),E1=()=>s.jsx("div",{className:"sass-com-sb-buttonContent",children:s.jsx("label",{className:"sass-com-sb-buttonStyled",htmlFor:"side-bar-state",children:s.jsx(gt,{className:"sass-com-sb-icon"})})}),T1=({action:e,placeholder:t,ariaLabel:a})=>s.jsx("div",{className:"sass-com-sb-inputContent",children:s.jsxs("form",{className:"sass-com-sb-inputStyled",action:e,method:"GET",children:[s.jsx("input",{className:"sass-com-sb-buscar",type:"text",name:"query",placeholder:t}),s.jsx("button",{type:"submit","aria-label":a,className:"sass-com-sb-searchSubmit",children:s.jsx(on,{color:"var(--search-input-icons)"})})]})}),x1=({item:e,index:t})=>{const a=`accordion_${t}`,n=Array.isArray(e.subitem);return s.jsxs("div",{className:"sass-com-sb-accordionStyled",children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"}}),s.jsx("span",{className:"sass-com-sb-accordionHeading",children:n?s.jsxs("div",{className:"sass-com-sb-accordionSummeryStyled",children:[e.link?s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link,target:e.target,children:e.description}):s.jsx("div",{className:"sass-com-sb-accordionTitle",children:e.description}),s.jsx("label",{className:"sass-com-sb-accordionToggle",htmlFor:a,"aria-label":`Expandir ${e.description}`,children:s.jsx(aa,{className:"sass-com-sb-accordionChevron",width:13,height:13})})]}):s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link??void 0,target:e.target,children:e.description})}),n&&s.jsx("div",{className:"sass-com-sb-accordionDetailsStyled",style:{"--max-height":`${e.subitem.length*45}px`},children:e.subitem.map((r,o)=>s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-subLinkStyled",href:r.link??void 0,target:r.target,children:r.description},o))})]})},k1=({socials:e,copyright:t})=>s.jsxs("div",{className:"sass-com-sb-footerSlider",children:[s.jsx("div",{className:"sass-com-sb-socialMedia",children:Object.keys(e).map(a=>e[a]?.show&&bt[a]?s.jsx("a",{href:e[a].url,target:"_blank",rel:"noreferrer","aria-label":`${e[a].title} link`,className:"sass-com-sb-linkSocialNetwork",children:bt[a]({className:`sass-com-sb-icon ${`sass-com-sb-icon-${a}`}`})},a):null)}),t&&s.jsx("p",{className:"sass-com-sb-copyRights",children:t})]}),I1=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:n,searchKeyWord:r,searchLink:o,custom_styles:i={}})=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:l,CONFIG_buscar_html:c}=L(),d=l?.buscar?de():"",u=c?".html":"";return s.jsxs("aside",{className:"sass-com-sb-drawerStyled",id:"sidebar-expandable",style:i,children:[s.jsx("input",{type:"checkbox",id:"side-bar-state"}),s.jsxs("section",{className:"sass-com-sb-sidebarCustom",children:[s.jsx(E1,{}),s.jsx(T1,{action:`${d}${o||"/buscar"}${u}`,placeholder:`${r}...`,ariaLabel:r}),s.jsxs("div",{className:"sass-com-sb-mainContent",children:[s.jsxs("div",{children:[n,e.map((h,f)=>s.jsx(x1,{item:h,index:f},f))]}),s.jsx(k1,{socials:t,copyright:a})]})]})]})},Ii=e=>s.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),Li=e=>{const{alertZone:t,id:a="close-alert"}=e,n=()=>s.jsx(M,{className:"sass-com-hlm-headLine",href:t?.data[0]?.info.link.url,target:t?.data[0]?.info.link.target,title:t?.data[0]?.main.title.home,children:t?.data[0]?.main?.title.home??""});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(t&&t?.data&&t?.data[0]?.main?.title.home)}),t&&t?.data&&t?.data[0]?.main?.title.home&&s.jsxs("div",{id:"alert-chip",className:"sass-com-hlm-content",style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[s.jsxs("div",{className:"sass-com-hlm-live",children:[s.jsx("div",{className:"sass-com-hlm-chipStyled",children:t?.entity?.description}),e.forceShow&&s.jsx(n,{}),s.jsx("label",{htmlFor:a,children:s.jsx(gt,{className:"sass-com-hlm-closeLiveStyled"})})]}),s.jsx(n,{})]})]})},Pi=e=>{const{cintillo:t,tapeTitle:a,socials:n}=e,r="",o=t?.findIndex(i=>i.link===r)??0;return(Array.isArray(t)||e.socialIcons)&&s.jsxs("section",{className:"sass-com-htape-content",children:[Array.isArray(t)&&s.jsxs("div",{className:"sass-com-htape-tabs header-page-tape-content",children:[a!==""&&s.jsx("p",{className:"sass-com-htape-title",children:`${a}`}),t&&t[o]&&s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",target:t[o]?.target,href:t[o]?.link,style:{color:t[o]?.link===r?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[o]?.link===r?"700":"400"},children:t[o]?.description},o),t&&t.map((i,l)=>{if(l!==o)return s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",href:i?.link,style:{color:i?.link===r?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===r?"700":"400"},children:i?.description},l)})]}),s.jsx("div",{className:"sass-com-htape-socialNetwork",children:Object.keys(n).map(i=>!i||!n[i]||!bt[i]?null:n[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[i].title+" link",className:"sass-com-htape-linkSocialNetwork",href:n[i].url,children:bt[i]({className:["sass-com-htape-icon",`sass-com-htape-${String(i)}`].join(" ")})},i))})]})},L1=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return s.jsxs("header",{className:"sass-com-h1sk-headerStyled",style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&s.jsx(Pi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{className:`${t&&t?.data&&!e.showAlertPop?"sass-com-h1sk-headerContentAlert":"sass-com-h1sk-headerContent"} center-mobile-header-icon`,children:[s.jsx(Xa,{id:"button-app",className:"sass-com-h1sk-menuButton",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:s.jsx(Ii,{className:"sass-com-h1sk-startIcon",color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),s.jsxs("div",{className:"sass-com-h1sk-iconContent",children:[s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:k.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.icon)}),e.mobileIcon?s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:k.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&s.jsxs("div",{className:"sass-com-h1sk-headLineContent",children:[s.jsx("div",{className:"sass-com-h1sk-headLineTitle headLineTitle",children:t.entity.description?`${t.entity.description}`:""}),s.jsx(M,{className:"sass-com-h1sk-headLine",href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:Be(t.data[0]?.main.title.home??"",120)})]}),s.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:["sass-com-h1sk-buttonSection",t?.data?"sass-com-h1sk-hasAlertZone":"","search-button"].join(" "),children:[s.jsx(M,{block_subPublication:n?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:"sass-com-h1sk-buttonSectionSearch search-button-icon",style:{display:"flex"},children:e.searchIcon??s.jsx(on,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),e.customComponent&&e.customComponent,!e.showAlertPop&&s.jsx(Li,{alertZone:t,forceShow:e.showAlertPop})]})},P1=e=>{const{items:t}=e;return s.jsx("ul",{className:"sass-com-mopt-ul",children:t.map((a,n)=>s.jsxs("li",{className:"sass-com-mopt-liBefore sass-com-mopt-li",children:[a.link?s.jsxs(M,{block_subPublication:!0,"aria-label":a.description,className:"sass-com-mopt-linkStyled",href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&s.jsx(aa,{})]}):s.jsxs("span",{"aria-label":a.description,className:"sass-com-mopt-linkStyled",children:[a.description,Array.isArray(a.subitem)&&s.jsx(aa,{})]}),Array.isArray(a.subitem)&&s.jsx("ul",{className:"sass-com-mopt-ulContent",children:s.jsx("div",{className:"sass-com-mopt-contentModal",children:a.subitem.map((r,o)=>s.jsx("li",{className:"sass-com-mopt-li",children:s.jsx(M,{block_subPublication:!0,className:"sass-com-mopt-itemLink","aria-label":r.description,href:r.link?r.link:void 0,target:r.target,children:r.description})},o))})})]},n))})},U1=e=>{const{menu:t,alertZone:a,custom_styles:n={},prerender_classes:r}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=L();return s.jsxs("header",{className:"sass-com-h1st-headerStyled",id:"saas-header-static",style:{...n,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.preHeader,e.socialIcons&&e.headerTape?.static&&s.jsx(Pi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:["sass-com-h1st-headerContent",a?.data?"sass-com-h1st-hasAlertZone":""].join(" "),children:[s.jsx("div",{className:"sass-com-h1st-menuButtonSection sass-header-menu-button",children:s.jsxs(Xa,{className:"sass-com-h1st-menuButton",id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[s.jsx(Ii,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),s.jsx("p",{className:"sass-com-h1st-buttonText",style:{lineHeight:0},children:e.menuText})]})}),s.jsx("div",{className:"sass-com-h1st-logoContent",children:s.jsx(M,{href:"/","aria-label":"Home",className:"header-logo-link",children:k.createElement("span",{className:"sass-com-h1st-logoStyled"},e.icon)})}),s.jsxs("div",{className:"sass-com-h1st-buttonSection sass-header-right-button-section",children:[s.jsx(M,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:"sass-com-h1st-buttonSectionSearch","aria-label":e.searchKeyWord,style:{display:"flex"},children:s.jsx(on,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?s.jsxs("div",{className:"sass-com-h1st-headLineContent",children:[s.jsx("p",{className:"sass-com-h1st-headLineTitle headLineTitle",children:a.entity.description?`${a.entity.description}`:""}),s.jsx(M,{className:`sass-com-h1st-headLine ${r?.alert}`,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:Be(a.data[0]?.main.title.home??"",120)})]}):s.jsx("div",{className:"sass-com-h1st-line"}),s.jsx("div",{className:"sass-com-h1st-menuSection",style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&s.jsx(P1,{items:t})})]}),e.customComponent&&e.customComponent]})},O1=e=>{const{alertZone:t,children:a,sidebar:n,custom_styles:r={}}=e,o=e.childrenContentTag??"div",i=s.jsxs(o,{className:["sass-com-h1-childrenContent",e.showAlertPop?"sass-com-h1-op2":"",t?.data?"sass-com-h1-childrenContentAux":""].join(" "),style:e.showOnlyStickyHeader?{...r,"--hasAlertMargin":"3.6rem !important"}:r,id:"content-layout",children:[e.showAlertPop&&s.jsx(Li,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return s.jsxs(s.Fragment,{children:[e.childrenContentPosition==="before-headers"&&i,s.jsx(L1,{...e}),!e.showOnlyStickyHeader&&s.jsx(U1,{...e}),e.childrenContentPosition!=="before-headers"&&i,s.jsx(I1,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:n,searchLink:e.searchLink,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},B1=async e=>{const t=e.info&&typeof e.info=="object"?e.info.image:void 0,a=(t&&typeof t=="object"?t:void 0)||e.image,r=a?.sizes?.find(o=>o.width===100&&o.height===100)?.url||a?.sizes?.[0]?.url||a?.original?.url||"";return r&&await ue(r)||""},Ui=({name:e,imageUrl:t})=>s.jsxs(s.Fragment,{children:[t?s.jsx("img",{className:"sass-com-ts-chipImage su-object-cover",src:t,alt:"",loading:"lazy",fetchPriority:"low"}):null,e]}),Oi=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L();if(!e?.tags?.length)return null;const a=await Promise.all(e.tags.map(async n=>({item:n,imageUrl:await B1(n)})));return s.jsx("section",{className:"sass-com-ts-content",children:s.jsxs("div",{className:"sass-com-ts-tags",children:[s.jsx("p",{className:"sass-com-ts-tagStyled",children:e.title?e.title:"Tags:"}),a.map(({item:n,imageUrl:r},o)=>n.approved?s.jsx(M,{block_subPublication:t?.tema,href:Me(n,e.paths),children:s.jsx("div",{className:["sass-com-ts-chipStyled","sass-com-ts-tagLink",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(Ui,{name:n.name,imageUrl:r})})},o):s.jsx("div",{className:["sass-com-ts-chipStyled",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(Ui,{name:n.name,imageUrl:r})},o))]})})},Bi=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,PUBLIC_LNG:n}=L(),r=de(),o=n==="en",i=t?.addtional,l=t?.info?.name??"",c=t?.info?.fullname??"",d=t?.info?.image?.sizes?.[0]?.url??"",u=o?i?.USER_DESCRIPCION_EN||i?.USER_MIBIO_EN||"":i?.USER_DESCRIPCION||i?.USER_MIBIO||"",h=Ms(u),f=t?.addtional?.USER_USERFB??"",p=t?.addtional?.USER_USERIG??"",m=t?.addtional?.USER_USERTWT??"",g=t?.addtional?.USER_USERLIN??"",b=$e("tiktok",i?.USER_PAGE_TIKTOK),w=$e("youtube",i?.USER_PAGE_YOUTUBE),C=$e("pinterest",i?.USER_PAGE_PINTEREST),S=`${r}/${e.paths.autor}/${l}`,N=u.replace(/<[^>]*>/g,"").replace(/&[^;]+;/g," ").trim().length>360,x=`ja2-bio-toggle-${l}`;return!!t&&s.jsx("section",{className:"sass-com-ja2-contentBox",children:s.jsxs("div",{className:"sass-com-ja2-content",children:[s.jsxs("div",{className:"sass-com-ja2-avatarContent",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:S,children:d?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+l,className:"sass-com-ja2-imageStyled",src:await ue(d)}):s.jsx("div",{className:"sass-com-ja2-contentIconStyled",children:e.autorIcon})}),s.jsxs("section",{className:"sass-com-ja2-journalistSection",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:S,children:c}),s.jsxs("section",{className:"sass-com-ja2-socialNetworkSection",children:[f&&s.jsx("a",{href:f,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),p&&s.jsx("a",{href:p,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[s.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),s.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),s.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_281_2357",children:s.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),m&&s.jsx("a",{href:m,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),g&&s.jsx("a",{href:g,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})}),b&&s.jsx("a",{href:b,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(ea,{className:"sass-com-ja2-tiktokStyled",forceSVG:!0,width:24,height:24})}),w&&s.jsx("a",{href:w,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(ta,{className:"sass-com-ja2-youtubeStyled",forceSVG:!0,width:24,height:24})}),C&&s.jsx("a",{href:C,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Rs,{className:"sass-com-ja2-pinterestStyled",forceSVG:!0,width:24,height:24})})]})]})]}),N?s.jsxs("div",{className:"sass-com-ja2-bioExpandable",children:[s.jsx("input",{type:"checkbox",id:x,className:"sass-com-ja2-bioToggle"}),s.jsx("div",{className:"sass-com-ja2-article sass-com-ja2-article-clamp",dangerouslySetInnerHTML:{__html:h}}),s.jsxs("div",{className:"sass-com-ja2-bioFooter",children:[s.jsxs("label",{htmlFor:x,className:"sass-com-ja2-bioToggleLink",children:[s.jsx("span",{className:"sass-com-ja2-bioToggleLinkMore",children:String(e.texts.authorViewMore??"Ver más")}),s.jsx("span",{className:"sass-com-ja2-bioToggleLinkLess",children:"Ver menos"})]}),s.jsx("label",{htmlFor:x,className:"sass-com-ja2-bioArrow","aria-label":"Leer más / Leer menos",children:s.jsx("svg",{viewBox:"0 0 24 24",fill:"none",width:"18",height:"18","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),s.jsx("a",{"aria-label":l,className:"sass-com-ja2-bioAuthorLink",href:S,children:String(e.texts.authorViewMore??"Ver más")})]}):s.jsx("div",{className:"sass-com-ja2-article",dangerouslySetInnerHTML:{__html:`${h} <a aria-label="${l}" href="${S}">${String(e.texts.authorViewMore??"Ver más")}</a>`}})]})})},Mi=async e=>{const{news:t,texts:a}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return t?t.config?.showauthor&&t.authors?.length>1&&s.jsx("div",{className:"sass-com-jg-content su-flex su-w-full su-flex-col su-items-center su-justify-evenly su-gap-0 su-md:flex-row",children:Array.isArray(t.authors)&&t.authors?.map(async r=>s.jsxs("div",{className:"sass-com-jg-contentCard",children:[r.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-jg-imageStyled su-flex-center",src:await ue(r.image?.sizes?.[0]?.url||"")},r.fullname):s.jsx("div",{className:"sass-com-jg-contentIconStyled su-flex-center",children:e.autorIcon},r.fullname),s.jsxs("div",{className:"sass-com-jg-contentInfo",children:[r.internaluser?s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-fullName",href:`/${e.paths.autor}/${r.name}`,children:r.fullname}):s.jsx("p",{className:"sass-com-jg-fullName",children:r.fullname}),r.internaluser&&s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-LearnMoreLink",href:`/${e.paths.autor}/${r.name}`,children:String(a.JournalistGroupLink??"")})]})]},`author-${r.firstname}`))}):(qe("JournalistGroup","news"),null)},na=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},M1=async e=>{const t=e.img?await ue(e.img):"",a=na(e.social?.facebook??""),n=na(e.social?.instagram??""),r=na(e.social?.twitter??""),o=na(e.social?.linkedin??""),i=e.social&&(a||n||r||o);return s.jsx("section",{className:`sass-com-th-content ${e.className}`,children:s.jsxs("div",{className:`sass-com-th-contentInfo ${t?"":"sass-com-th-contentInfoWithoutImg"}`,children:[e.img&&s.jsx("div",{className:"sass-com-th-imageContainer sass-image-tag-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-th-imageStyled su-object-cover",src:t})}),s.jsx("h1",{className:"sass-com-th-name",children:e.tag}),e.description&&s.jsx("div",{className:"sass-com-th-description",dangerouslySetInnerHTML:{__html:e.description}}),e.url&&s.jsx("a",{className:"sass-com-th-urlTag",href:e.url,children:e.url}),i&&s.jsxs("div",{className:"sass-com-th-contenSocialNetwork",children:[a&&s.jsx("a",{href:a,target:"_blank",className:"sass-com-th-socialFacebookIcon sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Zs,{className:"sass-com-th-faceBookIcon",forceSVG:!0})}),n&&s.jsx("a",{href:n,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(Xs,{className:"sass-com-th-socialIcon",forceSVG:!0})}),r&&s.jsx("a",{href:r,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-th-socialIcon",forceSVG:!0})}),o&&s.jsx("a",{href:o,target:"_blank",className:"sass-com-th-socialIconLink sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Ve,{className:"sass-com-th-socialIcon",forceSVG:!0})})]})]})})},ln=s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",fill:"currentColor",children:s.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})});function _1({googleSourceShare:e,googleProfile:t,whatsAppShare:a,text:n}){return s.jsxs("div",{className:"sass-com-src-container",children:[e&&s.jsxs("a",{className:"sass-com-src-button",href:e,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google Source",width:28,height:28}),n.sourceButtons?.googleSourceShare||"Añádenos como fuente preferida",ln]}),t&&s.jsxs("a",{className:"sass-com-src-button",href:t,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-news-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google News",width:28,height:28}),n.sourceButtons?.googleProfile||"Google News",ln]}),a&&s.jsxs("a",{className:"sass-com-src-button",href:a,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-whatsapp-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"WhatsApp",width:28,height:28}),n.sourceButtons?.whatsAppShare||"Sumate al canal de WhatsApp",ln]})]})}function D1(e){const{main:t,authors:a,info:n,preview:r,config:o,keywords:i,isVideo:l,isLarge:c,priorityHigh:d,share:u,overImage:h,isTitle:f,paths:p}=e,{CONFIG_videoClipUrl:m}=L(),g=o?.homepreview??"imagen",b=()=>{const y=e.videos?.[0]?.clip;return y?s.jsx("div",{className:"homeCardVideoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,width:"480",height:"535",children:s.jsx("source",{src:`${m}${y}`,type:"video/mp4"})})}):null},w=()=>{if(!e.videos)return null;const y=e.videos?.[0]?.code;return y?s.jsx("iframe",{className:"homeCardVideoIframeContainer",src:`https://www.youtube.com/embed/${y}`,frameBorder:"0",allowFullScreen:!0}):null},C=()=>{if(!e.videos)return null;const y=(e.videos??[]).find(G=>G.type==="video-embedded");if(!y?.code)return null;const x=/src\s*=\s*"([^"]+)"/.exec(y.code),O=x?x[1]:null;if(!O)return null;const $=r.original?.url??r.sizes?.[0]?.url??"",q=Ye()??"",B=$.startsWith("http")||$.includes(q)||q===""?$:q+$;return s.jsx("iframe",{className:"homeCardEmbeddedIframeContainer",src:O,frameBorder:"0",allowFullScreen:!0,style:{"--thumbnail-url":`url(${B})`}})},S=()=>{const N=e.gallery??[];return N.length?s.jsx(je,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:N.map((x,O)=>{const $=x?.url||x?.id||`gallery-${O}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:x,isVideo:l,isLarge:c,priorityHigh:d})},$)})}):null};let v=null;switch(g){case"fotogaleria":v=s.jsx(S,{});break;case"videoYouTube":v=s.jsx(w,{});break;case"videoEmbedded":v=s.jsx(C,{});break;case"clip":v=s.jsx(b,{});break;case"iframe":v=s.jsx("div",{className:"homeCardIframeContainer",dangerouslySetInnerHTML:{__html:e?.external?.iframe??""}});break;default:v=s.jsx(M,{"aria-label":e?.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:r,isVideo:l,isLarge:c,priorityHigh:d})});break}return s.jsxs("section",{className:"homeCardContent",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"homeCardContentWrapper",children:v}),s.jsx("div",{className:"homeCardNewsDescription",children:s.jsx(He,{main:t,authors:a,info:n,preview:r,share:u,config:o,overImage:h,isTitle:f,paths:p,keywords:i})})]})}const ra={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram",LinkedIn:"linkedin",Spotify:"spotify",Threads:"threads",Pinterest:"pinterest"},oa=()=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),s.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),s.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),s.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),ia=(e,t)=>a=>s.jsx("img",{className:a,src:ne(e),alt:t,fetchPriority:"low",loading:"lazy"}),q1={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(tn,{className:e,forceSVG:!0}),solid:e=>s.jsx(ss,{className:e,forceSVG:!0}),custom:ia("/ja-facebook.svg","Facebook")}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0}),custom:ia("/ja-x.svg","X")}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Qs,{className:e,forceSVG:!0}),solid:e=>s.jsx($s,{className:e,forceSVG:!0}),custom:ia("/ja-whatsapp.svg","Whatsapp")}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0}),custom:ia("/ja-linkedin.svg","LinkedIn")}}};function G1({noteShare:e,GoogleProfile:t}){const a=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const n=e.variant==="custom",r=pt();return s.jsxs("div",{className:"sass-com-ja5-socialNetworkSection",children:[e.options?.map(o=>{const i=q1[o];if(!i)return null;const l=i.icon[e.variant]??i.icon.solid,c=i.url(a);return s.jsx(M,{href:c,target:"_blank",rel:"noopener noreferrer","aria-label":`${r.shareOnPrefix??"Compartir en"} ${o}`,className:`sass-com-ja5-socialButton sass-com-ja5-${o.toLowerCase()}Button sass-com-ja5-${o.toLowerCase()}Styled`,children:l("")},o)}),s.jsx("button",{type:"button","data-text":r.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja5-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Ws,{forceSVG:!n})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja5-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(sn,{forceSVG:!n})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-com-ja5-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:String(t??"Seguir")}),s.jsx(oa,{})]})]})}const _i=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{CONFIG_shareOnlyWhatsApp:r,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i,EXPERIMENTAL_commentsV2Paths:l}=L(),c=t.info?.link?.internal??"",d=i||(l??[]).some(w=>c===w||c.endsWith(w)),u=de(),h=w=>`${u}/${e.paths.autor}/${w}`,f=t.authors.map(w=>w.internaluser?`<a href="${h(w.name)}">${w.fullname}</a>`:w.fullname).join(", "),m=t.authors.length===1?"sass-com-ja5--singleAuthor":"sass-com-ja5--multiAuthor",b=`sass-com-ja5-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:`sass-com-ja5-content sass-journalist-articule-5 ${m}`,children:s.jsxs("div",{className:"sass-com-ja5-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionsRow",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionDiv",children:[e.noteShare?.customButton&&(d?s.jsxs("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","aria-label":"Custom button for the journalist article",children:[s.jsx("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M0 22V4C0 3.45 0.195833 2.97917 0.5875 2.5875C0.979167 2.19583 1.45 2 2 2H12.1C12.0333 2.33333 12 2.66667 12 3C12 3.33333 12.0333 3.66667 12.1 4H2V17.125L3.15 16H18V7.9C18.3833 7.81667 18.7417 7.70417 19.075 7.5625C19.4083 7.42083 19.7167 7.23333 20 7V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H4L0 22ZM14.875 5.125C14.2917 4.54167 14 3.83333 14 3C14 2.16667 14.2917 1.45833 14.875 0.875C15.4583 0.291667 16.1667 0 17 0C17.8333 0 18.5417 0.291667 19.125 0.875C19.7083 1.45833 20 2.16667 20 3C20 3.83333 19.7083 4.54167 19.125 5.125C18.5417 5.70833 17.8333 6 17 6C16.1667 6 15.4583 5.70833 14.875 5.125Z",fill:"currentColor"})}),s.jsx("span",{children:String(n.CommentButtonJournalist??"Sumate al debate")})]}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"})),r&&s.jsxs("a",{className:"sass-com-ja5-socialActionLink",href:a[ra.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),s.jsx("span",{children:String(n.WhatsAppLinkJournalist??"")})]}),e.noteShare?.googleSourceShare&&s.jsxs(M,{href:e.noteShare?.googleSourceShare??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M12.6458 13.125L15.4896 11.4063L18.3333 13.125L17.5833 9.875L20.0833 7.71875L16.8021 7.4375L15.4896 4.375L14.1771 7.4375L10.8958 7.71875L13.3958 9.875L12.6458 13.125ZM13.2396 21.25H20.2396C20.0938 21.7917 19.8438 22.2292 19.4896 22.5625C19.1354 22.8958 18.6771 23.1042 18.1146 23.1875L4.48958 24.8438C3.80208 24.9479 3.18229 24.7865 2.63021 24.3594C2.07813 23.9323 1.76042 23.375 1.67708 22.6875L0.0208333 9.03125C-0.0625 8.34375 0.104167 7.72917 0.520833 7.1875C0.9375 6.64583 1.48958 6.33333 2.17708 6.25L3.61458 6.0625V8.5625L2.48958 8.71875L4.17708 22.375L13.2396 21.25ZM8.61458 18.75C7.92708 18.75 7.33854 18.5052 6.84896 18.0156C6.35938 17.526 6.11458 16.9375 6.11458 16.25V2.5C6.11458 1.8125 6.35938 1.22396 6.84896 0.734375C7.33854 0.244792 7.92708 0 8.61458 0H22.3646C23.0521 0 23.6406 0.244792 24.1302 0.734375C24.6198 1.22396 24.8646 1.8125 24.8646 2.5V16.25C24.8646 16.9375 24.6198 17.526 24.1302 18.0156C23.6406 18.5052 23.0521 18.75 22.3646 18.75H8.61458ZM8.61458 16.25H22.3646V2.5H8.61458V16.25Z",fill:"#363131"})}),s.jsx("span",{children:String(n.GoogleSource??"Añadir como fuente preferida")})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx(oa,{}),s.jsx("span",{children:String(n.GoogleProfile??"Seguir")})]})]}),s.jsx("div",{className:"sass-com-ja5-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(G1,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:["sass-com-ja5-journalistSection",m,t.config?.showtime&&"sass-com-ja5-journalistSection--withDate"].filter(Boolean).join(" "),children:[s.jsxs("div",{className:"sass-com-ja5-journalistMain",children:[s.jsx("div",{className:`sass-com-ja5-imageContent ${b}`,children:Array.isArray(t.authors)&&t.authors?.map(async w=>w.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+w.fullname,className:"sass-com-ja5-imageStyled sass-com-ja5-imageAutor su-object-cover su-flex-center",src:await ue(w.image.sizes[0]?.url||"")},w.fullname):s.jsx("div",{className:"sass-com-ja5-contentIconStyled sass-com-ja5-imageAutor su-flex-center",children:e.autorIcon},w.fullname))}),s.jsx("div",{className:`sass-com-ja5-journalistInfoLink ${m}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <span class="sass-com-ja5-journalistNames">${f??"Redaccion"}</span>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja5-journalistInfoDate",dateTime:ke(t.info.date.modified,o),...Xe(t.info.date.modified,void 0,"note"),children:Ft(t.info.date.modified)})]})]})})},wt=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=e.authors?.[0],r=n?.fullname??"Redacción",o=`${r} - `,i=!!e?.config?.showtime,l=i?Xe(e.info?.date?.modified,o):{},c=()=>i?`${o}${xe(e.info?.date?.modified)}`:r,d=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const h=e.keywords.tags[0],f=h.name;return h.approved?s.jsxs("h3",{children:[" ",s.jsx(M,{"aria-label":f,className:"sass-bmd-sup-tagmx",block_subPublication:a?.tema,href:Me(h,e.paths),children:f})]}):s.jsx("div",{className:"sass-bmd-sup-tagmx",children:f})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tagmx",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},u=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const h=e.keywords.tags[0],f=h.name;return h.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":f,className:"sass-bmd-sup-tag",block_subPublication:a?.tema,href:Me(h,e.paths),children:f})}):s.jsx("div",{className:"sass-bmd-sup-tag",children:f})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tag",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return s.jsxs("section",{className:"sass-bmd-sup-content destacado-super-content",children:[s.jsx(M,{href:e?.info?.link?.url,target:e?.info?.link?.target,"aria-label":e?.main?.title?.home,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:s.jsx(ve,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),s.jsxs("div",{className:"sass-bmd-sup-contentNews",children:[s.jsx(d,{}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(u,{}),s.jsx(M,{className:mt("sass-bmd-sup-linkTitle",e.speculationPrerenderClass),href:e?.info?.link?.url,target:e?.info?.link?.target,children:s.jsx("h1",{className:"sass-bmd-sup-titular",children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&s.jsx("div",{className:"sass-bmd-sup-description",dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),n?.internaluser?s.jsx(M,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${n?.name}`,className:"sass-bmd-sup-correspondent",...l,children:c()}):s.jsx("p",{className:"sass-bmd-sup-correspondentLink",...l,children:c()})]})]})},Di=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,showSuper:d,textPosition:u,heightImageOverwrite:h,heightImageOverwriteMobile:f}=e;return s.jsxs("section",{className:"su-grid su-w-full su-gap-8 sass-bmd-dd-content",children:[d?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(wt,{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,paths:e.paths,textPosition:u,heightImageOverwrite:h,heightImageOverwriteMobile:f,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Pe,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,speculationPrerenderClass:e.speculationPrerenderClass,priorityHigh:!0,isTitle:!0}),e.banners&&s.jsx(be,{banners:e.banners,name:"destacado_"+(e.rightOnlyBanner?1:2),legacy:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsx(Ks,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})},F1="w:412,h:231,t:2;",la=e=>Array.isArray(e)?e:[],j1=()=>{const e=ts();return s.jsx("div",{className:"sass-bmd-ddl-fallback","aria-hidden":"true",children:s.jsx(e,{className:"sass-bmd-ddl-fallbackPlayIcon"})})};async function H1(e){const{main:t,info:a,preview:n,config:r,isVideo:o,commonServices:i}=e,l=r?.homepreview,c=async()=>{if(!i||!a?.link?.internal)return null;try{return(await i.getNewsMultimedia({path:a.link.internal,imagesizes:F1}))?.data?.data?.[0]??null}catch{return null}};let d=null;switch(l){case"fotogaleria":{const u=await c(),h=la(u?.gallery);h.length>0&&(d=s.jsx(je,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:h.map((f,p)=>{const m=f?.url||f?.id||`gallery-${p}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(Za,{preview:n,isVideo:o})},m)})}));break}case"videoYouTube":{const u=await c(),h=la(u?.videos).find(f=>f?.type==="video-youtube")?.code;h&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-videoIframeContainer",src:`https://www.youtube.com/embed/${h}`,frameBorder:"0",allowFullScreen:!0}));break}case"videoEmbedded":{const u=await c(),h=la(u?.videos).find(f=>f?.type==="video-embedded");if(h?.code){const p=/src\s*=\s*"([^"]+)"/.exec(h.code)?.[1];p&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-embeddedIframeContainer",src:p,frameBorder:"0",allowFullScreen:!0}))}break}case"iframe":{const u=e.external?.iframe??"";u.trim()&&(d=s.jsx("div",{className:"sass-bmd-ddl-iframeContainer",dangerouslySetInnerHTML:{__html:u}}));break}case"videoFlash":{const u=await c(),h=la(u?.videos).find(f=>f?.type==="video-link");h?.code&&(d=s.jsx("iframe",{src:h.code,frameBorder:"0",allowFullScreen:!0,className:"sass-bmd-ddl-embeddedIframeContainer"}));break}case"imagen":{n&&(d=s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(ve,{preview:n})}));break}}return s.jsx("section",{className:"sass-bmd-ddl-contentHomeCard",children:d??s.jsx(j1,{})})}const V1=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,commonServices:d,showSuper:u,textPosition:h,heightImageOverwrite:f,heightImageOverwriteMobile:p}=e;return s.jsxs("section",{className:"sass-bmd-ddl-content",children:[s.jsx("div",{className:"sass-bmd-ddl-sectionCardWrapper",children:u?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(wt,{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,paths:e.paths,textPosition:h,heightImageOverwrite:f,heightImageOverwriteMobile:p,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Pe,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,isTitle:!0,priorityHigh:!0,speculationPrerenderClass:e.speculationPrerenderClass})}),s.jsxs("div",{className:"sass-bmd-ddl-newsDescriptionWrapper",children:[e.banners&&s.jsx(be,{banners:e.banners,name:"destacado_"+(e.rightOnlyBanner?1:2),legacy:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsxs("section",{children:[s.jsx("div",{className:"sass-bmd-ddl-playerWrapper",style:e.customLiveStyles,children:s.jsx(H1,{...e.block[0],paths:e.paths,commonServices:d})}),s.jsx(Ks,{block:e.block.slice(2,4),itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})]})]})},z1=({content:e,customLargeSection:t,customSmallSection:a,paths:n,speculationPrerenderClass:r})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&s.jsxs("section",{className:"sass-bmd-dnh-content",children:[s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnh-firstSection",children:s.jsx(wt,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})}),s.jsx("div",{style:a,className:"su-flex su-flex-col su-w-full su-h-auto sass-bmd-dnh-secondSection",children:e.map((i,l)=>l>0&&k.createElement(wt,{...i,key:l,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r}))})]})},$1=({content:e,customLargeSection:t,customSlimSection:a,paths:n,speculationPrerenderClass:r})=>Array.isArray(e)&&e.length>0&&s.jsx("section",{className:"su-grid su-w-full su-gap-2 sass-bmd-dnv-content",children:e.map((o,i)=>i===0?s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnv-firstSection",children:s.jsx(wt,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i):s.jsx("section",{style:a,children:k.createElement(wt,{...o,key:i,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i))}),qi=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=mt("sass-com-bh-title",e.speculationPrerenderClass),r=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],i=o.name;return o.approved?s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{"aria-label":i,className:"sass-com-bh-sectionDescription",block_subPublication:a?.tema,href:Me(o,e.paths),children:i})}):s.jsx("div",{className:"sass-com-bh-sectionDescription",children:i})}else if(e.mainNew.info?.section?.url)return s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{className:"sass-com-bh-sectionDescription",href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return s.jsxs("div",{className:"sass-com-bh-content",children:[s.jsx(r,{}),s.jsx(M,{className:n,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-com-bh-subtitle",children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&s.jsx(M,{href:e.goTo.url,className:"sass-com-bh-linkStyled",children:e.goTo.description})]})},Gi=e=>{const{content:t,title:a,isVideo:n,priorityHigh:r=!1,isLarge:o}=e;if(!t||!t[0]||t.length===0)return;const i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),l={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:i?t[0].main.title.home:t[0].main.title.section}}},c=t.slice(1),d=l;return l&&c&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"su-flex su-flex-col-reverse su-overflow-hidden sass-bd-dn-headerSection",children:[s.jsx(qi,{mainNew:l,goTo:e.goTo,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(wi,{homepreview:l.config?.homepreview,videos:d.videos,external:l.external,preview:l.preview,linkClassName:"sass-bd-dn-headerSectionLink sass-com-sc1-image",linkHref:l?.info?.link?.url,linkTarget:l?.info?.link?.target,linkTitle:l.main?.title?.section,isVideo:n,isLarge:o,priorityHigh:r})]}),s.jsxs("div",{className:"su-grid sass-bd-dn-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(c)&&c.map((u,h)=>{const f={...u,main:{...u.main,title:{...u.main.title,section:i?u.main.title.home:u.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Pe,{...f,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},h)})]})]})};function Q1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const W1=e=>{const{isOpinion:t=!1}=e,a=o=>s.jsx("div",{className:"sass-bs-mo-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mo-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},o),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];o===2&&n.push(a(o)),i&&n.push(s.jsx("div",{className:"sass-bs-mo-boxPosition",style:{order:o},children:s.jsx(rs,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${o}`))}const r=n.length%2===0?Q1(n):n;return s.jsx("section",{style:e.customStyles,children:s.jsx(he,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:s.jsxs("div",{className:"sass-bs-mo-content",children:[s.jsx("div",{className:"sass-bs-mo-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mo-bannerContent",children:e.halfPageBanner})]})})})},Y1=e=>{const{showTitle:t=!0}=e;return s.jsxs("div",{className:"sass-bs-eb1-content",children:[t&&s.jsx("p",{className:"sass-bs-eb1-title",children:"Editorial"}),s.jsx(He,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},K1=e=>{const{news:t}=e,a=e.isHome??!1;return Array.isArray(t)&&s.jsxs("div",{className:"sass-bs-m2c-content",children:[s.jsxs("div",{className:"sass-bs-m2c-newsContent",children:[e.bannerArray&&e.bannerArray.map((n,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition banner-context",style:{order:2+5*r},children:s.jsx("div",{className:"sass-bs-m2c-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:n})})},r)),t.map((n,r)=>{const o={...n,main:{...n.main,title:{...n.main.title,section:a?n.main.title.home:n.main.title.section}}};return s.jsx("div",{className:"sass-bs-m2c-boxPosition",style:{order:r},children:s.jsx(Pe,{...o,share:e.share,paths:e.paths})},r)})]}),s.jsx("div",{className:"sass-bs-m2c-bannerContent",children:e.halfPageBanner})]})},J1=e=>s.jsxs(s.Fragment,{children:[s.jsx(ii,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction,linkUrl:e.linkUrl}),s.jsx(li,{...e})]}),Fi=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=c=>e.hasLines&&(c+1)%3!==0?"sass-bs-m3c-contentSeparator":"",n=c=>`${e.slot_id}_${c}`,r=c=>e.legacySlotId?`${e.legacySlotId}_${c}`:void 0,o=[];let i=0,l=1;for(let c=0;c<t.length;c++){e.banners&&e.bannerPositionIndex?.includes(c)&&(o.push(s.jsx("section",{className:a(i),children:e.banners?.some(f=>ka(n(l),r(l)).includes(f.key))&&s.jsx(be,{banners:e.banners,name:n(l),legacy:r(l)})},i)),i++,l++);const d=e.isVideo?At(t[c],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[c];if(!d)continue;const u=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),h={...d,main:{...d.main,title:{...d.main.title,section:u?d.main.title.home:d.main.title.section}}};o.push(s.jsx("section",{className:a(i),children:s.jsx(Pe,{...h,isVideo:e.isVideo,paths:e.paths,speculationPrerenderClass:ei(i,e.speculationPrerenderClass,e.speculationPrerender)})},i)),i++}return o.length===2&&o.push(s.jsx("div",{},i)),s.jsx("div",{className:`${e.hasLines?"sass-bs-m3c-newsContentWithLines":"sass-bs-m3c-newsContentWithoutLines"} sass-bs-m3c-newsContent`,children:o})};function Z1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const X1=e=>{const t=e.isHome??!1,a=s.jsx("div",{className:"sass-bs-mbn-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mbn-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},"banner-static"),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];if(o===2&&n.push(a),i){const l={...i,main:{...i.main,title:{...i.main.title,section:t?i.main.title.home:i.main.title.section}}};n.push(s.jsx("div",{className:"sass-bs-mbn-boxPosition",style:{order:o},children:s.jsx(He,{...l,paths:e.paths})},`description-block-2-odd-${o}`))}}n.length%2!==0&&n.push(s.jsx("div",{style:{order:n.length}},"extra_div"+n.length));const r=Z1(n);return s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsxs("div",{className:"sass-bs-mbn-content",children:[s.jsx("div",{className:"sass-bs-mbn-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mbn-bannerContent",children:e.halfPageBanner})]})})},ji=e=>s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsx(Fi,{content:e.content,paths:e.paths,slot_id:e.slot_id,legacySlotId:e.legacySlotId,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle,speculationPrerender:e.speculationPrerender,speculationPrerenderClass:e.speculationPrerenderClass})}),Hi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m14-newsContent ${e.hasLines?"sass-bd-m14-contentSeparator":""}`,children:t?.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Pe,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},Vi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m15-newsContent ${e.hasLines?"sass-bd-m15-contentSeparator":"sass-bd-m15-newsContentWhitoutLine"}`,children:t.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Pe,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},zi=e=>{const{content:t,title:a,isVideo:n=!0}=e;if(!t||t.length===0)return;const r=t[0],o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i=t.slice(1);return r&&i&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"sass-bd-dv-headerSection",children:[s.jsx(qi,{goTo:e.goTo,mainNew:At(r),paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(M,{className:"sass-bd-dv-headerSectionLink",href:r?.info?.link.url,target:r?.info?.link.target,"aria-label":"Video",children:s.jsx(ve,{preview:{sizes:r?.main?.image.sizes,description:r?.main?.image.description},isVideo:n,isLarge:!0})})]}),s.jsxs("div",{className:"sass-bd-dv-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const d=At(l),u={...d,main:{...d.main,title:{...d.main.title,section:o?d.main.title.home:d.main.title.section}}};return s.jsx("div",{style:{order:c},children:k.createElement(Pe,{...u,isVideo:n,key:c,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})]})]})},R1=async e=>{const{showNewsLikeTitle:t=!1,speculationPrerenderClass:a}=e;return e&&e.info?s.jsxs("section",{className:"sass-com-sc6-content",style:{"--heightImageOverwrite":"100%"},children:[s.jsx(M,{className:"sass-com-sc6-linkImage",target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:s.jsx(ve,{preview:e.preview})}),s.jsx("div",{className:"sass-com-sc6-textContent",children:s.jsx(He,{...e,paths:e.paths,speculationPrerenderClass:a})})]}):null},$i=e=>{if(!e.content||e.content.length===0)return;const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{title:e.title,children:s.jsx("div",{className:`su-grid sass-bd-m13c-content ${e.hasLines?"sass-bd-m13c-contentSeparator":""}`,children:Array.isArray(e.content)&&e.content?.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx("section",{className:e.hasLines?"sass-bd-m13-hasLinesBlock":"",children:k.createElement(R1,{...r,key:n,showNewsLikeTitle:e.showNewsLikeTitle,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},n)})})})},Qi=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:s.jsx(ns,{...l,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},i)})})})},ef=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L(),{data:a,speculationPrerenderClass:n}=e,r=mt("sass-com-opt1-linkStyled",n);return s.jsxs("div",{className:"sass-com-opt1-content",children:[Array.isArray(a.authors)&&a?.authors[0]?.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-opt1-imageStyled",src:await ue(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-opt1-contentIcon",children:e.autorIcon}),s.jsxs("div",{className:"sass-com-opt1-boxInformation",children:[s.jsx("p",{className:"sass-com-opt1-authorName",children:a?.authors?.[0]?.internaluser?s.jsx(M,{block_subPublication:t?.autor,href:a.authors?.[0]?.internaluser?`/${e.paths.autor}/${a?.authors?.[0]?.name}`:"#",children:a?.authors?.[0]?.fullname??"Redacción"}):a?.authors?.[0]?.fullname??"Redacción"}),s.jsx("p",{className:"sass-com-opt1-title",children:s.jsx(M,{className:r,href:a?.info?.link?.url,target:a?.info?.link?.target,children:Be(a?.main?.title?.home,40)})}),s.jsx("p",{className:"sass-com-opt1-comment",children:a?.main?.subtitle?.striped}),s.jsx("p",{className:"sass-com-opt1-dateText",children:Ae(a.info.date.modified).locale("es").format("DD [De] MMMM")})]})]})},Wi=e=>{const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{titleUrl:e.titleUrl,title:e.title,children:s.jsx(je,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx(ef,{autorIcon:e.autorIcon,data:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},n)})})})},cn=({content:e,title:t,slot_id:a="video-carousel",titleUrl:n,identificador:r=0})=>{if(!e||e.length===0)return null;const o=ts();return s.jsx("div",{style:{"--carrousel-button-top":"230px"},children:s.jsx(he,{title:t,titleUrl:n,children:s.jsx(je,{slot_id:a,cardWidth:330,children:e.map(async(i,l)=>s.jsxs("div",{className:"sass-bd-vc-card",children:[s.jsxs("a",{href:i.info?.link?.url,className:"sass-bd-vc-imageWrapper",children:[s.jsx("img",{src:await ue(i?.main?.image?.sizes[0]?.url??""),alt:i.main?.title||"Video",className:"sass-bd-vc-image",width:329,height:485,loading:r===0&&l<4?"eager":"lazy",fetchPriority:r===0&&l<4?"high":"low",decoding:"async"}),s.jsx(o,{className:"sass-bd-vc-playIcon"})]}),s.jsxs("div",{className:"sass-bd-vc-cardContent",children:[s.jsx("a",{href:i.info?.link?.url,className:"sass-bd-vc-cardTitle",children:i?.main?.title}),s.jsx("div",{className:"sass-bd-vc-time",children:xe(i?.info?.date?.modified??i?.info?.date?.created)})]})]},l))})})})},dn=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent"});case"columnistasnacionales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(rs,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistaslocales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(rs,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistas":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(rs,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});default:return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Pe,{...t,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})}},tf=e=>{const{data:t,currentPage:a,banners:n,slug:r,ranking:o,pathname:i,texts:l={},custom_bannerPosition:c,loadMore:d}=e,u=d&&us(d.route)?s.jsx(nn,{route:d.route,slug:d.slug,renderedCount:t.length,batchSize:e.NEWS_PER_SECTION,currentPage:a,texts:l,paths:e.paths,prerenderClass:e.speculationPrerender?.class,cardOption:r}):s.jsx(di,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),h=c||{3:1,8:2,13:3},f=h?Object.keys(h).map(p=>parseInt(p)):[];switch(e.option){case"op1":return s.jsx(ki,{ranking:o,readestTitle:l.readestTitle??"",videosSectionLabel:l.videosSectionTitle,paths:e.paths,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(be,{banners:n??[],name:"right_1"}),banner:s.jsx(be,{banners:n??[],name:"right_2"}),children:s.jsx("section",{className:"sass-pg-sec-content",children:t.length>0?s.jsx(rn,{className:["sass-pg-sec-newsContentSection","padding-0"].join(" "),paginatorComponent:u,children:Array.isArray(t)&&t?.map((p,m)=>s.jsxs(k.Fragment,{children:[f.includes(m+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent banner-context",children:s.jsx(be,{banners:n??[],name:`block_${h[m+1]}`,legacy:`block_2_${h[m+1]}`})}),s.jsx(dn,{autorIcon:e.autorIcon,item:p,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&m<e.speculationPrerender.length?e.speculationPrerender.class:void 0},m)]},m))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return s.jsx(s.Fragment,{children:t.length>0?s.jsx(rn,{className:"padding-0",paginatorComponent:u,children:Array.isArray(t)&&t?.map((p,m)=>s.jsxs(k.Fragment,{children:[f.includes(m+1)&&s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(be,{banners:n??[],name:`block_${h[m+1]}`,legacy:`block_2_${h[m+1]}`})}),s.jsx(dn,{autorIcon:e.autorIcon,item:p,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&m<e.speculationPrerender.length?e.speculationPrerender.class:void 0},m)]},m))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return s.jsx(s.Fragment,{})}},sf=e=>{const{data:t}=e;return s.jsx("section",{className:"sass-pg-cont-content",children:t.map((a,n)=>s.jsx("div",{className:"sass-pg-cont-contactInfoContent",dangerouslySetInnerHTML:{__html:a.body.rendered}},n))})},af=e=>s.jsxs("section",{className:"sass-com-lnoc-container",children:[s.jsx("div",{className:"sass-com-lnoc-note",children:e.children}),s.jsx("div",{className:"sass-com-lnoc-commercial",children:s.jsxs("div",{className:"sass-com-lnoc-commercialContent",children:[e.slug==="liveblogs"&&s.jsx(Ei,{itemList:e.itemList}),e.bannerTop,s.jsx(Js,{content:e.ranking,title:String(e.texts.readestTitle??""),videosSectionLabel:e.texts.videosSectionTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),s.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),s.jsx("div",{className:"sass-com-lnoc-complement",children:e.complement})]}),Yi=e=>{const t=e.option==="liveblogs",a=e.subtitleBeforeImage?"sass-pg-news-headerSection--subtitleBeforeImage":"",n=()=>{if(!e.news[0]?.main?.title)return qe("HeaderSectionComponent","news[0].main.title"),null;const r={...e.news[0],config:{...e.news[0]?.config??{},zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{...e.news[0]?.info?.link,url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return s.jsx("header",{className:a||void 0,style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"auto","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.liveblogs},children:s.jsx(Ni,{...r,commonServices:e.commonServices,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return s.jsx("header",{className:["sass-pg-news-contentHeader",a].filter(Boolean).join(" "),style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.common},children:s.jsx(He,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!0,colorSubTitle:"black",isTitle:!0,paths:e.paths,newsDescriptionSectionTag:e.newsDescriptionSectionTag})})}};return s.jsxs(s.Fragment,{children:[s.jsx(n,{}),!t&&e.commonServices&&s.jsx(Si,{news:e.news[0],commonServices:e.commonServices})]})},nf=e=>s.jsx("section",{className:"su-w-full sass-com-ccard-content",id:e.id,children:e.children}),rf=async(e,t,a)=>{if(!a)return e;const n=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,r=[...e.matchAll(n)];let o=e;for(const i of r){const l=i[1],c=i[2]??"";let d;if(a.forEach(y=>{Array.isArray(y)&&!d&&(d=y.find(N=>c.replaceAll("/","|").includes(N?.info.link.internal||"")))}),!d){const y=l.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');o=o.replace(l,y);continue}const u=d.preview?.sizes?.[0],h=u?await ue(u.url):"",f=d.info.section?.url??"#",p=d.info.section?.name??"Sección",m=d.info.link?.url??"#",g=d.main?.title.article??"Título",b=(await Promise.all(d.preview?.sizes?.map(async y=>{const N=await ue(y.url);return y.width<200?`<source srcset="${N}" media="(width < 750px)"/>`:`<source srcset="${N}" media="(width >= 750px)"/>`})||[])).reduce((y,N)=>y+=N,""),w=l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),C=w?w[0]:"",S=`
431
431
  <span data-src="${c}">
432
432
  <picture style='display: flex'>
433
433
  ${b}
@@ -438,7 +438,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
438
438
  <a class="title" href="${m}">${g}</a>
439
439
  </div>
440
440
  </span>
441
- `,v=l.replace(C,S);o=o.replace(l,v)}return o},rf=e=>e.replace(/<p>(\s|&nbsp;)+<\/p>/g,""),of=e=>{const t=/\ssrc="\/(?!\/)(.*?)"/g;return e.replace(t,` src="${Ye()}/$1"`)};function lf(e){if(!e)return e;const t=e.indexOf("/video");return t===-1?e:e.substring(t)}async function cf(e,t){let a="",n=0;const r=/<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=r.exec(e))!==null;){const i=o.index,l=r.lastIndex;a+=e.slice(n,i);const c=o[0];let d=o[1]??"";d&&(d=lf(d));const u=/data-type\s*=\s*["']?video["']?/i.test(c)||/video-type\s*=\s*["']?embedded["']?/i.test(c);let h=c;if(u&&d)try{const f=await t.iframe({path:d}),p=t.schema?await t.schema(d):null;if(f&&f.data){const m=f.data.data[0];let g="";const b=c.match(/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i),w=b&&b[1]?b[1].trim():"";m.info&&m.info.type==="video-youtube"?g=`<iframe
441
+ `,v=l.replace(C,S);o=o.replace(l,v)}return o},of=e=>e.replace(/<p>(\s|&nbsp;)+<\/p>/g,""),lf=e=>{const t=/\ssrc="\/(?!\/)(.*?)"/g;return e.replace(t,` src="${Ye()}/$1"`)};function cf(e){if(!e)return e;const t=e.indexOf("/video");return t===-1?e:e.substring(t)}async function df(e,t){let a="",n=0;const r=/<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=r.exec(e))!==null;){const i=o.index,l=r.lastIndex;a+=e.slice(n,i);const c=o[0];let d=o[1]??"";d&&(d=cf(d));const u=/data-type\s*=\s*["']?video["']?/i.test(c)||/video-type\s*=\s*["']?embedded["']?/i.test(c);let h=c;if(u&&d)try{const f=await t.iframe({path:d}),p=t.schema?await t.schema(d):null;if(f&&f.data){const m=f.data.data[0];let g="";const b=c.match(/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i),w=b&&b[1]?b[1].trim():"";m.info&&m.info.type==="video-youtube"?g=`<iframe
442
442
  loading="lazy"
443
443
  frameborder="0"
444
444
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
@@ -458,7 +458,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
458
458
  ${g}
459
459
  ${C?`<figcaption>${C}</figcaption>`:""}
460
460
  </figure>
461
- `}}catch(f){console.error("replaceVideoSpansWithIframes error for",d,f),h=c}n=l,a+=h,r.lastIndex=l}return a+=e.slice(n),a}function df(e){return e.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,"")}const uf=async({itemList:e,slug:t,banners:a,texts:n,getVideos:r,newsRelatedListResponses:o,scope:i})=>{if(!e||e.length===0||!e[0])return;const l=e[0].list?.items?.map(async c=>{const d=rf(c.body.rendered);let u=of(d);return u=df(u),u=await cf(u,r),u=za(u),{...c,body:{...c.body,rendered:u}}});return s.jsx("section",{className:"sass-com-bnl-content",id:"block-notes-list",children:l?.map(async(c,d)=>s.jsxs(k.Fragment,{children:[s.jsx(af,{id:`item-${d+1}`,children:s.jsxs("div",{className:"sass-com-bnl-contentWithinCard",children:[(await c).date>0&&s.jsxs("div",{className:"sass-com-bnl-contentDate",children:[s.jsx("span",{className:"sass-com-bnl-dot",style:{background:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-dot-color)":"var(--common-black)"}}),s.jsx("p",{className:"sass-com-bnl-dateInfo",style:{color:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-color)":"var(--common-black)"},children:Ft((await c).date)})]}),s.jsx("h2",{className:"sass-com-bnl-contentTitle",children:e[0]?.list.integrated?(await c).title:s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"sass-com-bnl-contentTitleIndex",children:[(await c).index,"."," "]}),(await c).title]})}),(await c).image&&s.jsx(ve,{preview:(await c).image,isLarge:!0}),s.jsx("div",{className:"contentTextList sass-com-bnl-contentTextList",dangerouslySetInnerHTML:{__html:await nf((await c).body.rendered.replace(/&nbsp;/g,""),n,o)}}),(await c).related&&s.jsx("div",{className:"sass-com-bnl-contentButton",children:s.jsx("a",{className:"sass-com-bnl-linkStyled",href:(await c).related??"",target:"”_blank",children:String(n.blockNoteList_readMore??"Leer Más")})})]})},d),a?.some(u=>u.key===`list_${d+1}`)&&s.jsx(be,{banners:a,name:`list_${d+1}`,scope:i},d)]},d))})};function hf({url:e}){return e&&e!==""&&s.jsxs(M,{href:e,className:"sass-com-ja3-googleProfileButton",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),"Síguenos en",s.jsx(ff,{})]})}const ff=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 272 92",width:"272",height:"92",children:[s.jsx("path",{fill:"#EA4335",d:"M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#FBBC05",d:"M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#4285F4",d:"M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"}),s.jsx("path",{fill:"#34A853",d:"M225 3v65h-9.5V3h9.5z"}),s.jsx("path",{fill:"#EA4335",d:"M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"}),s.jsx("path",{fill:"#4285F4",d:"M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"})]}),mf=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{DATE_TIMEZONE:r="America/Mexico_City",CONFIG_shareOnlyWhatsApp:o}=L(),i=de(),l=p=>`${i}/${e.paths.autor}/${p}`,c=t.authors.map(p=>p.internaluser?`<a href="${l(p.name)}">${p.fullname}</a>`:p.fullname).join(", "),u=t.authors.length===1?"sass-com-ja3--singleAuthor":"sass-com-ja3--multiAuthor",f=`sass-com-ja3-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:"sass-com-ja3-content",children:s.jsxs("div",{className:"sass-com-ja3-avatarContent",children:[o?s.jsxs("a",{className:"sass-com-ja3-whatsappLink",href:a[ra.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),String(n.WhatsAppLinkJournalist??"")]}):s.jsx("div",{className:"sass-com-ja3-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(ci,{noteShare:e.noteShare})}),s.jsx(hf,{url:e.noteShare?.googleProfile?.url??""}),s.jsxs("section",{className:`sass-com-ja3-journalistSection ${u}`,children:[s.jsx("div",{className:`sass-com-ja3-imageContent ${f}`,children:Array.isArray(t.authors)&&t.authors?.map(async(p,m)=>p.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+p.fullname,className:"sass-com-ja3-imageStyled sass-com-ja3-imageAutor su-object-cover su-flex-center",src:await ue(p.image.sizes[0]?.url||"")},p.fullname):s.jsx("div",{className:"sass-com-ja3-contentIconStyled sass-com-ja3-imageAutor su-flex-center",children:e.autorIcon},p.fullname))}),c&&s.jsx("div",{className:`sass-com-ja3-journalistInfoLink ${u}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <h3>${c??"Redaccion"}${t.config?.showtime&&","}</h3> <time datetime="${ke(t.info.date.modified,r)}"${t.config?.showtime?zs(t.info.date.modified,void 0,"note"):""}>${t.config?.showtime?Ft(t.info.date.modified):null}`}})]})]})})},pf=async({summary:e})=>e&&e.rendered&&s.jsx("section",{className:"sass-com-bns-summaryContent sass-summary-content",dangerouslySetInnerHTML:{__html:e.rendered}}),Ki=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return;if(!e?.preview?.sizes){qe("GalleryHeader","preview.sizes");return}const n=e.preview.sizes,o=(await a.getNewsMultimedia({path:t,imagesizes:n?n[0]?.scale:a.contract.note.itemsListPrimary}))?.data.data[0]?.gallery??[];return s.jsxs("div",{className:"sass-com-in2-content",children:[s.jsx(je,{slot_id:"header",fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:o&&o.map((i,l)=>s.jsx(ve,{preview:i,priorityHigh:!0},l))}),s.jsx("div",{className:"sass-com-in2-description",children:o&&o[0]?.description})]})};function gf(e){const t=e.children,a=`${e.slot_id}-`,n=e.visibleItems,r=e.cardGap??20;function o(l){const c=[],d=[];let u="",h=!0;for(let f=0;f<l;f++){const p=`[data-index="${f}"]:checked ~ .carrousel-pagination li:nth-child(${f+1}) {
461
+ `}}catch(f){console.error("replaceVideoSpansWithIframes error for",d,f),h=c}n=l,a+=h,r.lastIndex=l}return a+=e.slice(n),a}function uf(e){return e.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,"")}const hf=async({itemList:e,slug:t,banners:a,texts:n,getVideos:r,newsRelatedListResponses:o,scope:i})=>{if(!e||e.length===0||!e[0])return;const l=e[0].list?.items?.map(async c=>{const d=of(c.body.rendered);let u=lf(d);return u=uf(u),u=await df(u,r),u=za(u),{...c,body:{...c.body,rendered:u}}});return s.jsx("section",{className:"sass-com-bnl-content",id:"block-notes-list",children:l?.map(async(c,d)=>s.jsxs(k.Fragment,{children:[s.jsx(nf,{id:`item-${d+1}`,children:s.jsxs("div",{className:"sass-com-bnl-contentWithinCard",children:[(await c).date>0&&s.jsxs("div",{className:"sass-com-bnl-contentDate",children:[s.jsx("span",{className:"sass-com-bnl-dot",style:{background:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-dot-color)":"var(--common-black)"}}),s.jsx("p",{className:"sass-com-bnl-dateInfo",style:{color:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-color)":"var(--common-black)"},children:Ft((await c).date)})]}),s.jsx("h2",{className:"sass-com-bnl-contentTitle",children:e[0]?.list.integrated?(await c).title:s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"sass-com-bnl-contentTitleIndex",children:[(await c).index,"."," "]}),(await c).title]})}),(await c).image&&s.jsx(ve,{preview:(await c).image,isLarge:!0}),s.jsx("div",{className:"contentTextList sass-com-bnl-contentTextList",dangerouslySetInnerHTML:{__html:await rf((await c).body.rendered.replace(/&nbsp;/g,""),n,o)}}),(await c).related&&s.jsx("div",{className:"sass-com-bnl-contentButton",children:s.jsx("a",{className:"sass-com-bnl-linkStyled",href:(await c).related??"",target:"”_blank",children:String(n.blockNoteList_readMore??"Leer Más")})})]})},d),a?.some(u=>u.key===`list_${d+1}`)&&s.jsx(be,{banners:a,name:`list_${d+1}`,scope:i},d)]},d))})};function ff({url:e}){return e&&e!==""&&s.jsxs(M,{href:e,className:"sass-com-ja3-googleProfileButton",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),"Síguenos en",s.jsx(mf,{})]})}const mf=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 272 92",width:"272",height:"92",children:[s.jsx("path",{fill:"#EA4335",d:"M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#FBBC05",d:"M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#4285F4",d:"M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"}),s.jsx("path",{fill:"#34A853",d:"M225 3v65h-9.5V3h9.5z"}),s.jsx("path",{fill:"#EA4335",d:"M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"}),s.jsx("path",{fill:"#4285F4",d:"M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"})]}),pf=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{DATE_TIMEZONE:r="America/Mexico_City",CONFIG_shareOnlyWhatsApp:o}=L(),i=de(),l=p=>`${i}/${e.paths.autor}/${p}`,c=t.authors.map(p=>p.internaluser?`<a href="${l(p.name)}">${p.fullname}</a>`:p.fullname).join(", "),u=t.authors.length===1?"sass-com-ja3--singleAuthor":"sass-com-ja3--multiAuthor",f=`sass-com-ja3-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:"sass-com-ja3-content",children:s.jsxs("div",{className:"sass-com-ja3-avatarContent",children:[o?s.jsxs("a",{className:"sass-com-ja3-whatsappLink",href:a[ra.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),String(n.WhatsAppLinkJournalist??"")]}):s.jsx("div",{className:"sass-com-ja3-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(ci,{noteShare:e.noteShare})}),s.jsx(ff,{url:e.noteShare?.googleProfile?.url??""}),s.jsxs("section",{className:`sass-com-ja3-journalistSection ${u}`,children:[s.jsx("div",{className:`sass-com-ja3-imageContent ${f}`,children:Array.isArray(t.authors)&&t.authors?.map(async(p,m)=>p.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+p.fullname,className:"sass-com-ja3-imageStyled sass-com-ja3-imageAutor su-object-cover su-flex-center",src:await ue(p.image.sizes[0]?.url||"")},p.fullname):s.jsx("div",{className:"sass-com-ja3-contentIconStyled sass-com-ja3-imageAutor su-flex-center",children:e.autorIcon},p.fullname))}),c&&s.jsx("div",{className:`sass-com-ja3-journalistInfoLink ${u}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <h3>${c??"Redaccion"}${t.config?.showtime&&","}</h3> <time datetime="${ke(t.info.date.modified,r)}"${t.config?.showtime?zs(t.info.date.modified,void 0,"note"):""}>${t.config?.showtime?Ft(t.info.date.modified):null}`}})]})]})})},gf=async({summary:e})=>e&&e.rendered&&s.jsx("section",{className:"sass-com-bns-summaryContent sass-summary-content",dangerouslySetInnerHTML:{__html:e.rendered}}),Ki=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return;if(!e?.preview?.sizes){qe("GalleryHeader","preview.sizes");return}const n=e.preview.sizes,o=(await a.getNewsMultimedia({path:t,imagesizes:n?n[0]?.scale:a.contract.note.itemsListPrimary}))?.data.data[0]?.gallery??[];return s.jsxs("div",{className:"sass-com-in2-content",children:[s.jsx(je,{slot_id:"header",fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:o&&o.map((i,l)=>s.jsx(ve,{preview:i,priorityHigh:!0},l))}),s.jsx("div",{className:"sass-com-in2-description",children:o&&o[0]?.description})]})};function bf(e){const t=e.children,a=`${e.slot_id}-`,n=e.visibleItems,r=e.cardGap??20;function o(l){const c=[],d=[];let u="",h=!0;for(let f=0;f<l;f++){const p=`[data-index="${f}"]:checked ~ .carrousel-pagination li:nth-child(${f+1}) {
462
462
  background-color:var(--carrousel-pagination-background-color)
463
463
  }`;u+=`
464
464
  .${a}.carrousel-container {
@@ -507,7 +507,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
507
507
  </div>
508
508
  ${i(t.length)}
509
509
  </div>
510
- `}const bf=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:s.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),wf={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(tn,{className:e,forceSVG:!0}),solid:e=>s.jsx(ss,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Qs,{className:e,forceSVG:!0}),solid:e=>s.jsx($s,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ra,{className:e,forceSVG:!0}),solid:e=>s.jsx(en,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0})}}};function Af({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const a=pt();return s.jsxs("div",{className:"sass-com-ja4-socialNetworkSection",children:[e.options?.map(n=>{const r=wf[n];if(!r)return null;const o=e.variant==="outline"?r.icon.outline:r.icon.solid,i=r.url(t);return s.jsx(M,{href:i,target:"_blank",rel:"noopener noreferrer","aria-label":`${a.shareOnPrefix??"Compartir en"} ${n}`,className:`sass-com-ja4-socialButton sass-com-ja4-${n.toLowerCase()}Button sass-com-ja4-${n.toLowerCase()}Styled`,children:o("")},n)}),s.jsx("button",{type:"button","data-text":a.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja4-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Ws,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja4-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(sn,{})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-com-ja4-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(oa,{})]})]})}const yf=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{CONFIG_shareOnlyWhatsApp:r,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i}=L(),l=de(),c=m=>`${l}/${e.paths.autor}/${m}`,d=t.authors.map(m=>m.internaluser?`<a href="${c(m.name)}">${m.fullname}</a>`:m.fullname).join(", "),h=t.authors.length===1?"sass-com-ja4--singleAuthor":"sass-com-ja4--multiAuthor",p=`sass-com-ja4-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:"sass-com-ja4-content sass-journalist-articule-4",children:s.jsxs("div",{className:"sass-com-ja4-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja4-socialActionsRow",children:[s.jsxs("div",{className:"sass-com-ja4-socialActionDiv",children:[r&&s.jsxs("a",{className:"sass-com-ja4-socialActionLink",href:a[ra.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsx("span",{children:String(n.WhatsAppLinkJournalist??"")}),s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(oa,{})]}),e.noteShare?.customButton&&(i?s.jsx("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button","aria-label":"Custom button for the journalist article"}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"}))]}),s.jsx("div",{className:"sass-com-ja4-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(Af,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:`sass-com-ja4-journalistSection ${h}`,children:[s.jsxs("div",{className:`sass-com-ja4-authorsInfoRow ${h}`,children:[s.jsx("div",{className:`sass-com-ja4-imageContent ${p}`,children:Array.isArray(t.authors)&&t.authors?.map(async(m,g)=>m.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+m.fullname,className:"sass-com-ja4-imageStyled sass-com-ja4-imageAutor su-object-cover su-flex-center",src:await ue(m.image.sizes[0]?.url||"")},m.fullname):s.jsx("div",{className:"sass-com-ja4-contentIconStyled sass-com-ja4-imageAutor su-flex-center",children:e.autorIcon},m.fullname))}),s.jsx("div",{className:`sass-com-ja4-journalistInfoLink ${h}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <h3>${d??"Redaccion"}</h3>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja4-journalistInfoDate",dateTime:ke(t.info.date.modified,o),...Xe(t.info.date.modified,void 0,"note"),children:Ft(t.info.date.modified)})]})]})})},Cf=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),vf=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),Sf=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),Nf=async e=>{const{PUBLIC_IS_OFFLINE:t}=L();if(!(t==="true")){const d=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,u=[...e.matchAll(d)],h={};for(const m of u){const g=m[1]??"",b=e.includes(g)?{url:g}:null;if(b){const w=await ue(b.url)||"";h[g]=w}}const f={},p=/<figure\b[^>]*>[\s\S]*?<\/figure>/g;for(const m of[...e.matchAll(p)]){const g=m[0].match(/<img\b[^>]*\bsrc=["']([^"']+)["']/),b=m[0].match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i);g?.[1]&&b?.[1]&&(f[g[1]]=b[1].replace(/<[^>]+>/g,"").trim())}return e.replace(d,(m,g)=>{const b=m.match(/\btitle=["']([^"']*)["']/);return`<img fetchPriority='low' loading='lazy' alt='${(f[g]||b?.[1]||"imagen").replace(/'/g,"&#39;")}' src="${h[g]||g}"`})}let n=e;const r=new Set,o=/<figure\b[^>]*>(?:(?!<figure)[\s\S])*?<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g;let i="";for(;i!==n;){i=n;const d=o.exec(n);if(!d)break;const u=d[0],h=d[1]??"";r.add(h);const f=u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i),p=f?f[1].replace(/<[^>]+>/g,"").trim():null,m=u.match(/<img\b[^>]*\balt=["']([^"']*)["']/),g=u.match(/<img\b[^>]*\btitle=["']([^"']*)["']/),b=p||m?.[1]||g?.[1]||"imagen",w=h.match(/__scale=([^&"']+)/),C=w?decodeURIComponent(w[1]):null;let S=0,v=0;if(C){const $=C.match(/w:(\d+)/),q=C.match(/h:(\d+)/);S=$?parseInt($[1]):0,v=q?parseInt(q[1]):0}const N={preview:{sizes:[{scale:C||`w:${S},h:${v},t:2`,url:h,width:S,height:v}],original:{url:h.split("?")[0],width:S,height:v},copyright:!1,description:b,photographer:!1},isLarge:!1,priorityHigh:!1},O=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;n=n.replace(u,O),o.lastIndex=0}const l=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,c=[...n.matchAll(l)];for(const d of c){const u=d[0],h=d[1]??"";if(r.has(h))continue;const f=u.match(/\balt=["']([^"']*)["']/),p=u.match(/\btitle=["']([^"']*)["']/),m=f?.[1]||p?.[1]||"imagen",g=h.match(/__scale=([^&"']+)/),b=g?decodeURIComponent(g[1]):null;let w=0,C=0;if(b){const x=b.match(/w:(\d+)/),O=b.match(/h:(\d+)/);w=x?parseInt(x[1]):0,C=O?parseInt(O[1]):0}const v={preview:{sizes:[{scale:b||`w:${w},h:${C},t:2`,url:h,width:w,height:C}],original:{url:h.split("?")[0],width:w,height:C},copyright:!1,description:m,photographer:!1},isLarge:!1,priorityHigh:!1},N=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;n=n.replace(u,N)}return n},Ef=e=>e.replace(/<script\b([^>]*)>/gi,(t,a)=>a.includes("type=")?`<script ${a.replace(/type\s*=\s*["'][^"']*["']/i,'type="text/deferred-banner"')}>`:`<script ${a} type="text/deferred-banner">`),Tf=(e,t,a)=>{const{CONFIG_newNoteBannersIndexing:n,CONFIG_deferBanners:r}=L(),o=r?.innote!==!1,i={2:1,4:2,7:3,10:4,13:5};let l=null;if(n){l=new Map;for(const f of t){const p=/^block_2_(\d+)$/.exec(f.key);p&&p[1]&&l.set(parseInt(p[1],10),f)}for(const f of t){const p=/^body_(\d+)$/.exec(f.key);p&&p[1]&&l.set(parseInt(p[1],10),f)}}let c=0,d=e;const u=/<(p|li|ul|ol)>\s*<\/\1>/gi,h=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do d=e.replace(u,"").replace(h,"");while(d.match(u)||d.match(h));return d=d.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,f=>{const p=f.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${p}[\\s\\S]*?<\\/blockquote>`,"gi").test(d)){c++;const g=l?l.get(c):Cs(t,`body_${i[c]}`,`block_2_${i[c]}`);if(!g||!g.show)return f;const b=ys(g.value,a);return b?`${f}<div class="banner-context">${o?Ef(b):b}</div>`:f}return f}),d},xf=e=>{const t=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(t)];let n="",r=0;for(const o of a){const[i,l=""]=o,c=o.index,d=c+i.length;n+=e.slice(r,c);const h=[...l.matchAll(/data-src="([^"]+)"/g)].map(m=>m[1]).map(m=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${m}" class="carrusel-note-item" width="800" height="469"/>`),f="gallery_embeded"+c.toString(),p=gf({slot_id:f,children:h,visibleItems:1,cardGap:0});n+=p,r=d}return n+=e.slice(r),n},kf=async(e,t,a)=>{if(!a)return e;const n=/<span data-src="(.*?)"><\/span>/g,r=[...e.matchAll(n)];let o=e;for(const i of r){const l=i[0],c=i[1]??"",d=a.find(C=>{const S=C?.[0]?.info.link.internal;return!!S&&c.includes(S)});if(!d||!d[0])continue;const u=d[0].preview?.sizes?.[0],h=u?await ue(u.url):"",f=d[0].info.section?.url??"#",p=d[0].info.section?.name??"Sección",m=d[0].info.link?.url??"#",g=d[0].main?.title.article??"Título",b=(await Promise.all((d[0].preview?.sizes??[]).map(async(C,S)=>{const v=await ue(C.url);return S===0?`<source srcset="${v}" media="(width >= 900px)"/>`:`<source srcset="${v}" media="(width < 900px)"/>`}))).reduce((C,S)=>C+=S,""),w=`
510
+ `}const wf=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:s.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),Af={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(tn,{className:e,forceSVG:!0}),solid:e=>s.jsx(ss,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Qs,{className:e,forceSVG:!0}),solid:e=>s.jsx($s,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ra,{className:e,forceSVG:!0}),solid:e=>s.jsx(en,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0})}}};function yf({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const a=pt();return s.jsxs("div",{className:"sass-com-ja4-socialNetworkSection",children:[e.options?.map(n=>{const r=Af[n];if(!r)return null;const o=e.variant==="outline"?r.icon.outline:r.icon.solid,i=r.url(t);return s.jsx(M,{href:i,target:"_blank",rel:"noopener noreferrer","aria-label":`${a.shareOnPrefix??"Compartir en"} ${n}`,className:`sass-com-ja4-socialButton sass-com-ja4-${n.toLowerCase()}Button sass-com-ja4-${n.toLowerCase()}Styled`,children:o("")},n)}),s.jsx("button",{type:"button","data-text":a.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja4-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Ws,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja4-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(sn,{})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-com-ja4-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(oa,{})]})]})}const Cf=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{CONFIG_shareOnlyWhatsApp:r,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i}=L(),l=de(),c=m=>`${l}/${e.paths.autor}/${m}`,d=t.authors.map(m=>m.internaluser?`<a href="${c(m.name)}">${m.fullname}</a>`:m.fullname).join(", "),h=t.authors.length===1?"sass-com-ja4--singleAuthor":"sass-com-ja4--multiAuthor",p=`sass-com-ja4-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:"sass-com-ja4-content sass-journalist-articule-4",children:s.jsxs("div",{className:"sass-com-ja4-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja4-socialActionsRow",children:[s.jsxs("div",{className:"sass-com-ja4-socialActionDiv",children:[r&&s.jsxs("a",{className:"sass-com-ja4-socialActionLink",href:a[ra.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsx("span",{children:String(n.WhatsAppLinkJournalist??"")}),s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(oa,{})]}),e.noteShare?.customButton&&(i?s.jsx("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button","aria-label":"Custom button for the journalist article"}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"}))]}),s.jsx("div",{className:"sass-com-ja4-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(yf,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:`sass-com-ja4-journalistSection ${h}`,children:[s.jsxs("div",{className:`sass-com-ja4-authorsInfoRow ${h}`,children:[s.jsx("div",{className:`sass-com-ja4-imageContent ${p}`,children:Array.isArray(t.authors)&&t.authors?.map(async(m,g)=>m.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+m.fullname,className:"sass-com-ja4-imageStyled sass-com-ja4-imageAutor su-object-cover su-flex-center",src:await ue(m.image.sizes[0]?.url||"")},m.fullname):s.jsx("div",{className:"sass-com-ja4-contentIconStyled sass-com-ja4-imageAutor su-flex-center",children:e.autorIcon},m.fullname))}),s.jsx("div",{className:`sass-com-ja4-journalistInfoLink ${h}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <h3>${d??"Redaccion"}</h3>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja4-journalistInfoDate",dateTime:ke(t.info.date.modified,o),...Xe(t.info.date.modified,void 0,"note"),children:Ft(t.info.date.modified)})]})]})})},vf=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),Sf=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),Nf=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),Ef=async e=>{const{PUBLIC_IS_OFFLINE:t}=L();if(!(t==="true")){const d=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,u=[...e.matchAll(d)],h={};for(const m of u){const g=m[1]??"",b=e.includes(g)?{url:g}:null;if(b){const w=await ue(b.url)||"";h[g]=w}}const f={},p=/<figure\b[^>]*>[\s\S]*?<\/figure>/g;for(const m of[...e.matchAll(p)]){const g=m[0].match(/<img\b[^>]*\bsrc=["']([^"']+)["']/),b=m[0].match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i);g?.[1]&&b?.[1]&&(f[g[1]]=b[1].replace(/<[^>]+>/g,"").trim())}return e.replace(d,(m,g)=>{const b=m.match(/\btitle=["']([^"']*)["']/);return`<img fetchPriority='low' loading='lazy' alt='${(f[g]||b?.[1]||"imagen").replace(/'/g,"&#39;")}' src="${h[g]||g}"`})}let n=e;const r=new Set,o=/<figure\b[^>]*>(?:(?!<figure)[\s\S])*?<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g;let i="";for(;i!==n;){i=n;const d=o.exec(n);if(!d)break;const u=d[0],h=d[1]??"";r.add(h);const f=u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i),p=f?f[1].replace(/<[^>]+>/g,"").trim():null,m=u.match(/<img\b[^>]*\balt=["']([^"']*)["']/),g=u.match(/<img\b[^>]*\btitle=["']([^"']*)["']/),b=p||m?.[1]||g?.[1]||"imagen",w=h.match(/__scale=([^&"']+)/),C=w?decodeURIComponent(w[1]):null;let S=0,v=0;if(C){const $=C.match(/w:(\d+)/),q=C.match(/h:(\d+)/);S=$?parseInt($[1]):0,v=q?parseInt(q[1]):0}const N={preview:{sizes:[{scale:C||`w:${S},h:${v},t:2`,url:h,width:S,height:v}],original:{url:h.split("?")[0],width:S,height:v},copyright:!1,description:b,photographer:!1},isLarge:!1,priorityHigh:!1},O=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;n=n.replace(u,O),o.lastIndex=0}const l=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,c=[...n.matchAll(l)];for(const d of c){const u=d[0],h=d[1]??"";if(r.has(h))continue;const f=u.match(/\balt=["']([^"']*)["']/),p=u.match(/\btitle=["']([^"']*)["']/),m=f?.[1]||p?.[1]||"imagen",g=h.match(/__scale=([^&"']+)/),b=g?decodeURIComponent(g[1]):null;let w=0,C=0;if(b){const x=b.match(/w:(\d+)/),O=b.match(/h:(\d+)/);w=x?parseInt(x[1]):0,C=O?parseInt(O[1]):0}const v={preview:{sizes:[{scale:b||`w:${w},h:${C},t:2`,url:h,width:w,height:C}],original:{url:h.split("?")[0],width:w,height:C},copyright:!1,description:m,photographer:!1},isLarge:!1,priorityHigh:!1},N=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;n=n.replace(u,N)}return n},Tf=e=>e.replace(/<script\b([^>]*)>/gi,(t,a)=>a.includes("type=")?`<script ${a.replace(/type\s*=\s*["'][^"']*["']/i,'type="text/deferred-banner"')}>`:`<script ${a} type="text/deferred-banner">`),xf=(e,t,a)=>{const{CONFIG_newNoteBannersIndexing:n,CONFIG_deferBanners:r}=L(),o=r?.innote!==!1,i={2:1,4:2,7:3,10:4,13:5};let l=null;if(n){l=new Map;for(const f of t){const p=/^block_2_(\d+)$/.exec(f.key);p&&p[1]&&l.set(parseInt(p[1],10),f)}for(const f of t){const p=/^body_(\d+)$/.exec(f.key);p&&p[1]&&l.set(parseInt(p[1],10),f)}}let c=0,d=e;const u=/<(p|li|ul|ol)>\s*<\/\1>/gi,h=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do d=e.replace(u,"").replace(h,"");while(d.match(u)||d.match(h));return d=d.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,f=>{const p=f.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${p}[\\s\\S]*?<\\/blockquote>`,"gi").test(d)){c++;const g=l?l.get(c):Cs(t,`body_${i[c]}`,`block_2_${i[c]}`);if(!g||!g.show)return f;const b=ys(g.value,a);return b?`${f}<div class="banner-context">${o?Tf(b):b}</div>`:f}return f}),d},kf=e=>{const t=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(t)];let n="",r=0;for(const o of a){const[i,l=""]=o,c=o.index,d=c+i.length;n+=e.slice(r,c);const h=[...l.matchAll(/data-src="([^"]+)"/g)].map(m=>m[1]).map(m=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${m}" class="carrusel-note-item" width="800" height="469"/>`),f="gallery_embeded"+c.toString(),p=bf({slot_id:f,children:h,visibleItems:1,cardGap:0});n+=p,r=d}return n+=e.slice(r),n},If=async(e,t,a)=>{if(!a)return e;const n=/<span data-src="(.*?)"><\/span>/g,r=[...e.matchAll(n)];let o=e;for(const i of r){const l=i[0],c=i[1]??"",d=a.find(C=>{const S=C?.[0]?.info.link.internal;return!!S&&c.includes(S)});if(!d||!d[0])continue;const u=d[0].preview?.sizes?.[0],h=u?await ue(u.url):"",f=d[0].info.section?.url??"#",p=d[0].info.section?.name??"Sección",m=d[0].info.link?.url??"#",g=d[0].main?.title.article??"Título",b=(await Promise.all((d[0].preview?.sizes??[]).map(async(C,S)=>{const v=await ue(C.url);return S===0?`<source srcset="${v}" media="(width >= 900px)"/>`:`<source srcset="${v}" media="(width < 900px)"/>`}))).reduce((C,S)=>C+=S,""),w=`
511
511
  <span data-src="${c}">
512
512
  <picture style='display: flex'>
513
513
  ${b}
@@ -518,7 +518,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
518
518
  <a class="title" href="${m}">${g}</a>
519
519
  </div>
520
520
  </span>
521
- `;o=o.replace(l,w)}return o};async function If(e,t){let a="",n=0;const r=/<div\b[^>]*\bclass=(["'])(?:(?!\1).)*\bck-video-player\b(?:(?!\1).)*\1[^>]*>/gi;let o;for(;(o=r.exec(e))!==null;){const i=o.index,l=r.lastIndex;a+=e.slice(n,i);let c=1,d=l;const u=e.length;for(;d<u&&c>0;){const w=e.indexOf("<div",d),C=e.indexOf("</div>",d);if(C===-1){d=u;break}w!==-1&&w<C?(c+=1,d=w+4):(c-=1,d=C+6)}const h=d,f=e.slice(i,h);let p=null;const m=/<span\b([^>]*)>/gi;let g;for(;(g=m.exec(f))!==null;){const w=g[1];if(!w)break;if(/data-type\s*=\s*["']?video["']?/i.test(w)){const C=w.match(/data-src\s*=\s*["']([^"']+)["']/i);if(C){p=C[1]??"";break}}}if(!p){const w=f.match(/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i);if(w){const C=w[0].match(/data-src\s*=\s*["']([^"']+)["']/i);C&&(p=C[1]??"")}}let b="";if(p)try{const w=await t.iframe({path:p}),C=t.schema?await t.schema(p):null;if(w&&w.data){const S=w.data.data[0];let v="";const y=f.match(/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i),N=y&&y[1]?y[1].trim():"";S.info&&S.info.type==="video-youtube"?v=`<iframe
521
+ `;o=o.replace(l,w)}return o};async function Lf(e,t){let a="",n=0;const r=/<div\b[^>]*\bclass=(["'])(?:(?!\1).)*\bck-video-player\b(?:(?!\1).)*\1[^>]*>/gi;let o;for(;(o=r.exec(e))!==null;){const i=o.index,l=r.lastIndex;a+=e.slice(n,i);let c=1,d=l;const u=e.length;for(;d<u&&c>0;){const w=e.indexOf("<div",d),C=e.indexOf("</div>",d);if(C===-1){d=u;break}w!==-1&&w<C?(c+=1,d=w+4):(c-=1,d=C+6)}const h=d,f=e.slice(i,h);let p=null;const m=/<span\b([^>]*)>/gi;let g;for(;(g=m.exec(f))!==null;){const w=g[1];if(!w)break;if(/data-type\s*=\s*["']?video["']?/i.test(w)){const C=w.match(/data-src\s*=\s*["']([^"']+)["']/i);if(C){p=C[1]??"";break}}}if(!p){const w=f.match(/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i);if(w){const C=w[0].match(/data-src\s*=\s*["']([^"']+)["']/i);C&&(p=C[1]??"")}}let b="";if(p)try{const w=await t.iframe({path:p}),C=t.schema?await t.schema(p):null;if(w&&w.data){const S=w.data.data[0];let v="";const y=f.match(/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i),N=y&&y[1]?y[1].trim():"";S.info&&S.info.type==="video-youtube"?v=`<iframe
522
522
  loading="lazy"
523
523
  frameborder="0"
524
524
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
@@ -538,5 +538,5 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
538
538
  ${v}
539
539
  <figcaption>${x}</figcaption>
540
540
  </figure>
541
- `}}catch(w){console.error("insertVideos error for",p,w),b=""}else b=f;n=h,a+=b,r.lastIndex=h}return a+=e.slice(n),a=Sf(a),a}async function Lf(e){const{news:t,banners:a,newsRelatedResponses:n,newsRelatedListResponses:r,slug:o,itemList:i,socials:l,getVideos:c,commonServices:d}=e;t?.main||qe("RigthSide2","main"),t?.config||qe("RigthSide2","config");const u=t?.info?.section?.slug,h=u?{type:"seccion",value:u}:{type:"general"};let f=t?.body?.rendered??"";f=f.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),f=f.replace(/&nbsp;/g,""),f=Tf(f,a,h),f=xf(f),f=await Nf(f),f=await kf(f,e.texts,n),f=await If(f,c),f=za(f),f=Cf(f),f=vf(f);const p=t.main?.sources??[],{NEWS_JOURNALIST_COMPONENT:m,CONFIG_blockDefaultTwitterHydrator:g}=L(),b=t.config?.articlepreview===Ue.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?b?s.jsx(Ki,{commonServices:d,newsformated:t,internal:t.info?.link?.internal}):s.jsx(s.Fragment,{children:s.jsx(Ai,{preview:t.preview})}):null,e.subtitleBeforeImage&&t.main?.subtitle?.striped&&s.jsx("div",{className:"news-description-before-image",style:{"--news-description-subtitle-display":"-webkit-box",...o!=="liveblogs"?e.headerSectionStyles?.common:e.headerSectionStyles?.liveblogs},children:s.jsx(ni,{subtitle:t.main?.subtitle?.striped,cutSubtitle:!1})}),s.jsx(be,{banners:a,name:"block_1",scope:h}),s.jsxs("div",{className:"sass-pg-nrs-journalistArticleContent",children:[m==="op1"?s.jsx(mf,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):m==="op2"?s.jsx(yf,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(_i,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}),e?.customAfterJournalistComponent]}),e.customSummary?e.customSummary:s.jsx(pf,{summary:t.main?.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:f}}),s.jsx(uf,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:c,newsRelatedListResponses:r??[],scope:h}),p.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(bf,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(p.length===1?"":"s")+": "+p.map(w=>w.name).join(", ")})]}),!g&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Pf=e=>{e.config||qe("News_NoteContent.hasHeaderOption","config");const t=e.config?.articlepreview;return!![Ue.videoEmbedded,Ue.videoYouTube,Ue.iframe].includes(t)},Ji=async e=>{const{texts:t,autorIcon:a,commonServices:n,slug:r,noteShare:o,paths:i,banners:l,news:c,newsRelatedResponses:d=[],newsRelatedListResponses:u=[],itemList:h=[],socials:f,getVideos:p,scope:m,customSummary:g,subtitleBeforeImage:b,headerSectionStyles:w,customAfterJournalistComponent:C}=e;if(c)return s.jsxs(s.Fragment,{children:[s.jsx(Lf,{texts:t,autorIcon:a,socials:f,news:c,banners:l,newsRelatedResponses:d,newsRelatedListResponses:u,itemList:h,slug:r,getVideos:p,noteShare:o,paths:i,showHeaderImage:!Pf(c),commonServices:n,customSummary:g,subtitleBeforeImage:b,headerSectionStyles:w,customAfterJournalistComponent:C}),s.jsx(be,{banners:l??[],name:"block_3",scope:m})]})},Uf=async e=>{const{ranking:t=[],banners:a,autor:n=[],news:r=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:c,getVideos:d}=e;if(!r||!r[0])return;const u=r[0]?.info?.section?.slug,h=u?{type:"seccion",value:u}:{type:"general"};return s.jsxs(s.Fragment,{children:[s.jsx(Yi,{option:e.slug,news:r,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag,scope:h,subtitleBeforeImage:e.subtitleBeforeImage}),s.jsx(sf,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(be,{banners:a??[],name:"right_1",scope:h}),banner:s.jsx(be,{banners:a??[],name:"right_2",scope:h}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[n.length>0&&s.jsx(Bi,{texts:e.texts,autorIcon:e.autorIcon,autor:n[0],paths:e.paths}),r[0].authors.length>1&&s.jsx(Mi,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(Oi,{tags:r[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(Ji,{texts:e.texts,autorIcon:e.autorIcon,socials:c,news:r[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:d,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices,scope:h,customSummary:e.customSummary,subtitleBeforeImage:e.subtitleBeforeImage,headerSectionStyles:e.headerSectionStyles})})]})},Of=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Bf=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(Of,{className:"sass-pg-buscar-searchStyled"})})]})}),_t=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Mf={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},os={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function _f(e){return{email:{label:e?.email??os.email.label,required:!0},given_name:{label:e?.given_name??os.given_name.label,required:!0},family_name:{label:e?.family_name??os.family_name.label,required:!0},password:{label:e?.password??os.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??os.confirmPassword.label,required:!0}}}const Qe=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],Zi=[{label:"La contraseña debe tener al menos 8 caracteres",test:Qe[0]},{label:"Usa un número",test:Qe[1]},{label:"Usa una letra minúscula",test:Qe[2]},{label:"Usa una letra mayúscula",test:Qe[3]},{label:"Usa un símbolo",test:Qe[4]}];function Df({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const n={...Mf,...e?.comentarios},r=k.useMemo(()=>_f(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=k.useMemo(()=>[{label:n.passwordRuleMinLength,test:Qe[0]},{label:n.passwordRuleNumber,test:Qe[1]},{label:n.passwordRuleLowercase,test:Qe[2]},{label:n.passwordRuleUppercase,test:Qe[3]},{label:n.passwordRuleSymbol,test:Qe[4]}],[n.passwordRuleMinLength,n.passwordRuleNumber,n.passwordRuleLowercase,n.passwordRuleUppercase,n.passwordRuleSymbol]),[i,l]=k.useState({}),[c,d]=k.useState(!1),[u,h]=k.useState(!1),[f,p]=k.useState(null),[m,g]=k.useState("register"),b=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const y=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${y}`},w=(y,N)=>{l(x=>({...x,[y]:N}))},C=async y=>{y.preventDefault(),p(null),h(!0);try{const N=Object.keys(r).filter(G=>!["username","password","confirmPassword"].includes(G)).map(G=>({Name:G,Value:i[G]}));if(N.some(G=>{if(!G.Value||G.Value.trim()==="")return!0}))return h(!1),p(n.errorCompleteFields);if(i.password!==i.confirmPassword){p(n.errorPasswordMismatch);return}const x=i.password||"";if(o.some(G=>!G.test(x))){p(n.errorPasswordInvalid);return}const $=Math.floor(Date.now()/1e3);N.push({Name:"updated_at",Value:String($)});const q=t.PUBLIC_ENV==="local"?"token":await is("comment_register",t.CAPTCHA_KEY??"",t);if(!q)throw new Error("Captcha token no generado");const B=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:N,token:q})});if(!B.ok){const G=await B.json().catch(()=>({}));if(G.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),g("confirm");return}throw new Error(G?.error||"Error al crear usuario")}g("confirm")}catch(N){console.log(N),p(N?.message||N?.error||n.errorUnexpected)}finally{h(!1)}},S=async y=>{if(y.preventDefault(),!i.confirmationCode){p(n.errorVerificationCodeRequired);return}p(null),h(!0);try{const N=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!N.ok){const x=await N.json().catch(()=>({}));throw new Error(x?.error||"Error al confirmar usuario")}g("success")}catch(N){p(N?.message||n.errorUnexpected)}finally{h(!1)}},v=i.password||"";return s.jsxs(s.Fragment,{children:[m==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:b,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:n.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:C,className:"sass-pg-login-form","data-error":f?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(r).map(([y,{label:N}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:N}),s.jsx("input",{type:y.toLowerCase().includes("password")?c?"text":"password":y==="birthdate"?"date":y==="email"?"email":y==="phone_number"?"tel":"text",name:y,value:i[y]||"",onChange:x=>w(y,x.target.value),className:"sass-pg-login-input",placeholder:""}),y==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((x,O)=>{const $=x.test(v);return s.jsxs("div",{className:$?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:$?"✔":"○"}),s.jsx("div",{children:x.label})]},O)})}),y==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:c,onChange:x=>d(x.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:n.showPasswordsLabel})]})]},y))}),f&&s.jsx("p",{className:"sass-pg-login-error",children:f}),s.jsxs("p",{className:"sass-pg-login-terms",children:[n.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:n.termsLinkText})," ",n.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:u,children:u?s.jsx(_t,{}):n.createAccountButton})]})]}),m==="confirm"&&s.jsxs("form",{onSubmit:S,className:"sass-pg-login-form","data-error":f?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:n.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:y=>w("confirmationCode",y.target.value),className:"sass-pg-login-input",required:!0})]}),f&&s.jsx("p",{className:"sass-pg-login-error",children:f}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:u,children:u?s.jsx(_t,{}):n.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[n.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:n.loginButtonText})]})]}),m==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:n.successTitle}),s.jsx("p",{children:n.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:n.loginButtonText})]}),m==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[n.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:n.loginButtonText})]})]})}const qf={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Gf({API_ENV:e,texts:t}){const a={...qf,...t?.comentarios},[n,r]=k.useState("login"),[o,i]=k.useState(""),[l,c]=k.useState(""),[d,u]=k.useState(""),[h,f]=k.useState(""),[p,m]=k.useState(""),[g,b]=k.useState(!1),[w,C]=k.useState(!1),[S,v]=k.useState(null);k.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&n==="login"&&r("forgot"),n==="login"&&N()});const y=B=>document.cookie.split("; ").find(G=>G.startsWith(B+"="))?.split("=")[1],N=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const B=y("redirect_after_login_1");console.log("Redirect path after login:",B,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),B&&B!==""?(window.location.pathname=B,window.location.hash="comentarios"):window.location.pathname=de(e)+"/auth/success"}},x=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let B=de(e)+"/auth/login";const G=y("redirect_after_login_1");G&&G!==""&&(B=G),window.location.href=`/api/auth/login?redirect=${B}`},O=async B=>{if(!w){if(B.preventDefault(),o===""||l===""){v("Complete todos los campos");return}v(null),C(!0);try{const G=e.PUBLIC_ENV==="local"?"token":await is("comment_login",e.CAPTCHA_KEY||"",e);if(!G)throw new Error("Captcha token no generado");const z=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:G})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await N();return}catch(G){v(G?.message||"Error inesperado")}finally{C(!1)}}},$=async B=>{if(!w){B.preventDefault(),v(null),C(!0);try{const G=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!G.ok){const z=await G.json().catch(()=>({}));throw new Error(z?.error||"Error al enviar código")}c(""),r("changePassword")}catch(G){v(G?.message||"Error inesperado")}finally{C(!1)}}},q=async B=>{if(w)return;if(B.preventDefault(),h!==p){v("Las contraseñas no coinciden");return}if(Zi.some(z=>!z.test(h))){v("La contraseña no cumple con los requisitos");return}v(null),C(!0);try{const z=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:d,newPassword:h})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}r("feedback")}catch(z){v(z?.message||"Error inesperado")}finally{C(!1)}};return s.jsxs(s.Fragment,{children:[n==="login"&&s.jsx(Ff,{email:o,password:l,showPassword:g,loading:w,error:S,setEmail:i,setPassword:c,setShowPassword:b,onSubmit:O,onForgot:()=>{v(null),r("forgot")},handleGoogleLogin:x,t:a}),n==="forgot"&&s.jsx(jf,{email:o,setEmail:i,loading:w,error:S,onSubmit:$,onBack:()=>{v(null),r("login")},t:a}),n==="changePassword"&&s.jsx(Vf,{email:o,confirmationCode:d,newPassword:h,confirmNewPassword:p,showPassword:g,loading:w,error:S,setConfirmationCode:u,setNewPassword:f,setConfirmNewPassword:m,setShowPassword:b,onSubmit:q,onBack:()=>{v(null),r("forgot")},t:a}),n==="feedback"&&s.jsx(zf,{onBackToLogin:()=>{v(null),r("login")},t:a})]})}function Ff({email:e,password:t,showPassword:a,loading:n,error:r,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:d,handleGoogleLogin:u,t:h}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:u,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:h.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:c,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:h.email}),s.jsx("input",{type:"email",value:e,onChange:f=>o(f.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:h.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:f=>i(f.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>l(f.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:h.showPassword})]})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:n,children:n?s.jsx(_t,{className:"sass-pg-login-spin"}):h.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[h.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:h.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:d,children:h.forgotPasswordText})]})}function jf({email:e,setEmail:t,loading:a,error:n,onSubmit:r,onBack:o,t:i}){return s.jsxs("form",{onSubmit:r,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx(_t,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function Hf(e){const[t,a]=e.split("@");if(!t||!a)return e;let n="";t.length<=2?n=t[0]+"*":n=t[0]+"*".repeat(t.length-2)+t[t.length-1];const r=a.lastIndexOf(".");if(r===-1)return`${n}@${a}`;const o=a.slice(0,r),i=a.slice(r);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${n}@${l}${i}`}function Vf({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:n,showPassword:r,loading:o,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:d,setShowPassword:u,onSubmit:h,onBack:f,t:p}){const m=p.changePasswordMessage.replace("{{email}}",Hf(e));return s.jsxs("form",{onSubmit:h,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:m}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.newPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:a,onChange:g=>c(g.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:Zi.map((g,b)=>{const w=g.test(a);return s.jsxs("div",{className:w?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:w?"✔":"○"}),s.jsx("div",{children:g.label})]},b)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:n,onChange:g=>d(g.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:r,onChange:g=>u(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(_t,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:f,children:p.backButton})})]})}function zf({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function $f({containerId:e,containerId2:t}){return k.useEffect(()=>{try{let a=function(){const u=window.twttr;u?.widgets?u.widgets.load(n):d<10?(d++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const n=document.getElementById(e),r=document.getElementById(t);if(!n&&!r)return;const o=n?.querySelectorAll("script[src]")??[],i=r?.querySelectorAll("script[src]")??[];[...o,...i].forEach(u=>{const h=document.createElement("script");Array.from(u.attributes).forEach(f=>{h.setAttribute(f.name,f.value)}),u.replaceWith(h)});const c=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(c)for(let u=0;u<c.length;u++)c[u]?.remove();let d=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const u=document.createElement("script");u.src="https://platform.twitter.com/widgets.js",u.async=!0,u.onload=a,document.body.appendChild(u)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Qf=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),Wf=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:n=!1,BackDropAuxHeigthMobile:r}=e,o=Ja(),i=k.useMemo(()=>{const f=e?.preview?.sizes;if(f&&Array.isArray(f)&&f.length>0)return f;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:c}=e.API_ENV,d=i[0]?.url,u=c&&c!=="false"?c:l,h=d?.startsWith("http")||d?.includes(u)?d:u+d;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:r||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:h,style:{boxShadow:n?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Yf=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),Xi={info:{section:{name:"",slug:"",url:""},link:{url:"/",target:"",canonical:"",internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!1,showads:!1},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},Kf=({section:e,internalPath:t,banner:a,isVisible:n=!1,stylesConfig:r,API_ENV:o,fetchConfig:i,paths:l})=>{const c=o.FETCH_SIZE_MORE_NEWS??6,[d,u]=k.useState({data:Array.from({length:c},()=>Xi)}),[h,f]=k.useState(!1),p=k.useCallback(async()=>{if(!t)return;const b=new URLSearchParams({section:e,currentNewsLink:t}),w=await fetch(`/api/get-more-news?${b}`);if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);return await w.json()},[e,t]),m=k.useCallback(async()=>{const{PUBLIC_API_FRONT:b,PUBLIC_X_SECURITY_TOKEN:w,PUBLIC_API_PATH_VERSION:C,PUBLIC_PUBLICATION_ID:S}=o;if(!b||!w||!S||!C)throw new Error("Missing required environment variables");const v=await re.get(`${b}${C}/news-list-section`,{params:{size:c+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(S)},headers:{"x-api-token":w,"Content-Type":"application/json"}});return{...v.data,data:v.data.data.filter(y=>y.info.link.internal!==t)}},[e,t,o]),g=k.useCallback(async()=>{if(!(h||!t)){f(!0);try{let b;o.PUBLIC_ENV!=="prod"?b=await p():b=await m(),u({...b,data:b.data.slice(0,c)})}catch(b){console.error("[/api/get-more-news] Error:",b.message),u(void 0)}}},[h,t,o.PUBLIC_ENV,p,m]);return k.useEffect(()=>{n&&g()},[n,g]),!d?.data||d.data.length===0?null:s.jsx(Jf,{news:d.data,title:"Más Noticias",...r["Modulo 1x3 Client"]??r["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:n,LINK_REMOVE:o.LINK_REMOVE})},Jf=e=>{const{news:t,hasLines:a=!1,API_ENV:n}=e,r=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:c,info:d,preview:u,isVideo:h=!1,config:f,overImage:p="default",isTitle:m=!1,isLarge:g=!1,keywords:b}=o;return s.jsx("div",{className:r(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(M,{title:l?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:d?.link?.target,LINK_REMOVE:e.LINK_REMOVE,children:s.jsx(Wf,{isVisible:e.isVisible,preview:u,rounded:e.rounded,isVideo:h,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(Xf,{main:l,SHOW_TAG_BY_SECTION:n.SHOW_TAG_BY_SECTION,authors:c,info:d,preview:u,share:e.share,config:f,overImage:p,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:b,API_ENV:n,LINK_REMOVE:e.LINK_REMOVE})})]})},i)})})};function Zf(e){return e?Array.isArray(e)?e:e&&typeof e=="object"?[e]:[]:[]}const Xf=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:n,keywords:r,info:o,paths:i}=e,c=Zf(e.authors).slice(0,2),d=!!e.config?.showauthor,u=!!e.config?.showtime,h=e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,f=w=>s.jsx("span",{className:"sass-com-nd-correspondentName",children:w}),p=()=>d?c.length===0?f("Redacción"):c.map((w,C)=>{const S=w.Figure||w.fullname||"Redacción",v=C>0?s.jsx("span",{className:"sass-com-nd-correspondentSeparator",children:", "}):null,y=w.internaluser?s.jsx(M,{block_subPublication:h,"aria-label":S,className:"sass-com-nd-correspondentLink",href:`/${i?.autor??"autor"}/${w.name}`,LINK_REMOVE:e.LINK_REMOVE,children:f(S)}):f(S);return s.jsxs(k.Fragment,{children:[v,y]},w.name||`${S}-${C}`)}):null,m=()=>!d&&!u?null:s.jsxs("span",{className:"sass-com-nd-correspondent",children:[p(),d&&u&&s.jsx("span",{className:"sass-com-nd-correspondentSeparator",children:" - "}),u&&s.jsx("time",{className:"sass-com-nd-correspondentTime",dateTime:ke(e.info?.date?.modified,e.DATE_CONFIG?.DATE_TIMEZONE??"")||void 0,...Xe(e.info?.date?.modified),children:xe(e.info?.date?.modified,e.DATE_CONFIG)})]}),g=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,b=()=>{if(n&&r?.tags?.length&&r.tags.length>0){const w=r.tags[0],C=w.name;return s.jsxs("span",{className:"sass-com-nd-sectionDescriptionContainer",children:[w.approved?s.jsx(M,{"aria-label":C,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:Me(w,e.paths),children:C}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:C}),g()]})}else if(o?.section?.url){const w=o.section.name;return s.jsxs("span",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(M,{"aria-label":w,className:"sass-com-nd-sectionDescription",href:o.section.url,children:w}),g()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(Yf,{className:"sass-com-nd-dotStyles"}),s.jsx(b,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(M,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url??"invalidUrl",target:e?.info?.link?.target,LINK_REMOVE:e.LINK_REMOVE,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?Be(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),m()]})},Rf={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},em=({user:e,handleLogout:t,message:a,texts:n})=>{const r={...Rf,...n?.comentarios},o=()=>{const c=document.querySelector(".user-actions-options");c&&c.classList.toggle("show")},i=e.firstname??"Usuario",l=r.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:r.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(aa,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},Ri=async(e,t)=>{if(Te(t))return!0;if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:n,COMMENTS_CAPTCHA_API_KEY:r}=t;try{const o=a,i=n,d=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",d),d.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function tm({publication:e,username:t,id:a,type:n,baseUrl:r,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:c}){const d=Te(c);if(!e||!t||!a||!n||!d&&!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof n!="string"||!d&&typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await Ri(o,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const u=`${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,h=encodeURIComponent(n),f=new URLSearchParams({publication:e,username:t??!1,id:a,type:h}),p=`${u}?${f.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:n,encodedType:h,url:p});const m=await re.get(p,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",m.data),m.status===200||m.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:m.status,data:m.data};throw new Error(`Respuesta inesperada del servidor: ${m.status}`)}catch(m){if(console.error("Error reporting comment:",m),re.isAxiosError(m)){const g=m.response?.status,b=m.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(b?.error||b?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw m}}const ca={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function sm(e){return ca[e]}const Re=300,et={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function am(e){const t=e.split(" ");if(t.length!==3)return e;const[a,n,r]=t,o=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase();return`${a} ${o} ${r}`}const da=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const n=e.current?.value||"",r=n.length>Re,{PUBLIC_ENV:o}=a,l=o==="local"||Te(a),c=n.trim()!==""&&(l||t!=="")&&!r,d=r?`No debes exceder el limite de ${Re} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:d}},el=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},nm=(e,t)=>{const a=el(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function rm(e){const[t,a]=e.split("@");if(!t||!a)return e;let n="";t.length<=2?n=t[0]+"*":n=t[0]+"*".repeat(t.length-2)+t[t.length-1];const r=a.lastIndexOf(".");if(r===-1)return`${n}@${a}`;const o=a.slice(0,r),i=a.slice(r);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${n}@${l}${i}`}var ua={exports:{}},ha={exports:{}},oe={};var tl;function om(){if(tl)return oe;tl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(y){if(typeof y=="object"&&y!==null){var N=y.$$typeof;switch(N){case t:switch(y=y.type,y){case c:case d:case n:case o:case r:case h:return y;default:switch(y=y&&y.$$typeof,y){case l:case u:case m:case p:case i:return y;default:return N}}case a:return N}}}function v(y){return S(y)===d}return oe.AsyncMode=c,oe.ConcurrentMode=d,oe.ContextConsumer=l,oe.ContextProvider=i,oe.Element=t,oe.ForwardRef=u,oe.Fragment=n,oe.Lazy=m,oe.Memo=p,oe.Portal=a,oe.Profiler=o,oe.StrictMode=r,oe.Suspense=h,oe.isAsyncMode=function(y){return v(y)||S(y)===c},oe.isConcurrentMode=v,oe.isContextConsumer=function(y){return S(y)===l},oe.isContextProvider=function(y){return S(y)===i},oe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},oe.isForwardRef=function(y){return S(y)===u},oe.isFragment=function(y){return S(y)===n},oe.isLazy=function(y){return S(y)===m},oe.isMemo=function(y){return S(y)===p},oe.isPortal=function(y){return S(y)===a},oe.isProfiler=function(y){return S(y)===o},oe.isStrictMode=function(y){return S(y)===r},oe.isSuspense=function(y){return S(y)===h},oe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===o||y===r||y===h||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===p||y.$$typeof===i||y.$$typeof===l||y.$$typeof===u||y.$$typeof===b||y.$$typeof===w||y.$$typeof===C||y.$$typeof===g)},oe.typeOf=S,oe}var ie={};var sl;function im(){return sl||(sl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(j){return typeof j=="string"||typeof j=="function"||j===n||j===d||j===o||j===r||j===h||j===f||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===p||j.$$typeof===i||j.$$typeof===l||j.$$typeof===u||j.$$typeof===b||j.$$typeof===w||j.$$typeof===C||j.$$typeof===g)}function v(j){if(typeof j=="object"&&j!==null){var we=j.$$typeof;switch(we){case t:var ya=j.type;switch(ya){case c:case d:case n:case o:case r:case h:return ya;default:var jl=ya&&ya.$$typeof;switch(jl){case l:case u:case m:case p:case i:return jl;default:return we}}case a:return we}}}var y=c,N=d,x=l,O=i,$=t,q=u,B=n,G=m,z=p,_=a,U=o,P=r,H=h,D=!1;function Y(j){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(j)||v(j)===c}function E(j){return v(j)===d}function I(j){return v(j)===l}function F(j){return v(j)===i}function Q(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function V(j){return v(j)===u}function W(j){return v(j)===n}function K(j){return v(j)===m}function Z(j){return v(j)===p}function te(j){return v(j)===a}function se(j){return v(j)===o}function X(j){return v(j)===r}function ce(j){return v(j)===h}ie.AsyncMode=y,ie.ConcurrentMode=N,ie.ContextConsumer=x,ie.ContextProvider=O,ie.Element=$,ie.ForwardRef=q,ie.Fragment=B,ie.Lazy=G,ie.Memo=z,ie.Portal=_,ie.Profiler=U,ie.StrictMode=P,ie.Suspense=H,ie.isAsyncMode=Y,ie.isConcurrentMode=E,ie.isContextConsumer=I,ie.isContextProvider=F,ie.isElement=Q,ie.isForwardRef=V,ie.isFragment=W,ie.isLazy=K,ie.isMemo=Z,ie.isPortal=te,ie.isProfiler=se,ie.isStrictMode=X,ie.isSuspense=ce,ie.isValidElementType=S,ie.typeOf=v})()),ie}var al;function un(){return al||(al=1,process.env.NODE_ENV==="production"?ha.exports=om():ha.exports=im()),ha.exports}var hn,nl;function lm(){if(nl)return hn;nl=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function r(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hn=r()?Object.assign:function(o,i){for(var l,c=n(o),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){d=e(l);for(var f=0;f<d.length;f++)a.call(l,d[f])&&(c[d[f]]=l[d[f]])}}return c},hn}var fn,rl;function mn(){if(rl)return fn;rl=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fn=e,fn}var pn,ol;function il(){return ol||(ol=1,pn=Function.call.bind(Object.prototype.hasOwnProperty)),pn}var gn,ll;function cm(){if(ll)return gn;ll=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mn(),a={},n=il();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function r(o,i,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in o)if(n(o,u)){var h;try{if(typeof o[u]!="function"){var f=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}h=o[u](i,u,c,l,null,t)}catch(m){h=m}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in a)){a[h.message]=!0;var p=d?d():"";e("Failed "+l+" type: "+h.message+(p??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},gn=r,gn}var bn,cl;function dm(){if(cl)return bn;cl=1;var e=un(),t=lm(),a=mn(),n=il(),r=cm(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return bn=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(E){var I=E&&(d&&E[d]||E[u]);if(typeof I=="function")return I}var f="<<anonymous>>",p={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:S,element:v(),elementType:y(),instanceOf:N,node:q(),objectOf:O,oneOf:x,oneOfType:$,shape:G,exact:z};function m(E,I){return E===I?E!==0||1/E===1/I:E!==E&&I!==I}function g(E,I){this.message=E,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function b(E){if(process.env.NODE_ENV!=="production")var I={},F=0;function Q(W,K,Z,te,se,X,ce){if(te=te||f,X=X||Z,ce!==a){if(c){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=te+":"+Z;!I[we]&&F<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[we]=!0,F++)}}return K[Z]==null?W?K[Z]===null?new g("The "+se+" `"+X+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new g("The "+se+" `"+X+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:E(K,Z,te,se,X)}var V=Q.bind(null,!1);return V.isRequired=Q.bind(null,!0),V}function w(E){function I(F,Q,V,W,K,Z){var te=F[Q],se=P(te);if(se!==E){var X=H(te);return new g("Invalid "+W+" `"+K+"` of type "+("`"+X+"` supplied to `"+V+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return b(I)}function C(){return b(i)}function S(E){function I(F,Q,V,W,K){if(typeof E!="function")return new g("Property `"+K+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var Z=F[Q];if(!Array.isArray(Z)){var te=P(Z);return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an array."))}for(var se=0;se<Z.length;se++){var X=E(Z,se,V,W,K+"["+se+"]",a);if(X instanceof Error)return X}return null}return b(I)}function v(){function E(I,F,Q,V,W){var K=I[F];if(!l(K)){var Z=P(K);return new g("Invalid "+V+" `"+W+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return b(E)}function y(){function E(I,F,Q,V,W){var K=I[F];if(!e.isValidElementType(K)){var Z=P(K);return new g("Invalid "+V+" `"+W+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return b(E)}function N(E){function I(F,Q,V,W,K){if(!(F[Q]instanceof E)){var Z=E.name||f,te=Y(F[Q]);return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected ")+("instance of `"+Z+"`."))}return null}return b(I)}function x(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function I(F,Q,V,W,K){for(var Z=F[Q],te=0;te<E.length;te++)if(m(Z,E[te]))return null;var se=JSON.stringify(E,function(ce,j){var we=H(j);return we==="symbol"?String(j):j});return new g("Invalid "+W+" `"+K+"` of value `"+String(Z)+"` "+("supplied to `"+V+"`, expected one of "+se+"."))}return b(I)}function O(E){function I(F,Q,V,W,K){if(typeof E!="function")return new g("Property `"+K+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var Z=F[Q],te=P(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an object."));for(var se in Z)if(n(Z,se)){var X=E(Z,se,V,W,K+"."+se,a);if(X instanceof Error)return X}return null}return b(I)}function $(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var I=0;I<E.length;I++){var F=E[I];if(typeof F!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+D(F)+" at index "+I+"."),i}function Q(V,W,K,Z,te){for(var se=[],X=0;X<E.length;X++){var ce=E[X],j=ce(V,W,K,Z,te,a);if(j==null)return null;j.data&&n(j.data,"expectedType")&&se.push(j.data.expectedType)}var we=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new g("Invalid "+Z+" `"+te+"` supplied to "+("`"+K+"`"+we+"."))}return b(Q)}function q(){function E(I,F,Q,V,W){return _(I[F])?null:new g("Invalid "+V+" `"+W+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return b(E)}function B(E,I,F,Q,V){return new g((E||"React class")+": "+I+" type `"+F+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function G(E){function I(F,Q,V,W,K){var Z=F[Q],te=P(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));for(var se in E){var X=E[se];if(typeof X!="function")return B(V,W,K,se,H(X));var ce=X(Z,se,V,W,K+"."+se,a);if(ce)return ce}return null}return b(I)}function z(E){function I(F,Q,V,W,K){var Z=F[Q],te=P(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));var se=t({},F[Q],E);for(var X in se){var ce=E[X];if(n(E,X)&&typeof ce!="function")return B(V,W,K,X,H(ce));if(!ce)return new g("Invalid "+W+" `"+K+"` key `"+X+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(F[Q],null," ")+`
542
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var j=ce(Z,X,V,W,K+"."+X,a);if(j)return j}return null}return b(I)}function _(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(_);if(E===null||l(E))return!0;var I=h(E);if(I){var F=I.call(E),Q;if(I!==E.entries){for(;!(Q=F.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=F.next()).done;){var V=Q.value;if(V&&!_(V[1]))return!1}}else return!1;return!0;default:return!1}}function U(E,I){return E==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function P(E){var I=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":U(I,E)?"symbol":I}function H(E){if(typeof E>"u"||E===null)return""+E;var I=P(E);if(I==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return I}function D(E){var I=H(E);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Y(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},bn}var wn,dl;function um(){if(dl)return wn;dl=1;var e=mn();function t(){}function a(){}return a.resetWarningCache=t,wn=function(){function n(i,l,c,d,u,h){if(h!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function r(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},wn}var ul;function hm(){if(ul)return ua.exports;if(ul=1,process.env.NODE_ENV!=="production"){var e=un(),t=!0;ua.exports=dm()(e.isElement,t)}else ua.exports=um()();return ua.exports}var fm=hm();const Se=qt(fm);var mm=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},An.apply(this,arguments)}function pm(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function fa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yn(e,t)}function yn(e,t){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yn(e,t)}var ma=(function(e){gm(t,e);function t(){var n;return n=e.call(this)||this,n.handleExpired=n.handleExpired.bind(fa(n)),n.handleErrored=n.handleErrored.bind(fa(n)),n.handleChange=n.handleChange.bind(fa(n)),n.handleRecaptchaRef=n.handleRecaptchaRef.bind(fa(n)),n}var a=t.prototype;return a.getCaptchaFunction=function(r){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[r]:this.props.grecaptcha[r]:null},a.getValue=function(){var r=this.getCaptchaFunction("getResponse");return r&&this._widgetId!==void 0?r(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var r=this.getCaptchaFunction("execute");if(r&&this._widgetId!==void 0)return r(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var r=this;return new Promise(function(o,i){r.executionResolve=o,r.executionReject=i,r.execute()})},a.reset=function(){var r=this.getCaptchaFunction("reset");r&&this._widgetId!==void 0&&r(this._widgetId)},a.forceReset=function(){var r=this.getCaptchaFunction("reset");r&&r()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(r){this.props.onChange&&this.props.onChange(r),this.executionResolve&&(this.executionResolve(r),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var r=this.getCaptchaFunction("render");if(r&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=r(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(r){this.captcha=r},a.render=function(){var r=this.props;r.sitekey,r.onChange,r.theme,r.type,r.tabindex,r.onExpired,r.onErrored,r.size,r.stoken,r.grecaptcha,r.badge,r.hl,r.isolated;var o=pm(r,mm);return Un.createElement("div",An({},o,{ref:this.handleRecaptchaRef}))},t})(Un.Component);ma.displayName="ReCAPTCHA",ma.propTypes={sitekey:Se.string.isRequired,onChange:Se.func,grecaptcha:Se.object,theme:Se.oneOf(["dark","light"]),type:Se.oneOf(["image","audio"]),tabindex:Se.number,onExpired:Se.func,onErrored:Se.func,size:Se.oneOf(["compact","normal","invisible"]),stoken:Se.string,hl:Se.string,badge:Se.oneOf(["bottomright","bottomleft","inline"]),isolated:Se.bool},ma.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Cn,hl;function bm(){if(hl)return Cn;hl=1;var e=un(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=r;function i(m){return e.isMemo(m)?r:o[m.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;function p(m,g,b){if(typeof g!="string"){if(f){var w=h(g);w&&w!==f&&p(m,w,b)}var C=c(g);d&&(C=C.concat(d(g)));for(var S=i(m),v=i(g),y=0;y<C.length;++y){var N=C[y];if(!a[N]&&!(b&&b[N])&&!(v&&v[N])&&!(S&&S[N])){var x=u(g,N);try{l(m,N,x)}catch{}}}}return m}return Cn=p,Cn}var wm=bm();const Am=qt(wm);function vn(){return vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},vn.apply(this,arguments)}function ym(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function Cm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Oe={},vm=0;function Sm(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=(function(l){Cm(c,l);function c(u,h){var f;return f=l.call(this,u,h)||this,f.state={},f.__scriptURL="",f}var d=c.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+vm++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(h){var f=this;this.setState(h,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var h=Oe[this.__scriptURL];if(!h||!h.loaded)throw new Error("Script is not loaded.");for(var f in h.observers)h.observers[f](h);delete window[t.callbackName]},d.componentDidMount=function(){var h=this,f=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),m=t,g=m.globalName,b=m.callbackName,w=m.scriptId;if(g&&typeof window[g]<"u"&&(Oe[f]={loaded:!0,observers:{}}),Oe[f]){var C=Oe[f];if(C&&(C.loaded||C.errored)){this.asyncScriptLoaderHandleLoad(C);return}C.observers[p]=function(x){return h.asyncScriptLoaderHandleLoad(x)};return}var S={};S[p]=function(x){return h.asyncScriptLoaderHandleLoad(x)},Oe[f]={loaded:!1,observers:S};var v=document.createElement("script");v.src=f,v.async=!0;for(var y in t.attributes)v.setAttribute(y,t.attributes[y]);w&&(v.id=w);var N=function(O){if(Oe[f]){var $=Oe[f],q=$.observers;for(var B in q)O(q[B])&&delete q[B]}};b&&typeof window<"u"&&(window[b]=function(){return h.asyncScriptLoaderTriggerOnScriptLoaded()}),v.onload=function(){var x=Oe[f];x&&(x.loaded=!0,N(function(O){return b?!1:(O(x),!0)}))},v.onerror=function(){var x=Oe[f];x&&(x.errored=!0,N(function(O){return O(x),!0}))},document.body.appendChild(v)},d.componentWillUnmount=function(){var h=this.__scriptURL;if(t.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),p=0;p<f.length;p+=1)f[p].src.indexOf(h)>-1&&f[p].parentNode&&f[p].parentNode.removeChild(f[p]);var m=Oe[h];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete Oe[h])},d.render=function(){var h=t.globalName,f=this.props;f.asyncScriptOnLoad;var p=f.forwardedRef,m=ym(f,["asyncScriptOnLoad","forwardedRef"]);return h&&typeof window<"u"&&(m[h]=typeof window[h]<"u"?window[h]:void 0),m.ref=p,k.createElement(n,m)},c})(k.Component),i=k.forwardRef(function(l,c){return k.createElement(o,vn({},l,{forwardedRef:c}))});return i.displayName="AsyncScriptLoader("+r+")",i.propTypes={asyncScriptOnLoad:Se.func},Am(i,n)}}var Sn="onloadcallback",Nm="grecaptcha";function Nn(){return typeof window<"u"&&window.recaptchaOptions||{}}function Em(){var e=Nn(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Sn+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Sn+"&render=explicit"}const fl=Sm(Em,{callbackName:Sn,globalName:Nm,attributes:Nn().nonce?{nonce:Nn().nonce}:{}})(ma),at=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Tm={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},xm=({isOpen:e,onClose:t,commentId:a,publication:n,username:r,CAPTCHA_KEY_V2:o,blockRecaptcha:i=!1,texts:l})=>{const c={...Tm,...l?.comentarios},d={...ca,...c.reportReasons??{}},[u,h]=k.useState("form"),[f,p]=k.useState(""),[m,g]=k.useState(""),[b,w]=k.useState(""),C=[{id:"spam",label:d.spam},{id:"inappropriate",label:d.inappropriate},{id:"hate",label:d.hate},{id:"misinformation",label:d.misinformation},{id:"terrorism",label:d.terrorism},{id:"intellectual",label:d.intellectual},{id:"bullying",label:d.bullying}],S=async()=>{if(!(!f||!a)){if(el(document).includes(a)){g(c.errorAlreadyReported);return}h("loading"),g("");try{const N=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:n,username:r,id:a,captchaToken:b,type:ca[f]})})).json();if(N.type==="success")nm(document,a),h("success"),setTimeout(()=>{v()},3e3);else throw new Error(N.message||c.errorReportComment)}catch(y){console.error("Error reporting comment:",y),g(y.message||c.errorReportComment),h("form")}}},v=()=>{h("form"),p(""),g(""),t()};return!e||!a||!r?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:v,children:s.jsx(gt,{})}),s.jsx("div",{className:"sass-pg-cmt-rp-title",children:c.reportAbuseTitle}),u==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(at,{})}),u==="form"||u==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:C.map(y=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:y.id,checked:f===y.id,onChange:N=>p(N.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:y.label})]},y.id))}),m&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:m}),!i&&s.jsx(fl,{sitekey:o,theme:"light",size:"normal",onChange:y=>w(y??""),onExpired:()=>w("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:v,className:"sass-pg-cmt-rp-cancelButton",children:c.cancelButton}),s.jsx("button",{onClick:S,disabled:!f,className:"sass-pg-cmt-rp-reportButton",children:c.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:c.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:v,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:c.reportCloseButton})})]})]})})};function km(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function pa(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?pa({comments:a.reply}).comments:a.reply};const{user:n,text:r}=km(a.text);return{...a,user:n||!1,text:r,reply:a.reply?pa({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function ga({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){const{PUBLIC_ENV:d}=c;if(d==="prod"){const u=await ml({publication:e,path:t,size:a,sizereply:n,id:r,lastid:o,state:i,apiToken:l,API_ENV:c});return pa(u[0])}else{const u=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${n}&lastid=${o}`);if(!u.ok)throw new Error(`Error al obtener comentarios: ${u.status}`);const h=await u.json();return pa(h.data[0])}}async function ml({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:u="dummy",PUBLIC_API_PATH:h,PUBLIC_API_PATH_VERSION:f}=c,p=parseInt(String(a),10),m=parseInt(String(n),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const g=d!=="prod"?`${u}${h}`:"",b=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:m.toString(),state:i});r&&b.append("id",r),o&&b.append("lastid",o);const w=`${g}${f}/newcomments/get?${b.toString()}`;try{const{data:C}=await re.get(w,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!C)throw new Error("No comments data received");return C.data||C||[]}catch(C){if(console.error("Error fetching comments:",C),re.isAxiosError(C)){const S=C.response?.status,v=C.response?.data;throw S===404?new Error("Comments not found"):S===403?new Error("Access forbidden - check API token"):S===401?new Error("Unauthorized - invalid API token"):S===500?new Error("Internal server error from CMS"):new Error(v?.error||v?.message||`HTTP ${S}: Failed to fetch comments`)}throw C}}const Im=(e,t)=>{const[a,n]=k.useState(void 0),{PUBLIC_PUBLICATION_ID:r}=t,o=r;return k.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const c=await ga({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});n(c??[])}catch{n({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:n}},pl=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("time",{className:"comment-date su-truncate",dateTime:ke(Number(t),a?.DATE_TIMEZONE??"")||void 0,...Xe(Number(t),void 0,"note"),children:am(xe(Number(t),a))})]}),gl=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),bl=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Lm={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},En=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:n,texts:r})=>{const o={...Lm,...r?.comentarios};return k.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const d=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${d}/${Re}`),i.classList.toggle("over-limit",d>Re),a(!da(e,t,n).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},Tn=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:n,API_ENV:r})=>{const o=da(e,t,r);return s.jsxs("div",{className:"form-actions su-flex-between",children:[!Te(r)&&s.jsx(fl,{sitekey:r.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[n,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},Pm={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Um={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con GOOGLE",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Om({onClose:e,handleGoogleLogin:t,icon:a,texts:n,API_ENV:r}){const o={...Um,...Pm,...n?.comentarios},i=de(r),l=h=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/login"+(h?"#forgot":""))},c=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/register")},{PUBLIC_ASSETS_URL:d}=r,u=(d&&d!=="false"?d:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:h=>{const f=h.target;f&&f.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?s.jsx("img",{src:a,alt:"Logo"}):null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(gt,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:u,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{l(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:c,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{l(!0)},children:o.forgotPasswordText})]})})}const Bm={submitCommentButton:"Enviar Comentario"},xn=({onClick:e,isDisabled:t,API_ENV:a,icon:n,handleGoogleLogin:r,showAlert:o,texts:i})=>{const l={...Bm,...i?.comentarios},[c,d]=k.useState(!1),[u,h]=k.useState(!1),[f,p]=k.useState(!1);k.useEffect(()=>{let g=null;return c&&(g=setTimeout(()=>{d(!1)},2400)),()=>{g&&clearTimeout(g)}},[c]),k.useEffect(()=>{if(!u||!a.CONFIG_commentsV2||!o||!document)return;const g=document.getElementById("comment-button");if(!g)return;const b=g.closest(".comment-form"),w=b?.querySelector('input[name="username"]'),C=b?.querySelector('textarea[name="comment"]'),S=b?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");w?.value?.trim()&&C?.value?.trim()&&(!Te(a)&&!S?.value?.trim()||g.click())});const m=ne("/Success.gif",a.PUBLIC_ASSETS_URL);return c?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:m})}):s.jsxs(s.Fragment,{children:[f&&a.CONFIG_commentsV2&&o&&s.jsx(Om,{API_ENV:a,icon:n,handleGoogleLogin:r,texts:i,onClose:g=>{g&&h(!0),p(!1)}}),s.jsxs("button",{type:"button",onClick:async g=>{if(!u&&a.CONFIG_commentsV2&&o){p(!0),console.log("open popup");return}await e(g)&&(a.CONFIG_commentsV2&&o&&h(!1),d(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})]})},kn=async({path:e,ref:t,captchaToken:a,button:n,user:r,id:o,addComment:i,API_ENV:l,anonimusUser:c})=>{const d=t.current?.value||"",{PUBLIC_PUBLICATION_ID:u}=l,h=u;if(console.log("check",r,c),!da(t,a,l).boolean||!r&&!c){console.log("warn");const p=n.nextElementSibling;return p&&(p.style.display="block"),!1}if(!r&&!c)return;const f=r?d:"[["+c+"]] "+d;try{const p=Date.now(),m=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:h,path:e,id:o,username:r?r.username:!1,comment:f,recaptchaResponse:a})});let g=null;try{g=await m.json()}catch(v){console.error("Error parsing JSON response:",v)}if(!m.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${m.status}`);const b=Date.now(),w=Math.max(0,2400+Math.abs(b-p)),C=r||{username:c,firstname:c},S={username:C.username,firstname:C.firstname,...C.lastname&&{lastname:C.lastname},...C.picture&&{picture:C.picture}};return i({id:b.toString(),text:d,user:S,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),w}catch(p){return console.error("Error enviando comentario:",p),alert(p.message||"Error al enviar el comentario."),!1}},Mm=({replyingTo:e,commentRef:t,user:a,path:n,addReply:r,closeForm:o,API_ENV:i,texts:l})=>{const[c,d]=k.useState(!0),[u,h]=k.useState(""),f=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Re}`),d(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:f,children:s.jsx(gt,{})}),s.jsx(En,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(Tn,{commentRef:t,captchaToken:u,setCaptchaToken:h,API_ENV:i,children:s.jsx(xn,{onClick:async p=>{if(c)return;const m=await kn({path:n,ref:t,captchaToken:u,button:p.currentTarget,user:a,id:e,addComment:r,API_ENV:i});return m&&typeof m=="number"?(setTimeout(()=>{f()},m),!0):!1},isDisabled:c,API_ENV:i,texts:l})})]})},_m={replyingToLabel:"Respondiendo a"},Dm=({reply:e,replyingTo:t,user:a,onFlag:n,DATE_CONFIG:r,texts:o})=>{const i={..._m,...o?.comentarios},l=e.text;let c=`${et.firstname} ${et.lastname??""}`,d=et.username;return e.user&&(c=`${e.user.firstname} ${e.user.lastname??""}`,d=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(gl,{user:e.user?e.user:et}),s.jsxs("div",{style:{flex:1},children:[s.jsx(pl,{username:c,date:e.date.time,DATE_CONFIG:r}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==d.toLowerCase()&&s.jsx(bl,{isReply:!0,onFlag:()=>n(e.id)})]})]})})},qm={moreRepliesButton:"Más Respuestas"},Gm=({comment:e,replyingTo:t,path:a,user:n,handleReplyingTo:r,onFlag:o,API_ENV:i,texts:l})=>{const c={...qm,...l?.comentarios},d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[u,h]=k.useState(d),[f,p]=k.useState(!1),{PUBLIC_PUBLICATION_ID:m,PUBLIC_X_SECURITY_TOKEN:g}=i,b=e.text,w=k.useRef(null);let C=`${et.firstname} ${et.lastname??""}`,S=et.username;e.user&&(C=`${e.user.firstname} ${e.user.lastname??""}`,S=e.user.username);const v=y=>{h({morereply:u.morereply,reply:[y,...u.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":u.reply.length>0?"true":"false",children:[s.jsx(gl,{user:e.user?e.user:et}),s.jsxs("div",{style:{flex:1},children:[s.jsx(pl,{username:C,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:b}),n?.username.toLowerCase()!==S.toLowerCase()&&s.jsx(bl,{onReply:()=>r(e.id),onFlag:()=>o(e.id)}),t===e.id&&n&&s.jsx(Mm,{replyingTo:t,commentRef:w,addReply:v,user:n,path:a,API_ENV:i,closeForm:()=>r(""),texts:l}),u.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[u.reply.map(y=>s.jsx(Dm,{user:n,reply:y,replyingTo:C,onFlag:o,DATE_CONFIG:i,texts:l},y.id)),f?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(at,{})}):u.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const y=u.reply[u.reply.length-1]?.id;p(!0);try{const x=await ga({publication:m??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:y,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),h({morereply:x.morecomment,reply:[...u.reply,...x.comments]})}catch(N){throw p(!1),new Error(`Error al obtener comentarios: ${N}`)}},children:c.moreRepliesButton})]})]})]})})},Fm=({commentRef:e,user:t,path:a,addComment:n,API_ENV:r,texts:o})=>{const[i,l]=k.useState(!0),[c,d]=k.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(En,{commentRef:e,captchaToken:c,setIsDisabled:l,API_ENV:r,texts:o}),s.jsx(Tn,{API_ENV:r,commentRef:e,captchaToken:c,setCaptchaToken:d,children:s.jsx(xn,{onClick:async u=>{if(i)return;const h=await kn({path:a,ref:e,captchaToken:c,button:u.currentTarget,user:t,addComment:n,API_ENV:r});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Re}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Re}`),l(!0)},h),!0):!1},isDisabled:i,API_ENV:r,texts:o})})]})},jm={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},Hm=({usernameRef:e,texts:t})=>{const a={...jm,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},Vm=({usernameRef:e,commentRef:t,path:a,icon:n,handleGoogleLogin:r,addComment:o,API_ENV:i,texts:l})=>{const[c,d]=k.useState(!0),[u,h]=k.useState(""),f=async p=>{if(c){console.log("error");return}if(!da(t,u,i).boolean){console.log("invalidForm");return}const m=e.current.value,g=await kn({path:a,ref:t,captchaToken:u,button:p.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:m});return h(""),g&&typeof g=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Re}`),d(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Re}`),d(!0)},g),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(Hm,{usernameRef:e,texts:l}),s.jsx(En,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(Tn,{API_ENV:i,commentRef:t,captchaToken:u,setCaptchaToken:h,children:s.jsx(xn,{onClick:f,isDisabled:c,API_ENV:i,handleGoogleLogin:r,icon:n,showAlert:!0,texts:l})})]})})},zm={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},$m=({isAuthenticated:e,path:t,user:a,handleLogout:n,icon:r,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const c={...zm,...l?.comentarios},{PUBLIC_PUBLICATION_ID:d,PUBLIC_X_SECURITY_TOKEN:u}=i,h=d??"",f=t.replaceAll("/","|"),[p,m]=k.useState(void 0),[g,b]=k.useState(""),{comments:w,setComments:C}=Im(f,i),[S,v]=k.useState(!1),y=k.useRef(null),N=k.useRef(null),x=U=>{b(g===U?"":U)},O=U=>{C(w?{...w,comments:[U,...w.comments??[]]}:void 0)},$=U=>{m(U)},q=async()=>{if(!w||!w.morecomment||w.comments.length===0)return;const U=w.comments[w.comments.length-1];if(!U)return;v(!0);const P=U.id;try{const H=await ga({publication:h,path:f??"",size:5,sizereply:2,id:void 0,lastid:P,state:"5,6",apiToken:u,API_ENV:i});C({morecomment:H.morecomment??!1,comments:[...w.comments,...H.comments]}),v(!1)}catch(H){throw v(!1),new Error(`Error al obtener comentarios: ${H}`)}},B=w?.comments&&w.comments.length>0,G=B?c.commentHeaderMessageWithComments:c.commentHeaderMessageEmpty,z=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(at,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=de(i)+"/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(he,{noHeading:!0,title:i.CONFIG_commentsV2||B||e?c.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(em,{user:a,handleLogout:n,message:G,texts:l}),s.jsx(Fm,{commentRef:y,user:a,addComment:O,path:f,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[c.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:c.anonimusPromptLinkText}),c.anonimusPromptSuffix]}),s.jsx(Vm,{usernameRef:N,commentRef:y,icon:r,handleGoogleLogin:o,addComment:O,path:f,API_ENV:i,texts:l})]}):null}),w?w.comments&&w.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[w.comments.map(U=>s.jsx(Gm,{comment:U,replyingTo:g,handleReplyingTo:x,onFlag:$,user:a??et,path:f,API_ENV:i,texts:l},U.id)),S&&z]}):null:z,w?.morecomment&&!S&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:q,children:c.loadMoreButton})]})})}),s.jsx(xm,{username:a?.username??void 0,publication:h,commentId:p,isOpen:p!==void 0,onClose:()=>m(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",blockRecaptcha:Te(i),texts:l})]})},is=async(e,t,a)=>{if(Te(a))return Bn;if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const n=window.grecaptcha;if(!n?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((r,o)=>{n.enterprise.ready(async()=>{try{const i=await n.enterprise.execute(t,{action:e});if(!i)throw new Error("Captcha token no generado");r(i)}catch(i){o(i)}})})},Qm={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tenés cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ls={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function Wm(e){return{email:{label:e?.email??ls.email.label,required:!0},given_name:{label:e?.given_name??ls.given_name.label,required:!0},family_name:{label:e?.family_name??ls.family_name.label,required:!0},password:{label:e?.password??ls.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ls.confirmPassword.label,required:!0}}}const We=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],wl=[{label:"La contraseña debe tener al menos 8 caracteres",test:We[0]},{label:"Usa un número",test:We[1]},{label:"Usa una letra minúscula",test:We[2]},{label:"Usa una letra mayúscula",test:We[3]},{label:"Usa un símbolo",test:We[4]}];function Ym({goToLogin:e,handleGoogleLogin:t,API_ENV:a,texts:n,termsAndConditionsUrl:r}){const o={...Qm,...n?.comentarios},i=k.useMemo(()=>Wm(n?.comentarios?.registerForm),[n?.comentarios?.registerForm]),l=k.useMemo(()=>[{label:o.passwordRuleMinLength,test:We[0]},{label:o.passwordRuleNumber,test:We[1]},{label:o.passwordRuleLowercase,test:We[2]},{label:o.passwordRuleUppercase,test:We[3]},{label:o.passwordRuleSymbol,test:We[4]}],[o.passwordRuleMinLength,o.passwordRuleNumber,o.passwordRuleLowercase,o.passwordRuleUppercase,o.passwordRuleSymbol]),[c,d]=k.useState({}),[u,h]=k.useState(!1),[f,p]=k.useState(!1),[m,g]=k.useState(null),[b,w]=k.useState("register"),C=(N,x)=>{d(O=>({...O,[N]:x}))},S=async N=>{N.preventDefault(),g(null),p(!0);try{const x=Object.keys(i).filter(z=>!["username","password","confirmPassword"].includes(z)).map(z=>({Name:z,Value:c[z]}));if(x.some(z=>{if(!z.Value||z.Value.trim()==="")return!0}))return p(!1),g(o.errorCompleteFields);if(c.password!==c.confirmPassword){g(o.errorPasswordMismatch);return}const O=c.password||"";if(l.some(z=>!z.test(O))){g(o.errorPasswordInvalid);return}const q=Math.floor(Date.now()/1e3);x.push({Name:"updated_at",Value:String(q)});const B=a.PUBLIC_ENV==="local"?"token":await is("comment_register",a.CAPTCHA_KEY??"",a);if(!B)throw new Error("Captcha token no generado");const G=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,password:c.password,userAttributes:x,token:B})});if(!G.ok){const z=await G.json().catch(()=>({}));if(z.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email})}),w("confirm");return}throw new Error(z?.error||"Error al crear usuario")}w("confirm")}catch(x){console.log(x),g(x?.message||x?.error||o.errorUnexpected)}finally{p(!1)}},v=async N=>{if(N.preventDefault(),!c.confirmationCode){g(o.errorVerificationCodeRequired);return}g(null),p(!0);try{const x=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,code:c.confirmationCode})});if(!x.ok){const O=await x.json().catch(()=>({}));throw new Error(O?.error||"Error al confirmar usuario")}w("success")}catch(x){g(x?.message||o.errorUnexpected)}finally{p(!1)}},y=c.password||"";return s.jsxs(s.Fragment,{children:[b==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:S,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-cmt-lp-formUl",children:Object.entries(i).map(([N,{label:x}])=>s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:x}),s.jsx("input",{type:N.toLowerCase().includes("password")?u?"text":"password":N==="birthdate"?"date":N==="email"?"email":N==="phone_number"?"tel":"text",name:N,value:c[N]||"",onChange:O=>C(N,O.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),N==="password"&&s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:l.map((O,$)=>{const q=O.test(y);return s.jsxs("div",{className:q?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:q?"✔":"○"}),s.jsx("div",{children:O.label})]},$)})}),N==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:u,onChange:O=>h(O.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-cmt-lp-checkboxLabel",children:o.showPasswordsLabel})]})]},N))}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsxs("p",{className:"sass-pg-cmt-lp-terms",children:[o.termsPrefix," ",s.jsx("a",{href:r??"/pages/politicas-de-privacidad.html",target:"_blank",children:o.termsLinkText})," ",o.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:f,children:f?s.jsx(at,{}):o.createAccountButton})]})]}),b==="confirm"&&s.jsxs("form",{onSubmit:v,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:o.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:c.confirmationCode||"",onChange:N=>C("confirmationCode",N.target.value),className:"sass-pg-cmt-lp-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:f,children:f?s.jsx(at,{}):o.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyConfirmedText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]}),b==="success"&&s.jsxs("form",{className:"sass-pg-cmt-lp-form",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-lp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-cmt-lp-successMessage",children:[s.jsx("p",{children:o.successTitle}),s.jsx("p",{children:o.successMessage})]})]}),s.jsx("button",{onClick:e,className:"sass-pg-cmt-lp-primary",children:o.loginButtonText})]}),b==="register"&&s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyHasAccountText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]})}const Km={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Jm({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:n,API_ENV:r,texts:o}){const i={...Km,...o?.comentarios},[l,c]=k.useState("login"),[d,u]=k.useState(""),[h,f]=k.useState(""),[p,m]=k.useState(""),[g,b]=k.useState(""),[w,C]=k.useState(""),[S,v]=k.useState(!1),[y,N]=k.useState(!1),[x,O]=k.useState(null),$=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=r.PUBLIC_ENV==="local"?"token":await is("comment_login",r.CAPTCHA_KEY||"",r);if(!z)throw new Error("Captcha token no generado");const _=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:d,password:h,token:z})});if(!_.ok){const U=await _.json().catch(()=>({}));throw new Error(U?.error||"Ha ocurrido un error")}e(),await t()}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},q=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Error al enviar código")}f(""),c("changePassword")}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},B=async G=>{if(y)return;if(G.preventDefault(),g!==w){O("Las contraseñas no coinciden");return}if(wl.some(_=>!_.test(g))){O("La contraseña no cumple con los requisitos");return}O(null),N(!0);try{const _=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,code:p,newPassword:g})});if(!_.ok){const U=await _.json().catch(()=>({}));throw new Error(U?.error||"Error al cambiar contraseña")}c("feedback")}catch(_){O(_?.message||"Error inesperado")}finally{N(!1)}};return s.jsxs(s.Fragment,{children:[l==="login"&&s.jsx(Zm,{email:d,password:h,showPassword:S,loading:y,error:x,setEmail:u,setPassword:f,setShowPassword:v,onSubmit:$,onForgot:()=>{O(null),c("forgot")},onRegister:a,handleGoogleLogin:n,t:i}),l==="forgot"&&s.jsx(Xm,{email:d,setEmail:u,loading:y,error:x,onSubmit:q,onBack:()=>{O(null),c("login")},t:i}),l==="changePassword"&&s.jsx(Rm,{email:d,confirmationCode:p,newPassword:g,confirmNewPassword:w,showPassword:S,loading:y,error:x,setConfirmationCode:m,setNewPassword:b,setConfirmNewPassword:C,setShowPassword:v,onSubmit:B,onBack:()=>{O(null),c("forgot")},t:i}),l==="feedback"&&s.jsx(ep,{onBackToLogin:()=>{O(null),c("login")},t:i})]})}function Zm({email:e,password:t,showPassword:a,loading:n,error:r,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:d,onRegister:u,handleGoogleLogin:h,t:f}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:h,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:f.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:c,className:"sass-pg-cmt-lp-form","data-error":r?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:f.email}),s.jsx("input",{type:"email",value:e,onChange:p=>o(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:f.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:p=>i(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:p=>l(p.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-cmt-lp-checkboxLabel",children:f.showPassword})]})]}),r&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:n,children:n?s.jsx(at,{}):f.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[f.noAccountText,s.jsx("button",{type:"button",onClick:u,children:f.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:d,children:f.forgotPasswordText})]})}function Xm({email:e,setEmail:t,loading:a,error:n,onSubmit:r,onBack:o,t:i}){return s.jsxs("form",{onSubmit:r,className:"sass-pg-cmt-lp-form","data-error":n?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),n&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:a,children:a?s.jsx(at,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function Rm({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:n,showPassword:r,loading:o,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:d,setShowPassword:u,onSubmit:h,onBack:f,t:p}){const m=p.changePasswordMessage.replace("{{email}}",rm(e));return s.jsxs("form",{onSubmit:h,className:"sass-pg-cmt-lp-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:m}),s.jsxs("ul",{className:"sass-pg-cmt-lp-formUl",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.newPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:a,onChange:g=>c(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:wl.map((g,b)=>{const w=g.test(a);return s.jsxs("div",{className:w?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:w?"✔":"○"}),s.jsx("div",{children:g.label})]},b)})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:n,onChange:g=>d(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:r,onChange:g=>u(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-cmt-lp-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(at,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:f,children:p.backButton})})]})}function ep({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-cmt-lp-form",children:[s.jsx("p",{className:"sass-pg-cmt-lp-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-primary",onClick:e,children:t.loginButtonText})]})}function tp({handleGoogleLogin:e,onClose:t,checkAuth:a,icon:n,API_ENV:r,texts:o,termsAndConditionsUrl:i}){const[l,c]=k.useState("login");return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&t()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:n?s.jsx("img",{src:n,alt:"Logo"}):null}),s.jsx("button",{onClick:t,className:"sass-pg-cmt-lp-close","aria-label":"Cerrar",children:s.jsx(gt,{})})]}),l==="login"&&s.jsx(Jm,{onClose:t,checkAuth:a,handleGoogleLogin:e,goToRegister:()=>c("register"),API_ENV:r,texts:o}),l==="register"&&s.jsx(Ym,{handleGoogleLogin:e,goToLogin:()=>c("login"),API_ENV:r,texts:o,termsAndConditionsUrl:i})]})})}const sp={commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",loginButtonText:"Iniciar Sesión"};function ap({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:n,path:r,checkAuth:o,icon:i,API_ENV:l,texts:c,termsAndConditionsUrl:d}){const[u,h]=k.useState(!1),f={...sp,...c?.comentarios},p=f.loginButtonText,m=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const w=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(w)}`}},g=async w=>{w.preventDefault(),a&&h(!0)},b=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`};return s.jsxs(s.Fragment,{children:[u&&!l.CONFIG_commentsV2&&s.jsx(tp,{loginUrl:a,icon:i,checkAuth:o,handleGoogleLogin:b,API_ENV:l,texts:c,termsAndConditionsUrl:d,onClose:()=>{h(!1)}}),!e&&!l.CONFIG_commentsV2&&s.jsxs("div",{className:"auth-container",children:[s.jsx("p",{children:f.commentPromptMessage}),s.jsx("a",{href:a,onClick:g,className:"login-button",children:p})]}),s.jsx($m,{isAuthenticated:e,handleLogout:m,handleGoogleLogin:b,icon:i,path:r,user:e?n:void 0,API_ENV:l,texts:c})]})}function np({isVisible:e,path:t,icon:a,API_ENV:n,texts:r}){const[o,i]=k.useState(null),[l,c]=k.useState(null),d=n?.COGNITO_AUTH_PREFIX??"ASTRO_",u=k.useCallback(async()=>{if(e){if(document.cookie.search(d+"IS_AUTH=true")===-1){i(!1),c(null);return}try{const g=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(g.isAuthenticated??!1),c(g.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(m){console.error("Error checking auth:",m),i(!1),c(null)}}},[e,d]);k.useEffect(()=>{u()},[u,e]),k.useEffect(()=>{if(!l||!e||typeof window>"u")return;const m=window;if(typeof m!="function"){console.warn("gtag no está disponible todavía");return}m.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const h="/api/auth/login",f=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return f;const p=t.replaceAll("|","/");return e?s.jsx(ap,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:h,user:l??void 0,checkAuth:u,path:p,API_ENV:n,texts:r}):f}const rp=({internalPath:e,icon:t,API_ENV:a,texts:n})=>{const r=k.useMemo(()=>Pa(a),[a]);return k.useEffect(()=>{if(!document||Te(r))return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const i=document.createElement("script");i.id="recaptcha-enterprise-script",i.defer=!0,i.async=!0,i.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(i),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(np,{path:e,icon:t,isVisible:!0,API_ENV:r,texts:n})})},op=({section:e,internalPath:t,stylesConfig:a,paths:n,API_ENV:r,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(Kf,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:n,fetchConfig:o,API_ENV:Pa(r)})});async function ip({publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:c,COMMENTS_VARS:d}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o}),!e||!t||!n)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,n].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!n.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const u=await Ri(o,d);if(console.log("Verifying captcha token...",u),!u)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const h=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:t.replace(/\|/gi,"/"),text:n.trim()};a&&(f.username=a),r&&(f.id=r);const p=new URLSearchParams(f);try{const{data:m}=await re.get(`${h}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":c,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),re.isAxiosError(m)){const g=m.response?.status??500,b=m.response?.data;return g===400?{type:"error",message:b?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:b?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const lp=async({token:e,projectId:t,captchaKey:a,apiKey:n,captchaAction:r,config:o})=>{if(Te(o))return 1;if(!e)throw new Error("No token provided");if(!t||!a||!n)throw new Error("Missing project ID or site key");if(!r)throw new Error("No action provided");try{const l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:r}})})).json();if(!l?.tokenProperties?.valid)throw new Error(`The token was: ${l?.tokenProperties?.invalidReason}`);if(l.tokenProperties.action!==r)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return l?.riskAnalysis?.score??0}catch(i){throw console.error("Recaptcha verification failed",i),new Error(String(i))}},cp=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ns,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},dp=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ns,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},up=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return k.createElement(ns,{...l,key:i,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})})})},ba=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},hp=e=>{const{content:t,title:a,isVideo:n}=e;if(!t||t.length===0)return;const r=t[0],o=t.slice(1),i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return r&&o&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("div",{className:"sass-bd-dnfw-image",style:{"--heightImageOverwriteMobile":"200%"},children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx(M,{className:mt("sass-bd-dnfw-title",e.speculationPrerenderClass),href:r?.info?.link?.url,target:r?.info?.link?.target,children:r?.main?.title.home}),r?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:r?.main?.subtitle?.striped})]}),s.jsx(M,{href:r?.info?.link?.url,target:r?.info?.link?.target,"aria-label":r?.main?.title.home,children:s.jsx(ve,{preview:r.preview,isLarge:!0})})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,c)=>{const d={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:c},children:s.jsx(Pe,{...d,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})})]})]})},fp=({printEdition:e,title:t})=>e&&s.jsx(he,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Al={banner:e=>s.jsx(be,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(Js,{...e}),"Modulo 1x3":e=>s.jsx(ji,{...e}),"Modulo 1x4":e=>s.jsx(Hi,{...e}),"Modulo 1x5":e=>s.jsx(Vi,{...e}),"Destacado noticias":e=>s.jsx(Gi,{...e}),"Destacado full width":e=>s.jsx(hp,{...e}),"Destacado videos":e=>s.jsx(zi,{...e}),"Carrusel card":e=>s.jsx(Qi,{...e}),"Carrusel story":e=>s.jsx(cp,{...e}),"Carrusel owl":e=>s.jsx(dp,{...e}),"Modulo fotogaleria":e=>s.jsx(up,{...e}),"Carrusel opinion":e=>s.jsx(Wi,{...e}),"Modulo 1x3 card":e=>s.jsx($i,{...e}),"Modulo iframe":e=>s.jsx(fp,{...e}),"Carrusel video":e=>s.jsx(cn,{...e}),"Carusel videos":e=>s.jsx(cn,{...e})};function In({component:e,slot_id:t,data:a,banners:n,isHome:r}){if(n)return Al[e]&&s.jsx("div",{className:"home-slot",style:ba(a),children:Al[e]({...a,banners:n,slot_id:t,isHome:r})})}function mp({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:ba(t),children:e})}const pp=e=>e?.main?.title?{...e,main:{...e.main,title:{...e.main.title,section:e.main.title.home??e.main.title.section}}}:e,yl={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Di,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Di,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(wt,{...e.data[0],paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx(z1,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(V1,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"Diario en vivo":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(H1,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,textPosition:e.textPosition,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,customLiveStyles:e.customLiveStyles,paths:e.paths,commonServices:e.commonServices,speculationPrerenderClass:e.speculationPrerenderClass})}},Cl=({component:e,data:t,banners:a,rightOnlyBanner:n,isHome:r,commonServices:o})=>{const i=r&&Array.isArray(t?.data)?{...t,data:t.data.map(pp)}:t;return s.jsx("div",{style:ba(t),children:yl[e]&&yl[e]({...i,rightOnlyBanner:n,banners:a,commonServices:o})})},gp=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:n,config:r,banners:o,showTagBySection:i,pathname:l})=>{const c=mo(l),d=L().CONFIG_bannerKeys==="v2",u=v=>d?{name:`middle_${v}`,legacy:`middle_dynamic_${v}`}:{index:`dynamic_${v}`},h=[],f=t;let p=!0;const m=v=>v==="No Mostrar"||v?.toLowerCase()==="no mostrar",g=v=>{if(e[v].blockSass[0]?.block==="Modulo iframe")return!!e[v].blockSass[0]?.value;const N=e[v].content?.data;return Array.isArray(N)&&N.length>0},b=v=>{if(!p)return{};p=!1;const y=e[v].content?.data,N=Array.isArray(y)?y.length:0;return{speculationPrerenderClass:Ka,speculationPrerender:{class:Ka,length:N}}},w=(v,y,N,x)=>{if(!e[v]||!e[v].blockSass||!e[v].blockSass[0]||!e[v].blockSass[0].value||!e[v].blockSass[0].block||m(e[v].blockSass[0].block)||!g(v))return;const O=b(v);e[v].blockSass[0]?.block==="Modulo iframe"?h.push(s.jsxs(Ya,{id:e[v].blockSass[0].key,show:!!e[v].blockSass[0].value,order:y,children:[s.jsx(In,{component:e[v].blockSass[0].block,banners:o,slot_id:v,isHome:c,data:{printEdition:e[v]?.blockSass[0].value,title:e[v]?.blockSass[0].title??"",titleUrl:e[v].blockSass[0].link??void 0,...O}}),s.jsx(Fs,{children:s.jsx(js,{banners:o,...u(x)})})]},N)):h.push(s.jsxs(Ya,{id:e[v].blockSass[0].key,show:!!e[v].content?.data,order:y,children:[s.jsx(In,{component:e[v].blockSass[0].block,banners:o,slot_id:v,isHome:c,data:{...e[v].blockSass[0].block?a[e[v].blockSass[0].block]:[],content:e[v].content?.data??[],title:e[v].blockSass[0].title??void 0,titleUrl:e[v].blockSass[0].link??void 0,autorIcon:s.jsx(n,{}),paths:r.paths,showTagBySection:i,...O}}),s.jsx(Fs,{children:s.jsx(js,{banners:o,...u(x)})})]},N))},C=Object.keys(e);if(C.some(v=>/^Home_\d+$/.test(v))){const v=C.filter(y=>/^Home_\d+$/.test(y)).sort((y,N)=>Number(y.slice(5))-Number(N.slice(5)));for(const y of v){const N=Number(y.slice(5));w(y,Number.isFinite(N)?N-1:0,y,String(N))}}else{const y=C.length/f;for(let N=1;N<=y;N++)for(let x=1;x<=f;x++)w("Home_"+N+"_"+x,(N-1)*f+(x-1),N+"_"+x,N+"_"+x)}return h},bp=["Super","3 notas verticales","3 notas horizontales","Diario en vivo"],wp=async({StylesConfigMain:e,config:t,banners:a,axiosApi:n,commonServices:r,textPosition:o,imageSizes:i,section:l,zone:c,exclude:d,customMainImagesSize:u})=>{const{PUBLIC_ENV:h}=L();if(h!=="local")return null;const f=new Yo(t,{},n,d,u,i),p=await Promise.all(bp.map(async g=>{const b=f.GetByOptions[g];if(!b)return{component:g,news:{data:[]}};try{const C=(await b(l,c))?.data??{data:[]};return{component:g,news:C}}catch(w){return console.log(`[DEBUG_MainSlots] fetch ${g} failed: ${w?.message}`),{component:g,news:{data:[]}}}})),m=(g,b)=>({...b,...e[g],paths:t.paths,textPosition:o});return s.jsx(s.Fragment,{children:p.map(({component:g,news:b},w)=>s.jsxs("div",{children:[s.jsx(Cl,{component:g,data:m(g,b),banners:a,commonServices:r}),w<p.length-1&&s.jsx(Fs,{children:s.jsx(js,{banners:a,index:1})})]},g))})};function Ap({debugCfg:e}){return L().DEBUG_ENABLED?s.jsx(yp,{position:e?.buttonPosition??"bottom-right",initialErrors:e?.initialErrors,initialSuccesses:e?.initialSuccesses}):null}function yp({position:e,initialErrors:t,initialSuccesses:a}){const[n,r]=k.useState(0),[o,i]=k.useState(0),[l,c]=k.useState(!1),[d,u]=k.useState("errors"),[h,f]=k.useState([]),[p,m]=k.useState([]),g=k.useRef(null);k.useEffect(()=>{if(t&&t.length>0){const v=new Set(ge.getAll().map(y=>y.id));for(const y of t)v.has(y.id)||ge.add(y)}if(a&&a.length>0){const v=new Set(ge.getAllSuccesses().map(y=>y.id));for(const y of a)v.has(y.id)||ge.addSuccess(y)}r(ge.getCount()),i(ge.getSuccessCount());const C=v=>r(v.detail.count),S=v=>i(v.detail.count);return window.addEventListener("debug-fetch-error",C),window.addEventListener("debug-fetch-success",S),g.current=re.interceptors.response.use(v=>{const y=Cp(v.data);return ge.addSuccess({endpoint:v.config.url??"(unknown)",method:(v.config.method??"GET").toUpperCase(),params:v.config.params,status:v.status,responsePreview:y,layer:"axios-service"}),v},void 0),()=>{window.removeEventListener("debug-fetch-error",C),window.removeEventListener("debug-fetch-success",S),g.current!==null&&re.interceptors.response.eject(g.current)}},[]);function b(){f(ge.getAll()),m(ge.getAllSuccesses()),c(!0)}function w(){ge.clearAll(),f([]),m([]),r(0),i(0),c(!1)}return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:b,style:Tp(e),title:"Debug panel",children:["🐛",n>0&&s.jsx("span",{style:vl("#e94560"),children:n}),o>0&&s.jsx("span",{style:vl("#27ae60"),children:o})]}),l&&s.jsx("div",{style:xp,onClick:()=>c(!1),children:s.jsxs("div",{style:kp,onClick:C=>C.stopPropagation(),children:[s.jsxs("div",{style:Ip,children:[s.jsx("strong",{children:"Debug Panel"}),s.jsx("button",{onClick:()=>c(!1),style:Op,children:"✕"})]}),s.jsxs("div",{style:Lp,children:[s.jsxs("button",{onClick:()=>u("errors"),style:Sl(d==="errors","#e94560"),children:["Errors ",n>0&&s.jsx("span",{style:Nl("#e94560"),children:n})]}),s.jsxs("button",{onClick:()=>u("successes"),style:Sl(d==="successes","#27ae60"),children:["OK ",o>0&&s.jsx("span",{style:Nl("#27ae60"),children:o})]})]}),s.jsxs("div",{style:Pp,children:[d==="errors"&&(h.length===0?s.jsx("p",{style:Bl,children:"No hay errores acumulados."}):h.map(C=>s.jsx(Sp,{error:C},C.id))),d==="successes"&&(p.length===0?s.jsx("p",{style:Bl,children:"No hay fetches exitosos registrados aún."}):p.map(C=>s.jsx(Np,{entry:C},C.id)))]}),s.jsx("div",{style:Up,children:s.jsx("button",{onClick:w,style:Bp,children:"Limpiar todo"})})]})})]})}function Cp(e){try{const t=JSON.stringify(e);return t.length>500?t.slice(0,500)+"…":t}catch{return"[non-serializable]"}}function vp(e){const t=e.status?`${e.status}`:"Error",a=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return`${t}: ${a}`}function Sp({error:e}){const[t,a]=k.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}return s.jsxs("div",{style:El("#1a0a0a","#3d1a1a"),children:[s.jsxs("button",{onClick:()=>a(r=>!r),style:Tl,children:[s.jsx("span",{style:xl,children:t?"▼":"▶"}),s.jsx("span",{style:Ml(e.layer),children:e.layer}),e.status!==void 0&&s.jsx("span",{style:_l(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#f87171"},children:vp(e)}),s.jsxs("span",{style:kl,children:[e.method," ",e.endpoint]})]}),t&&s.jsxs("div",{style:Il,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),s.jsx("div",{style:{fontSize:12,color:"#f87171",marginBottom:4},children:e.message}),e.params&&s.jsx("pre",{style:Ln,children:JSON.stringify(e.params,null,2)}),s.jsxs("div",{style:Pl,children:[s.jsx("span",{style:Ul,children:e.timestamp}),s.jsx("button",{onClick:n,style:Ol,children:"Copy"})]})]})]})}function Np({entry:e}){const[t,a]=k.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}const r=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return s.jsxs("div",{style:El("#0a1a0a","#1a3d1a"),children:[s.jsxs("button",{onClick:()=>a(o=>!o),style:Tl,children:[s.jsx("span",{style:xl,children:t?"▼":"▶"}),s.jsx("span",{style:Ml(e.layer),children:e.layer}),s.jsx("span",{style:_l(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#4ade80"},children:r}),s.jsxs("span",{style:kl,children:[e.method," ",e.endpoint]}),e.responsePreview&&!t&&s.jsx("span",{style:_p,children:s.jsx("span",{style:Dp,children:e.responsePreview.length>80?e.responsePreview.slice(0,80)+"…":e.responsePreview})}),e.durationMs!==void 0&&s.jsxs("span",{style:Mp,children:[e.durationMs,"ms"]})]}),t&&s.jsxs("div",{style:Il,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),e.params&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:Ll,children:"Params"}),s.jsx("pre",{style:Ln,children:JSON.stringify(e.params,null,2)})]}),e.responsePreview&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:Ll,children:"Response"}),s.jsx("pre",{style:{...Ln,color:"#86efac"},children:e.responsePreview})]}),s.jsxs("div",{style:Pl,children:[s.jsx("span",{style:Ul,children:e.timestamp}),s.jsx("button",{onClick:n,style:Ol,children:"Copy"})]})]})]})}const Ep={"bottom-right":{bottom:16,right:16},"bottom-left":{bottom:16,left:16},"top-right":{top:16,right:16},"top-left":{top:16,left:16}};function Tp(e){return{position:"fixed",zIndex:99999,...Ep[e],background:"#1a1a2e",color:"#fff",border:"2px solid #e94560",borderRadius:8,padding:"8px 14px",fontSize:14,cursor:"pointer",display:"flex",alignItems:"center",gap:5,boxShadow:"0 4px 12px rgba(0,0,0,0.4)"}}function vl(e){return{background:e,color:"#fff",borderRadius:"50%",width:18,height:18,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,flexShrink:0}}const xp={position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center"},kp={background:"#1a1a2e",color:"#fff",borderRadius:12,width:"min(820px, 92vw)",maxHeight:"85vh",display:"flex",flexDirection:"column",boxShadow:"0 8px 32px rgba(0,0,0,0.6)",border:"1px solid #e94560"},Ip={display:"flex",justifyContent:"space-between",alignItems:"center",padding:"14px 20px",borderBottom:"1px solid #2a2a4e"},Lp={display:"flex",borderBottom:"1px solid #2a2a4e",padding:"0 12px",gap:4};function Sl(e,t){return{background:"none",border:"none",borderBottom:e?`2px solid ${t}`:"2px solid transparent",color:e?"#fff":"#888",cursor:"pointer",fontSize:13,fontWeight:e?700:400,padding:"8px 14px",display:"flex",alignItems:"center",gap:6,transition:"color 0.15s"}}function Nl(e){return{background:e,color:"#fff",borderRadius:10,padding:"1px 7px",fontSize:10,fontWeight:700}}const Pp={overflowY:"auto",flex:1,padding:"12px 16px",display:"flex",flexDirection:"column",gap:8},Up={padding:"12px 20px",borderTop:"1px solid #2a2a4e",display:"flex",justifyContent:"flex-end"},Op={background:"none",border:"none",color:"#fff",cursor:"pointer",fontSize:18},Bp={background:"#e94560",color:"#fff",border:"none",borderRadius:6,padding:"6px 16px",cursor:"pointer",fontSize:13};function El(e,t){return{background:e,border:`1px solid ${t}`,borderRadius:8,padding:10}}const Tl={display:"flex",alignItems:"center",gap:7,background:"none",border:"none",color:"#fff",cursor:"pointer",width:"100%",textAlign:"left",padding:0,fontSize:13,flexWrap:"wrap"},xl={fontSize:10,color:"#aaa",flexShrink:0},kl={fontSize:11,color:"#9ca3af",fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:300},Mp={fontSize:10,color:"#6b7280",marginLeft:"auto",flexShrink:0},_p={display:"flex",alignItems:"center",maxWidth:260,overflow:"hidden",flexShrink:1},Dp={fontFamily:"ui-monospace, monospace",fontSize:10,color:"#6b7280",background:"#0a0a14",borderRadius:3,padding:"1px 6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},Il={marginTop:10,paddingTop:10,borderTop:"1px solid #2a2a4e"},Ll={fontSize:10,textTransform:"uppercase",letterSpacing:"0.08em",color:"#9ca3af",marginBottom:3,marginTop:8},Ln={background:"#0a0a14",borderRadius:4,padding:"6px 10px",fontSize:10,overflow:"auto",maxHeight:150,margin:"0 0 4px",whiteSpace:"pre-wrap",wordBreak:"break-all"},Pl={display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},Ul={fontSize:10,color:"#6b7280"},Ol={background:"#2a2a4e",color:"#fff",border:"1px solid #444",borderRadius:6,padding:"4px 12px",cursor:"pointer",fontSize:11},Bl={color:"#888",margin:0,fontSize:13};function Ml(e){return{background:{"axios-service":"#3498db","fetch-api":"#9b59b6",captcha:"#f39c12",auth:"#e74c3c"}[e]??"#555",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function _l(e){return{background:e>=500?"#c0392b":e>=400?"#e67e22":"#27ae60",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function le(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tt(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cs(e,t){const{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,LINK_REMOVE:n,CONFIG_buscar_html:r}=L(),o=e??"",i=/[t][0-9]{4}\w+/.test(o),l=o.includes("/buscar"),c=!!a?.tema&&i,d=!!a?.buscar&&l,u=!t&&!c&&!d?de():"",h=/^(https?:)?\/\//.test(o)||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(o),f=o.split("/")?.[1]===u.replace("/","");let p=(!h&&!f?u:"")+(u&&o==="/"?"":o);return p.startsWith("//")&&(p=p.slice(1)),n&&p.search(n)!==-1&&(p=p.replace(n,"")),r&&l&&!p.endsWith(".html")&&(p=p.replace("/buscar","/buscar.html")),{finalHref:p,isExternal:h}}const qp={whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:"/whatsapp-note.svg"},message:{url:e=>`${e}#comentarios`,icon:"/message.svg"}};function Gp(e){const t=e.url||"",a=pt(),n=(e.options??[]).map(i=>{const l=String(i).toLowerCase(),c=qp[l];if(!c)return"";const d=c.url(t),u=ne(c.icon);return`<a href="${le(d)}" target="_blank" rel="noopener noreferrer" aria-label="${le(a.shareOnPrefix??"Compartir en")} ${le(String(i))}" class="sass-com-nd-socialButton sass-com-nd-${le(l)}Button sass-com-nd-${le(l)}Styled"><img fetchpriority="low" loading="lazy" src="${le(u)}" alt=""></a>`}).join(""),r=ne("/send.svg"),o=ne("/clipboard.svg");return'<div class="sass-com-nd-socialNetworkSection sass-news-description-social-network-section">'+n+`<button type="button" aria-label="share" class="sass-com-nd-clipboardButton sharebtn-id"><img fetchpriority="low" loading="lazy" src="${le(r)}" alt=""></button><button type="button" data-text="${le(a.linkCopied??"Link copiado")}" data-active="false" aria-label="copy" class="sass-com-nd-clipboardButton clipbtn-id"><img fetchpriority="low" loading="lazy" src="${le(o)}" alt=""></button></div>`}function Fp(e,t){const a=e.sizes;if(!a||a.length===0)return"";const n=e.description?String(e.description):"",r=t?"high":"low",o=t?"eager":"lazy";if(a.length===1){const f=a[0]?.url?` src="${le(a[0].url)}"`:"";return`<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture><img fetchpriority="${r}" loading="${o}" class="sass-com-img-imageStyled su-flex-center su-object-cover" alt="${le(n)}"${f}></picture></span></figure>`}const i=t?"sync":"async",l=a.filter(f=>f.width<580).map(f=>`<source srcset="${le(f.url)}">`).join(""),c=a[0],d=c?.width!==void 0?` width="${c.width}"`:"",u=c?.height!==void 0?` height="${c.height}"`:"",h=c?.url??"";return'<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture>'+l+`<img fetchpriority="${r}" loading="${o}" decoding="${i}" class="sass-com-img-imageStyled su-flex-center su-object-cover"${d}${u} alt="${le(n)}" src="${le(h)}"></picture></span></figure>`}function jp(e){const{href:t,target:a,ariaLabel:n,preview:r,preRenderClass:o,priorityHigh:i}=e,{finalHref:l,isExternal:c}=cs(t),d=o?`homeCardImage ${o}`:"homeCardImage",u=n!=null?` aria-label="${le(n)}"`:"",h=n!=null?` title="${le(n)}"`:"",f=a??void 0,p=f?` target="${le(f)}"`:"",m=c?' rel="noopener noreferrer"':"",g=Fp(r,i??!1);return`<a${u} class="${d}"${h} href="${le(l)}"${p}${m}>${g}</a>`}function Hp(e,t,a){const n=a?.share,r=a?.newsDescriptionSectionTag??"h3",o=a?.speculationPrerenderClass,{SHOW_TAG_BY_SECTION:i,SUB_PUBLICATION_PREFIX_IN_ROUTES:l}=L();let c="";n&&(c=`<div style="width: 100%;" data-hydrate="ShareButtons" data-props="${encodeURIComponent(JSON.stringify({noteShare:n}))}">`+Gp(n)+"</div>");const d=()=>e.main.uppertitle?`<p class="sass-com-nd-uppertitle" title="${le(e.main.uppertitle)}">${tt(e.main.uppertitle)}</p>`:"";let u="";const h=e.keywords,f=e.info;if(i&&h?.tags?.length&&h.tags.length>0){const C=h.tags[0],S=C.name;let v;if(C.approved){const y=Me(C,t),{finalHref:N}=cs(y,!!l?.tema);v=`<a aria-label="${le(S)}" class="sass-com-nd-sectionDescription" href="${le(N)}">${tt(S)}</a>`}else v=`<div class="sass-com-nd-sectionDescription">${tt(S)}</div>`;u=`<${r} class="sass-com-nd-sectionDescriptionContainer section">${v}${d()}</${r}>`}else if(f?.section?.url){const C=f.section.name,{finalHref:S}=cs(f.section.url);u=`<${r} class="sass-com-nd-sectionDescriptionContainer section"><a aria-label="${le(C)}" class="sass-com-nd-sectionDescription" href="${le(S)}">${tt(C)}</a>`+d()+`</${r}>`}const p=e.main?.title?.section??"",m=o?`${o} sass-com-nd-linkStyled su-no-underline`:"sass-com-nd-linkStyled su-no-underline";let g;if(e.info?.link?.url){const{finalHref:C,isExternal:S}=cs(e.info.link.url),v=e.info.link.target,y=v?` target="${le(v)}"`:"",N=S?' rel="noopener noreferrer"':"";g=`<h2 class="sass-com-nd-articule"><a aria-label="${le(p)}" class="${m}" style="--isLink:var(--news-description-title-color-hover-decoration)" href="${le(C)}"${y}${N}>${tt(p)}</a></h2>`}else g=`<h2 class="sass-com-nd-articule">${tt(p)}</h2>`;let b="";if(e.config?.showsubtitle){const C=e.main?.subtitle?.striped??"";b=`<p class="sass-com-nd-description">${tt(Be(C))}</p>`}let w="";if(e.config?.showtime||e.config?.showauthor){let C,S="";if(e.config?.showtime&&e.config?.showauthor){const v=`${e.authors?.[0]?.fullname??"Redacción"} - `;C=`${v}${xe(e.info?.date?.modified)}`,S=zs(e.info?.date?.modified,v)}else e.config?.showauthor?C=e.authors?.[0]?.fullname??"Redacción":e.config?.showtime&&(C=xe(e.info?.date?.modified),S=zs(e.info?.date?.modified));if(C!==void 0)if(e.authors?.[0]?.internaluser){const v=`/${t?.autor}/${e.authors?.[0]?.name}`,{finalHref:y}=cs(v,!!l?.autor);w=`<h3><a aria-label="${le(C)}" class="sass-com-nd-correspondentLink" href="${le(y)}"${S}>${tt(C)}</a></h3>`}else w=`<h3 class="sass-com-nd-correspondent"${S}>${tt(C)}</h3>`}return'<div class="sass-com-nd-boxInformation sass-news-description">'+c+u+g+b+w+"</div>"}function Vp(e,t,a,n,r=!1){const o=t<5?"nota-prerender":void 0,i=jp({href:e.info.link.url,target:e.info.link.target,ariaLabel:e.main?.title?.section,preview:e.preview,priorityHigh:r}),l=Hp(e,a,{share:n,speculationPrerenderClass:o});return`<section class="homeCardContent"><div class="homeCardContentWrapper">${i}</div><div class="homeCardNewsDescription">${l}</div></section>`}const Dl=" · ",Pn=24,zp=36e5,ql=new WeakMap;let wa,ds;const Gl=e=>{const t=L().CONFIG_relativeTime;return{enabled:e?.enabled??t?.enabled??!1,maxAgeHours:e?.maxAgeHours??t?.maxAgeHours??gs,scope:e?.scope??t?.scope??"all",keepAbsolute:e?.keepAbsolute??t?.keepAbsolute??"notes",separator:e?.separator??t?.separator??Dl,refreshMs:e?.refreshMs??6e4,root:e?.root}},$p="America/Mexico_City",Qp=()=>typeof document>"u"?"":document.documentElement.getAttribute("lang")??"",Wp=e=>{const t=L();return{PUBLIC_LNG:(e?.PUBLIC_LNG||t.PUBLIC_LNG||Qp()||"es").toLowerCase().split("-")[0],DATE_TIMEZONE:e?.DATE_TIMEZONE||t.DATE_TIMEZONE||$p}},Fl=(e,t)=>t==="none"?!1:t==="all"?!0:t==="notes"?e:!e,Yp=/\d{1,2}:\d{2}(?::\d{2})?\s*(?:hs?|hrs?)?\.?\s*$/i,Kp=e=>{const t=e.match(Yp);if(!t||t.index===void 0)return;const a=e.slice(0,t.index);if(a.trim())return/\s$/.test(a)?a:a+" "},Jp=(e,t)=>{const{original:a,isNote:n,ts:r,now:o,maxAgeHours:i}=t,l=Fl(n,t.keepAbsolute),c=l?Math.min(i,Pn):i;if(!Sa(r,o,c)||l&&o-r>=Pn*zp)return a;const d=$n(r,o,c,t.DATE_CONFIG);if(l){const h=a.trim();if(!h)return d;const f=Kp(h);return f!==void 0?f+d:h+t.separator+d}return(e.getAttribute(Hs)??"")+d},Aa=e=>{if(typeof document>"u")return;const{enabled:t,maxAgeHours:a,scope:n,keepAbsolute:r,separator:o,root:i}=Gl(e);if(!t)return;const l=Date.now(),c=Wp(e);(i??document).querySelectorAll(`[${Ot}]`).forEach(u=>{const h=u.getAttribute(Vs)==="note";if(!Fl(h,n))return;const f=Number(u.getAttribute(Ot));if(!Number.isFinite(f)||f<=0)return;let p=ql.get(u);p===void 0&&(p=u.textContent??"",ql.set(u,p));const m=Jp(u,{original:p,isNote:h,ts:f,now:l,maxAgeHours:a,keepAbsolute:r,separator:o,DATE_CONFIG:c});u.textContent!==m&&(u.getAttribute("aria-label")===u.textContent&&u.setAttribute("aria-label",m),u.textContent=m)})},Zp=e=>{if(typeof document>"u")return()=>{};const t=()=>{wa!==void 0&&clearInterval(wa),wa=void 0,ds&&document.removeEventListener("visibilitychange",ds),ds=void 0};t();const{enabled:a,refreshMs:n}=Gl(e);return a?(Aa(e),n>0&&(wa=setInterval(()=>{document.visibilityState==="visible"&&Aa(e)},n),ds=()=>{document.visibilityState==="visible"&&Aa(e)},document.addEventListener("visibilitychange",ds)),t):()=>{}};A.AssetsPreconnect=Ar,A.AutorHeader1=y1,A.AutorHeader2=C1,A.BannerAdvertising=be,A.BannerAdvertisingMiddle=js,A.BannersPreconnect=Wo,A.CarrouselCSR=Nh,A.CarrouselIRS=je,A.CarruselCard=Qi,A.CarruselOpinion=Wi,A.CommentLazyLoader=rp,A.CommonServices=Ze,A.Comscore=_n,A.ContactInfoServer=tf,A.ContactInput=c1,A.ContactSelect=d1,A.ContactTextarea=u1,A.ContentLayout1=Gs,A.ContentLayoutTema=i1,A.DEBUG_MainSlots=wp,A.DEFAULT_HEAD_CONFIG=Ro,A.DEFAULT_RELATIVE_MAX_AGE_HOURS=gs,A.DEFAULT_RELATIVE_SEPARATOR=Dl,A.DEFAULT_S3_REFERER=ht,A.DebugPanel=Ap,A.DebugStore=ge,A.DestacadoNoticias=Gi,A.DestacadoVideos=zi,A.DynamicBlockServices=Jo,A.DynamicComponents=gp,A.DynamicMainSlot=Cl,A.DynamicSlot=In,A.EMPTY_PREVIEW=Wn,A.EditorialBlock=W1,A.ErrorComponent=l1,A.Font=zo,A.Footer=Yh,A.FormatAfterScripts=wr,A.FormatScripts=Ia,A.GA4=ko,A.GTM=Io,A.GalleryHeader=Ki,A.GenerateBody=yh,A.GenerateHead=Ah,A.Header=U1,A.HeaderSectionComponent=Yi,A.HomeCard=_1,A.IframeHeader=vi,A.ImageOffline=oi,A.ImageOnline=ve,A.ImageOnlineClient=Za,A.IssuuServices=rh,A.ItemListSchema=_o,A.JournalistArticule2=Bi,A.JournalistArticule5=_i,A.JournalistGroup=Mi,A.KEEP_ABSOLUTE_MAX_AGE_HOURS=Pn,A.LISTING_ROUTES=On,A.LIST_APPENDED_EVENT=pi,A.LayoutNewsComponent=ki,A.LinkComponent=M,A.ListLoadMore=nn,A.ListLoadMoreComponent=nn,A.LiveBlogHeader=Ni,A.Location=vh,A.LoginForm=Gf,A.MainComponentServices=Yo,A.Marfeel=Lo,A.MasNoticiasLazyLoader=op,A.MiddleSection=Fs,A.Modulo1x3=ji,A.Modulo1x3Card=$i,A.Modulo1x4=Hi,A.Modulo1x5=Vi,A.Modulo2Columnas=Y1,A.Modulo3Columnas=Fi,A.ModuloBlockNews=Z1,A.ModuloNewsletter=K1,A.ModuloOpinion=Q1,A.NOTA_PRERENDER_CLASS=Ka,A.NewDescriptionBlock=Ks,A.NewListResponseDataPH=Xi,A.NewsArticle=qo,A.NewsComponent=Uf,A.NewsContent=rn,A.NewsDescriptionComponent=He,A.News_Content=Ji,A.NextPrev=di,A.OpinionCard2=rs,A.OrgList=Go,A.PreloadImages=La,A.RECAPTCHA_DISABLED_TOKEN=Bn,A.RELATIVE_TIME_ATTR=Ot,A.RELATIVE_TIME_PREFIX_ATTR=Hs,A.RELATIVE_TIME_SCOPE_ATTR=Vs,A.REPORT_REASONS=ca,A.RESILIENT_FETCH_DEFAULTS=St,A.ReCaptchaRender=Wu,A.Readest=Js,A.RegisterForm=Df,A.ScriptHydrator=$f,A.SearchSection=Bf,A.Section=he,A.SectionCard=Pe,A.SectionCard2=ns,A.SectionCard5=Ih,A.SectionCardServerComponent=dn,A.SectionServerComponent=ef,A.ShowSection=Ya,A.SocialNetworks=ra,A.SoftwareApplication=Do,A.SourceButtons=M1,A.SpeculationRules=Mo,A.Spin=_t,A.StaticSlotWrapper=mp,A.SubscribeColumn=ii,A.SubscribeRow=li,A.SubscribeWhatsAppColumn=Gh,A.TagHeader=B1,A.TagSection=Oi,A.TimeLine=Ei,A.TrimPathname=qc,A.TwitterHydration=Qf,A.VideoBlock3=Jh,A.VideoBlock4=S1,A.VideoCarousel=cn,A.VideoEmbeddedHeader=yi,A.VideoYoutubeHeader=Ci,A.VideosSchemas=jo,A.WebsiteList=Fo,A.addComment=ip,A.applyRelativeTime=Aa,A.assertImageSizesContract=nr,A.assetsImagesPrefixer=ne,A.auditConfigOrigin=ft,A.bannerKeyCandidates=ka,A.bannersEnabledForRequest=Mn,A.bannersReplace=vt,A.becomeVideoObject=At,A.buildConfigMenuApiPath=Jt,A.buildLoadMoreRequest=an,A.buildTagUrl=Me,A.buildVideoUrlFromInternal=Rn,A.checkImageSizes=yc,A.cleanSchema=De,A.clearConfigOriginAudit=Pu,A.clearConfigOriginCache=yu,A.clearConfigOriginComparisonCache=xu,A.coloringByStrokeSVGs=Wh,A.compileStyleProps=ba,A.contractWarn=qe,A.createAssessment=zc,A.cutString=Be,A.decodeApiEnv=Pa,A.emptyNewListResponse=gr,A.encodeApiEnv=Wc,A.ensurePreview=yt,A.extractMainSlug=Ne,A.extractRealtedNews=Sc,A.extractRelatedNews=As,A.extractTagIdFromSlug=ui,A.fetchMoreNews=hi,A.fetchWithConfigCache=ut,A.findBanner=Cs,A.formatConfigOriginComparisonTable=uo,A.formatDate=xe,A.formatDateEdiciones=nc,A.formatDateJournalistArticule=Ft,A.formatDateTimeline=Hn,A.formatNewsMeta=dr,A.formatRelativeDate=$n,A.formatVideoData=yr,A.generalGetData=ch,A.getBucketHttpClient=Lt,A.getCaptchaToken=is,A.getComments=ml,A.getConfig=L,A.getConfigCacheTtlMs=lo,A.getConfigOriginAuditReport=fo,A.getDynamicSlots=ih,A.getEnvironmentUrl=Ye,A.getEnvironmentUrlFront=Nc,A.getFrontPrefix=de,A.getHydratorPath=jc,A.getImageUrl=ue,A.getItemFormated=Yc,A.getNextMeta=Et,A.getPage=Pt,A.getPlayIcon=ts,A.getPreloadImages=nh,A.getPrevMeta=Tt,A.getRelatedNewsCarrousel=Hc,A.getReportReasonLabel=sm,A.getResponse=rt,A.getResponsePromise=Qn,A.getSchemas=_s,A.getScriptReplaces=$a,A.getServicePrefix=Ta,A.getSlugs=Qo,A.getTextsStringValue=$c,A.getTitleString=jt,A.getTypeOfNews=Gc,A.getVideoOp=Na,A.getVideoRealPath=Fc,A.handleGetComments=ga,A.handleListLoadMoreRequest=o1,A.homeCardImagenToHTMLString=Vp,A.initLibrary=zl,A.initListLoadMore=r1,A.initRelativeTime=Zp,A.insertCkAudioPlayers=za,A.isConfigOriginAuditEnabled=Bs,A.isHomePath=mo,A.isLoadMoreRoute=us,A.isPhotoGallery=Qc,A.isRecaptchaBlocked=Te,A.isSupportedCardTemplate=fi,A.isVideoContentItem=Xn,A.isWithinRelativeWindow=Sa,A.metadataToJSX=fr,A.metadata_defaults=Xo,A.new_speculationRules_home=Po,A.new_speculationRules_note=Oo,A.new_speculationRules_noteList=Bo,A.new_speculationRules_section=Uo,A.normalizeAuthorSocialUrl=$e,A.normalizeRankingItem=tr,A.normalizeRankingList=Ht,A.normalizeRankingResponse=sr,A.parseConfigOriginCacheKey=Va,A.parseTags=xa,A.pathnameSplit=ur,A.pickBannerVariant=ys,A.printImageSizesReport=Cc,A.processExtractedRelatedNews=or,A.relativeTimeAttrs=Xe,A.relativeTimeAttrsHTML=zs,A.removePages=$o,A.renderCardFast=mi,A.reportBucketOriginExhausted=Kt,A.reportComment=tm,A.resilientFetch=Nt,A.resolveBucketMenuSubtype=Us,A.resolveBucketOriginUrl=Je,A.resolveImageSizes=Vt,A.resolveListLoadMore=Dt,A.resolveSpeculationPrerenderClass=ei,A.runConfigOriginComparison=Tu,A.sanitizeRichText=Ms,A.shareButtons=ci,A.shouldDisablePagination=$l,A.socialIcons=bt,A.stripHtml=So,A.takeConfigOriginAuditReport=Lu,A.toISOWithTimeZone=ke,A.toPublicEditionUrl=Ct,A.toPublicShareUrl=Tc,A.urlReplaces=hr,A.usePlayIcon=Ja,A.validateHttpUrl=ir,A.verifyCaptchaTokenEnterprise=lp,A.withPreviewFallback=dc,A.withSpeculationPrerenderClass=mt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
541
+ `}}catch(w){console.error("insertVideos error for",p,w),b=""}else b=f;n=h,a+=b,r.lastIndex=h}return a+=e.slice(n),a=Nf(a),a}async function Pf(e){const{news:t,banners:a,newsRelatedResponses:n,newsRelatedListResponses:r,slug:o,itemList:i,socials:l,getVideos:c,commonServices:d}=e;t?.main||qe("RigthSide2","main"),t?.config||qe("RigthSide2","config");const u=t?.info?.section?.slug,h=u?{type:"seccion",value:u}:{type:"general"};let f=t?.body?.rendered??"";f=f.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),f=f.replace(/&nbsp;/g,""),f=xf(f,a,h),f=kf(f),f=await Ef(f),f=await If(f,e.texts,n),f=await Lf(f,c),f=za(f),f=vf(f),f=Sf(f);const p=t.main?.sources??[],{NEWS_JOURNALIST_COMPONENT:m,CONFIG_blockDefaultTwitterHydrator:g}=L(),b=t.config?.articlepreview===Ue.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?b?s.jsx(Ki,{commonServices:d,newsformated:t,internal:t.info?.link?.internal}):s.jsx(s.Fragment,{children:s.jsx(Ai,{preview:t.preview})}):null,e.subtitleBeforeImage&&t.main?.subtitle?.striped&&s.jsx("div",{className:"news-description-before-image",style:{"--news-description-subtitle-display":"-webkit-box",...o!=="liveblogs"?e.headerSectionStyles?.common:e.headerSectionStyles?.liveblogs},children:s.jsx(ni,{subtitle:t.main?.subtitle?.striped,cutSubtitle:!1})}),s.jsx(be,{banners:a,name:"block_1",scope:h}),s.jsxs("div",{className:"sass-pg-nrs-journalistArticleContent",children:[m==="op1"?s.jsx(pf,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):m==="op2"?s.jsx(Cf,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(_i,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}),e?.customAfterJournalistComponent]}),e.customSummary?e.customSummary:s.jsx(gf,{summary:t.main?.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:f}}),s.jsx(hf,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:c,newsRelatedListResponses:r??[],scope:h}),p.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(wf,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(p.length===1?"":"s")+": "+p.map(w=>w.name).join(", ")})]}),!g&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Uf=e=>{e.config||qe("News_NoteContent.hasHeaderOption","config");const t=e.config?.articlepreview;return!![Ue.videoEmbedded,Ue.videoYouTube,Ue.iframe].includes(t)},Ji=async e=>{const{texts:t,autorIcon:a,commonServices:n,slug:r,noteShare:o,paths:i,banners:l,news:c,newsRelatedResponses:d=[],newsRelatedListResponses:u=[],itemList:h=[],socials:f,getVideos:p,scope:m,customSummary:g,subtitleBeforeImage:b,headerSectionStyles:w,customAfterJournalistComponent:C}=e;if(c)return s.jsxs(s.Fragment,{children:[s.jsx(Pf,{texts:t,autorIcon:a,socials:f,news:c,banners:l,newsRelatedResponses:d,newsRelatedListResponses:u,itemList:h,slug:r,getVideos:p,noteShare:o,paths:i,showHeaderImage:!Uf(c),commonServices:n,customSummary:g,subtitleBeforeImage:b,headerSectionStyles:w,customAfterJournalistComponent:C}),s.jsx(be,{banners:l??[],name:"block_3",scope:m})]})},Of=async e=>{const{ranking:t=[],banners:a,autor:n=[],news:r=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:c,getVideos:d}=e;if(!r||!r[0])return;const u=r[0]?.info?.section?.slug,h=u?{type:"seccion",value:u}:{type:"general"};return s.jsxs(s.Fragment,{children:[s.jsx(Yi,{option:e.slug,news:r,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag,scope:h,subtitleBeforeImage:e.subtitleBeforeImage}),s.jsx(af,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(be,{banners:a??[],name:"right_1",scope:h}),banner:s.jsx(be,{banners:a??[],name:"right_2",scope:h}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[n.length>0&&s.jsx(Bi,{texts:e.texts,autorIcon:e.autorIcon,autor:n[0],paths:e.paths}),r[0].authors.length>1&&s.jsx(Mi,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(Oi,{tags:r[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(Ji,{texts:e.texts,autorIcon:e.autorIcon,socials:c,news:r[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:d,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices,scope:h,customSummary:e.customSummary,subtitleBeforeImage:e.subtitleBeforeImage,headerSectionStyles:e.headerSectionStyles})})]})},Bf=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Mf=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(Bf,{className:"sass-pg-buscar-searchStyled"})})]})}),_t=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),_f={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},os={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function Df(e){return{email:{label:e?.email??os.email.label,required:!0},given_name:{label:e?.given_name??os.given_name.label,required:!0},family_name:{label:e?.family_name??os.family_name.label,required:!0},password:{label:e?.password??os.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??os.confirmPassword.label,required:!0}}}const Qe=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],Zi=[{label:"La contraseña debe tener al menos 8 caracteres",test:Qe[0]},{label:"Usa un número",test:Qe[1]},{label:"Usa una letra minúscula",test:Qe[2]},{label:"Usa una letra mayúscula",test:Qe[3]},{label:"Usa un símbolo",test:Qe[4]}];function qf({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const n={..._f,...e?.comentarios},r=k.useMemo(()=>Df(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=k.useMemo(()=>[{label:n.passwordRuleMinLength,test:Qe[0]},{label:n.passwordRuleNumber,test:Qe[1]},{label:n.passwordRuleLowercase,test:Qe[2]},{label:n.passwordRuleUppercase,test:Qe[3]},{label:n.passwordRuleSymbol,test:Qe[4]}],[n.passwordRuleMinLength,n.passwordRuleNumber,n.passwordRuleLowercase,n.passwordRuleUppercase,n.passwordRuleSymbol]),[i,l]=k.useState({}),[c,d]=k.useState(!1),[u,h]=k.useState(!1),[f,p]=k.useState(null),[m,g]=k.useState("register"),b=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const y=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${y}`},w=(y,N)=>{l(x=>({...x,[y]:N}))},C=async y=>{y.preventDefault(),p(null),h(!0);try{const N=Object.keys(r).filter(G=>!["username","password","confirmPassword"].includes(G)).map(G=>({Name:G,Value:i[G]}));if(N.some(G=>{if(!G.Value||G.Value.trim()==="")return!0}))return h(!1),p(n.errorCompleteFields);if(i.password!==i.confirmPassword){p(n.errorPasswordMismatch);return}const x=i.password||"";if(o.some(G=>!G.test(x))){p(n.errorPasswordInvalid);return}const $=Math.floor(Date.now()/1e3);N.push({Name:"updated_at",Value:String($)});const q=t.PUBLIC_ENV==="local"?"token":await is("comment_register",t.CAPTCHA_KEY??"",t);if(!q)throw new Error("Captcha token no generado");const B=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:N,token:q})});if(!B.ok){const G=await B.json().catch(()=>({}));if(G.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),g("confirm");return}throw new Error(G?.error||"Error al crear usuario")}g("confirm")}catch(N){console.log(N),p(N?.message||N?.error||n.errorUnexpected)}finally{h(!1)}},S=async y=>{if(y.preventDefault(),!i.confirmationCode){p(n.errorVerificationCodeRequired);return}p(null),h(!0);try{const N=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!N.ok){const x=await N.json().catch(()=>({}));throw new Error(x?.error||"Error al confirmar usuario")}g("success")}catch(N){p(N?.message||n.errorUnexpected)}finally{h(!1)}},v=i.password||"";return s.jsxs(s.Fragment,{children:[m==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:b,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:n.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:C,className:"sass-pg-login-form","data-error":f?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(r).map(([y,{label:N}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:N}),s.jsx("input",{type:y.toLowerCase().includes("password")?c?"text":"password":y==="birthdate"?"date":y==="email"?"email":y==="phone_number"?"tel":"text",name:y,value:i[y]||"",onChange:x=>w(y,x.target.value),className:"sass-pg-login-input",placeholder:""}),y==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((x,O)=>{const $=x.test(v);return s.jsxs("div",{className:$?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:$?"✔":"○"}),s.jsx("div",{children:x.label})]},O)})}),y==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:c,onChange:x=>d(x.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:n.showPasswordsLabel})]})]},y))}),f&&s.jsx("p",{className:"sass-pg-login-error",children:f}),s.jsxs("p",{className:"sass-pg-login-terms",children:[n.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:n.termsLinkText})," ",n.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:u,children:u?s.jsx(_t,{}):n.createAccountButton})]})]}),m==="confirm"&&s.jsxs("form",{onSubmit:S,className:"sass-pg-login-form","data-error":f?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:n.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:y=>w("confirmationCode",y.target.value),className:"sass-pg-login-input",required:!0})]}),f&&s.jsx("p",{className:"sass-pg-login-error",children:f}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:u,children:u?s.jsx(_t,{}):n.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[n.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:n.loginButtonText})]})]}),m==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:n.successTitle}),s.jsx("p",{children:n.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:n.loginButtonText})]}),m==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[n.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:n.loginButtonText})]})]})}const Gf={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Ff({API_ENV:e,texts:t}){const a={...Gf,...t?.comentarios},[n,r]=k.useState("login"),[o,i]=k.useState(""),[l,c]=k.useState(""),[d,u]=k.useState(""),[h,f]=k.useState(""),[p,m]=k.useState(""),[g,b]=k.useState(!1),[w,C]=k.useState(!1),[S,v]=k.useState(null);k.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&n==="login"&&r("forgot"),n==="login"&&N()});const y=B=>document.cookie.split("; ").find(G=>G.startsWith(B+"="))?.split("=")[1],N=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const B=y("redirect_after_login_1");console.log("Redirect path after login:",B,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),B&&B!==""?(window.location.pathname=B,window.location.hash="comentarios"):window.location.pathname=de(e)+"/auth/success"}},x=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let B=de(e)+"/auth/login";const G=y("redirect_after_login_1");G&&G!==""&&(B=G),window.location.href=`/api/auth/login?redirect=${B}`},O=async B=>{if(!w){if(B.preventDefault(),o===""||l===""){v("Complete todos los campos");return}v(null),C(!0);try{const G=e.PUBLIC_ENV==="local"?"token":await is("comment_login",e.CAPTCHA_KEY||"",e);if(!G)throw new Error("Captcha token no generado");const z=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:G})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await N();return}catch(G){v(G?.message||"Error inesperado")}finally{C(!1)}}},$=async B=>{if(!w){B.preventDefault(),v(null),C(!0);try{const G=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!G.ok){const z=await G.json().catch(()=>({}));throw new Error(z?.error||"Error al enviar código")}c(""),r("changePassword")}catch(G){v(G?.message||"Error inesperado")}finally{C(!1)}}},q=async B=>{if(w)return;if(B.preventDefault(),h!==p){v("Las contraseñas no coinciden");return}if(Zi.some(z=>!z.test(h))){v("La contraseña no cumple con los requisitos");return}v(null),C(!0);try{const z=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:d,newPassword:h})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}r("feedback")}catch(z){v(z?.message||"Error inesperado")}finally{C(!1)}};return s.jsxs(s.Fragment,{children:[n==="login"&&s.jsx(jf,{email:o,password:l,showPassword:g,loading:w,error:S,setEmail:i,setPassword:c,setShowPassword:b,onSubmit:O,onForgot:()=>{v(null),r("forgot")},handleGoogleLogin:x,t:a}),n==="forgot"&&s.jsx(Hf,{email:o,setEmail:i,loading:w,error:S,onSubmit:$,onBack:()=>{v(null),r("login")},t:a}),n==="changePassword"&&s.jsx(zf,{email:o,confirmationCode:d,newPassword:h,confirmNewPassword:p,showPassword:g,loading:w,error:S,setConfirmationCode:u,setNewPassword:f,setConfirmNewPassword:m,setShowPassword:b,onSubmit:q,onBack:()=>{v(null),r("forgot")},t:a}),n==="feedback"&&s.jsx($f,{onBackToLogin:()=>{v(null),r("login")},t:a})]})}function jf({email:e,password:t,showPassword:a,loading:n,error:r,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:d,handleGoogleLogin:u,t:h}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:u,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:h.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:c,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:h.email}),s.jsx("input",{type:"email",value:e,onChange:f=>o(f.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:h.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:f=>i(f.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>l(f.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:h.showPassword})]})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:n,children:n?s.jsx(_t,{className:"sass-pg-login-spin"}):h.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[h.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:h.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:d,children:h.forgotPasswordText})]})}function Hf({email:e,setEmail:t,loading:a,error:n,onSubmit:r,onBack:o,t:i}){return s.jsxs("form",{onSubmit:r,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx(_t,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function Vf(e){const[t,a]=e.split("@");if(!t||!a)return e;let n="";t.length<=2?n=t[0]+"*":n=t[0]+"*".repeat(t.length-2)+t[t.length-1];const r=a.lastIndexOf(".");if(r===-1)return`${n}@${a}`;const o=a.slice(0,r),i=a.slice(r);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${n}@${l}${i}`}function zf({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:n,showPassword:r,loading:o,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:d,setShowPassword:u,onSubmit:h,onBack:f,t:p}){const m=p.changePasswordMessage.replace("{{email}}",Vf(e));return s.jsxs("form",{onSubmit:h,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:m}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.newPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:a,onChange:g=>c(g.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:Zi.map((g,b)=>{const w=g.test(a);return s.jsxs("div",{className:w?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:w?"✔":"○"}),s.jsx("div",{children:g.label})]},b)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:n,onChange:g=>d(g.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:r,onChange:g=>u(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(_t,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:f,children:p.backButton})})]})}function $f({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function Qf({containerId:e,containerId2:t}){return k.useEffect(()=>{try{let a=function(){const u=window.twttr;u?.widgets?u.widgets.load(n):d<10?(d++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const n=document.getElementById(e),r=document.getElementById(t);if(!n&&!r)return;const o=n?.querySelectorAll("script[src]")??[],i=r?.querySelectorAll("script[src]")??[];[...o,...i].forEach(u=>{const h=document.createElement("script");Array.from(u.attributes).forEach(f=>{h.setAttribute(f.name,f.value)}),u.replaceWith(h)});const c=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(c)for(let u=0;u<c.length;u++)c[u]?.remove();let d=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const u=document.createElement("script");u.src="https://platform.twitter.com/widgets.js",u.async=!0,u.onload=a,document.body.appendChild(u)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Wf=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),Yf=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:n=!1,BackDropAuxHeigthMobile:r}=e,o=Ja(),i=k.useMemo(()=>{const f=e?.preview?.sizes;if(f&&Array.isArray(f)&&f.length>0)return f;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:c}=e.API_ENV,d=i[0]?.url,u=c&&c!=="false"?c:l,h=d?.startsWith("http")||d?.includes(u)?d:u+d;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:r||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:h,style:{boxShadow:n?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Kf=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),Xi={info:{section:{name:"",slug:"",url:""},link:{url:"/",target:"",canonical:"",internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!1,showads:!1},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},Jf=({section:e,internalPath:t,banner:a,isVisible:n=!1,stylesConfig:r,API_ENV:o,fetchConfig:i,paths:l})=>{const c=o.FETCH_SIZE_MORE_NEWS??6,[d,u]=k.useState({data:Array.from({length:c},()=>Xi)}),[h,f]=k.useState(!1),p=k.useCallback(async()=>{if(!t)return;const b=new URLSearchParams({section:e,currentNewsLink:t}),w=await fetch(`/api/get-more-news?${b}`);if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);return await w.json()},[e,t]),m=k.useCallback(async()=>{const{PUBLIC_API_FRONT:b,PUBLIC_X_SECURITY_TOKEN:w,PUBLIC_API_PATH_VERSION:C,PUBLIC_PUBLICATION_ID:S}=o;if(!b||!w||!S||!C)throw new Error("Missing required environment variables");const v=await re.get(`${b}${C}/news-list-section`,{params:{size:c+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(S)},headers:{"x-api-token":w,"Content-Type":"application/json"}});return{...v.data,data:v.data.data.filter(y=>y.info.link.internal!==t)}},[e,t,o]),g=k.useCallback(async()=>{if(!(h||!t)){f(!0);try{let b;o.PUBLIC_ENV!=="prod"?b=await p():b=await m(),u({...b,data:b.data.slice(0,c)})}catch(b){console.error("[/api/get-more-news] Error:",b.message),u(void 0)}}},[h,t,o.PUBLIC_ENV,p,m]);return k.useEffect(()=>{n&&g()},[n,g]),!d?.data||d.data.length===0?null:s.jsx(Zf,{news:d.data,title:"Más Noticias",...r["Modulo 1x3 Client"]??r["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:n,LINK_REMOVE:o.LINK_REMOVE})},Zf=e=>{const{news:t,hasLines:a=!1,API_ENV:n}=e,r=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:c,info:d,preview:u,isVideo:h=!1,config:f,overImage:p="default",isTitle:m=!1,isLarge:g=!1,keywords:b}=o;return s.jsx("div",{className:r(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(M,{title:l?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:d?.link?.target,LINK_REMOVE:e.LINK_REMOVE,children:s.jsx(Yf,{isVisible:e.isVisible,preview:u,rounded:e.rounded,isVideo:h,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(Rf,{main:l,SHOW_TAG_BY_SECTION:n.SHOW_TAG_BY_SECTION,authors:c,info:d,preview:u,share:e.share,config:f,overImage:p,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:b,API_ENV:n,LINK_REMOVE:e.LINK_REMOVE})})]})},i)})})};function Xf(e){return e?Array.isArray(e)?e:e&&typeof e=="object"?[e]:[]:[]}const Rf=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:n,keywords:r,info:o,paths:i}=e,c=Xf(e.authors).slice(0,2),d=!!e.config?.showauthor,u=!!e.config?.showtime,h=e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,f=w=>s.jsx("span",{className:"sass-com-nd-correspondentName",children:w}),p=()=>d?c.length===0?f("Redacción"):c.map((w,C)=>{const S=w.Figure||w.fullname||"Redacción",v=C>0?s.jsx("span",{className:"sass-com-nd-correspondentSeparator",children:", "}):null,y=w.internaluser?s.jsx(M,{block_subPublication:h,"aria-label":S,className:"sass-com-nd-correspondentLink",href:`/${i?.autor??"autor"}/${w.name}`,LINK_REMOVE:e.LINK_REMOVE,children:f(S)}):f(S);return s.jsxs(k.Fragment,{children:[v,y]},w.name||`${S}-${C}`)}):null,m=()=>!d&&!u?null:s.jsxs("span",{className:"sass-com-nd-correspondent",children:[p(),d&&u&&s.jsx("span",{className:"sass-com-nd-correspondentSeparator",children:" - "}),u&&s.jsx("time",{className:"sass-com-nd-correspondentTime",dateTime:ke(e.info?.date?.modified,e.DATE_CONFIG?.DATE_TIMEZONE??"")||void 0,...Xe(e.info?.date?.modified),children:xe(e.info?.date?.modified,e.DATE_CONFIG)})]}),g=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,b=()=>{if(n&&r?.tags?.length&&r.tags.length>0){const w=r.tags[0],C=w.name;return s.jsxs("span",{className:"sass-com-nd-sectionDescriptionContainer",children:[w.approved?s.jsx(M,{"aria-label":C,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:Me(w,e.paths),children:C}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:C}),g()]})}else if(o?.section?.url){const w=o.section.name;return s.jsxs("span",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(M,{"aria-label":w,className:"sass-com-nd-sectionDescription",href:o.section.url,children:w}),g()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(Kf,{className:"sass-com-nd-dotStyles"}),s.jsx(b,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(M,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url??"invalidUrl",target:e?.info?.link?.target,LINK_REMOVE:e.LINK_REMOVE,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?Be(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),m()]})},em={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},tm=({user:e,handleLogout:t,message:a,texts:n})=>{const r={...em,...n?.comentarios},o=()=>{const c=document.querySelector(".user-actions-options");c&&c.classList.toggle("show")},i=e.firstname??"Usuario",l=r.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:r.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(aa,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},Ri=async(e,t)=>{if(Te(t))return!0;if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:n,COMMENTS_CAPTCHA_API_KEY:r}=t;try{const o=a,i=n,d=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",d),d.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function sm({publication:e,username:t,id:a,type:n,baseUrl:r,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:c}){const d=Te(c);if(!e||!t||!a||!n||!d&&!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof n!="string"||!d&&typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await Ri(o,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const u=`${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,h=encodeURIComponent(n),f=new URLSearchParams({publication:e,username:t??!1,id:a,type:h}),p=`${u}?${f.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:n,encodedType:h,url:p});const m=await re.get(p,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",m.data),m.status===200||m.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:m.status,data:m.data};throw new Error(`Respuesta inesperada del servidor: ${m.status}`)}catch(m){if(console.error("Error reporting comment:",m),re.isAxiosError(m)){const g=m.response?.status,b=m.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(b?.error||b?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw m}}const ca={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function am(e){return ca[e]}const Re=300,et={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function nm(e){const t=e.split(" ");if(t.length!==3)return e;const[a,n,r]=t,o=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase();return`${a} ${o} ${r}`}const da=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const n=e.current?.value||"",r=n.length>Re,{PUBLIC_ENV:o}=a,l=o==="local"||Te(a),c=n.trim()!==""&&(l||t!=="")&&!r,d=r?`No debes exceder el limite de ${Re} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:d}},el=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},rm=(e,t)=>{const a=el(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function om(e){const[t,a]=e.split("@");if(!t||!a)return e;let n="";t.length<=2?n=t[0]+"*":n=t[0]+"*".repeat(t.length-2)+t[t.length-1];const r=a.lastIndexOf(".");if(r===-1)return`${n}@${a}`;const o=a.slice(0,r),i=a.slice(r);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${n}@${l}${i}`}var ua={exports:{}},ha={exports:{}},oe={};var tl;function im(){if(tl)return oe;tl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(y){if(typeof y=="object"&&y!==null){var N=y.$$typeof;switch(N){case t:switch(y=y.type,y){case c:case d:case n:case o:case r:case h:return y;default:switch(y=y&&y.$$typeof,y){case l:case u:case m:case p:case i:return y;default:return N}}case a:return N}}}function v(y){return S(y)===d}return oe.AsyncMode=c,oe.ConcurrentMode=d,oe.ContextConsumer=l,oe.ContextProvider=i,oe.Element=t,oe.ForwardRef=u,oe.Fragment=n,oe.Lazy=m,oe.Memo=p,oe.Portal=a,oe.Profiler=o,oe.StrictMode=r,oe.Suspense=h,oe.isAsyncMode=function(y){return v(y)||S(y)===c},oe.isConcurrentMode=v,oe.isContextConsumer=function(y){return S(y)===l},oe.isContextProvider=function(y){return S(y)===i},oe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},oe.isForwardRef=function(y){return S(y)===u},oe.isFragment=function(y){return S(y)===n},oe.isLazy=function(y){return S(y)===m},oe.isMemo=function(y){return S(y)===p},oe.isPortal=function(y){return S(y)===a},oe.isProfiler=function(y){return S(y)===o},oe.isStrictMode=function(y){return S(y)===r},oe.isSuspense=function(y){return S(y)===h},oe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===o||y===r||y===h||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===p||y.$$typeof===i||y.$$typeof===l||y.$$typeof===u||y.$$typeof===b||y.$$typeof===w||y.$$typeof===C||y.$$typeof===g)},oe.typeOf=S,oe}var ie={};var sl;function lm(){return sl||(sl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(j){return typeof j=="string"||typeof j=="function"||j===n||j===d||j===o||j===r||j===h||j===f||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===p||j.$$typeof===i||j.$$typeof===l||j.$$typeof===u||j.$$typeof===b||j.$$typeof===w||j.$$typeof===C||j.$$typeof===g)}function v(j){if(typeof j=="object"&&j!==null){var we=j.$$typeof;switch(we){case t:var ya=j.type;switch(ya){case c:case d:case n:case o:case r:case h:return ya;default:var jl=ya&&ya.$$typeof;switch(jl){case l:case u:case m:case p:case i:return jl;default:return we}}case a:return we}}}var y=c,N=d,x=l,O=i,$=t,q=u,B=n,G=m,z=p,_=a,U=o,P=r,H=h,D=!1;function Y(j){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(j)||v(j)===c}function E(j){return v(j)===d}function I(j){return v(j)===l}function F(j){return v(j)===i}function Q(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function V(j){return v(j)===u}function W(j){return v(j)===n}function K(j){return v(j)===m}function Z(j){return v(j)===p}function te(j){return v(j)===a}function se(j){return v(j)===o}function X(j){return v(j)===r}function ce(j){return v(j)===h}ie.AsyncMode=y,ie.ConcurrentMode=N,ie.ContextConsumer=x,ie.ContextProvider=O,ie.Element=$,ie.ForwardRef=q,ie.Fragment=B,ie.Lazy=G,ie.Memo=z,ie.Portal=_,ie.Profiler=U,ie.StrictMode=P,ie.Suspense=H,ie.isAsyncMode=Y,ie.isConcurrentMode=E,ie.isContextConsumer=I,ie.isContextProvider=F,ie.isElement=Q,ie.isForwardRef=V,ie.isFragment=W,ie.isLazy=K,ie.isMemo=Z,ie.isPortal=te,ie.isProfiler=se,ie.isStrictMode=X,ie.isSuspense=ce,ie.isValidElementType=S,ie.typeOf=v})()),ie}var al;function un(){return al||(al=1,process.env.NODE_ENV==="production"?ha.exports=im():ha.exports=lm()),ha.exports}var hn,nl;function cm(){if(nl)return hn;nl=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function r(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hn=r()?Object.assign:function(o,i){for(var l,c=n(o),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){d=e(l);for(var f=0;f<d.length;f++)a.call(l,d[f])&&(c[d[f]]=l[d[f]])}}return c},hn}var fn,rl;function mn(){if(rl)return fn;rl=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fn=e,fn}var pn,ol;function il(){return ol||(ol=1,pn=Function.call.bind(Object.prototype.hasOwnProperty)),pn}var gn,ll;function dm(){if(ll)return gn;ll=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mn(),a={},n=il();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function r(o,i,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in o)if(n(o,u)){var h;try{if(typeof o[u]!="function"){var f=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}h=o[u](i,u,c,l,null,t)}catch(m){h=m}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in a)){a[h.message]=!0;var p=d?d():"";e("Failed "+l+" type: "+h.message+(p??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},gn=r,gn}var bn,cl;function um(){if(cl)return bn;cl=1;var e=un(),t=cm(),a=mn(),n=il(),r=dm(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return bn=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(E){var I=E&&(d&&E[d]||E[u]);if(typeof I=="function")return I}var f="<<anonymous>>",p={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:S,element:v(),elementType:y(),instanceOf:N,node:q(),objectOf:O,oneOf:x,oneOfType:$,shape:G,exact:z};function m(E,I){return E===I?E!==0||1/E===1/I:E!==E&&I!==I}function g(E,I){this.message=E,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function b(E){if(process.env.NODE_ENV!=="production")var I={},F=0;function Q(W,K,Z,te,se,X,ce){if(te=te||f,X=X||Z,ce!==a){if(c){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=te+":"+Z;!I[we]&&F<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[we]=!0,F++)}}return K[Z]==null?W?K[Z]===null?new g("The "+se+" `"+X+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new g("The "+se+" `"+X+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:E(K,Z,te,se,X)}var V=Q.bind(null,!1);return V.isRequired=Q.bind(null,!0),V}function w(E){function I(F,Q,V,W,K,Z){var te=F[Q],se=P(te);if(se!==E){var X=H(te);return new g("Invalid "+W+" `"+K+"` of type "+("`"+X+"` supplied to `"+V+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return b(I)}function C(){return b(i)}function S(E){function I(F,Q,V,W,K){if(typeof E!="function")return new g("Property `"+K+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var Z=F[Q];if(!Array.isArray(Z)){var te=P(Z);return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an array."))}for(var se=0;se<Z.length;se++){var X=E(Z,se,V,W,K+"["+se+"]",a);if(X instanceof Error)return X}return null}return b(I)}function v(){function E(I,F,Q,V,W){var K=I[F];if(!l(K)){var Z=P(K);return new g("Invalid "+V+" `"+W+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return b(E)}function y(){function E(I,F,Q,V,W){var K=I[F];if(!e.isValidElementType(K)){var Z=P(K);return new g("Invalid "+V+" `"+W+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return b(E)}function N(E){function I(F,Q,V,W,K){if(!(F[Q]instanceof E)){var Z=E.name||f,te=Y(F[Q]);return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected ")+("instance of `"+Z+"`."))}return null}return b(I)}function x(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function I(F,Q,V,W,K){for(var Z=F[Q],te=0;te<E.length;te++)if(m(Z,E[te]))return null;var se=JSON.stringify(E,function(ce,j){var we=H(j);return we==="symbol"?String(j):j});return new g("Invalid "+W+" `"+K+"` of value `"+String(Z)+"` "+("supplied to `"+V+"`, expected one of "+se+"."))}return b(I)}function O(E){function I(F,Q,V,W,K){if(typeof E!="function")return new g("Property `"+K+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var Z=F[Q],te=P(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an object."));for(var se in Z)if(n(Z,se)){var X=E(Z,se,V,W,K+"."+se,a);if(X instanceof Error)return X}return null}return b(I)}function $(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var I=0;I<E.length;I++){var F=E[I];if(typeof F!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+D(F)+" at index "+I+"."),i}function Q(V,W,K,Z,te){for(var se=[],X=0;X<E.length;X++){var ce=E[X],j=ce(V,W,K,Z,te,a);if(j==null)return null;j.data&&n(j.data,"expectedType")&&se.push(j.data.expectedType)}var we=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new g("Invalid "+Z+" `"+te+"` supplied to "+("`"+K+"`"+we+"."))}return b(Q)}function q(){function E(I,F,Q,V,W){return _(I[F])?null:new g("Invalid "+V+" `"+W+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return b(E)}function B(E,I,F,Q,V){return new g((E||"React class")+": "+I+" type `"+F+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function G(E){function I(F,Q,V,W,K){var Z=F[Q],te=P(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));for(var se in E){var X=E[se];if(typeof X!="function")return B(V,W,K,se,H(X));var ce=X(Z,se,V,W,K+"."+se,a);if(ce)return ce}return null}return b(I)}function z(E){function I(F,Q,V,W,K){var Z=F[Q],te=P(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));var se=t({},F[Q],E);for(var X in se){var ce=E[X];if(n(E,X)&&typeof ce!="function")return B(V,W,K,X,H(ce));if(!ce)return new g("Invalid "+W+" `"+K+"` key `"+X+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(F[Q],null," ")+`
542
+ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var j=ce(Z,X,V,W,K+"."+X,a);if(j)return j}return null}return b(I)}function _(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(_);if(E===null||l(E))return!0;var I=h(E);if(I){var F=I.call(E),Q;if(I!==E.entries){for(;!(Q=F.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=F.next()).done;){var V=Q.value;if(V&&!_(V[1]))return!1}}else return!1;return!0;default:return!1}}function U(E,I){return E==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function P(E){var I=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":U(I,E)?"symbol":I}function H(E){if(typeof E>"u"||E===null)return""+E;var I=P(E);if(I==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return I}function D(E){var I=H(E);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Y(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},bn}var wn,dl;function hm(){if(dl)return wn;dl=1;var e=mn();function t(){}function a(){}return a.resetWarningCache=t,wn=function(){function n(i,l,c,d,u,h){if(h!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function r(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},wn}var ul;function fm(){if(ul)return ua.exports;if(ul=1,process.env.NODE_ENV!=="production"){var e=un(),t=!0;ua.exports=um()(e.isElement,t)}else ua.exports=hm()();return ua.exports}var mm=fm();const Se=qt(mm);var pm=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},An.apply(this,arguments)}function gm(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function fa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yn(e,t)}function yn(e,t){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yn(e,t)}var ma=(function(e){bm(t,e);function t(){var n;return n=e.call(this)||this,n.handleExpired=n.handleExpired.bind(fa(n)),n.handleErrored=n.handleErrored.bind(fa(n)),n.handleChange=n.handleChange.bind(fa(n)),n.handleRecaptchaRef=n.handleRecaptchaRef.bind(fa(n)),n}var a=t.prototype;return a.getCaptchaFunction=function(r){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[r]:this.props.grecaptcha[r]:null},a.getValue=function(){var r=this.getCaptchaFunction("getResponse");return r&&this._widgetId!==void 0?r(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var r=this.getCaptchaFunction("execute");if(r&&this._widgetId!==void 0)return r(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var r=this;return new Promise(function(o,i){r.executionResolve=o,r.executionReject=i,r.execute()})},a.reset=function(){var r=this.getCaptchaFunction("reset");r&&this._widgetId!==void 0&&r(this._widgetId)},a.forceReset=function(){var r=this.getCaptchaFunction("reset");r&&r()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(r){this.props.onChange&&this.props.onChange(r),this.executionResolve&&(this.executionResolve(r),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var r=this.getCaptchaFunction("render");if(r&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=r(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(r){this.captcha=r},a.render=function(){var r=this.props;r.sitekey,r.onChange,r.theme,r.type,r.tabindex,r.onExpired,r.onErrored,r.size,r.stoken,r.grecaptcha,r.badge,r.hl,r.isolated;var o=gm(r,pm);return Un.createElement("div",An({},o,{ref:this.handleRecaptchaRef}))},t})(Un.Component);ma.displayName="ReCAPTCHA",ma.propTypes={sitekey:Se.string.isRequired,onChange:Se.func,grecaptcha:Se.object,theme:Se.oneOf(["dark","light"]),type:Se.oneOf(["image","audio"]),tabindex:Se.number,onExpired:Se.func,onErrored:Se.func,size:Se.oneOf(["compact","normal","invisible"]),stoken:Se.string,hl:Se.string,badge:Se.oneOf(["bottomright","bottomleft","inline"]),isolated:Se.bool},ma.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Cn,hl;function wm(){if(hl)return Cn;hl=1;var e=un(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=r;function i(m){return e.isMemo(m)?r:o[m.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;function p(m,g,b){if(typeof g!="string"){if(f){var w=h(g);w&&w!==f&&p(m,w,b)}var C=c(g);d&&(C=C.concat(d(g)));for(var S=i(m),v=i(g),y=0;y<C.length;++y){var N=C[y];if(!a[N]&&!(b&&b[N])&&!(v&&v[N])&&!(S&&S[N])){var x=u(g,N);try{l(m,N,x)}catch{}}}}return m}return Cn=p,Cn}var Am=wm();const ym=qt(Am);function vn(){return vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},vn.apply(this,arguments)}function Cm(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function vm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Oe={},Sm=0;function Nm(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=(function(l){vm(c,l);function c(u,h){var f;return f=l.call(this,u,h)||this,f.state={},f.__scriptURL="",f}var d=c.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Sm++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(h){var f=this;this.setState(h,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var h=Oe[this.__scriptURL];if(!h||!h.loaded)throw new Error("Script is not loaded.");for(var f in h.observers)h.observers[f](h);delete window[t.callbackName]},d.componentDidMount=function(){var h=this,f=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),m=t,g=m.globalName,b=m.callbackName,w=m.scriptId;if(g&&typeof window[g]<"u"&&(Oe[f]={loaded:!0,observers:{}}),Oe[f]){var C=Oe[f];if(C&&(C.loaded||C.errored)){this.asyncScriptLoaderHandleLoad(C);return}C.observers[p]=function(x){return h.asyncScriptLoaderHandleLoad(x)};return}var S={};S[p]=function(x){return h.asyncScriptLoaderHandleLoad(x)},Oe[f]={loaded:!1,observers:S};var v=document.createElement("script");v.src=f,v.async=!0;for(var y in t.attributes)v.setAttribute(y,t.attributes[y]);w&&(v.id=w);var N=function(O){if(Oe[f]){var $=Oe[f],q=$.observers;for(var B in q)O(q[B])&&delete q[B]}};b&&typeof window<"u"&&(window[b]=function(){return h.asyncScriptLoaderTriggerOnScriptLoaded()}),v.onload=function(){var x=Oe[f];x&&(x.loaded=!0,N(function(O){return b?!1:(O(x),!0)}))},v.onerror=function(){var x=Oe[f];x&&(x.errored=!0,N(function(O){return O(x),!0}))},document.body.appendChild(v)},d.componentWillUnmount=function(){var h=this.__scriptURL;if(t.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),p=0;p<f.length;p+=1)f[p].src.indexOf(h)>-1&&f[p].parentNode&&f[p].parentNode.removeChild(f[p]);var m=Oe[h];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete Oe[h])},d.render=function(){var h=t.globalName,f=this.props;f.asyncScriptOnLoad;var p=f.forwardedRef,m=Cm(f,["asyncScriptOnLoad","forwardedRef"]);return h&&typeof window<"u"&&(m[h]=typeof window[h]<"u"?window[h]:void 0),m.ref=p,k.createElement(n,m)},c})(k.Component),i=k.forwardRef(function(l,c){return k.createElement(o,vn({},l,{forwardedRef:c}))});return i.displayName="AsyncScriptLoader("+r+")",i.propTypes={asyncScriptOnLoad:Se.func},ym(i,n)}}var Sn="onloadcallback",Em="grecaptcha";function Nn(){return typeof window<"u"&&window.recaptchaOptions||{}}function Tm(){var e=Nn(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Sn+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Sn+"&render=explicit"}const fl=Nm(Tm,{callbackName:Sn,globalName:Em,attributes:Nn().nonce?{nonce:Nn().nonce}:{}})(ma),at=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),xm={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},km=({isOpen:e,onClose:t,commentId:a,publication:n,username:r,CAPTCHA_KEY_V2:o,blockRecaptcha:i=!1,texts:l})=>{const c={...xm,...l?.comentarios},d={...ca,...c.reportReasons??{}},[u,h]=k.useState("form"),[f,p]=k.useState(""),[m,g]=k.useState(""),[b,w]=k.useState(""),C=[{id:"spam",label:d.spam},{id:"inappropriate",label:d.inappropriate},{id:"hate",label:d.hate},{id:"misinformation",label:d.misinformation},{id:"terrorism",label:d.terrorism},{id:"intellectual",label:d.intellectual},{id:"bullying",label:d.bullying}],S=async()=>{if(!(!f||!a)){if(el(document).includes(a)){g(c.errorAlreadyReported);return}h("loading"),g("");try{const N=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:n,username:r,id:a,captchaToken:b,type:ca[f]})})).json();if(N.type==="success")rm(document,a),h("success"),setTimeout(()=>{v()},3e3);else throw new Error(N.message||c.errorReportComment)}catch(y){console.error("Error reporting comment:",y),g(y.message||c.errorReportComment),h("form")}}},v=()=>{h("form"),p(""),g(""),t()};return!e||!a||!r?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:v,children:s.jsx(gt,{})}),s.jsx("div",{className:"sass-pg-cmt-rp-title",children:c.reportAbuseTitle}),u==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(at,{})}),u==="form"||u==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:C.map(y=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:y.id,checked:f===y.id,onChange:N=>p(N.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:y.label})]},y.id))}),m&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:m}),!i&&s.jsx(fl,{sitekey:o,theme:"light",size:"normal",onChange:y=>w(y??""),onExpired:()=>w("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:v,className:"sass-pg-cmt-rp-cancelButton",children:c.cancelButton}),s.jsx("button",{onClick:S,disabled:!f,className:"sass-pg-cmt-rp-reportButton",children:c.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:c.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:v,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:c.reportCloseButton})})]})]})})};function Im(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function pa(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?pa({comments:a.reply}).comments:a.reply};const{user:n,text:r}=Im(a.text);return{...a,user:n||!1,text:r,reply:a.reply?pa({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function ga({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){const{PUBLIC_ENV:d}=c;if(d==="prod"){const u=await ml({publication:e,path:t,size:a,sizereply:n,id:r,lastid:o,state:i,apiToken:l,API_ENV:c});return pa(u[0])}else{const u=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${n}&lastid=${o}`);if(!u.ok)throw new Error(`Error al obtener comentarios: ${u.status}`);const h=await u.json();return pa(h.data[0])}}async function ml({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:u="dummy",PUBLIC_API_PATH:h,PUBLIC_API_PATH_VERSION:f}=c,p=parseInt(String(a),10),m=parseInt(String(n),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const g=d!=="prod"?`${u}${h}`:"",b=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:m.toString(),state:i});r&&b.append("id",r),o&&b.append("lastid",o);const w=`${g}${f}/newcomments/get?${b.toString()}`;try{const{data:C}=await re.get(w,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!C)throw new Error("No comments data received");return C.data||C||[]}catch(C){if(console.error("Error fetching comments:",C),re.isAxiosError(C)){const S=C.response?.status,v=C.response?.data;throw S===404?new Error("Comments not found"):S===403?new Error("Access forbidden - check API token"):S===401?new Error("Unauthorized - invalid API token"):S===500?new Error("Internal server error from CMS"):new Error(v?.error||v?.message||`HTTP ${S}: Failed to fetch comments`)}throw C}}const Lm=(e,t)=>{const[a,n]=k.useState(void 0),{PUBLIC_PUBLICATION_ID:r}=t,o=r;return k.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const c=await ga({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});n(c??[])}catch{n({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:n}},pl=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("time",{className:"comment-date su-truncate",dateTime:ke(Number(t),a?.DATE_TIMEZONE??"")||void 0,...Xe(Number(t),void 0,"note"),children:nm(xe(Number(t),a))})]}),gl=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),bl=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Pm={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},En=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:n,texts:r})=>{const o={...Pm,...r?.comentarios};return k.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const d=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${d}/${Re}`),i.classList.toggle("over-limit",d>Re),a(!da(e,t,n).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},Tn=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:n,API_ENV:r})=>{const o=da(e,t,r);return s.jsxs("div",{className:"form-actions su-flex-between",children:[!Te(r)&&s.jsx(fl,{sitekey:r.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[n,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},Um={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Om={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con GOOGLE",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Bm({onClose:e,handleGoogleLogin:t,icon:a,texts:n,API_ENV:r}){const o={...Om,...Um,...n?.comentarios},i=de(r),l=h=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/login"+(h?"#forgot":""))},c=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/register")},{PUBLIC_ASSETS_URL:d}=r,u=(d&&d!=="false"?d:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:h=>{const f=h.target;f&&f.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?s.jsx("img",{src:a,alt:"Logo"}):null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(gt,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:u,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{l(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:c,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{l(!0)},children:o.forgotPasswordText})]})})}const Mm={submitCommentButton:"Enviar Comentario"},xn=({onClick:e,isDisabled:t,API_ENV:a,icon:n,handleGoogleLogin:r,showAlert:o,texts:i})=>{const l={...Mm,...i?.comentarios},[c,d]=k.useState(!1),[u,h]=k.useState(!1),[f,p]=k.useState(!1);k.useEffect(()=>{let g=null;return c&&(g=setTimeout(()=>{d(!1)},2400)),()=>{g&&clearTimeout(g)}},[c]),k.useEffect(()=>{if(!u||!a.CONFIG_commentsV2||!o||!document)return;const g=document.getElementById("comment-button");if(!g)return;const b=g.closest(".comment-form"),w=b?.querySelector('input[name="username"]'),C=b?.querySelector('textarea[name="comment"]'),S=b?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");w?.value?.trim()&&C?.value?.trim()&&(!Te(a)&&!S?.value?.trim()||g.click())});const m=ne("/Success.gif",a.PUBLIC_ASSETS_URL);return c?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:m})}):s.jsxs(s.Fragment,{children:[f&&a.CONFIG_commentsV2&&o&&s.jsx(Bm,{API_ENV:a,icon:n,handleGoogleLogin:r,texts:i,onClose:g=>{g&&h(!0),p(!1)}}),s.jsxs("button",{type:"button",onClick:async g=>{if(!u&&a.CONFIG_commentsV2&&o){p(!0),console.log("open popup");return}await e(g)&&(a.CONFIG_commentsV2&&o&&h(!1),d(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})]})},kn=async({path:e,ref:t,captchaToken:a,button:n,user:r,id:o,addComment:i,API_ENV:l,anonimusUser:c})=>{const d=t.current?.value||"",{PUBLIC_PUBLICATION_ID:u}=l,h=u;if(console.log("check",r,c),!da(t,a,l).boolean||!r&&!c){console.log("warn");const p=n.nextElementSibling;return p&&(p.style.display="block"),!1}if(!r&&!c)return;const f=r?d:"[["+c+"]] "+d;try{const p=Date.now(),m=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:h,path:e,id:o,username:r?r.username:!1,comment:f,recaptchaResponse:a})});let g=null;try{g=await m.json()}catch(v){console.error("Error parsing JSON response:",v)}if(!m.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${m.status}`);const b=Date.now(),w=Math.max(0,2400+Math.abs(b-p)),C=r||{username:c,firstname:c},S={username:C.username,firstname:C.firstname,...C.lastname&&{lastname:C.lastname},...C.picture&&{picture:C.picture}};return i({id:b.toString(),text:d,user:S,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),w}catch(p){return console.error("Error enviando comentario:",p),alert(p.message||"Error al enviar el comentario."),!1}},_m=({replyingTo:e,commentRef:t,user:a,path:n,addReply:r,closeForm:o,API_ENV:i,texts:l})=>{const[c,d]=k.useState(!0),[u,h]=k.useState(""),f=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Re}`),d(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:f,children:s.jsx(gt,{})}),s.jsx(En,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(Tn,{commentRef:t,captchaToken:u,setCaptchaToken:h,API_ENV:i,children:s.jsx(xn,{onClick:async p=>{if(c)return;const m=await kn({path:n,ref:t,captchaToken:u,button:p.currentTarget,user:a,id:e,addComment:r,API_ENV:i});return m&&typeof m=="number"?(setTimeout(()=>{f()},m),!0):!1},isDisabled:c,API_ENV:i,texts:l})})]})},Dm={replyingToLabel:"Respondiendo a"},qm=({reply:e,replyingTo:t,user:a,onFlag:n,DATE_CONFIG:r,texts:o})=>{const i={...Dm,...o?.comentarios},l=e.text;let c=`${et.firstname} ${et.lastname??""}`,d=et.username;return e.user&&(c=`${e.user.firstname} ${e.user.lastname??""}`,d=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(gl,{user:e.user?e.user:et}),s.jsxs("div",{style:{flex:1},children:[s.jsx(pl,{username:c,date:e.date.time,DATE_CONFIG:r}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==d.toLowerCase()&&s.jsx(bl,{isReply:!0,onFlag:()=>n(e.id)})]})]})})},Gm={moreRepliesButton:"Más Respuestas"},Fm=({comment:e,replyingTo:t,path:a,user:n,handleReplyingTo:r,onFlag:o,API_ENV:i,texts:l})=>{const c={...Gm,...l?.comentarios},d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[u,h]=k.useState(d),[f,p]=k.useState(!1),{PUBLIC_PUBLICATION_ID:m,PUBLIC_X_SECURITY_TOKEN:g}=i,b=e.text,w=k.useRef(null);let C=`${et.firstname} ${et.lastname??""}`,S=et.username;e.user&&(C=`${e.user.firstname} ${e.user.lastname??""}`,S=e.user.username);const v=y=>{h({morereply:u.morereply,reply:[y,...u.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":u.reply.length>0?"true":"false",children:[s.jsx(gl,{user:e.user?e.user:et}),s.jsxs("div",{style:{flex:1},children:[s.jsx(pl,{username:C,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:b}),n?.username.toLowerCase()!==S.toLowerCase()&&s.jsx(bl,{onReply:()=>r(e.id),onFlag:()=>o(e.id)}),t===e.id&&n&&s.jsx(_m,{replyingTo:t,commentRef:w,addReply:v,user:n,path:a,API_ENV:i,closeForm:()=>r(""),texts:l}),u.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[u.reply.map(y=>s.jsx(qm,{user:n,reply:y,replyingTo:C,onFlag:o,DATE_CONFIG:i,texts:l},y.id)),f?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(at,{})}):u.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const y=u.reply[u.reply.length-1]?.id;p(!0);try{const x=await ga({publication:m??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:y,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),h({morereply:x.morecomment,reply:[...u.reply,...x.comments]})}catch(N){throw p(!1),new Error(`Error al obtener comentarios: ${N}`)}},children:c.moreRepliesButton})]})]})]})})},jm=({commentRef:e,user:t,path:a,addComment:n,API_ENV:r,texts:o})=>{const[i,l]=k.useState(!0),[c,d]=k.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(En,{commentRef:e,captchaToken:c,setIsDisabled:l,API_ENV:r,texts:o}),s.jsx(Tn,{API_ENV:r,commentRef:e,captchaToken:c,setCaptchaToken:d,children:s.jsx(xn,{onClick:async u=>{if(i)return;const h=await kn({path:a,ref:e,captchaToken:c,button:u.currentTarget,user:t,addComment:n,API_ENV:r});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Re}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Re}`),l(!0)},h),!0):!1},isDisabled:i,API_ENV:r,texts:o})})]})},Hm={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},Vm=({usernameRef:e,texts:t})=>{const a={...Hm,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},zm=({usernameRef:e,commentRef:t,path:a,icon:n,handleGoogleLogin:r,addComment:o,API_ENV:i,texts:l})=>{const[c,d]=k.useState(!0),[u,h]=k.useState(""),f=async p=>{if(c){console.log("error");return}if(!da(t,u,i).boolean){console.log("invalidForm");return}const m=e.current.value,g=await kn({path:a,ref:t,captchaToken:u,button:p.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:m});return h(""),g&&typeof g=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Re}`),d(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Re}`),d(!0)},g),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(Vm,{usernameRef:e,texts:l}),s.jsx(En,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(Tn,{API_ENV:i,commentRef:t,captchaToken:u,setCaptchaToken:h,children:s.jsx(xn,{onClick:f,isDisabled:c,API_ENV:i,handleGoogleLogin:r,icon:n,showAlert:!0,texts:l})})]})})},$m={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},Qm=({isAuthenticated:e,path:t,user:a,handleLogout:n,icon:r,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const c={...$m,...l?.comentarios},{PUBLIC_PUBLICATION_ID:d,PUBLIC_X_SECURITY_TOKEN:u}=i,h=d??"",f=t.replaceAll("/","|"),[p,m]=k.useState(void 0),[g,b]=k.useState(""),{comments:w,setComments:C}=Lm(f,i),[S,v]=k.useState(!1),y=k.useRef(null),N=k.useRef(null),x=U=>{b(g===U?"":U)},O=U=>{C(w?{...w,comments:[U,...w.comments??[]]}:void 0)},$=U=>{m(U)},q=async()=>{if(!w||!w.morecomment||w.comments.length===0)return;const U=w.comments[w.comments.length-1];if(!U)return;v(!0);const P=U.id;try{const H=await ga({publication:h,path:f??"",size:5,sizereply:2,id:void 0,lastid:P,state:"5,6",apiToken:u,API_ENV:i});C({morecomment:H.morecomment??!1,comments:[...w.comments,...H.comments]}),v(!1)}catch(H){throw v(!1),new Error(`Error al obtener comentarios: ${H}`)}},B=w?.comments&&w.comments.length>0,G=B?c.commentHeaderMessageWithComments:c.commentHeaderMessageEmpty,z=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(at,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=de(i)+"/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(he,{noHeading:!0,title:i.CONFIG_commentsV2||B||e?c.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(tm,{user:a,handleLogout:n,message:G,texts:l}),s.jsx(jm,{commentRef:y,user:a,addComment:O,path:f,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[c.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:c.anonimusPromptLinkText}),c.anonimusPromptSuffix]}),s.jsx(zm,{usernameRef:N,commentRef:y,icon:r,handleGoogleLogin:o,addComment:O,path:f,API_ENV:i,texts:l})]}):null}),w?w.comments&&w.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[w.comments.map(U=>s.jsx(Fm,{comment:U,replyingTo:g,handleReplyingTo:x,onFlag:$,user:a??et,path:f,API_ENV:i,texts:l},U.id)),S&&z]}):null:z,w?.morecomment&&!S&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:q,children:c.loadMoreButton})]})})}),s.jsx(km,{username:a?.username??void 0,publication:h,commentId:p,isOpen:p!==void 0,onClose:()=>m(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",blockRecaptcha:Te(i),texts:l})]})},is=async(e,t,a)=>{if(Te(a))return Bn;if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const n=window.grecaptcha;if(!n?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((r,o)=>{n.enterprise.ready(async()=>{try{const i=await n.enterprise.execute(t,{action:e});if(!i)throw new Error("Captcha token no generado");r(i)}catch(i){o(i)}})})},Wm={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tenés cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ls={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function Ym(e){return{email:{label:e?.email??ls.email.label,required:!0},given_name:{label:e?.given_name??ls.given_name.label,required:!0},family_name:{label:e?.family_name??ls.family_name.label,required:!0},password:{label:e?.password??ls.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ls.confirmPassword.label,required:!0}}}const We=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],wl=[{label:"La contraseña debe tener al menos 8 caracteres",test:We[0]},{label:"Usa un número",test:We[1]},{label:"Usa una letra minúscula",test:We[2]},{label:"Usa una letra mayúscula",test:We[3]},{label:"Usa un símbolo",test:We[4]}];function Km({goToLogin:e,handleGoogleLogin:t,API_ENV:a,texts:n,termsAndConditionsUrl:r}){const o={...Wm,...n?.comentarios},i=k.useMemo(()=>Ym(n?.comentarios?.registerForm),[n?.comentarios?.registerForm]),l=k.useMemo(()=>[{label:o.passwordRuleMinLength,test:We[0]},{label:o.passwordRuleNumber,test:We[1]},{label:o.passwordRuleLowercase,test:We[2]},{label:o.passwordRuleUppercase,test:We[3]},{label:o.passwordRuleSymbol,test:We[4]}],[o.passwordRuleMinLength,o.passwordRuleNumber,o.passwordRuleLowercase,o.passwordRuleUppercase,o.passwordRuleSymbol]),[c,d]=k.useState({}),[u,h]=k.useState(!1),[f,p]=k.useState(!1),[m,g]=k.useState(null),[b,w]=k.useState("register"),C=(N,x)=>{d(O=>({...O,[N]:x}))},S=async N=>{N.preventDefault(),g(null),p(!0);try{const x=Object.keys(i).filter(z=>!["username","password","confirmPassword"].includes(z)).map(z=>({Name:z,Value:c[z]}));if(x.some(z=>{if(!z.Value||z.Value.trim()==="")return!0}))return p(!1),g(o.errorCompleteFields);if(c.password!==c.confirmPassword){g(o.errorPasswordMismatch);return}const O=c.password||"";if(l.some(z=>!z.test(O))){g(o.errorPasswordInvalid);return}const q=Math.floor(Date.now()/1e3);x.push({Name:"updated_at",Value:String(q)});const B=a.PUBLIC_ENV==="local"?"token":await is("comment_register",a.CAPTCHA_KEY??"",a);if(!B)throw new Error("Captcha token no generado");const G=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,password:c.password,userAttributes:x,token:B})});if(!G.ok){const z=await G.json().catch(()=>({}));if(z.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email})}),w("confirm");return}throw new Error(z?.error||"Error al crear usuario")}w("confirm")}catch(x){console.log(x),g(x?.message||x?.error||o.errorUnexpected)}finally{p(!1)}},v=async N=>{if(N.preventDefault(),!c.confirmationCode){g(o.errorVerificationCodeRequired);return}g(null),p(!0);try{const x=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,code:c.confirmationCode})});if(!x.ok){const O=await x.json().catch(()=>({}));throw new Error(O?.error||"Error al confirmar usuario")}w("success")}catch(x){g(x?.message||o.errorUnexpected)}finally{p(!1)}},y=c.password||"";return s.jsxs(s.Fragment,{children:[b==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:S,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-cmt-lp-formUl",children:Object.entries(i).map(([N,{label:x}])=>s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:x}),s.jsx("input",{type:N.toLowerCase().includes("password")?u?"text":"password":N==="birthdate"?"date":N==="email"?"email":N==="phone_number"?"tel":"text",name:N,value:c[N]||"",onChange:O=>C(N,O.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),N==="password"&&s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:l.map((O,$)=>{const q=O.test(y);return s.jsxs("div",{className:q?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:q?"✔":"○"}),s.jsx("div",{children:O.label})]},$)})}),N==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:u,onChange:O=>h(O.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-cmt-lp-checkboxLabel",children:o.showPasswordsLabel})]})]},N))}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsxs("p",{className:"sass-pg-cmt-lp-terms",children:[o.termsPrefix," ",s.jsx("a",{href:r??"/pages/politicas-de-privacidad.html",target:"_blank",children:o.termsLinkText})," ",o.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:f,children:f?s.jsx(at,{}):o.createAccountButton})]})]}),b==="confirm"&&s.jsxs("form",{onSubmit:v,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:o.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:c.confirmationCode||"",onChange:N=>C("confirmationCode",N.target.value),className:"sass-pg-cmt-lp-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:f,children:f?s.jsx(at,{}):o.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyConfirmedText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]}),b==="success"&&s.jsxs("form",{className:"sass-pg-cmt-lp-form",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-lp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-cmt-lp-successMessage",children:[s.jsx("p",{children:o.successTitle}),s.jsx("p",{children:o.successMessage})]})]}),s.jsx("button",{onClick:e,className:"sass-pg-cmt-lp-primary",children:o.loginButtonText})]}),b==="register"&&s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyHasAccountText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]})}const Jm={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Zm({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:n,API_ENV:r,texts:o}){const i={...Jm,...o?.comentarios},[l,c]=k.useState("login"),[d,u]=k.useState(""),[h,f]=k.useState(""),[p,m]=k.useState(""),[g,b]=k.useState(""),[w,C]=k.useState(""),[S,v]=k.useState(!1),[y,N]=k.useState(!1),[x,O]=k.useState(null),$=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=r.PUBLIC_ENV==="local"?"token":await is("comment_login",r.CAPTCHA_KEY||"",r);if(!z)throw new Error("Captcha token no generado");const _=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:d,password:h,token:z})});if(!_.ok){const U=await _.json().catch(()=>({}));throw new Error(U?.error||"Ha ocurrido un error")}e(),await t()}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},q=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Error al enviar código")}f(""),c("changePassword")}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},B=async G=>{if(y)return;if(G.preventDefault(),g!==w){O("Las contraseñas no coinciden");return}if(wl.some(_=>!_.test(g))){O("La contraseña no cumple con los requisitos");return}O(null),N(!0);try{const _=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,code:p,newPassword:g})});if(!_.ok){const U=await _.json().catch(()=>({}));throw new Error(U?.error||"Error al cambiar contraseña")}c("feedback")}catch(_){O(_?.message||"Error inesperado")}finally{N(!1)}};return s.jsxs(s.Fragment,{children:[l==="login"&&s.jsx(Xm,{email:d,password:h,showPassword:S,loading:y,error:x,setEmail:u,setPassword:f,setShowPassword:v,onSubmit:$,onForgot:()=>{O(null),c("forgot")},onRegister:a,handleGoogleLogin:n,t:i}),l==="forgot"&&s.jsx(Rm,{email:d,setEmail:u,loading:y,error:x,onSubmit:q,onBack:()=>{O(null),c("login")},t:i}),l==="changePassword"&&s.jsx(ep,{email:d,confirmationCode:p,newPassword:g,confirmNewPassword:w,showPassword:S,loading:y,error:x,setConfirmationCode:m,setNewPassword:b,setConfirmNewPassword:C,setShowPassword:v,onSubmit:B,onBack:()=>{O(null),c("forgot")},t:i}),l==="feedback"&&s.jsx(tp,{onBackToLogin:()=>{O(null),c("login")},t:i})]})}function Xm({email:e,password:t,showPassword:a,loading:n,error:r,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:d,onRegister:u,handleGoogleLogin:h,t:f}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:h,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:f.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:c,className:"sass-pg-cmt-lp-form","data-error":r?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:f.email}),s.jsx("input",{type:"email",value:e,onChange:p=>o(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:f.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:p=>i(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:p=>l(p.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-cmt-lp-checkboxLabel",children:f.showPassword})]})]}),r&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:n,children:n?s.jsx(at,{}):f.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[f.noAccountText,s.jsx("button",{type:"button",onClick:u,children:f.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:d,children:f.forgotPasswordText})]})}function Rm({email:e,setEmail:t,loading:a,error:n,onSubmit:r,onBack:o,t:i}){return s.jsxs("form",{onSubmit:r,className:"sass-pg-cmt-lp-form","data-error":n?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),n&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:a,children:a?s.jsx(at,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function ep({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:n,showPassword:r,loading:o,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:d,setShowPassword:u,onSubmit:h,onBack:f,t:p}){const m=p.changePasswordMessage.replace("{{email}}",om(e));return s.jsxs("form",{onSubmit:h,className:"sass-pg-cmt-lp-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:m}),s.jsxs("ul",{className:"sass-pg-cmt-lp-formUl",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.newPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:a,onChange:g=>c(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:wl.map((g,b)=>{const w=g.test(a);return s.jsxs("div",{className:w?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:w?"✔":"○"}),s.jsx("div",{children:g.label})]},b)})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:n,onChange:g=>d(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:r,onChange:g=>u(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-cmt-lp-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(at,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:f,children:p.backButton})})]})}function tp({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-cmt-lp-form",children:[s.jsx("p",{className:"sass-pg-cmt-lp-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-primary",onClick:e,children:t.loginButtonText})]})}function sp({handleGoogleLogin:e,onClose:t,checkAuth:a,icon:n,API_ENV:r,texts:o,termsAndConditionsUrl:i}){const[l,c]=k.useState("login");return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&t()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:n?s.jsx("img",{src:n,alt:"Logo"}):null}),s.jsx("button",{onClick:t,className:"sass-pg-cmt-lp-close","aria-label":"Cerrar",children:s.jsx(gt,{})})]}),l==="login"&&s.jsx(Zm,{onClose:t,checkAuth:a,handleGoogleLogin:e,goToRegister:()=>c("register"),API_ENV:r,texts:o}),l==="register"&&s.jsx(Km,{handleGoogleLogin:e,goToLogin:()=>c("login"),API_ENV:r,texts:o,termsAndConditionsUrl:i})]})})}const ap={commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",loginButtonText:"Iniciar Sesión"};function np({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:n,path:r,checkAuth:o,icon:i,API_ENV:l,texts:c,termsAndConditionsUrl:d}){const[u,h]=k.useState(!1),f={...ap,...c?.comentarios},p=f.loginButtonText,m=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const w=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(w)}`}},g=async w=>{w.preventDefault(),a&&h(!0)},b=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`};return s.jsxs(s.Fragment,{children:[u&&!l.CONFIG_commentsV2&&s.jsx(sp,{loginUrl:a,icon:i,checkAuth:o,handleGoogleLogin:b,API_ENV:l,texts:c,termsAndConditionsUrl:d,onClose:()=>{h(!1)}}),!e&&!l.CONFIG_commentsV2&&s.jsxs("div",{className:"auth-container",children:[s.jsx("p",{children:f.commentPromptMessage}),s.jsx("a",{href:a,onClick:g,className:"login-button",children:p})]}),s.jsx(Qm,{isAuthenticated:e,handleLogout:m,handleGoogleLogin:b,icon:i,path:r,user:e?n:void 0,API_ENV:l,texts:c})]})}function rp({isVisible:e,path:t,icon:a,API_ENV:n,texts:r}){const[o,i]=k.useState(null),[l,c]=k.useState(null),d=n?.COGNITO_AUTH_PREFIX??"ASTRO_",u=k.useCallback(async()=>{if(e){if(document.cookie.search(d+"IS_AUTH=true")===-1){i(!1),c(null);return}try{const g=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(g.isAuthenticated??!1),c(g.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(m){console.error("Error checking auth:",m),i(!1),c(null)}}},[e,d]);k.useEffect(()=>{u()},[u,e]),k.useEffect(()=>{if(!l||!e||typeof window>"u")return;const m=window;if(typeof m!="function"){console.warn("gtag no está disponible todavía");return}m.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const h="/api/auth/login",f=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return f;const p=t.replaceAll("|","/");return e?s.jsx(np,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:h,user:l??void 0,checkAuth:u,path:p,API_ENV:n,texts:r}):f}const op=({internalPath:e,icon:t,API_ENV:a,texts:n})=>{const r=k.useMemo(()=>Pa(a),[a]);return k.useEffect(()=>{if(!document||Te(r))return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const i=document.createElement("script");i.id="recaptcha-enterprise-script",i.defer=!0,i.async=!0,i.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(i),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(rp,{path:e,icon:t,isVisible:!0,API_ENV:r,texts:n})})},ip=({section:e,internalPath:t,stylesConfig:a,paths:n,API_ENV:r,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(Jf,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:n,fetchConfig:o,API_ENV:Pa(r)})});async function lp({publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:c,COMMENTS_VARS:d}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o}),!e||!t||!n)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,n].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!n.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const u=await Ri(o,d);if(console.log("Verifying captcha token...",u),!u)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const h=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:t.replace(/\|/gi,"/"),text:n.trim()};a&&(f.username=a),r&&(f.id=r);const p=new URLSearchParams(f);try{const{data:m}=await re.get(`${h}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":c,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),re.isAxiosError(m)){const g=m.response?.status??500,b=m.response?.data;return g===400?{type:"error",message:b?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:b?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const cp=async({token:e,projectId:t,captchaKey:a,apiKey:n,captchaAction:r,config:o})=>{if(Te(o))return 1;if(!e)throw new Error("No token provided");if(!t||!a||!n)throw new Error("Missing project ID or site key");if(!r)throw new Error("No action provided");try{const l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:r}})})).json();if(!l?.tokenProperties?.valid)throw new Error(`The token was: ${l?.tokenProperties?.invalidReason}`);if(l.tokenProperties.action!==r)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return l?.riskAnalysis?.score??0}catch(i){throw console.error("Recaptcha verification failed",i),new Error(String(i))}},dp=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ns,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},up=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ns,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},hp=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(je,{slot_id:n,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return k.createElement(ns,{...l,key:i,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})})})},ba=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},fp=e=>{const{content:t,title:a,isVideo:n}=e;if(!t||t.length===0)return;const r=t[0],o=t.slice(1),i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return r&&o&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("div",{className:"sass-bd-dnfw-image",style:{"--heightImageOverwriteMobile":"200%"},children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx(M,{className:mt("sass-bd-dnfw-title",e.speculationPrerenderClass),href:r?.info?.link?.url,target:r?.info?.link?.target,children:r?.main?.title.home}),r?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:r?.main?.subtitle?.striped})]}),s.jsx(M,{href:r?.info?.link?.url,target:r?.info?.link?.target,"aria-label":r?.main?.title.home,children:s.jsx(ve,{preview:r.preview,isLarge:!0})})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,c)=>{const d={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:c},children:s.jsx(Pe,{...d,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})})]})]})},mp=({printEdition:e,title:t})=>e&&s.jsx(he,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Al={banner:e=>s.jsx(be,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(Js,{...e}),"Modulo 1x3":e=>s.jsx(ji,{...e}),"Modulo 1x4":e=>s.jsx(Hi,{...e}),"Modulo 1x5":e=>s.jsx(Vi,{...e}),"Destacado noticias":e=>s.jsx(Gi,{...e}),"Destacado full width":e=>s.jsx(fp,{...e}),"Destacado videos":e=>s.jsx(zi,{...e}),"Carrusel card":e=>s.jsx(Qi,{...e}),"Carrusel story":e=>s.jsx(dp,{...e}),"Carrusel owl":e=>s.jsx(up,{...e}),"Modulo fotogaleria":e=>s.jsx(hp,{...e}),"Carrusel opinion":e=>s.jsx(Wi,{...e}),"Modulo 1x3 card":e=>s.jsx($i,{...e}),"Modulo iframe":e=>s.jsx(mp,{...e}),"Carrusel video":e=>s.jsx(cn,{...e}),"Carusel videos":e=>s.jsx(cn,{...e})};function In({component:e,slot_id:t,data:a,banners:n,isHome:r}){if(n)return Al[e]&&s.jsx("div",{className:"home-slot",style:ba(a),children:Al[e]({...a,banners:n,slot_id:t,isHome:r})})}function pp({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:ba(t),children:e})}const gp=e=>e?.main?.title?{...e,main:{...e.main,title:{...e.main.title,section:e.main.title.home??e.main.title.section}}}:e,yl={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Di,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Di,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(wt,{...e.data[0],paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx($1,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(z1,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"Diario en vivo":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(V1,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,textPosition:e.textPosition,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,customLiveStyles:e.customLiveStyles,paths:e.paths,commonServices:e.commonServices,speculationPrerenderClass:e.speculationPrerenderClass})}},Cl=({component:e,data:t,banners:a,rightOnlyBanner:n,isHome:r,commonServices:o})=>{const i=r&&Array.isArray(t?.data)?{...t,data:t.data.map(gp)}:t;return s.jsx("div",{style:ba(t),children:yl[e]&&yl[e]({...i,rightOnlyBanner:n,banners:a,commonServices:o})})},bp=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:n,config:r,banners:o,showTagBySection:i,pathname:l})=>{const c=mo(l),d=L().CONFIG_bannerKeys==="v2",u=v=>d?{name:`middle_${v}`,legacy:`middle_dynamic_${v}`}:{index:`dynamic_${v}`},h=[],f=t;let p=!0;const m=v=>v==="No Mostrar"||v?.toLowerCase()==="no mostrar",g=v=>{if(e[v].blockSass[0]?.block==="Modulo iframe")return!!e[v].blockSass[0]?.value;const N=e[v].content?.data;return Array.isArray(N)&&N.length>0},b=v=>{if(!p)return{};p=!1;const y=e[v].content?.data,N=Array.isArray(y)?y.length:0;return{speculationPrerenderClass:Ka,speculationPrerender:{class:Ka,length:N}}},w=(v,y,N,x)=>{if(!e[v]||!e[v].blockSass||!e[v].blockSass[0]||!e[v].blockSass[0].value||!e[v].blockSass[0].block||m(e[v].blockSass[0].block)||!g(v))return;const O=b(v);e[v].blockSass[0]?.block==="Modulo iframe"?h.push(s.jsxs(Ya,{id:e[v].blockSass[0].key,show:!!e[v].blockSass[0].value,order:y,children:[s.jsx(In,{component:e[v].blockSass[0].block,banners:o,slot_id:v,isHome:c,data:{printEdition:e[v]?.blockSass[0].value,title:e[v]?.blockSass[0].title??"",titleUrl:e[v].blockSass[0].link??void 0,...O}}),s.jsx(Fs,{children:s.jsx(js,{banners:o,...u(x)})})]},N)):h.push(s.jsxs(Ya,{id:e[v].blockSass[0].key,show:!!e[v].content?.data,order:y,children:[s.jsx(In,{component:e[v].blockSass[0].block,banners:o,slot_id:v,isHome:c,data:{...e[v].blockSass[0].block?a[e[v].blockSass[0].block]:[],content:e[v].content?.data??[],title:e[v].blockSass[0].title??void 0,titleUrl:e[v].blockSass[0].link??void 0,autorIcon:s.jsx(n,{}),paths:r.paths,showTagBySection:i,...O}}),s.jsx(Fs,{children:s.jsx(js,{banners:o,...u(x)})})]},N))},C=Object.keys(e);if(C.some(v=>/^Home_\d+$/.test(v))){const v=C.filter(y=>/^Home_\d+$/.test(y)).sort((y,N)=>Number(y.slice(5))-Number(N.slice(5)));for(const y of v){const N=Number(y.slice(5));w(y,Number.isFinite(N)?N-1:0,y,String(N))}}else{const y=C.length/f;for(let N=1;N<=y;N++)for(let x=1;x<=f;x++)w("Home_"+N+"_"+x,(N-1)*f+(x-1),N+"_"+x,N+"_"+x)}return h},wp=["Super","3 notas verticales","3 notas horizontales","Diario en vivo"],Ap=async({StylesConfigMain:e,config:t,banners:a,axiosApi:n,commonServices:r,textPosition:o,imageSizes:i,section:l,zone:c,exclude:d,customMainImagesSize:u})=>{const{PUBLIC_ENV:h}=L();if(h!=="local")return null;const f=new Yo(t,{},n,d,u,i),p=await Promise.all(wp.map(async g=>{const b=f.GetByOptions[g];if(!b)return{component:g,news:{data:[]}};try{const C=(await b(l,c))?.data??{data:[]};return{component:g,news:C}}catch(w){return console.log(`[DEBUG_MainSlots] fetch ${g} failed: ${w?.message}`),{component:g,news:{data:[]}}}})),m=(g,b)=>({...b,...e[g],paths:t.paths,textPosition:o});return s.jsx(s.Fragment,{children:p.map(({component:g,news:b},w)=>s.jsxs("div",{children:[s.jsx(Cl,{component:g,data:m(g,b),banners:a,commonServices:r}),w<p.length-1&&s.jsx(Fs,{children:s.jsx(js,{banners:a,index:1})})]},g))})};function yp({debugCfg:e}){return L().DEBUG_ENABLED?s.jsx(Cp,{position:e?.buttonPosition??"bottom-right",initialErrors:e?.initialErrors,initialSuccesses:e?.initialSuccesses}):null}function Cp({position:e,initialErrors:t,initialSuccesses:a}){const[n,r]=k.useState(0),[o,i]=k.useState(0),[l,c]=k.useState(!1),[d,u]=k.useState("errors"),[h,f]=k.useState([]),[p,m]=k.useState([]),g=k.useRef(null);k.useEffect(()=>{if(t&&t.length>0){const v=new Set(ge.getAll().map(y=>y.id));for(const y of t)v.has(y.id)||ge.add(y)}if(a&&a.length>0){const v=new Set(ge.getAllSuccesses().map(y=>y.id));for(const y of a)v.has(y.id)||ge.addSuccess(y)}r(ge.getCount()),i(ge.getSuccessCount());const C=v=>r(v.detail.count),S=v=>i(v.detail.count);return window.addEventListener("debug-fetch-error",C),window.addEventListener("debug-fetch-success",S),g.current=re.interceptors.response.use(v=>{const y=vp(v.data);return ge.addSuccess({endpoint:v.config.url??"(unknown)",method:(v.config.method??"GET").toUpperCase(),params:v.config.params,status:v.status,responsePreview:y,layer:"axios-service"}),v},void 0),()=>{window.removeEventListener("debug-fetch-error",C),window.removeEventListener("debug-fetch-success",S),g.current!==null&&re.interceptors.response.eject(g.current)}},[]);function b(){f(ge.getAll()),m(ge.getAllSuccesses()),c(!0)}function w(){ge.clearAll(),f([]),m([]),r(0),i(0),c(!1)}return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:b,style:xp(e),title:"Debug panel",children:["🐛",n>0&&s.jsx("span",{style:vl("#e94560"),children:n}),o>0&&s.jsx("span",{style:vl("#27ae60"),children:o})]}),l&&s.jsx("div",{style:kp,onClick:()=>c(!1),children:s.jsxs("div",{style:Ip,onClick:C=>C.stopPropagation(),children:[s.jsxs("div",{style:Lp,children:[s.jsx("strong",{children:"Debug Panel"}),s.jsx("button",{onClick:()=>c(!1),style:Bp,children:"✕"})]}),s.jsxs("div",{style:Pp,children:[s.jsxs("button",{onClick:()=>u("errors"),style:Sl(d==="errors","#e94560"),children:["Errors ",n>0&&s.jsx("span",{style:Nl("#e94560"),children:n})]}),s.jsxs("button",{onClick:()=>u("successes"),style:Sl(d==="successes","#27ae60"),children:["OK ",o>0&&s.jsx("span",{style:Nl("#27ae60"),children:o})]})]}),s.jsxs("div",{style:Up,children:[d==="errors"&&(h.length===0?s.jsx("p",{style:Bl,children:"No hay errores acumulados."}):h.map(C=>s.jsx(Np,{error:C},C.id))),d==="successes"&&(p.length===0?s.jsx("p",{style:Bl,children:"No hay fetches exitosos registrados aún."}):p.map(C=>s.jsx(Ep,{entry:C},C.id)))]}),s.jsx("div",{style:Op,children:s.jsx("button",{onClick:w,style:Mp,children:"Limpiar todo"})})]})})]})}function vp(e){try{const t=JSON.stringify(e);return t.length>500?t.slice(0,500)+"…":t}catch{return"[non-serializable]"}}function Sp(e){const t=e.status?`${e.status}`:"Error",a=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return`${t}: ${a}`}function Np({error:e}){const[t,a]=k.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}return s.jsxs("div",{style:El("#1a0a0a","#3d1a1a"),children:[s.jsxs("button",{onClick:()=>a(r=>!r),style:Tl,children:[s.jsx("span",{style:xl,children:t?"▼":"▶"}),s.jsx("span",{style:Ml(e.layer),children:e.layer}),e.status!==void 0&&s.jsx("span",{style:_l(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#f87171"},children:Sp(e)}),s.jsxs("span",{style:kl,children:[e.method," ",e.endpoint]})]}),t&&s.jsxs("div",{style:Il,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),s.jsx("div",{style:{fontSize:12,color:"#f87171",marginBottom:4},children:e.message}),e.params&&s.jsx("pre",{style:Ln,children:JSON.stringify(e.params,null,2)}),s.jsxs("div",{style:Pl,children:[s.jsx("span",{style:Ul,children:e.timestamp}),s.jsx("button",{onClick:n,style:Ol,children:"Copy"})]})]})]})}function Ep({entry:e}){const[t,a]=k.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}const r=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return s.jsxs("div",{style:El("#0a1a0a","#1a3d1a"),children:[s.jsxs("button",{onClick:()=>a(o=>!o),style:Tl,children:[s.jsx("span",{style:xl,children:t?"▼":"▶"}),s.jsx("span",{style:Ml(e.layer),children:e.layer}),s.jsx("span",{style:_l(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#4ade80"},children:r}),s.jsxs("span",{style:kl,children:[e.method," ",e.endpoint]}),e.responsePreview&&!t&&s.jsx("span",{style:Dp,children:s.jsx("span",{style:qp,children:e.responsePreview.length>80?e.responsePreview.slice(0,80)+"…":e.responsePreview})}),e.durationMs!==void 0&&s.jsxs("span",{style:_p,children:[e.durationMs,"ms"]})]}),t&&s.jsxs("div",{style:Il,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),e.params&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:Ll,children:"Params"}),s.jsx("pre",{style:Ln,children:JSON.stringify(e.params,null,2)})]}),e.responsePreview&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:Ll,children:"Response"}),s.jsx("pre",{style:{...Ln,color:"#86efac"},children:e.responsePreview})]}),s.jsxs("div",{style:Pl,children:[s.jsx("span",{style:Ul,children:e.timestamp}),s.jsx("button",{onClick:n,style:Ol,children:"Copy"})]})]})]})}const Tp={"bottom-right":{bottom:16,right:16},"bottom-left":{bottom:16,left:16},"top-right":{top:16,right:16},"top-left":{top:16,left:16}};function xp(e){return{position:"fixed",zIndex:99999,...Tp[e],background:"#1a1a2e",color:"#fff",border:"2px solid #e94560",borderRadius:8,padding:"8px 14px",fontSize:14,cursor:"pointer",display:"flex",alignItems:"center",gap:5,boxShadow:"0 4px 12px rgba(0,0,0,0.4)"}}function vl(e){return{background:e,color:"#fff",borderRadius:"50%",width:18,height:18,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,flexShrink:0}}const kp={position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center"},Ip={background:"#1a1a2e",color:"#fff",borderRadius:12,width:"min(820px, 92vw)",maxHeight:"85vh",display:"flex",flexDirection:"column",boxShadow:"0 8px 32px rgba(0,0,0,0.6)",border:"1px solid #e94560"},Lp={display:"flex",justifyContent:"space-between",alignItems:"center",padding:"14px 20px",borderBottom:"1px solid #2a2a4e"},Pp={display:"flex",borderBottom:"1px solid #2a2a4e",padding:"0 12px",gap:4};function Sl(e,t){return{background:"none",border:"none",borderBottom:e?`2px solid ${t}`:"2px solid transparent",color:e?"#fff":"#888",cursor:"pointer",fontSize:13,fontWeight:e?700:400,padding:"8px 14px",display:"flex",alignItems:"center",gap:6,transition:"color 0.15s"}}function Nl(e){return{background:e,color:"#fff",borderRadius:10,padding:"1px 7px",fontSize:10,fontWeight:700}}const Up={overflowY:"auto",flex:1,padding:"12px 16px",display:"flex",flexDirection:"column",gap:8},Op={padding:"12px 20px",borderTop:"1px solid #2a2a4e",display:"flex",justifyContent:"flex-end"},Bp={background:"none",border:"none",color:"#fff",cursor:"pointer",fontSize:18},Mp={background:"#e94560",color:"#fff",border:"none",borderRadius:6,padding:"6px 16px",cursor:"pointer",fontSize:13};function El(e,t){return{background:e,border:`1px solid ${t}`,borderRadius:8,padding:10}}const Tl={display:"flex",alignItems:"center",gap:7,background:"none",border:"none",color:"#fff",cursor:"pointer",width:"100%",textAlign:"left",padding:0,fontSize:13,flexWrap:"wrap"},xl={fontSize:10,color:"#aaa",flexShrink:0},kl={fontSize:11,color:"#9ca3af",fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:300},_p={fontSize:10,color:"#6b7280",marginLeft:"auto",flexShrink:0},Dp={display:"flex",alignItems:"center",maxWidth:260,overflow:"hidden",flexShrink:1},qp={fontFamily:"ui-monospace, monospace",fontSize:10,color:"#6b7280",background:"#0a0a14",borderRadius:3,padding:"1px 6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},Il={marginTop:10,paddingTop:10,borderTop:"1px solid #2a2a4e"},Ll={fontSize:10,textTransform:"uppercase",letterSpacing:"0.08em",color:"#9ca3af",marginBottom:3,marginTop:8},Ln={background:"#0a0a14",borderRadius:4,padding:"6px 10px",fontSize:10,overflow:"auto",maxHeight:150,margin:"0 0 4px",whiteSpace:"pre-wrap",wordBreak:"break-all"},Pl={display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},Ul={fontSize:10,color:"#6b7280"},Ol={background:"#2a2a4e",color:"#fff",border:"1px solid #444",borderRadius:6,padding:"4px 12px",cursor:"pointer",fontSize:11},Bl={color:"#888",margin:0,fontSize:13};function Ml(e){return{background:{"axios-service":"#3498db","fetch-api":"#9b59b6",captcha:"#f39c12",auth:"#e74c3c"}[e]??"#555",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function _l(e){return{background:e>=500?"#c0392b":e>=400?"#e67e22":"#27ae60",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function le(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tt(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cs(e,t){const{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,LINK_REMOVE:n,CONFIG_buscar_html:r}=L(),o=e??"",i=/[t][0-9]{4}\w+/.test(o),l=o.includes("/buscar"),c=!!a?.tema&&i,d=!!a?.buscar&&l,u=!t&&!c&&!d?de():"",h=/^(https?:)?\/\//.test(o)||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(o),f=o.split("/")?.[1]===u.replace("/","");let p=(!h&&!f?u:"")+(u&&o==="/"?"":o);return p.startsWith("//")&&(p=p.slice(1)),n&&p.search(n)!==-1&&(p=p.replace(n,"")),r&&l&&!p.endsWith(".html")&&(p=p.replace("/buscar","/buscar.html")),{finalHref:p,isExternal:h}}const Gp={whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:"/whatsapp-note.svg"},message:{url:e=>`${e}#comentarios`,icon:"/message.svg"}};function Fp(e){const t=e.url||"",a=pt(),n=(e.options??[]).map(i=>{const l=String(i).toLowerCase(),c=Gp[l];if(!c)return"";const d=c.url(t),u=ne(c.icon);return`<a href="${le(d)}" target="_blank" rel="noopener noreferrer" aria-label="${le(a.shareOnPrefix??"Compartir en")} ${le(String(i))}" class="sass-com-nd-socialButton sass-com-nd-${le(l)}Button sass-com-nd-${le(l)}Styled"><img fetchpriority="low" loading="lazy" src="${le(u)}" alt=""></a>`}).join(""),r=ne("/send.svg"),o=ne("/clipboard.svg");return'<div class="sass-com-nd-socialNetworkSection sass-news-description-social-network-section">'+n+`<button type="button" aria-label="share" class="sass-com-nd-clipboardButton sharebtn-id"><img fetchpriority="low" loading="lazy" src="${le(r)}" alt=""></button><button type="button" data-text="${le(a.linkCopied??"Link copiado")}" data-active="false" aria-label="copy" class="sass-com-nd-clipboardButton clipbtn-id"><img fetchpriority="low" loading="lazy" src="${le(o)}" alt=""></button></div>`}function jp(e,t){const a=e.sizes;if(!a||a.length===0)return"";const n=e.description?String(e.description):"",r=t?"high":"low",o=t?"eager":"lazy";if(a.length===1){const f=a[0]?.url?` src="${le(a[0].url)}"`:"";return`<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture><img fetchpriority="${r}" loading="${o}" class="sass-com-img-imageStyled su-flex-center su-object-cover" alt="${le(n)}"${f}></picture></span></figure>`}const i=t?"sync":"async",l=a.filter(f=>f.width<580).map(f=>`<source srcset="${le(f.url)}">`).join(""),c=a[0],d=c?.width!==void 0?` width="${c.width}"`:"",u=c?.height!==void 0?` height="${c.height}"`:"",h=c?.url??"";return'<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture>'+l+`<img fetchpriority="${r}" loading="${o}" decoding="${i}" class="sass-com-img-imageStyled su-flex-center su-object-cover"${d}${u} alt="${le(n)}" src="${le(h)}"></picture></span></figure>`}function Hp(e){const{href:t,target:a,ariaLabel:n,preview:r,preRenderClass:o,priorityHigh:i}=e,{finalHref:l,isExternal:c}=cs(t),d=o?`homeCardImage ${o}`:"homeCardImage",u=n!=null?` aria-label="${le(n)}"`:"",h=n!=null?` title="${le(n)}"`:"",f=a??void 0,p=f?` target="${le(f)}"`:"",m=c?' rel="noopener noreferrer"':"",g=jp(r,i??!1);return`<a${u} class="${d}"${h} href="${le(l)}"${p}${m}>${g}</a>`}function Vp(e,t,a){const n=a?.share,r=a?.newsDescriptionSectionTag??"h3",o=a?.speculationPrerenderClass,{SHOW_TAG_BY_SECTION:i,SUB_PUBLICATION_PREFIX_IN_ROUTES:l}=L();let c="";n&&(c=`<div style="width: 100%;" data-hydrate="ShareButtons" data-props="${encodeURIComponent(JSON.stringify({noteShare:n}))}">`+Fp(n)+"</div>");const d=()=>e.main.uppertitle?`<p class="sass-com-nd-uppertitle" title="${le(e.main.uppertitle)}">${tt(e.main.uppertitle)}</p>`:"";let u="";const h=e.keywords,f=e.info;if(i&&h?.tags?.length&&h.tags.length>0){const C=h.tags[0],S=C.name;let v;if(C.approved){const y=Me(C,t),{finalHref:N}=cs(y,!!l?.tema);v=`<a aria-label="${le(S)}" class="sass-com-nd-sectionDescription" href="${le(N)}">${tt(S)}</a>`}else v=`<div class="sass-com-nd-sectionDescription">${tt(S)}</div>`;u=`<${r} class="sass-com-nd-sectionDescriptionContainer section">${v}${d()}</${r}>`}else if(f?.section?.url){const C=f.section.name,{finalHref:S}=cs(f.section.url);u=`<${r} class="sass-com-nd-sectionDescriptionContainer section"><a aria-label="${le(C)}" class="sass-com-nd-sectionDescription" href="${le(S)}">${tt(C)}</a>`+d()+`</${r}>`}const p=e.main?.title?.section??"",m=o?`${o} sass-com-nd-linkStyled su-no-underline`:"sass-com-nd-linkStyled su-no-underline";let g;if(e.info?.link?.url){const{finalHref:C,isExternal:S}=cs(e.info.link.url),v=e.info.link.target,y=v?` target="${le(v)}"`:"",N=S?' rel="noopener noreferrer"':"";g=`<h2 class="sass-com-nd-articule"><a aria-label="${le(p)}" class="${m}" style="--isLink:var(--news-description-title-color-hover-decoration)" href="${le(C)}"${y}${N}>${tt(p)}</a></h2>`}else g=`<h2 class="sass-com-nd-articule">${tt(p)}</h2>`;let b="";if(e.config?.showsubtitle){const C=e.main?.subtitle?.striped??"";b=`<p class="sass-com-nd-description">${tt(Be(C))}</p>`}let w="";if(e.config?.showtime||e.config?.showauthor){let C,S="";if(e.config?.showtime&&e.config?.showauthor){const v=`${e.authors?.[0]?.fullname??"Redacción"} - `;C=`${v}${xe(e.info?.date?.modified)}`,S=zs(e.info?.date?.modified,v)}else e.config?.showauthor?C=e.authors?.[0]?.fullname??"Redacción":e.config?.showtime&&(C=xe(e.info?.date?.modified),S=zs(e.info?.date?.modified));if(C!==void 0)if(e.authors?.[0]?.internaluser){const v=`/${t?.autor}/${e.authors?.[0]?.name}`,{finalHref:y}=cs(v,!!l?.autor);w=`<h3><a aria-label="${le(C)}" class="sass-com-nd-correspondentLink" href="${le(y)}"${S}>${tt(C)}</a></h3>`}else w=`<h3 class="sass-com-nd-correspondent"${S}>${tt(C)}</h3>`}return'<div class="sass-com-nd-boxInformation sass-news-description">'+c+u+g+b+w+"</div>"}function zp(e,t,a,n,r=!1){const o=t<5?"nota-prerender":void 0,i=Hp({href:e.info.link.url,target:e.info.link.target,ariaLabel:e.main?.title?.section,preview:e.preview,priorityHigh:r}),l=Vp(e,a,{share:n,speculationPrerenderClass:o});return`<section class="homeCardContent"><div class="homeCardContentWrapper">${i}</div><div class="homeCardNewsDescription">${l}</div></section>`}const Dl=" · ",Pn=24,$p=36e5,ql=new WeakMap;let wa,ds;const Gl=e=>{const t=L().CONFIG_relativeTime;return{enabled:e?.enabled??t?.enabled??!1,maxAgeHours:e?.maxAgeHours??t?.maxAgeHours??gs,scope:e?.scope??t?.scope??"all",keepAbsolute:e?.keepAbsolute??t?.keepAbsolute??"notes",separator:e?.separator??t?.separator??Dl,refreshMs:e?.refreshMs??6e4,root:e?.root}},Qp="America/Mexico_City",Wp=()=>typeof document>"u"?"":document.documentElement.getAttribute("lang")??"",Yp=e=>{const t=L();return{PUBLIC_LNG:(e?.PUBLIC_LNG||t.PUBLIC_LNG||Wp()||"es").toLowerCase().split("-")[0],DATE_TIMEZONE:e?.DATE_TIMEZONE||t.DATE_TIMEZONE||Qp}},Fl=(e,t)=>t==="none"?!1:t==="all"?!0:t==="notes"?e:!e,Kp=/\d{1,2}:\d{2}(?::\d{2})?\s*(?:hs?|hrs?)?\.?\s*$/i,Jp=e=>{const t=e.match(Kp);if(!t||t.index===void 0)return;const a=e.slice(0,t.index);if(a.trim())return/\s$/.test(a)?a:a+" "},Zp=(e,t)=>{const{original:a,isNote:n,ts:r,now:o,maxAgeHours:i}=t,l=Fl(n,t.keepAbsolute),c=l?Math.min(i,Pn):i;if(!Sa(r,o,c)||l&&o-r>=Pn*$p)return a;const d=$n(r,o,c,t.DATE_CONFIG);if(l){const h=a.trim();if(!h)return d;const f=Jp(h);return f!==void 0?f+d:h+t.separator+d}return(e.getAttribute(Hs)??"")+d},Aa=e=>{if(typeof document>"u")return;const{enabled:t,maxAgeHours:a,scope:n,keepAbsolute:r,separator:o,root:i}=Gl(e);if(!t)return;const l=Date.now(),c=Yp(e);(i??document).querySelectorAll(`[${Ot}]`).forEach(u=>{const h=u.getAttribute(Vs)==="note";if(!Fl(h,n))return;const f=Number(u.getAttribute(Ot));if(!Number.isFinite(f)||f<=0)return;let p=ql.get(u);p===void 0&&(p=u.textContent??"",ql.set(u,p));const m=Zp(u,{original:p,isNote:h,ts:f,now:l,maxAgeHours:a,keepAbsolute:r,separator:o,DATE_CONFIG:c});u.textContent!==m&&(u.getAttribute("aria-label")===u.textContent&&u.setAttribute("aria-label",m),u.textContent=m)})},Xp=e=>{if(typeof document>"u")return()=>{};const t=()=>{wa!==void 0&&clearInterval(wa),wa=void 0,ds&&document.removeEventListener("visibilitychange",ds),ds=void 0};t();const{enabled:a,refreshMs:n}=Gl(e);return a?(Aa(e),n>0&&(wa=setInterval(()=>{document.visibilityState==="visible"&&Aa(e)},n),ds=()=>{document.visibilityState==="visible"&&Aa(e)},document.addEventListener("visibilitychange",ds)),t):()=>{}};A.AssetsPreconnect=Ar,A.AutorHeader1=C1,A.AutorHeader2=v1,A.BannerAdvertising=be,A.BannerAdvertisingMiddle=js,A.BannersPreconnect=Wo,A.CarrouselCSR=Nh,A.CarrouselIRS=je,A.CarruselCard=Qi,A.CarruselOpinion=Wi,A.CommentLazyLoader=op,A.CommonServices=Ze,A.Comscore=_n,A.ContactInfoServer=sf,A.ContactInput=d1,A.ContactSelect=u1,A.ContactTextarea=h1,A.ContentLayout1=Gs,A.ContentLayoutTema=l1,A.DEBUG_MainSlots=Ap,A.DEFAULT_HEAD_CONFIG=Ro,A.DEFAULT_RELATIVE_MAX_AGE_HOURS=gs,A.DEFAULT_RELATIVE_SEPARATOR=Dl,A.DEFAULT_S3_REFERER=ht,A.DebugPanel=yp,A.DebugStore=ge,A.DestacadoNoticias=Gi,A.DestacadoVideos=zi,A.DynamicBlockServices=Jo,A.DynamicComponents=bp,A.DynamicMainSlot=Cl,A.DynamicSlot=In,A.EMPTY_PREVIEW=Wn,A.EditorialBlock=Y1,A.ErrorComponent=c1,A.Font=zo,A.Footer=Yh,A.FormatAfterScripts=wr,A.FormatScripts=Ia,A.GA4=ko,A.GTM=Io,A.GalleryHeader=Ki,A.GenerateBody=yh,A.GenerateHead=Ah,A.Header=O1,A.HeaderSectionComponent=Yi,A.HomeCard=D1,A.IframeHeader=vi,A.ImageOffline=oi,A.ImageOnline=ve,A.ImageOnlineClient=Za,A.IssuuServices=rh,A.ItemListSchema=_o,A.JournalistArticule2=Bi,A.JournalistArticule5=_i,A.JournalistGroup=Mi,A.KEEP_ABSOLUTE_MAX_AGE_HOURS=Pn,A.LISTING_ROUTES=On,A.LIST_APPENDED_EVENT=pi,A.LayoutNewsComponent=ki,A.LinkComponent=M,A.ListLoadMore=nn,A.ListLoadMoreComponent=nn,A.LiveBlogHeader=Ni,A.Location=vh,A.LoginForm=Ff,A.MainComponentServices=Yo,A.Marfeel=Lo,A.MasNoticiasLazyLoader=ip,A.MiddleSection=Fs,A.Modulo1x3=ji,A.Modulo1x3Card=$i,A.Modulo1x4=Hi,A.Modulo1x5=Vi,A.Modulo2Columnas=K1,A.Modulo3Columnas=Fi,A.ModuloBlockNews=X1,A.ModuloNewsletter=J1,A.ModuloOpinion=W1,A.NOTA_PRERENDER_CLASS=Ka,A.NewDescriptionBlock=Ks,A.NewListResponseDataPH=Xi,A.NewsArticle=qo,A.NewsComponent=Of,A.NewsContent=rn,A.NewsDescriptionComponent=He,A.News_Content=Ji,A.NextPrev=di,A.OpinionCard2=rs,A.OrgList=Go,A.PreloadImages=La,A.RECAPTCHA_DISABLED_TOKEN=Bn,A.RELATIVE_TIME_ATTR=Ot,A.RELATIVE_TIME_PREFIX_ATTR=Hs,A.RELATIVE_TIME_SCOPE_ATTR=Vs,A.REPORT_REASONS=ca,A.RESILIENT_FETCH_DEFAULTS=St,A.ReCaptchaRender=Wu,A.Readest=Js,A.RegisterForm=qf,A.ScriptHydrator=Qf,A.SearchSection=Mf,A.Section=he,A.SectionCard=Pe,A.SectionCard2=ns,A.SectionCard5=Ih,A.SectionCardServerComponent=dn,A.SectionServerComponent=tf,A.ShowSection=Ya,A.SocialNetworks=ra,A.SoftwareApplication=Do,A.SourceButtons=_1,A.SpeculationRules=Mo,A.Spin=_t,A.StaffCard=i1,A.StaticSlotWrapper=pp,A.SubscribeColumn=ii,A.SubscribeRow=li,A.SubscribeWhatsAppColumn=Gh,A.TagHeader=M1,A.TagSection=Oi,A.TimeLine=Ei,A.TrimPathname=qc,A.TwitterHydration=Wf,A.VideoBlock3=Jh,A.VideoBlock4=N1,A.VideoCarousel=cn,A.VideoEmbeddedHeader=yi,A.VideoYoutubeHeader=Ci,A.VideosSchemas=jo,A.WebsiteList=Fo,A.addComment=lp,A.applyRelativeTime=Aa,A.assertImageSizesContract=nr,A.assetsImagesPrefixer=ne,A.auditConfigOrigin=ft,A.bannerKeyCandidates=ka,A.bannersEnabledForRequest=Mn,A.bannersReplace=vt,A.becomeVideoObject=At,A.buildConfigMenuApiPath=Jt,A.buildLoadMoreRequest=an,A.buildTagUrl=Me,A.buildVideoUrlFromInternal=Rn,A.checkImageSizes=yc,A.cleanSchema=De,A.clearConfigOriginAudit=Pu,A.clearConfigOriginCache=yu,A.clearConfigOriginComparisonCache=xu,A.coloringByStrokeSVGs=Wh,A.compileStyleProps=ba,A.contractWarn=qe,A.createAssessment=zc,A.cutString=Be,A.decodeApiEnv=Pa,A.emptyNewListResponse=gr,A.encodeApiEnv=Wc,A.ensurePreview=yt,A.extractMainSlug=Ne,A.extractRealtedNews=Sc,A.extractRelatedNews=As,A.extractTagIdFromSlug=ui,A.fetchMoreNews=hi,A.fetchWithConfigCache=ut,A.findBanner=Cs,A.formatConfigOriginComparisonTable=uo,A.formatDate=xe,A.formatDateEdiciones=nc,A.formatDateJournalistArticule=Ft,A.formatDateTimeline=Hn,A.formatNewsMeta=dr,A.formatRelativeDate=$n,A.formatVideoData=yr,A.generalGetData=ch,A.getBucketHttpClient=Lt,A.getCaptchaToken=is,A.getComments=ml,A.getConfig=L,A.getConfigCacheTtlMs=lo,A.getConfigOriginAuditReport=fo,A.getDynamicSlots=ih,A.getEnvironmentUrl=Ye,A.getEnvironmentUrlFront=Nc,A.getFrontPrefix=de,A.getHydratorPath=jc,A.getImageUrl=ue,A.getItemFormated=Yc,A.getNextMeta=Et,A.getPage=Pt,A.getPlayIcon=ts,A.getPreloadImages=nh,A.getPrevMeta=Tt,A.getRelatedNewsCarrousel=Hc,A.getReportReasonLabel=am,A.getResponse=rt,A.getResponsePromise=Qn,A.getSchemas=_s,A.getScriptReplaces=$a,A.getServicePrefix=Ta,A.getSlugs=Qo,A.getTextsStringValue=$c,A.getTitleString=jt,A.getTypeOfNews=Gc,A.getVideoOp=Na,A.getVideoRealPath=Fc,A.handleGetComments=ga,A.handleListLoadMoreRequest=o1,A.homeCardImagenToHTMLString=zp,A.initLibrary=zl,A.initListLoadMore=r1,A.initRelativeTime=Xp,A.insertCkAudioPlayers=za,A.isConfigOriginAuditEnabled=Bs,A.isHomePath=mo,A.isLoadMoreRoute=us,A.isPhotoGallery=Qc,A.isRecaptchaBlocked=Te,A.isSupportedCardTemplate=fi,A.isVideoContentItem=Xn,A.isWithinRelativeWindow=Sa,A.metadataToJSX=fr,A.metadata_defaults=Xo,A.new_speculationRules_home=Po,A.new_speculationRules_note=Oo,A.new_speculationRules_noteList=Bo,A.new_speculationRules_section=Uo,A.normalizeAuthorSocialUrl=$e,A.normalizeRankingItem=tr,A.normalizeRankingList=Ht,A.normalizeRankingResponse=sr,A.parseConfigOriginCacheKey=Va,A.parseTags=xa,A.pathnameSplit=ur,A.pickBannerVariant=ys,A.printImageSizesReport=Cc,A.processExtractedRelatedNews=or,A.relativeTimeAttrs=Xe,A.relativeTimeAttrsHTML=zs,A.removePages=$o,A.renderCardFast=mi,A.reportBucketOriginExhausted=Kt,A.reportComment=sm,A.resilientFetch=Nt,A.resolveBucketMenuSubtype=Us,A.resolveBucketOriginUrl=Je,A.resolveImageSizes=Vt,A.resolveListLoadMore=Dt,A.resolveSpeculationPrerenderClass=ei,A.runConfigOriginComparison=Tu,A.sanitizeRichText=Ms,A.shareButtons=ci,A.shouldDisablePagination=$l,A.socialIcons=bt,A.stripHtml=So,A.takeConfigOriginAuditReport=Lu,A.toISOWithTimeZone=ke,A.toPublicEditionUrl=Ct,A.toPublicShareUrl=Tc,A.urlReplaces=hr,A.usePlayIcon=Ja,A.validateHttpUrl=ir,A.verifyCaptchaTokenEnterprise=cp,A.withPreviewFallback=dc,A.withSpeculationPrerenderClass=mt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));