( function() {  var mapping = [{"appname":"", "appid":"CORE_APPS_PIC32MK_INTRODUCTION", "path":"GUID-8C6FDDAF-B34A-43B6-A09C-79DD97089C3D.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_CONSOLE_DEBUG_SYSTEM_SERVICE_USING_UART", "path":"GUID-7B12DC8A-9147-4A3F-B87B-3E0C6321A9EF.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_EEPROM_EMULATOR_LIBRARY_READ_WRITE", "path":"GUID-894D2A3D-44F1-4A5B-B715-04EE7E0EBA22.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_FAT_FILESYSTEM_USING_NVM_MEDIA", "path":"GUID-95827011-4D3B-4190-9669-84BD333AF66E.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_FAT_FILESYSTEM_USING_SDSPI_MEDIA", "path":"GUID-4A35D282-FA63-4931-9F65-228255CB9D41.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_FREERTOS_BASIC", "path":"GUID-2CE56AB6-F6B9-4631-9314-02039BA95D94.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_FREERTOS_TASK_NOTIFICATION", "path":"GUID-1F9CC91B-9620-4FC0-BEBE-9161CA823A97.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_I2C_DRIVER_ASYNCHRONOUS_I2C_EEPROM", "path":"GUID-BF728FDB-F4EC-46F4-BC60-5016C1F4CDDE.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_I2C_DRIVER_ASYNCHRONOUS_I2C_TEMP_SENSOR", "path":"GUID-718BC085-6C0C-4FF7-B246-5F1F1BA9F44A.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_I2C_DRIVER_SYNCHRONOUS_I2C_EEPROM", "path":"GUID-303A44CB-F888-424C-97D9-4B57A98A3246.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_I2C_EEPROM_AT24_DRIVER_EEPROM_READ_WRITE", "path":"GUID-95E8421D-002F-49E4-A5F5-B14B4B93A632.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_SPI_DRIVER_ASYNCHRONOUS_MULTI_INSTANCE", "path":"GUID-D140BD6C-6894-4EC2-960F-89E2CC028E0B.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_SPI_DRIVER_ASYNCHRONOUS_MULTI_CLIENT", "path":"GUID-F1D7828F-B3F2-457C-A87F-8FF98E560815.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_SPI_DRIVER_ASYNCHRONOUS_SELF_LOOPBACK_MULTI_CLIENT", "path":"GUID-E55A2581-7B4B-47FA-941B-3E84463A26CA.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_SPI_DRIVER_SYNCHRONOUS_SELF_LOOPBACK_MULTI_CLIENT", "path":"GUID-FA4273F6-8A0E-49D4-B832-64A6CB3D4AB9.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_SPI_EEPROM_AT25_DRIVER_EEPROM_READ_WRITE", "path":"GUID-33F75561-725F-4CFD-977E-52A7CFC37A54.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_TIME_SYSTEM_SERVICE_MULTI_CLIENT", "path":"GUID-98BB6C90-9DD8-4545-BB94-90D4B9E82F9D.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_USART_DRIVER_ASYNCHRONOUS_USART_ECHO", "path":"GUID-D6D80583-B6B0-41F0-8BDC-E5C0F2722591.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_USART_DRIVER_ASYNCHRONOUS_USART_MULTI_INSTANCE", "path":"GUID-72ABA350-B419-40A6-801B-88CB33753B64.html"},{"appname":"", "appid":"CORE_APPS_PIC32MK_USART_DRIVER_SYNCHRONOUS_USART_ECHO", "path":"GUID-980EA87F-A555-487A-AECF-D1FFB4B391E5.html"}];
            var mchp = (function (mchp) {
                var mchp = mchp || {};
                var mapping = [];
        
                mchp.utils = {};
        
                mchp.utils.getQueryParam = function (name, url = window.location.href) {
                  name = name.replace(/[\[\]]/g, "\\$&");
                  var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
                    results = regex.exec(url);
                  if (!results) return null;
                  if (!results[2]) return "";
                  return decodeURIComponent(results[2].replace(/\+/g, " "));
                };

                mchp.utils.isFirefox = typeof InstallTrigger !== 'undefined';
        
                mchp.init = function (options) {
                  mchp.mapping = options.mapping || [];
                  mchp.bindEvents();
                };
        
                mchp.bindEvents = function () {
                    if (mchp.utils.isFirefox) {
                      window.onload = mchp.checkRedirect;
                    } else {
                      document.onreadystatechange = mchp.checkRedirect;
                    }
                };

                mchp.checkRedirect = function() {
                  var contextId = mchp.utils.getQueryParam("contextId") || "";
                  if (contextId && contextId != undefined) {
                    var record = mchp.mapping.find(function(x){
                      return x.appid && x.appid.toLowerCase() == contextId.toLowerCase();
                    });
                    if (record && record.path) {
                      window.stop();
                      window.location = record.path;
                    }
                  }
                };
        
                return {
                  init: mchp.init,
                };
              })();
        
              mchp.init({
                mapping: mapping
              });

        })();