<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var arrayAGTemp,
    arrayAG,
    fin,
    strAg = "",
    nombreAgrupacion = "",
    archivosAmostrar = 0,
    totalResultados = 0,
    totalDB = 0,
    urlNas = "/contenidos",
    urlLaboratorioMicrodatos = "/app/microdatos/laboratoriodatos/lab1.html",
    urlServicioProcesamiento = "/app/microdatos/solicitudmicrodatos/?enc=0",
    ordenar = "titulo",
    vTabIndex = 0,
    vMostrarLeyendaDatosAbiertos = !1,
    paramEsquema = !1,
    valorParamEsquema = "1",
    vMostrarThFormato = !1,
    estatusDM = [],
    arrayDescargaTabulados = [],
    arrayDescargaMicrodatos = [],
    arrayDescargaDatosAbiertos = [],
    titulosAgregados = [];
function cargarTabsMicrodatos(a) {
    switch (a) {
        case "laboratorioMicrodatos":
            null != document.getElementById("descargaTabmicro") &amp;&amp; (document.getElementById("descargaTabmicro").className = "tab-pane fade"),
                null != document.getElementById("laboratorioMicrodatosTab") &amp;&amp; (document.getElementById("laboratorioMicrodatosTab").className = "tab-pane fade active show"),
                null != document.getElementById("pills-labpro-tab") &amp;&amp; (document.getElementById("pills-labpro-tab").className = "nav-link active"),
                null != document.getElementById("pills-serpro-tab") &amp;&amp; (document.getElementById("pills-serpro-tab").className = "nav-link"),
                null != document.getElementById("pills-labpro-tab") &amp;&amp; (document.getElementById("pills-labpro-tab").style.cursor = "none"),
                null != document.getElementById("pills-desc-tab") &amp;&amp; (document.getElementById("pills-desc-tab").style.cursor = "pointer"),
                null != document.getElementById("pills-serpro-tab") &amp;&amp; (document.getElementById("pills-serpro-tab").style.cursor = "pointer"),
                null != document.getElementById("servicioProcesamientoTab") &amp;&amp; (document.getElementById("servicioProcesamientoTab").className = "tab-pane fade"),
                "" == document.getElementById("laboratorioMicrodatosTab").innerHTML &amp;&amp;
                    (((t = document.createElement("div")).style.width = "100%"),
                    0 == encDomIng
                        ? $.get("/app/microdatos/laboratoriodatos/laboratorioMicrodatos2.html?v=" + Date.now(), function (a) {
                              (t.innerHTML = a), document.getElementById("laboratorioMicrodatosTab").appendChild(t), $(".icoDotLi").css("color", $("h4.tituImprimir").css("color"));
                          })
                        : $.get("/app/microdatos/laboratoriodatos/laboratorioMicrodatos_en2.html?v=" + Date.now(), function (a) {
                              (t.innerHTML = a), document.getElementById("laboratorioMicrodatosTab").appendChild(t), $(".icoDotLi").css("color", $("h4.tituImprimir").css("color"));
                          }));
            break;
        case "procesamientoRemoto":
            var t;
            "" == document.getElementById("procesamientoRemotoTab").innerHTML &amp;&amp;
                (((t = document.createElement("div")).style.width = "100%"),
                0 == encDomIng
                    ? $.get("/app/microdatos/laboratoriodatos/procesamientoRemoto.html", function (a) {
                          (t.innerHTML = '&lt;div class="row"&gt;&lt;div class="col-md-12"&gt;' + a + "&lt;/div&gt;&lt;/div&gt;"), document.getElementById("procesamientoRemotoTab").appendChild(t);
                      })
                    : $.get("/app/microdatos/laboratoriodatos/procesamientoRemoto_en.html", function (a) {
                          (t.innerHTML = '&lt;div class="row"&gt;&lt;div class="col-md-12"&gt;' + a + "&lt;/div&gt;&lt;/div&gt;"), document.getElementById("procesamientoRemotoTab").appendChild(t);
                      }));
            break;
        case "servicioProcesamiento":
            if (
                (null != document.getElementById("descargaTabmicro") &amp;&amp; (document.getElementById("descargaTabmicro").className = "tab-pane fade"),
                null != document.getElementById("laboratorioMicrodatosTab") &amp;&amp; (document.getElementById("laboratorioMicrodatosTab").className = "tab-pane fade"),
                null != document.getElementById("servicioProcesamientoTab") &amp;&amp; (document.getElementById("servicioProcesamientoTab").className = "tab-pane fade active show"),
                null != document.getElementById("pills-serpro-tab") &amp;&amp; (document.getElementById("pills-serpro-tab").style.cursor = "none"),
                null != document.getElementById("pills-labpro-tab") &amp;&amp; (document.getElementById("pills-labpro-tab").style.cursor = "pointer"),
                null != document.getElementById("pills-desc-tab") &amp;&amp; (document.getElementById("pills-desc-tab").style.cursor = "pointer"),
                "" == document.getElementById("servicioProcesamientoTab").innerHTML)
            ) {
                var r = document.createElement("div"),
                    s = "";
                (r.style.width = "100%"),
                    (s = 0 == encDomIng ? "/app/microdatos/solicitudmicrodatos/default2.html?v=" + Date.now() : "/app/microdatos/solicitudmicrodatos/defaulten2.html?v=" + Date.now()),
                    $.ajax({ method: "GET", async: !1, url: s }).done(function (a) {
                        (r.innerHTML = '&lt;div class="row"&gt;&lt;div class="col-md-12"&gt;' + a + "&lt;/div&gt;&lt;/div&gt;"), document.getElementById("servicioProcesamientoTab").appendChild(r);
                    });
            }
    }
}
function generarTdsEnlaces_DescargarArchivos2(a, t, r, s, n, l, p, u, b) {
    for (var m = "", v = "", f = "", y = s.split("|"), A = n.split("|"), x = (n.indexOf("CON_ESTANDAR"), 0); x &lt; y.length - 1; x++) {
        if ("NULL" != t &amp;&amp; ("" != t || "#" == t || "/" == t) &amp;&amp; "" == v) {
            switch (y[x]) {
                case "olap":
                case "html_din":
                    v += "&lt;img src='/img/ico/icocubo.png' style='width:20px;' alt='' /&gt;|" + t;
                    break;
                default:
                    v += "&lt;img src='/img/ico/icotab.png' style='width:20px;' alt='' /&gt;|" + t;
            }
            x++, paramEsquema &amp;&amp; (v = -1 == t.indexOf("?") ? v + "?Esquema=" + valorParamEsquema : v + "&amp;Esquema=" + valorParamEsquema);
        }
        "" != r &amp;&amp;
            ((T = A[x].split("&amp;")[1]),
            (m =
                m +
                "&lt;div class='row col-md-12' &gt;&lt;div class='col-md-7 justify-content-end'&gt;" +
                ("CON_ESTANDAR" == A[x].split("&amp;")[2]
                    ? "&lt;a href='/app/descarga/ficha.html?tit=" +
                      u +
                      "&amp;ag=" +
                      b +
                      "&amp;f=" +
                      y[x] +
                      "' target='_blank'  data-bs-toggle='tooltip' aria-label='" +
                      (0 == encDomIng ? "ficha de archivo con est\xe1ndar de datos abiertos de " : "file sheet with open data standard of ") +
                      (0 == encDomIng ? a + " abre en nueva pesta\xf1a " : a + " in over window ") +
                      "' &gt;&lt;span class='inegi-icono inegi-info' style='font-size:11pt;'&gt;&lt;/span&gt;&lt;/a&gt; &lt;span  aria-labelledby='da35'  class='inegi-icono inegi-ok-c' &gt;&lt;/span&gt; "
                    : "") +
                "&lt;a aria-label='" +
                (A[x].split("&amp;")[0].indexOf(".zip") &gt; 0 ? (0 == encDomIng ? " descargar zip " : " download in a zip ") : "") +
                a +
                (0 == encDomIng ? " en formato " : " in format ") +
                y[x] +
                ("pdf" == y[x] ? " abre en nueva pesta\xf1a " : "") +
                "' href='" +
                urlNas +
                r +
                A[x].split("&amp;")[0] +
                "' target='_blank'&gt;&lt;img src='/img/ico/ico_" +
                y[x] +
                ".png' alt='" +
                y[x] +
                "' style='max-width: 60px'&gt;&lt;/a&gt;&lt;/div&gt; &lt;!--&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;--&gt;&lt;div class='col-md-5' style='text-align:start'&gt; &lt;span style='font-size:12px; padding-right:4px;'&gt;" +
                T +
                "&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;"));
    }
    if ("" == l)
        "" != v &amp;&amp;
            "" == m &amp;&amp;
            (f =
                "&lt;td role='gridcell' colspan='3' style='text-align:left; white-space:normal;'&gt;&lt;div style='margin-left:" +
                16 * p +
                "px'&gt;&lt;!--&lt;a aria-label='" +
                a +
                (0 == encDomIng ? " en nueva ventana" : " in new window") +
                "' href='" +
                v.split("|")[1] +
                "' target='_blank'&gt;--&gt;" +
                v.split("|")[0] +
                " " +
                a +
                "&lt;!--&lt;/a&gt;--&gt;&lt;/div&gt;&lt;/td&gt;"),
            "" != v &amp;&amp;
                "" != m &amp;&amp;
                (f =
                    "&lt;td role='gridcell' style='text-align:left; white-space:normal;'&gt;&lt;div style='margin-left:" +
                    16 * p +
                    "px'&gt;&lt;!--&lt;a aria-label='" +
                    a +
                    (0 == encDomIng ? " en nueva ventana" : " in new window") +
                    "' href='" +
                    v.split("|")[1] +
                    "' target='_blank'&gt;--&gt;" +
                    v.split("|")[0] +
                    " " +
                    a +
                    "&lt;!--&lt;/a&gt;--&gt;&lt;/div&gt;&lt;/td&gt;&lt;td role='gridcell' style='text-align:right;'&gt;" +
                    m +
                    "&lt;/td&gt;"),
            "" == v &amp;&amp; "" != m &amp;&amp; (f = "&lt;td role='gridcell' style='text-align:left; white-space:normal;'&gt;&lt;div style='margin-left:" + 16 * p + "px'&gt;" + a + "&lt;/div&gt;&lt;/td&gt;&lt;td role='gridcell' style='text-align:right;'&gt;" + m + "&lt;/td&gt;");
    else {
        var T,
            E,
            _ = l.split("|");
        (E = "" != _[0] &amp;&amp; "" == _[1] ? _[0] : "" == _[0] &amp;&amp; "" != _[1] ? _[1] : _[0] + " - " + _[1]),
            "" != v &amp;&amp;
                "" == m &amp;&amp;
                (f =
                    "&lt;td role='gridcell' style=' text-align:left; white-space:normal;'&gt;&lt;div style='margin-left:" +
                    16 * p +
                    "px'&gt;&lt;!--&lt;a href='" +
                    v.split("|")[1] +
                    "' target='_blank'&gt;--&gt;" +
                    v.split("|")[0] +
                    "&lt;!--&lt;/a&gt;--&gt; &lt;a aria-label='" +
                    a +
                    (0 == encDomIng ? " en nueva ventana" : " in new window") +
                    "' href='" +
                    v.split("|")[1] +
                    "' target='_blank'&gt;" +
                    a +
                    "&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td role='gridcell' style='white-space: nowrap;" +
                    (0 == vMostrarThFormato ? "border-right:1px solid #ddd;" : "") +
                    "'&gt;" +
                    E +
                    "&lt;/td&gt;" +
                    (1 == vMostrarThFormato ? "&lt;td&gt;&amp;nbsp;&lt;/td&gt;" : "")),
            "" != v &amp;&amp;
                "" != m &amp;&amp;
                (f =
                    "&lt;td role='gridcell' style='text-align:left; white-space:normal;'&gt;&lt;div style='margin-left:" +
                    16 * p +
                    "px'&gt;&lt;!--&lt;a href='" +
                    v.split("|")[1] +
                    "' target='_blank'&gt;--&gt;" +
                    v.split("|")[0] +
                    "&lt;!--&lt;/a&gt;--&gt; &lt;a aria-label='" +
                    a +
                    (0 == encDomIng ? " en nueva ventana" : " in new window") +
                    "' href='" +
                    v.split("|")[1] +
                    "' target='_blank'&gt;" +
                    a +
                    "&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td role='gridcell' style='white-space: nowrap;'&gt;" +
                    E +
                    "&lt;/td&gt;&lt;td role='gridcell' style='text-align:right;'&gt;" +
                    m +
                    "&lt;/td&gt;"),
            "" == v &amp;&amp;
                "" != m &amp;&amp;
                (f =
                    "&lt;td role='gridcell' style='text-align:left; white-space:normal;'&gt;&lt;div style='margin-left:" +
                    16 * p +
                    "px'&gt;" +
                    a +
                    "&lt;/div&gt;&lt;/td&gt;&lt;td role='gridcell' style='white-space: nowrap;'&gt;" +
                    E +
                    "&lt;/td&gt;&lt;td role='gridcell' style='text-align:end;'&gt;" +
                    m +
                    "&lt;/td&gt;");
    }
    return f;
}
function crearElementoHTML(a, t, r, s, n) {
    var l = document.createElement(a);
    if (("a" == a &amp;&amp; (l.href = r), "" != s &amp;&amp; (l.className = s), 1 != n)) {
        var p = document.createTextNode(t);
        l.appendChild(p);
    } else l.innerHTML = t;
    return l;
}
function crearCookie(a, t, r) {
    var s = new Date();
    s.setTime(s.getTime() + 24 * r * 36e5);
    var n = "expires=" + s.toUTCString();
    document.cookie = a + "=" + t + "; " + n;
}
function obtenerCookie(a) {
    for (var t = a + "=", r = document.cookie.split(";"), s = 0; s &lt; r.length; s++) {
        for (var n = r[s]; " " == n.charAt(0); ) n = n.substring(1);
        if (0 == n.indexOf(t)) return n.substring(t.length, n.length);
    }
    return "";
}
function validarTextoBuscar(a, t) {
    "" != $.trim(document.getElementById("txtBuscar_" + a).value) ? (document.getElementById("btnEliminarFiltroBuscar_" + a).style.display = "") : (document.getElementById("btnEliminarFiltroBuscar_" + a).style.display = "none"),
        13 == (document.all ? t.keyCode : t.which) &amp;&amp; document.getElementById("btnBuscar_" + a).click();
}
function eliminarFiltroBusqueda(a) {
    (document.getElementById("txtBuscar_" + a).value = ""), (document.getElementById("btnEliminarFiltroBuscar_" + a).style.display = "none"), actualizarTablaDescargaArchivos2(a, !1, document.getElementById(a).getAttribute("data-ordenar"));
}
function sustituirEspaciosEnBlanco(a) {
    return a.replace(/\s/g, "_");
}
function procesoDeActualizacion(a, t, r) {
    $("#divSinResultados_" + a).hide(),
        $("#btnDescargar_" + a).hide(),
        r &amp;&amp; 0 == t &amp;&amp; ($("#divLoaderActualizando_" + a).fadeIn("fast"), $("#divTablaDescargaArchivos_" + a).fadeOut("fast"), $("#divResultadosEncontrados_" + a).fadeOut("fast")),
        r || 0 != t || ($("#divLoaderActualizando_" + a).fadeOut("fast"), $("#divTablaDescargaArchivos_" + a).fadeIn("fast"), $("#divResultadosEncontrados_" + a).fadeIn("fast")),
        r || "SIN_DATOS" != t || ($("#divLoaderActualizando_" + a).fadeOut("fast"), $("#divResultadosEncontrados_" + a).fadeIn("fast"), $("#divSinResultados_" + a).show());
}
function aplicarOrdenamiento(a, t) {
    "titulo" == a ? ((ordenar = "titulo"), (document.getElementById("spanOrdenarTitulo_" + t).style.display = "block")) : ((ordenar = "anio"), (document.getElementById("spanOrdenarAnio_" + t).style.display = "block")),
        actualizarTablaDescargaArchivos2(t, !0, a);
}
function aplicarOrdenamiento_event(a, t, r) {
    13 == (document.all ? r.keyCode : r.which) &amp;&amp; aplicarOrdenamiento(a, t);
}
function cambiarPestanasComboBoxMicrodatos(a) {
    switch (a) {
        case "descarga":
            (document.getElementById("descargaTabmicro").className = "tab-pane fade active show"),
                (document.getElementById("pills-desc-tab").className = "tab-pane fade active show"),
                (document.getElementById("pills-desc-tab").style.cursor = "none"),
                (document.getElementById("descargaTabmicro").className = "tab-pane fade show active");
            break;
        case "laboratorioMicrodatos":
            cargarTabsMicrodatos("laboratorioMicrodatos"),
                (document.getElementById("laboratorioMicrodatosTab").className = "tab-pane fade show active"),
                (document.getElementById("pills-serpro-tab").className = "nav-link"),
                (document.getElementById("servicioProcesamientoTab").className = "tab-pane fade"),
                null != document.getElementById("pills-desc-tab") &amp;&amp; (document.getElementById("pills-desc-tab").className = "tab-pane fade"),
                null != document.getElementById("pills-labpro-tab") &amp;&amp; (document.getElementById("pills-labpro-tab").style.cursor = "none"),
                null != document.getElementById("descargaTabmicro") &amp;&amp; (document.getElementById("descargaTabmicro").className = "tab-pane fade");
            break;
        case "procesamientoRemoto":
            cargarTabsMicrodatos("procesamientoRemoto"), (document.getElementById("liProcesamientoRemotoTab").className = "nav-link active"), (document.getElementById("procesamientoRemotoTab").className = "tab-pane fade show active");
            break;
        case "servicioProcesamiento":
            cargarTabsMicrodatos("servicioProcesamiento"),
                (document.getElementById("pills-serpro-tab").className = "nav-link active"),
                (document.getElementById("servicioProcesamientoTab").className = "tab-pane fade show active"),
                (document.getElementById("pills-labpro-tab").className = "nav-link"),
                (document.getElementById("pills-serpro-tab").style.cursor = "none"),
                (document.getElementById("laboratorioMicrodatosTab").className = "tab-pane fade"),
                null != document.getElementById("pills-desc-tab") &amp;&amp; (document.getElementById("pills-desc-tab").className = "tab-pane fade"),
                null != document.getElementById("descargaTabmicro") &amp;&amp; (document.getElementById("descargaTabmicro").className = "tab-pane fade");
    }
}
function generarComponente(a) {
    console.log("este es el par\xe1metro: " + a),
        null == document.getElementById("idiniciodescarga_" + a)
            ? ((document.getElementById(a).innerHTML += "&lt;div id='idiniciodescarga_" + a + "'&gt;&lt;/div&gt;"), console.log("se crea div"), ejecutacomponente(a, 1))
            : console.log("ya existe div");
}
function ejecutacomponente(a, t) {
    if (1 == t)
        var r = 0,
            s = !0,
            n = setInterval(function () {
                if ("function" == typeof $) {
                    clearInterval(n), console.log("Ya cargo");
                    var t,
                        l,
                        p = "link",
                        u = "",
                        b = "",
                        m = "compmediaDescarga";
                    window,
                        (t = document),
                        (l = `/componentes/descargamasiva/js/descargaMasivaV2.min.css?v=${Date.now()}`),
                        document.getElementById(m) || ((u = t.createElement(p)), (b = t.getElementsByTagName(p)[0]), (u.id = m), (u.async = 1), (u.href = l), (u.type = "text/css"), (u.rel = "stylesheet"), b.parentNode.insertBefore(u, b));
                    var v,
                        f,
                        y = "script",
                        A = "",
                        x = "",
                        T = "compProcesamiento";
                    window,
                        (v = document),
                        (f = `/app/microdatos/solicitudmicrodatos/js/servicio_procesamiento2.min.js?v=${Date.now()}`),
                        document.getElementById(T) || ((A = v.createElement(y)), (x = v.getElementsByTagName(y)[0]), (A.id = T), (A.async = 1), (A.src = f), x.parentNode.insertBefore(A, x)),
                        $(window).resize(function (a) {
                            if (991 &gt;= $(window).width()) {
                                var t = $("div[id='Microdatos']").attr("class");
                                if (null != t &amp;&amp; -1 != t.indexOf("active")) {
                                    var r = $(".comboBoxPestanasMicrodatos");
                                    (r.selectedIndex = 0), cambiarPestanasComboBoxMicrodatos(r[0].value);
                                }
                            }
                        }),
                        contruyendoComponente(a),
                        setTimeout(function () {
                            [...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map((a) =&gt; new bootstrap.Tooltip(a));
                        }, 300);
                } else if (s) {
                    var E = document.createElement("SCRIPT");
                    (E.id = "idDescarga"), (E.src = "/lib/jquery/jquery-1.11.2.min.js"), (E.type = "text/javascript"), document.head.appendChild(E), (s = !1);
                }
                r &gt;= 50 &amp;&amp; (clearInterval(n), console.log("No cargo JQuery")), r++;
            }, 200);
}
function contruyendoComponente(a) {
    if (-1 == estatusDM.indexOf(a)) {
        var t = document.getElementById(a),
            r = t.getAttribute("data-tema"),
            s = t.getAttribute("data-subtema"),
            n = t.getAttribute("data-areaGeografica");
        entidadFedVigente = t.getAttribute("data-areaGeografica");
        var l = null == t.getAttribute("data-proyecto") ? "0" : "" != t.getAttribute("data-proyecto") ? t.getAttribute("data-proyecto") : "0",
            p = null != t.getAttribute("data-id") ? ("" != t.getAttribute("data-id") ? t.getAttribute("data-id") : null == t.getAttribute("data-biinegi") ? "0" : "" == t.getAttribute("data-biinegi")) : t.getAttribute("data-biinegi"),
            u = "" == t.getAttribute("data-tipoInformacion") ? "5" : "0" == t.getAttribute("data-tipoInformacion") ? "5" : null == t.getAttribute("data-tipoInformacion") ? "5" : t.getAttribute("data-tipoInformacion"),
            b = null == t.getAttribute("data-periodo") ? "0" : "" == t.getAttribute("data-periodo") ? "0" : t.getAttribute("data-periodo"),
            m = t.getAttribute("data-agrupacion");
        "0" != s &amp;&amp; ((s = p), (p = "0")), t.getAttribute("data-inicio"), (fin = t.getAttribute("data-fin")), t.getAttribute("data-descripcion"), t.getAttribute("data-texto");
        var v = t.getAttribute("data-html"),
            f = t.getAttribute("data-colapsado"),
            y = t.getAttribute("data-ordenar"),
            A = t.getAttribute("data-abrirarbol"),
            x = t.getAttribute("data-datosabiertos"),
            T = !1,
            E = "&lt;ul id='ulPestanasMicrodatos_" + a + "' class='nav sd_nav_pills nav-pills mb-3 ulPestanasMicrodatos' role='tablist'&gt;",
            _ = "&lt;div class='tab-content' style='border:1px solid #ddd;border-top:none;'&gt;",
            I = ((T = !1), document.createElement("label")),
            D = ((T = !1), document.createElement("select")),
            B = l,
            w = "",
            M = "",
            C = "";
        if ((console.log(v), null !== v)) {
            for (var L = v, O = 0; O &lt; L.length; O++) "a" == (M = L[O]) &amp;&amp; "&lt;" == w ? (C = C + M + " tabindex='0'") : (C += M), (w = M);
            v = C;
        }
        (I.className = "visually-hidden comboBoxPestanasMicrodatos"),
            I.setAttribute("for", "cBMicrodatos_" + a),
            (D.id = "cBMicrodatos_" + a),
            (D.className = "form-select comboBoxPestanasMicrodatos"),
            D.setAttribute("onchange", "cambiarPestanasComboBoxMicrodatos(this.value)"),
            (r = null == r ? 0 : r),
            (s = null == s ? 0 : s),
            (n = null == n ? 0 : n),
            (l = null == l ? 0 : l),
            (p = null == p ? 0 : p),
            (u = null == u ? 0 : u),
            (b = null == b ? 0 : b),
            (m = "" == m || null == m ? "" : m),
            (fin = 1e3),
            (A = 1 == (f = null == f || 1 == f ? "collapsed" : "expanded") ? 0 : null == A ? 3 : A),
            (y = null == y ? "titulo" : y),
            (x = null == x ? "0" : x),
            (vMostrarLeyendaDatosAbiertos = !1),
            (paramEsquema =
                "" != (valorParamEsquema = null == (valorParamEsquema = ObtenerValorParametro("Esquema")) ? "" : valorParamEsquema) &amp;&amp;
                ("internetpwww.inegi.org.mx" == ObtenerDominioDesdeIngles() || "desarrollowww.inegi.org.mx" == ObtenerDominioDesdeIngles())),
            t.setAttribute("data-ordenar", y);
        var N = document.createElement("div"),
            P = null != t.getAttribute("data-id") ? ("" != t.getAttribute("data-id") ? t.getAttribute("data-id") : null == t.getAttribute("data-biinegi") ? "0" : "" == t.getAttribute("data-biinegi")) : t.getAttribute("data-biinegi");
        (N.id = "divLoaderActualizandoprincipal_" + a),
            (N.style.width = "100%"),
            (N.style.textAlign = "center"),
            (N.innerHTML = ""),
            (N.innerHTML = '&lt;img src="/img/cargando.gif" alt="Cargando..."&gt;'),
            null == document.getElementById("divLoaderActualizandoprincipal_" + a) &amp;&amp; t.appendChild(N),
            console.log(document.getElementById("divLoaderActualizandoprincipal_" + a)),
            $.ajaxSetup({
                beforeSend: function (a) {
                    try {
                        a.overrideMimeType("text/html; charset=UTF-8");
                    } catch (t) {}
                },
            });
        var z =
            "/app/api/descarga/componente/descargamasiva/lista/areasgeograficaspordisponibilidadarchivos?proyecto=" +
            l +
            "&amp;idBiinegi=" +
            p +
            "&amp;tipoDocto=" +
            u +
            "&amp;anio=" +
            b +
            "&amp;tema=" +
            r +
            "&amp;subtema=" +
            s +
            "&amp;agrupacion=" +
            b64EncodeUnicode("Todas") +
            "&amp;lang=" +
            (0 == encDomIng ? "es" : "en");
        $.ajax({
            url: z,
            dataType: "json",
            success: function (t) {
                var m =
                    "/app/api/descarga/componente/descargamasiva/lista/totalarchivosdescarga?tema=" +
                    r +
                    "&amp;subtema=" +
                    s +
                    "&amp;entidad=" +
                    ((arrayAG = t).length &lt;= 1 ? n : arrayAG[0].idAreaGeografica) +
                    "&amp;proyecto=" +
                    l +
                    "&amp;tipodocto=" +
                    u +
                    "&amp;anio=" +
                    b +
                    "&amp;archivos_desde=1&amp;archivos_hasta=" +
                    fin +
                    "&amp;agrupacion=Todas&amp;id_biinegi=" +
                    p +
                    "&amp;textoBuscar=&amp;ingles=" +
                    (0 == encDomIng ? "0" : "1");
                $.ajax({
                    url: m,
                    dataType: "json",
                    success: function (t) {
                        totalDB = t[0].total;
                        var f = [],
                            w = !!navigator.platform.match(/(Mac|iphone|iPod|iPad)/i);
                        (m =
                            "/app/api/descarga/componente/descargamasiva/lista/obteneragrupacionescom?tema=" +
                            r +
                            "&amp;subtema=" +
                            s +
                            "&amp;proyecto=" +
                            l +
                            "&amp;tipodocto=" +
                            u +
                            "&amp;anio=" +
                            b +
                            "&amp;idBiinegi=" +
                            p +
                            "&amp;lang=" +
                            (0 == encDomIng ? "es" : "en")),
                            $.ajax({
                                url: m,
                                dataType: "json",
                                success: function (t) {
                                    for (iAgrupaciones = 0; iAgrupaciones &lt; t.length; iAgrupaciones++) f.push(t[iAgrupaciones]);
                                    (m =
                                        "/app/api/descarga/componente/descargamasiva/lista/archivoscompaginacion?tema=" +
                                        r +
                                        "&amp;subtema=" +
                                        s +
                                        "&amp;areaGeografica=" +
                                        (arrayAG.length &lt;= 1 ? n : arrayAG[0].idAreaGeografica) +
                                        "&amp;proyecto=" +
                                        l +
                                        "&amp;anio=" +
                                        b +
                                        "&amp;tipodocto=" +
                                        u +
                                        "&amp;agrupacion=" +
                                        b64EncodeUnicode("Todas") +
                                        "&amp;idBiinegi=" +
                                        p +
                                        "&amp;desde=1&amp;hasta=" +
                                        fin +
                                        "&amp;textoBuscar=&amp;ordenar=" +
                                        y +
                                        "&amp;ingles=" +
                                        (0 == encDomIng ? "0" : "1") +
                                        "&amp;datosAbiertos=0"),
                                        $.ajax({
                                            url: m,
                                            dataType: "json",
                                            success: function (t) {
                                                (totalDB = t.length), t.length &gt; 0 &amp;&amp; (T = !0);
                                                var r = "",
                                                    s =
                                                        null == document.getElementById(a).getAttribute("data-proyecto")
                                                            ? "0"
                                                            : "" != document.getElementById(a).getAttribute("data-proyecto")
                                                            ? document.getElementById(a).getAttribute("data-proyecto")
                                                            : "0",
                                                    l =
                                                        null != document.getElementById(a).getAttribute("data-id")
                                                            ? "" != document.getElementById(a).getAttribute("data-id")
                                                                ? document.getElementById(a).getAttribute("data-id")
                                                                : null == document.getElementById(a).getAttribute("data-biinegi")
                                                                ? "0"
                                                                : "" == document.getElementById(a).getAttribute("data-biinegi")
                                                            : null == document.getElementById(a).getAttribute("data-biinegi")
                                                            ? "0"
                                                            : document.getElementById(a).getAttribute("data-biinegi"),
                                                    p = document.getElementById(a).getAttribute("data-subtema");
                                                "0" != p &amp;&amp; ((p = l), (l = "0"));
                                                var m =
                                                    "/app/api/descarga/componente/descargamasiva/descargartodo?subtema=" +
                                                    p +
                                                    "&amp;entidad=" +
                                                    (arrayAG.length &lt;= 1 ? n : arrayAG[0].idAreaGeografica) +
                                                    "&amp;proyecto=" +
                                                    s +
                                                    "&amp;tipodocto=" +
                                                    u +
                                                    "&amp;anio=" +
                                                    b +
                                                    "&amp;agrupacion=Todas&amp;id_biinegi=" +
                                                    l +
                                                    "&amp;textoBuscar=&amp;datosAbiertos=" +
                                                    (null == document.getElementById(a).getAttribute("data-datosabiertos") ? "0" : document.getElementById(a).getAttribute("data-datosabiertos")) +
                                                    "&amp;ingles=" +
                                                    (0 == encDomIng ? "0" : "1");
                                                $.ajax({
                                                    url: m,
                                                    dataType: "json",
                                                    success: function (a) {
                                                        (r = "0" == a ? "0" : "1"), console.log(r);
                                                    },
                                                    error: function (a, t, r) {
                                                        console.log(a);
                                                    },
                                                });
                                                for (var M = 0; M &lt; t.length; M++)
                                                    if ("" != t[M].pathLogico) {
                                                        vMostrarThFormato = !0;
                                                        break;
                                                    }
                                                var C = document.createElement("div"),
                                                    L = "",
                                                    O = ((l = !1), !1);
                                                if (((L += "&lt;form id='filtrosDescarga' onsubmit='event.preventDefault();'&gt;&lt;fieldset class='bcm_fielset'&gt;"), "0" == x)) {
                                                    if (
                                                        ((l = "0" != n &amp;&amp; !(arrayAG.length &lt;= 1)),
                                                        (O = !(f.length &lt;= 1)),
                                                        (l || O) &amp;&amp; (L += "&lt;!--&lt;div class='col-md-12'&gt;--&gt;&lt;legend class='bcm_fielset_legend' style='margin-bottom:0.0rem'&gt;" + (0 == encDomIng ? "Filtros" : "Filters") + "&lt;/legend&gt;"),
                                                        l &amp;&amp; O)
                                                    ) {
                                                        (L += "&lt;div class='row px-3 mb-2'&gt;&lt;div class='col-md-5 col-xs-12'&gt; &lt;label for='selectAgrupacion_" + a + "'&gt;"),
                                                            (L +=
                                                                (0 == encDomIng ? "Grupos" : "Groups") +
                                                                ":&lt;/label&gt;&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;&lt;select  class='form-select' id='selectAgrupacion_" +
                                                                a +
                                                                "' onchange=actualizarAGPorGrupo('" +
                                                                a +
                                                                "')&gt;"),
                                                            (totalResultados = t.length - f.length),
                                                            (L += "&lt;option value='Todas'&gt;" + (0 == encDomIng ? "Todos" : "All") + "&lt;/option&gt;");
                                                        for (var N = 0; N &lt; f.length; N++)
                                                            L +=
                                                                "&lt;option value='" +
                                                                f[N] +
                                                                "'&gt;" +
                                                                (f[N].trim().toLowerCase().indexOf("predefinidos") &gt;= 0
                                                                    ? f[N].trim().toLowerCase().replace("predefinidos", "Tabulados predefinidos")
                                                                    : f[N].trim().toLowerCase().indexOf("predefined") &gt;= 0
                                                                    ? f[N].trim().toLowerCase().replace("predefined", "Predefined tabular")
                                                                    : f[N].trim().toLowerCase().indexOf("interactivos") &gt;= 0
                                                                    ? f[N].trim().toLowerCase().replace("interactivos", "Tabulados interactivos").replace("(cubos)", "") + (f[N].trim().toLowerCase().lastIndexOf("cubos)") &gt; 0 ? "" : " - ")
                                                                    : f[N].trim().indexOf("Descarga") &gt;= 0
                                                                    ? f[N].trim().replace("Descarga", "Tabulados predefinidos")
                                                                    : f[N].trim().indexOf("Download") &gt;= 0
                                                                    ? f[N].trim().replace("Download", "Predefined tabular")
                                                                    : f[N].trim().toLowerCase().indexOf("interactive") &gt;= 0
                                                                    ? f[N].trim().toLowerCase().replace("interactive", "Interactive tabular").replace("(cubes)", "") + (f[N].trim().toLowerCase().lastIndexOf("cubes)") &gt; 0 ? "" : " - ")
                                                                    : f[N].trim().toLowerCase().indexOf("interactive") &gt;= 0
                                                                    ? f[N].trim().toLowerCase().replace("Interactive", "Interactive tabular").replace("(cubes)", "")
                                                                    : (0 == encDomIng ? "Tabulados predefinidos" : "Predefined tabular") + " - " + f[N].trim().toLowerCase()) +
                                                                "&lt;/option&gt;";
                                                        (L += "&lt;/select&gt;&lt;/div&gt;"),
                                                            (L += "&lt;div class='col-md-5 col-xs-12'&gt;&lt;label for='selectAg_" + a + "'&gt;"),
                                                            (L +=
                                                                (0 == encDomIng ? "\xc1rea geogr\xe1fica" : "Geographical area") +
                                                                ":&lt;/label&gt;&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;&lt;select  class='form-select' id='selectAg_" +
                                                                a +
                                                                "'&gt;");
                                                        for (var z = 0; z &lt; arrayAG.length; z++) L += "&lt;option class='notranslate' value='" + arrayAG[z].idAreaGeografica + "'&gt;" + arrayAG[z].nombre + "&lt;/option&gt;";
                                                        (L += "&lt;/select&gt;&lt;/div&gt;"),
                                                            (L +=
                                                                "&lt;div class='col-md-2 col-xs-12' style='text-align: right;'&gt;&lt;!--&lt;p class='slcDivConsultaDescarga' style='white-space: normal;' aria-hidden='true'&gt;&lt;/p&gt;--&gt;&lt;button aria-label='" +
                                                                (0 == encDomIng ? "Consultar" : "Consult") +
                                                                "' class='btn btn-primary btn-inline' style='margin-top: 1.3rem;' id='aceptGroup' onclick=actualizarTablaDescargaArchivos2('" +
                                                                a +
                                                                "',false,'" +
                                                                y +
                                                                "')&gt;" +
                                                                (0 == encDomIng ? "Consultar" : "Consult") +
                                                                "&lt;/button&gt; &lt;/div&gt;");
                                                    }
                                                    if (l &amp;&amp; !O) {
                                                        for (
                                                            L += "&lt;div class='row px-3 mb-2'&gt;&lt;div class='col-md-10 col-xs-12'&gt;&lt;label for='selectAg_" + a + "'&gt;",
                                                                L +=
                                                                    (0 == encDomIng ? "\xc1rea geogr\xe1fica" : "Geographical area") +
                                                                    ":&lt;/label&gt;&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;&lt;select class='form-select'  id='selectAg_" +
                                                                    a +
                                                                    "'&gt;",
                                                                z = 0;
                                                            z &lt; arrayAG.length;
                                                            z++
                                                        )
                                                            L += "&lt;option class='notranslate' value='" + arrayAG[z].idAreaGeografica + "'&gt;" + arrayAG[z].nombre + "&lt;/option&gt;";
                                                        (L += "&lt;/select&gt;&lt;/div&gt;"),
                                                            (L +=
                                                                "&lt;div class='col-md-2 col-xs-12' style='text-align: right;'&gt;&lt;!--&lt;p class='slcDivConsultaDescarga' style='white-space: normal;' aria-hidden='true'&gt;&lt;/p&gt;--&gt;&lt;button aria-label='" +
                                                                (0 == encDomIng ? "Consultar" : "Consult") +
                                                                "' class='btn btn-primary btn-inline' id='aceptGroupTab' onclick=actualizarTablaDescargaArchivos2('" +
                                                                a +
                                                                "',false,'" +
                                                                y +
                                                                "')&gt;" +
                                                                (0 == encDomIng ? "Consultar" : "Consult") +
                                                                "&lt;/button&gt; &lt;/div&gt;&lt;/div&gt;");
                                                    }
                                                    if (!l &amp;&amp; O) {
                                                        for (
                                                            L += "&lt;div class='row px-3 mb-2'&gt;&lt;div class='col-md-10 col-xs-12'&gt; &lt;label for='selectAgrupacion_" + a + "'&gt;",
                                                                L +=
                                                                    (0 == encDomIng ? "Grupos" : "Groups") + ":&lt;/label&gt;&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;&lt;select class='form-select' id='selectAgrupacion_" + a + "'&gt;",
                                                                totalResultados = t.length - f.length,
                                                                L += "&lt;option value='Todas'&gt;" + (0 == encDomIng ? "Todos" : "All") + "&lt;/option&gt;",
                                                                N = 0;
                                                            N &lt; f.length;
                                                            N++
                                                        )
                                                            sustituirEspaciosEnBlanco(t[N].descripcion) != nombreAgrupacion &amp;&amp;
                                                                (L +=
                                                                    "&lt;option value='" +
                                                                    f[N] +
                                                                    "'&gt;" +
                                                                    (f[N].trim().toLowerCase().indexOf("predefinidos") &gt;= 0
                                                                        ? f[N].trim().toLowerCase().replace("predefinidos", "Tabulados predefinidos")
                                                                        : f[N].trim().toLowerCase().indexOf("predefined") &gt;= 0
                                                                        ? f[N].trim().toLowerCase().replace("predefined", "Predefined tabular")
                                                                        : f[N].trim().toLowerCase().indexOf("interactivos") &gt;= 0
                                                                        ? f[N].trim().toLowerCase().replace("interactivos", "Tabulados interactivos").replace("(cubos)", "") +
                                                                          (f[N].trim().toLowerCase().lastIndexOf("cubos)") &gt; 0 ? "" : " - ")
                                                                        : f[N].trim().indexOf("Descarga") &gt;= 0
                                                                        ? f[N].trim().replace("Descarga", "Tabulados predefinidos")
                                                                        : f[N].trim().indexOf("Download") &gt;= 0
                                                                        ? f[N].trim().replace("Download", "Predefined tabular")
                                                                        : f[N].trim().toLowerCase().indexOf("interactive") &gt;= 0
                                                                        ? f[N].trim().toLowerCase().replace("interactive", "Interactive tabular").replace("(cubes)", "") + (f[N].trim().toLowerCase().lastIndexOf("cubes)") &gt; 0 ? "" : " - ")
                                                                        : f[N].trim().toLowerCase().indexOf("interactive") &gt;= 0
                                                                        ? f[N].trim().toLowerCase().replace("Interactive", "Interactive tabular").replace("(cubes)", "")
                                                                        : (0 == encDomIng ? "Tabulados predefinidos" : "Predefined tabular") + " - " + f[N].trim().toLowerCase()) +
                                                                    "&lt;/option&gt;");
                                                        (L += "&lt;/select&gt;&lt;/div&gt;"),
                                                            (L +=
                                                                "&lt;div class='col-md-2 col-xs-12' style='text-align: right;'&gt;&lt;!--&lt;p class='slcDivConsultaDescarga' style='white-space: normal;' aria-hidden='true'&gt;--&gt;&lt;/p&gt;&lt;button aria-label='" +
                                                                (0 == encDomIng ? "Consultar" : "Consult") +
                                                                "' class='btn btn-primary btn-inline' id='aceptGroupMic' onclick=actualizarTablaDescargaArchivos2('" +
                                                                a +
                                                                "',false,'" +
                                                                y +
                                                                "')&gt;" +
                                                                (0 == encDomIng ? "Consultar" : "Consult") +
                                                                "&lt;/button&gt; &lt;/div&gt;&lt;/div&gt;");
                                                    }
                                                    1 == f.length &amp;&amp; arrayAG.length &lt;= 1 &amp;&amp; (L += "&lt;legend class='bcm_fielset_legend' style='margin-bottom:0.0rem'&gt;" + (0 == encDomIng ? "Buscar" : "Search") + "&lt;/legend&gt;"),
                                                        (l || O) &amp;&amp; (L += "&lt;/div&gt;&lt;!--&lt;/div&gt;--&gt;  &lt;/div&gt;&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;&lt;!-- Cierra filtros--&gt;");
                                                    var S = 5 == u ? "validarKeyPress_Tabulados" : "validarKeyPress_Microdatos";
                                                    (L += "&lt;!-- Inicia buscador --&gt;&lt;p style='white-space: normal;' aria-hidden='true'&gt;&lt;/p&gt; &lt;div class='row align-items-end'&gt;&lt;div class='col-md-5'&gt;"),
                                                        (L +=
                                                            "&lt;div class='col-lg-6 input-group' style='flex-wrap:nowrap'&gt;&lt;label for='txtBuscar_" +
                                                            a +
                                                            "' class='visually-hidden'&gt;" +
                                                            (0 == encDomIng ? "Buscar en t\xedtulo" : "Search in title") +
                                                            ":&lt;/label&gt;&lt;div class='input-group'&gt;&lt;input  type='text' id='txtBuscar_" +
                                                            a +
                                                            "' placeholder='" +
                                                            (0 == encDomIng ? "Buscar en t\xedtulo" : "Search in title") +
                                                            "' class='" +
                                                            S +
                                                            " form-control' style='z-index:0' onkeyup=validarTextoBuscar('" +
                                                            a +
                                                            "',event) /&gt;&lt;!--&lt;span class='input-group-btn menubuttons'&gt;&lt;button aria-label='limpiar b\xfasqueda' onclick=eliminarFiltroBusqueda('" +
                                                            a +
                                                            "') class='btn border-0' style='cursor: pointer; display: none;' id='btnEliminarFiltroBuscar_" +
                                                            a +
                                                            "'&gt;--&gt;&lt;button  type='button' id='btnEliminarFiltroBuscar_" +
                                                            a +
                                                            "' aria-label='limpiar b\xfasqueda' class='btn btn-primary' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Eliminar b\xfasqueda' onclick=eliminarFiltroBusqueda('" +
                                                            a +
                                                            "') style='display:none'&gt; &lt;span  class='align-middle inegi-icono inegi-cerrar' aria-hidden='true'  style='cursor: pointer;'&gt;&lt;/span&gt;&lt;/button&gt;&lt;button aria-label='" +
                                                            (0 == encDomIng ? "Buscar" : "Search") +
                                                            "'  id='btnBuscar_" +
                                                            a +
                                                            "' onclick=actualizarTablaDescargaArchivos2('" +
                                                            a +
                                                            "',true,'" +
                                                            y +
                                                            "') class=' btn btn-primary' style='cursor: pointer;'&gt;&lt;!--&lt;span class='inegi-icono inegi-buscar' aria-hidden='true'&gt;&lt;/span&gt;--&gt;" +
                                                            (0 == encDomIng ? "Buscar" : "Search") +
                                                            "&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;!-- Cierra slcDivBuscador--&gt;&lt;/div&gt;&lt;!-- Cierra el col-md-8 --&gt;&lt;div class='col-md text-end col-xs-12' id='divResultadosEncontrados_" +
                                                            a +
                                                            "'  &gt;&lt;div id='btnDescargar_" +
                                                            a +
                                                            "' style='margin-top: 10px;display:none;' &gt;&lt;a href='javascript:void(0);' id='aDescargar_" +
                                                            a +
                                                            "' role='button' aria-expanded='false' tabIndex='0' aria-label='" +
                                                            (0 == encDomIng ? "Descargar todos los archivos en una carpeta zip" : "Download all files in a zip folder") +
                                                            "'  onclick=AbrirDescargaDinamica('" +
                                                            a +
                                                            "') onkeyup=AbrirDescargaDinamica_event('" +
                                                            a +
                                                            "',event)&gt;" +
                                                            (0 == encDomIng ? "Descargar todos los archivos" : "Download all files") +
                                                            " &lt;span class='inegi-icono inegi-descargamasiva'&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class='col-md text-end col-xs-12' aria-label='assertive' aria-atomic='true' aria-relevant='all'&gt;&lt;span id='spanResultadosEncontrados_" +
                                                            a +
                                                            "'&gt;  &lt;span class='text-primary'&gt;" +
                                                            (0 == encDomIng ? "Resultados encontrados" : "Results found") +
                                                            ":&lt;/span&gt;   &lt;span id='spanTotalArchivos_" +
                                                            a +
                                                            "' class='badge bg-sd-gray-150 rounded-pill fw-bolder' &gt;" +
                                                            totalDB +
                                                            "&lt;/span&gt;  &lt;/span&gt;&lt;/div&gt;"),
                                                        (L += "&lt;/div&gt;&lt;/fieldset&gt;&lt;/form&gt;&lt;!-- Cierra input --&gt; &lt;/div&gt;&lt;!-- Cierra buscador --&gt;");
                                                }
                                                "1" == x &amp;&amp;
                                                    (L +=
                                                        "&lt;div class='row align-items-end'&gt;     &lt;div class='col-md-5 col-xs-12'&gt;   &lt;div id='divbusquedadescarga' class='col-lg-6 mx-auto bg-white' style='max-width: 100%;width: 100%;;display:flex'&gt;&lt;label for='txtBuscar_" +
                                                        a +
                                                        "' class='visually-hidden'&gt;Buscar en t\xedtulo:&lt;/label&gt;&lt;div class='input-group'&gt;&lt;input type='text' id='txtBuscar_" +
                                                        a +
                                                        "' class='" +
                                                        S +
                                                        " form-control' style='z-index:0' onkeyup=validarTextoBuscar('" +
                                                        a +
                                                        "',event) /&gt;&lt;!--&lt;span class='input-group-btn menubuttons'&gt;&lt;button aria-label='limpiar b\xfasqueda' onclick=eliminarFiltroBusqueda('" +
                                                        a +
                                                        "') class='btn border-0' style='cursor: pointer; display: none;' id='btnEliminarFiltroBuscar_" +
                                                        a +
                                                        "'&gt;--&gt;&lt;button  type='button' id='btnEliminarFiltroBuscar_" +
                                                        a +
                                                        "' aria-label='limpiar b\xfasqueda' onclick=eliminarFiltroBusqueda('" +
                                                        a +
                                                        "') class='btn btn-primary' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Eliminar b\xfasqueda' style='display:none'&gt;&lt;span  class='align-middle inegi-icono inegi-cerrar' aria-hidden='true' style='cursor: pointer; '&gt;&lt;/span&gt;&lt;/button&gt;&lt;button aria-label='" +
                                                        (0 == encDomIng ? "Buscar" : "Search") +
                                                        "' id='btnBuscar_" +
                                                        a +
                                                        "' onclick=actualizarTablaDescargaArchivos2('" +
                                                        a +
                                                        "',true,'" +
                                                        y +
                                                        "') class='btn btn-primary' style='cursor: pointer;'&gt;&lt;!--&lt;span class='inegi-icono inegi-buscar' aria-hidden='true'&gt;&lt;/span&gt;--&gt;" +
                                                        (0 == encDomIng ? "Buscar" : "Search") +
                                                        "&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;!-- Cierra slcDivBuscador--&gt;&lt;/div&gt;&lt;!-- Cierra el col-md-8 &lt;div class='row'&gt;--&gt;    &lt;div class='col-md text-end col-xs-12' id='divResultadosEncontrados_" +
                                                        a +
                                                        "' aria-label='assertive' aria-atomic='true' aria-relevant='all'&gt;&lt;div id='btnDescargar_" +
                                                        a +
                                                        "' style='margin-top: 10px;display:none;'&gt;&lt;a href='javascript:void(0);' id='aDescargar_" +
                                                        a +
                                                        "' role='button' aria-expanded='false' tabIndex='0' aria-label='" +
                                                        (0 == encDomIng ? "Descargar todos los archivos en una carpeta zip" : "Download all files in a zip folder") +
                                                        "'  onclick=AbrirDescargaDinamica('" +
                                                        a +
                                                        "') onkeyup=AbrirDescargaDinamica_event('" +
                                                        a +
                                                        "',event)&gt;" +
                                                        (0 == encDomIng ? "Descargar todos los archivos" : "Download all files") +
                                                        " &lt;span class='inegi-icono inegi-descargamasiva'&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt;&lt;div class='col-md text-end col-xs-12'&gt; &lt;span id='spanResultadosEncontrados_" +
                                                        a +
                                                        "'&gt;   &lt;span class='text-primary'&gt;" +
                                                        (0 == encDomIng ? "Resultados encontrados" : "Results found") +
                                                        ":&lt;/span&gt; &lt;span id='spanTotalArchivos_" +
                                                        a +
                                                        "' class='badge bg-sd-gray-150 rounded-pill fw-bolder' &gt;" +
                                                        totalDB +
                                                        "&lt;/span&gt;    &lt;/span&gt; &lt;/div&gt;    &lt;!--&lt;/div&gt;--&gt;"),
                                                    (L +=
                                                        '&lt;p style="white-space: normal;" aria-hidden="true"&gt;&lt;/p&gt;&lt;div class="card card-body" id="divDescargar_' +
                                                        a +
                                                        '" style="display: none;"&gt;&lt;span id="cerrarDivDescargar_' +
                                                        a +
                                                        '" tabindex="0" role="button" onclick="CerrarDivDescargar(\'' +
                                                        a +
                                                        "')\" onkeyup=\"CerrarDivDescargar_event('" +
                                                        a +
                                                        '\',event)" class="inegi-icono inegi-cerrar text-end" aria-label="' +
                                                        (0 == encDomIng ? "Cerrar la opci\xf3n de descargar todos los archivos en una carpeta zip" : "Close the option of download all files in a zip folder") +
                                                        '"&gt;&lt;/span&gt;&lt;h3 class="card-title"&gt;' +
                                                        (0 == encDomIng ? "Descargar todos los archivos en una carpeta zip de " : "Download all the files of ") +
                                                        (5 == u ? (0 == encDomIng ? "Tabulados" : "Tabular data") : 4 == u ? (0 == encDomIng ? "Microdatos" : "Microdata") : 0 == encDomIng ? "Datos abiertos" : "Open data") +
                                                        '&lt;/h3&gt;&lt;div class="card-text" style="margin-left:20px;"&gt;' +
                                                        (0 == encDomIng
                                                            ? 'Realiza estos sencillos pasos para continuar con la descarga:&lt;ol&gt;&lt;li&gt;Descarga el archivo &lt;img src="/img/ico/ico_zip.png" alt="ZIP"&gt; (600 KB) oprimiendo el bot\xf3n &lt;span style="font-style: italic;"&gt;Descargar.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Descomprime el contenido del archivo .zip en el cual encontrar\xe1s 3 archivos:&lt;ul style="list-style-type:disc;"&gt;&lt;li&gt;DescargaMasivaApp.exe&lt;/li&gt;&lt;li&gt;DescargaMasivaOD.xml&lt;/li&gt;&lt;li&gt;Leeme.txt&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Ejecuta el archivo DescargaMasivaApp.exe para iniciar autom\xe1ticamente la descarga de los archivos en la ruta que selecciones. Es importante que permanezcas conectado a Internet mientras se lleva a cabo la transferencia.&lt;/li&gt;&lt;/ol&gt;'
                                                            : 'Follow these simple steps to continue with the download:&lt;ol&gt;&lt;li&gt;Download the file &lt;img src="/img/ico/ico_zip.png" alt="ZIP"&gt; (600 KB) by clicking the &lt;span style="font-style: italic;"&gt;Download&lt;/span&gt; button.&lt;/li&gt;&lt;li&gt;Unzip the contents of the .zip file in which you will find 3 files:&lt;ul style="list-style-type:disc;"&gt;&lt;li&gt;DescargaMasivaApp.exe&lt;/li&gt;&lt;li&gt;DescargaMasivaOD.xml&lt;/li&gt;&lt;li&gt;Leeme.txt&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Run the file DescargaMasivaApp.exe to automatically start downloading the files in the path you select. It is important that you stay connected to the Internet while the transfer is taking place.&lt;/li&gt;&lt;/ol&gt;') +
                                                        '&lt;/div&gt;&lt;div style="text-align:center;"&gt;&lt;button type="button" class="btn btn-primary" onclick="IniciarDescargaMasivaApp(\'' +
                                                        a +
                                                        "')\"&gt;" +
                                                        (0 == encDomIng ? "Descargar" : "Download") +
                                                        "&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;");
                                                for (var H = 0; H &lt; t.length; H++)
                                                    if (-1 != t[H].formato.indexOf("CON_ESTANDAR")) {
                                                        L +=
                                                            '&lt;div class="row " id="divConDatosAbiertos_' +
                                                            a +
                                                            '" style="margin-left:0px;"&gt;&lt;div id="da35" class="col-md-12 text-end"&gt;&lt;span class="inegi-icono inegi-ok-c"&gt;&lt;/span&gt; ' +
                                                            (0 == encDomIng ? "Est\xe1ndar de datos abiertos" : "Open data standard") +
                                                            "&lt;/div&gt;&lt;/div&gt;";
                                                        break;
                                                    }
                                                (L +=
                                                    "&lt;div class='row' style='display:none;' id='divLoaderActualizando_" +
                                                    a +
                                                    "'&gt;&lt;div class='col-md-12' style='text-align:center;'&gt; &lt;img src='/img/cargando.gif' alt='Cargando...' /&gt;&lt;/div&gt; &lt;/div&gt;"),
                                                    (L +=
                                                        "&lt;div class='row' style='display:none; margin-top:10px;' id='divSinResultados_" +
                                                        a +
                                                        "'&gt;&lt;div class='col-md-12' style='text-align:left;'&gt;" +
                                                        (0 == encDomIng ? "No se han encontrado resultados para tu b\xfasqueda" : "No results found for your search") +
                                                        ".&lt;/div&gt; &lt;/div&gt;"),
                                                    (C.innerHTML = L);
                                                var G = "",
                                                    F = document.createElement("table");
                                                (F.id = "tblDescargaArchivos_" + a),
                                                    (F.className = "table table-responsive sd_table caption-top "),
                                                    F.setAttribute("rol", "treegrid"),
                                                    F.setAttribute("aria-label", 0 == encDomIng ? "Lista de T\xedtulos" : "List of Titles");
                                                var R = document.createElement("caption");
                                                (R.innerHTML = 0 == encDomIng ? "Lista de T\xedtulos" : "List of Titles"), (R.className = "visually-hidden")/*, F.appendChild(R)*/;
                                                var q = document.createElement("thead");
                                                (q.innerHTML =
                                                    "1" == x
                                                        ? "&lt;tr role='row' tabindex='0' aria-expanded='true' aria-level='1' aria-setsize='2' aria-pointset='1' class='border-start border-bottom border-top'&gt;&lt;th role='row' scope='col' aria-sort='" +
                                                          (1 == l ? "ascending" : "descending") +
                                                          "'&gt;&lt;span aria-label=" +
                                                          (0 == encDomIng ? "Lista de T\xedtulos" : "List of Titles") +
                                                          " tabIndex='0' role='button' aria-expanded='true' id='spanExpandirContraerTodo_" +
                                                          a +
                                                          "' data-treegrid='expandido' class='inegi-menoscirculo' data-bs-toggle='tooltip' title='" +
                                                          (0 == encDomIng ? "Contraer todo" : "Contract all") +
                                                          "' onclick=ExpandirContraerTodo('" +
                                                          a +
                                                          "') onkeypress=ExpandirContraerTodo('" +
                                                          a +
                                                          "')&gt;&lt;/span&gt;" +
                                                          (0 == encDomIng ? "T\xedtulo" : "Title") +
                                                          "&lt;/th&gt;&lt;th role='row' aria-label='Actualizar tabla ordena por periodo ' scope='col' aria-sort='" +
                                                          (1 == l ? "ascending" : "descending") +
                                                          "'&gt;" +
                                                          (0 == encDomIng ? "Periodo" : "Period") +
                                                          "&lt;/th&gt;" +
                                                          (1 == vMostrarThFormato
                                                              ? "&lt;th role='row' scope='col' class='col-md-3'&gt;" +
                                                                (0 == encDomIng ? "Formatos" : "Formats") +
                                                                "&lt;a class='inegi-ayuda' href='/inegi/ayuda_formatos.html' target='_black' style='font-size: 12pt; color: #333; text-decoration:none;' data-traducir-tt='AyudaFormatosDisponibles' data-bs-toggle='tooltip' data-placement='right' title='' data-original-title='" +
                                                                (0 == encDomIng ? "Ayuda de formatos disponibles" : "Help of available formats") +
                                                                "'&gt;&lt;/a&gt;&lt;/th&gt;"
                                                              : "")
                                                        : "titulo" == y || "orden" == y
                                                        ? "&lt;th role='row' scope='col' class='col-md-6' aria-sort='" +
                                                          (1 == l ? "ascending" : "descending") +
                                                          "'&gt;&lt;span aria-label='" +
                                                          (0 == encDomIng ? "Lista de T\xedtulos" : "List of Titles") +
                                                          "' tabIndex='0' role='button' aria-expanded='true' id='spanExpandirContraerTodo_" +
                                                          a +
                                                          "' data-treegrid='expandido' class='inegi-menoscirculo'data-bs-toggle='tooltip' title='" +
                                                          (0 == encDomIng ? "Contraer todo" : "Contract all") +
                                                          "'  onclick=ExpandirContraerTodo('" +
                                                          a +
                                                          "') onkeypress=ExpandirContraerTodo('" +
                                                          a +
                                                          "')&gt;&lt;/span&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('titulo','" +
                                                          a +
                                                          "') style='cursor:pointer;margin-left:3px;'&gt;--&gt;" +
                                                          (0 == encDomIng ? "T\xedtulo" : "Title") +
                                                          "&lt;!--&lt;/span&gt;--&gt;&lt;!-- &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;' id='spanOrdenarTitulo_" +
                                                          a +
                                                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarTitulo_" +
                                                          a +
                                                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por t\xedtulo ascendente' aria-label='ordenar por t\xedtulo ascendente' data-ordenar='titulo' data-ordenarasc='false' onclick=aplicarOrdenamiento('titulo','" +
                                                          a +
                                                          "')  onkeyup=aplicarOrdenamiento_event('titulo','" +
                                                          a +
                                                          "',event) tabindex='0'&gt;&lt;span class='inegi-desc'&gt;&lt;/span&gt;&lt;/button&gt; &lt;/th&gt;&lt;th role='row' scope='col' class='col-md-2' aria-sort='" +
                                                          (1 == l ? "ascending" : "descending") +
                                                          "'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('anio','" +
                                                          a +
                                                          "') style='cursor:pointer;'&gt;--&gt;" +
                                                          (0 == encDomIng ? "Periodo" : "Period") +
                                                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;display:none;' id='spanOrdenarAnio_" +
                                                          a +
                                                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarAnio_" +
                                                          a +
                                                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-ordenar='anio' data-ordenarasc='false' onclick=aplicarOrdenamiento('anio','" +
                                                          a +
                                                          "') onkeyup=aplicarOrdenamiento_event('anio','" +
                                                          a +
                                                          "',event) tabIndex='0'&gt;&lt;span class='inegi-desc'&gt;&lt;/span&gt;&lt;/button&gt;  &lt;/th&gt;" +
                                                          (1 == vMostrarThFormato
                                                              ? "&lt;th role='row' scope='col' class='col-md-4'&gt;" +
                                                                (0 == encDomIng ? "Formatos" : "Formats") +
                                                                "&lt;a class='inegi-ayuda' href='/inegi/ayuda_formatos.html' target='_black' style='font-size: 12pt; color: #333; text-decoration:none;' data-traducir-tt='AyudaFormatosDisponibles' data-bs-toggle='tooltip' data-placement='right' title='' data-original-title='" +
                                                                (0 == encDomIng ? "Ayuda de formatos disponibles" : "Help of available formats") +
                                                                "'&gt;&lt;/a&gt;&lt;/th&gt;"
                                                              : "")
                                                        : "anio" == y
                                                        ? "&lt;th role='row' scope='col' aria-sort='descending'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('titulo','" +
                                                          a +
                                                          "') style='cursor:pointer;'&gt;--&gt;" +
                                                          (0 == encDomIng ? "T\xedtulo" : "Title") +
                                                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-icono inegi-desc' id='spanOrdenarTitulo_" +
                                                          a +
                                                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarTitulo_" +
                                                          a +
                                                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por t\xedtulo ascendente' aria-label='ordenar por t\xedtulo ascendente' data-ordenar='titulo' data-ordenarasc='false' onclick=aplicarOrdenamiento('titulo','" +
                                                          a +
                                                          "') style='cursor:pointer;' onkeyup=aplicarOrdenamiento_event('titulo','" +
                                                          a +
                                                          "',event) tabindex='0'&gt;&lt;span class='inegi-desc'&gt;&lt;/span&gt;&lt;/button&gt; &lt;/th&gt;&lt;th role='row' scope='col' aria-sort='ascending'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('anio','" +
                                                          a +
                                                          "') style='cursor:pointer;'&gt;--&gt;" +
                                                          (0 == encDomIng ? "Periodo" : "Period") +
                                                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;display:block;' id='spanOrdenarAnio_" +
                                                          a +
                                                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarAnio_" +
                                                          a +
                                                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn'  data-ordenar='anio' data-ordenarasc='false' onclick=aplicarOrdenamiento('anio','" +
                                                          a +
                                                          "') onkeyup=aplicarOrdenamiento_event('anio','" +
                                                          a +
                                                          "',event) tabIndex='0'&gt;&lt;span class='inegi-icono inegi-desc'&gt;&lt;/span&gt;&lt;/button&gt;  &lt;/th&gt;" +
                                                          (1 == vMostrarThFormato
                                                              ? "&lt;th role='row' scope='col' class='col-md-3'&gt;" +
                                                                (0 == encDomIng ? "Formatos" : "Formats") +
                                                                "&lt;a class='inegi-ayuda' href='/inegi/ayuda_formatos.html' target='_black' style='font-size: 12pt; color: #333; text-decoration:none;' data-traducir-tt='AyudaFormatosDisponibles' data-bs-toggle='tooltip' data-placement='right' title='' data-original-title='" +
                                                                (0 == encDomIng ? "Ayuda de formatos disponibles" : "Help of available formats") +
                                                                "'&gt;&lt;/a&gt;&lt;/th&gt;"
                                                              : "")
                                                        : "&lt;th role='row' scope='col' aria-sort='descending'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('titulo','" +
                                                          a +
                                                          "') style='cursor:pointer;'&gt;--&gt;" +
                                                          (0 == encDomIng ? "T\xedtulo" : "Title") +
                                                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px; display:none;' id='spanOrdenarTitulo_" +
                                                          a +
                                                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarTitulo_" +
                                                          a +
                                                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por t\xedtulo ascendente' aria-label='ordenar por t\xedtulo ascendente' data-ordenar='titulo' data-ordenarasc='false' onclick=aplicarOrdenamiento('titulo','" +
                                                          a +
                                                          "') onkeyup=aplicarOrdenamiento_event('titulo','" +
                                                          a +
                                                          "',event) tabindex='0'&gt;&lt;span class='inegi-desc'&gt;&lt;/span&gt;&lt;/button&gt; &lt;/th&gt;&lt;th role='row' scope='col' aria-sort='ascending'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('anio','" +
                                                          a +
                                                          "') style='cursor:pointer;'&gt;--&gt;" +
                                                          (0 == encDomIng ? "Periodo" : "Period") +
                                                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;display:none;' id='spanOrdenarAnio_" +
                                                          a +
                                                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarAnio_" +
                                                          a +
                                                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por t\xedtulo ascendente' aria-label='ordenar por t\xedtulo ascendente' data-ordenar='anio' data-ordenarasc='false' onclick=aplicarOrdenamiento('anio','" +
                                                          a +
                                                          "') style='cursor:pointer;' onkeyup=aplicarOrdenamiento_event('anio','" +
                                                          a +
                                                          "',event) tabIndex='0'&gt;&lt;span class='inegi-desc'&gt;&lt;/span&gt;&lt;/button&gt;  &lt;/th&gt;" +
                                                          (1 == vMostrarThFormato
                                                              ? "&lt;th role='row' scope='col' class='col-md-3'&gt;" +
                                                                (0 == encDomIng ? "Formatos" : "Formats") +
                                                                "&lt;a class='inegi-ayuda' href='/inegi/ayuda_formatos.html' target='_black' style='font-size: 12pt; color: #333; text-decoration:none;' data-traducir-tt='AyudaFormatosDisponibles' data-bs-toggle='tooltip' data-placement='right' title='' data-original-title='" +
                                                                (0 == encDomIng ? "Ayuda de formatos disponibles" : "Help of available formats") +
                                                                "'&gt;&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;"
                                                              : "")),
                                                    F.appendChild(q);
                                                var U = document.createElement("tbody");
                                                if (((vTabIndex = 5 == u ? 1809 : 4 == u ? 2924 : 3050), "1" == x))
                                                    for (z = 0; z &lt; t.length; z++) arrayDescargaDatosAbiertos[z] = new TabuladoDescarga(t[z].titulo, t[z].descripcion, "DatosAbiertos", t[z]);
                                                else if (5 == u) for (z = 0; z &lt; t.length; z++) arrayDescargaTabulados[z] = new TabuladoDescarga(t[z].titulo, t[z].descripcion, "Tabulados", t[z]);
                                                else for (z = 0; z &lt; t.length; z++) arrayDescargaMicrodatos[z] = new TabuladoDescarga(t[z].titulo, t[z].descripcion, "Microdatos", t[z]);
                                                for (var V = 1, K = "1" == x ? "DatosAbiertos" : 5 == u ? "Tabulados" : "Microdatos", J = 0; J &lt; t.length; J++) {
                                                    var Y,
                                                        Z = t[J].descripcion;
                                                    Z != G &amp;&amp;
                                                        "Todas" != Z &amp;&amp;
                                                        ((Y = document.createElement("tr")).setAttribute("data-idcontrol", V),
                                                        V++,
                                                        Y.setAttribute("data-arbolnivel", "1"),
                                                        Y.setAttribute("data-agrupacion", Z),
                                                        Y.setAttribute("data-subnievelescargados", "1"),
                                                        Y.setAttribute("data-estatus", "abierto"),
                                                        Y.setAttribute("data-titulopadre", Z),
                                                        Y.setAttribute("data-tipoinformacion", K),
                                                        Y.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                                                        Y.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                                                        Y.setAttribute("tabindex", "0"),
                                                        Y.setAttribute("role", "row"),
                                                        Y.setAttribute("aria-level", "1"),
                                                        Y.setAttribute("aria-setsize", "2"),
                                                        Y.setAttribute("aria-pointset", "1"),
                                                        Y.setAttribute("aria-expanded", !0),
                                                        (Y.style.cursor = "pointer"),
                                                        (Y.innerHTML =
                                                            "&lt;td role='gridcell' colspan='3' style='font-weight:bold;'&gt;  &lt;div style='display:inline-block;'&gt;&lt;span class='inegi-menoscirculo'&gt;&lt;/span&gt; " +
                                                            ("Descarga" == Z || "DatosAbiertos" == Z ? (0 == encDomIng ? "Archivos para descarga" : "Files for download") : Z) +
                                                            "&lt;/div&gt;&lt;/td&gt;"),
                                                        U.appendChild(Y)),
                                                        (G = Z),
                                                        (Y = document.createElement("tr")).setAttribute("data-idcontrol", V),
                                                        V++,
                                                        Y.setAttribute("data-agrupacion", Z),
                                                        Y.setAttribute("data-titulopadre", Z + "|" + t[J].titulo.split("|")[0]),
                                                        Y.setAttribute("data-arbolnivel", "1s" == x ? "1" : "2"),
                                                        Y.setAttribute("aria-level", "1s" == x ? "1" : "2"),
                                                        Y.setAttribute("data-tipoinformacion", K),
                                                        "1" == x
                                                            ? -1 == arrayDescargaDatosAbiertos[J].Titulo.indexOf("|")
                                                                ? (Y.innerHTML = generarTdsEnlaces_DescargarArchivos2(
                                                                      t[J].titulo,
                                                                      t[J].url,
                                                                      t[J].pathLogico,
                                                                      t[J].extension,
                                                                      t[J].formato,
                                                                      t[J].anioInformacion,
                                                                      2,
                                                                      t[J].idArchivo,
                                                                      t[J].idAreaGeografica
                                                                  ))
                                                                : -1 == titulosAgregados.indexOf(t[J].descripcion + "&gt;" + t[J].titulo.split("|")[0]) &amp;&amp;
                                                                  (titulosAgregados.push(t[J].descripcion + "&gt;" + t[J].titulo.split("|")[0]),
                                                                  Y.setAttribute("data-subnievelescargados", "0"),
                                                                  Y.setAttribute("data-estatus", "cerrado"),
                                                                  Y.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                                                                  Y.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                                                                  Y.setAttribute("aria-level", "1s" == x ? "1" : "2"),
                                                                  Y.setAttribute("aria-expanded", "1s" == x ? "true" : "false"),
                                                                  Y.setAttribute("aria-pointset", "7"),
                                                                  Y.setAttribute("aria-setsize", "7"),
                                                                  Y.setAttribute("role", "row"),
                                                                  Y.setAttribute("aria-pointset", "7"),
                                                                  (Y.style.cursor = "pointer"),
                                                                  (Y.innerHTML =
                                                                      "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:16px'&gt;&lt;span tabIndex='0' class='inegi-mascirculo' aria-label='" +
                                                                      t[J].titulo.split("|")[0] +
                                                                      "'&gt;&lt;/span&gt; " +
                                                                      t[J].titulo.split("|")[0] +
                                                                      "&lt;/div&gt;&lt;/td&gt;"))
                                                            : 5 == u
                                                            ? -1 == arrayDescargaTabulados[J].Titulo.indexOf("|")
                                                                ? (Y.innerHTML = generarTdsEnlaces_DescargarArchivos2(
                                                                      t[J].titulo,
                                                                      t[J].url,
                                                                      t[J].pathLogico,
                                                                      t[J].extension,
                                                                      t[J].formato,
                                                                      t[J].anioInformacion,
                                                                      2,
                                                                      t[J].idArchivo,
                                                                      t[J].idAreaGeografica
                                                                  ))
                                                                : -1 == titulosAgregados.indexOf(t[J].descripcion + "&gt;" + t[J].titulo.split("|")[0]) &amp;&amp;
                                                                  (titulosAgregados.push(t[J].descripcion + "&gt;" + t[J].titulo.split("|")[0]),
                                                                  Y.setAttribute("data-subnievelescargados", "0"),
                                                                  Y.setAttribute("data-estatus", "cerrado"),
                                                                  Y.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                                                                  Y.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                                                                  Y.setAttribute("tabIndex", "0"),
                                                                  Y.setAttribute("aria-expanded", "false"),
                                                                  Y.setAttribute("aria-setsize", "7"),
                                                                  Y.setAttribute("role", "row"),
                                                                  Y.setAttribute("aria-pointset", "7"),
                                                                  (Y.style.cursor = "pointer"),
                                                                  (Y.innerHTML =
                                                                      "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:16px'&gt;&lt;span class='inegi-mascirculo'&gt;&lt;/span&gt; " + t[J].titulo.split("|")[0] + "&lt;/div&gt;&lt;/td&gt;"))
                                                            : -1 == arrayDescargaMicrodatos[J].Titulo.indexOf("|")
                                                            ? (Y.innerHTML = generarTdsEnlaces_DescargarArchivos2(
                                                                  t[J].titulo,
                                                                  t[J].url,
                                                                  t[J].pathLogico,
                                                                  t[J].extension,
                                                                  t[J].formato,
                                                                  t[J].anioInformacion,
                                                                  2,
                                                                  t[J].idArchivo,
                                                                  t[J].idAreaGeografica
                                                              ))
                                                            : -1 == titulosAgregados.indexOf(t[J].descripcion + "&gt;" + t[J].titulo.split("|")[0]) &amp;&amp;
                                                              (titulosAgregados.push(t[J].descripcion + "&gt;" + t[J].titulo.split("|")[0]),
                                                              Y.setAttribute("data-subnievelescargados", "0"),
                                                              Y.setAttribute("data-estatus", "cerrado"),
                                                              Y.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                                                              Y.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                                                              Y.setAttribute("tabindex", "0"),
                                                              Y.setAttribute("aria-expanded", "false"),
                                                              Y.setAttribute("aria-setsize", "7"),
                                                              Y.setAttribute("role", "row"),
                                                              Y.setAttribute("aria-pointset", "7"),
                                                              (Y.style.cursor = "pointer"),
                                                              (Y.innerHTML =
                                                                  "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:16px'&gt;&lt;span class='inegi-mascirculo' &gt;&lt;/span&gt; " + t[J].titulo.split("|")[0] + "&lt;/div&gt;&lt;/td&gt;")),
                                                        -1 != t[J].formato.indexOf("CON_ESTANDAR") &amp;&amp; (vMostrarLeyendaDatosAbiertos = !0),
                                                        "" != Y.innerHTML &amp;&amp; U.appendChild(Y);
                                                }
                                                F.appendChild(U);
                                                var Q = document.createElement("div");
                                                (Q.id = "divTablaDescargaArchivos_" + a),
                                                    (Q.style.marginTop = "10px"),
                                                    (Q.className = "table-responsive"),
                                                    (Q.style.border = "none"),
                                                    Q.appendChild(F),
                                                    crearCookie("estatusDM", "" == estatusDM ? a : estatusDM + "," + a, 1);
                                                var W = document.createElement("div");
                                                W.appendChild(C), W.appendChild(Q);
                                                var X = document.createElement("div");
                                                "4" != u
                                                    ? ((document.getElementById(a).className = "p-2"),
                                                      (document.getElementById(a).style.paddingTop = "0px"),
                                                      null != v &amp;&amp; "" != v &amp;&amp; null != v &amp;&amp; "undefined" != v &amp;&amp; (document.getElementById(a).innerHTML = v),
                                                      document.getElementById(a).appendChild(W),
                                                      setTimeout(function () {
                                                          AbrirArbolHastaNNiveles(a, A);
                                                      }, 500))
                                                    : T &amp;&amp;
                                                      ((D.innerHTML += "&lt;option value='descarga' selected='selected'&gt;" + (0 == encDomIng ? "Descarga" : "Download") + "&lt;/option&gt;"),
                                                      (E +=
                                                          '&lt;li id="liDescargaTab" class="nav-item" role="presentation"&gt;&lt;button class="nav-link active" id="pills-desc-tab" data-bs-toggle="pill" aria-controls="descargaTabmicro" data-bs-target="#pills-desc" type="button" aria-controls="pills-desc" aria-selected="true" onclick="activapesDescarga();" style="cursor:none"&gt;' +
                                                          (0 == encDomIng ? "Descarga" : "Download") +
                                                          "&lt;/button&gt;&lt;/li&gt;"),
                                                      ((X = document.createElement("div")).style.width = "100%"),
                                                      (X.innerHTML =
                                                          '&lt;div class="row"&gt;&lt;div class="col-md-12"&gt; &lt;div class=""&gt;&lt;span style="margin-left: 10px; margin-right: 0px; display: none; padding-top: 8px; font-weight:bold"&gt;' +
                                                          (0 == encDomIng ? "Archivos para descarga" : "Files for download") +
                                                          '&lt;/span&gt;&lt;div class="p-2"&gt; ' +
                                                          W.innerHTML +
                                                          " &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;")),
                                                    "4" == u &amp;&amp;
                                                        $.ajax({
                                                            url: "/app/api/descarga/componente/descargamasiva/lista/serviciosmicrodatos?proyecto=" + (null == P ? B : P) + "&amp;periodo=" + b,
                                                            dataType: "json",
                                                            success: function (t) {
                                                                null != t &amp;&amp; "undefined" != t &amp;&amp; 0 != t.length
                                                                    ? (T &amp;&amp;
                                                                          (null != v &amp;&amp; "" != v
                                                                              ? "" == t[0].descripcion
                                                                                  ? (_ +=
                                                                                        '&lt;div role="tabpanel" class="tab-pane fade active show" id="descargaTabmicro" aria-labelledby="pills-desc-tab" tabindex="0"&gt;' + X.innerHTML + "&lt;/div&gt;")
                                                                                  : (_ +=
                                                                                        '&lt;div role="tabpanel" class="tab-pane fade show active" id="descargaTabmicro" aria-labelledby="pills-desc-tab" tabindex="0"&gt;&lt;div class=\'p-2\'&gt;' +
                                                                                        t[0].descripcion +
                                                                                        "&lt;/div&gt;" +
                                                                                        X.innerHTML +
                                                                                        "&lt;/div&gt;")
                                                                              : "" == t[0].descripcion
                                                                              ? (_ += '&lt;div role="tabpanel" class="tab-pane fade active show" id="descargaTabmicro" aria-labelledby="pills-desc-tab" tabindex="0"&gt;' + X.innerHTML + "&lt;/div&gt;")
                                                                              : (_ +=
                                                                                    '&lt;div role="tabpanel" class="tab-pane fade active show " id="descargaTabmicro" aria-labelledby="pills-desc-tab" tabindex="0"&gt;&lt;div class="p-2"&gt;' +
                                                                                    t[0].descripcion +
                                                                                    "&lt;/div&gt;" +
                                                                                    X.innerHTML +
                                                                                    "&lt;/div&gt;")),
                                                                      "1" == t[0].laboratorioMicrodatos &amp;&amp;
                                                                          (T
                                                                              ? ((D.innerHTML +=
                                                                                    "&lt;option value='laboratorioMicrodatos'&gt;" +
                                                                                    (0 == encDomIng ? "Laboratorio de microdatos / Procesamiento remoto" : "Microdata laboratory / Remote processing") +
                                                                                    "&lt;/option&gt;"),
                                                                                (E +=
                                                                                    '&lt;li id="liLaboratorioMicrodatosTab" class="nav-item" role="presentation"&gt;&lt;button id="pills-labpro-tab" class="nav-link" onclick=cargarTabsMicrodatos("laboratorioMicrodatos") data-bs-toggle="pill" data-bs-target="#laboratorioMicrodatosTab" aria-label="' +
                                                                                    (0 == encDomIng ? "Laboratorio de microdatos / Procesamiento remoto" : "Microdata laboratory / Remote processing") +
                                                                                    '" type="button" role="tab" aria-controls="pills-labpro" aria-selected="false"&gt;' +
                                                                                    (0 == encDomIng ? "Laboratorio de microdatos / Procesamiento remoto" : "Microdata laboratory / Remote processing") +
                                                                                    "&lt;/button&gt;&lt;/li&gt;"),
                                                                                (_ += '&lt;div role="tabpanel" class="tab-pane fade" id="laboratorioMicrodatosTab" role="tabpanel" aria-labelledby="pills-labpro-tab" tabindex="0"&gt;&lt;/div&gt;'))
                                                                              : ((D.innerHTML +=
                                                                                    "&lt;option value='laboratorioMicrodatos' selected='selected'&gt;" +
                                                                                    (0 == encDomIng ? "Laboratorio de microdatos / Procesamiento remoto" : "Microdata Lab/Processing service") +
                                                                                    "&lt;/option&gt;"),
                                                                                (E +=
                                                                                    '&lt;li id="liLaboratorioMicrodatosTab" role="presentation" class="nav-item"&gt;&lt;button id="pills-labpro-tab" class="nav-link" onclick=cargarTabsMicrodatos("laboratorioMicrodatos")  aria-controls="laboratorioMicrodatosTab" role="tab"  aria-selected="false"&gt;' +
                                                                                    (0 == encDomIng ? "Laboratorio de microdatos / Procesamiento remoto" : "Microdata Lab/Processing service") +
                                                                                    "&lt;/button&gt;&lt;/li&gt;"),
                                                                                (_ += '&lt;div class="tab-pane fade active show" role="tabpanel" id="laboratorioMicrodatosTab" aria-labelledby="pills-labpro-tab" tabindex="0"&gt;&lt;/div&gt;'))),
                                                                      "1" == t[0].servicioProcesamiento &amp;&amp;
                                                                          ((D.innerHTML += "&lt;option value='servicioProcesamiento'&gt;" + (0 == encDomIng ? "Servicio de procesamiento" : "Processing service") + "&lt;/option&gt;"),
                                                                          (E +=
                                                                              '&lt;li id="liServicioProcesamientoTab" role="presentation" class="nav-item"&gt;&lt;button id="pills-serpro-tab" onclick=cargarTabsMicrodatos("servicioProcesamiento") class="nav-link" aria-controls="servicioProcesamientoTab" role="tab" data-bs-toggle="pill" data-bs-target="#servicioProcesamientoTab" type="button" aria-controls="pills-serpro" aria-selected="false"&gt;' +
                                                                              (0 == encDomIng ? "Servicio de procesamiento" : "Processing service") +
                                                                              "&lt;/button&gt;&lt;/li&gt;"),
                                                                          (_ += '&lt;div role="tabpanel" class="tab-pane fade" id="servicioProcesamientoTab" aria-labelledby="pills-serpro-tab" tabindex="0"&gt;&lt;/div&gt;')))
                                                                    : T &amp;&amp; (_ += '&lt;div role="tabpanel" class="tab-pane active"  id="descargaTabmicro" aria-labelledby="pills-desc-tab" tabindex="0"&gt;' + X.innerHTML + "&lt;/div&gt;");
                                                                var r,
                                                                    s = document.createElement("div");
                                                                (s.id = "iddescargaGlobla"),
                                                                    (s.style.width = "100%"),
                                                                    (s.className = "p-2"),
                                                                    "" != v &amp;&amp; null != v &amp;&amp; null != v &amp;&amp; "undefined" != v &amp;&amp; (v = v.replace("desp", "desp_m")),
                                                                    (r = "" != v &amp;&amp; null != v &amp;&amp; null != v &amp;&amp; "undefined" != v ? "&lt;div style='margin-left: -10px !important;'&gt;" + v + "&lt;/div&gt;" : ""),
                                                                    0 == encDomIng
                                                                        ? (s.innerHTML =
                                                                              '&lt;div &gt;&lt;div style="text-align:justify"&gt;En cumplimiento con lo dispuesto en el &lt;div class="dropdown ddM" style="display:inline"&gt;&lt;a id="dLabel" data-target="#" href="#" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;marco regulatorio&lt;/a&gt;&lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" style="list-style-type:disc;padding-left:35px;text-align:justify;padding-right:15px"&gt;&lt;li&gt;&lt;a aria-label="C\xf3digo de \xe9tica para los integrantes del SNIEG PDF, abre en otra pesta\xf1a" href=" https://sc.inegi.org.mx/repositorioNormateca/Cetica.pdf" target="_blank" style="padding-left:0"&gt;C\xf3digo de \xe9tica para los integrantes del SNIEG &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;!--&lt;li&gt;&lt;a href="https://www.snieg.mx/contenidos/espanol/normatividad/marcojuridico/c%C3%B3digo%20de%20%C3%A9tica.pdf" target="_blank" style="padding-left:0"&gt;C\xf3digo de \xe9tica para los integrantes del Sistema Nacional de Informaci\xf3n Estad\xedstica y Geogr\xe1fica &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;--&gt;&lt;li&gt;&lt;a aria-label="Ficha t\xe9cnica de Ley del Sistema Nacional de Informaci\xf3n Estad\xedstica y Geogr\xe1fica PDF, abre en otra pesta\xf1a" href="https://sc.inegi.org.mx/repositorioNormateca/Lmj2_SNIEG.pdf" target="_blank" style="padding-left:0"&gt;Ley del Sistema Nacional de Informaci\xf3n Estad\xedstica y Geogr\xe1fica &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://sc.inegi.org.mx/repositorioNormateca/Nod_12Dic14.pdf" aria-label="Ficha t\xe9cnica de Norma para el acceso, difusi\xf3n y promoci\xf3n de la informaci\xf3n estad\xedstica y geogr\xe1fica que genera en Instituto Nacional de Estad\xedstica y Geograf\xeda en formato pdf nueva ventana" target="_blank" style="padding-left:0"&gt;Norma para el acceso, difusi\xf3n y promoci\xf3n de la informaci\xf3n estad\xedstica y geogr\xe1fica que genera en Instituto Nacional de Estad\xedstica y Geograf\xeda. &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://sc.inegi.org.mx/repositorioNormateca/RIINEGIMay13.pdf" target="_blank" style="padding-left:0" aria-label="Reglamento interior del Instituto Nacional de Estad\xedstica y Geograf\xeda en formato pdf nueva ventana"&gt;Reglamento interior del Instituto Nacional de Estad\xedstica y Geograf\xeda. &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://sc.inegi.org.mx/repositorioNormateca/Rod_19Jul22.pdf" target="_blank" style="padding-left:0" aria-label="Reglas de operaci\xf3n del Laboratorio de Microdatos en formato pdf nueva ventana"&gt;Reglas de operaci\xf3n del Laboratorio de Microdatos. &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.snieg.mx/Documentos/Normatividad/Vigente/Acuerdo_de_Reglas_para_la_PSPIEG.pdf" target="_blank" style="padding-left:0" aria-label="Reglas para la Prestaci\xf3n del Servicio P\xfablico de Informaci\xf3n Estad\xedstica y Geogr\xe1fica en formato pdf nueva ventana"&gt;Reglas para la Prestaci\xf3n del Servicio P\xfablico de Informaci\xf3n Estad\xedstica y Geogr\xe1fica. &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;span&gt;, el INEGI proporciona varias formas de acceso a los microdatos, as\xed como el archivo descriptor que provee la informaci\xf3n necesaria para el manejo de las bases de datos. Con la finalidad de facilitar la definici\xf3n de su requerimiento, se recomienda consultar la Documentaci\xf3n de este programa estad\xedstico y las otras formas de difusi\xf3n de resultados en Tabulados y Publicaciones.&lt;/span&gt;&lt;div style="white-space: normal;" aria-hidden="true"&gt;&lt;/div&gt;&lt;div style="white-space: normal;" aria-hidden="true"&gt;&lt;/div&gt;' +
                                                                              r +
                                                                              "&lt;/div&gt;&lt;/div&gt;&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;" +
                                                                              I.outerHTML +
                                                                              D.outerHTML +
                                                                              E +
                                                                              "&lt;/ul&gt;" +
                                                                              _ +
                                                                              "&lt;/div&gt;")
                                                                        : (s.innerHTML =
                                                                              '&lt;div &gt;&lt;div style="text-align:justify"&gt;In compliance with the provisions of the &lt;div class="dropdown ddM" style="display:inline"&gt;&lt;a id="dLabel" data-target="#" href="#" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;regulatory framework&lt;/a&gt;&lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" style="list-style-type:disc;padding-left:35px;text-align:justify"&gt;&lt;li&gt;&lt;a href="https://www.snieg.mx/contenidos/espanol/normatividad/marcojuridico/c%C3%B3digo%20de%20%C3%A9tica.pdf" target="_blank" style="padding-left:0"&gt;Ethic code for the National System of Statistical and Geographical Information (SNIEG) members &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.snieg.mx/contenidos/espanol/normatividad/marcojuridico/c%C3%B3digo%20de%20%C3%A9tica.pdf" target="_blank" style="padding-left:0"&gt;Ethic code for the National System of Statistical and Geographical Information members &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://sc.inegi.org.mx/repositorioNormateca/Lmj_SNIEG.pdf" target="_blank" style="padding-left:0"&gt;Law of the National System of Statistical and Geographical Information &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://sc.inegi.org.mx/repositorioNormateca/Nod_12Dic14.pdf" target="_blank" style="padding-left:0"&gt;Regulation for the access, dissemination and promotion of the statistical and geographical information generated by the National Institute of Statistics and Geography &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://sc.inegi.org.mx/repositorioNormateca/RIINEGIMay13.pdf" target="_blank" style="padding-left:0"&gt;Internal Regulation of the National Institute of Statistics and Geography &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://sc.inegi.org.mx/repositorioNormateca/Or_04Abr13.pdf" target="_blank" style="padding-left:0"&gt;Microdata laboratory operational rules &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.snieg.mx/contenidos/espanol/Normatividad/coordinacion/ACUERDO%20de%20Reglas%20para%20la%20PSPIEG.pdf" target="_blank" style="padding-left:0"&gt;Rules for the provision of  the Public Service of Statistical and Geographical Information &lt;span class="inegi-icono inegi-blank"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;span&gt;, the INEGI provides several forms of access to the microdata, as well as the file descriptor that provides the necessary information for the management of the databases. In order to facilitate the definition of your requirement, it is recommended that you consult the Documentation of this statistical program and the other forms of dissemination of results in Tabular data and Publications.&lt;/span&gt;&lt;div style="white-space: normal;" aria-hidden="true"&gt;&lt;/div&gt;&lt;div style="white-space: normal;" aria-hidden="true"&gt;&lt;/div&gt;' +
                                                                              r +
                                                                              "&lt;/div&gt;&lt;/div&gt;&lt;div style='white-space: normal;' aria-hidden='true'&gt;&lt;/div&gt;" +
                                                                              D.outerHTML +
                                                                              E +
                                                                              "&lt;/ul&gt;" +
                                                                              _ +
                                                                              "&lt;/div&gt;"),
                                                                    console.log("a: " + a),
                                                                    console.log("n: " + s),
                                                                    document.getElementById(a).appendChild(s),
                                                                    null != document.getElementById("tblDescargaArchivos_" + a) &amp;&amp;
                                                                        setTimeout(function () {
                                                                            AbrirArbolHastaNNiveles(a, A),
                                                                                $(".inegi-mascirculo").css("color", $(".tituImprimir").css("color")),
                                                                                $(".inegi-menoscirculo").css("color", $(".tituImprimir").css("color")),
                                                                                $(".inegi-buscar").css("color", $(".tituImprimir").css("color"));
                                                                        }, 500),
                                                                    "1" != t[0].laboratorioMicrodatos || T || cargarTabsMicrodatos("laboratorioMicrodatos"),
                                                                    null != document.getElementById("spanTotalArchivos_" + a) &amp;&amp; (document.getElementById("spanTotalArchivos_" + a).innerHTML = totalDB);
                                                            },
                                                            error: function (a, t, r) {
                                                                console.log(a);
                                                            },
                                                        }),
                                                    estatusDM.push(a),
                                                    null != document.getElementById("divLoaderActualizandoprincipal_" + a) &amp;&amp; (document.getElementById("divLoaderActualizandoprincipal_" + a).style.display = "none"),
                                                    setTimeout(function () {
                                                        console.log(r),
                                                            1 == vMostrarThFormato &amp;&amp; $("#btnDescargar_" + a).css("display", "block"),
                                                            1 == w ? $("#btnDescargar_" + a).css("display", "none") : "1" == r ? $("#btnDescargar_" + a).css("display", "block") : $("#btnDescargar_" + a).css("display", "none"),
                                                            $(".desp_m &gt; a").click(function () {
                                                                $(this).parent().children("ul").slideToggle();
                                                            }),
                                                            $(".inegi-mascirculo").css("color", $(".tituImprimir").css("color")),
                                                            $(".inegi-menoscirculo").css("color", $(".tituImprimir").css("color")),
                                                            $(".inegi-buscar").css("color", $(".tituImprimir").css("color"));
                                                    }, 500);
                                            },
                                            error: function (a, t, r) {
                                                console.log(a);
                                            },
                                        });
                                },
                                error: function (a, t, r) {
                                    console.log(a);
                                },
                            });
                    },
                    error: function (a, t, r) {
                        console.log(a);
                    },
                });
            },
            error: function (a, t, r) {
                console.log(a);
            },
        });
    }
}
function activapesDescarga() {
    (document.getElementById("descargaTabmicro").className = "tab-pane fade show active"),
        null != document.getElementById("pills-desc-tab") &amp;&amp; (document.getElementById("pills-desc-tab").style.cursor = "none"),
        null != document.getElementById("pills-labpro-tab") &amp;&amp; (document.getElementById("pills-labpro-tab").style.cursor = "pointer"),
        null != document.getElementById("pills-serpro-tab") &amp;&amp; (document.getElementById("pills-serpro-tab").style.cursor = "pointer");
}
function actualizarTablaDescargaArchivos2(a, t, r) {
    var s = document.getElementById(a),
        n = s.getAttribute("data-ordenar"),
        l =
            null == document.getElementById("spanOrdenar" + ("titulo" == n ? "Titulo" : "orden" == n ? "Titulo" : n) + "_" + ("DMDA" == a ? "descargaMasiva" : a))
                ? "0"
                : document.getElementById("spanOrdenar" + ("titulo" == n ? "Titulo" : "orden" == n ? "Titulo" : n) + "_" + ("DMDA" == a ? "descargaMasiva" : a)).getAttribute("data-ordenarasc");
    (l = "false" == l ? "1" : "0"),
        (g = s.getAttribute("data-tema")),
        (c = s.getAttribute("data-subtema")),
        (h = null == s.getAttribute("data-proyecto") ? "0" : "" != s.getAttribute("data-proyecto") ? s.getAttribute("data-proyecto") : "0"),
        (d = null != s.getAttribute("data-id") ? ("" != s.getAttribute("data-id") ? s.getAttribute("data-id") : null == s.getAttribute("data-biinegi") ? "0" : "" == s.getAttribute("data-biinegi")) : s.getAttribute("data-biinegi")),
        (e = s.getAttribute("data-tipoInformacion")),
        (i = null == s.getAttribute("data-periodo") ? "0" : "" == s.getAttribute("data-periodo") ? "0" : s.getAttribute("data-periodo")),
        (k = s.getAttribute("data-colapsado")),
        (o = r),
        (j = s.getAttribute("data-datosabiertos")),
        "0" != c &amp;&amp; ((c = d), (d = "0")),
        (vMostrarThFormato = !1);
    var p = 1 == t ? document.getElementById("txtBuscar_" + a).value : "" != document.getElementById("txtBuscar_" + a).value ? document.getElementById("txtBuscar_" + a).value : "";
    t || "" != p || (document.getElementById("txtBuscar_" + a).value = "");
    var u =
            1 == t
                ? null != document.getElementById("selectAg_" + a)
                    ? document.getElementById("selectAg_" + a).value
                    : s.getAttribute("data-areaGeografica")
                : "" != document.getElementById("txtBuscar_" + a).value
                ? "0"
                : null != document.getElementById("selectAg_" + a)
                ? document.getElementById("selectAg_" + a).value
                : s.getAttribute("data-areaGeografica"),
        b = 1 == t ? "Todas" : null != document.getElementById("selectAgrupacion_" + a) ? document.getElementById("selectAgrupacion_" + a).value : "Todas",
        m = 5 == e ? "Tabulados" : "Microdatos";
    (j = null == j || null == j ? "0" : j),
        (g = null == g ? 0 : g),
        (c = null == c ? 0 : c),
        (h = null == h ? 0 : h),
        (d = null == d ? 0 : d),
        (e = null == e ? 0 : e),
        (i = null == i ? 0 : i),
        (k = null == k || 1 == k ? "collapsed" : "expanded"),
        procesoDeActualizacion(a, !1, !0),
        $.ajaxSetup({
            beforeSend: function (a) {
                try {
                    a.overrideMimeType("text/html; charset=UTF-8");
                } catch (t) {}
            },
        }),
        (url =
            "/app/api/descarga/componente/descargamasiva/lista/archivoscompaginacion?tema=" +
            g +
            "&amp;subtema=" +
            c +
            "&amp;areaGeografica=" +
            (null == u ? "0" : u) +
            "&amp;proyecto=" +
            h +
            "&amp;anio=" +
            i +
            "&amp;tipodocto=" +
            e +
            "&amp;agrupacion=" +
            b64EncodeUnicode(b) +
            "&amp;idBiinegi=" +
            d +
            "&amp;desde=1&amp;hasta=1000&amp;textoBuscar=" +
            b64EncodeUnicode(p) +
            "&amp;ordenar=" +
            o +
            "&amp;ingles=" +
            (0 == encDomIng ? "0" : "1") +
            "&amp;datosAbiertos=0"),
        $.ajax({
            url: url,
            dataType: "json",
            success: function (r) {
                totalDB = r.length;
                var s = "",
                    n = 1 == t ? "Todas" : null != document.getElementById("selectAgrupacion_" + a) ? document.getElementById("selectAgrupacion_" + a).value : "Todas",
                    u = null == document.getElementById(a).getAttribute("data-proyecto") ? "0" : "" != document.getElementById(a).getAttribute("data-proyecto") ? document.getElementById(a).getAttribute("data-proyecto") : "0",
                    b = null == document.getElementById(a).getAttribute("data-periodo") ? "0" : "" == document.getElementById(a).getAttribute("data-periodo") ? "0" : document.getElementById(a).getAttribute("data-periodo"),
                    v =
                        null != document.getElementById(a).getAttribute("data-id")
                            ? "" != document.getElementById(a).getAttribute("data-id")
                                ? document.getElementById(a).getAttribute("data-id")
                                : null == document.getElementById(a).getAttribute("data-biinegi")
                                ? "0"
                                : "" == document.getElementById(a).getAttribute("data-biinegi")
                            : null == document.getElementById(a).getAttribute("data-biinegi")
                            ? "0"
                            : document.getElementById(a).getAttribute("data-biinegi"),
                    f = document.getElementById(a).getAttribute("data-subtema");
                "0" != f &amp;&amp; ((f = v), (v = "0"));
                var y =
                    "/app/api/descarga/componente/descargamasiva/descargartodo?subtema=" +
                    f +
                    "&amp;entidad=" +
                    (null == T ? "0" : T) +
                    "&amp;proyecto=" +
                    u +
                    "&amp;tipodocto=" +
                    e +
                    "&amp;anio=" +
                    b +
                    "&amp;agrupacion=" +
                    n +
                    "&amp;id_biinegi=" +
                    v +
                    "&amp;textoBuscar=&amp;datosAbiertos=0&amp;ingles=" +
                    (0 == encDomIng ? "0" : "1");
                $.ajax({
                    url: y,
                    dataType: "json",
                    success: function (a) {
                        (s = "0" == a ? "0" : "1"), console.log(s);
                    },
                    error: function (a, t, r) {
                        console.log(a);
                    },
                });
                for (var A, x, v = 0; v &lt; r.length; v++)
                    if ("" != r[v].pathLogico) {
                        vMostrarThFormato = !0;
                        break;
                    }
                var T = "",
                    E = document.createElement("table");
                (E.id = "tblDescargaArchivos_" + a), (E.className = "table table-responsive sd_table"), E.setAttribute("rol", "treegrid"), E.setAttribute("aria-label", 0 == encDomIng ? "Lista de T\xedtulos" : "List of Titles");
                var _ = document.createElement("thead");
                (_.innerHTML =
                    "titulo" == o || "orden" == o
                        ? "&lt;tr role='row' tabindex='0' aria-expanded='true' aria-level='1' aria-setsize='2' aria-pointset='1' class='border-start border-bottom border-top'&gt;&lt;th role='row' scope='col' aria-sort='" +
                          (1 == l ? "ascending" : "descending") +
                          "'&gt;&lt;span tabIndex='0' aria-expanded='true' id='spanExpandirContraerTodo_" +
                          a +
                          "' data-treegrid='colapsado' class='inegi-mascirculo' style='cursor:pointer;margin-left:-9px;' data-bs-toggle='tooltip' title='" +
                          (0 == encDomIng ? "Expandir todo" : "Expand all") +
                          "' onclick=ExpandirContraerTodo('" +
                          a +
                          "') onkeypress=ExpandirContraerTodo('" +
                          a +
                          "')&gt;&lt;/span&gt;&lt;!--&amp;nbsp;&lt;span onclick=aplicarOrdenamiento('titulo','" +
                          a +
                          "') style='cursor:pointer;'&gt;--&gt;" +
                          (0 == encDomIng ? "T\xedtulo" : "Title") +
                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;' id='spanOrdenarTitulo_" +
                          a +
                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarTitulo_" +
                          a +
                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por titulo' aria-label='ordenar por titulo' data-ordenar='titulo' data-ordenarasc='" +
                          (1 == l ? "true" : "false") +
                          "' onclick=aplicarOrdenamiento('titulo','" +
                          a +
                          "') onkeyup=aplicarOrdenamiento_event('titulo','" +
                          a +
                          "',event)' tabindex='0'&gt;&lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "'&gt;&lt;/span&gt;&lt;/button&gt; &lt;/th&gt;&lt;th role='row' scope='col' aria-sort='" +
                          (1 == l ? "ascending" : "descending") +
                          "'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('anio','" +
                          a +
                          "') style='cursor:pointer;'&gt;--&gt;" +
                          (0 == encDomIng ? "Periodo" : "Period") +
                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;display:none;' id='spanOrdenarAnio_" +
                          a +
                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarAnio_" +
                          a +
                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por titulo' aria-label='ordenar por titulo' data-ordenar='anio' data-ordenarasc='" +
                          (1 == l ? "true" : "false") +
                          "' onclick=aplicarOrdenamiento('anio','" +
                          a +
                          "') onkeyup=aplicarOrdenamiento_event('anio','" +
                          a +
                          "',event) tabIndex='0'&gt;&lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "'&gt;&lt;/span&gt;&lt;/button&gt;  &lt;/th&gt;" +
                          (1 == vMostrarThFormato
                              ? "&lt;th role='row' scope='col' class='col-md-3'&gt;" +
                                (0 == encDomIng ? "Formatos" : "Formats") +
                                "&lt;a class='inegi-ayuda' href='/inegi/ayuda_formatos.html' target='_black' style='font-size: 12pt; color: #333; text-decoration:none;' data-traducir-tt='AyudaFormatosDisponibles' data-bs-toggle='tooltip' data-placement='right' title='' data-original-title='" +
                                (0 == encDomIng ? "Ayuda de formatos disponibles" : "Help of available formats") +
                                "'&gt;&lt;/a&gt;&lt;/th&gt;"
                              : "")
                        : "anio" == o
                        ? "&lt;th role='row' role='row' scope='col' class='col-md-6' aria-sort='" +
                          (1 == l ? "ascending" : "descending") +
                          "'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('titulo','" +
                          a +
                          "') style='cursor:pointer;'&gt;--&gt;" +
                          (0 == encDomIng ? "T\xedtulo" : "Title") +
                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "' style='float: right; font-size: 14px; display:none;' id='spanOrdenarTitulo_" +
                          a +
                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarTitulo_" +
                          a +
                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por titulo' aria-label='ordenar por titulo' data-ordenar='titulo' data-ordenarasc='" +
                          (1 == l ? "true" : "false") +
                          "' onclick=aplicarOrdenamiento('titulo','" +
                          a +
                          "') onkeyup=aplicarOrdenamiento_event('titulo','" +
                          a +
                          "',event) tabindex='0'&gt;&lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "'&gt;&lt;/span&gt;&lt;/button&gt; &lt;/th&gt;&lt;th role='row' scope='col' class='col-md-2' aria-sort='" +
                          (1 == l ? "ascending" : "descending") +
                          "'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('anio','" +
                          a +
                          "') style='cursor:pointer;'&gt;--&gt;" +
                          (0 == encDomIng ? "Periodo" : "Period") +
                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;display:block;' id='spanOrdenarAnio_" +
                          a +
                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarAnio_" +
                          a +
                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Actualizar tabla ordenar por titulo' aria-label='ordenar por titulo' data-ordenar='a\xf1o' data-ordenarasc='" +
                          (1 == l ? "true" : "false") +
                          "' onclick=aplicarOrdenamiento('anio','" +
                          a +
                          "') onkeyup=aplicarOrdenamiento_event('anio','" +
                          a +
                          "',event) tabIndex='0'&gt;&lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "'&gt;&lt;/span&gt;&lt;/button&gt;  &lt;/th&gt;" +
                          (1 == vMostrarThFormato
                              ? "&lt;th role='row' scope='col' class='col-md-4'&gt;" +
                                (0 == encDomIng ? "Formatos" : "Formats") +
                                "&lt;a class='inegi-ayuda' href='/inegi/ayuda_formatos.html' target='_black' style='font-size: 12pt; color: #333; text-decoration:none;' data-traducir-tt='AyudaFormatosDisponibles' data-bs-toggle='tooltip' data-placement='right' title='' data-original-title='" +
                                (0 == encDomIng ? "Ayuda de formatos disponibles" : "Help of available formats") +
                                "'&gt;&lt;/a&gt;&lt;/th&gt;"
                              : "")
                        : "&lt;th scope='col' aria-sort='" +
                          (1 == l ? "ascending" : "descending") +
                          "'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('titulo','" +
                          a +
                          "') style='cursor:pointer;'&gt;--&gt;" +
                          (0 == encDomIng ? "T\xedtulo" : "Title") +
                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "' style='float: right; font-size: 14px; display:none;' id='spanOrdenarTitulo_" +
                          a +
                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarTitulo_" +
                          a +
                          "' class='btn btn-sm btn-outline-dark p-0 ms-1 dmc_header_btn' data-ordenar='titulo' data-ordenarasc='" +
                          (1 == l ? "true" : "false") +
                          "' onclick=aplicarOrdenamiento('titulo','" +
                          a +
                          "') onkeyup=aplicarOrdenamiento_event('titulo','" +
                          a +
                          "',event) aria-label='Actualizar tabla ordenar por t\xedtulo ascendente' aria-label='ordenar por t\xedtulo ascendente' tabindex='0'&gt;&lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "'&gt;&lt;/span&gt;&lt;/button&gt; &lt;/th&gt;&lt;th role='row' scope='col' aria-sort='" +
                          (1 == l ? "ascending" : "descending") +
                          "'&gt;&lt;!--&lt;span onclick=aplicarOrdenamiento('anio','" +
                          a +
                          "') style='cursor:pointer;'&gt;--&gt;" +
                          (0 == encDomIng ? "Periodo" : "Period") +
                          "&lt;!--&lt;/span&gt; &lt;span class='inegi-sort-des' style='float: right; font-size: 14px;display:none;' id='spanOrdenarAnio_" +
                          a +
                          "'&gt;&lt;/span&gt;--&gt;&lt;button id='spanOrdenarAnio_" +
                          a +
                          "' class= data-ordenar='anio' data-ordenarasc='" +
                          (1 == l ? "true" : "false") +
                          "' onclick=aplicarOrdenamiento('anio','" +
                          a +
                          "') onkeyup=aplicarOrdenamiento_event('anio','" +
                          a +
                          "',event) tabIndex='0'&gt;&lt;span class='inegi-" +
                          (1 == l ? "asc" : "desc") +
                          "'&gt;&lt;/span&gt;&lt;/button&gt;  &lt;/th&gt;" +
                          (1 == vMostrarThFormato
                              ? "&lt;th role='row' role='row' scope='col' class='col-md-3'&gt;" +
                                (0 == encDomIng ? "Formatos" : "Formats") +
                                "&lt;a class='inegi-ayuda' href='/inegi/ayuda_formatos.html' target='_black' style='font-size: 12pt; color: #333; text-decoration:none;' data-traducir-tt='AyudaFormatosDisponibles' data-bs-toggle='tooltip' data-placement='right' title='' data-original-title='" +
                                (0 == encDomIng ? "Ayuda de formatos disponibles" : "Help of available formats") +
                                "'&gt;&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;"
                              : "")),
                    E.appendChild(_);
                var I = document.createElement("tbody");
                if (((vTabIndex = 5 == e ? 1809 : 5 == e ? 2924 : 3050), (titulosAgregados = []), 5 == e)) {
                    arrayDescargaTabulados = [];
                    for (var u = 0; u &lt; r.length; u++) arrayDescargaTabulados[u] = new TabuladoDescarga(r[u].titulo, r[u].descripcion, "Tabulados", r[u]);
                } else for (arrayDescargaMicrodatos = [], u = 0; u &lt; r.length; u++) arrayDescargaMicrodatos[u] = new TabuladoDescarga(r[u].titulo, r[u].descripcion, "Microdatos", r[u]);
                var b = 1;
                if (5 == e)
                    for (var D = 0; D &lt; r.length; D++)
                        (A = r[D].descripcion) != T &amp;&amp;
                            "Todas" != A &amp;&amp;
                            ((x = document.createElement("tr")).setAttribute("data-idcontrol", b),
                            b++,
                            x.setAttribute("data-arbolnivel", "1"),
                            x.setAttribute("data-agrupacion", A),
                            x.setAttribute("data-subnievelescargados", "1"),
                            x.setAttribute("data-estatus", "abierto"),
                            x.setAttribute("data-titulopadre", A),
                            x.setAttribute("data-tipoinformacion", m),
                            x.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                            x.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                            x.setAttribute("aria-label", "Descarga" == A || "DatosAbiertos" == A ? (0 == encDomIng ? "Archivos para descarga" : "Files for download") : A),
                            x.setAttribute("aria-expanded", "true"),
                            x.setAttribute("tabindex", "0"),
                            x.setAttribute("role", "row"),
                            x.setAttribute("aria-level", "1"),
                            x.setAttribute("aria-setsize", "2"),
                            x.setAttribute("aria-pointset", "1"),
                            (x.style.cursor = "pointer"),
                            (x.innerHTML =
                                "&lt;td role='gridcell' colspan='3' style='font-weight:bold;'&gt;  &lt;div style='display:inline-block;'&gt;&lt;span tabindex='0' class='inegi-menoscirculo' aria-label='" +
                                ("Descarga" == A || "DatosAbiertos" == A ? (0 == encDomIng ? "Archivos para descarga" : "Files for download") : A) +
                                "'&gt;&lt;/span&gt; " +
                                ("Descarga" == A || "DatosAbiertos" == A ? (0 == encDomIng ? "Archivos para descarga" : "Files for download") : A) +
                                "&lt;/div&gt;&lt;/td&gt;"),
                            I.appendChild(x)),
                            (T = A),
                            (x = document.createElement("tr")).setAttribute("data-idcontrol", b),
                            b++,
                            x.setAttribute("data-agrupacion", A),
                            x.setAttribute("data-titulopadre", A + "|" + r[D].titulo.split("|")[0]),
                            x.setAttribute("data-arbolnivel", "2"),
                            x.setAttribute("data-tipoinformacion", m),
                            -1 == arrayDescargaTabulados[D].Titulo.indexOf("|")
                                ? (x.innerHTML = generarTdsEnlaces_DescargarArchivos2(r[D].titulo, r[D].url, r[D].pathLogico, r[D].extension, r[D].formato, r[D].anioInformacion, 2, r[D].idArchivo, r[D].idAreaGeografica))
                                : -1 == titulosAgregados.indexOf(r[D].descripcion + "&gt;" + r[D].titulo.split("|")[0]) &amp;&amp;
                                  (titulosAgregados.push(r[D].descripcion + "&gt;" + r[D].titulo.split("|")[0]),
                                  x.setAttribute("data-subnievelescargados", "0"),
                                  x.setAttribute("data-estatus", "cerrado"),
                                  x.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                                  x.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                                  x.setAttribute("aria-label", "Lista de " + r[D].titulo.split("|")[0]),
                                  x.setAttribute("aria-expanded", "false"),
                                  x.setAttribute("tabindex", "-1"),
                                  x.setAttribute("role", "row"),
                                  x.setAttribute("aria-setsize", "7"),
                                  x.setAttribute("aria-pointset", "1"),
                                  (x.style.cursor = "pointer"),
                                  (x.innerHTML = "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:16px'&gt;&lt;span class='inegi-mascirculo'&gt;&lt;/span&gt; " + r[D].titulo.split("|")[0] + "&lt;/div&gt;&lt;/td&gt;")),
                            "" != x.innerHTML &amp;&amp; I.appendChild(x);
                else
                    for (D = 0; D &lt; r.length; D++)
                        (A = r[D].descripcion) != T &amp;&amp;
                            "Todas" != A &amp;&amp;
                            ((x = document.createElement("tr")).setAttribute("data-idcontrol", b),
                            b++,
                            x.setAttribute("data-arbolnivel", "1"),
                            x.setAttribute("data-agrupacion", A),
                            x.setAttribute("data-subnievelescargados", "1"),
                            x.setAttribute("data-estatus", "abierto"),
                            x.setAttribute("data-titulopadre", A),
                            x.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                            x.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                            x.setAttribute("aria-label", "Descarga" == A || "DatosAbiertos" == A ? (0 == encDomIng ? "Archivos para descarga" : "Files for download") : A),
                            x.setAttribute("aria-expanded", "true"),
                            x.setAttribute("data-tipoinformacion", m),
                            x.setAttribute("tabindex", "0"),
                            x.setAttribute("role", "row"),
                            x.setAttribute("aria-level", "1"),
                            x.setAttribute("aria-setsize", "2"),
                            x.setAttribute("aria-pointset", "1"),
                            (x.style.cursor = "pointer"),
                            (x.innerHTML =
                                "&lt;td role='gridcell' colspan='3' style='font-weight:bold;'&gt;  &lt;div style='display:inline-block;'&gt;&lt;span class='inegi-menoscirculo' aria-label='" +
                                ("Descarga" == A || "DatosAbiertos" == A ? (0 == encDomIng ? "Archivos para descarga" : "Files for download") : A) +
                                "'&gt;&lt;/span&gt; " +
                                ("Descarga" == A || "DatosAbiertos" == A ? (0 == encDomIng ? "Archivos para descarga" : "Files for download") : A) +
                                "&lt;/div&gt;&lt;/td&gt;"),
                            I.appendChild(x)),
                            (T = A),
                            (x = document.createElement("tr")).setAttribute("data-idcontrol", b),
                            b++,
                            x.setAttribute("data-agrupacion", A),
                            x.setAttribute("data-titulopadre", A + "|" + r[D].titulo.split("|")[0]),
                            x.setAttribute("data-arbolnivel", "2"),
                            x.setAttribute("data-tipoinformacion", m),
                            -1 == arrayDescargaMicrodatos[D].Titulo.indexOf("|")
                                ? (x.innerHTML = generarTdsEnlaces_DescargarArchivos2(r[D].titulo, r[D].url, r[D].pathLogico, r[D].extension, r[D].formato, r[D].anioInformacion, 2, r[D].idArchivo, r[D].idAreaGeografica))
                                : -1 == titulosAgregados.indexOf(r[D].descripcion + "&gt;" + r[D].titulo.split("|")[0]) &amp;&amp;
                                  (titulosAgregados.push(r[D].descripcion + "&gt;" + r[D].titulo.split("|")[0]),
                                  x.setAttribute("data-subnievelescargados", "0"),
                                  x.setAttribute("data-estatus", "cerrado"),
                                  x.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                                  x.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                                  x.setAttribute("aria-expanded", "false"),
                                  x.setAttribute("aria-expanded", "false"),
                                  x.setAttribute("tabindex", "-1"),
                                  x.setAttribute("role", "row"),
                                  x.setAttribute("aria-setsize", "7"),
                                  x.setAttribute("aria-pointset", "1"),
                                  (x.style.cursor = "pointer"),
                                  (x.innerHTML = "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:16px'&gt;&lt;span class='inegi-mascirculo'&gt;&lt;/span&gt; " + r[D].titulo.split("|")[0] + "&lt;/div&gt;&lt;/td&gt;")),
                            "" != x.innerHTML &amp;&amp; I.appendChild(x);
                E.appendChild(I);
                var n = document.createElement("div");
                (n.id = "divTablaDescargaArchivos_" + a),
                    (n.style.marginTop = "10px"),
                    n.appendChild(E),
                    r.length &gt; 0
                        ? ((document.getElementById("divTablaDescargaArchivos_" + a).innerHTML = ""),
                          (document.getElementById("divTablaDescargaArchivos_" + a).innerHTML = E.outerHTML),
                          null != document.getElementById("spanTotalArchivos_" + a) &amp;&amp; (document.getElementById("spanTotalArchivos_" + a).innerHTML = totalDB),
                          procesoDeActualizacion(a, !1, !1))
                        : (null != document.getElementById("spanTotalArchivos_" + a) &amp;&amp; (document.getElementById("spanTotalArchivos_" + a).innerHTML = totalDB), procesoDeActualizacion(a, "SIN_DATOS", !1)),
                    document.getElementById("spanResultadosEncontrados_" + a).setAttribute("aria-label", totalDB + " resultados encontrados"),
                    document.getElementById("spanResultadosEncontrados_" + a).focus(),
                    1 == vMostrarThFormato &amp;&amp; $("#btnDescargar_" + a).css("display", "block"),
                    0 == vMostrarThFormato ? $("#btnDescargar_" + a).css("display", "none") : $("#btnDescargar_" + a).css("display", "block"),
                    1 == t &amp;&amp; "" != p &amp;&amp; ExpandirContraerTodo(a),
                    $(".inegi-mascirculo").css("color", $(".tituImprimir").css("color")),
                    $(".inegi-menoscirculo").css("color", $(".tituImprimir").css("color")),
                    $("#tblDescargaArchivos_" + a + " tr[data-titulopadre][data-arbolnivel!='1']").show();
            },
            error: function (a, t, r) {
                console.log(a);
            },
        });
}
function TabuladoDescarga(a, t, r, s) {
    (this.Titulo = a), (this.Agrupacion = t), (this.TipoInformacion = r), (this.Archivo = s);
}
function ContarOcurrenciasEnString(a, t) {
    return a.split(t).length - 1;
}
function ExpandirContraerSubniveles(a) {
    var t = a.getAttribute("data-idcontrol"),
        r = a.getAttribute("data-arbolnivel"),
        s = a.getAttribute("data-agrupacion"),
        n = a.getAttribute("data-titulopadre"),
        l = n.substring(n.indexOf("|") + 1),
        p = a.getAttribute("data-subnievelescargados"),
        u = a.getAttribute("data-estatus"),
        b = a.getAttribute("data-tipoinformacion");
    if (0 == p) {
        a.setAttribute("data-subnievelescargados", "1"), $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "'] td div span").attr("class", "inegi-menoscirculo"), a.setAttribute("aria-expanded", !0);
        var m,
            v,
            f = "",
            y = 1 * r + 1,
            A = 1 * t * 100;
        if (((titulosAgregados = []), "DatosAbiertos" == b)) {
            for (var x = 0; x &lt; arrayDescargaDatosAbiertos.length; x++)
                if (arrayDescargaDatosAbiertos[x].Agrupacion == s &amp;&amp; arrayDescargaDatosAbiertos[x].Titulo.substring(0, l.length) == l) {
                    var T = (m = l + "|").length;
                    if (-1 != arrayDescargaDatosAbiertos[x].Titulo.indexOf(m)) {
                        var E = arrayDescargaDatosAbiertos[x].Titulo.substring(T);
                        (v = document.createElement("tr")).setAttribute("data-idcontrol", 1 * t + 1 * A * 10),
                            v.setAttribute("data-agrupacion", s),
                            v.setAttribute("data-titulopadre", n + "|" + E.split("|")[0]),
                            v.setAttribute("data-tipoinformacion", b),
                            -1 == E.indexOf("|")
                                ? ((v.innerHTML = generarTdsEnlaces_DescargarArchivos2(
                                      E,
                                      arrayDescargaDatosAbiertos[x].Archivo.url,
                                      arrayDescargaDatosAbiertos[x].Archivo.pathLogico,
                                      arrayDescargaDatosAbiertos[x].Archivo.extension,
                                      arrayDescargaDatosAbiertos[x].Archivo.formato,
                                      arrayDescargaDatosAbiertos[x].Archivo.anioInformacion,
                                      1 * y + 1,
                                      arrayDescargaDatosAbiertos[x].Archivo.idArchivo,
                                      arrayDescargaDatosAbiertos[x].Archivo.idAreaGeografica
                                  )),
                                  v.setAttribute("role", "row"),
                                  v.setAttribute("aria-level", y),
                                  v.setAttribute("aria-setsize", y),
                                  v.setAttribute("aria-pointset", "1"),
                                  (v.style.cursor = "pointer"),
                                  v.setAttribute("data-arbolnivel", y))
                                : -1 == titulosAgregados.indexOf(arrayDescargaDatosAbiertos[x].Archivo.descripcion + "&gt;" + E.split("|")[0]) &amp;&amp;
                                  (titulosAgregados.push(arrayDescargaDatosAbiertos[x].Archivo.descripcion + "&gt;" + E.split("|")[0]),
                                  v.setAttribute("data-arbolnivel", y),
                                  v.setAttribute("data-subnievelescargados", "0"),
                                  v.setAttribute("data-estatus", "cerrado"),
                                  v.setAttribute("data-tipoinformacion", b),
                                  v.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                                  v.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                                  v.setAttribute("aria-label", E.split("|")[0]),
                                  v.setAttribute("aria-expanded", "false"),
                                  v.setAttribute("tabindex", "0"),
                                  v.setAttribute("role", "row"),
                                  v.setAttribute("aria-level", y),
                                  v.setAttribute("aria-setsize", y),
                                  v.setAttribute("aria-pointset", "1"),
                                  (v.style.cursor = "pointer"),
                                  (v.innerHTML = "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:" + 1 * y * 16 + "px'&gt;&lt;span class='inegi-mascirculo'&gt;&lt;/span&gt; " + E.split("|")[0] + "&lt;/div&gt;&lt;/td&gt;")),
                            "" != v.innerHTML &amp;&amp; ((f += v.outerHTML), A++);
                    }
                }
        } else if ("Tabulados" == b)
            for (x = 0; x &lt; arrayDescargaTabulados.length; x++)
                arrayDescargaTabulados[x].Agrupacion == s &amp;&amp;
                    arrayDescargaTabulados[x].Titulo.substring(0, l.length) == l &amp;&amp;
                    ((T = (m = l + "|").length),
                    -1 != arrayDescargaTabulados[x].Titulo.indexOf(m) &amp;&amp;
                        ((E = arrayDescargaTabulados[x].Titulo.substring(T)),
                        (v = document.createElement("tr")).setAttribute("data-idcontrol", 1 * t + 1 * A * 10),
                        v.setAttribute("data-agrupacion", s),
                        v.setAttribute("data-titulopadre", n + "|" + E.split("|")[0]),
                        v.setAttribute("data-tipoinformacion", b),
                        -1 == E.indexOf("|")
                            ? ((v.innerHTML = generarTdsEnlaces_DescargarArchivos2(
                                  E,
                                  arrayDescargaTabulados[x].Archivo.url,
                                  arrayDescargaTabulados[x].Archivo.pathLogico,
                                  arrayDescargaTabulados[x].Archivo.extension,
                                  arrayDescargaTabulados[x].Archivo.formato,
                                  arrayDescargaTabulados[x].Archivo.anioInformacion,
                                  1 * y + 1,
                                  arrayDescargaTabulados[x].Archivo.idArchivo,
                                  arrayDescargaTabulados[x].Archivo.idAreaGeografica
                              )),
                              v.setAttribute("data-arbolnivel", y))
                            : -1 == titulosAgregados.indexOf(arrayDescargaTabulados[x].Archivo.descripcion + "&gt;" + E.split("|")[0]) &amp;&amp;
                              (titulosAgregados.push(arrayDescargaTabulados[x].Archivo.descripcion + "&gt;" + E.split("|")[0]),
                              v.setAttribute("data-arbolnivel", y),
                              v.setAttribute("data-subnievelescargados", "0"),
                              v.setAttribute("data-estatus", "cerrado"),
                              v.setAttribute("data-tipoinformacion", b),
                              v.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                              v.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                              v.setAttribute("aria-expanded", "false"),
                              v.setAttribute("aria-label", E.split("|")[0]),
                              v.setAttribute("tabindex", "0"),
                              v.setAttribute("role", "row"),
                              v.setAttribute("aria-level", y),
                              v.setAttribute("aria-setsize", y),
                              v.setAttribute("aria-pointset", "1"),
                              (v.style.cursor = "pointer"),
                              (v.innerHTML = "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:" + 1 * y * 16 + "px'&gt;&lt;span class='inegi-mascirculo'&gt;&lt;/span&gt; " + E.split("|")[0] + "&lt;/div&gt;&lt;/td&gt;")),
                        "" != v.innerHTML &amp;&amp; ((f += v.outerHTML), A++)));
        else
            for (x = 0; x &lt; arrayDescargaMicrodatos.length; x++)
                arrayDescargaMicrodatos[x].Agrupacion == s &amp;&amp;
                    arrayDescargaMicrodatos[x].Titulo.substring(0, l.length) == l &amp;&amp;
                    ((T = (m = l + "|").length),
                    -1 != arrayDescargaMicrodatos[x].Titulo.indexOf(m) &amp;&amp;
                        ((E = arrayDescargaMicrodatos[x].Titulo.substring(T)),
                        (v = document.createElement("tr")).setAttribute("data-idcontrol", 1 * t + 1 * A * 10),
                        v.setAttribute("data-agrupacion", s),
                        v.setAttribute("data-titulopadre", n + "|" + E.split("|")[0]),
                        v.setAttribute("data-tipoinformacion", b),
                        -1 == E.indexOf("|")
                            ? ((v.innerHTML = generarTdsEnlaces_DescargarArchivos2(
                                  E,
                                  arrayDescargaMicrodatos[x].Archivo.url,
                                  arrayDescargaMicrodatos[x].Archivo.pathLogico,
                                  arrayDescargaMicrodatos[x].Archivo.extension,
                                  arrayDescargaMicrodatos[x].Archivo.formato,
                                  arrayDescargaMicrodatos[x].Archivo.anioInformacion,
                                  1 * y + 1,
                                  arrayDescargaMicrodatos[x].Archivo.idArchivo,
                                  arrayDescargaMicrodatos[x].Archivo.idAreaGeografica
                              )),
                              v.setAttribute("data-arbolnivel", y))
                            : -1 == titulosAgregados.indexOf(arrayDescargaMicrodatos[x].Archivo.descripcion + "&gt;" + E.split("|")[0]) &amp;&amp;
                              (titulosAgregados.push(arrayDescargaMicrodatos[x].Archivo.descripcion + "&gt;" + E.split("|")[0]),
                              v.setAttribute("data-arbolnivel", y),
                              v.setAttribute("data-subnievelescargados", "0"),
                              v.setAttribute("data-estatus", "cerrado"),
                              v.setAttribute("data-tipoinformacion", b),
                              v.setAttribute("onclick", "ExpandirContraerSubniveles(this)"),
                              v.setAttribute("onkeyup", "ExpandirContraerSubniveles_event(this,event)"),
                              v.setAttribute("aria-expanded", "false"),
                              v.setAttribute("tabindex", "0"),
                              v.setAttribute("role", "row"),
                              v.setAttribute("aria-level", y),
                              v.setAttribute("aria-setsize", y),
                              v.setAttribute("aria-pointset", "1"),
                              (v.style.cursor = "pointer"),
                              (v.innerHTML = "&lt;td role='gridcell' colspan='3'&gt;&lt;div style='display:inline-block;margin-left:" + 1 * y * 16 + "px'&gt;&lt;span class='inegi-mascirculo'&gt;&lt;/span&gt; " + E.split("|")[0] + "&lt;/div&gt;&lt;/td&gt;")),
                        "" != v.innerHTML &amp;&amp; ((f += v.outerHTML), A++)));
        $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "']").attr("data-estatus", "abierto"), $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "']").after(f);
    } else {
        $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "'] td div span").attr("class");
        var _ = $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "']"),
            I = _[0].getAttribute("data-titulopadre");
        "cerrado" == u
            ? ($("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "'] td div span").attr("class", "inegi-menoscirculo"),
              $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "']").attr("data-estatus", "abierto"),
              $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "']").attr("aria-expanded", !0),
              (I += "|"),
              $("tr[data-agrupacion='" + _[0].getAttribute("data-agrupacion") + "'][data-arbolnivel='" + (1 * r + 1) + "'][data-titulopadre^='" + I + "']").show())
            : ($("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "'] td div span").attr("class", "inegi-mascirculo"),
              $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "']").attr("data-estatus", "cerrado"),
              $("tr[data-idcontrol='" + t + "'][data-titulopadre='" + n + "']").attr("aria-expanded", !1),
              $("tr[data-titulopadre^='" + (I += "|") + "'][data-agrupacion='" + _[0].getAttribute("data-agrupacion") + "'][data-estatus]").attr("data-estatus", "cerrado"),
              $("tr[data-titulopadre^='" + I + "'][data-agrupacion='" + _[0].getAttribute("data-agrupacion") + "'][data-estatus]").attr("aria-expanded", !1),
              $("tr[data-titulopadre^='" + I + "'][data-agrupacion='" + _[0].getAttribute("data-agrupacion") + "'][data-estatus] td div span").attr("class", "inegi-mascirculo"),
              $("tr[data-titulopadre^='" + I + "'][data-agrupacion='" + _[0].getAttribute("data-agrupacion") + "']").hide(),
              $("tr[data-idcontrol='" + t + "']").show());
    }
    $(".inegi-mascirculo").css("color", $(".tituImprimir").css("color")), $(".inegi-menoscirculo").css("color", $(".tituImprimir").css("color"));
}
function ExpandirContraerTodo(a) {
    if (
        ($(".inegi-mascirculo").css("color", $(".tituImprimir").css("color")),
        $(".inegi-menoscirculo").css("color", $(".tituImprimir").css("color")),
        null != document.getElementById("spanExpandirContraerTodo_" + a) ? "colapsado" == document.getElementById("spanExpandirContraerTodo_" + a).getAttribute("data-treegrid") : "")
    ) {
        null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("data-treegrid", "expandido"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; (document.getElementById("spanExpandirContraerTodo_" + a).className = "inegi-menoscirculo"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("data-bs-toggle", "tooltip"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; (document.getElementById("spanExpandirContraerTodo_" + a).title = 0 == encDomIng ? "Contraer todo" : "Contract all"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("aria-expanded", "true"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("aria-label", 0 == encDomIng ? "Lista de T\xedtulos" : "List of Titles");
        for (var t = 1 * (null != document.getElementById("spanTotalArchivos_" + a) ? document.getElementById("spanTotalArchivos_" + a).innerHTML : 0), r = 1; r &lt;= t; r++)
            $("#tblDescargaArchivos_" + a + " tr[data-estatus='cerrado']").each(function () {
                $(this).click();
            });
    } else
        null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("data-treegrid", "colapsado"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; (document.getElementById("spanExpandirContraerTodo_" + a).className = "inegi-mascirculo"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; (document.getElementById("spanExpandirContraerTodo_" + a).title = 0 == encDomIng ? "Expandir todo" : "Expand all"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("data-bs-toggle", "tooltip"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("aria-label", 0 == encDomIng ? "Lista de T\xedtulos" : "List of Titles"),
            null != document.getElementById("spanExpandirContraerTodo_" + a) &amp;&amp; document.getElementById("spanExpandirContraerTodo_" + a).setAttribute("aria-expanded", "false"),
            $("#tblDescargaArchivos_" + a + " tr[data-estatus]").attr("data-estatus", "cerrado"),
            $("#tblDescargaArchivos_" + a + " tr[data-estatus]").attr("aria-expanded", !1),
            $("#tblDescargaArchivos_" + a + " tr[data-estatus] td div span").attr("class", "inegi-mascirculo"),
            $("#tblDescargaArchivos_" + a + " tr[data-titulopadre][data-arbolnivel!='1']").hide();
}
function AbrirArbolHastaNNiveles(a, t) {
    if (t &gt; 0)
        for (var r = 1 * (null != document.getElementById("spanTotalArchivos_" + a) ? document.getElementById("spanTotalArchivos_" + a).innerHTML : 0), s = 1; s &lt;= r; s++)
            $("#tblDescargaArchivos_" + a + " tr[data-estatus='cerrado']").each(function () {
                1 * this.getAttribute("data-arbolnivel") &lt;= t &amp;&amp; $(this).click();
            });
}
function actualizarAGPorGrupo(a) {
    var t = a,
        r = document.getElementById(a),
        s = r.getAttribute("data-tema"),
        n = r.getAttribute("data-subtema"),
        l = (r.getAttribute("data-areaGeografica"), null == r.getAttribute("data-proyecto") ? "0" : "" != r.getAttribute("data-proyecto") ? r.getAttribute("data-proyecto") : "0"),
        p = null != r.getAttribute("data-id") ? ("" != r.getAttribute("data-id") ? r.getAttribute("data-id") : null == r.getAttribute("data-biinegi") ? "0" : "" == r.getAttribute("data-biinegi")) : r.getAttribute("data-biinegi"),
        u = "" == r.getAttribute("data-tipoInformacion") ? "5" : "0" == r.getAttribute("data-tipoInformacion") ? "5" : null == r.getAttribute("data-tipoInformacion") ? "5" : r.getAttribute("data-tipoInformacion"),
        b = null == r.getAttribute("data-periodo") ? "0" : "" == r.getAttribute("data-periodo") ? "0" : r.getAttribute("data-periodo"),
        m = document.getElementById("selectAgrupacion_" + a).value;
    "0" != n &amp;&amp; ((n = p), (p = "0")),
        (a =
            "/app/api/descarga/componente/descargamasiva/lista/areasgeograficaspordisponibilidadarchivos?proyecto=" +
            l +
            "&amp;idBiinegi=" +
            (p = null == p ? 0 : p) +
            "&amp;tipoDocto=" +
            u +
            "&amp;anio=" +
            b +
            "&amp;tema=" +
            s +
            "&amp;subtema=" +
            n +
            "&amp;agrupacion=" +
            b64EncodeUnicode(m) +
            "&amp;lang=" +
            (0 == encDomIng ? "es" : "en")),
        $.ajax({
            url: a,
            dataType: "json",
            success: function (a) {
                document.getElementById("selectAg_" + t).innerHTML = "";
                for (var r = "", s = 0; s &lt; a.length; s++) r += "&lt;option class='notranslate' value='" + a[s].idAreaGeografica + "'&gt;" + a[s].nombre + "&lt;/option&gt;";
                document.getElementById("selectAg_" + t).innerHTML = r;
            },
            error: function (a, t, r) {
                console.log(a);
            },
        });
}
function ExpandirContraerSubniveles_event(a, t) {
    13 == (document.all ? t.keyCode : t.which) &amp;&amp; $(a).click();
}
function gen_metaCal(a, t) {
    var r;
    for (new_mt = document.createElement(t), i = 0; i &lt; a.length; i++) (para_en = a[i].split("$")), new_mt.setAttribute(para_en[0], para_en[1]);
    switch (t) {
        case "meta":
            (r = document.getElementsByTagName("meta")[0]).parentNode.insertBefore(new_mt, r);
            break;
        case "script":
            ((r = document.getElementsByTagName("link")[0]).async = !0), r.parentNode.insertBefore(new_mt, r);
            break;
        case "link":
            (r = document.getElementsByTagName("link")[0]).parentNode.insertBefore(new_mt, r);
    }
}
function AbrirDescargaDinamica(a) {
    $("#btnDescargar_" + a).css("display", "none"), $("#divDescargar_" + a).slideDown(), $("#aDescargar_" + a).attr("aria-expanded", "true");
}
function AbrirDescargaDinamica_event(a, t) {
    13 == (document.all ? t.keyCode : t.which) &amp;&amp; AbrirDescargaDinamica(a);
}
function CerrarDivDescargar(a) {
    $("#divDescargar_" + a).slideUp("fast", function () {
        0 == !!navigator.platform.match(/(Mac|iphone|iPod|iPad)/i) ? $("#btnDescargar_" + a).css("display", "block") : $("#btnDescargar_" + a).css("display", "none"),
            $("#divDescargar_" + a).attr("aria-expanded", "false"),
            $("#aDescargar_" + a).attr("aria-expanded", "false");
    });
}
function CerrarDivDescargar_event(a, t) {
    13 == (document.all ? t.keyCode : t.which) &amp;&amp; CerrarDivDescargar(a);
}
function IniciarDescargaMasivaApp(a) {
    var t = document.getElementById(a),
        r = t.getAttribute("data-tema"),
        s = t.getAttribute("data-subtema"),
        n = null == t.getAttribute("data-proyecto") ? "0" : "" != t.getAttribute("data-proyecto") ? t.getAttribute("data-proyecto") : "0",
        l = null != t.getAttribute("data-id") ? ("" != t.getAttribute("data-id") ? t.getAttribute("data-id") : null == t.getAttribute("data-biinegi") ? "0" : "" == t.getAttribute("data-biinegi")) : t.getAttribute("data-biinegi"),
        p = t.getAttribute("data-tipoInformacion"),
        u = null == t.getAttribute("data-periodo") ? "0" : "" == t.getAttribute("data-periodo") ? "0" : t.getAttribute("data-periodo"),
        b = (t.getAttribute("data-colapsado"), t.getAttribute("data-datosabiertos")),
        m = null != document.getElementById("txtBuscar_" + a) ? document.getElementById("txtBuscar_" + a).value : "";
    "" == m &amp;&amp; (document.getElementById("txtBuscar_" + a).value = "");
    var v,
        f = null != document.getElementById("selectAg_" + a) ? document.getElementById("selectAg_" + a).value : t.getAttribute("data-areaGeografica"),
        y = null != document.getElementById("selectAgrupacion_" + a) ? document.getElementById("selectAgrupacion_" + a).value : "Todas";
    (r = null == r ? 0 : r),
        (l = null == l ? "0" : l),
        (b = null == b ? "0" : b),
        "0" != s &amp;&amp; ((s = l), (l = "0")),
        (v = {
            subtema: s,
            entidad: f,
            proyecto: (n = null == n ? 0 : n),
            tipodocto: (p = null == p ? 0 : p),
            anio: (u = null == u ? 0 : u),
            agrupacion: "" != m ? "Todas" : y,
            idBiinegi: l,
            textoBuscar: b64EncodeUnicode(m),
            datosAbiertos: b,
            ingles: 0 == encDomIng ? "0" : "1",
        }),
        $.ajax({ method: "POST", async: !1, dataType: "text", contentType: "application/json", url: "/app/api/descarga/componente/descargamasiva/lista/archivosdescarga", data: JSON.stringify(v) })
            .done(function (a) {
                if (0 != a.length) {
                    a = "/app/api" + a;
                    var t = window.location.host;
                    window.location.origin,
                        "en" == t.substring(0, t.indexOf(".")) &amp;&amp;
                            (-1 != window.location.host.indexOf("desarrollowww") || (-1 != window.location.host.indexOf("en.www.inegi.org.mx") ? window.location.protocol : (window.location.protocol, t.substring(3, t.length))));
                    var r = a,
                        s = document.createElement("a");
                    document.body.appendChild(s);
                    var n = new Date(),
                        l = n.getDate(),
                        p = n.getMonth(),
                        u = n.getFullYear();
                    (s.style.display = "none"),
                        s.setAttribute("download", "download"),
                        (s.href = r),
                        (s.download = "DescargaMasiva_" + l.toString() + (p + 1).toString() + u.toString() + "_" + n.getHours().toString() + n.getMinutes().toString() + n.getSeconds().toString() + ".zip"),
                        s.click(),
                        document.body.removeChild(s);
                }
            })
            .fail(function (a, t) {
                xxx;
            });
}
function ObtenerDominioDesdeIngles() {
    var a = (a = location.hostname);
    return -1 != a.indexOf("en.") &amp;&amp; (a = a.replace("en.", "")), a;
}
function ObtenerValorParametro(a) {
    if (-1 == navigator.appVersion.toUpperCase().indexOf("TRIDENT")) {
        var t = window.location.href;
        return new URL(t).searchParams.get(a);
    }
    var r = GetUrlVars()[a];
    return null == r || null == r ? "" : r;
}
function GetUrlVars() {
    var a = {};
    return (
        window.location.href.replace(/[?&amp;]+([^=&amp;]+)=([^&amp;]*)/gi, function (t, r, s) {
            a[r] = s;
        }),
        a
    );
}
function b64EncodeUnicode(a) {
    return btoa(
        encodeURIComponent(a).replace(/%([0-9A-F]{2})/g, function (a, t) {
            return String.fromCharCode("0x" + t);
        })
    );
}
(contadordescarga = 0), (contadordescargaMicro = 0), (contadordescargaDatos = 0);
</pre></body></html>