From f5058271accd401c4039e56e89e0459055c9d796 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Wed, 13 Dec 2023 10:42:25 -0800 Subject: [PATCH 1/3] Added more VxD services --- .vscode/settings.json | 19 + machines/pcx86/modules/v2/interrupts.js | 725 ++++++++- .../pcx86/releases/2.23/pcx86-uncompiled.js | 725 ++++++++- machines/pcx86/releases/2.23/pcx86.js | 1303 +++++++++-------- machines/pcx86/releases/2.23/pcx86.js.map | 2 +- 5 files changed, 2052 insertions(+), 722 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 959273c14..297528551 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -179,6 +179,7 @@ "APPCLASS", "APPNAME", "APPVERSION", + "Appy", "ARCCRC", "arcfile", "arclzw", @@ -280,6 +281,7 @@ "BINOP", "BIOS's", "BIOSes", + "BIOSEXT", "BIOSHOOK", "BIOSMODE", "BIOSRTC", @@ -394,6 +396,7 @@ "ccccdddddddd", "CCTRAN", "CDBL", + "CDFS", "CDIV", "cdrom", "cdroms", @@ -428,6 +431,7 @@ "CEQKCE", "CERTID", "CFKAAC", + "CFSD", "CGA's", "changeline", "Chappell", @@ -522,6 +526,7 @@ "CONFIGFAIL", "CONFIGMG", "CONFLIB", + "Confs", "congfigurations", "CONI", "CONO", @@ -573,6 +578,7 @@ "CTRLS", "CTTY", "CUPDATE", + "Curdir", "CURSCAN", "CURSCANB", "CURSORHI", @@ -985,6 +991,7 @@ "fileoverview", "FILESIZE", "FILESORT", + "FILESYSCHANGE", "filetimes", "FIMUL", "finchar", @@ -1263,6 +1270,7 @@ "IFNB", "iframes", "IFSHLP", + "IFSMGR", "iife", "iisnode", "ILDB", @@ -1299,6 +1307,7 @@ "INCWORD", "INDEXD", "indianred", + "Indos", "INDXB", "INDXW", "inflag", @@ -1354,6 +1363,7 @@ "IORB", "IORD", "ioregs", + "IOREQ", "IORI", "IORM", "IOSYS", @@ -2084,6 +2094,7 @@ "peachpuff", "PEDATA", "PEDIR", + "PELDR", "PELOADER", "PELWIDTH", "PENHI", @@ -2202,6 +2213,7 @@ "PSFLAG", "Psti", "Psygnosis", + "Ptrs", "Pullup", "PUOZDI", "PUPSW", @@ -2299,6 +2311,7 @@ "redirector", "Redirector", "redistributable", + "Reenumerate", "refid", "REGD", "REGDOTCMD", @@ -2441,6 +2454,7 @@ "SCCS", "SCED", "SCESA", + "Sched", "Schulman", "Schwaderer", "scottsc", @@ -2715,6 +2729,7 @@ "SYSIMES", "SYSINFO", "SYSINIT", + "SYSMODAL", "SYSREQ", "SYSTEMCLOCK", "SYSTEMCLOCKDIV", @@ -2865,6 +2880,7 @@ "undelete", "underflows", "UNDOC", + "Undock", "unencrypted", "UNERASE", "Unerasing", @@ -2911,6 +2927,7 @@ "untypeable", "unus", "unvalidated", + "Unvirtualize", "unwritable", "upcase", "uppercases", @@ -2957,7 +2974,9 @@ "visualbasic", "VLSI", "VMCPD", + "VMINI", "VMMAPI", + "VMOUSE", "VMPOLL", "VMSGD", "VNETBIOS", diff --git a/machines/pcx86/modules/v2/interrupts.js b/machines/pcx86/modules/v2/interrupts.js index b6b4c551b..45db8463f 100644 --- a/machines/pcx86/modules/v2/interrupts.js +++ b/machines/pcx86/modules/v2/interrupts.js @@ -2549,85 +2549,389 @@ Interrupts.VxD = { ] }, "DEBUG": { - id: 0x0002 + id: 0x0002, + fn: [ + "DEBUG_Get_Version", + "DEBUG_Fault", + "DEBUG_CheckFault", + "_DEBUG_LoadSyms" + ] }, "VPICD": { - id: 0x0003 + id: 0x0003, + fn: [ + "VPICD_Get_Version", + "VPICD_Virtualize_IRQ", + "VPICD_Set_Int_Request", + "VPICD_Clear_Int_Request", + "VPICD_Phys_EOI", + "VPICD_Get_Complete_Status", + "VPICD_Get_Status", + "VPICD_Test_Phys_Request", + "VPICD_Physically_Mask", + "VPICD_Physically_Unmask", + "VPICD_Set_Auto_Masking", + "VPICD_Get_IRQ_Complete_Status", + "VPICD_Convert_Handle_To_IRQ", + "VPICD_Convert_IRQ_To_Int", + "VPICD_Convert_Int_To_IRQ", + "VPICD_Call_When_Hw_Int", + "VPICD_Force_Default_Owner", + "VPICD_Force_Default_Behavior", + "VPICD_Auto_Mask_At_Inst_Swap", + "VPICD_Begin_Inst_Page_Swap", + "VPICD_End_Inst_Page_Swap", + "VPICD_Virtual_EOI", + "VPICD_Get_Virtualization_Count", + "VPICD_Post_Sys_Critical_Init", + "VPICD_VM_SlavePIC_Mask_Change" + ] }, "VDMAD": { - id: 0x0004 + id: 0x0004, + fn: [ + "VDMAD_Get_Version", + "VDMAD_Virtualize_Channel", + "VDMAD_Get_Region_Info", + "VDMAD_Set_Region_Info", + "VDMAD_Get_Virt_State", + "VDMAD_Set_Virt_State", + "VDMAD_Set_Phys_State", + "VDMAD_Mask_Channel", + "VDMAD_UnMask_Channel", + "VDMAD_Lock_DMA_Region", + "VDMAD_Unlock_DMA_Region", + "VDMAD_Scatter_Lock", + "VDMAD_Scatter_Unlock", + "VDMAD_Reserve_Buffer_Space", + "VDMAD_Request_Buffer", + "VDMAD_Release_Buffer", + "VDMAD_Copy_To_Buffer", + "VDMAD_Copy_From_Buffer", + "VDMAD_Default_Handler", + "VDMAD_Disable_Translation", + "VDMAD_Enable_Translation", + "VDMAD_Get_EISA_Adr_Mode", + "VDMAD_Set_EISA_Adr_Mode", + "VDMAD_Unlock_DMA_Region_No_Dirty", + "VDMAD_Phys_Mask_Channel", + "VDMAD_Phys_Unmask_Channel", + "VDMAD_Unvirtualize_Channel", + "VDMAD_Set_IO_Add", + "VDMAD_Get_Phys_Count", + "VDMAD_Get_Phys_Status", + "VDMAD_Get_Max_Phys_Page", + "VDMAD_Set_Channel_Callbacks", + "VDMAD_Get_Virt_Count", + "VDMAD_Set_Virt_Count" + ] }, "VTD": { - id: 0x0005 + id: 0x0005, + fn: [ + "VTD_Get_Version", + "VTD_Update_System_Clock", + "VTD_Get_Interrupt_Period", + "VTD_Begin_Min_Int_Period", + "VTD_End_Min_Int_Period", + "VTD_Disable_Trapping", + "VTD_Enable_Trapping", + "VTD_Get_Real_Time", + "VTD_Get_Date_And_Time", + "VTD_Adjust_VM_Count", + "VTD_Delay" + ] }, "V86MMGR": { - id: 0x0006 + id: 0x0006, + fn: [ + "V86MMGR_Get_Version", + "V86MMGR_Allocate_V86_Pages", + "V86MMGR_Set_EMS_XMS_Limits", + "V86MMGR_Get_EMS_XMS_Limits", + "V86MMGR_Set_Mapping_Info", + "V86MMGR_Get_Mapping_Info", + "V86MMGR_Xlat_API", + "V86MMGR_Load_Client_Ptr", + "V86MMGR_Allocate_Buffer", + "V86MMGR_Free_Buffer", + "V86MMGR_Get_Xlat_Buff_State", + "V86MMGR_Set_Xlat_Buff_State", + "V86MMGR_Get_VM_Flat_Sel", + "V86MMGR_Map_Pages", + "V86MMGR_Free_Page_Map_Region", + "V86MMGR_LocalGlobalReg", + "V86MMGR_GetPgStatus", + "V86MMGR_SetLocalA20", + "V86MMGR_ResetBasePages", + "V86MMGR_SetAvailMapPgs", + "V86MMGR_NoUMBInitCalls", + "V86MMGR_Get_EMS_XMS_Avail", + "V86MMGR_Toggle_HMA", + "V86MMGR_Dev_Init", + "V86MMGR_Alloc_UM_Page" + ] }, "PAGESWAP": { - id: 0x0007 + id: 0x0007, + fn: [ + "PageSwap_Get_Version", + "PageSwap_Invalid_Service1", + "PageSwap_Invalid_Service2", + "PageSwap_Invalid_Service3", + "PageSwap_Invalid_Service4", + "PageSwap_Invalid_Service5", + "PageSwap_Test_IO_Valid", + "PageSwap_Read_Or_Write", + "PageSwap_Grow_File", + "PageSwap_Init_File" + ] }, "PARITY": { id: 0x0008 }, "REBOOT": { - id: 0x0009 + id: 0x0009, + fn: [ + "REBOOT_Get_Version", + "REBOOT_Enable_Real_Reboot", + "REBOOT_Disable_Real_Reboot", + "REBOOT_Processor_Now" + ] }, "VDD": { - id: 0x000A + id: 0x000A, + fn: [ + "VDD_Get_Version", + "VDD_PIF_State", + "VDD_Get_GrabRtn", + "VDD_Hide_Cursor", + "VDD_Set_VMType", + "VDD_Get_ModTime", + "VDD_Set_HCurTrk", + "VDD_Msg_ClrScrn", + "VDD_Msg_ForColor", + "VDD_Msg_BakColor", + "VDD_Msg_TextOut", + "VDD_Msg_SetCursPos", + "VDD_Query_Access", + "VDD_Check_Update_Soon" + ] }, "VSD": { - id: 0x000B + id: 0x000B, + fn: [ + "VSD_Get_Version", + "VSD_Bell", + "VSD_SoundOn", + "VSD_TakeSoundPort" + ] }, "VMD": { - id: 0x000C + id: 0x000C, + alt: "VMOUSE", + fn: [ + "VMD_Get_Version", + "VMD_Set_Mouse_Type", + "VMD_Get_Mouse_Owner", + "VMD_Post_Pointer_Message", + "VMD_Set_Cursor_Proc", + "VMD_Call_Cursor_Proc", + "VMD_Set_Mouse_Data", + "VMD_Get_Mouse_Data", + "VMD_Manipulate_Pointer_Message", + "VMD_Set_Middle_Button", + "VMD_Enable_Disable_Mouse_Events", + "VMD_Post_Absolute_Pointer_Message", + ] }, "VKD": { - id: 0x000D + id: 0x000D, + fn: [ + "VKD_Get_Version", + "VKD_Define_Hot_Key", + "VKD_Remove_Hot_Key", + "VKD_Local_Enable_Hot_Key", + "VKD_Local_Disable_Hot_Key", + "VKD_Reflect_Hot_Key", + "VKD_Cancel_Hot_Key_State", + "VKD_Force_Keys", + "VKD_Get_Kbd_Owner", + "VKD_Define_Paste_Mode", + "VKD_Start_Paste", + "VKD_Cancel_Paste", + "VKD_Get_Msg_Key", + "VKD_Peek_Msg_Key", + "VKD_Flush_Msg_Key_Queue", + "VKD_Enable_Keyboard", + "VKD_Disable_Keyboard", + "VKD_Get_Shift_State", + "VKD_Filter_Keyboard_Input", + "VKD_Put_Byte", + "VKD_Set_Shift_State" + ] }, "VCD": { - id: 0x000E + id: 0x000E, + fn: [ + "VCD_Get_Version", + "VCD_Set_Port_Global", + "VCD_Get_Focus", + "VCD_Virtualize_Port", + "VCD_Acquire_Port", + "VCD_Free_Port", + "VCD_Acquire_Port_Windows_Style", + "VCD_Free_Port_Windows_Style", + "VCD_Steal_Port_Windows_Style", + "VCD_Find_COM_Index", + "VCD_Set_Port_Global_Special", + "VCD_Virtualize_Port_Dynamic", + "VCD_Unvirtualize_Port_Dynamic" + ] }, "VPD": { id: 0x000F }, "BLOCKDEV": { - id: 0x0010 + id: 0x0010, + fn: [ + "BlockDev_Get_Version", + "BlockDev_Register_Device", + "BlockDev_Find_Int13_Drive", + "BlockDev_Get_Device_List", + "BlockDev_Send_Command", + "BlockDev_Command_Complete", + "BlockDev_Synchronous_Command" + ] }, "VMCPD": { - id: 0x0011 + id: 0x0011, + fn: [ + "VMCPD_Get_Version", + "VMCPD_Get_Virt_State", + "VMCPD_Set_Virt_State", + "VMCPD_Get_CR0_State", + "VMCPD_Set_CR0_State", + "VMCPD_Get_Thread_State", + "VMCPD_Set_Thread_State", + "_VMCPD_Get_FP_Instruction_Size", + "VMCPD_Set_Thread_Precision" + ] }, "EBIOS": { - id: 0x0012 + id: 0x0012, + fn: [ + "EBIOS_Get_Version", + "EBIOS_Get_Unused_Mem" + ] }, "BIOSXLAT": { id: 0x0013 }, "VNETBIOS": { - id: 0x0014 + id: 0x0014, + fn: [ + "VNETBIOS_Get_Version", + "VNETBIOS_Register", + "VNETBIOS_Submit", + "VNETBIOS_Enum", + "VNETBIOS_Deregister", + "VNETBIOS_Register2", + "VNETBIOS_Map", + "VNETBIOS_Enum2" + ] }, "DOSMGR": { - id: 0x0015 + id: 0x0015, + fn: [ + "DOSMGR_Get_Version", + "_DOSMGR_Set_Exec_VM_Data", + "DOSMGR_Copy_VM_Drive_State", + "_DOSMGR_Exec_VM", + "DOSMGR_Get_IndosPtr", + "DOSMGR_Add_Device", + "DOSMGR_Remove_Device", + "DOSMGR_Instance_Device", + "DOSMGR_Get_DOS_Crit_Status", + "DOSMGR_Enable_Indos_Polling", + "DOSMGR_BackFill_Allowed", + "DOSMGR_LocalGlobalReg", + "DOSMGR_Init_UMB_Area", + "DOSMGR_Begin_V86_App", + "DOSMGR_End_V86_App", + "DOSMGR_Alloc_Local_Sys_VM_Mem", + "DOSMGR_Grow_CDSs", + "DOSMGR_Translate_Server_DOS_Call", + "DOSMGR_MMGR_PSP_Change_Notifier" + ] }, "WINLOAD": { id: 0x0016 }, "SHELL": { - id: 0x0017 + id: 0x0017, + fn: [ + "SHELL_Get_Version", + "SHELL_Resolve_Contention", + "SHELL_Event", + "SHELL_SYSMODAL_Message", + "SHELL_Message", + "SHELL_GetVMInfo", + "_SHELL_PostMessage", + "_SHELL_ShellExecute", + "_SHELL_PostShellMessage", + "SHELL_DispatchRing0AppyEvents", + "SHELL_Hook_Properties", + "SHELL_Unhook_Properties", + "SHELL_Update_User_Activity", + "_SHELL_QueryAppyTimeAvailable", + "_SHELL_CallAtAppyTime", + "_SHELL_CancelAppyTimeEvent", + "_SHELL_BroadcastSystemMessage", + "_SHELL_HookSystemBroadcast", + "_SHELL_UnhookSystemBroadcast", + "_SHELL_LocalAllocEx", + "_SHELL_LocalFree", + "_SHELL_LoadLibrary", + "_SHELL_FreeLibrary", + "_SHELL_GetProcAddress", + "_SHELL_CallDll", + "_SHELL_SuggestSingleMSDOSMode", + "SHELL_CheckHotkeyAllowed", + "_SHELL_GetDOSAppInfo" + ] }, "VMPOLL": { - id: 0x0018 + id: 0x0018, + fn: [ + "VMPoll_Get_Version", + "VMPoll_Enable_Disable", + "VMPoll_Reset_Detection", + "VMPoll_Check_Idle" + ] }, "VPROD": { id: 0x0019 }, "DOSNET": { - id: 0x001A + id: 0x001A, + fn: [ + "DOSNET_Get_Version", + "DOSNET_Send_FILESYSCHANGE", + "DOSNET_Do_PSP_Adjust" + ] }, "VFD": { - id: 0x001B + id: 0x001B, + fn: [ + "VFD_Get_Version" + ] }, "VDD2": { - id: 0x001C + id: 0x001C, + fn: [ + "VDD2_Get_Version" + ] }, "WINDEBUG": { id: 0x001D @@ -2639,10 +2943,29 @@ Interrupts.VxD = { id: 0x001F }, "INT13": { - id: 0x0020 + id: 0x0020, + fn: [ + "Int13_Get_Version", + "Int13_Device_Registered", + "Int13_Translate_VM_Int", + "Int13_Hooking_BIOS_Int", + "Int13_Unhooking_BIOS_Int" + ] }, "PAGEFILE": { - id: 0x0021 + id: 0x0021, + fn: [ + "PageFile_Get_Version", + "PageFile_Init_File", + "PageFile_Clean_Up", + "PageFile_Grow_File", + "PageFile_Read_Or_Write", + "PageFile_Cancel", + "PageFile_Test_IO_Valid", + "PageFile_Get_Size_Info", + "PageFile_Set_Async_Manager", + "PageFile_Call_Async_Manager" + ] }, "SCSI": { id: 0x0022 @@ -2660,19 +2983,81 @@ Interrupts.VxD = { id: 0x0026 }, "VXDLDR": { - id: 0x0027 + id: 0x0027, + fn: [ + "VXDLDR_GetVersion", + "VXDLDR_LoadDevice", + "VXDLDR_UnloadDevice", + "VXDLDR_DevInitSucceeded", + "VXDLDR_DevInitFailed", + "VXDLDR_GetDeviceList", + "VXDLDR_UnloadMe", + "_PELDR_LoadModule", + "_PELDR_GetModuleHandle", + "_PELDR_GetModuleUsage", + "_PELDR_GetEntryPoint", + "_PELDR_GetProcAddress", + "_PELDR_AddExportTable", + "_PELDR_RemoveExportTable", + "_PELDR_FreeModule", + "VXDLDR_Notify", + "_PELDR_InitCompleted", + "_PELDR_LoadModuleEx" + ] }, "NDIS": { id: 0x0028 }, "BIOS_EXT": { - id: 0x0029 + id: 0x0029, + fn: [ + "_BIOSEXTGetVersion", + "_BIOSEXTGetHeader", + "_BIOSEXTCallBIOS" + ] }, "VWIN32": { id: 0x002A }, "VCOMM": { - id: 0x002B + id: 0x002B, + fn: [ + "VCOMM_Get_Version", + "_VCOMM_Register_Port_Driver", + "_VCOMM_Acquire_Port", + "_VCOMM_Release_Port", + "_VCOMM_OpenComm", + "_VCOMM_SetCommState", + "_VCOMM_GetCommState", + "_VCOMM_SetupComm", + "_VCOMM_TransmitCommChar", + "_VCOMM_CloseComm", + "_VCOMM_GetCommQueueStatus", + "_VCOMM_ClearCommError", + "_VCOMM_GetModemStatus", + "_VCOMM_GetCommProperties", + "_VCOMM_EscapeCommFunction", + "_VCOMM_PurgeComm", + "_VCOMM_SetCommEventMask", + "_VCOMM_GetCommEventMask", + "_VCOMM_WriteComm", + "_VCOMM_ReadComm", + "_VCOMM_EnableCommNotification", + "_VCOMM_GetLastError", + "_VCOMM_Steal_Port", + "_VCOMM_SetReadCallBack", + "_VCOMM_SetWriteCallBack", + "_VCOMM_Add_Port", + "_VCOMM_GetSetCommTimeouts", + "_VCOMM_SetWriteRequest", + "_VCOMM_SetReadRequest", + "_VCOMM_Dequeue_Request", + "_VCOMM_Enumerate_DevNodes", + "VCOMM_Map_Win32DCB_To_Ring0", + "VCOMM_Map_Ring0DCB_To_Win32", + "_VCOMM_Get_Contention_Handler", + "_VCOMM_Map_Name_To_Resource" + ] }, "SPOOLER": { id: 0x002C @@ -2684,7 +3069,100 @@ Interrupts.VxD = { id: 0x002E }, "CONFIGMG": { - id: 0x0033 + id: 0x0033, + fn: [ + "_CONFIGMG_Get_Version", + "_CONFIGMG_Initialize", + "_CONFIGMG_Locate_DevNode", + "_CONFIGMG_Get_Parent", + "_CONFIGMG_Get_Child", + "_CONFIGMG_Get_Sibling", + "_CONFIGMG_Get_Device_ID_Size", + "_CONFIGMG_Get_Device_ID", + "_CONFIGMG_Get_Depth", + "_CONFIGMG_Get_Private_DWord", + "_CONFIGMG_Set_Private_DWord", + "_CONFIGMG_Create_DevNode", + "_CONFIGMG_Query_Remove_SubTree", + "_CONFIGMG_Remove_SubTree", + "_CONFIGMG_Register_Device_Driver", + "_CONFIGMG_Register_Enumerator", + "_CONFIGMG_Register_Arbitrator", + "_CONFIGMG_Deregister_Arbitrator", + "_CONFIGMG_Query_Arbitrator_Free_Size", + "_CONFIGMG_Query_Arbitrator_Free_Data", + "_CONFIGMG_Sort_NodeList", + "_CONFIGMG_Yield", + "_CONFIGMG_Lock", + "_CONFIGMG_Unlock", + "_CONFIGMG_Add_Empty_Log_Conf", + "_CONFIGMG_Free_Log_Conf", + "_CONFIGMG_Get_First_Log_Conf", + "_CONFIGMG_Get_Next_Log_Conf", + "_CONFIGMG_Add_Res_Des", + "_CONFIGMG_Modify_Res_Des", + "_CONFIGMG_Free_Res_Des", + "_CONFIGMG_Get_Next_Res_Des", + "_CONFIGMG_Get_Performance_Info", + "_CONFIGMG_Get_Res_Des_Data_Size", + "_CONFIGMG_Get_Res_Des_Data", + "_CONFIGMG_Process_Events_Now", + "_CONFIGMG_Create_Range_List", + "_CONFIGMG_Add_Range", + "_CONFIGMG_Delete_Range", + "_CONFIGMG_Test_Range_Available", + "_CONFIGMG_Dup_Range_List", + "_CONFIGMG_Free_Range_List", + "_CONFIGMG_Invert_Range_List", + "_CONFIGMG_Intersect_Range_List", + "_CONFIGMG_First_Range", + "_CONFIGMG_Next_Range", + "_CONFIGMG_Dump_Range_List", + "_CONFIGMG_Load_DLVxDs", + "_CONFIGMG_Get_DDBs", + "_CONFIGMG_Get_CRC_CheckSum", + "_CONFIGMG_Register_DevLoader", + "_CONFIGMG_Reenumerate_DevNode", + "_CONFIGMG_Setup_DevNode", + "_CONFIGMG_Reset_Children_Marks", + "_CONFIGMG_Get_DevNode_Status", + "_CONFIGMG_Remove_Unmarked_Children", + "_CONFIGMG_ISAPNP_To_CM", + "_CONFIGMG_CallBack_Device_Driver", + "_CONFIGMG_CallBack_Enumerator", + "_CONFIGMG_Get_Alloc_Log_Conf", + "_CONFIGMG_Get_DevNode_Key_Size", + "_CONFIGMG_Get_DevNode_Key", + "_CONFIGMG_Read_Registry_Value", + "_CONFIGMG_Write_Registry_Value", + "_CONFIGMG_Disable_DevNode", + "_CONFIGMG_Enable_DevNode", + "_CONFIGMG_Move_DevNode", + "_CONFIGMG_Set_Bus_Info", + "_CONFIGMG_Get_Bus_Info", + "_CONFIGMG_Set_HW_Prof", + "_CONFIGMG_Recompute_HW_Prof", + "_CONFIGMG_Query_Change_HW_Prof", + "_CONFIGMG_Get_Device_Driver_Private_DWord", + "_CONFIGMG_Set_Device_Driver_Private_DWord", + "_CONFIGMG_Get_HW_Prof_Flags", + "_CONFIGMG_Set_HW_Prof_Flags", + "_CONFIGMG_Read_Registry_Log_Confs", + "_CONFIGMG_Run_Detection", + "_CONFIGMG_Call_At_Appy_Time", + "_CONFIGMG_Fail_Change_HW_Prof", + "_CONFIGMG_Set_Private_Problem", + "_CONFIGMG_Debug_DevNode", + "_CONFIGMG_Get_Hardware_Profile_Info", + "_CONFIGMG_Register_Enumerator_Function", + "_CONFIGMG_Call_Enumerator_Function", + "_CONFIGMG_Add_ID", + "_CONFIGMG_Find_Range", + "_CONFIGMG_Get_Global_State", + "_CONFIGMG_Broadcast_Device_Change_Message", + "_CONFIGMG_Call_DevNode_Handler", + "_CONFIGMG_Remove_Reinsert_All" + ] }, "DWCFGMG": { id: 0x0034 @@ -2693,28 +3171,188 @@ Interrupts.VxD = { id: 0x0035 }, "VFBACKUP": { - id: 0x0036 + id: 0x0036, + fn: [ + "VFBACKUP_Get_Version", + "VFBACKUP_Lock_NEC", + "VFBACKUP_UnLock_NEC", + "VFBACKUP_Register_NEC", + "VFBACKUP_Register_VFD", + "VFBACKUP_Lock_All_Ports" + ] }, "ENABLE": { - id: 0x0037 + id: 0x0037, + fn: [ + "VMINI_GetVersion", + "VMINI_Update", + "VMINI_Status", + "VMINI_DisplayError", + "VMINI_SetTimeStamp", + "VMINI_Siren", + "VMINI_RegisterAccess", + "VMINI_GetData", + "VMINI_ShutDownItem", + "VMINI_RegisterSK" + ] }, "VCOND": { - id: 0x0038 + id: 0x0038, + fn: [ + "VCOND_Get_Version", + "VCOND_Launch_ConApp_Inherited" + ] }, "ISAPNP": { id: 0x003C }, "BIOS": { - id: 0x003D + id: 0x003D, + fn: [ + "_BIOSGetVersion", + "_BIOSSoftUndock", + "_BIOSGetCapabilities", + "_BIOSGetAPMTable" + ] }, - "IFSMgr": { - id: 0x0040 + "IFSMGR": { + id: 0x0040, + fn: [ + "IFSMgr_Get_Version", + "IFSMgr_RegisterMount", + "IFSMgr_RegisterNet", + "IFSMgr_RegisterMailSlot", + "IFSMgr_Attach", + "IFSMgr_Detach", + "IFSMgr_Get_NetTime", + "IFSMgr_Get_DOSTime", + "IFSMgr_SetupConnection", + "IFSMgr_DerefConnection", + "IFSMgr_ServerDOSCall", + "IFSMgr_CompleteAsync", + "IFSMgr_RegisterHeap", + "IFSMgr_GetHeap", + "IFSMgr_RetHeap", + "IFSMgr_CheckHeap", + "IFSMgr_CheckHeapItem", + "IFSMgr_FillHeapSpare", + "IFSMgr_Block", + "IFSMgr_Wakeup", + "IFSMgr_Yield", + "IFSMgr_SchedEvent", + "IFSMgr_QueueEvent", + "IFSMgr_KillEvent", + "IFSMgr_FreeIOReq", + "IFSMgr_MakeMailSlot", + "IFSMgr_DeleteMailSlot", + "IFSMgr_WriteMailSlot", + "IFSMgr_PopUp", + "IFSMgr_printf", + "IFSMgr_AssertFailed", + "IFSMgr_LogEntry", + "IFSMgr_DebugMenu", + "IFSMgr_DebugVars", + "IFSMgr_GetDebugString", + "IFSMgr_GetDebugHexNum", + "IFSMgr_NetFunction", + "IFSMgr_DoDelAllUses", + "IFSMgr_SetErrString", + "IFSMgr_GetErrString", + "IFSMgr_SetReqHook", + "IFSMgr_SetPathHook", + "IFSMgr_UseAdd", + "IFSMgr_UseDel", + "IFSMgr_InitUseAdd", + "IFSMgr_ChangeDir", + "IFSMgr_DelAllUses", + "IFSMgr_CDROM_Attach", + "IFSMgr_CDROM_Detach", + "IFSMgr_Win32DupHandle", + "IFSMgr_Ring0_FileIO", + "IFSMgr_Win32_Get_Ring0_Handle", + "IFSMgr_Get_Drive_Info", + "IFSMgr_Ring0GetDriveInfo", + "IFSMgr_BlockNoEvents", + "IFSMgr_NetToDosTime", + "IFSMgr_DosToNetTime", + "IFSMgr_DosToWin32Time", + "IFSMgr_Win32ToDosTime", + "IFSMgr_NetToWin32Time", + "IFSMgr_Win32ToNetTime", + "IFSMgr_MetaMatch", + "IFSMgr_TransMatch", + "IFSMgr_CallProvider", + "UniToBCS", + "UniToBCSPath", + "BCSToUni", + "UniToUpper", + "UniCharToOEM", + "CreateBasis", + "MatchBasisName", + "AppendBasisTail", + "FcbToShort", + "ShortToFcb", + "IFSMgr_ParsePath", + "Query_PhysLock", + "_VolFlush", + "NotifyVolumeArrival", + "NotifyVolumeRemoval", + "QueryVolumeRemoval", + "IFSMgr_FSDUnmountCFSD", + "IFSMgr_GetConversionTablePtrs", + "IFSMgr_CheckAccessConflict", + "IFSMgr_LockFile", + "IFSMgr_UnlockFile", + "IFSMgr_RemoveLocks", + "IFSMgr_CheckLocks", + "IFSMgr_CountLocks", + "IFSMgr_ReassignLockFileInst", + "IFSMgr_UnassignLockList", + "IFSMgr_MountChildVolume", + "IFSMgr_UnmountChildVolume", + "IFSMgr_SwapDrives", + "IFSMgr_FSDMapFHtoIOREQ", + "IFSMgr_FSDParsePath", + "IFSMgr_FSDAttachSFT", + "IFSMgr_GetTimeZoneBias", + "IFSMgr_PNPEvent", + "IFSMgr_RegisterCFSD", + "IFSMgr_Win32MapExtendedHandleToSFT", + "IFSMgr_DbgSetFileHandleLimit", + "IFSMgr_Win32MapSFTToExtendedHandle", + "IFSMgr_FSDGetCurrentDrive", + "IFSMgr_InstallFileSystemApiHook", + "IFSMgr_RemoveFileSystemApiHook", + "IFSMgr_RunScheduledEvents", + "IFSMgr_CheckDelResource", + "IFSMgr_Win32GetVMCurdir", + "IFSMgr_SetupFailedConnection", + "_GetMappedErr", + "ShortToLossyFcb", + "IFSMgr_GetLockState", + "BcsToBcs", + "IFSMgr_SetLoopback", + "IFSMgr_ClearLoopback", + "IFSMgr_ParseOneElement", + "BcsToBcsUpper" + ] }, "VCDFSD": { - id: 0x0041 + id: 0x0041, + fn: [ + "_VCDFSD_Get_Version", + "_VCDFSD_GetCDFSInfo", + "_VCDFSD_Hook", + "_VCDFSD_Unhook" + ] }, "MRCI2": { - id: 0x0042 + id: 0x0042, + fn: [ + "MRCI_Get_Version", + "_MRCI_Fast_Compress", + "_MRCI_Fast_Decompress" + ] }, "PCI": { id: 0x0043 @@ -2732,7 +3370,14 @@ Interrupts.VxD = { id: 0x0047 }, "PERF": { - id: 0x0048 + id: 0x0048, + fn: [ + "PERF_Get_Version", + "PERF_Server_Register", + "PERF_Server_Deregister", + "PERF_Server_Add_Stat", + "PERF_Server_Remove_Stat" + ] }, "AWREDIR": { id: 0x0049 @@ -2750,7 +3395,11 @@ Interrupts.VxD = { id: 0x0063 }, "VIME": { - id: 0x0064 + id: 0x0064, + fn: [ + "VIME_Register_UI", + "VIME_Control_IME" + ] }, "VHBIOSD": { id: 0x0065 diff --git a/machines/pcx86/releases/2.23/pcx86-uncompiled.js b/machines/pcx86/releases/2.23/pcx86-uncompiled.js index 844d2e5a8..a364210ff 100644 --- a/machines/pcx86/releases/2.23/pcx86-uncompiled.js +++ b/machines/pcx86/releases/2.23/pcx86-uncompiled.js @@ -9856,85 +9856,389 @@ Interrupts.VxD = { ] }, "DEBUG": { - id: 0x0002 + id: 0x0002, + fn: [ + "DEBUG_Get_Version", + "DEBUG_Fault", + "DEBUG_CheckFault", + "_DEBUG_LoadSyms" + ] }, "VPICD": { - id: 0x0003 + id: 0x0003, + fn: [ + "VPICD_Get_Version", + "VPICD_Virtualize_IRQ", + "VPICD_Set_Int_Request", + "VPICD_Clear_Int_Request", + "VPICD_Phys_EOI", + "VPICD_Get_Complete_Status", + "VPICD_Get_Status", + "VPICD_Test_Phys_Request", + "VPICD_Physically_Mask", + "VPICD_Physically_Unmask", + "VPICD_Set_Auto_Masking", + "VPICD_Get_IRQ_Complete_Status", + "VPICD_Convert_Handle_To_IRQ", + "VPICD_Convert_IRQ_To_Int", + "VPICD_Convert_Int_To_IRQ", + "VPICD_Call_When_Hw_Int", + "VPICD_Force_Default_Owner", + "VPICD_Force_Default_Behavior", + "VPICD_Auto_Mask_At_Inst_Swap", + "VPICD_Begin_Inst_Page_Swap", + "VPICD_End_Inst_Page_Swap", + "VPICD_Virtual_EOI", + "VPICD_Get_Virtualization_Count", + "VPICD_Post_Sys_Critical_Init", + "VPICD_VM_SlavePIC_Mask_Change" + ] }, "VDMAD": { - id: 0x0004 + id: 0x0004, + fn: [ + "VDMAD_Get_Version", + "VDMAD_Virtualize_Channel", + "VDMAD_Get_Region_Info", + "VDMAD_Set_Region_Info", + "VDMAD_Get_Virt_State", + "VDMAD_Set_Virt_State", + "VDMAD_Set_Phys_State", + "VDMAD_Mask_Channel", + "VDMAD_UnMask_Channel", + "VDMAD_Lock_DMA_Region", + "VDMAD_Unlock_DMA_Region", + "VDMAD_Scatter_Lock", + "VDMAD_Scatter_Unlock", + "VDMAD_Reserve_Buffer_Space", + "VDMAD_Request_Buffer", + "VDMAD_Release_Buffer", + "VDMAD_Copy_To_Buffer", + "VDMAD_Copy_From_Buffer", + "VDMAD_Default_Handler", + "VDMAD_Disable_Translation", + "VDMAD_Enable_Translation", + "VDMAD_Get_EISA_Adr_Mode", + "VDMAD_Set_EISA_Adr_Mode", + "VDMAD_Unlock_DMA_Region_No_Dirty", + "VDMAD_Phys_Mask_Channel", + "VDMAD_Phys_Unmask_Channel", + "VDMAD_Unvirtualize_Channel", + "VDMAD_Set_IO_Add", + "VDMAD_Get_Phys_Count", + "VDMAD_Get_Phys_Status", + "VDMAD_Get_Max_Phys_Page", + "VDMAD_Set_Channel_Callbacks", + "VDMAD_Get_Virt_Count", + "VDMAD_Set_Virt_Count" + ] }, "VTD": { - id: 0x0005 + id: 0x0005, + fn: [ + "VTD_Get_Version", + "VTD_Update_System_Clock", + "VTD_Get_Interrupt_Period", + "VTD_Begin_Min_Int_Period", + "VTD_End_Min_Int_Period", + "VTD_Disable_Trapping", + "VTD_Enable_Trapping", + "VTD_Get_Real_Time", + "VTD_Get_Date_And_Time", + "VTD_Adjust_VM_Count", + "VTD_Delay" + ] }, "V86MMGR": { - id: 0x0006 + id: 0x0006, + fn: [ + "V86MMGR_Get_Version", + "V86MMGR_Allocate_V86_Pages", + "V86MMGR_Set_EMS_XMS_Limits", + "V86MMGR_Get_EMS_XMS_Limits", + "V86MMGR_Set_Mapping_Info", + "V86MMGR_Get_Mapping_Info", + "V86MMGR_Xlat_API", + "V86MMGR_Load_Client_Ptr", + "V86MMGR_Allocate_Buffer", + "V86MMGR_Free_Buffer", + "V86MMGR_Get_Xlat_Buff_State", + "V86MMGR_Set_Xlat_Buff_State", + "V86MMGR_Get_VM_Flat_Sel", + "V86MMGR_Map_Pages", + "V86MMGR_Free_Page_Map_Region", + "V86MMGR_LocalGlobalReg", + "V86MMGR_GetPgStatus", + "V86MMGR_SetLocalA20", + "V86MMGR_ResetBasePages", + "V86MMGR_SetAvailMapPgs", + "V86MMGR_NoUMBInitCalls", + "V86MMGR_Get_EMS_XMS_Avail", + "V86MMGR_Toggle_HMA", + "V86MMGR_Dev_Init", + "V86MMGR_Alloc_UM_Page" + ] }, "PAGESWAP": { - id: 0x0007 + id: 0x0007, + fn: [ + "PageSwap_Get_Version", + "PageSwap_Invalid_Service1", + "PageSwap_Invalid_Service2", + "PageSwap_Invalid_Service3", + "PageSwap_Invalid_Service4", + "PageSwap_Invalid_Service5", + "PageSwap_Test_IO_Valid", + "PageSwap_Read_Or_Write", + "PageSwap_Grow_File", + "PageSwap_Init_File" + ] }, "PARITY": { id: 0x0008 }, "REBOOT": { - id: 0x0009 + id: 0x0009, + fn: [ + "REBOOT_Get_Version", + "REBOOT_Enable_Real_Reboot", + "REBOOT_Disable_Real_Reboot", + "REBOOT_Processor_Now" + ] }, "VDD": { - id: 0x000A + id: 0x000A, + fn: [ + "VDD_Get_Version", + "VDD_PIF_State", + "VDD_Get_GrabRtn", + "VDD_Hide_Cursor", + "VDD_Set_VMType", + "VDD_Get_ModTime", + "VDD_Set_HCurTrk", + "VDD_Msg_ClrScrn", + "VDD_Msg_ForColor", + "VDD_Msg_BakColor", + "VDD_Msg_TextOut", + "VDD_Msg_SetCursPos", + "VDD_Query_Access", + "VDD_Check_Update_Soon" + ] }, "VSD": { - id: 0x000B + id: 0x000B, + fn: [ + "VSD_Get_Version", + "VSD_Bell", + "VSD_SoundOn", + "VSD_TakeSoundPort" + ] }, "VMD": { - id: 0x000C + id: 0x000C, + alt: "VMOUSE", + fn: [ + "VMD_Get_Version", + "VMD_Set_Mouse_Type", + "VMD_Get_Mouse_Owner", + "VMD_Post_Pointer_Message", + "VMD_Set_Cursor_Proc", + "VMD_Call_Cursor_Proc", + "VMD_Set_Mouse_Data", + "VMD_Get_Mouse_Data", + "VMD_Manipulate_Pointer_Message", + "VMD_Set_Middle_Button", + "VMD_Enable_Disable_Mouse_Events", + "VMD_Post_Absolute_Pointer_Message", + ] }, "VKD": { - id: 0x000D + id: 0x000D, + fn: [ + "VKD_Get_Version", + "VKD_Define_Hot_Key", + "VKD_Remove_Hot_Key", + "VKD_Local_Enable_Hot_Key", + "VKD_Local_Disable_Hot_Key", + "VKD_Reflect_Hot_Key", + "VKD_Cancel_Hot_Key_State", + "VKD_Force_Keys", + "VKD_Get_Kbd_Owner", + "VKD_Define_Paste_Mode", + "VKD_Start_Paste", + "VKD_Cancel_Paste", + "VKD_Get_Msg_Key", + "VKD_Peek_Msg_Key", + "VKD_Flush_Msg_Key_Queue", + "VKD_Enable_Keyboard", + "VKD_Disable_Keyboard", + "VKD_Get_Shift_State", + "VKD_Filter_Keyboard_Input", + "VKD_Put_Byte", + "VKD_Set_Shift_State" + ] }, "VCD": { - id: 0x000E + id: 0x000E, + fn: [ + "VCD_Get_Version", + "VCD_Set_Port_Global", + "VCD_Get_Focus", + "VCD_Virtualize_Port", + "VCD_Acquire_Port", + "VCD_Free_Port", + "VCD_Acquire_Port_Windows_Style", + "VCD_Free_Port_Windows_Style", + "VCD_Steal_Port_Windows_Style", + "VCD_Find_COM_Index", + "VCD_Set_Port_Global_Special", + "VCD_Virtualize_Port_Dynamic", + "VCD_Unvirtualize_Port_Dynamic" + ] }, "VPD": { id: 0x000F }, "BLOCKDEV": { - id: 0x0010 + id: 0x0010, + fn: [ + "BlockDev_Get_Version", + "BlockDev_Register_Device", + "BlockDev_Find_Int13_Drive", + "BlockDev_Get_Device_List", + "BlockDev_Send_Command", + "BlockDev_Command_Complete", + "BlockDev_Synchronous_Command" + ] }, "VMCPD": { - id: 0x0011 + id: 0x0011, + fn: [ + "VMCPD_Get_Version", + "VMCPD_Get_Virt_State", + "VMCPD_Set_Virt_State", + "VMCPD_Get_CR0_State", + "VMCPD_Set_CR0_State", + "VMCPD_Get_Thread_State", + "VMCPD_Set_Thread_State", + "_VMCPD_Get_FP_Instruction_Size", + "VMCPD_Set_Thread_Precision" + ] }, "EBIOS": { - id: 0x0012 + id: 0x0012, + fn: [ + "EBIOS_Get_Version", + "EBIOS_Get_Unused_Mem" + ] }, "BIOSXLAT": { id: 0x0013 }, "VNETBIOS": { - id: 0x0014 + id: 0x0014, + fn: [ + "VNETBIOS_Get_Version", + "VNETBIOS_Register", + "VNETBIOS_Submit", + "VNETBIOS_Enum", + "VNETBIOS_Deregister", + "VNETBIOS_Register2", + "VNETBIOS_Map", + "VNETBIOS_Enum2" + ] }, "DOSMGR": { - id: 0x0015 + id: 0x0015, + fn: [ + "DOSMGR_Get_Version", + "_DOSMGR_Set_Exec_VM_Data", + "DOSMGR_Copy_VM_Drive_State", + "_DOSMGR_Exec_VM", + "DOSMGR_Get_IndosPtr", + "DOSMGR_Add_Device", + "DOSMGR_Remove_Device", + "DOSMGR_Instance_Device", + "DOSMGR_Get_DOS_Crit_Status", + "DOSMGR_Enable_Indos_Polling", + "DOSMGR_BackFill_Allowed", + "DOSMGR_LocalGlobalReg", + "DOSMGR_Init_UMB_Area", + "DOSMGR_Begin_V86_App", + "DOSMGR_End_V86_App", + "DOSMGR_Alloc_Local_Sys_VM_Mem", + "DOSMGR_Grow_CDSs", + "DOSMGR_Translate_Server_DOS_Call", + "DOSMGR_MMGR_PSP_Change_Notifier" + ] }, "WINLOAD": { id: 0x0016 }, "SHELL": { - id: 0x0017 + id: 0x0017, + fn: [ + "SHELL_Get_Version", + "SHELL_Resolve_Contention", + "SHELL_Event", + "SHELL_SYSMODAL_Message", + "SHELL_Message", + "SHELL_GetVMInfo", + "_SHELL_PostMessage", + "_SHELL_ShellExecute", + "_SHELL_PostShellMessage", + "SHELL_DispatchRing0AppyEvents", + "SHELL_Hook_Properties", + "SHELL_Unhook_Properties", + "SHELL_Update_User_Activity", + "_SHELL_QueryAppyTimeAvailable", + "_SHELL_CallAtAppyTime", + "_SHELL_CancelAppyTimeEvent", + "_SHELL_BroadcastSystemMessage", + "_SHELL_HookSystemBroadcast", + "_SHELL_UnhookSystemBroadcast", + "_SHELL_LocalAllocEx", + "_SHELL_LocalFree", + "_SHELL_LoadLibrary", + "_SHELL_FreeLibrary", + "_SHELL_GetProcAddress", + "_SHELL_CallDll", + "_SHELL_SuggestSingleMSDOSMode", + "SHELL_CheckHotkeyAllowed", + "_SHELL_GetDOSAppInfo" + ] }, "VMPOLL": { - id: 0x0018 + id: 0x0018, + fn: [ + "VMPoll_Get_Version", + "VMPoll_Enable_Disable", + "VMPoll_Reset_Detection", + "VMPoll_Check_Idle" + ] }, "VPROD": { id: 0x0019 }, "DOSNET": { - id: 0x001A + id: 0x001A, + fn: [ + "DOSNET_Get_Version", + "DOSNET_Send_FILESYSCHANGE", + "DOSNET_Do_PSP_Adjust" + ] }, "VFD": { - id: 0x001B + id: 0x001B, + fn: [ + "VFD_Get_Version" + ] }, "VDD2": { - id: 0x001C + id: 0x001C, + fn: [ + "VDD2_Get_Version" + ] }, "WINDEBUG": { id: 0x001D @@ -9946,10 +10250,29 @@ Interrupts.VxD = { id: 0x001F }, "INT13": { - id: 0x0020 + id: 0x0020, + fn: [ + "Int13_Get_Version", + "Int13_Device_Registered", + "Int13_Translate_VM_Int", + "Int13_Hooking_BIOS_Int", + "Int13_Unhooking_BIOS_Int" + ] }, "PAGEFILE": { - id: 0x0021 + id: 0x0021, + fn: [ + "PageFile_Get_Version", + "PageFile_Init_File", + "PageFile_Clean_Up", + "PageFile_Grow_File", + "PageFile_Read_Or_Write", + "PageFile_Cancel", + "PageFile_Test_IO_Valid", + "PageFile_Get_Size_Info", + "PageFile_Set_Async_Manager", + "PageFile_Call_Async_Manager" + ] }, "SCSI": { id: 0x0022 @@ -9967,19 +10290,81 @@ Interrupts.VxD = { id: 0x0026 }, "VXDLDR": { - id: 0x0027 + id: 0x0027, + fn: [ + "VXDLDR_GetVersion", + "VXDLDR_LoadDevice", + "VXDLDR_UnloadDevice", + "VXDLDR_DevInitSucceeded", + "VXDLDR_DevInitFailed", + "VXDLDR_GetDeviceList", + "VXDLDR_UnloadMe", + "_PELDR_LoadModule", + "_PELDR_GetModuleHandle", + "_PELDR_GetModuleUsage", + "_PELDR_GetEntryPoint", + "_PELDR_GetProcAddress", + "_PELDR_AddExportTable", + "_PELDR_RemoveExportTable", + "_PELDR_FreeModule", + "VXDLDR_Notify", + "_PELDR_InitCompleted", + "_PELDR_LoadModuleEx" + ] }, "NDIS": { id: 0x0028 }, "BIOS_EXT": { - id: 0x0029 + id: 0x0029, + fn: [ + "_BIOSEXTGetVersion", + "_BIOSEXTGetHeader", + "_BIOSEXTCallBIOS" + ] }, "VWIN32": { id: 0x002A }, "VCOMM": { - id: 0x002B + id: 0x002B, + fn: [ + "VCOMM_Get_Version", + "_VCOMM_Register_Port_Driver", + "_VCOMM_Acquire_Port", + "_VCOMM_Release_Port", + "_VCOMM_OpenComm", + "_VCOMM_SetCommState", + "_VCOMM_GetCommState", + "_VCOMM_SetupComm", + "_VCOMM_TransmitCommChar", + "_VCOMM_CloseComm", + "_VCOMM_GetCommQueueStatus", + "_VCOMM_ClearCommError", + "_VCOMM_GetModemStatus", + "_VCOMM_GetCommProperties", + "_VCOMM_EscapeCommFunction", + "_VCOMM_PurgeComm", + "_VCOMM_SetCommEventMask", + "_VCOMM_GetCommEventMask", + "_VCOMM_WriteComm", + "_VCOMM_ReadComm", + "_VCOMM_EnableCommNotification", + "_VCOMM_GetLastError", + "_VCOMM_Steal_Port", + "_VCOMM_SetReadCallBack", + "_VCOMM_SetWriteCallBack", + "_VCOMM_Add_Port", + "_VCOMM_GetSetCommTimeouts", + "_VCOMM_SetWriteRequest", + "_VCOMM_SetReadRequest", + "_VCOMM_Dequeue_Request", + "_VCOMM_Enumerate_DevNodes", + "VCOMM_Map_Win32DCB_To_Ring0", + "VCOMM_Map_Ring0DCB_To_Win32", + "_VCOMM_Get_Contention_Handler", + "_VCOMM_Map_Name_To_Resource" + ] }, "SPOOLER": { id: 0x002C @@ -9991,7 +10376,100 @@ Interrupts.VxD = { id: 0x002E }, "CONFIGMG": { - id: 0x0033 + id: 0x0033, + fn: [ + "_CONFIGMG_Get_Version", + "_CONFIGMG_Initialize", + "_CONFIGMG_Locate_DevNode", + "_CONFIGMG_Get_Parent", + "_CONFIGMG_Get_Child", + "_CONFIGMG_Get_Sibling", + "_CONFIGMG_Get_Device_ID_Size", + "_CONFIGMG_Get_Device_ID", + "_CONFIGMG_Get_Depth", + "_CONFIGMG_Get_Private_DWord", + "_CONFIGMG_Set_Private_DWord", + "_CONFIGMG_Create_DevNode", + "_CONFIGMG_Query_Remove_SubTree", + "_CONFIGMG_Remove_SubTree", + "_CONFIGMG_Register_Device_Driver", + "_CONFIGMG_Register_Enumerator", + "_CONFIGMG_Register_Arbitrator", + "_CONFIGMG_Deregister_Arbitrator", + "_CONFIGMG_Query_Arbitrator_Free_Size", + "_CONFIGMG_Query_Arbitrator_Free_Data", + "_CONFIGMG_Sort_NodeList", + "_CONFIGMG_Yield", + "_CONFIGMG_Lock", + "_CONFIGMG_Unlock", + "_CONFIGMG_Add_Empty_Log_Conf", + "_CONFIGMG_Free_Log_Conf", + "_CONFIGMG_Get_First_Log_Conf", + "_CONFIGMG_Get_Next_Log_Conf", + "_CONFIGMG_Add_Res_Des", + "_CONFIGMG_Modify_Res_Des", + "_CONFIGMG_Free_Res_Des", + "_CONFIGMG_Get_Next_Res_Des", + "_CONFIGMG_Get_Performance_Info", + "_CONFIGMG_Get_Res_Des_Data_Size", + "_CONFIGMG_Get_Res_Des_Data", + "_CONFIGMG_Process_Events_Now", + "_CONFIGMG_Create_Range_List", + "_CONFIGMG_Add_Range", + "_CONFIGMG_Delete_Range", + "_CONFIGMG_Test_Range_Available", + "_CONFIGMG_Dup_Range_List", + "_CONFIGMG_Free_Range_List", + "_CONFIGMG_Invert_Range_List", + "_CONFIGMG_Intersect_Range_List", + "_CONFIGMG_First_Range", + "_CONFIGMG_Next_Range", + "_CONFIGMG_Dump_Range_List", + "_CONFIGMG_Load_DLVxDs", + "_CONFIGMG_Get_DDBs", + "_CONFIGMG_Get_CRC_CheckSum", + "_CONFIGMG_Register_DevLoader", + "_CONFIGMG_Reenumerate_DevNode", + "_CONFIGMG_Setup_DevNode", + "_CONFIGMG_Reset_Children_Marks", + "_CONFIGMG_Get_DevNode_Status", + "_CONFIGMG_Remove_Unmarked_Children", + "_CONFIGMG_ISAPNP_To_CM", + "_CONFIGMG_CallBack_Device_Driver", + "_CONFIGMG_CallBack_Enumerator", + "_CONFIGMG_Get_Alloc_Log_Conf", + "_CONFIGMG_Get_DevNode_Key_Size", + "_CONFIGMG_Get_DevNode_Key", + "_CONFIGMG_Read_Registry_Value", + "_CONFIGMG_Write_Registry_Value", + "_CONFIGMG_Disable_DevNode", + "_CONFIGMG_Enable_DevNode", + "_CONFIGMG_Move_DevNode", + "_CONFIGMG_Set_Bus_Info", + "_CONFIGMG_Get_Bus_Info", + "_CONFIGMG_Set_HW_Prof", + "_CONFIGMG_Recompute_HW_Prof", + "_CONFIGMG_Query_Change_HW_Prof", + "_CONFIGMG_Get_Device_Driver_Private_DWord", + "_CONFIGMG_Set_Device_Driver_Private_DWord", + "_CONFIGMG_Get_HW_Prof_Flags", + "_CONFIGMG_Set_HW_Prof_Flags", + "_CONFIGMG_Read_Registry_Log_Confs", + "_CONFIGMG_Run_Detection", + "_CONFIGMG_Call_At_Appy_Time", + "_CONFIGMG_Fail_Change_HW_Prof", + "_CONFIGMG_Set_Private_Problem", + "_CONFIGMG_Debug_DevNode", + "_CONFIGMG_Get_Hardware_Profile_Info", + "_CONFIGMG_Register_Enumerator_Function", + "_CONFIGMG_Call_Enumerator_Function", + "_CONFIGMG_Add_ID", + "_CONFIGMG_Find_Range", + "_CONFIGMG_Get_Global_State", + "_CONFIGMG_Broadcast_Device_Change_Message", + "_CONFIGMG_Call_DevNode_Handler", + "_CONFIGMG_Remove_Reinsert_All" + ] }, "DWCFGMG": { id: 0x0034 @@ -10000,28 +10478,188 @@ Interrupts.VxD = { id: 0x0035 }, "VFBACKUP": { - id: 0x0036 + id: 0x0036, + fn: [ + "VFBACKUP_Get_Version", + "VFBACKUP_Lock_NEC", + "VFBACKUP_UnLock_NEC", + "VFBACKUP_Register_NEC", + "VFBACKUP_Register_VFD", + "VFBACKUP_Lock_All_Ports" + ] }, "ENABLE": { - id: 0x0037 + id: 0x0037, + fn: [ + "VMINI_GetVersion", + "VMINI_Update", + "VMINI_Status", + "VMINI_DisplayError", + "VMINI_SetTimeStamp", + "VMINI_Siren", + "VMINI_RegisterAccess", + "VMINI_GetData", + "VMINI_ShutDownItem", + "VMINI_RegisterSK" + ] }, "VCOND": { - id: 0x0038 + id: 0x0038, + fn: [ + "VCOND_Get_Version", + "VCOND_Launch_ConApp_Inherited" + ] }, "ISAPNP": { id: 0x003C }, "BIOS": { - id: 0x003D + id: 0x003D, + fn: [ + "_BIOSGetVersion", + "_BIOSSoftUndock", + "_BIOSGetCapabilities", + "_BIOSGetAPMTable" + ] }, - "IFSMgr": { - id: 0x0040 + "IFSMGR": { + id: 0x0040, + fn: [ + "IFSMgr_Get_Version", + "IFSMgr_RegisterMount", + "IFSMgr_RegisterNet", + "IFSMgr_RegisterMailSlot", + "IFSMgr_Attach", + "IFSMgr_Detach", + "IFSMgr_Get_NetTime", + "IFSMgr_Get_DOSTime", + "IFSMgr_SetupConnection", + "IFSMgr_DerefConnection", + "IFSMgr_ServerDOSCall", + "IFSMgr_CompleteAsync", + "IFSMgr_RegisterHeap", + "IFSMgr_GetHeap", + "IFSMgr_RetHeap", + "IFSMgr_CheckHeap", + "IFSMgr_CheckHeapItem", + "IFSMgr_FillHeapSpare", + "IFSMgr_Block", + "IFSMgr_Wakeup", + "IFSMgr_Yield", + "IFSMgr_SchedEvent", + "IFSMgr_QueueEvent", + "IFSMgr_KillEvent", + "IFSMgr_FreeIOReq", + "IFSMgr_MakeMailSlot", + "IFSMgr_DeleteMailSlot", + "IFSMgr_WriteMailSlot", + "IFSMgr_PopUp", + "IFSMgr_printf", + "IFSMgr_AssertFailed", + "IFSMgr_LogEntry", + "IFSMgr_DebugMenu", + "IFSMgr_DebugVars", + "IFSMgr_GetDebugString", + "IFSMgr_GetDebugHexNum", + "IFSMgr_NetFunction", + "IFSMgr_DoDelAllUses", + "IFSMgr_SetErrString", + "IFSMgr_GetErrString", + "IFSMgr_SetReqHook", + "IFSMgr_SetPathHook", + "IFSMgr_UseAdd", + "IFSMgr_UseDel", + "IFSMgr_InitUseAdd", + "IFSMgr_ChangeDir", + "IFSMgr_DelAllUses", + "IFSMgr_CDROM_Attach", + "IFSMgr_CDROM_Detach", + "IFSMgr_Win32DupHandle", + "IFSMgr_Ring0_FileIO", + "IFSMgr_Win32_Get_Ring0_Handle", + "IFSMgr_Get_Drive_Info", + "IFSMgr_Ring0GetDriveInfo", + "IFSMgr_BlockNoEvents", + "IFSMgr_NetToDosTime", + "IFSMgr_DosToNetTime", + "IFSMgr_DosToWin32Time", + "IFSMgr_Win32ToDosTime", + "IFSMgr_NetToWin32Time", + "IFSMgr_Win32ToNetTime", + "IFSMgr_MetaMatch", + "IFSMgr_TransMatch", + "IFSMgr_CallProvider", + "UniToBCS", + "UniToBCSPath", + "BCSToUni", + "UniToUpper", + "UniCharToOEM", + "CreateBasis", + "MatchBasisName", + "AppendBasisTail", + "FcbToShort", + "ShortToFcb", + "IFSMgr_ParsePath", + "Query_PhysLock", + "_VolFlush", + "NotifyVolumeArrival", + "NotifyVolumeRemoval", + "QueryVolumeRemoval", + "IFSMgr_FSDUnmountCFSD", + "IFSMgr_GetConversionTablePtrs", + "IFSMgr_CheckAccessConflict", + "IFSMgr_LockFile", + "IFSMgr_UnlockFile", + "IFSMgr_RemoveLocks", + "IFSMgr_CheckLocks", + "IFSMgr_CountLocks", + "IFSMgr_ReassignLockFileInst", + "IFSMgr_UnassignLockList", + "IFSMgr_MountChildVolume", + "IFSMgr_UnmountChildVolume", + "IFSMgr_SwapDrives", + "IFSMgr_FSDMapFHtoIOREQ", + "IFSMgr_FSDParsePath", + "IFSMgr_FSDAttachSFT", + "IFSMgr_GetTimeZoneBias", + "IFSMgr_PNPEvent", + "IFSMgr_RegisterCFSD", + "IFSMgr_Win32MapExtendedHandleToSFT", + "IFSMgr_DbgSetFileHandleLimit", + "IFSMgr_Win32MapSFTToExtendedHandle", + "IFSMgr_FSDGetCurrentDrive", + "IFSMgr_InstallFileSystemApiHook", + "IFSMgr_RemoveFileSystemApiHook", + "IFSMgr_RunScheduledEvents", + "IFSMgr_CheckDelResource", + "IFSMgr_Win32GetVMCurdir", + "IFSMgr_SetupFailedConnection", + "_GetMappedErr", + "ShortToLossyFcb", + "IFSMgr_GetLockState", + "BcsToBcs", + "IFSMgr_SetLoopback", + "IFSMgr_ClearLoopback", + "IFSMgr_ParseOneElement", + "BcsToBcsUpper" + ] }, "VCDFSD": { - id: 0x0041 + id: 0x0041, + fn: [ + "_VCDFSD_Get_Version", + "_VCDFSD_GetCDFSInfo", + "_VCDFSD_Hook", + "_VCDFSD_Unhook" + ] }, "MRCI2": { - id: 0x0042 + id: 0x0042, + fn: [ + "MRCI_Get_Version", + "_MRCI_Fast_Compress", + "_MRCI_Fast_Decompress" + ] }, "PCI": { id: 0x0043 @@ -10039,7 +10677,14 @@ Interrupts.VxD = { id: 0x0047 }, "PERF": { - id: 0x0048 + id: 0x0048, + fn: [ + "PERF_Get_Version", + "PERF_Server_Register", + "PERF_Server_Deregister", + "PERF_Server_Add_Stat", + "PERF_Server_Remove_Stat" + ] }, "AWREDIR": { id: 0x0049 @@ -10057,7 +10702,11 @@ Interrupts.VxD = { id: 0x0063 }, "VIME": { - id: 0x0064 + id: 0x0064, + fn: [ + "VIME_Register_UI", + "VIME_Control_IME" + ] }, "VHBIOSD": { id: 0x0065 diff --git a/machines/pcx86/releases/2.23/pcx86.js b/machines/pcx86/releases/2.23/pcx86.js index 02d256898..2d25cad7c 100644 --- a/machines/pcx86/releases/2.23/pcx86.js +++ b/machines/pcx86/releases/2.23/pcx86.js @@ -75,12 +75,12 @@ g=("0".repeat(q)+g).slice(-q),0>h&&(g="-"+g)):g=(" ".repeat(q)+g).slice(-q));c+= h.slice(1));h=Math.trunc(h);k&&(h=-h);0>h&&((h|0)==h?h>>>=0:Math.abs(h)<=Math.pow(2,53)&&(h+=Math.pow(2,53)));0<=t&&(n=!0,q=q?2:65535>=q?4:4294967295>=q?8:9),q+=E.length);q-=E.length;do k=16,Number.isNaN(h)||(k=h&D-1,h=Math.trunc(h/D)),n||!g||k||h?g=J[k]+g:(E&&(g=E+g,E=""),0":62,"?":63,"@":64,Ue:65,Ml:66,Ui:67,gm:68,E:69,im:70,jm:71,lm:72,nm:73, -qm:74,ym:75,zm:76,Am:77,Bm:78,Cm:79,Dm:80,Q:81,Em:82,Fm:83,Gm:84,Hm:85,Im:86,Km:87,Lm:88,Mm:89,mh:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,a:97,b:98,c:99,d:100,e:101,f:102,uj:103,wj:104,xj:105,Lj:106,k:107,Mj:108,Rj:109,n:110,Xk:111,p:112,q:113,r:114,yl:115,t:116,Cl:117,Dl:118,w:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126,hm:127},Ja={Comma:188,Period:190,Semicolon:186,Quote:222,BracketLeft:219,BracketRight:221,Backquote:192,Backslash:220,Minus:189,Equal:187,AltLeft:18,AltRight:18,CapsLock:20, +26,128],2494464:[203,2,12,512],5242880:[256,2,40,256],10485760:[512,2,40,256]},u={Rp:0,Nl:1,Ol:2,Pl:3,Ql:4,Rl:5,Sl:6,Tl:7,Wi:8,ih:9,jh:10,Ul:11,Vl:12,kh:13,Wl:14,Xl:15,Yl:16,Zl:17,$l:18,am:19,Xi:20,bm:21,cm:22,dm:23,em:24,fm:25,Yi:26,Sp:27," ":32,"!":33,'"':34,"#":35,$:36,"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,Ve:65,Ml:66,Vi:67,gm:68,E:69,im:70,jm:71,lm:72,nm:73, +qm:74,ym:75,zm:76,Am:77,Bm:78,Cm:79,Dm:80,Q:81,Em:82,Fm:83,Gm:84,Hm:85,Im:86,Km:87,Lm:88,Mm:89,nh:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,a:97,b:98,c:99,d:100,e:101,f:102,uj:103,wj:104,xj:105,Lj:106,k:107,Mj:108,Rj:109,n:110,Xk:111,p:112,q:113,r:114,yl:115,t:116,Cl:117,Dl:118,w:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126,hm:127},Ja={Comma:188,Period:190,Semicolon:186,Quote:222,BracketLeft:219,BracketRight:221,Backquote:192,Backslash:220,Minus:189,Equal:187,AltLeft:18,AltRight:18,CapsLock:20, ControlLeft:17,ControlRight:17,OSLeft:91,OSRight:93,ShiftLeft:16,ShiftRight:16,Enter:13,Space:32,Tab:9,Delete:46,End:35,Home:36,Insert:45,PageDown:34,PageUp:33,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Escape:27,PrintScreen:44,ScrollLock:145,Pause:19,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,Numpad0:96,Numpad1:97,Numpad2:98,Numpad3:99,Numpad4:100,Numpad5:101,Numpad6:102,Numpad7:103,Numpad8:104,Numpad9:105,NumpadAdd:107,NumpadSubtract:109, NumpadMultiply:106,NumpadDivide:111,NumpadDecimal:110,NumpadEnter:Ia},Ia=2013,Ka={};Ka[173]=u["-"];Ka[186]=u[";"];Ka[187]=u["="];Ka[189]=u["-"];Ka[188]=u[","];Ka[190]=u["."];Ka[191]=u["/"];Ka[192]=u["`"];Ka[219]=u["["];Ka[220]=u["\\"];Ka[221]=u["]"];Ka[222]=u["'"];var La={};La[u["1"]]=u["!"];La[u["2"]]=u["@"];La[u["3"]]=u["#"];La[u["4"]]=u.$;La[u["5"]]=u["%"];La[u["6"]]=u["^"];La[u["7"]]=u["&"];La[u["8"]]=u["*"];La[u["9"]]=u["("];La[u["0"]]=u[")"];La[186]=u[":"];La[187]=u["+"];La[188]=u["<"]; La[189]=u._;La[190]=u[">"];La[191]=u["?"];La[192]=u["~"];La[219]=u["{"];La[220]=u["|"];La[221]=u["}"];La[222]=u['"'];La[173]=u._;La[61]=u["+"];La[59]=u[":"]; -function Ma(a){var b=null,c=0==a.indexOf(Na)?ya.files:null;if(c){a=a.slice(Na.length+1).split("/");var d,e;for(d=0;d=b&&(c=a.match(/(-?[0-9]+)B([0-9]*)/))&& (a=c[1],e=35-((c[2]||35)&255));if((b&&10!=b?16==b?null!==a.match(/^-?[0-9a-f]+$/i):8==b?null!==a.match(/^-?[0-7]+$/):2==b&&null!==a.match(/^-?[01]+$/):null!==a.match(/^-?[0-9]+$/))&&!isNaN(f=parseInt(a,b))){e&&(0>f&&(f+=Math.pow(2,36)),f=0a&&-1a&&(a+=Math.pow(b,c)),a>=Math.pow(b,c)&&(c=Math.ceil(Math.log(a)/Math.log(b))));for(var g=e||-1;0=h?48:55;f=String.fromCharCode(h)+f;a=Math.trunc(a/b)}g--}return(void 0===d?"":d)+f}function Sa(a,b,c){b?36=b?8:262143>=b?18:36);return Qa(a,2,b,"",c)} @@ -88,7 +88,7 @@ function Ta(a,b,c){b?12=b?6:16777215>=b?8:12) function Ya(a,b){var c=a,d=a.lastIndexOf("/");0<=d&&(c=a.substr(d+1));d=c.indexOf("&");0"'$]/g,function(b){return cb[b]})}function eb(a,b){return fb("%"+b+"."+Math.abs(b)+"s",a)} function gb(a){return String.prototype.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function hb(a){var b;a!=ib&&a!=jb&&(b=lb[a]);return b=b?"<"+b+">":String.fromCharCode(a)} var cb={"&":"&","<":"<",">":">",'"':""","'":"'",$:"$"},lb={0:"NUL",1:"SOH",2:"STX",3:"ETX",4:"EOT",5:"ENQ",6:"ACK",7:"BEL",8:"BS",9:"TAB",10:"LF",11:"VT",12:"FF",13:"CR",14:"SO",15:"SI",16:"DLE",17:"XON",18:"DC2",19:"XOFF",20:"DC4",21:"NAK",22:"SYN",23:"ETB",24:"CAN",25:"EM",26:"SUB",27:"ESC",28:"FS",29:"GS",30:"RS",31:"US",127:"DEL"},jb=10,ib=13,ob=new Ba,fb=ob.B.bind(ob); -function pb(a,b,c){var d=0,e=a.length,f=0;for(void 0===c&&(c=function(k,l){return k>l?1:k>1,h=void 0;h=c(b,a[g]);0c&&a.splice(-(c+1),0,b)}function rb(a,b){var c=0,d=1,e;for(e in a){if(d>=arguments.length)break;var f=a[e],g=arguments[d++];c=c&~f.Jh|g<>a.shift} +function pb(a,b,c){var d=0,e=a.length,f=0;for(void 0===c&&(c=function(k,l){return k>l?1:k>1,h=void 0;h=c(b,a[g]);0c&&a.splice(-(c+1),0,b)}function rb(a,b){var c=0,d=1,e;for(e in a){if(d>=arguments.length)break;var f=a[e],g=arguments[d++];c=c&~f.Kh|g<>a.shift} function ub(a,b){if(Array.prototype.indexOf)return a.indexOf(b,c);var c=c||0;0>c&&(c+=a.length);0>c&&(c=0);for(var d=a.length;ca?(this.Hc="PCjs",this.Db=this.id):(this.Hc=this.id.substr(0,a),this.Db=this.id.substr(a+1));this.flags={ready:!1,If:!1,uh:!1,Nf:!1,fc:!1,Se:!1,error:!1};this.Ag=null;this.flags.error=!1;this.uc=c||0;this.ca=this.G=this.la=this.ua=null;ya.components.push(this)} +function dc(a,b,c){this.type=a;b||(b={id:"",name:""});this.name=b.name;this.aj=b.comment;this.Ci=b;++ec;this.id=this.id=b.id||"";this.exports={};this.ia=this.bindings={};a=this.id.indexOf(".");0>a?(this.Ic="PCjs",this.Eb=this.id):(this.Ic=this.id.substr(0,a),this.Eb=this.id.substr(a+1));this.flags={ready:!1,Jf:!1,vh:!1,Of:!1,hc:!1,Te:!1,error:!1};this.Bg=null;this.flags.error=!1;this.vc=c||0;this.ca=this.G=this.la=this.ua=null;ya.components.push(this)} function fc(a,b,c){ya.machines[a]&&b&&(ya.machines[a][b]=c,"parms"==b&&"string"==typeof c&&(ya.machines[a].config=eval("("+c+")")))}function gc(){return Date.now()||+new Date}function xb(a){var b=qa.apply(1,arguments),c=0;"number"==typeof a&&(c=a,a=b.shift());if(68719476736<=c&&1099511627776>=c){var d=!1;1099511627776==c?(d=!0,a="Error: "+a):549755813888==c?(d=!0,a="Warning: "+a):274877906944==c&&(d=!0);b=fb.apply(Oa,[a].concat(da(b))).trim();d?Ab(b):console.log(b)}} function hc(a){xb(1099511627776,a)}function Ab(a){r.alert&&r.alert(a);console.log(a)}function ic(a){var b=!1;r.confirm&&(b=r.confirm(a));return b}function jc(a,b){a.value+=b;b=a.value;8192e?d+(b+"\n"):d.substr(0,e)+c+d.substr(e+b.length);8192c.indexOf(".")&&(b.id=a+"."+c)}return b} function oc(a,b,c){b=void 0===b?"":b;c=void 0===c?wa:c;var d=[];b&&(a+="-"+b,"machine"!=b&&(a+="-object"));if(ua)if(c.getElementsByClassName)d=c.getElementsByClassName(a);else{if(c.getElementsByTagName){b=c.getElementsByTagName("*");var e=new RegExp("(^| )"+a+"( |$)");a=0;for(c=b.length;a?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\u00c7\u00fc\u00e9\u00e2\u00e4\u00e0\u00e5\u00e7\u00ea\u00eb\u00e8\u00ef\u00ee\u00ec\u00c4\u00c5\u00c9\u00e6\u00c6\u00f4\u00f6\u00f2\u00fb\u00f9\u00ff\u00d6\u00dc\u00a2\u00a3\u00a5\u20a7\u0192\u00e1\u00ed\u00f3\u00fa\u00f1\u00d1\u00aa\u00ba\u00bf\u2310\u00ac\u00bd\u00bc\u00a1\u00ab\u00bb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\u00df\u0393\u03c0\u03a3\u03c3\u00b5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\u00b1\u2265\u2264\u2320\u2321\u00f7\u2248\u00b0\u2219\u00b7\u221a\u207f\u00b2\u25a0\u00a0".split(""), +var Kc={Vg:4,zc:5,Vd:6,bd:7,cd:8,hb:9,bc:11,cc:12,Oe:4,Vj:60,Wj:83,qc:3,Rb:9,Kc:16,Ug:1,$j:19,bk:28,dk:16,ck:21,ak:37,Yj:2,Th:9,Zj:5,Xj:33,Vh:10,Uh:8,Tf:3,Sf:15,sk:51,Wh:1,tk:2,uk:4,rk:32,Xh:15,wk:15,$a:16,ab:4,yk:11,xk:18,vk:24,dc:4,zk:2,vf:16,Ak:17,bi:18,Bk:19,ai:5,ci:6,Gk:2,Fk:8,Dk:9,Ek:10,Ck:10,di:10,ei:10,fk:80,hk:124,ek:86,gk:134,jk:101,lk:145,ik:107,kk:151,Ik:70,Kk:93,Hk:76,Jk:104,nk:80,qk:108,mk:86,pk:114,Vf:3,Uf:16,ji:10,ii:8,Lk:51,rc:8,Mk:17,Nk:36,Tc:11,Ok:16,Pe:10,rd:2,Qh:18,Rh:7,Sh:15, +Yh:12,Zh:7,$h:11,fi:18,gi:7,hi:15,ki:15,li:7,mi:13,ri:11,si:7,ti:8,Pk:8,Sk:12,Qk:18,Rk:17,Tk:15,oi:8,ni:20,pi:2,wi:3,Wf:9,vi:5,ui:11,yi:4,xi:17,Uk:11},Lc={Vg:0,zc:0,Vd:0,bd:0,cd:0,hb:0,bc:1,cc:1,Oe:3,Vj:14,Wj:16,qc:2,Rb:7,Kc:7,Ug:0,$j:7,bk:13,dk:7,ck:11,ak:16,Yj:3,Th:6,Zj:2,Xj:13,Vh:5,Uh:5,Tf:2,Sf:7,sk:23,Wh:0,tk:1,uk:3,rk:17,Xh:7,wk:11,$a:7,ab:3,yk:7,xk:11,vk:15,dc:2,zk:3,vf:7,Ak:8,bi:8,Bk:8,ai:4,ci:4,Gk:2,Fk:3,Dk:5,Ek:2,Ck:3,di:5,ei:3,fk:14,hk:22,ek:17,gk:25,jk:17,lk:25,ik:20,kk:28,Ik:13,Kk:21, +Hk:16,Jk:24,nk:13,qk:21,mk:16,pk:24,Vf:2,Uf:7,ji:5,ii:5,Lk:19,rc:5,Mk:5,Nk:17,Tc:3,Ok:5,Pe:3,rd:0,Qh:8,Rh:5,Sh:9,Yh:5,Zh:5,$h:4,fi:5,gi:5,hi:4,ki:7,li:5,mi:8,ri:3,si:4,ti:3,Pk:11,Sk:11,Qk:15,Rk:15,Tk:7,oi:5,ni:8,pi:0,wi:2,Wf:6,vi:3,ui:6,yi:3,xi:5,Uk:5},Mc="\x00\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\u00b6\u00a7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\u00c7\u00fc\u00e9\u00e2\u00e4\u00e0\u00e5\u00e7\u00ea\u00eb\u00e8\u00ef\u00ee\u00ec\u00c4\u00c5\u00c9\u00e6\u00c6\u00f4\u00f6\u00f2\u00fb\u00f9\u00ff\u00d6\u00dc\u00a2\u00a3\u00a5\u20a7\u0192\u00e1\u00ed\u00f3\u00fa\u00f1\u00d1\u00aa\u00ba\u00bf\u2310\u00ac\u00bd\u00bc\u00a1\u00ab\u00bb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\u00df\u0393\u03c0\u03a3\u03c3\u00b5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\u00b1\u2265\u2264\u2320\u2321\u00f7\u2248\u00b0\u2219\u00b7\u221a\u207f\u00b2\u25a0\u00a0".split(""), Nc=["XT","AT","COMPAQ"],Oc=[{0:[306,2],1:[375,8],2:[306,6],3:[306,4]},{0:[1024,16,21,2048],1:[306,4],2:[615,4],3:[615,6],4:[940,8],5:[940,6],6:[615,4],7:[462,8],8:[733,5],9:[900,15],10:[820,3],11:[855,5],12:[855,7],13:[306,8],14:[733,7],16:[612,4],17:[977,5],18:[977,7],19:[1024,7],20:[733,5],21:[733,7],22:[733,5],23:[306,4]},{0:[1024,16,21,2048],1:[306,4],2:[615,4],3:[615,6],4:[1023,8],5:[940,6],6:[697,5],7:[462,8],8:[925,5],9:[900,15],10:[980,5],11:[925,7],12:[925,9],13:[612,8],14:[980,4],16:[612, 4],17:[980,5],18:[966,6],19:[1023,8],20:[733,5],21:[733,7],22:[768,6],23:[771,6],24:[966,14],25:[966,16],26:[1023,14],27:[966,10],28:[771,3],29:[578,4],30:[615,4,25],31:[615,8,25],32:[966,3,34],33:[966,5,34],34:[966,7,34],35:[966,8,34],36:[966,9,34],37:[966,5,34],38:[1023,9,33],39:[1023,11,33],40:[1023,13,33],41:[1023,15,33],42:[1023,16,34],43:[756,4,26],44:[756,2,26],45:[768,4,26],46:[768,2,26],47:[966,5,25]}],Pc={16:{0:"set mode (@AL)",1:"set cursor type (start=@CH,end=@CL)",2:"set cursor pos (row=@DH,col=@DL,page=@BH)", 3:"read cursor pos (page=@BH)",4:"read light pen",5:"set display page (@AL)",6:"scroll up (lines=@AL)",7:"scroll down (lines=@AL)",8:"read character (page=@BH)",9:"write char/attr (@AL,attr=@BL,count=@CX)",10:"write char (@AL,count=@CX)",11:"set palette (id=@BH,color=@BL)",12:"write dot (row=@DX,col=@CX)",13:"read dot (row=@DX,col=@CX)",14:"write tty (@AL)"},19:{0:"disk reset",1:"get status",2:"read drive @DL (@CH:@DH:@CL,@AL) into @ES:@BX",3:"write drive @DL (@CH:@DH:@CL,@AL) from @ES:@BX",4:"verify drive @DL (@CH:@DH:@CL,@AL)", @@ -142,227 +142,240 @@ Nc=["XT","AT","COMPAQ"],Oc=[{0:[306,2],1:[375,8],2:[306,6],3:[306,4]},{0:[1024,1 54:"get free disk space of drive @DL",55:"get(0)/set(1) switch character @DL (@AL)",56:"get country-specific information",57:"create subdirectory $@DS:@DX",58:"remove subdirectory $@DS:@DX",59:"set current directory $@DS:@DX",60:"create or truncate file $@DS:@DX with attributes @CX",61:"open file $@DS:@DX with mode @AL",62:"close file @BX",63:"read @CX bytes from file @BX into buffer @DS:@DX",64:"write @CX bytes to file @BX from buffer @DS:@DX",65:"delete file $@DS:@DX",66:"set position @CX:@DX of file @BX relative to @AL", 67:"get(0)/set(1) attributes @CX of file $@DS:@DX (@AL)",68:"get device information (IOCTL)",69:"duplicate file handle @BX",70:"force file handle @CX to duplicate file handle @BX",71:"get current directory (DS:SI) for drive @DL",72:"allocate memory segment with @BX paragraphs",73:"free memory segment @ES",74:"resize memory segment @ES to @BX paragraphs",75:"load program $@DS:@DX using parameter block @ES:@BX",76:"terminate with return code @AL",77:"get return code (AL)",78:"find first matching file $@DS:@DX with attributes @CX", 79:"find next matching file",80:"set current PSP @BX",81:"get current PSP (bx)",82:"get system variables (ES:BX)",83:"translate BPB @DS:@SI to DPB (ES:BP)",84:"get verify flag (AL)",85:"create child PSP at segment @DX",86:"rename file $@DS:@DX to $@ES:@DI",87:"get(0)/set(1) file @BX date @DX and time @CX (@AL)",88:"get(0)/set(1) memory allocation strategy (@AL)",89:"get extended error information",90:"create temporary file $@DS:@DX with attributes @CX",91:"create file $@DS:@DX with attributes @CX", -92:"lock(0)/unlock(1) file @BX region @CX:@DX length @SI:@DI (@AL)",93:"critical error information (@AL)",96:"get fully-qualified filename from $@DS:@SI",99:"get lead byte table (@AL)",108:"extended open file $@DS:@SI"},65:{79:"check debugger loaded"}},Qc={Jm:32,VMM:{id:1,tj:"Get_VMM_Version Get_Cur_VM_Handle Test_Cur_VM_Handle Get_Sys_VM_Handle Test_Sys_VM_Handle Validate_VM_Handle Get_VMM_Reenter_Count Begin_Reentrant_Execution End_Reentrant_Execution Install_V86_Break_Point Remove_V86_Break_Point Allocate_V86_Call_Back Allocate_PM_Call_Back Call_When_VM_Returns Schedule_Global_Event Schedule_VM_Event Call_Global_Event Call_VM_Event Cancel_Global_Event Cancel_VM_Event Call_Priority_VM_Event Cancel_Priority_VM_Event Get_NMI_Handler_Addr Set_NMI_Handler_Addr Hook_NMI_Event Call_When_VM_Ints_Enabled Enable_VM_Ints Disable_VM_Ints Map_Flat Map_Lin_To_VM_Addr Adjust_Exec_Priority Begin_Critical_Section End_Critical_Section End_Crit_And_Suspend Claim_Critical_Section Release_Critical_Section Call_When_Not_Critical Create_Semaphore Destroy_Semaphore Wait_Semaphore Signal_Semaphore Get_Crit_Section_Status Call_When_Task_Switched Suspend_VM Resume_VM No_Fail_Resume_VM Nuke_VM Crash_Cur_VM Get_Execution_Focus Set_Execution_Focus Get_Time_Slice_Priority Set_Time_Slice_Priority Get_Time_Slice_Granularity Set_Time_Slice_Granularity Get_Time_Slice_Info Adjust_Execution_Time Release_Time_Slice Wake_Up_VM Call_When_Idle Get_Next_VM_Handle Set_Global_Time_Out Set_VM_Time_Out Cancel_Time_Out Get_System_Time Get_VM_Exec_Time Hook_V86_Int_Chain Get_V86_Int_Vector Set_V86_Int_Vector Get_PM_Int_Vector Set_PM_Int_Vector Simulate_Int Simulate_Iret Simulate_Far_Call Simulate_Far_Jmp Simulate_Far_Ret Simulate_Far_Ret_N Build_Int_Stack_Frame Simulate_Push Simulate_Pop _HeapAllocate _HeapReAllocate _HeapFree _HeapGetSize _PageAllocate _PageReAllocate _PageFree _PageLock _PageUnLock _PageGetSizeAddr _PageGetAllocInfo _GetFreePageCount _GetSysPageCount _GetVMPgCount _MapIntoV86 _PhysIntoV86 _TestGlobalV86Mem _ModifyPageBits _CopyPageTable _LinMapIntoV86 _LinPageLock _LinPageUnLock _SetResetV86Pageable _GetV86PageableArray _PageCheckLinRange _PageOutDirtyPages _PageDiscardPages _GetNulPageHandle _GetFirstV86Page _MapPhysToLinear _GetAppFlatDSAlias _SelectorMapFlat _GetDemandPageInfo _GetSetPageOutCount Hook_V86_Page _Assign_Device_V86_Pages _DeAssign_Device_V86_Pages _Get_Device_V86_Pages_Array MMGR_SetNULPageAddr _Allocate_GDT_Selector _Free_GDT_Selector _Allocate_LDT_Selector _Free_LDT_Selector _BuildDescriptorDWORDs _GetDescriptor _SetDescriptor _MMGR_Toggle_HMA Get_Fault_Hook_Addrs Hook_V86_Fault Hook_PM_Fault Hook_VMM_Fault Begin_Nest_V86_Exec Begin_Nest_Exec Exec_Int Resume_Exec End_Nest_Exec Allocate_PM_App_CB_Area Get_Cur_PM_App_CB Set_V86_Exec_Mode Set_PM_Exec_Mode Begin_Use_Locked_PM_Stack End_Use_Locked_PM_Stack Save_Client_State Restore_Client_State Exec_VxD_Int Hook_Device_Service Hook_Device_V86_API Hook_Device_PM_API System_Control Simulate_IO Install_Mult_IO_Handlers Install_IO_Handler Enable_Global_Trapping Enable_Local_Trapping Disable_Global_Trapping Disable_Local_Trapping List_Create List_Destroy List_Allocate List_Attach List_Attach_Tail List_Insert List_Remove List_Deallocate List_Get_First List_Get_Next List_Remove_First _AddInstanceItem _Allocate_Device_CB_Area _Allocate_Global_V86_Data_Area _Allocate_Temp_V86_Data_Area _Free_Temp_V86_Data_Area Get_Profile_Decimal_Int Convert_Decimal_String Get_Profile_Fixed_Point Convert_Fixed_Point_String Get_Profile_Hex_Int Convert_Hex_String Get_Profile_Boolean Convert_Boolean_String Get_Profile_String Get_Next_Profile_String Get_Environment_String Get_Exec_Path Get_Config_Directory OpenFile Get_PSP_Segment GetDOSVectors Get_Machine_Info GetSet_HMA_Info Set_System_Exit_Code Fatal_Error_Handler Fatal_Memory_Error Update_System_Clock Test_Debug_Installed Out_Debug_String Out_Debug_Chr In_Debug_Chr Debug_Convert_Hex_Binary Debug_Convert_Hex_Decimal Debug_Test_Valid_Handle Validate_Client_Ptr Test_Reenter Queue_Debug_String Log_Proc_Call Debug_Test_Cur_VM Get_PM_Int_Type Set_PM_Int_Type Get_Last_Updated_System_Time Get_Last_Updated_VM_Exec_Time Test_DBCS_Lead_Byte _AddFreePhysPage _PageResetHandlePAddr _SetLastV86Page _GetLastV86Page _MapFreePhysReg _UnmapFreePhysReg _XchgFreePhysReg _SetFreePhysRegCalBk Get_Next_Arena Get_Name_Of_Ugly_TSR Get_Debug_Options Set_Physical_HMA_Alias _GetGlblRng0V86IntBase _Add_Global_V86_Data_Area GetSetDetailedVMError Is_Debug_Chr Clear_Mono_Screen Out_Mono_Chr Out_Mono_String Set_Mono_Cur_Pos Get_Mono_Cur_Pos Get_Mono_Chr Locate_Byte_In_ROM Hook_Invalid_Page_Fault Unhook_Invalid_Page_Fault Set_Delete_On_Exit_File Close_VM Enable_Touch_1st_Meg Disable_Touch_1st_Meg Install_Exception_Handler Remove_Exception_Handler Get_Crit_Status_No_Block _GetLastUpdatedThreadExecTime _Trace_Out_Service _Debug_Out_Service _Debug_Flags_Service VMMAddImportModuleName VMM_Add_DDB VMM_Remove_DDB Test_VM_Ints_Enabled _BlockOnID Schedule_Thread_Event Cancel_Thread_Event Set_Thread_Time_Out Set_Async_Time_Out _AllocateThreadDataSlot _FreeThreadDataSlot _CreateMutex _DestroyMutex _GetMutexOwner Call_When_Thread_Switched VMMCreateThread _GetThreadExecTime VMMTerminateThread Get_Cur_Thread_Handle Test_Cur_Thread_Handle Get_Sys_Thread_Handle Test_Sys_Thread_Handle Validate_Thread_Handle Get_Initial_Thread_Handle Test_Initial_Thread_Handle Debug_Test_Valid_Thread_Handle Debug_Test_Cur_Thread VMM_GetSystemInitState Cancel_Call_When_Thread_Switched Get_Next_Thread_Handle Adjust_Thread_Exec_Priority _Deallocate_Device_CB_Area Remove_IO_Handler Remove_Mult_IO_Handlers Unhook_V86_Int_Chain Unhook_V86_Fault Unhook_PM_Fault Unhook_VMM_Fault Unhook_Device_Service _PageReserve _PageCommit _PageDecommit _PagerRegister _PagerQuery _PagerDeregister _ContextCreate _ContextDestroy _PageAttach _PageFlush _SignalID _PageCommitPhys _Register_Win32_Services Cancel_Call_When_Not_Critical Cancel_Call_When_Idle Cancel_Call_When_Task_Switched _Debug_Printf_Service _EnterMutex _LeaveMutex Simulate_VM_IO Signal_Semaphore_No_Switch _ContextSwitch _PageModifyPermissions _PageQuery _EnterMustComplete _LeaveMustComplete _ResumeExecMustComplete _GetThreadTerminationStatus _GetInstanceInfo _ExecIntMustComplete _ExecVxDIntMustComplete Begin_V86_Serialization Unhook_V86_Page VMM_GetVxDLocationList VMM_GetDDBList Unhook_NMI_Event Get_Instanced_V86_Int_Vector Get_Set_Real_DOS_PSP Call_Priority_Thread_Event Get_System_Time_Address Get_Crit_Status_Thread Get_DDB Directed_Sys_Control _RegOpenKey _RegCloseKey _RegCreateKey _RegDeleteKey _RegEnumKey _RegQueryValue _RegSetValue _RegDeleteValue _RegEnumValue _RegQueryValueEx _RegSetValueEx _CallRing3 Exec_PM_Int _RegFlushKey _PageCommitContig _GetCurrentContext _LocalizeSprintf _LocalizeStackSprintf Call_Restricted_Event Cancel_Restricted_Event Register_PEF_Provider _GetPhysPageInfo _RegQueryInfoKey MemArb_Reserve_Pages Time_Slice_Sys_VM_Idle Time_Slice_Sleep Boost_With_Decay Set_Inversion_Pri Reset_Inversion_Pri Release_Inversion_Pri Get_Thread_Win32_Pri Set_Thread_Win32_Pri Set_Thread_Static_Boost Set_VM_Static_Boost Release_Inversion_Pri_ID Attach_Thread_To_Group Detach_Thread_From_Group Set_Group_Static_Boost _GetRegistryPath _GetRegistryKey Cleanup_Thread_State _RegRemapPreDefKey End_V86_Serialization _Assert_Range _Sprintf _PageChangePager _RegCreateDynKey _RegQueryMultipleValues Boost_Thread_With_VM Get_Boot_Flags Set_Boot_Flags _lstrcpyn _lstrlen _lmemcpy _GetVxDName Force_Mutexes_Free Restore_Forced_Mutexes _AddReclaimableItem _SetReclaimableItem _EnumReclaimableItem Time_Slice_Wake_Sys_VM VMM_Replace_Global_Environment Begin_Non_Serial_Nest_V86_Exec Get_Nest_Exec_Status Open_Boot_Log Write_Boot_Log Close_Boot_Log EnableDisable_Boot_Log _Call_On_My_Stack Get_Inst_V86_Int_Vec_Base _lstrcmpi _strupr Log_Fault_Call_Out _AtEventTime".split(" ")}, -DEBUG:{id:2},VPICD:{id:3},VDMAD:{id:4},VTD:{id:5},V86MMGR:{id:6},PAGESWAP:{id:7},PARITY:{id:8},REBOOT:{id:9},VDD:{id:10},VSD:{id:11},VMD:{id:12},VKD:{id:13},VCD:{id:14},VPD:{id:15},BLOCKDEV:{id:16},VMCPD:{id:17},EBIOS:{id:18},BIOSXLAT:{id:19},VNETBIOS:{id:20},DOSMGR:{id:21},WINLOAD:{id:22},SHELL:{id:23},VMPOLL:{id:24},VPROD:{id:25},DOSNET:{id:26},VFD:{id:27},VDD2:{id:28},WINDEBUG:{id:29},TSRLOAD:{id:30},BIOSHOOK:{id:31},INT13:{id:32},PAGEFILE:{id:33},SCSI:{id:34},MCA_POS:{id:35},SCSIFD:{id:36},VPEND:{id:37}, -APM:{id:38},VXDLDR:{id:39},NDIS:{id:40},BIOS_EXT:{id:41},VWIN32:{id:42},VCOMM:{id:43},SPOOLER:{id:44},WIN32S:{id:45},DEBUGCMD:{id:46},CONFIGMG:{id:51},DWCFGMG:{id:52},SCSIPORT:{id:53},VFBACKUP:{id:54},ENABLE:{id:55},VCOND:{id:56},ISAPNP:{id:60},BIOS:{id:61},IFSMgr:{id:64},VCDFSD:{id:65},MRCI2:{id:66},PCI:{id:67},PELOADER:{id:68},EISA:{id:69},DRAGCLI:{id:70},DRAGSRV:{id:71},PERF:{id:72},AWREDIR:{id:73},ETEN:{id:96},CHBIOS:{id:97},VMSGD:{id:98},VPPID:{id:99},VIME:{id:100},VHBIOSD:{id:101}}; -function Rc(){this.A=[void 0,void 0,void 0,void 0];this.B=null;this.A[0]=256*Math.random()|0;this.A[1]=256*Math.random()|0;this.A[2]=256*Math.random()|0;this.A[3]=255;this.B=null}Rc.prototype.toString=function(){this.B||(this.B="#"+v(this.A[0],2)+v(this.A[1],2)+v(this.A[2],2));return this.B};function Sc(a,b,c,d){this.x=a;this.y=b;this.cx=c;this.A=d}Sc.prototype.contains=function(a,b){return a>=this.x&&a=this.y&&ba.Re&&(a.ea||a.canvas)&&a.G&&(a.Re=gd(a.G,a.id,function(){hd(a)},1E3/id))} -m.ec=function(a,b){b||jd();this.canvas&&(this.aa=!0);return!0};m.dc=function(){return!0};m.Qd=function(a,b){a.button||(this.O=b?0:-1,kd(this,a,b))};m.sf=function(a){kd(this,a)}; -function kd(a,b,c){var d=ad/a.canvas.offsetWidth,e=dd/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect();d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.O||(a.O=Math.abs(a.I-d)>Math.abs(a.K-b)?1:2),1==a.O?b=a.K:2==a.O&&(d=a.I));a.I=d;a.K=b;if(0<=d&&d=this.x&&a=this.y&&ba.Se&&(a.ea||a.canvas)&&a.G&&(a.Se=gd(a.G,a.id,function(){hd(a)},1E3/id))} +m.fc=function(a,b){b||jd();this.canvas&&(this.aa=!0);return!0};m.ec=function(){return!0};m.Rd=function(a,b){a.button||(this.O=b?0:-1,kd(this,a,b))};m.tf=function(a){kd(this,a)}; +function kd(a,b,c){var d=ad/a.canvas.offsetWidth,e=dd/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect();d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.O||(a.O=Math.abs(a.I-d)>Math.abs(a.K-b)?1:2),1==a.O?b=a.K:2==a.O&&(d=a.I));a.I=d;a.K=b;if(0<=d&&dd&&(f=d);c=f;break a}c=-1}-1!==c&&(c&=-16,c!=a.ba&&(md(a,c,!0),a.ba=c))}} -function hd(a){for(var b in a.U)Uc(a.U[b]);if(a.aa){nd(a,od,a.F,a.T,a.canvas.style.color);if(a.ja){b=a.la;var c=a.A,d,e;null==d&&(d=0);null==e&&(e=b.T-d|0);null==c&&(c={vh:0,ee:0,nh:[]});var f=d>>>12;d=d+e-1>>>12;c.vh=0;for(c.ee=0;f<=d;)e=b.W[f],c.vh+=e.size,e.size&&(c.nh.push(rb(ld,f,0,0,e.type)),c.ee++),f++;a.A=c;a.qa=a.A.ee*a.la.A/($c*ed);b=0;a.A.lj=0;a.A.Ef||(a.A.Ef=[]);c=-1;d=f=0;for(var g=-1;f=l>>2);p?(k=new Sc(h.x,h.y,h.cx,h.A*k/l|0),h.y+=k.A,h.A-=k.A):(k=new Sc(h.x,h.y,h.cx*k/l|0,h.A),h.x+=k.cx,h.cx-=k.cx);g.call(e,k);f-=d}for(b=0;b>1),e=g.y+(g.A>>1),h=g.A,g.cx>1,f.M+=(f.N>>1)-2,vd(f,c),f.ga&&(f.H.restore(),f.ga=!1)}}else vd(a,"This space intentionally left blank");a.context.drawImage(a.F,0,0,a.F.width,a.F.height,a.Na,a.Sa, -a.Y,a.Ca);a.aa=!1}}function pd(a,b,c,d){a.A.Ef[a.A.lj++]={an:b,ee:c,type:d};return rb(ld,b,c,0,d)} -function md(a,b,c){if(a.context&&a.B&&a.L){var d=bd-cd,e=a.B.width;a.L.fillStyle=wd;a.L.fillRect(0,d,e,cd);nd(a,d+od,a.B,a.L,a.canvas.style.color);xd(a,24);if(null==b)vd(a,"Mouse over memory to dump");else{vd(a,v(b,8,!0),null,0,1);for(var f=1;16>=f;f++){for(var g="",h=1;8>=h;h++){var k=a.la;var l=b++;k=k.W[(l&k.C)>>>12].Be(l&k.B,l);vd(a,v(k,2),null,1);g+=32<=k&&128>k?String.fromCharCode(k):"."}vd(a,g,null,0,1)}}c&&a.context.drawImage(a.B,0,d,e,cd,a.Ia,a.Oa,a.Aa,a.Ba)}} +function hd(a){for(var b in a.U)Uc(a.U[b]);if(a.aa){nd(a,od,a.F,a.T,a.canvas.style.color);if(a.ja){b=a.la;var c=a.A,d,e;null==d&&(d=0);null==e&&(e=b.T-d|0);null==c&&(c={wh:0,fe:0,oh:[]});var f=d>>>12;d=d+e-1>>>12;c.wh=0;for(c.fe=0;f<=d;)e=b.W[f],c.wh+=e.size,e.size&&(c.oh.push(rb(ld,f,0,0,e.type)),c.fe++),f++;a.A=c;a.qa=a.A.fe*a.la.A/($c*ed);b=0;a.A.mj=0;a.A.Ff||(a.A.Ff=[]);c=-1;d=f=0;for(var g=-1;f=l>>2);p?(k=new Sc(h.x,h.y,h.cx,h.A*k/l|0),h.y+=k.A,h.A-=k.A):(k=new Sc(h.x,h.y,h.cx*k/l|0,h.A),h.x+=k.cx,h.cx-=k.cx);g.call(e,k);f-=d}for(b=0;b>1),e=g.y+(g.A>>1),h=g.A,g.cx>1,f.M+=(f.N>>1)-2,vd(f,c),f.ga&&(f.H.restore(),f.ga=!1)}}else vd(a,"This space intentionally left blank");a.context.drawImage(a.F,0,0,a.F.width,a.F.height,a.Na,a.Ta, +a.Y,a.Ca);a.aa=!1}}function pd(a,b,c,d){a.A.Ff[a.A.mj++]={an:b,fe:c,type:d};return rb(ld,b,c,0,d)} +function md(a,b,c){if(a.context&&a.B&&a.L){var d=bd-cd,e=a.B.width;a.L.fillStyle=wd;a.L.fillRect(0,d,e,cd);nd(a,d+od,a.B,a.L,a.canvas.style.color);xd(a,24);if(null==b)vd(a,"Mouse over memory to dump");else{vd(a,v(b,8,!0),null,0,1);for(var f=1;16>=f;f++){for(var g="",h=1;8>=h;h++){var k=a.la;var l=b++;k=k.W[(l&k.C)>>>12].Ce(l&k.B,l);vd(a,v(k,2),null,1);g+=32<=k&&128>k?String.fromCharCode(k):"."}vd(a,g,null,0,1)}}c&&a.context.drawImage(a.B,0,d,e,cd,a.Ia,a.Oa,a.Aa,a.Ba)}} function nd(a,b,c,d,e){var f,g=a.Ka=10;a.D=g;a.M=b;a.N=a.oa=od;f||(f=a.ma||a.oa+"px "+td);a.P=a.ma=f;c&&(a.xa=c);d&&(a.H=d,a.za=e||"white")}function xd(a,b){a.W=a.xa.width/b|0}function yd(a,b){a.D=a.Ka;a.M+=(a.N+2)*(b||1)}function vd(a,b,c,d,e){a.H.font=a.P;a.H.fillStyle=a.za;a.H.fillText(b,a.D,a.M);a.D+=a.W;null!=c&&(16!=a.Fa?b=c.toString():(b=8>a.pa?"0x":"",b+=v(c,a.pa)),a.H.fillText(b,a.D,a.M),a.D+=a.W);d&&(a.D+=a.W*d);e&&yd(a,e)} -function jd(){for(var a=!1,b=oc("pcx86","panel"),c=0;c>2,ed=dd,fd=ad-$c,bd=dd,wd="black",cd=dd>>1,id=10;Vb(jd);function zd(){}zd.prototype.Cg=function(){return[]};zd.prototype.Eh=function(){return[]}; -function Ad(a,b,c){dc.call(this,"Busx86",a);this.G=b;this.ca=c;this.M=+a.busWidth||20;this.T=Math.pow(2,this.M);this.N=this.C=this.T-1|0;this.A=4096;this.Y=this.A>>2;this.B=this.A-1;this.L=this.T/this.A|0;this.O=this.L-1;this.D=[];this.F=[];this.I=this.K=!1;this.P=[];this.U=[];a=new Bd;Cd(a,this.ca);this.W=Array(this.L);for(b=0;b>>12;0g&&(p=g);if(k&&k.size){if(k.type==d&&k.controller==e){if(f+g<=k.va)return k.Te+=k.va-f,k.va=f,!0;if(f>=k.va+k.Te){p=k.size-(f-l);p>g&&(p=g);k.Te=f-k.va+p;f=l+a.A;g-=p;h++;continue}}return Fd(a,Gd,f,g)}f=new Bd(f,p,a.A,d,e);Cd(f,a.ca,k);a.W[h++]=f;f=l+a.A;g-=p}return 0>=g?(Hd(a.G),a.G.flags.eb||(e=c/1024|0,a.J(137438953472,"%s %s at 0x%X\n",e?e+"Kb":c+" bytes",ud[d],b)),!0):Fd(a,Id,b,c)} -function Jd(a,b,c,d){var e=!0,f=b>>>12;for(b=a.A-(b&a.B);0>>12;0>>12;0>>=12;0>>12;0>>12].Kc(a&this.B,a)};m.ub=function(a,b){this.W[(a&this.C)>>>12].tc(a&this.B,b&255,a)};function fe(a,b,c){a.W[(b&a.C)>>>12].hg(b&a.B,c&255,b)} -function ge(a,b,c){var d=b&a.B,e=(b&a.C)>>>12;d!=a.B?a.W[e].Bf(d,c&65535,b):(a.W[e++].tc(d,c&255,b),a.W[e&a.O].tc(0,c>>8&255,b+1))}function he(a,b,c){var d=b&a.B,e=(b&a.C)>>>12;d!=a.B?a.W[e].Ri(d,c&65535,b):(a.W[e++].hg(d,c&255,b),a.W[e&a.O].hg(0,c>>8&255,b+1))}function ie(a,b,c,d){void 0===d&&(d=0);for(var e in c){var f=a,g=+e+d,h=c[e].bind(b);if(void 0!==h)for(var k=+e+d;k<=g;k++)void 0!==f.D[k]?xb(549755813888,"input port "+Xa(k)+" already registered"):f.D[k]=[h,!1]}} +function jd(){for(var a=!1,b=oc("pcx86","panel"),c=0;c>2,ed=dd,fd=ad-$c,bd=dd,wd="black",cd=dd>>1,id=10;Vb(jd);function zd(){}zd.prototype.Dg=function(){return[]};zd.prototype.Fh=function(){return[]}; +function Ad(a,b,c){dc.call(this,"Busx86",a);this.G=b;this.ca=c;this.M=+a.busWidth||20;this.T=Math.pow(2,this.M);this.N=this.C=this.T-1|0;this.A=4096;this.Y=this.A>>2;this.B=this.A-1;this.L=this.T/this.A|0;this.O=this.L-1;this.D=[];this.F=[];this.I=this.K=!1;this.P=[];this.U=[];a=new Bd;Cd(a,this.ca);this.W=Array(this.L);for(b=0;b>>12;0g&&(p=g);if(k&&k.size){if(k.type==d&&k.controller==e){if(f+g<=k.va)return k.Ue+=k.va-f,k.va=f,!0;if(f>=k.va+k.Ue){p=k.size-(f-l);p>g&&(p=g);k.Ue=f-k.va+p;f=l+a.A;g-=p;h++;continue}}return Fd(a,Gd,f,g)}f=new Bd(f,p,a.A,d,e);Cd(f,a.ca,k);a.W[h++]=f;f=l+a.A;g-=p}return 0>=g?(Hd(a.G),a.G.flags.fb||(e=c/1024|0,a.J(137438953472,"%s %s at 0x%X\n",e?e+"Kb":c+" bytes",ud[d],b)),!0):Fd(a,Id,b,c)} +function Jd(a,b,c,d){var e=!0,f=b>>>12;for(b=a.A-(b&a.B);0>>12;0>>12;0>>=12;0>>12;0>>12].Lc(a&this.B,a)};m.vb=function(a,b){this.W[(a&this.C)>>>12].uc(a&this.B,b&255,a)};function fe(a,b,c){a.W[(b&a.C)>>>12].ig(b&a.B,c&255,b)} +function ge(a,b,c){var d=b&a.B,e=(b&a.C)>>>12;d!=a.B?a.W[e].Cf(d,c&65535,b):(a.W[e++].uc(d,c&255,b),a.W[e&a.O].uc(0,c>>8&255,b+1))}function he(a,b,c){var d=b&a.B,e=(b&a.C)>>>12;d!=a.B?a.W[e].Si(d,c&65535,b):(a.W[e++].ig(d,c&255,b),a.W[e&a.O].ig(0,c>>8&255,b+1))}function ie(a,b,c,d){void 0===d&&(d=0);for(var e in c){var f=a,g=+e+d,h=c[e].bind(b);if(void 0!==h)for(var k=+e+d;k<=g;k++)void 0!==f.D[k]?xb(549755813888,"input port "+Xa(k)+" already registered"):f.D[k]=[h,!1]}} function je(a,b,c,d){for(var e=0,f=0;0>>=f)&k;if(void 0!==g){if(g[0])g[0](b,l,e);a.ca&&a.K!=g[1]&&ne(a.ca,b,l)}else a.ca&&(Ic(a.ca,a,b,l,e),a.K&&ne(a.ca,b,l));f+=h<<3;b+=h;c-=h}}function Fd(a,b,c,d,e){a.J(e?2199023255552:0,"Memory block error (%d: %x,%x)\n",b,c,d);return!1}var Gd=1,Id=2,Rd=3,Qd=4,Ud=5,ld,oe={Wk:20,count:8,iq:1,type:3},pe=0,qe;for(qe in oe){var re=oe[qe];oe[qe]={Jh:(1<>>=f)&k;if(void 0!==g){if(g[0])g[0](b,l,e);a.ca&&a.K!=g[1]&&ne(a.ca,b,l)}else a.ca&&(Ic(a.ca,a,b,l,e),a.K&&ne(a.ca,b,l));f+=h<<3;b+=h;c-=h}}function Fd(a,b,c,d,e){a.J(e?2199023255552:0,"Memory block error (%d: %x,%x)\n",b,c,d);return!1}var Gd=1,Id=2,Rd=3,Qd=4,Ud=5,ld,oe={Wk:20,count:8,iq:1,type:3},pe=0,qe;for(qe in oe){var re=oe[qe];oe[qe]={Kh:(1<>1),this.Z=new Int32Array(this.buffer,0,c>>2),Sd(this,ce?de:ee)):Sd(this)}m=Bd.prototype; -m.Hh=function(a){this.va=a};m.save=function(){var a;if(this.controller)var b=null;else for(b=Array(this.size>>2),a=0;a>1),this.Z=new Int32Array(this.buffer,0,c>>2),Sd(this,ce?de:ee)):Sd(this)}m=Bd.prototype; +m.Ih=function(a){this.va=a};m.save=function(){var a;if(this.controller)var b=null;else for(b=Array(this.size>>2),a=0;a>1;for(b=0;b=this.Z.length);b++)this.Z[c++]=a[b]&65535,this.Z[c++]=a[b]>>16&65535}else for(c=this.C>>2,b=0;b=this.Z.length);b++)this.Z[c++]=a[b];this.flags|=Kd}return!0}if(this.size==a.length<<2){for(b=0;b>8,c)};m.Pi=function(a,b,c){this.tc(a++,b&255,c++);this.tc(a++,b>>8&255,c++);this.tc(a++,b>>16&255,c++);this.tc(a,b>>>24,c)};m.fp=function(a,b){this.ca&&null!=this.va&&He(this.ca,this.va+a)||this.G&&Ie(this.G,b,1,!1);return this.Be(a,b)}; -m.rp=function(a,b){this.ca&&null!=this.va&&He(this.ca,this.va+a,2)||this.G&&Ie(this.G,b,2,!1);return this.bg(a,b)};m.lp=function(a,b){this.ca&&null!=this.va&&He(this.ca,this.va+a,4)||this.G&&Ie(this.G,b,4,!1);return this.Fi(a,b)};m.Dp=function(a,b,c){this.ca&&null!=this.va&&Je(this.ca,this.va+a)||this.G&&Ie(this.G,c,1,!0);this.D?this.Af(a,b,c):this.hg(a,b,c)};m.Np=function(a,b,c){this.ca&&null!=this.va&&Je(this.ca,this.va+a,2)||this.G&&Ie(this.G,c,2,!0);this.D?this.Af(a,b,c):this.Ri(a,b,c)}; -m.Ip=function(a,b,c){this.ca&&null!=this.va&&Je(this.ca,this.va+a,4)||this.G&&Ie(this.G,c,4,!0);this.D?this.Af(a,b,c):this.K(a,b,c)};m.hp=function(a,b){this.xb.Z[this.A]|=this.F;this.yb.Z[this.B]|=this.F;return this.He.Kc(a,b)};m.tp=function(a,b){this.xb.Z[this.A]|=this.F;this.yb.Z[this.B]|=this.F;return this.He.ag(a,b)};m.np=function(a,b){this.xb.Z[this.A]|=this.F;this.yb.Z[this.B]|=this.F;return this.He.ke(a,b)}; -m.Fp=function(a,b,c){this.xb.Z[this.A]|=this.F;this.yb.Z[this.B]|=this.I;this.He.tc(a,b,c)};m.Pp=function(a,b,c){this.xb.Z[this.A]|=this.F;this.yb.Z[this.B]|=this.I;this.He.Bf(a,b,c)};m.Kp=function(a,b,c){this.xb.Z[this.A]|=this.F;this.yb.Z[this.B]|=this.I;this.He.ig(a,b,c)};m.ip=function(a,b){return Qe(this.G,b,!1).Kc(a,b)};m.up=function(a,b){return Qe(this.G,b,!1).ag(a,b)};m.pp=function(a,b){return Qe(this.G,b,!1).ke(a,b)};m.Gp=function(a,b,c){Qe(this.G,c,!0).tc(a,b,c)}; -m.Qp=function(a,b,c){Qe(this.G,c,!0).Bf(a,b,c)};m.Lp=function(a,b,c){Qe(this.G,c,!0).ig(a,b,c)};m.ep=function(a){return this.Wa[a]};m.pl=function(a){return this.Wa[a]};m.gp=function(a){this.xb.Z[this.A]|=32;this.yb.Z[this.B]|=32;this.Kc=this.pl;return this.Wa[a]};m.qp=function(a){return this.H.getUint16(a,!0)};m.ul=function(a){return a&1?this.Wa[a]|this.Wa[a+1]<<8:this.xe[a>>1]}; -m.sp=function(a){this.xb.Z[this.A]|=32;this.yb.Z[this.B]|=32;this.ag=this.ul;return a&1?this.Wa[a]|this.Wa[a+1]<<8:this.xe[a>>1]};m.kp=function(a){return this.H.getInt32(a,!0)};m.rl=function(a){return a&3?this.Wa[a]|this.Wa[a+1]<<8|this.Wa[a+2]<<16|this.Wa[a+3]<<24:this.Z[a>>2]};m.mp=function(a){this.xb.Z[this.A]|=32;this.yb.Z[this.B]|=32;this.ke=this.rl;return a&3?this.Wa[a]|this.Wa[a+1]<<8|this.Wa[a+2]<<16|this.Wa[a+3]<<24:this.Z[a>>2]};m.Cp=function(a,b){this.Wa[a]=b}; -m.Gl=function(a,b){this.Wa[a]=b};m.Ep=function(a,b){this.Wa[a]=b;this.xb.Z[this.A]|=32;this.yb.Z[this.B]|=96;this.tc=this.Gl};m.Mp=function(a,b){this.H.setUint16(a,b,!0)};m.Il=function(a,b){a&1?(this.Wa[a]=b,this.Wa[a+1]=b>>8):this.xe[a>>1]=b};m.Op=function(a,b){a&1?(this.Wa[a]=b,this.Wa[a+1]=b>>8):this.xe[a>>1]=b;this.xb.Z[this.A]|=32;this.yb.Z[this.B]|=96;this.Bf=this.Il};m.Hp=function(a,b){this.H.setInt32(a,b,!0)}; -m.Hl=function(a,b){a&3?(this.Wa[a]=b,this.Wa[a+1]=b>>8,this.Wa[a+2]=b>>16,this.Wa[a+3]=b>>24):this.Z[a>>2]=b};m.Jp=function(a,b){a&3?(this.Wa[a]=b,this.Wa[a+1]=b>>8,this.Wa[a+2]=b>>16,this.Wa[a+3]=b>>24):this.Z[a>>2]=b;this.xb.Z[this.A]|=32;this.yb.Z[this.B]|=96;this.ig=this.Hl};function Re(a){ce||(a=a<<24|a<<8&16711680|a>>8&65280|a>>>24);return a} +function Sd(a,b,c){b||(b=a.type==we?xe:a.type==ye?ze:Ae);Be(a,b,c);Ee(a,b,c)}function Be(a,b,c){c&&a.$e||(a.Lc=b[0]||a.sl,a.bg=b[2]||a.tl,a.le=b[4]||a.ql);if(c||void 0===c)a.Ce=b[0]||a.sl,a.cg=b[2]||a.tl,a.Gi=b[4]||a.ql}function Ee(a,b,c){c&&a.af||(a.uc=!a.D&&b[1]||a.Bf,a.Cf=!a.D&&b[3]||a.Ri,a.jg=!a.D&&b[5]||a.Qi);if(c||void 0===c)a.ig=b[1]||a.Bf,a.Si=b[3]||a.Ri,a.K=b[5]||a.Qi}m.yd=function(a,b,c){b?0===this.af++&&(c&&(this.G=c),Ee(this,Fe,!1)):0===this.$e++&&(c&&(this.G=c),Be(this,Fe,!1))}; +function Ge(a,b){b?0===--a.af&&(a.uc=a.D?a.Bf:a.ig,a.Cf=a.D?a.Ri:a.Si,a.jg=a.D?a.Qi:a.K):0===--a.$e&&(a.Lc=a.Ce,a.bg=a.cg,a.le=a.Gi)}function Cd(a,b,c){a.ca=b;a.$e=a.af=0;c&&(c.G&&(a.G=c.G),(a.$e=c.$e)&&Be(a,Fe,!1),(a.af=c.af)&&Ee(a,Fe,!1))}m.sl=function(a,b){this.ca&&this.ca.J(8194,"attempt to read invalid block %%%x\n",b);return 255};m.Bf=function(a,b,c){this.ca&&this.ca.J(8194,"attempt to write %#06x to invalid block %%%x\n",b,c)};m.tl=function(a,b){return this.Lc(a++,b++)|this.Lc(a,b)<<8}; +m.ql=function(a,b){return this.Lc(a++,b++)|this.Lc(a++,b++)<<8|this.Lc(a++,b++)<<16|this.Lc(a,b)<<24};m.Ri=function(a,b,c){this.uc(a++,b&255,c++);this.uc(a,b>>8,c)};m.Qi=function(a,b,c){this.uc(a++,b&255,c++);this.uc(a++,b>>8&255,c++);this.uc(a++,b>>16&255,c++);this.uc(a,b>>>24,c)};m.fp=function(a,b){this.ca&&null!=this.va&&He(this.ca,this.va+a)||this.G&&Ie(this.G,b,1,!1);return this.Ce(a,b)}; +m.rp=function(a,b){this.ca&&null!=this.va&&He(this.ca,this.va+a,2)||this.G&&Ie(this.G,b,2,!1);return this.cg(a,b)};m.lp=function(a,b){this.ca&&null!=this.va&&He(this.ca,this.va+a,4)||this.G&&Ie(this.G,b,4,!1);return this.Gi(a,b)};m.Dp=function(a,b,c){this.ca&&null!=this.va&&Je(this.ca,this.va+a)||this.G&&Ie(this.G,c,1,!0);this.D?this.Bf(a,b,c):this.ig(a,b,c)};m.Np=function(a,b,c){this.ca&&null!=this.va&&Je(this.ca,this.va+a,2)||this.G&&Ie(this.G,c,2,!0);this.D?this.Bf(a,b,c):this.Si(a,b,c)}; +m.Ip=function(a,b,c){this.ca&&null!=this.va&&Je(this.ca,this.va+a,4)||this.G&&Ie(this.G,c,4,!0);this.D?this.Bf(a,b,c):this.K(a,b,c)};m.hp=function(a,b){this.yb.Z[this.A]|=this.F;this.zb.Z[this.B]|=this.F;return this.Ie.Lc(a,b)};m.tp=function(a,b){this.yb.Z[this.A]|=this.F;this.zb.Z[this.B]|=this.F;return this.Ie.bg(a,b)};m.np=function(a,b){this.yb.Z[this.A]|=this.F;this.zb.Z[this.B]|=this.F;return this.Ie.le(a,b)}; +m.Fp=function(a,b,c){this.yb.Z[this.A]|=this.F;this.zb.Z[this.B]|=this.I;this.Ie.uc(a,b,c)};m.Pp=function(a,b,c){this.yb.Z[this.A]|=this.F;this.zb.Z[this.B]|=this.I;this.Ie.Cf(a,b,c)};m.Kp=function(a,b,c){this.yb.Z[this.A]|=this.F;this.zb.Z[this.B]|=this.I;this.Ie.jg(a,b,c)};m.ip=function(a,b){return Qe(this.G,b,!1).Lc(a,b)};m.up=function(a,b){return Qe(this.G,b,!1).bg(a,b)};m.pp=function(a,b){return Qe(this.G,b,!1).le(a,b)};m.Gp=function(a,b,c){Qe(this.G,c,!0).uc(a,b,c)}; +m.Qp=function(a,b,c){Qe(this.G,c,!0).Cf(a,b,c)};m.Lp=function(a,b,c){Qe(this.G,c,!0).jg(a,b,c)};m.ep=function(a){return this.Xa[a]};m.pl=function(a){return this.Xa[a]};m.gp=function(a){this.yb.Z[this.A]|=32;this.zb.Z[this.B]|=32;this.Lc=this.pl;return this.Xa[a]};m.qp=function(a){return this.H.getUint16(a,!0)};m.ul=function(a){return a&1?this.Xa[a]|this.Xa[a+1]<<8:this.ye[a>>1]}; +m.sp=function(a){this.yb.Z[this.A]|=32;this.zb.Z[this.B]|=32;this.bg=this.ul;return a&1?this.Xa[a]|this.Xa[a+1]<<8:this.ye[a>>1]};m.kp=function(a){return this.H.getInt32(a,!0)};m.rl=function(a){return a&3?this.Xa[a]|this.Xa[a+1]<<8|this.Xa[a+2]<<16|this.Xa[a+3]<<24:this.Z[a>>2]};m.mp=function(a){this.yb.Z[this.A]|=32;this.zb.Z[this.B]|=32;this.le=this.rl;return a&3?this.Xa[a]|this.Xa[a+1]<<8|this.Xa[a+2]<<16|this.Xa[a+3]<<24:this.Z[a>>2]};m.Cp=function(a,b){this.Xa[a]=b}; +m.Gl=function(a,b){this.Xa[a]=b};m.Ep=function(a,b){this.Xa[a]=b;this.yb.Z[this.A]|=32;this.zb.Z[this.B]|=96;this.uc=this.Gl};m.Mp=function(a,b){this.H.setUint16(a,b,!0)};m.Il=function(a,b){a&1?(this.Xa[a]=b,this.Xa[a+1]=b>>8):this.ye[a>>1]=b};m.Op=function(a,b){a&1?(this.Xa[a]=b,this.Xa[a+1]=b>>8):this.ye[a>>1]=b;this.yb.Z[this.A]|=32;this.zb.Z[this.B]|=96;this.Cf=this.Il};m.Hp=function(a,b){this.H.setInt32(a,b,!0)}; +m.Hl=function(a,b){a&3?(this.Xa[a]=b,this.Xa[a+1]=b>>8,this.Xa[a+2]=b>>16,this.Xa[a+3]=b>>24):this.Z[a>>2]=b};m.Jp=function(a,b){a&3?(this.Xa[a]=b,this.Xa[a+1]=b>>8,this.Xa[a+2]=b>>16,this.Xa[a+3]=b>>24):this.Z[a>>2]=b;this.yb.Z[this.A]|=32;this.zb.Z[this.B]|=96;this.jg=this.Hl};function Re(a){ce||(a=a<<24|a<<8&16711680|a>>8&65280|a>>>24);return a} var ue=0,be=2,we=5,ye=6,sd=["black","blue","green","cyan"],ud="NONE RAM ROM VIDEO H/W UNPAGED PAGED".split(" "),ve=0,Kd=1,Ld=2,te=0,Ae=[],Fe=[Bd.prototype.fp,Bd.prototype.Dp,Bd.prototype.rp,Bd.prototype.Np,Bd.prototype.lp,Bd.prototype.Ip],ze=[Bd.prototype.hp,Bd.prototype.Fp,Bd.prototype.tp,Bd.prototype.Pp,Bd.prototype.np,Bd.prototype.Kp],xe=[Bd.prototype.ip,Bd.prototype.Gp,Bd.prototype.up,Bd.prototype.Qp,Bd.prototype.pp,Bd.prototype.Lp],ee=[Bd.prototype.ep,Bd.prototype.Cp,Bd.prototype.qp,Bd.prototype.Mp, Bd.prototype.kp,Bd.prototype.Hp],de=[Bd.prototype.pl,Bd.prototype.Gl,Bd.prototype.ul,Bd.prototype.Il,Bd.prototype.rl,Bd.prototype.Hl],Se=[Bd.prototype.gp,Bd.prototype.Ep,Bd.prototype.sp,Bd.prototype.Op,Bd.prototype.mp,Bd.prototype.Jp]; -function Te(a,b){dc.call(this,"CPU",a,2);var c=a.multiplier||1;this.oe=a.cycles||b;this.Di=Math.round(1E3/Ue);this.Ei=this.Kg=this.Oc=c;this.Jg=Math.round(this.oe/1E4)/100;this.hd=this.se=this.Jg*this.Oc;this.flags.Mi=this.flags.eb=this.flags.jg=!1;this.flags.Ld=a.autoStart;this.flags.qj=!1;this.flags.cf=!1;this.ue=this.Id=0;this.ve=a.csStart;this.Hd=a.csInterval;this.Jd=a.csStop;this.Qa=[];this.Gd=0;this.aj=this.vp.bind(this)}pa(Te,dc);m=Te.prototype; -m.xc=function(a,b,c,d){this.ua=a;this.la=b;this.ca=d;for(b=0;b=a.Id&&(a.Id+=a.Hd,c=!0);0<=a.Jd&&a.Jd<=df(a)&&(a.Hd=a.Jd=-1,Ze(a),af(a),c=!0);c&&a.J("%d cycles: checksum=%x\n",df(a),a.ue)}} -m.zb=function(a,b,c){var d=this;a=!1;switch(b){case "power":case "reset":this.ia[b]=c;a=!0;break;case "run":this.ia[b]=c;c.onclick=function(){var e=d.flags.eb,f;if(f=d.ua)if(f=d.ua,f.flags.Se&&(f.flags.Se=!1,f.flags.Nf&&!f.flags.fc&&f.wf(ef)),f.flags.fc)f=!0;else{var g=null,h,k=qc(f.id);for(h=0;ha.Oc?b=a.Oc:1>b&&(b=1);a.km=Math.floor(a.oe/Ue*b);return a.Kg!==b?(a.Kg=b,!0):!1} -function df(a,b){var c=a.ud+a.kd+a.jd-a.A;b&&1a.Jg&&(c=Math.round(c/a.Oc));return c}function Ye(a){a.ud=a.kd=a.jd=a.A=0;Ze(a);ff(a,a.Ei)}function lf(a){return a.flags.eb&&a.hd?a.hd.toFixed(2)+"Mhz":"Stopped"}function gf(a){return a.se.toFixed(2)+"Mhz"} -function ff(a,b,c){var d=!0;if(void 0!==b){0b[1])&&(c=0d[1]||(d[1]-=b,0>=d[1]&&(d[1]=-1,d[3](),d[2]&&mf(a,c,d[2])))}}function of(a){var b=a.jd-a.A;a.jd=a.A=0;a.Ng+=b;a.kd+=b;return b} -m.vp=function(){this.Gd=0;if(this.flags.eb){kf(this);this.te=this.Ng=0;this.td=gc();this.zc||(this.zc=this.td);if(this.sd){var a=this.td-this.sd;a>this.Di&&(this.zc+=a,this.zc>this.td&&(this.zc=this.td))}try{this.flags.jg=!1;do{for(var b,c=this.flags.cf?1:this.oe*this.Kg|0,d=this.Qa.length-1;0<=d;d--){var e=this.Qa[d];0>e[1]||c>e[1]&&(c=e[1])}b=c;if(this.U){qf(this.U);var f=this.U;a=b;var g=f.Qa[0];if(g.Ke){var h=(df(f.G,f.O)-g.Dd)/f.Aa|0,k=rf(f,0)-h;g.mode==sf&&(k-=h);var l=k*f.Aa|0;g.mode==sf&& -(l>>=1);a>l&&(a=l)}b=a;var p=this.U;a=b;if(p.A&&p.A[tf]&uf){var n=p.ba-df(p.G,p.O);0n&&(a=n)}b=a}try{this.kh(b)}catch(q){if("number"!=typeof q)throw q;}if(b=of(this))pf(this,b),cf(this,b)}while(this.flags.eb&&!this.flags.jg)}catch(q){af(this);$e(this);this.ua&&this.ua.stop(gc(),df(this));yc(this,q.stack||q.message);return}if(this.flags.eb){this.sd=gc();this.te&&(this.zc+=this.te,this.td+=this.te);b=this.Di;this.Ng&&(b=Math.round(b*this.Ng/this.km));b-=this.sd-this.td;if(c=this.sd-this.zc)this.hd= -Math.round(this.kd/(10*c))/100,864E5<=c&&(this.ud=0,this.U&&qf(this.U,!0),ff(this));0>b?(-1E3>b&&(this.zc-=b),b=0):this.hd=this.Ed&&(this.fd[166]=ig,this.fd[167]=jg)}else for(b=0;b>>a.ab],c);d&&Hd(a)}function mg(a){var b;if(a.W===a.nc){a.W=Array(a.Fe);a.pf=new Bd(void 0,0,0,we,null,a);Cd(a.pf,a.ca);for(b=0;b>>20,f=a.nc[(a.kc+e&a.qe)>>>a.ab],g=f.ke(e);if(!(g&1))return d||og.call(a,b,!1,c),a.re;if(!(g&4)&&3==a.Na)return d||og.call(a,b,!0,c),a.re;var h=(b&4190208)>>>10;g=a.nc[((g&-4096)+h&a.qe)>>>a.ab];var k=g.ke(h);if(!(k&1))return d||og.call(a,b,!1,c),a.re;if(!(k&4)&&3==a.Na)return d||og.call(a,b,!0,c),a.re;c=a.nc[((k&-4096)+(b&4095)&a.qe)>>>a.ab];if(d)return c;d=b>>>a.ab;k=a.W[d];b&=-4096;if(0>2;b.yb=g;b.B=h>>2;!ce||!c.Z||c.controller||c.Ze||c.$e?(b.F=c?Re(32):0,b.I=c?Re(96):0,Sd(b,ze)):(b.Wa=c.Wa,b.xe=c.xe,b.Z=c.Z,Sd(b,Se));Cd(b,a.ca,k);a.W[d]=b;a.bf.push(d);return b}function pg(a){a.W!==a.nc&&(a.W=a.nc,a.pf=null,a.bf=null,a.re=null)}m=Df.prototype;m.reset=function(){this.Ce();kg(this);Ye(this);this.flags.error=!1};m.Ce=function(){this.U&&(+qg(this.U,rg)?this.Ub=this.Eg:this.Ub=null)}; +function Te(a,b){dc.call(this,"CPU",a,2);var c=a.multiplier||1;this.pe=a.cycles||b;this.Ei=Math.round(1E3/Ue);this.Fi=this.Lg=this.Pc=c;this.Kg=Math.round(this.pe/1E4)/100;this.jd=this.te=this.Kg*this.Pc;this.flags.Ni=this.flags.fb=this.flags.kg=!1;this.flags.Md=a.autoStart;this.flags.rj=!1;this.flags.df=!1;this.ve=this.Jd=0;this.we=a.csStart;this.Id=a.csInterval;this.Kd=a.csStop;this.Ra=[];this.Hd=0;this.bj=this.vp.bind(this)}pa(Te,dc);m=Te.prototype; +m.yc=function(a,b,c,d){this.ua=a;this.la=b;this.ca=d;for(b=0;b=a.Jd&&(a.Jd+=a.Id,c=!0);0<=a.Kd&&a.Kd<=df(a)&&(a.Id=a.Kd=-1,Ze(a),af(a),c=!0);c&&a.J("%d cycles: checksum=%x\n",df(a),a.ve)}} +m.Ab=function(a,b,c){var d=this;a=!1;switch(b){case "power":case "reset":this.ia[b]=c;a=!0;break;case "run":this.ia[b]=c;c.onclick=function(){var e=d.flags.fb,f;if(f=d.ua)if(f=d.ua,f.flags.Te&&(f.flags.Te=!1,f.flags.Of&&!f.flags.hc&&f.xf(ef)),f.flags.hc)f=!0;else{var g=null,h,k=qc(f.id);for(h=0;ha.Pc?b=a.Pc:1>b&&(b=1);a.km=Math.floor(a.pe/Ue*b);return a.Lg!==b?(a.Lg=b,!0):!1} +function df(a,b){var c=a.vd+a.ld+a.kd-a.A;b&&1a.Kg&&(c=Math.round(c/a.Pc));return c}function Ye(a){a.vd=a.ld=a.kd=a.A=0;Ze(a);ff(a,a.Fi)}function lf(a){return a.flags.fb&&a.jd?a.jd.toFixed(2)+"Mhz":"Stopped"}function gf(a){return a.te.toFixed(2)+"Mhz"} +function ff(a,b,c){var d=!0;if(void 0!==b){0b[1])&&(c=0d[1]||(d[1]-=b,0>=d[1]&&(d[1]=-1,d[3](),d[2]&&mf(a,c,d[2])))}}function of(a){var b=a.kd-a.A;a.kd=a.A=0;a.Og+=b;a.ld+=b;return b} +m.vp=function(){this.Hd=0;if(this.flags.fb){kf(this);this.ue=this.Og=0;this.ud=gc();this.Ac||(this.Ac=this.ud);if(this.td){var a=this.ud-this.td;a>this.Ei&&(this.Ac+=a,this.Ac>this.ud&&(this.Ac=this.ud))}try{this.flags.kg=!1;do{for(var b,c=this.flags.df?1:this.pe*this.Lg|0,d=this.Ra.length-1;0<=d;d--){var e=this.Ra[d];0>e[1]||c>e[1]&&(c=e[1])}b=c;if(this.U){qf(this.U);var f=this.U;a=b;var g=f.Ra[0];if(g.Le){var h=(df(f.G,f.O)-g.Ed)/f.Aa|0,k=rf(f,0)-h;g.mode==sf&&(k-=h);var l=k*f.Aa|0;g.mode==sf&& +(l>>=1);a>l&&(a=l)}b=a;var p=this.U;a=b;if(p.A&&p.A[tf]&uf){var n=p.ba-df(p.G,p.O);0n&&(a=n)}b=a}try{this.lh(b)}catch(q){if("number"!=typeof q)throw q;}if(b=of(this))pf(this,b),cf(this,b)}while(this.flags.fb&&!this.flags.kg)}catch(q){af(this);$e(this);this.ua&&this.ua.stop(gc(),df(this));yc(this,q.stack||q.message);return}if(this.flags.fb){this.td=gc();this.ue&&(this.Ac+=this.ue,this.ud+=this.ue);b=this.Ei;this.Og&&(b=Math.round(b*this.Og/this.km));b-=this.td-this.ud;if(c=this.td-this.Ac)this.jd= +Math.round(this.ld/(10*c))/100,864E5<=c&&(this.vd=0,this.U&&qf(this.U,!0),ff(this));0>b?(-1E3>b&&(this.Ac-=b),b=0):this.jd=this.Fd&&(this.gd[166]=ig,this.gd[167]=jg)}else for(b=0;b>>a.bb],c);d&&Hd(a)}function mg(a){var b;if(a.W===a.oc){a.W=Array(a.Ge);a.qf=new Bd(void 0,0,0,we,null,a);Cd(a.qf,a.ca);for(b=0;b>>20,f=a.oc[(a.lc+e&a.re)>>>a.bb],g=f.le(e);if(!(g&1))return d||og.call(a,b,!1,c),a.se;if(!(g&4)&&3==a.Na)return d||og.call(a,b,!0,c),a.se;var h=(b&4190208)>>>10;g=a.oc[((g&-4096)+h&a.re)>>>a.bb];var k=g.le(h);if(!(k&1))return d||og.call(a,b,!1,c),a.se;if(!(k&4)&&3==a.Na)return d||og.call(a,b,!0,c),a.se;c=a.oc[((k&-4096)+(b&4095)&a.re)>>>a.bb];if(d)return c;d=b>>>a.bb;k=a.W[d];b&=-4096;if(0>2;b.zb=g;b.B=h>>2;!ce||!c.Z||c.controller||c.$e||c.af?(b.F=c?Re(32):0,b.I=c?Re(96):0,Sd(b,ze)):(b.Xa=c.Xa,b.ye=c.ye,b.Z=c.Z,Sd(b,Se));Cd(b,a.ca,k);a.W[d]=b;a.cf.push(d);return b}function pg(a){a.W!==a.oc&&(a.W=a.oc,a.qf=null,a.cf=null,a.se=null)}m=Df.prototype;m.reset=function(){this.De();kg(this);Ye(this);this.flags.error=!1};m.De=function(){this.U&&(+qg(this.U,rg)?this.Vb=this.Fg:this.Vb=null)}; function sg(a,b){switch(b){case 0:var c=a.D;break;case 1:c=a.I;break;case 2:c=a.M;break;case 3:c=a.H;break;case 4:c=A(a);break;case 5:c=a.N;break;case 6:c=a.L;break;case 7:c=a.K}return c}function vg(a,b,c){switch(b){case 0:a.D=c;break;case 1:a.I=c;break;case 2:a.M=c;break;case 3:a.H=c;break;case 4:zg(a,c);break;case 5:a.N=c;break;case 6:a.L=c;break;case 7:a.K=c}} -function kg(a){a.D=0;a.H=0;a.I=0;a.M=0;a.Cc=0;a.N=0;a.L=0;a.K=0;a.rc=!1;a.Ba=a.Sa=0;a.mm=[0,0];a.pm=[0,0];a.qa=0;a.Yi=0;a.ea=0;a.ma=65520;a.Eb=0;a.gd=1023;a.P=a.jc=0;a.ce=a.ne=a.Kd=a.de=0;a.Ac=-1;a.ld=a.Uc=-1;a.Pc=a.pa=-1;a.ba=new Ag(a,Bg,"CS");a.xa=new Ag(a,Cg,"DS");a.fa=new Ag(a,Cg,"ES");a.T=new Ag(a,Dg,"SS");zg(a,0);Eg(a,0);if(80386<=a.model){switch(a.Ed){case 80562:case 80563:a.M=771;break;case 80578:a.M=772;break;case 80594:a.M=773;break;case 80595:case 80596:a.M=776;break;default:a.M=768}a.ma= -2147483632;a.Ki=0;a.md=0;a.kc=0;a.Pb=[0,0,0,0,null,null,0,0];a.Wg=[null,null,null,null,null,null,0,0];a.Fa=new Ag(a,Cg,"FS");a.Ia=new Ag(a,Cg,"GS");pg(a)}a.Oi=new Ag(a,Fg,"NULL");a.Ca=a.xa;a.Cb=a.T;a.O=a.aa=0;a.C=a.F=-1;a.za=a.Oi;a.Ea=0;if(80286>a.model)Gg(a,0,65535);else{a.Ab=0;a.Nc=65535;a.rb=new Ag(a,Hg,"LDT",!0);a.ga=new Ag(a,Ig,"TSS",!0);a.nb=new Ag(a,Jg,"VER",!0);Gg(a,65520,61440);var b=C(a);var c=a.ba;var d=-65536;80386>c.Ob.model&&(d&=16777215);c=c.ta=d;a.Y=c+b|0;a.Ni=(c>>>0)+(a.ba.Ya>>>0)+ -1}Kg(a,0);Lg(a)}function Mg(a){2==a.Ec?(a.Zb=a.ka,a.$b=Ng,a.oc=Og,a.rd=Pg,2==a.X?(a.ja=Qg,a.sa=Rg,a.ib=Sg):(a.ja=Tg,a.sa=Ug,a.ib=Vg)):(a.Zb=a.ha,a.$b=Wg,a.oc=Xg,a.rd=Yg,2==a.X?(a.ja=Zg,a.sa=$g,a.ib=ah):(a.ja=bh,a.sa=ch,a.ib=dh))}function eh(a,b){a.X!=b&&(a.aa|=1024,a.X=b,a.R=2==b?65535:-1,fh(a))} -function fh(a){2==a.X?(a.vb=32768,a.tb=a.ka,a.Vb=a.mb,2==a.Ec?(a.ja=Qg,a.sa=Rg,a.ib=Sg):(a.ja=Zg,a.sa=$g,a.ib=ah)):(a.vb=-2147483648,a.tb=a.ha,a.Vb=a.lb,2==a.Ec?(a.ja=Tg,a.sa=Ug,a.ib=Vg):(a.ja=bh,a.sa=ch,a.ib=dh))}function gh(a){a.Ec!=a.ba.Ec&&(a.Ec=a.ba.Ec,a.wa=a.ba.wa,Mg(a));a.X!=a.ba.X&&(a.X=a.ba.X,a.R=a.ba.R,fh(a));a.aa&=-3073}m.vj=function(){var a=this.D+this.H+this.I+this.M+A(this)+this.N+this.L+this.K|0;return a=a+C(this)+hh(this)+this.xa.V+this.T.V+this.fa.V+ih(this)|0}; -function jh(a,b,c){void 0===a.ef[b]&&(a.ef[b]=[]);a.ef[b].push(c)}function kh(a,b,c){void 0!==c&&(null==a.ff[b]&&a.Dg++,a.ff[b]=c)}function lh(a,b){var c=a.ff[b];null!=c&&(c(--a.Dg),delete a.ff[b])}function mh(a,b){for(var c=a.Pb[7],d=c>>16,e=0;4>e;e++){if(c&3){var f=!!(d&1),g=a.Pb[e];g&=~(d>>2&3);b?a.W[g>>>a.ab].xd(g&a.qb,f,a):Ge(a.W[g>>>a.ab],f)}c>>=2;d>>=4}} -function Ie(a,b,c,d){if(!(a.O&8192)&&a.Pb[7]&255){c--;var e=a.Pb[7],f=e>>16;d=d?1:0==d?3:0;for(var g=0;4>g;g++){if(e&3&&(f&3)==d){var h=f>>2;if(b+c>=a.Pb[g]&&b<=a.Pb[g]+h){a.Pb[6]|=1<>=2;f>>=4}}}function Lg(a,b,c){void 0===b&&(b=!!(a.ma&1));void 0===c&&(c=!!(a.P&131072));a.Ti=b&&!c?nh:Hf;oh(a.ba,!1,b,c);oh(a.xa,!1,b,c);oh(a.T,!1,b,c);oh(a.fa,!1,b,c);80386<=a.model&&(oh(a.Fa,!1,b,c),oh(a.Ia,!1,b,c));gh(a)} -m.save=function(a){var b=new ph(this);b.set(0,[this.D,this.H,this.I,this.M,A(this),this.N,this.L,this.K]);var c=C(this),d=this.ba.save(),e=this.xa.save(),f=this.T.save(),g=this.fa.save();if(null!=this.Ab){var h=[this.ma,this.Ab,this.Nc,this.Eb,this.gd,this.rb.save(),this.ga.save(),this.jc];80386<=this.model&&(h.push(this.Ki),h.push(this.md),h.push(this.kc),h.push(this.Pb),h.push(this.Wg))}else h=null;c=[c,d,e,f,g,h,ih(this)];80386<=this.model&&(c.push(this.Fa.save()),c.push(this.Ia.save()));b.set(1, -c);b.set(2,[this.Ca.eg,this.Cb.eg,this.O,this.aa,this.Ea,this.C,this.F]);c=b.set;d=this.ud;e=this.Oc;f=[];for(g=0;ga.model)Gg(a,0,65535);else{a.Bb=0;a.Oc=65535;a.sb=new Ag(a,Hg,"LDT",!0);a.ga=new Ag(a,Ig,"TSS",!0);a.ob=new Ag(a,Jg,"VER",!0);Gg(a,65520,61440);var b=C(a);var c=a.ba;var d=-65536;80386>c.Pb.model&&(d&=16777215);c=c.ta=d;a.Y=c+b|0;a.Oi=(c>>>0)+(a.ba.Za>>>0)+ +1}Kg(a,0);Lg(a)}function Mg(a){2==a.Fc?(a.$b=a.ka,a.ac=Ng,a.pc=Og,a.sd=Pg,2==a.X?(a.ja=Qg,a.sa=Rg,a.jb=Sg):(a.ja=Tg,a.sa=Ug,a.jb=Vg)):(a.$b=a.ha,a.ac=Wg,a.pc=Xg,a.sd=Yg,2==a.X?(a.ja=Zg,a.sa=$g,a.jb=ah):(a.ja=bh,a.sa=ch,a.jb=dh))}function eh(a,b){a.X!=b&&(a.aa|=1024,a.X=b,a.R=2==b?65535:-1,fh(a))} +function fh(a){2==a.X?(a.wb=32768,a.ub=a.ka,a.Wb=a.nb,2==a.Fc?(a.ja=Qg,a.sa=Rg,a.jb=Sg):(a.ja=Zg,a.sa=$g,a.jb=ah)):(a.wb=-2147483648,a.ub=a.ha,a.Wb=a.mb,2==a.Fc?(a.ja=Tg,a.sa=Ug,a.jb=Vg):(a.ja=bh,a.sa=ch,a.jb=dh))}function gh(a){a.Fc!=a.ba.Fc&&(a.Fc=a.ba.Fc,a.wa=a.ba.wa,Mg(a));a.X!=a.ba.X&&(a.X=a.ba.X,a.R=a.ba.R,fh(a));a.aa&=-3073}m.vj=function(){var a=this.D+this.H+this.I+this.M+A(this)+this.N+this.L+this.K|0;return a=a+C(this)+hh(this)+this.xa.V+this.T.V+this.fa.V+ih(this)|0}; +function jh(a,b,c){void 0===a.ff[b]&&(a.ff[b]=[]);a.ff[b].push(c)}function kh(a,b,c){void 0!==c&&(null==a.gf[b]&&a.Eg++,a.gf[b]=c)}function lh(a,b){var c=a.gf[b];null!=c&&(c(--a.Eg),delete a.gf[b])}function mh(a,b){for(var c=a.Qb[7],d=c>>16,e=0;4>e;e++){if(c&3){var f=!!(d&1),g=a.Qb[e];g&=~(d>>2&3);b?a.W[g>>>a.bb].yd(g&a.rb,f,a):Ge(a.W[g>>>a.bb],f)}c>>=2;d>>=4}} +function Ie(a,b,c,d){if(!(a.O&8192)&&a.Qb[7]&255){c--;var e=a.Qb[7],f=e>>16;d=d?1:0==d?3:0;for(var g=0;4>g;g++){if(e&3&&(f&3)==d){var h=f>>2;if(b+c>=a.Qb[g]&&b<=a.Qb[g]+h){a.Qb[6]|=1<>=2;f>>=4}}}function Lg(a,b,c){void 0===b&&(b=!!(a.ma&1));void 0===c&&(c=!!(a.P&131072));a.Ui=b&&!c?nh:Hf;oh(a.ba,!1,b,c);oh(a.xa,!1,b,c);oh(a.T,!1,b,c);oh(a.fa,!1,b,c);80386<=a.model&&(oh(a.Fa,!1,b,c),oh(a.Ia,!1,b,c));gh(a)} +m.save=function(a){var b=new ph(this);b.set(0,[this.D,this.H,this.I,this.M,A(this),this.N,this.L,this.K]);var c=C(this),d=this.ba.save(),e=this.xa.save(),f=this.T.save(),g=this.fa.save();if(null!=this.Bb){var h=[this.ma,this.Bb,this.Oc,this.Fb,this.hd,this.sb.save(),this.ga.save(),this.kc];80386<=this.model&&(h.push(this.Li),h.push(this.nd),h.push(this.lc),h.push(this.Qb),h.push(this.Xg))}else h=null;c=[c,d,e,f,g,h,ih(this)];80386<=this.model&&(c.push(this.Fa.save()),c.push(this.Ia.save()));b.set(1, +c);b.set(2,[this.Ca.fg,this.Db.fg,this.O,this.aa,this.Ea,this.C,this.F]);c=b.set;d=this.vd;e=this.Pc;f=[];for(g=0;g>>16),a.la.ub(th,0),a.Ia=void 0));return d}; -function qh(a,b){switch(b){case "CS":return a.ba;case "DS":return a.xa;case "SS":return a.T;case "ES":return a.fa;case "NULL":return a.Oi;default:return[0,b,0,0,""]}}function hh(a){return a.ba.V}function uh(a,b){null!=Gg(a,C(a),b)&&(a.O|=a.Xe)}function vh(a,b){-1!==a.xa.load(b)&&(a.O|=a.Xe)} -function Eg(a,b,c){var d=A(a);-1!==a.T.load(b)&&(zg(a,d),a.T.Ad?(a.we=(a.T.ta>>>0)+(a.T.wa>>>0),a.Vg=(a.T.ta>>>0)+(a.T.Ya>>>0)):(a.we=(a.T.ta>>>0)+(a.T.Ya>>>0),a.Vg=a.T.ta>>>0),a.we=Math.min(a.we,a.Bc>>>0),a.Vg=Math.min(a.Vg,a.Bc>>>0),c||(a.O|=4))}function wh(a,b){-1!==a.fa.load(b)&&(a.O|=a.Xe)}function C(a){return a.Y-a.ba.ta|0}function xh(a,b){a.Y=a.ba.ta+(b&a.R)|0}function yh(a,b){a.Y=b;a.Ni=(a.ba.ta>>>0)+(a.ba.Ya>>>0)+1;a.Na=a.ba.Gb;80386<=a.model&&gh(a)} -function Gg(a,b,c,d){var e=a.ba;e.Zf=b;e.G=d;b=e.load(c);return-1!==b?(yh(a,b+(a.ba.Zf&a.ba.R)),a.ba.lf):null}function zh(a,b){var c=(a.Y>>>0)+b;c>a.Ni&&(8088>=a.model?(c=a.ba.ta+(c-a.Ni&a.R),2==b&&(a.O|=8)):F.call(a,13,0));return c|0}function Ah(a,b){(void 0===b?0:b)&&a.aa&16&&8088>=a.model&&a.aa&16384&&a.P&512||(a.O|=256,a.Y=a.Pc)}function A(a){return a.Cc&~a.T.wa|a.Aa-a.T.ta}function zg(a,b){a.Cc=b;a.Aa=a.T.ta+(b&a.T.wa)|0} -function Bh(a,b,c,d,e,f){if(63!=(e&63)&&e!=a.resultType){var g=(e^a.resultType)&a.resultType;g&&(g&1&&Ch(a),g&2&&Dh(a),g&4&&Eh(a),g&8&&Fh(a),g&16&&Hh(a),g&32&&Ih(a))}f?(a.ce=d,a.Kd=b):(a.ce=b,a.Kd=d);a.ne=c;a.de=d;a.resultType=e}function Jh(a,b,c,d,e){a.resultType=c|26;a.de=b;d?Kh(a):Lh(a);e?Mh(a):Nh(a);Oh(a);return b}function Ph(a,b,c,d){c&d?Kh(a):Lh(a);(b^c)&d?Mh(a):Nh(a)}function Qh(a){return Ch(a)?1:0} -function Ch(a){a.resultType&1&&(a.P&=-2,(a.ce^(a.ce^a.ne)&(a.ne^a.Kd))&a.resultType&-2147450752&&(a.P|=1),a.resultType&=-2);return a.P&1}function Dh(a){a.resultType&2&&(a.P&=-5,38505>>((a.de^a.de>>4)&15)&1&&(a.P|=4),a.resultType&=-3);return a.P&4}function Eh(a){a.resultType&4&&(a.P&=-17,(a.Kd^a.ce^a.ne)&16&&(a.P|=16),a.resultType&=-5);return a.P&16}function Fh(a){a.resultType&8&&(a.P&=-65,a.de&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.P|=64),a.resultType&=-9);return a.P&64} -function Hh(a){a.resultType&16&&(a.P&=-129,a.de&a.resultType&-2147450752&&(a.P|=128),a.resultType&=-17);return a.P&128}function Ih(a){a.resultType&32&&(a.P&=-2049,(a.ce^a.Kd)&(a.ne^a.Kd)&a.resultType&-2147450752&&(a.P|=2048),a.resultType&=-33);return a.P&2048}function Lh(a){a.resultType&=-2;a.P&=-2}function Oh(a){a.resultType&=-5;a.P&=-17}function Rh(a){a.resultType&=-9;a.P&=-65}function Nh(a){a.resultType&=-33;a.P&=-2049}function Kh(a){a.resultType&=-2;a.P|=1} -function Sh(a){a.resultType&=-5;a.P|=16}function Th(a){a.resultType&=-9;a.P|=64}function Mh(a){a.resultType&=-33;a.P|=2048}function ih(a){return a.P&-2262|Ch(a)|Dh(a)|Eh(a)|Fh(a)|Hh(a)|Ih(a)}function Uh(a,b){b|=a.ma&1|65520;a.ma=a.ma&-65536|b&65535;a.ma&1&&Lg(a,!0)}function Kg(a,b,c){a.ma&1||(b&=~a.El);void 0===c&&(c=a.Na);c?b=b&-12289|a.P&12288:a.jc=(b&12288)>>12;c>a.jc&&(b=b&-513|a.P&512);a.resultType=128;a.P=a.P&~(a.Fd|2261)|b&(a.Fd|2261)|a.Fl;a.P&256&&(a.Ea|=2,a.O|=4)} -function Vh(a,b,c,d){var e=0;if(a.ma&1&&(a.Na>a.jc||a.P&131072)&&a.ga.cj){var f=a.ga.cj+(b>>>3);for(e=(1<>>=8,f++}return e?(a.J(65,"checkIOPM(%#06x,%d,%s): trapped\n",b,c,d?"input":"output"),F.call(a,13,0),!1):!0} -m.zb=function(a,b,c){switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ia[b]=c;this.Zi++;a=!0;break;default:a=Te.prototype.zb.call(this,a,b,c)}return a}; -function Wh(a,b,c,d){var e=(d?a.nc:a.W)[(b&a.Bc)>>>a.ab];e&&e.type==we&&(e=Qe(a,b,!1,!0));if(e){var f=b&a.qb;if(!c||1==c)return e.Be(f,b);if(2==c)return f>>this.ab].Kc(a&this.qb,a)}; -m.ka=function(a){var b=a&this.qb,c=(a&this.Bc)>>>this.ab;this.A-=this.B.Ug;if(b>>this.ab;if(b>>this.ab].tc(a&this.qb,b&255,a)}; -m.mb=function(a,b){var c=a&this.qb,d=(a&this.Bc)>>>this.ab;this.A-=this.B.Ug;c>8&255,a+1))};m.lb=function(a,b){var c=a&this.qb,d=(a&this.Bc)>>>this.ab;this.A-=this.B.Ug;if(c>>=8}};function Xh(a,b,c){a.za=b;a.Ka=c&a.wa;a.C=b.Bb(a.Ka,1);return a.O&1?0:a.ya(a.C)} -function G(a,b){return Xh(a,a.Ca,b)}function Yh(a,b){return Xh(a,a.Cb,b)}function Zh(a,b,c){a.za=b;a.Ka=c&a.wa;a.C=b.Bb(a.Ka,a.X);if(a.O&9){if(a.O&1)return 0;a=a.ya(a.C)|a.ya(b.Bb(0,1))<<8}else a=a.tb(a.C);return a}function I(a,b){a.za=a.Ca;a.Ka=b&a.wa;a.C=a.za.Bb(a.Ka,2);if(a.O&9){if(a.O&1)return 0;b=a.ya(a.C)|a.ya(a.za.Bb(0,1))<<8;a.O&=-9}else b=a.ka(a.C);return b} -function $h(a,b){a.za=a.Cb;a.Ka=b&a.wa;a.C=a.za.Bb(a.Ka,2);if(a.O&9){if(a.O&1)return 0;b=a.ya(a.C)|a.ya(a.za.Bb(0,1))<<8;a.O&=-9}else b=a.ka(a.C);return b}function K(a,b){a.za=a.Ca;a.Ka=b&a.wa;a.C=a.za.Bb(a.Ka,4);return a.O&1?0:a.ha(a.C)}function ai(a,b){a.za=a.Ca;a.Ka=b&a.wa;a.F=a.C=a.za.Bb(a.Ka,4);return a.O&1?0:a.ha(a.C)}function oi(a,b){a.za=a.Cb;a.Ka=b&a.wa;a.C=a.za.Bb(a.Ka,4);return a.O&1?0:a.ha(a.C)}function pi(a,b){a.za=a.Cb;a.Ka=b&a.wa;a.F=a.C=a.za.Bb(a.Ka,4);return a.O&1?0:a.ha(a.C)} -function qi(a,b){a.O&2||a.ub(a.za.Xb(a.Ka,1),b)}function ri(a,b){if(!(a.O&2)){var c=a.za.Xb(a.Ka,2);a.O&8?(a.ub(c,b),a.ub(a.za.Xb(0,1),b>>8),a.O&=-9):a.mb(c,b)}}function si(a,b){a.O&2||a.lb(a.za.Xb(a.Ka,4),b)}function ti(a,b,c){c=b.Bb(c,a.X);a.O&8?(b=a.ya(c)|a.ya(b.Bb(0,1))<<8,a.O&=-9):b=a.tb(c);return b}function ui(a,b,c,d){c=b.Xb(c,a.X);a.O&8?(a.ub(c,d),a.ub(b.Xb(0,1),d>>8),a.O&=-9):a.Vb(c,d)}m.ra=function(){var a=zh(this,1),b=this.ya(this.Y);this.Y=a;return b}; -function vi(a){var b=zh(a,2);if(a.O&8){var c=a.ya(a.Y)|a.ya(b-1)<<8;a.O&=-9}else c=a.ka(a.Y);a.Y=b;return c}function L(a){var b=zh(a,a.Ec);if(a.O&8){var c=a.ya(a.Y)|a.ya(b-1)<<8;a.O&=-9}else c=a.Zb(a.Y);a.Y=b;return c}m.Ja=function(){var a=zh(this,this.X);if(this.O&8){var b=this.ya(this.Y)|this.ya(a-1)<<8;this.O&=-9}else b=this.tb(this.Y);this.Y=a;return b};m.S=function(){var a=zh(this,1),b=this.ya(this.Y)<<24>>24;this.Y=a;return b}; -function wi(a){var b=a.tb(a.Aa);a.Aa=a.Aa+a.X|0;var c=a.we-(a.Aa>>>0);0>c&&(8088>=a.model?(zg(a,a.Aa-a.T.ta&a.T.wa),-1>c&&(b=b&255|a.ya(a.Aa-1)<<8)):-1>c?F.call(a,12,0):(!a.T.Ad&&a.T.Ya==a.T.wa||a.T.Ad&&!a.T.Ya)&&zg(a,a.Aa-a.T.ta&a.T.wa));return b}function xi(a,b){yi(a,b,a.X)} -function yi(a,b,c,d){d=void 0===d?c:d;var e=a.Aa-c|0,f=(e>>>0)-a.Vg;if(0>f){if(8088>=a.model&&-1==f){a.ub(e+1,b>>8);zg(a,e-a.T.ta&a.T.wa);a.ub(a.Aa,b);return}if(!a.T.Ad&&a.T.Ya==a.T.wa||a.T.Ad&&!a.T.Ya){if(f>-c){F.call(a,12,0);return}zg(a,e-a.T.ta&a.T.wa);e=a.Aa}else{F.call(a,12,0);return}}switch(d){case 1:a.ub(e,b);break;case 2:a.mb(e,b);break;case 4:a.lb(e,b)}a.Aa=e} -function zi(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.model)2this.model?0:1;for(var d=0;2>d;d++){switch(c){case 0:if(this.Ea&1&&this.P&512){var e= -Bi(this.U);if(-1<=e&&(this.Ea&=-2,0<=e)){this.Ea&=-5;Ci.call(this,e);c=!0;break a}}break;case 1:if(this.Ea&2){this.Ea&=-3;80386<=this.model&&(this.Pb[6]|=16384);Ci.call(this,1);c=!0;break a}}c=1-c}}c=!1}if(c&&!a){this.J("interrupt dispatched\n");this.O=0;break}if(this.Ea&4){Di.call(this);continue}if(this.Ea&16){if(Ei(this.ca,this.Y,b)){af(this);break}b=1}}this.O=0;this.oa[this.ra()].call(this)}while(0>>16),a.la.vb(th,0),a.Ia=void 0));return d}; +function qh(a,b){switch(b){case "CS":return a.ba;case "DS":return a.xa;case "SS":return a.T;case "ES":return a.fa;case "NULL":return a.Pi;default:return[0,b,0,0,""]}}function hh(a){return a.ba.V}function uh(a,b){null!=Gg(a,C(a),b)&&(a.O|=a.Ye)}function vh(a,b){-1!==a.xa.load(b)&&(a.O|=a.Ye)} +function Eg(a,b,c){var d=A(a);-1!==a.T.load(b)&&(zg(a,d),a.T.Bd?(a.xe=(a.T.ta>>>0)+(a.T.wa>>>0),a.Wg=(a.T.ta>>>0)+(a.T.Za>>>0)):(a.xe=(a.T.ta>>>0)+(a.T.Za>>>0),a.Wg=a.T.ta>>>0),a.xe=Math.min(a.xe,a.Cc>>>0),a.Wg=Math.min(a.Wg,a.Cc>>>0),c||(a.O|=4))}function wh(a,b){-1!==a.fa.load(b)&&(a.O|=a.Ye)}function C(a){return a.Y-a.ba.ta|0}function xh(a,b){a.Y=a.ba.ta+(b&a.R)|0}function yh(a,b){a.Y=b;a.Oi=(a.ba.ta>>>0)+(a.ba.Za>>>0)+1;a.Na=a.ba.Hb;80386<=a.model&&gh(a)} +function Gg(a,b,c,d){var e=a.ba;e.$f=b;e.G=d;b=e.load(c);return-1!==b?(yh(a,b+(a.ba.$f&a.ba.R)),a.ba.mf):null}function zh(a,b){var c=(a.Y>>>0)+b;c>a.Oi&&(8088>=a.model?(c=a.ba.ta+(c-a.Oi&a.R),2==b&&(a.O|=8)):F.call(a,13,0));return c|0}function Ah(a,b){(void 0===b?0:b)&&a.aa&16&&8088>=a.model&&a.aa&16384&&a.P&512||(a.O|=256,a.Y=a.Qc)}function A(a){return a.Dc&~a.T.wa|a.Aa-a.T.ta}function zg(a,b){a.Dc=b;a.Aa=a.T.ta+(b&a.T.wa)|0} +function Bh(a,b,c,d,e,f){if(63!=(e&63)&&e!=a.resultType){var g=(e^a.resultType)&a.resultType;g&&(g&1&&Ch(a),g&2&&Dh(a),g&4&&Eh(a),g&8&&Fh(a),g&16&&Hh(a),g&32&&Ih(a))}f?(a.de=d,a.Ld=b):(a.de=b,a.Ld=d);a.oe=c;a.ee=d;a.resultType=e}function Jh(a,b,c,d,e){a.resultType=c|26;a.ee=b;d?Kh(a):Lh(a);e?Mh(a):Nh(a);Oh(a);return b}function Ph(a,b,c,d){c&d?Kh(a):Lh(a);(b^c)&d?Mh(a):Nh(a)}function Qh(a){return Ch(a)?1:0} +function Ch(a){a.resultType&1&&(a.P&=-2,(a.de^(a.de^a.oe)&(a.oe^a.Ld))&a.resultType&-2147450752&&(a.P|=1),a.resultType&=-2);return a.P&1}function Dh(a){a.resultType&2&&(a.P&=-5,38505>>((a.ee^a.ee>>4)&15)&1&&(a.P|=4),a.resultType&=-3);return a.P&4}function Eh(a){a.resultType&4&&(a.P&=-17,(a.Ld^a.de^a.oe)&16&&(a.P|=16),a.resultType&=-5);return a.P&16}function Fh(a){a.resultType&8&&(a.P&=-65,a.ee&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.P|=64),a.resultType&=-9);return a.P&64} +function Hh(a){a.resultType&16&&(a.P&=-129,a.ee&a.resultType&-2147450752&&(a.P|=128),a.resultType&=-17);return a.P&128}function Ih(a){a.resultType&32&&(a.P&=-2049,(a.de^a.Ld)&(a.oe^a.Ld)&a.resultType&-2147450752&&(a.P|=2048),a.resultType&=-33);return a.P&2048}function Lh(a){a.resultType&=-2;a.P&=-2}function Oh(a){a.resultType&=-5;a.P&=-17}function Rh(a){a.resultType&=-9;a.P&=-65}function Nh(a){a.resultType&=-33;a.P&=-2049}function Kh(a){a.resultType&=-2;a.P|=1} +function Sh(a){a.resultType&=-5;a.P|=16}function Th(a){a.resultType&=-9;a.P|=64}function Mh(a){a.resultType&=-33;a.P|=2048}function ih(a){return a.P&-2262|Ch(a)|Dh(a)|Eh(a)|Fh(a)|Hh(a)|Ih(a)}function Uh(a,b){b|=a.ma&1|65520;a.ma=a.ma&-65536|b&65535;a.ma&1&&Lg(a,!0)}function Kg(a,b,c){a.ma&1||(b&=~a.El);void 0===c&&(c=a.Na);c?b=b&-12289|a.P&12288:a.kc=(b&12288)>>12;c>a.kc&&(b=b&-513|a.P&512);a.resultType=128;a.P=a.P&~(a.Gd|2261)|b&(a.Gd|2261)|a.Fl;a.P&256&&(a.Ea|=2,a.O|=4)} +function Vh(a,b,c,d){var e=0;if(a.ma&1&&(a.Na>a.kc||a.P&131072)&&a.ga.dj){var f=a.ga.dj+(b>>>3);for(e=(1<>>=8,f++}return e?(a.J(65,"checkIOPM(%#06x,%d,%s): trapped\n",b,c,d?"input":"output"),F.call(a,13,0),!1):!0} +m.Ab=function(a,b,c){switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ia[b]=c;this.$i++;a=!0;break;default:a=Te.prototype.Ab.call(this,a,b,c)}return a}; +function Wh(a,b,c,d){var e=(d?a.oc:a.W)[(b&a.Cc)>>>a.bb];e&&e.type==we&&(e=Qe(a,b,!1,!0));if(e){var f=b&a.rb;if(!c||1==c)return e.Ce(f,b);if(2==c)return f>>this.bb].Lc(a&this.rb,a)}; +m.ka=function(a){var b=a&this.rb,c=(a&this.Cc)>>>this.bb;this.A-=this.B.Vg;if(b>>this.bb;if(b>>this.bb].uc(a&this.rb,b&255,a)}; +m.nb=function(a,b){var c=a&this.rb,d=(a&this.Cc)>>>this.bb;this.A-=this.B.Vg;c>8&255,a+1))};m.mb=function(a,b){var c=a&this.rb,d=(a&this.Cc)>>>this.bb;this.A-=this.B.Vg;if(c>>=8}};function Xh(a,b,c){a.za=b;a.Ka=c&a.wa;a.C=b.Cb(a.Ka,1);return a.O&1?0:a.ya(a.C)} +function G(a,b){return Xh(a,a.Ca,b)}function Yh(a,b){return Xh(a,a.Db,b)}function Zh(a,b,c){a.za=b;a.Ka=c&a.wa;a.C=b.Cb(a.Ka,a.X);if(a.O&9){if(a.O&1)return 0;a=a.ya(a.C)|a.ya(b.Cb(0,1))<<8}else a=a.ub(a.C);return a}function I(a,b){a.za=a.Ca;a.Ka=b&a.wa;a.C=a.za.Cb(a.Ka,2);if(a.O&9){if(a.O&1)return 0;b=a.ya(a.C)|a.ya(a.za.Cb(0,1))<<8;a.O&=-9}else b=a.ka(a.C);return b} +function $h(a,b){a.za=a.Db;a.Ka=b&a.wa;a.C=a.za.Cb(a.Ka,2);if(a.O&9){if(a.O&1)return 0;b=a.ya(a.C)|a.ya(a.za.Cb(0,1))<<8;a.O&=-9}else b=a.ka(a.C);return b}function K(a,b){a.za=a.Ca;a.Ka=b&a.wa;a.C=a.za.Cb(a.Ka,4);return a.O&1?0:a.ha(a.C)}function ai(a,b){a.za=a.Ca;a.Ka=b&a.wa;a.F=a.C=a.za.Cb(a.Ka,4);return a.O&1?0:a.ha(a.C)}function oi(a,b){a.za=a.Db;a.Ka=b&a.wa;a.C=a.za.Cb(a.Ka,4);return a.O&1?0:a.ha(a.C)}function pi(a,b){a.za=a.Db;a.Ka=b&a.wa;a.F=a.C=a.za.Cb(a.Ka,4);return a.O&1?0:a.ha(a.C)} +function qi(a,b){a.O&2||a.vb(a.za.Yb(a.Ka,1),b)}function ri(a,b){if(!(a.O&2)){var c=a.za.Yb(a.Ka,2);a.O&8?(a.vb(c,b),a.vb(a.za.Yb(0,1),b>>8),a.O&=-9):a.nb(c,b)}}function si(a,b){a.O&2||a.mb(a.za.Yb(a.Ka,4),b)}function ti(a,b,c){c=b.Cb(c,a.X);a.O&8?(b=a.ya(c)|a.ya(b.Cb(0,1))<<8,a.O&=-9):b=a.ub(c);return b}function ui(a,b,c,d){c=b.Yb(c,a.X);a.O&8?(a.vb(c,d),a.vb(b.Yb(0,1),d>>8),a.O&=-9):a.Wb(c,d)}m.ra=function(){var a=zh(this,1),b=this.ya(this.Y);this.Y=a;return b}; +function vi(a){var b=zh(a,2);if(a.O&8){var c=a.ya(a.Y)|a.ya(b-1)<<8;a.O&=-9}else c=a.ka(a.Y);a.Y=b;return c}function L(a){var b=zh(a,a.Fc);if(a.O&8){var c=a.ya(a.Y)|a.ya(b-1)<<8;a.O&=-9}else c=a.$b(a.Y);a.Y=b;return c}m.Ja=function(){var a=zh(this,this.X);if(this.O&8){var b=this.ya(this.Y)|this.ya(a-1)<<8;this.O&=-9}else b=this.ub(this.Y);this.Y=a;return b};m.S=function(){var a=zh(this,1),b=this.ya(this.Y)<<24>>24;this.Y=a;return b}; +function wi(a){var b=a.ub(a.Aa);a.Aa=a.Aa+a.X|0;var c=a.xe-(a.Aa>>>0);0>c&&(8088>=a.model?(zg(a,a.Aa-a.T.ta&a.T.wa),-1>c&&(b=b&255|a.ya(a.Aa-1)<<8)):-1>c?F.call(a,12,0):(!a.T.Bd&&a.T.Za==a.T.wa||a.T.Bd&&!a.T.Za)&&zg(a,a.Aa-a.T.ta&a.T.wa));return b}function xi(a,b){yi(a,b,a.X)} +function yi(a,b,c,d){d=void 0===d?c:d;var e=a.Aa-c|0,f=(e>>>0)-a.Wg;if(0>f){if(8088>=a.model&&-1==f){a.vb(e+1,b>>8);zg(a,e-a.T.ta&a.T.wa);a.vb(a.Aa,b);return}if(!a.T.Bd&&a.T.Za==a.T.wa||a.T.Bd&&!a.T.Za){if(f>-c){F.call(a,12,0);return}zg(a,e-a.T.ta&a.T.wa);e=a.Aa}else{F.call(a,12,0);return}}switch(d){case 1:a.vb(e,b);break;case 2:a.nb(e,b);break;case 4:a.mb(e,b)}a.Aa=e} +function zi(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.model)2this.model?0:1;for(var d=0;2>d;d++){switch(c){case 0:if(this.Ea&1&&this.P&512){var e= +Bi(this.U);if(-1<=e&&(this.Ea&=-2,0<=e)){this.Ea&=-5;Ci.call(this,e);c=!0;break a}}break;case 1:if(this.Ea&2){this.Ea&=-3;80386<=this.model&&(this.Qb[6]|=16384);Ci.call(this,1);c=!0;break a}}c=1-c}}c=!1}if(c&&!a){this.J("interrupt dispatched\n");this.O=0;break}if(this.Ea&4){Di.call(this);continue}if(this.Ea&16){if(Ei(this.ca,this.Y,b)){af(this);break}b=1}}this.O=0;this.oa[this.ra()].call(this)}while(0>11;Ii(this);Ji(this,a[b++]);for(c=0;c=Ki&&Li(a,Mi)}};function Ii(a){a.da&=-129;a.da&~a.Wb&63&&(a.da|=128);if(a.da&128&&!(a.Wb&128))return a=a.U,a.model>=Ki?Ni(a,Mi):a.I&Oi&&Ci.call(a.G,2),!0;a=a.U;a.model>=Ki&&Li(a,Mi);return!1} +function Fi(a){dc.call(this,"FPU",a);this.model=this.Ci.model||8087;this.F=new Float64Array(8);this.M=new Int32Array(this.F.buffer);this.W=new Float32Array(1);this.ea=new Int32Array(this.W.buffer);this.L=new Float64Array(1);this.H=new Int32Array(this.L.buffer);this.D=Array(3);this.N=this.O=-1;this.I=this.K=this.P=this.A=0;this.T=new Float64Array(1);this.Y=new Int32Array(this.T.buffer);this.Y[0]=0;this.Y[1]=268402688;this.De();this.ba=Fi.prototype.Mi;this.aa=Fi.prototype.Bl}pa(Fi,dc);m=Fi.prototype; +m.yc=function(a,b,c){this.G=c;this.U=Yc(a,"ChipSet");Bc(this)};m.fc=function(a,b){if(!b)if(!a||!this.restore)this.De();else if(!this.restore(a))return!1;return!0};m.ec=function(a){return a?this.save():!0};m.save=function(){var a=new ph(this),b=[],c=0;b[c++]=this.Xb;b[c++]=Gi(this);b[c++]=Hi(this);for(var d=0;d>11;Ii(this);Ji(this,a[b++]);for(c=0;c=Ki&&Li(a,Mi)}};function Ii(a){a.da&=-129;a.da&~a.Xb&63&&(a.da|=128);if(a.da&128&&!(a.Xb&128))return a=a.U,a.model>=Ki?Ni(a,Mi):a.I&Oi&&Ci.call(a.G,2),!0;a=a.U;a.model>=Ki&&Li(a,Mi);return!1} function Pi(a,b){80387<=a.model||(b&=-65);a.da|=b;return Ii(a)}function Gi(a){return a.da|a.B<<11}function Qi(a,b){return isFinite(b)?!0:!Pi(a,Infinity===b?8:16)}function Ri(a,b,c){var d=null;null!=b&&null!=c&&(d=b+c,Qi(a,d)||(d=null));return d}function Si(a,b,c){var d=null;null!=b&&null!=c&&(d=b-c,Qi(a,d)||(d=null));return d}function Ti(a,b,c){var d=null;null!=b&&null!=c&&(d=b*c,Qi(a,d)||(d=null));return d} function Ui(a,b,c){var d=null;null==b||null==c||!c&&Pi(a,2)||(d=b/c,Qi(a,d)||(d=null));return d}function Vi(a,b,c){if(null!=b&&null!=c){var d=0;isNaN(b)||isNaN(c)?d=17664:(b-=c,0>b?d=256:0===b&&(d=16384));a.da=a.da&-18177|d;return!0}return!1} -function Wi(a,b,c){if(null==b)return null;var d=a.Wb&3072;0==d?(d=Math.round(b),.5===d-b&&d%2&&d--):d=1024==d||3072==d&&0=c){if(Pi(a,1))return null;d=-c}else if(d<-c){if(Pi(a,1))return null;d=-c}a.H[0]=d|0;2147483648d&&(a.H[1]=-1))}return d}function Xi(a,b){var c=3;a.C&1<=c){if(Pi(a,1))return null;d=-c}else if(d<-c){if(Pi(a,1))return null;d=-c}a.H[0]=d|0;2147483648d&&(a.H[1]=-1))}return d}function Xi(a,b){var c=3;a.C&1<=c;c<<=1)3!=(b&3)&&(a.C|=c),b>>=2}function Yi(a){var b=a.B+0&7;return a.C&1<>16}function cj(a){return a.G.ha(a.G.C)}function dj(a){a.ea[0]=a.G.ha(a.G.C);return a.W[0]}function ej(a){a.H[0]=a.G.ha(a.G.C);a.H[1]=a.G.ha(a.G.C+4);return a.L[0]}function fj(a){a.D[0]=a.G.ha(a.G.C);a.D[1]=a.G.ha(a.G.C+4);a.D[2]=a.G.ka(a.G.C+8);return a.D}m.Li=function(){this.G.lb(this.G.C,this.H[0])}; -m.Bl=function(){this.G.lb(this.G.C,this.H[0]);this.G.lb(this.G.C+4,this.H[1])};function gj(a){a.G.lb(a.G.C,a.D[0]);a.G.lb(a.G.C+4,a.D[1]);a.G.mb(a.G.C+8,a.D[2])}function hj(a,b){var c=b[1],d=(b[2]&32768)>>4,e=b[2]&32767;b=b[0]>>>11|c<<21;c=c>>11&1048575;32767==e?e=2047:e&&(e+=-15360,0>=e&&(e=2047,b=c=0));a.H[0]=b;a.H[1]=c|(d|e)<<20;return a.L[0]} +function $i(a,b,c){var d=null;b=a.B+b&7;if(c||a.C&1<>16}function cj(a){return a.G.ha(a.G.C)}function dj(a){a.ea[0]=a.G.ha(a.G.C);return a.W[0]}function ej(a){a.H[0]=a.G.ha(a.G.C);a.H[1]=a.G.ha(a.G.C+4);return a.L[0]}function fj(a){a.D[0]=a.G.ha(a.G.C);a.D[1]=a.G.ha(a.G.C+4);a.D[2]=a.G.ka(a.G.C+8);return a.D}m.Mi=function(){this.G.mb(this.G.C,this.H[0])}; +m.Bl=function(){this.G.mb(this.G.C,this.H[0]);this.G.mb(this.G.C+4,this.H[1])};function gj(a){a.G.mb(a.G.C,a.D[0]);a.G.mb(a.G.C+4,a.D[1]);a.G.nb(a.G.C+8,a.D[2])}function hj(a,b){var c=b[1],d=(b[2]&32768)>>4,e=b[2]&32767;b=b[0]>>>11|c<<21;c=c>>11&1048575;32767==e?e=2047:e&&(e+=-15360,0>=e&&(e=2047,b=c=0));a.H[0]=b;a.H[1]=c|(d|e)<<20;return a.L[0]} function aj(a,b,c){var d=c>>20&2047,e=2147483648|(c&1048575)<<11|b>>>21;2047==d?d=32767:d?d+=15360:e&=2147483647;a.D[0]=b<<11;a.D[1]=e;a.D[2]=c>>16&32768|d;return a.D}function ij(a,b){for(var c=0,d=1;b--;)c+=(a&15)*d,d*=10,a>>=4;return c}function jj(a,b){for(var c=0,d=0;b--;)c|=a%10<>11;Ii(a);Ji(a,c.tb(b+=c.X));!(c.ma&1)||c.P&131072?(a.I=c.tb(b+=c.X),d=c.tb(b+=c.X),a.P=d&2047,a.I|=(d&-4096)<<4,a.N=-1,a.K=c.tb(b+=c.X),a.K|=(c.tb(b+=c.X)&-4096)<<4,a.O=-1):(a.I=c.tb(b+=c.X),d=c.tb(b+=c.X),a.N=d&65535,a.P=d>>16&2047,a.K=c.tb(b+=c.X),a.O=c.tb(b+=c.X)&65535);return b+c.X} -function nj(a,b){var c=a.G;c.Vb(b,a.Wb);c.Vb(b+=c.X,Gi(a));c.Vb(b+=c.X,Hi(a));if(!(c.ma&1)||c.P&131072){var d=(a.N<<4)+a.I;c.Vb(b+=c.X,d);c.Vb(b+=c.X,d>>4&-4096|a.P);d=(a.O<<4)+a.K;c.Vb(b+=c.X,d);c.Vb(b+=c.X,d>>4&-4096)}else c.Vb(b+=c.X,a.I),c.Vb(b+=c.X,a.N|a.P<<16),c.Vb(b+=c.X,a.K),c.Vb(b+=c.X,a.O);return b+c.X}function oj(){this.da&=-32896;Ii(this)}function pj(){Vi(this,M(this,0),M(this,this.A))}function qj(){Vi(this,M(this,0),M(this,this.A))&&kj(this)}function rj(){qj.call(this)} -function sj(){N(this,0,Ui(this,M(this,0),dj(this)))}function tj(){this.C&=~(1<>11;Ii(a);Ji(a,c.ub(b+=c.X));!(c.ma&1)||c.P&131072?(a.I=c.ub(b+=c.X),d=c.ub(b+=c.X),a.P=d&2047,a.I|=(d&-4096)<<4,a.N=-1,a.K=c.ub(b+=c.X),a.K|=(c.ub(b+=c.X)&-4096)<<4,a.O=-1):(a.I=c.ub(b+=c.X),d=c.ub(b+=c.X),a.N=d&65535,a.P=d>>16&2047,a.K=c.ub(b+=c.X),a.O=c.ub(b+=c.X)&65535);return b+c.X} +function nj(a,b){var c=a.G;c.Wb(b,a.Xb);c.Wb(b+=c.X,Gi(a));c.Wb(b+=c.X,Hi(a));if(!(c.ma&1)||c.P&131072){var d=(a.N<<4)+a.I;c.Wb(b+=c.X,d);c.Wb(b+=c.X,d>>4&-4096|a.P);d=(a.O<<4)+a.K;c.Wb(b+=c.X,d);c.Wb(b+=c.X,d>>4&-4096)}else c.Wb(b+=c.X,a.I),c.Wb(b+=c.X,a.N|a.P<<16),c.Wb(b+=c.X,a.K),c.Wb(b+=c.X,a.O);return b+c.X}function oj(){this.da&=-32896;Ii(this)}function pj(){Vi(this,M(this,0),M(this,this.A))}function qj(){Vi(this,M(this,0),M(this,this.A))&&kj(this)}function rj(){qj.call(this)} +function sj(){N(this,0,Ui(this,M(this,0),dj(this)))}function tj(){this.C&=~(1<>20&2047)-1023),this.H[1]=(this.H[1]|1072693248)&-1073741825,lj(this,this.L[0]))},102:function(){this.B=this.B-1&7;this.da&=-513},103:function(){this.B= this.B+1&7;this.da&=-513},112:function(){N(this,0,M(this,0)%M(this,1))},113:function(){N(this,1,M(this,1)*Math.log(M(this,0)+1)/Math.LN2)&&kj(this)},114:function(){var a=M(this,0),b=null;if(0<=a||!Pi(this,1))b=Math.sqrt(a),Qi(this,b)||(b=null);N(this,0,b)},116:function(){N(this,0,Wi(this,M(this,0),Mj))},117:function(){var a=M(this,0),b=M(this,1);null!=a&&null!=b&&N(this,0,a*Math.pow(2,0>>0);lj(this,a)},6:function(){var a=Wi(this,kj(this));null!=a&&(this.D[0]=jj(a,8),this.D[1]=jj(a/1E8,8),this.D[2]=jj(a/1E16,2),0>a&&(this.D[2]|=32768),gj(this))},7:function(){null!=Wi(this,M(this,0),Mj)&&(this.Bl(),kj(this))},48:function(){tj.call(this);kj(this)},49:Gj,50:Bj,51:Bj,52:Ej}},Oj=[oj,uj,vj,wj,xj,yj,Cj,zj,Dj,Ej];Vb(function(){for(var a=oc("pcx86","fpu"),b=0;b>>0)+b>this.Rb&&(8088>=this.Ob.model?this.Ob.O|=8:F.call(this.Ob,13));return this.ta+a|0};m.mj=function(a,b){return(a>>>0)+b<=this.Rb?this.ta+a|0:this.rg(a,b)};m.Sm=function(a,b){return(a>>>0)+b>this.Rb?this.ta+a|0:this.rg(a,b)}; -m.rg=function(){F.call(this.Ob,13,0);return-1};m.oj=function(a,b){return(a>>>0)+b<=this.Rb?this.ta+a|0:this.tg(a,b)};m.Tm=function(a,b){return(a>>>0)+b>this.Rb?this.ta+a|0:this.tg(a,b)};m.tg=function(){F.call(this.Ob,13,0);return-1};function Tj(a,b,c,d,e){a.V=b;a.ta=d;a.Ya=e;a.Rb=(e>>>0)+1;a.wb=c;a.type=c&7936;a.ext=c>>16&192;a.Tb=(b&4?a.Ob.rb.ta:a.Ob.Ab)+(b&65528)|0;a.id>>0)+1;a.wb=e;a.type=e&7936;a.ext=0;a.Tb=b;a.id>>0)+1,a.wb=a.A.wb,a.type=a.A.type,a.ext=a.A.ext,a.Tb=a.A.Tb,a.A.V=-1,oh(a,!0,!0,!1),a.ta;a.A.V=-1;var f=e.ka(b),g=e.ka(b+4),h=g&7936,k=e.ka(b+2)|(g&255)<<16,l=e.ka(b+6),p=c&65528;if(80386<=e.model){var n=f;k|=(l&65280)<<16;f|=(l&15)<<16;l&128&&(f=f<<12|4095)}var q;switch(a.id){case Bg:var t=a.G;a.lf=!1;if(t&&c==Qj&&a.B.length&&(q=a.B[a.Zf-1])&&!q())return-1;var w=c&3;var J=(g&24576)>>13;q=-1;p||b>= -e.Ab&&b=a.Gb&&(w>a.Gb&&(q=wi(e),Eg(e,wi(e),!0),zg(e,q),a.lf=!0),q=0);else{if(256==h||2304==h)return Vj(a,c,t)?a.ta:-1;if(1024==h){q=2;var D=0;wh||2048==(h&2560))return F.call(e,13,c&65532),-1;if(!(g&32768))return F.call(e,11,c&65532),-1}break;case Dg:if(!p||4096>h||512!=(h&2560))return F.call(e,13,c&65532),-1;if(!(g&32768))return F.call(e, -12,c&65532),-1;break;case Ig:t=h&-513;if(!p||256!=t&&2304!=t)return F.call(e,13,c&65532),-1;2304==t&&(a.cj=k+e.ka(k+102)>>>0,a.Om=k+a.Ya>>>0);break;case Jg:if(!(h&4096)&&768>>0)+1,a.wb=g,a.type=h,a.ext=l,a.Tb=b,oh(a,!0,!0,!1));return k} -function Vj(a,b,c){var d=a.Ob,e=a.Gb,f=d.ga.V,g=d.ga.ta;if(!c){if(!(d.ga.type&512))return F.call(d,13,b&65532),!1;d.mb(d.ga.Tb+4,d.ga.wb&=-513)}if(-1===d.ga.load(b))return!1;var h=d.ga.ta;if(!1!==c){if(d.ga.type&512)return F.call(d,13,b&65532),!1;d.mb(d.ga.Tb+4,d.ga.wb|=512)}d.ga.type=d.ga.type&-513|d.ga.wb&512;256==d.ga.type||768==d.ga.type?(d.mb(g+14,C(d)),d.mb(g+16,ih(d)),d.mb(g+18,d.D),d.mb(g+20,d.I),d.mb(g+22,d.M),d.mb(g+24,d.H),d.mb(g+26,A(d)),d.mb(g+28,d.N),d.mb(g+30,d.L),d.mb(g+32,d.K),d.mb(g+ -34,d.fa.V),d.mb(g+36,d.ba.V),d.mb(g+38,d.T.V),d.mb(g+40,d.xa.V),d.rb.load(d.ka(h+42)),Kg(d,d.ka(h+16)|(c?16384:0)),d.D=d.ka(h+18),d.I=d.ka(h+20),d.M=d.ka(h+22),d.H=d.ka(h+24),d.N=d.ka(h+28),d.L=d.ka(h+30),d.K=d.ka(h+32),d.fa.load(d.ka(h+34)),d.xa.load(d.ka(h+40)),Gg(d,d.ka(h+14),d.ka(h+36)),b=38,g=26,a.Gb>>0)+1)}; -function oh(a,b,c,d){void 0===c&&(c=!!(a.Ob.ma&1));a.Ad=!1;if(c)if(a.load=a.Lg,a.Qj=a.io,a.Bb=a.mj,a.Xb=a.oj,void 0===d&&(d=!!(a.Ob.P&131072)),d)a.load=a.H,a.Bb=a.D,a.Xb=a.F,a.Gb=a.wc=3,a.X=a.Ec=2,a.R=a.wa=65535,a.Ya=65535,a.Rb=a.Ya+1,a.Tb=-1,a.lf=!1;else{if(!(a.V&-4))a.Bb=a.rg,a.Xb=a.tg;else if(a.type&4096){6144==(a.type&6656)&&(a.Bb=a.rg);if(a.type&2048||!(a.type&512))a.Xb=a.tg;1024==(a.type&3072)&&(a.Bb==a.mj&&(a.Bb=a.Sm),a.Xb==a.oj&&(a.Xb=a.Tm),a.Ad=!0);b&&a.id>13,80386>a.Ob.model||!(a.ext&64)?(a.X=2,a.R=65535):(a.X=4,a.R=-1),a.Ec=a.X,a.wa=a.R)}else a.load=a.Ih,a.Qj=a.jo,a.Bb=a.sg,a.Xb=a.sg,a.Gb=a.wc=0,a.Tb=-1,a.lf=!1}var Fg=0,Bg=1,Cg=2,Dg=3,Ig=4,Hg=5,Jg=6,Qj=1;function Wj(a,b){var c=a+b+Qh(this)|0;Bh(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&255} -function Xj(a,b){var c=a+b+Qh(this)|0;Bh(this,a,b,c,this.vb|63);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&this.R}function Yj(a,b){var c=a+b|0;Bh(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&255}function Zj(a,b){var c=a+b|0;Bh(this,a,b,c,this.vb|63);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&this.R} -function ak(a,b){a&=b;Jh(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return a}function bk(a,b){this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return Jh(this,a&b,this.vb)&this.R}function ck(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Th(this),a;Rh(this);return a} -function dk(a){if(-1===this.C)return F.call(this,6),a;var b=a,c=this.tb(this.C),d=this.tb(this.C+this.X);2==this.X&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Xj;(bd)&&F.call(this,5);this.O|=2;return a}function ek(a,b){var c=0;if(b){Rh(this);for(var d=1;d&this.R;){if(b&d){a=c;break}d<<=1;c++}}else Th(this);this.A-=11+3*c;return a}function fk(a,b){var c=0;if(b){Rh(this);for(var d=2==this.X?15:31,e=1<>>=1;c++;d--}}else Th(this);this.A-=11+3*c;return a} +function Ag(a,b,c,d){this.Pb=a;this.id=b;this.fg=c||"";this.V=0;this.Za=65535;this.Sb=this.Za+1;this.Hb=this.xc=this.ext=this.xb=this.type=this.ta=0;this.Ub=-1;this.X=this.Fc=2;this.R=this.wa=65535;this.H=this.Jh;this.F=this.D=this.tg;this.A={V:-1,ta:0,Za:0,xb:0,type:0,ext:0,Ub:-1};1==this.id&&(this.$f=0,this.G=null,this.mf=!1,this.C=Array(32),this.B=[]);oh(this,!0,d);0==this.id&&(this.Yb=this.Cb=this.oj)}function Pj(a,b){a.B.push(b);return[a.B.length,Qj]}m=Ag.prototype; +m.Jh=function(a){this.V=a&65535;return this.ta=this.V<<4};m.Mg=function(a,b){var c=this.Pb;a&=65535;if(a&4){var d=c.sb.ta;var e=d+c.sb.Za|0}else d=c.Bb,e=c.Oc;if(d){d=d+(a&65528)|0;if(e-d|0)return c.A-=15,Rj(this,d,a,b);this.id>>0)+b>this.Sb&&(8088>=this.Pb.model?this.Pb.O|=8:F.call(this.Pb,13));return this.ta+a|0};m.nj=function(a,b){return(a>>>0)+b<=this.Sb?this.ta+a|0:this.sg(a,b)};m.Sm=function(a,b){return(a>>>0)+b>this.Sb?this.ta+a|0:this.sg(a,b)}; +m.sg=function(){F.call(this.Pb,13,0);return-1};m.pj=function(a,b){return(a>>>0)+b<=this.Sb?this.ta+a|0:this.ug(a,b)};m.Tm=function(a,b){return(a>>>0)+b>this.Sb?this.ta+a|0:this.ug(a,b)};m.ug=function(){F.call(this.Pb,13,0);return-1};function Tj(a,b,c,d,e){a.V=b;a.ta=d;a.Za=e;a.Sb=(e>>>0)+1;a.xb=c;a.type=c&7936;a.ext=c>>16&192;a.Ub=(b&4?a.Pb.sb.ta:a.Pb.Bb)+(b&65528)|0;a.id>>0)+1;a.xb=e;a.type=e&7936;a.ext=0;a.Ub=b;a.id>>0)+1,a.xb=a.A.xb,a.type=a.A.type,a.ext=a.A.ext,a.Ub=a.A.Ub,a.A.V=-1,oh(a,!0,!0,!1),a.ta;a.A.V=-1;var f=e.ka(b),g=e.ka(b+4),h=g&7936,k=e.ka(b+2)|(g&255)<<16,l=e.ka(b+6),p=c&65528;if(80386<=e.model){var n=f;k|=(l&65280)<<16;f|=(l&15)<<16;l&128&&(f=f<<12|4095)}var q;switch(a.id){case Bg:var t=a.G;a.mf=!1;if(t&&c==Qj&&a.B.length&&(q=a.B[a.$f-1])&&!q())return-1;var w=c&3;var J=(g&24576)>>13;q=-1;p||b>= +e.Bb&&b=a.Hb&&(w>a.Hb&&(q=wi(e),Eg(e,wi(e),!0),zg(e,q),a.mf=!0),q=0);else{if(256==h||2304==h)return Vj(a,c,t)?a.ta:-1;if(1024==h){q=2;var D=0;wh||2048==(h&2560))return F.call(e,13,c&65532),-1;if(!(g&32768))return F.call(e,11,c&65532),-1}break;case Dg:if(!p||4096>h||512!=(h&2560))return F.call(e,13,c&65532),-1;if(!(g&32768))return F.call(e, +12,c&65532),-1;break;case Ig:t=h&-513;if(!p||256!=t&&2304!=t)return F.call(e,13,c&65532),-1;2304==t&&(a.dj=k+e.ka(k+102)>>>0,a.Om=k+a.Za>>>0);break;case Jg:if(!(h&4096)&&768>>0)+1,a.xb=g,a.type=h,a.ext=l,a.Ub=b,oh(a,!0,!0,!1));return k} +function Vj(a,b,c){var d=a.Pb,e=a.Hb,f=d.ga.V,g=d.ga.ta;if(!c){if(!(d.ga.type&512))return F.call(d,13,b&65532),!1;d.nb(d.ga.Ub+4,d.ga.xb&=-513)}if(-1===d.ga.load(b))return!1;var h=d.ga.ta;if(!1!==c){if(d.ga.type&512)return F.call(d,13,b&65532),!1;d.nb(d.ga.Ub+4,d.ga.xb|=512)}d.ga.type=d.ga.type&-513|d.ga.xb&512;256==d.ga.type||768==d.ga.type?(d.nb(g+14,C(d)),d.nb(g+16,ih(d)),d.nb(g+18,d.D),d.nb(g+20,d.I),d.nb(g+22,d.M),d.nb(g+24,d.H),d.nb(g+26,A(d)),d.nb(g+28,d.N),d.nb(g+30,d.L),d.nb(g+32,d.K),d.nb(g+ +34,d.fa.V),d.nb(g+36,d.ba.V),d.nb(g+38,d.T.V),d.nb(g+40,d.xa.V),d.sb.load(d.ka(h+42)),Kg(d,d.ka(h+16)|(c?16384:0)),d.D=d.ka(h+18),d.I=d.ka(h+20),d.M=d.ka(h+22),d.H=d.ka(h+24),d.N=d.ka(h+28),d.L=d.ka(h+30),d.K=d.ka(h+32),d.fa.load(d.ka(h+34)),d.xa.load(d.ka(h+40)),Gg(d,d.ka(h+14),d.ka(h+36)),b=38,g=26,a.Hb>>0)+1)}; +function oh(a,b,c,d){void 0===c&&(c=!!(a.Pb.ma&1));a.Bd=!1;if(c)if(a.load=a.Mg,a.Qj=a.io,a.Cb=a.nj,a.Yb=a.pj,void 0===d&&(d=!!(a.Pb.P&131072)),d)a.load=a.H,a.Cb=a.D,a.Yb=a.F,a.Hb=a.xc=3,a.X=a.Fc=2,a.R=a.wa=65535,a.Za=65535,a.Sb=a.Za+1,a.Ub=-1,a.mf=!1;else{if(!(a.V&-4))a.Cb=a.sg,a.Yb=a.ug;else if(a.type&4096){6144==(a.type&6656)&&(a.Cb=a.sg);if(a.type&2048||!(a.type&512))a.Yb=a.ug;1024==(a.type&3072)&&(a.Cb==a.nj&&(a.Cb=a.Sm),a.Yb==a.pj&&(a.Yb=a.Tm),a.Bd=!0);b&&a.id>13,80386>a.Pb.model||!(a.ext&64)?(a.X=2,a.R=65535):(a.X=4,a.R=-1),a.Fc=a.X,a.wa=a.R)}else a.load=a.Jh,a.Qj=a.jo,a.Cb=a.tg,a.Yb=a.tg,a.Hb=a.xc=0,a.Ub=-1,a.mf=!1}var Fg=0,Bg=1,Cg=2,Dg=3,Ig=4,Hg=5,Jg=6,Qj=1;function Wj(a,b){var c=a+b+Qh(this)|0;Bh(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return c&255} +function Xj(a,b){var c=a+b+Qh(this)|0;Bh(this,a,b,c,this.wb|63);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return c&this.R}function Yj(a,b){var c=a+b|0;Bh(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return c&255}function Zj(a,b){var c=a+b|0;Bh(this,a,b,c,this.wb|63);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return c&this.R} +function ak(a,b){a&=b;Jh(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return a}function bk(a,b){this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return Jh(this,a&b,this.wb)&this.R}function ck(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Th(this),a;Rh(this);return a} +function dk(a){if(-1===this.C)return F.call(this,6),a;var b=a,c=this.ub(this.C),d=this.ub(this.C+this.X);2==this.X&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Xj;(bd)&&F.call(this,5);this.O|=2;return a}function ek(a,b){var c=0;if(b){Rh(this);for(var d=1;d&this.R;){if(b&d){a=c;break}d<<=1;c++}}else Th(this);this.A-=11+3*c;return a}function fk(a,b){var c=0;if(b){Rh(this);for(var d=2==this.X?15:31,e=1<>>=1;c++;d--}}else Th(this);this.A-=11+3*c;return a} function gk(a,b){a&1<<(b&(2==this.X?15:31))?Kh(this):Lh(this);this.A-=-1===this.C?3:6;this.O|=2;return a}function hk(a,b){b=1<<(b&(2==this.X?15:31));a&b?Kh(this):Lh(this);this.A-=-1===this.C?6:8;return a^b}function ik(a,b){b=1<<(b&(2==this.X?15:31));a&b?Kh(this):Lh(this);this.A-=-1===this.C?6:8;return a&~b}function jk(a,b){b=1<<(b&(2==this.X?15:31));a&b?Kh(this):Lh(this);this.A-=-1===this.C?6:8;return a|b} function kk(a,b){if(-1===this.C)return gk.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Zh(this,this.za,this.Ka+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?Kh(this):Lh(this);this.A-=6;this.O|=2;return a}function lk(a,b){if(-1===this.C)return hk.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Zh(this,this.za,this.Ka+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?Kh(this):Lh(this);this.A-=8;return a^b} function mk(a,b){if(-1===this.C)return ik.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Zh(this,this.za,this.Ka+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?Kh(this):Lh(this);this.A-=8;return a&~b}function nk(a,b){if(-1===this.C)return jk.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Zh(this,this.za,this.Ka+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?Kh(this):Lh(this);this.A-=8;return a|b} -function ok(a,b){Bh(this,a,b,a-b|0,191,!0);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Sh:this.B.Qb;this.O|=2;return a}function pk(a,b){Bh(this,a,b,a-b|0,this.vb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Sh:this.B.Qb;this.O|=2;return a} -function qk(a){if(this.Ub){var b=this.Ub,c=this.Yi,d=this.ea,e=d>>3&7;b.A=d&7;var f=(3>(d>>6&3)?0:48)+e;(217==c||219==c)&&52<=f&&(f=e<<4|b.A);if(e=Nj[c][f]){if(0>Oj.indexOf(e)){f=b.G;var g=f.Pc;8087==b.model&&(f.aa&16&&g++,f.aa&32&&g++);b.N=f.ba.V;b.I=g-f.ba.ta;-1!==f.C&&(b.O=f.za.V,b.K=f.C-f.za.ta);b.P=(c&7)<<8|d}e.call(b)}}this.A-=-1===this.C?2:8;return a}function rk(a,b){if(80186>this.model)return sk.call(this,a,b);F.call(this,13,0);return a}function Zf(a){F.call(this,6);return a} -function sk(a){Yf.call(this);return a}function tk(a,b){a=uk.call(this,this.S(),b);80386>this.model&&(this.A-=12);return a}function vk(a,b){a=this.Ja();a=2==this.X?uk.call(this,a,b):wk.call(this,a,b);80386>this.model&&(this.A-=12);return a}function xk(a,b){var c=!1;0>b&&(b=-b|0,c=!c);0>a&&(a=-a|0,c=!c);yk.call(this,a,b);c&&(this.Ba=~this.Ba+1|0,this.Sa=~this.Sa+(this.Ba?0:1)|0)} -function uk(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767a?(Kh(this),Mh(this)):(Lh(this),Nh(this));this.A-=-1===this.C?9:12;return a&65535}function wk(a,b){xk.call(this,a,b);this.Sa!=this.Ba>>31?(Kh(this),Mh(this)):(Lh(this),Nh(this));this.A-=-1===this.C?9:12;return this.Ba}function zk(a,b){this.A-=14+(-1===this.C?0:2);Rh(this);-1!==this.nb.load(b)&&this.nb.wc>=this.Na&&this.nb.wc>=(b&3)&&(Th(this),a=this.nb.wb&-256,2=this.Na)&&this.nb.wc>=(b&3))return Th(this),this.nb.Ya;Rh(this);return a}function Gk(a,b){if(-1===this.C)return Yf.call(this),a;Eg(this,this.ka(this.C+this.X));this.A-=this.B.uf;return b} +function ok(a,b){Bh(this,a,b,a-b|0,191,!0);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Th:this.B.Rb;this.O|=2;return a}function pk(a,b){Bh(this,a,b,a-b|0,this.wb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Th:this.B.Rb;this.O|=2;return a} +function qk(a){if(this.Vb){var b=this.Vb,c=this.Zi,d=this.ea,e=d>>3&7;b.A=d&7;var f=(3>(d>>6&3)?0:48)+e;(217==c||219==c)&&52<=f&&(f=e<<4|b.A);if(e=Nj[c][f]){if(0>Oj.indexOf(e)){f=b.G;var g=f.Qc;8087==b.model&&(f.aa&16&&g++,f.aa&32&&g++);b.N=f.ba.V;b.I=g-f.ba.ta;-1!==f.C&&(b.O=f.za.V,b.K=f.C-f.za.ta);b.P=(c&7)<<8|d}e.call(b)}}this.A-=-1===this.C?2:8;return a}function rk(a,b){if(80186>this.model)return sk.call(this,a,b);F.call(this,13,0);return a}function Zf(a){F.call(this,6);return a} +function sk(a){Yf.call(this);return a}function tk(a,b){a=uk.call(this,this.S(),b);80386>this.model&&(this.A-=12);return a}function vk(a,b){a=this.Ja();a=2==this.X?uk.call(this,a,b):wk.call(this,a,b);80386>this.model&&(this.A-=12);return a}function xk(a,b){var c=!1;0>b&&(b=-b|0,c=!c);0>a&&(a=-a|0,c=!c);yk.call(this,a,b);c&&(this.Ba=~this.Ba+1|0,this.Ta=~this.Ta+(this.Ba?0:1)|0)} +function uk(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767a?(Kh(this),Mh(this)):(Lh(this),Nh(this));this.A-=-1===this.C?9:12;return a&65535}function wk(a,b){xk.call(this,a,b);this.Ta!=this.Ba>>31?(Kh(this),Mh(this)):(Lh(this),Nh(this));this.A-=-1===this.C?9:12;return this.Ba}function zk(a,b){this.A-=14+(-1===this.C?0:2);Rh(this);-1!==this.ob.load(b)&&this.ob.xc>=this.Na&&this.ob.xc>=(b&3)&&(Th(this),a=this.ob.xb&-256,2=this.Na)&&this.ob.xc>=(b&3))return Th(this),this.ob.Za;Rh(this);return a}function Gk(a,b){if(-1===this.C)return Yf.call(this),a;Eg(this,this.ka(this.C+this.X));this.A-=this.B.vf;return b} function Rk(a,b){this.A-=-1===this.F?-1===this.C?this.B.Gk:this.B.Fk:this.B.Dk;return b}function Sk(a,b){switch(this.ea>>3&7){case 4:this.qa=this.D;break;case 5:this.qa=this.I;break;case 6:this.qa=this.M;break;case 7:this.qa=this.H}return b}function Tk(a,b){return b} function Uk(a,b){var c=this.ea>>3&7;switch(c){case 0:this.qa=this.D;break;case 2:this.qa=this.M;break;case 3:this.qa=this.H;break;default:if(80286==this.model||80386==this.model&&4!=c&&5!=c)F.call(this,6);else switch(c){case 1:this.qa=this.I;break;case 4:this.qa=A(this);break;case 5:this.qa=this.N;break;case 6:this.qa=this.L;break;case 7:this.qa=this.K}}return Rk.call(this,a,b)} function Vk(a,b){switch(this.ea>>3&7){case 0:b=this.fa.V;break;case 1:b=this.ba.V;break;case 2:b=this.T.V;break;case 3:b=this.xa.V;break;case 4:if(80386<=this.model){b=this.Fa.V;break}F.call(this,6);b=a;break;case 5:if(80386<=this.model){b=this.Ia.V;break}default:F.call(this,6),b=a}-1!==this.F&&eh(this,2);return Rk.call(this,a,b)} -function yk(a,b){if(a&-65536||b&-65536){var c=b&65535;b>>>=16;var d=a&65535;a>>>=16;var e=c*d;d=(e>>>16)+b*d;var f=d>>>16;d=(d&65535)+c*a;this.Ba=d<<16|e&65535;this.Sa=f+((d>>>16)+b*a)|0}else this.Ba=a*b|0,this.Sa=0}function Wk(a,b){this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return Jh(this,a|b,128)}function Xk(a,b){this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return Jh(this,a|b,this.vb)&this.R} -function Yk(a,b){var c=a-b-Qh(this)|0;Bh(this,a,b,c,191,!0);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&255}function Zk(a,b){var c=a-b-Qh(this)|0;Bh(this,a,b,c,this.vb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&this.R}function $k(){return Ih(this)?1:0}function al(){return Ch(this)?1:0}function bl(){return Ch(this)?0:1}function cl(){return Fh(this)?1:0}function dl(){return Fh(this)?0:1}function el(){return Ch(this)||Fh(this)?1:0} +function yk(a,b){if(a&-65536||b&-65536){var c=b&65535;b>>>=16;var d=a&65535;a>>>=16;var e=c*d;d=(e>>>16)+b*d;var f=d>>>16;d=(d&65535)+c*a;this.Ba=d<<16|e&65535;this.Ta=f+((d>>>16)+b*a)|0}else this.Ba=a*b|0,this.Ta=0}function Wk(a,b){this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return Jh(this,a|b,128)}function Xk(a,b){this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return Jh(this,a|b,this.wb)&this.R} +function Yk(a,b){var c=a-b-Qh(this)|0;Bh(this,a,b,c,191,!0);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return c&255}function Zk(a,b){var c=a-b-Qh(this)|0;Bh(this,a,b,c,this.wb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return c&this.R}function $k(){return Ih(this)?1:0}function al(){return Ch(this)?1:0}function bl(){return Ch(this)?0:1}function cl(){return Fh(this)?1:0}function dl(){return Fh(this)?0:1}function el(){return Ch(this)||Fh(this)?1:0} function fl(){return Ch(this)||Fh(this)?0:1}function gl(){return Hh(this)?1:0}function hl(){return Hh(this)?0:1}function il(){return Dh(this)?1:0}function jl(){return Dh(this)?0:1}function kl(){return!Hh(this)!=!Ih(this)?1:0}function ll(){return!Hh(this)!=!Ih(this)?0:1}function ml(){return Fh(this)||!Hh(this)!=!Ih(this)?1:0}function nl(){return Fh(this)||!Hh(this)!=!Ih(this)?0:1}function ol(a,b){return pl.call(this,a,b,this.ra())}function ql(a,b){return rl.call(this,a,b,this.ra())} -function sl(a,b){return pl.call(this,a,b,this.I&31)}function tl(a,b){return rl.call(this,a,b,this.I&31)}function ul(a,b){return vl.call(this,a,b,this.ra())}function wl(a,b){return xl.call(this,a,b,this.ra())}function yl(a,b){return vl.call(this,a,b,this.I&31)}function zl(a,b){return xl.call(this,a,b,this.I&31)}function Al(a,b){var c=a-b|0;Bh(this,a,b,c,191,!0);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&255} -function Bl(a,b){var c=a-b|0;Bh(this,a,b,c,this.vb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return c&this.R}function Cl(a,b){Jh(this,a&b,128);this.A-=-1===this.F?-1===this.C?this.B.vi:this.B.Vf:this.B.Vf;this.O|=2;return a}function Dl(a,b){Jh(this,a&b,this.vb);this.A-=-1===this.F?-1===this.C?this.B.vi:this.B.Vf:this.B.Vf;this.O|=2;return a}function El(a,b){var c=this.D&this.R,d=(1<<(this.I&31))-1;return a&~(d<>(this.D&this.R)&(1<<(this.I&31))-1&this.R}function Gl(a,b){if(-1===this.C){switch(this.ea&7){case 0:this.D=this.D&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.M=this.M&-256|a;break;case 3:this.H=this.H&-256|a;break;case 4:this.D=this.D&-65281|a<<8;break;case 5:this.I=this.I&-65281|a<<8;break;case 6:this.M=this.M&-65281|a<<8;break;case 7:this.H=this.H&-65281|a<<8}this.A-=this.B.xi}else this.F=this.C,qi(this,a),this.A-=this.B.wi;return b} -function Hl(a,b){if(-1===this.C){switch(this.ea&7){case 0:this.D=this.D&~this.R|a;break;case 1:this.I=this.I&~this.R|a;break;case 2:this.M=this.M&~this.R|a;break;case 3:this.H=this.H&~this.R|a;break;case 4:zg(this,A(this)&~this.R|a);break;case 5:this.N=this.H&~this.R|a;break;case 6:this.L=this.L&~this.R|a;break;case 7:this.K=this.K&~this.R|a}this.A-=this.B.xi}else{this.F=this.C;if(!(this.O&2)){var c=this.za.Xb(this.Ka,this.X);this.O&8?(this.ub(c,a),this.ub(this.za.Xb(0,1),a>>8),this.O&=-9):this.Vb(c, -a)}this.A-=this.B.wi}return b}function Il(a,b){a^=b;Jh(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return a}function Jl(a,b){this.A-=-1===this.F?-1===this.C?this.B.pc:this.B.Qb:this.B.Jc;return Jh(this,a^b,this.vb)&this.R}function Kl(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c}function Ll(a){var b=a-1|0;Bh(this,a,1,b,this.vb|62,!0);this.A-=2;return a&~this.R|b&this.R} -function Ml(a,b,c){c>>>=0;if(!c||c<=b>>>0)return!1;var d=0,e=1,f=this.mm;f[0]=c>>>0;f[1]=0;c=this.pm;c[0]=a>>>0;for(c[1]=b>>>0;0>>=0,a[1]++),e+=e;do 0<=Kl(c,f)&&(a=c,b=f,a[0]-=b[0],a[1]-=b[1],0>a[0]&&(a[0]>>>=0,a[1]--),d+=e),a=f,a[0]>>>=1,a[1]&1&&(a[0]=(a[0]|2147483648)>>>0),a[1]>>>=1,e/=2;while(1<=e);this.Ba=d;this.Sa=c[0];return!0}function Nl(a){var b=a+1|0;Bh(this,a,1,b,this.vb|62);this.A-=2;return a&~this.R|b&this.R} -function Ol(a){this.ma=a|2147483616;Lg(this);this.ma&-2147483648?mg(this):pg(this)}function Pl(a){this.O|=1;this.oc.call(this,a);this.A-=-1===this.C?4:5}function pl(a,b,c){if(c){16>>16-c)&65535;Jh(this,a,32768,d&32768)}return a}function rl(a,b,c){if(c){var d=a<>>32-c;Jh(this,a,-2147483648,d&-2147483648)}return a}function vl(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;Jh(this,a,32768,d&1)}return a} -function xl(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;Jh(this,a,-2147483648,d&1)}return a}function Ql(){this.A-=-1===this.C?2:this.B.Tk;return 1}function Rl(){var a=this.I&255;this.A-=(-1===this.C?this.B.ni:this.B.mi)+(a<=this.model&&1741==ti(this,this.ba,f-2))switch(ti(this,this.T,this.N+10),ti(this,this.T,this.N+12),ti(this,this.T,this.N+6),ti(this,this.T,this.N+8),this.ya(this.Y)){case 204:if(this.ca&&this.flags.eb){this.ra();this.J("debugger halting on INT 0x06,0xCC\n");Xl(this.ca);return}}19==a&&8088>=this.model&&this.ca&&513==this.D&&31744==this.H&&0==this.fa.V&&this.mb(1325,17474);a=this.ba.Qj(a, -c);-1!==a&&(xi(this,d),xi(this,e),xi(this,f),null!=b&&xi(this,b),this.Ac=-1,yh(this,a))}function Yl(a){this.Uc=this.T.V;this.pa=this.Aa;var b=wi(this),c=wi(this);a&&zg(this,A(this)+a);Gg(this,b,c,!1)&&(a&&zg(this,A(this)+a),Zl.call(this,this.xa),Zl.call(this,this.fa),80386<=this.model&&(Zl.call(this,this.Fa),Zl.call(this,this.Ia)));2==a&&this.Dg&&lh(this,this.Y);this.Uc=this.pa=-1}function $l(){8088>=this.model?(this.Ac=-1,Wl.call(this,0,null,0,2)):F.call(this,0,null,2)} -function Ci(a){this.Ac=a;Wl.call(this,a,null,0,11)} -function F(a,b,c,d){var e=!1;this.flags.complete?80186<=this.model&&(e=!0,0>this.Ac?(-1!=this.ld&&(this.ld!==this.ba.V&&(this.ba.Gb=this.ld&3,uh(this,this.ld)),this.ld=-1),this.Pc!==this.Y&&yh(this,this.Pc),-1!=this.Uc&&(this.Uc!==this.T.V&&Eg(this,this.Uc),this.Uc=-1),-1!==this.pa&&(this.pa!==this.Aa&&zg(this,this.Cc&~this.T.wa|this.pa-this.T.ta),this.pa=-1)):8!=this.Ac?(b=0,a=8):(b=0,a=-1,d=!1,kg(this))):yh(this,this.Pc);var f=a,g=b,h=512,k=Wh(this,this.Y);204!=k||this.gd||(d=!1);this.P&131072&& -(6==f&&99==k||13==f&&(156==k||157==k||205==k||207==k||228<=k&&231>=k||236<=k&&239>=k||250==k||251==k))&&(d=!1);!1===d&&(h|=2);983040<=this.Y&&1048575>=this.Y&&(d=!1);x(this,h+70368744177664)&&(d=!0);if(x(this,h)||d){var l=this.flags.eb;f="Fault "+Va(f)+(null!=g?" ("+Xa(g)+")":"")+" on opcode "+Va(k);d&&l&&(f+=" (blocked)");this.ca?(this.J((d?4398046511104:h)+1,"%s\n",f),d&&(d=l,Xl(this.ca))):(this.J(274877906944,"%s\n",f),af(this))}if((d||0>a)&&e)throw-1;if(e)throw this.Ac=a,Wl.call(this,a,b,0,c), -this.Pc=this.Y,this.O=1==a?this.O|8192:this.O|4096,a;}function og(a,b,c){this.md=a;a=0;b&&(a|=1);c&&(a|=2);3==this.Na&&(a|=4);F.call(this,14,a)}function Zl(a){var b=a.wb&7680;a.V&65528&&(6144==b||7168==b||7168>b&&a.wc>(this.D&this.R)&(1<<(this.I&31))-1&this.R}function Gl(a,b){if(-1===this.C){switch(this.ea&7){case 0:this.D=this.D&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.M=this.M&-256|a;break;case 3:this.H=this.H&-256|a;break;case 4:this.D=this.D&-65281|a<<8;break;case 5:this.I=this.I&-65281|a<<8;break;case 6:this.M=this.M&-65281|a<<8;break;case 7:this.H=this.H&-65281|a<<8}this.A-=this.B.yi}else this.F=this.C,qi(this,a),this.A-=this.B.xi;return b} +function Hl(a,b){if(-1===this.C){switch(this.ea&7){case 0:this.D=this.D&~this.R|a;break;case 1:this.I=this.I&~this.R|a;break;case 2:this.M=this.M&~this.R|a;break;case 3:this.H=this.H&~this.R|a;break;case 4:zg(this,A(this)&~this.R|a);break;case 5:this.N=this.H&~this.R|a;break;case 6:this.L=this.L&~this.R|a;break;case 7:this.K=this.K&~this.R|a}this.A-=this.B.yi}else{this.F=this.C;if(!(this.O&2)){var c=this.za.Yb(this.Ka,this.X);this.O&8?(this.vb(c,a),this.vb(this.za.Yb(0,1),a>>8),this.O&=-9):this.Wb(c, +a)}this.A-=this.B.xi}return b}function Il(a,b){a^=b;Jh(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return a}function Jl(a,b){this.A-=-1===this.F?-1===this.C?this.B.qc:this.B.Rb:this.B.Kc;return Jh(this,a^b,this.wb)&this.R}function Kl(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c}function Ll(a){var b=a-1|0;Bh(this,a,1,b,this.wb|62,!0);this.A-=2;return a&~this.R|b&this.R} +function Ml(a,b,c){c>>>=0;if(!c||c<=b>>>0)return!1;var d=0,e=1,f=this.mm;f[0]=c>>>0;f[1]=0;c=this.pm;c[0]=a>>>0;for(c[1]=b>>>0;0>>=0,a[1]++),e+=e;do 0<=Kl(c,f)&&(a=c,b=f,a[0]-=b[0],a[1]-=b[1],0>a[0]&&(a[0]>>>=0,a[1]--),d+=e),a=f,a[0]>>>=1,a[1]&1&&(a[0]=(a[0]|2147483648)>>>0),a[1]>>>=1,e/=2;while(1<=e);this.Ba=d;this.Ta=c[0];return!0}function Nl(a){var b=a+1|0;Bh(this,a,1,b,this.wb|62);this.A-=2;return a&~this.R|b&this.R} +function Ol(a){this.ma=a|2147483616;Lg(this);this.ma&-2147483648?mg(this):pg(this)}function Pl(a){this.O|=1;this.pc.call(this,a);this.A-=-1===this.C?4:5}function pl(a,b,c){if(c){16>>16-c)&65535;Jh(this,a,32768,d&32768)}return a}function rl(a,b,c){if(c){var d=a<>>32-c;Jh(this,a,-2147483648,d&-2147483648)}return a}function vl(a,b,c){if(c){16>>c-1;a=(d>>>1|b<<16-c)&65535;Jh(this,a,32768,d&1)}return a} +function xl(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;Jh(this,a,-2147483648,d&1)}return a}function Ql(){this.A-=-1===this.C?2:this.B.Tk;return 1}function Rl(){var a=this.I&255;this.A-=(-1===this.C?this.B.oi:this.B.ni)+(a<=this.model&&1741==ti(this,this.ba,f-2))switch(ti(this,this.T,this.N+10),ti(this,this.T,this.N+12),ti(this,this.T,this.N+6),ti(this,this.T,this.N+8),this.ya(this.Y)){case 204:if(this.ca&&this.flags.fb){this.ra();this.J("debugger halting on INT 0x06,0xCC\n");Xl(this.ca);return}}19==a&&8088>=this.model&&this.ca&&513==this.D&&31744==this.H&&0==this.fa.V&&this.nb(1325,17474);a=this.ba.Qj(a, +c);-1!==a&&(xi(this,d),xi(this,e),xi(this,f),null!=b&&xi(this,b),this.Bc=-1,yh(this,a))}function Yl(a){this.Vc=this.T.V;this.pa=this.Aa;var b=wi(this),c=wi(this);a&&zg(this,A(this)+a);Gg(this,b,c,!1)&&(a&&zg(this,A(this)+a),Zl.call(this,this.xa),Zl.call(this,this.fa),80386<=this.model&&(Zl.call(this,this.Fa),Zl.call(this,this.Ia)));2==a&&this.Eg&&lh(this,this.Y);this.Vc=this.pa=-1}function $l(){8088>=this.model?(this.Bc=-1,Wl.call(this,0,null,0,2)):F.call(this,0,null,2)} +function Ci(a){this.Bc=a;Wl.call(this,a,null,0,11)} +function F(a,b,c,d){var e=!1;this.flags.complete?80186<=this.model&&(e=!0,0>this.Bc?(-1!=this.md&&(this.md!==this.ba.V&&(this.ba.Hb=this.md&3,uh(this,this.md)),this.md=-1),this.Qc!==this.Y&&yh(this,this.Qc),-1!=this.Vc&&(this.Vc!==this.T.V&&Eg(this,this.Vc),this.Vc=-1),-1!==this.pa&&(this.pa!==this.Aa&&zg(this,this.Dc&~this.T.wa|this.pa-this.T.ta),this.pa=-1)):8!=this.Bc?(b=0,a=8):(b=0,a=-1,d=!1,kg(this))):yh(this,this.Qc);var f=a,g=b,h=512,k=Wh(this,this.Y);204!=k||this.hd||(d=!1);this.P&131072&& +(6==f&&99==k||13==f&&(156==k||157==k||205==k||207==k||228<=k&&231>=k||236<=k&&239>=k||250==k||251==k))&&(d=!1);!1===d&&(h|=2);983040<=this.Y&&1048575>=this.Y&&(d=!1);x(this,h+70368744177664)&&(d=!0);if(x(this,h)||d){var l=this.flags.fb;f="Fault "+Va(f)+(null!=g?" ("+Xa(g)+")":"")+" on opcode "+Va(k);d&&l&&(f+=" (blocked)");this.ca?(this.J((d?4398046511104:h)+1,"%s\n",f),d&&(d=l,Xl(this.ca))):(this.J(274877906944,"%s\n",f),af(this))}if((d||0>a)&&e)throw-1;if(e)throw this.Bc=a,Wl.call(this,a,b,0,c), +this.Qc=this.Y,this.O=1==a?this.O|8192:this.O|4096,a;}function og(a,b,c){this.nd=a;a=0;b&&(a|=1);c&&(a|=2);3==this.Na&&(a|=4);F.call(this,14,a)}function Zl(a){var b=a.xb&7680;a.V&65528&&(6144==b||7168==b||7168>b&&a.xc>8&255;break;case 197:b=this.I>>8&255;break;case 198:b=this.M>>8&255;break;case 199:b=this.H>>8&255;break;default:b=0}var c=this.ea>>3&7;switch(c){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.M&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.M>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=this.D& -256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.M=this.M&-256|a;break;case 3:this.H=this.H&-256|a;break;case 4:this.D=this.D&-65281|a<<8;break;case 5:this.I=this.I&-65281|a<<8;break;case 6:this.M=this.M&-65281|a<<8;break;case 7:this.H=this.H&-65281|a<<8}} function Og(a){var b=(this.ea=this.ra())&199;switch(b){case 0:var c=G(this,this.H+this.L);this.F=this.C;break;case 1:c=G(this,this.H+this.K);this.F=this.C;break;case 2:c=Yh(this,this.N+this.L);this.F=this.C;break;case 3:c=Yh(this,this.N+this.K);this.F=this.C;break;case 4:c=G(this,this.L);this.F=this.C;break;case 5:c=G(this,this.K);this.F=this.C;break;case 6:c=G(this,L(this));this.F=this.C;break;case 7:c=G(this,this.H);this.F=this.C;break;case 64:c=G(this,this.H+this.L+this.S());this.F=this.C;break; case 65:c=G(this,this.H+this.K+this.S());this.F=this.C;break;case 66:c=Yh(this,this.N+this.L+this.S());this.F=this.C;break;case 67:c=Yh(this,this.N+this.K+this.S());this.F=this.C;break;case 68:c=G(this,this.L+this.S());this.F=this.C;break;case 69:c=G(this,this.K+this.S());this.F=this.C;break;case 70:c=Yh(this,this.N+this.S());this.F=this.C;break;case 71:c=G(this,this.H+this.S());this.F=this.C;break;case 128:c=G(this,this.H+this.L+L(this));this.F=this.C;break;case 129:c=G(this,this.H+this.K+L(this)); this.F=this.C;break;case 130:c=Yh(this,this.N+this.L+L(this));this.F=this.C;break;case 131:c=Yh(this,this.N+this.K+L(this));this.F=this.C;break;case 132:c=G(this,this.L+L(this));this.F=this.C;break;case 133:c=G(this,this.K+L(this));this.F=this.C;break;case 134:c=Yh(this,this.N+L(this));this.F=this.C;break;case 135:c=G(this,this.H+L(this));this.F=this.C;break;case 192:c=this.D&255;break;case 193:c=this.I&255;break;case 194:c=this.M&255;break;case 195:c=this.H&255;break;case 196:c=this.D>>8&255;break; -case 197:c=this.I>>8&255;break;case 198:c=this.M>>8&255;break;case 199:c=this.H>>8&255;break;default:c=0}switch(this.ea>>3&7){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.M&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.M>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:qi(this,a);this.A-=this.B.ad;break;case 1:case 2:qi(this,a);this.A-=this.B.bd;break;case 4:case 5:case 7:qi(this, -a);this.A-=this.B.yc;break;case 6:qi(this,a);this.A-=this.B.Ud;break;case 64:case 67:case 128:case 131:qi(this,a);this.A-=this.B.ac;break;case 65:case 66:case 129:case 130:qi(this,a);this.A-=this.B.bc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:qi(this,a);this.A-=this.B.gb;break;case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.M=this.M&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;case 197:this.I= +case 197:c=this.I>>8&255;break;case 198:c=this.M>>8&255;break;case 199:c=this.H>>8&255;break;default:c=0}switch(this.ea>>3&7){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.M&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.M>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:qi(this,a);this.A-=this.B.bd;break;case 1:case 2:qi(this,a);this.A-=this.B.cd;break;case 4:case 5:case 7:qi(this, +a);this.A-=this.B.zc;break;case 6:qi(this,a);this.A-=this.B.Vd;break;case 64:case 67:case 128:case 131:qi(this,a);this.A-=this.B.bc;break;case 65:case 66:case 129:case 130:qi(this,a);this.A-=this.B.cc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:qi(this,a);this.A-=this.B.hb;break;case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.M=this.M&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;case 197:this.I= this.I&-65281|a<<8;break;case 198:this.M=this.M&-65281|a<<8;break;case 199:this.H=this.H&-65281|a<<8}} function Pg(a,b){var c=(this.ea=this.ra())&199;switch(c){case 0:var d=G(this,this.H+this.L);this.F=this.C;break;case 1:d=G(this,this.H+this.K);this.F=this.C;break;case 2:d=Yh(this,this.N+this.L);this.F=this.C;break;case 3:d=Yh(this,this.N+this.K);this.F=this.C;break;case 4:d=G(this,this.L);this.F=this.C;break;case 5:d=G(this,this.K);this.F=this.C;break;case 6:d=G(this,L(this));this.F=this.C;break;case 7:d=G(this,this.H);this.F=this.C;break;case 64:d=G(this,this.H+this.L+this.S());this.F=this.C;break; case 65:d=G(this,this.H+this.K+this.S());this.F=this.C;break;case 66:d=Yh(this,this.N+this.L+this.S());this.F=this.C;break;case 67:d=Yh(this,this.N+this.K+this.S());this.F=this.C;break;case 68:d=G(this,this.L+this.S());this.F=this.C;break;case 69:d=G(this,this.K+this.S());this.F=this.C;break;case 70:d=Yh(this,this.N+this.S());this.F=this.C;break;case 71:d=G(this,this.H+this.S());this.F=this.C;break;case 128:d=G(this,this.H+this.L+L(this));this.F=this.C;break;case 129:d=G(this,this.H+this.K+L(this)); this.F=this.C;break;case 130:d=Yh(this,this.N+this.L+L(this));this.F=this.C;break;case 131:d=Yh(this,this.N+this.K+L(this));this.F=this.C;break;case 132:d=G(this,this.L+L(this));this.F=this.C;break;case 133:d=G(this,this.K+L(this));this.F=this.C;break;case 134:d=Yh(this,this.N+L(this));this.F=this.C;break;case 135:d=G(this,this.H+L(this));this.F=this.C;break;case 192:d=this.D&255;break;case 193:d=this.I&255;break;case 194:d=this.M&255;break;case 195:d=this.H&255;break;case 196:d=this.D>>8&255;break; -case 197:d=this.I>>8&255;break;case 198:d=this.M>>8&255;break;case 199:d=this.H>>8&255;break;default:d=0}a=a[this.ea>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:qi(this,a);this.A-=this.B.ad;break;case 1:case 2:qi(this,a);this.A-=this.B.bd;break;case 4:case 5:case 7:qi(this,a);this.A-=this.B.yc;break;case 6:qi(this,a);this.A-=this.B.Ud;break;case 64:case 67:case 128:case 131:qi(this,a);this.A-=this.B.ac;break;case 65:case 66:case 129:case 130:qi(this,a);this.A-=this.B.bc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:qi(this, -a);this.A-=this.B.gb;break;case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.M=this.M&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;case 197:this.I=this.I&-65281|a<<8;break;case 198:this.M=this.M&-65281|a<<8;break;case 199:this.H=this.H&-65281|a<<8}} -function Qg(a){switch((this.ea=this.ra())&199){case 0:var b=I(this,this.H+this.L);this.A-=this.B.ad;break;case 1:b=I(this,this.H+this.K);this.A-=this.B.bd;break;case 2:b=$h(this,this.N+this.L);this.A-=this.B.bd;break;case 3:b=$h(this,this.N+this.K);this.A-=this.B.ad;break;case 4:b=I(this,this.L);this.A-=this.B.yc;break;case 5:b=I(this,this.K);this.A-=this.B.yc;break;case 6:b=I(this,L(this));this.A-=this.B.Ud;break;case 7:b=I(this,this.H);this.A-=this.B.yc;break;case 64:b=I(this,this.H+this.L+this.S()); -this.A-=this.B.ac;break;case 65:b=I(this,this.H+this.K+this.S());this.A-=this.B.bc;break;case 66:b=$h(this,this.N+this.L+this.S());this.A-=this.B.bc;break;case 67:b=$h(this,this.N+this.K+this.S());this.A-=this.B.ac;break;case 68:b=I(this,this.L+this.S());this.A-=this.B.gb;break;case 69:b=I(this,this.K+this.S());this.A-=this.B.gb;break;case 70:b=$h(this,this.N+this.S());this.A-=this.B.gb;break;case 71:b=I(this,this.H+this.S());this.A-=this.B.gb;break;case 128:b=I(this,this.H+this.L+L(this));this.A-= -this.B.ac;break;case 129:b=I(this,this.H+this.K+L(this));this.A-=this.B.bc;break;case 130:b=$h(this,this.N+this.L+L(this));this.A-=this.B.bc;break;case 131:b=$h(this,this.N+this.K+L(this));this.A-=this.B.ac;break;case 132:b=I(this,this.L+L(this));this.A-=this.B.gb;break;case 133:b=I(this,this.K+L(this));this.A-=this.B.gb;break;case 134:b=$h(this,this.N+L(this));this.A-=this.B.gb;break;case 135:b=I(this,this.H+L(this));this.A-=this.B.gb;break;case 192:b=this.D&65535;break;case 193:b=this.I&65535;break; +case 197:d=this.I>>8&255;break;case 198:d=this.M>>8&255;break;case 199:d=this.H>>8&255;break;default:d=0}a=a[this.ea>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:qi(this,a);this.A-=this.B.bd;break;case 1:case 2:qi(this,a);this.A-=this.B.cd;break;case 4:case 5:case 7:qi(this,a);this.A-=this.B.zc;break;case 6:qi(this,a);this.A-=this.B.Vd;break;case 64:case 67:case 128:case 131:qi(this,a);this.A-=this.B.bc;break;case 65:case 66:case 129:case 130:qi(this,a);this.A-=this.B.cc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:qi(this, +a);this.A-=this.B.hb;break;case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.M=this.M&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;case 197:this.I=this.I&-65281|a<<8;break;case 198:this.M=this.M&-65281|a<<8;break;case 199:this.H=this.H&-65281|a<<8}} +function Qg(a){switch((this.ea=this.ra())&199){case 0:var b=I(this,this.H+this.L);this.A-=this.B.bd;break;case 1:b=I(this,this.H+this.K);this.A-=this.B.cd;break;case 2:b=$h(this,this.N+this.L);this.A-=this.B.cd;break;case 3:b=$h(this,this.N+this.K);this.A-=this.B.bd;break;case 4:b=I(this,this.L);this.A-=this.B.zc;break;case 5:b=I(this,this.K);this.A-=this.B.zc;break;case 6:b=I(this,L(this));this.A-=this.B.Vd;break;case 7:b=I(this,this.H);this.A-=this.B.zc;break;case 64:b=I(this,this.H+this.L+this.S()); +this.A-=this.B.bc;break;case 65:b=I(this,this.H+this.K+this.S());this.A-=this.B.cc;break;case 66:b=$h(this,this.N+this.L+this.S());this.A-=this.B.cc;break;case 67:b=$h(this,this.N+this.K+this.S());this.A-=this.B.bc;break;case 68:b=I(this,this.L+this.S());this.A-=this.B.hb;break;case 69:b=I(this,this.K+this.S());this.A-=this.B.hb;break;case 70:b=$h(this,this.N+this.S());this.A-=this.B.hb;break;case 71:b=I(this,this.H+this.S());this.A-=this.B.hb;break;case 128:b=I(this,this.H+this.L+L(this));this.A-= +this.B.bc;break;case 129:b=I(this,this.H+this.K+L(this));this.A-=this.B.cc;break;case 130:b=$h(this,this.N+this.L+L(this));this.A-=this.B.cc;break;case 131:b=$h(this,this.N+this.K+L(this));this.A-=this.B.bc;break;case 132:b=I(this,this.L+L(this));this.A-=this.B.hb;break;case 133:b=I(this,this.K+L(this));this.A-=this.B.hb;break;case 134:b=$h(this,this.N+L(this));this.A-=this.B.hb;break;case 135:b=I(this,this.H+L(this));this.A-=this.B.hb;break;case 192:b=this.D&65535;break;case 193:b=this.I&65535;break; case 194:b=this.M&65535;break;case 195:b=this.H&65535;break;case 196:b=A(this)&65535;break;case 197:b=this.N&65535;break;case 198:b=this.L&65535;break;case 199:b=this.K&65535;break;default:b=0}var c=this.ea>>3&7;switch(c){case 0:var d=this.D&65535;break;case 1:d=this.I&65535;break;case 2:d=this.M&65535;break;case 3:d=this.H&65535;break;case 4:d=A(this)&65535;break;case 5:d=this.N&65535;break;case 6:d=this.L&65535;break;case 7:d=this.K&65535;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D= this.D&-65536|a;break;case 1:this.I=this.I&-65536|a;break;case 2:this.M=this.M&-65536|a;break;case 3:this.H=this.H&-65536|a;break;case 4:zg(this,A(this)&-65536|a);break;case 5:this.N=this.N&-65536|a;break;case 6:this.L=this.L&-65536|a;break;case 7:this.K=this.K&-65536|a}} function Rg(a){var b=(this.ea=this.ra())&199;switch(b){case 0:var c=I(this,this.H+this.L);this.F=this.C;break;case 1:c=I(this,this.H+this.K);this.F=this.C;break;case 2:c=$h(this,this.N+this.L);this.F=this.C;break;case 3:c=$h(this,this.N+this.K);this.F=this.C;break;case 4:c=I(this,this.L);this.F=this.C;break;case 5:c=I(this,this.K);this.F=this.C;break;case 6:c=I(this,L(this));this.F=this.C;break;case 7:c=I(this,this.H);this.F=this.C;break;case 64:c=I(this,this.H+this.L+this.S());this.F=this.C;break; case 65:c=I(this,this.H+this.K+this.S());this.F=this.C;break;case 66:c=$h(this,this.N+this.L+this.S());this.F=this.C;break;case 67:c=$h(this,this.N+this.K+this.S());this.F=this.C;break;case 68:c=I(this,this.L+this.S());this.F=this.C;break;case 69:c=I(this,this.K+this.S());this.F=this.C;break;case 70:c=$h(this,this.N+this.S());this.F=this.C;break;case 71:c=I(this,this.H+this.S());this.F=this.C;break;case 128:c=I(this,this.H+this.L+L(this));this.F=this.C;break;case 129:c=I(this,this.H+this.K+L(this)); this.F=this.C;break;case 130:c=$h(this,this.N+this.L+L(this));this.F=this.C;break;case 131:c=$h(this,this.N+this.K+L(this));this.F=this.C;break;case 132:c=I(this,this.L+L(this));this.F=this.C;break;case 133:c=I(this,this.K+L(this));this.F=this.C;break;case 134:c=$h(this,this.N+L(this));this.F=this.C;break;case 135:c=I(this,this.H+L(this));this.F=this.C;break;case 192:c=this.D&65535;break;case 193:c=this.I&65535;break;case 194:c=this.M&65535;break;case 195:c=this.H&65535;break;case 196:c=A(this)&65535; -break;case 197:c=this.N&65535;break;case 198:c=this.L&65535;break;case 199:c=this.K&65535;break;default:c=0}switch(this.ea>>3&7){case 0:var d=this.D&65535;break;case 1:d=this.I&65535;break;case 2:d=this.M&65535;break;case 3:d=this.H&65535;break;case 4:d=A(this)&65535;break;case 5:d=this.N&65535;break;case 6:d=this.L&65535;break;case 7:d=this.K&65535;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:ri(this,a);this.A-=this.B.ad;break;case 1:case 2:ri(this,a);this.A-=this.B.bd;break;case 4:case 5:case 7:ri(this, -a);this.A-=this.B.yc;break;case 6:ri(this,a);this.A-=this.B.Ud;break;case 64:case 67:case 128:case 131:ri(this,a);this.A-=this.B.ac;break;case 65:case 66:case 129:case 130:ri(this,a);this.A-=this.B.bc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:ri(this,a);this.A-=this.B.gb;break;case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.M=this.M&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:zg(this,A(this)&-65536|a);break; +break;case 197:c=this.N&65535;break;case 198:c=this.L&65535;break;case 199:c=this.K&65535;break;default:c=0}switch(this.ea>>3&7){case 0:var d=this.D&65535;break;case 1:d=this.I&65535;break;case 2:d=this.M&65535;break;case 3:d=this.H&65535;break;case 4:d=A(this)&65535;break;case 5:d=this.N&65535;break;case 6:d=this.L&65535;break;case 7:d=this.K&65535;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:ri(this,a);this.A-=this.B.bd;break;case 1:case 2:ri(this,a);this.A-=this.B.cd;break;case 4:case 5:case 7:ri(this, +a);this.A-=this.B.zc;break;case 6:ri(this,a);this.A-=this.B.Vd;break;case 64:case 67:case 128:case 131:ri(this,a);this.A-=this.B.bc;break;case 65:case 66:case 129:case 130:ri(this,a);this.A-=this.B.cc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:ri(this,a);this.A-=this.B.hb;break;case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.M=this.M&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:zg(this,A(this)&-65536|a);break; case 197:this.N=this.N&-65536|a;break;case 198:this.L=this.L&-65536|a;break;case 199:this.K=this.K&-65536|a}} function Sg(a,b){var c=(this.ea=this.ra())&199;switch(c){case 0:var d=I(this,this.H+this.L);this.F=this.C;break;case 1:d=I(this,this.H+this.K);this.F=this.C;break;case 2:d=$h(this,this.N+this.L);this.F=this.C;break;case 3:d=$h(this,this.N+this.K);this.F=this.C;break;case 4:d=I(this,this.L);this.F=this.C;break;case 5:d=I(this,this.K);this.F=this.C;break;case 6:d=I(this,L(this));this.F=this.C;break;case 7:d=I(this,this.H);this.F=this.C;break;case 64:d=I(this,this.H+this.L+this.S());this.F=this.C;break; case 65:d=I(this,this.H+this.K+this.S());this.F=this.C;break;case 66:d=$h(this,this.N+this.L+this.S());this.F=this.C;break;case 67:d=$h(this,this.N+this.K+this.S());this.F=this.C;break;case 68:d=I(this,this.L+this.S());this.F=this.C;break;case 69:d=I(this,this.K+this.S());this.F=this.C;break;case 70:d=$h(this,this.N+this.S());this.F=this.C;break;case 71:d=I(this,this.H+this.S());this.F=this.C;break;case 128:d=I(this,this.H+this.L+L(this));this.F=this.C;break;case 129:d=I(this,this.H+this.K+L(this)); this.F=this.C;break;case 130:d=$h(this,this.N+this.L+L(this));this.F=this.C;break;case 131:d=$h(this,this.N+this.K+L(this));this.F=this.C;break;case 132:d=I(this,this.L+L(this));this.F=this.C;break;case 133:d=I(this,this.K+L(this));this.F=this.C;break;case 134:d=$h(this,this.N+L(this));this.F=this.C;break;case 135:d=I(this,this.H+L(this));this.F=this.C;break;case 192:d=this.D&65535;break;case 193:d=this.I&65535;break;case 194:d=this.M&65535;break;case 195:d=this.H&65535;break;case 196:d=A(this)&65535; -break;case 197:d=this.N&65535;break;case 198:d=this.L&65535;break;case 199:d=this.K&65535;break;default:d=0}a=a[this.ea>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:ri(this,a);this.A-=this.B.ad;break;case 1:case 2:ri(this,a);this.A-=this.B.bd;break;case 4:case 5:case 7:ri(this,a);this.A-=this.B.yc;break;case 6:ri(this,a);this.A-=this.B.Ud;break;case 64:case 67:case 128:case 131:ri(this,a);this.A-=this.B.ac;break;case 65:case 66:case 129:case 130:ri(this,a);this.A-=this.B.bc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:ri(this, -a);this.A-=this.B.gb;break;case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.M=this.M&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:zg(this,A(this)&-65536|a);break;case 197:this.N=this.N&-65536|a;break;case 198:this.L=this.L&-65536|a;break;case 199:this.K=this.K&-65536|a}} -function Tg(a){switch((this.ea=this.ra())&199){case 0:var b=K(this,this.H+this.L);this.A-=this.B.ad;break;case 1:b=K(this,this.H+this.K);this.A-=this.B.bd;break;case 2:b=oi(this,this.N+this.L);this.A-=this.B.bd;break;case 3:b=oi(this,this.N+this.K);this.A-=this.B.ad;break;case 4:b=K(this,this.L);this.A-=this.B.yc;break;case 5:b=K(this,this.K);this.A-=this.B.yc;break;case 6:b=K(this,L(this));this.A-=this.B.Ud;break;case 7:b=K(this,this.H);this.A-=this.B.yc;break;case 64:b=K(this,this.H+this.L+this.S()); -this.A-=this.B.ac;break;case 65:b=K(this,this.H+this.K+this.S());this.A-=this.B.bc;break;case 66:b=oi(this,this.N+this.L+this.S());this.A-=this.B.bc;break;case 67:b=oi(this,this.N+this.K+this.S());this.A-=this.B.ac;break;case 68:b=K(this,this.L+this.S());this.A-=this.B.gb;break;case 69:b=K(this,this.K+this.S());this.A-=this.B.gb;break;case 70:b=oi(this,this.N+this.S());this.A-=this.B.gb;break;case 71:b=K(this,this.H+this.S());this.A-=this.B.gb;break;case 128:b=K(this,this.H+this.L+L(this));this.A-= -this.B.ac;break;case 129:b=K(this,this.H+this.K+L(this));this.A-=this.B.bc;break;case 130:b=oi(this,this.N+this.L+L(this));this.A-=this.B.bc;break;case 131:b=oi(this,this.N+this.K+L(this));this.A-=this.B.ac;break;case 132:b=K(this,this.L+L(this));this.A-=this.B.gb;break;case 133:b=K(this,this.K+L(this));this.A-=this.B.gb;break;case 134:b=oi(this,this.N+L(this));this.A-=this.B.gb;break;case 135:b=K(this,this.H+L(this));this.A-=this.B.gb;break;case 192:b=this.D;break;case 193:b=this.I;break;case 194:b= +break;case 197:d=this.N&65535;break;case 198:d=this.L&65535;break;case 199:d=this.K&65535;break;default:d=0}a=a[this.ea>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:ri(this,a);this.A-=this.B.bd;break;case 1:case 2:ri(this,a);this.A-=this.B.cd;break;case 4:case 5:case 7:ri(this,a);this.A-=this.B.zc;break;case 6:ri(this,a);this.A-=this.B.Vd;break;case 64:case 67:case 128:case 131:ri(this,a);this.A-=this.B.bc;break;case 65:case 66:case 129:case 130:ri(this,a);this.A-=this.B.cc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:ri(this, +a);this.A-=this.B.hb;break;case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.M=this.M&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:zg(this,A(this)&-65536|a);break;case 197:this.N=this.N&-65536|a;break;case 198:this.L=this.L&-65536|a;break;case 199:this.K=this.K&-65536|a}} +function Tg(a){switch((this.ea=this.ra())&199){case 0:var b=K(this,this.H+this.L);this.A-=this.B.bd;break;case 1:b=K(this,this.H+this.K);this.A-=this.B.cd;break;case 2:b=oi(this,this.N+this.L);this.A-=this.B.cd;break;case 3:b=oi(this,this.N+this.K);this.A-=this.B.bd;break;case 4:b=K(this,this.L);this.A-=this.B.zc;break;case 5:b=K(this,this.K);this.A-=this.B.zc;break;case 6:b=K(this,L(this));this.A-=this.B.Vd;break;case 7:b=K(this,this.H);this.A-=this.B.zc;break;case 64:b=K(this,this.H+this.L+this.S()); +this.A-=this.B.bc;break;case 65:b=K(this,this.H+this.K+this.S());this.A-=this.B.cc;break;case 66:b=oi(this,this.N+this.L+this.S());this.A-=this.B.cc;break;case 67:b=oi(this,this.N+this.K+this.S());this.A-=this.B.bc;break;case 68:b=K(this,this.L+this.S());this.A-=this.B.hb;break;case 69:b=K(this,this.K+this.S());this.A-=this.B.hb;break;case 70:b=oi(this,this.N+this.S());this.A-=this.B.hb;break;case 71:b=K(this,this.H+this.S());this.A-=this.B.hb;break;case 128:b=K(this,this.H+this.L+L(this));this.A-= +this.B.bc;break;case 129:b=K(this,this.H+this.K+L(this));this.A-=this.B.cc;break;case 130:b=oi(this,this.N+this.L+L(this));this.A-=this.B.cc;break;case 131:b=oi(this,this.N+this.K+L(this));this.A-=this.B.bc;break;case 132:b=K(this,this.L+L(this));this.A-=this.B.hb;break;case 133:b=K(this,this.K+L(this));this.A-=this.B.hb;break;case 134:b=oi(this,this.N+L(this));this.A-=this.B.hb;break;case 135:b=K(this,this.H+L(this));this.A-=this.B.hb;break;case 192:b=this.D;break;case 193:b=this.I;break;case 194:b= this.M;break;case 195:b=this.H;break;case 196:b=A(this);break;case 197:b=this.N;break;case 198:b=this.L;break;case 199:b=this.K;break;default:b=0}var c=this.ea>>3&7;switch(c){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.M;break;case 3:d=this.H;break;case 4:d=A(this);break;case 5:d=this.N;break;case 6:d=this.L;break;case 7:d=this.K;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=a;break;case 1:this.I=a;break;case 2:this.M=a;break;case 3:this.H=a;break;case 4:zg(this,a); break;case 5:this.N=a;break;case 6:this.L=a;break;case 7:this.K=a}} function Ug(a){var b=(this.ea=this.ra())&199;switch(b){case 0:var c=K(this,this.H+this.L);this.F=this.C;break;case 1:c=K(this,this.H+this.K);this.F=this.C;break;case 2:c=oi(this,this.N+this.L);this.F=this.C;break;case 3:c=oi(this,this.N+this.K);this.F=this.C;break;case 4:c=K(this,this.L);this.F=this.C;break;case 5:c=K(this,this.K);this.F=this.C;break;case 6:c=K(this,L(this));this.F=this.C;break;case 7:c=K(this,this.H);this.F=this.C;break;case 64:c=K(this,this.H+this.L+this.S());this.F=this.C;break; case 65:c=K(this,this.H+this.K+this.S());this.F=this.C;break;case 66:c=oi(this,this.N+this.L+this.S());this.F=this.C;break;case 67:c=oi(this,this.N+this.K+this.S());this.F=this.C;break;case 68:c=K(this,this.L+this.S());this.F=this.C;break;case 69:c=K(this,this.K+this.S());this.F=this.C;break;case 70:c=oi(this,this.N+this.S());this.F=this.C;break;case 71:c=K(this,this.H+this.S());this.F=this.C;break;case 128:c=K(this,this.H+this.L+L(this));this.F=this.C;break;case 129:c=K(this,this.H+this.K+L(this)); this.F=this.C;break;case 130:c=oi(this,this.N+this.L+L(this));this.F=this.C;break;case 131:c=oi(this,this.N+this.K+L(this));this.F=this.C;break;case 132:c=K(this,this.L+L(this));this.F=this.C;break;case 133:c=K(this,this.K+L(this));this.F=this.C;break;case 134:c=oi(this,this.N+L(this));this.F=this.C;break;case 135:c=K(this,this.H+L(this));this.F=this.C;break;case 192:c=this.D;break;case 193:c=this.I;break;case 194:c=this.M;break;case 195:c=this.H;break;case 196:c=A(this);break;case 197:c=this.N;break; -case 198:c=this.L;break;case 199:c=this.K;break;default:c=0}switch(this.ea>>3&7){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.M;break;case 3:d=this.H;break;case 4:d=A(this);break;case 5:d=this.N;break;case 6:d=this.L;break;case 7:d=this.K;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:si(this,a);this.A-=this.B.ad;break;case 1:case 2:si(this,a);this.A-=this.B.bd;break;case 4:case 5:case 7:si(this,a);this.A-=this.B.yc;break;case 6:si(this,a);this.A-=this.B.Ud;break;case 64:case 67:case 128:case 131:si(this, -a);this.A-=this.B.ac;break;case 65:case 66:case 129:case 130:si(this,a);this.A-=this.B.bc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:si(this,a);this.A-=this.B.gb;break;case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.M=a;break;case 195:this.H=a;break;case 196:zg(this,a);break;case 197:this.N=a;break;case 198:this.L=a;break;case 199:this.K=a}} +case 198:c=this.L;break;case 199:c=this.K;break;default:c=0}switch(this.ea>>3&7){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.M;break;case 3:d=this.H;break;case 4:d=A(this);break;case 5:d=this.N;break;case 6:d=this.L;break;case 7:d=this.K;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:si(this,a);this.A-=this.B.bd;break;case 1:case 2:si(this,a);this.A-=this.B.cd;break;case 4:case 5:case 7:si(this,a);this.A-=this.B.zc;break;case 6:si(this,a);this.A-=this.B.Vd;break;case 64:case 67:case 128:case 131:si(this, +a);this.A-=this.B.bc;break;case 65:case 66:case 129:case 130:si(this,a);this.A-=this.B.cc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:si(this,a);this.A-=this.B.hb;break;case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.M=a;break;case 195:this.H=a;break;case 196:zg(this,a);break;case 197:this.N=a;break;case 198:this.L=a;break;case 199:this.K=a}} function Vg(a,b){var c=(this.ea=this.ra())&199;switch(c){case 0:var d=K(this,this.H+this.L);this.F=this.C;break;case 1:d=K(this,this.H+this.K);this.F=this.C;break;case 2:d=oi(this,this.N+this.L);this.F=this.C;break;case 3:d=oi(this,this.N+this.K);this.F=this.C;break;case 4:d=K(this,this.L);this.F=this.C;break;case 5:d=K(this,this.K);this.F=this.C;break;case 6:d=K(this,L(this));this.F=this.C;break;case 7:d=K(this,this.H);this.F=this.C;break;case 64:d=K(this,this.H+this.L+this.S());this.F=this.C;break; case 65:d=K(this,this.H+this.K+this.S());this.F=this.C;break;case 66:d=oi(this,this.N+this.L+this.S());this.F=this.C;break;case 67:d=oi(this,this.N+this.K+this.S());this.F=this.C;break;case 68:d=K(this,this.L+this.S());this.F=this.C;break;case 69:d=K(this,this.K+this.S());this.F=this.C;break;case 70:d=oi(this,this.N+this.S());this.F=this.C;break;case 71:d=K(this,this.H+this.S());this.F=this.C;break;case 128:d=K(this,this.H+this.L+L(this));this.F=this.C;break;case 129:d=K(this,this.H+this.K+L(this)); this.F=this.C;break;case 130:d=oi(this,this.N+this.L+L(this));this.F=this.C;break;case 131:d=oi(this,this.N+this.K+L(this));this.F=this.C;break;case 132:d=K(this,this.L+L(this));this.F=this.C;break;case 133:d=K(this,this.K+L(this));this.F=this.C;break;case 134:d=oi(this,this.N+L(this));this.F=this.C;break;case 135:d=K(this,this.H+L(this));this.F=this.C;break;case 192:d=this.D;break;case 193:d=this.I;break;case 194:d=this.M;break;case 195:d=this.H;break;case 196:d=A(this);break;case 197:d=this.N;break; -case 198:d=this.L;break;case 199:d=this.K}a=a[this.ea>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:si(this,a);this.A-=this.B.ad;break;case 1:case 2:si(this,a);this.A-=this.B.bd;break;case 4:case 5:case 7:si(this,a);this.A-=this.B.yc;break;case 6:si(this,a);this.A-=this.B.Ud;break;case 64:case 67:case 128:case 131:si(this,a);this.A-=this.B.ac;break;case 65:case 66:case 129:case 130:si(this,a);this.A-=this.B.bc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:si(this, -a);this.A-=this.B.gb;break;case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.M=a;break;case 195:this.H=a;break;case 196:zg(this,a);break;case 197:this.N=a;break;case 198:this.L=a;break;case 199:this.K=a}} +case 198:d=this.L;break;case 199:d=this.K}a=a[this.ea>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:si(this,a);this.A-=this.B.bd;break;case 1:case 2:si(this,a);this.A-=this.B.cd;break;case 4:case 5:case 7:si(this,a);this.A-=this.B.zc;break;case 6:si(this,a);this.A-=this.B.Vd;break;case 64:case 67:case 128:case 131:si(this,a);this.A-=this.B.bc;break;case 65:case 66:case 129:case 130:si(this,a);this.A-=this.B.cc;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:si(this, +a);this.A-=this.B.hb;break;case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.M=a;break;case 195:this.H=a;break;case 196:zg(this,a);break;case 197:this.N=a;break;case 198:this.L=a;break;case 199:this.K=a}} function Wg(a){switch((this.ea=this.ra())&199){case 0:var b=G(this,this.D);break;case 1:b=G(this,this.I);break;case 2:b=G(this,this.M);break;case 3:b=G(this,this.H);break;case 4:b=G(this,am.call(this,0));break;case 5:b=G(this,L(this));break;case 6:b=G(this,this.L);break;case 7:b=G(this,this.K);break;case 64:b=G(this,this.D+this.S());break;case 65:b=G(this,this.I+this.S());break;case 66:b=G(this,this.M+this.S());break;case 67:b=G(this,this.H+this.S());break;case 68:b=G(this,am.call(this,1)+this.S()); break;case 69:b=Yh(this,this.N+this.S());break;case 70:b=G(this,this.L+this.S());break;case 71:b=G(this,this.K+this.S());break;case 128:b=G(this,this.D+L(this));break;case 129:b=G(this,this.I+L(this));break;case 130:b=G(this,this.M+L(this));break;case 131:b=G(this,this.H+L(this));break;case 132:b=G(this,am.call(this,2)+L(this));break;case 133:b=Yh(this,this.N+L(this));break;case 134:b=G(this,this.L+L(this));break;case 135:b=G(this,this.K+L(this));break;case 192:b=this.D&255;break;case 193:b=this.I& 255;break;case 194:b=this.M&255;break;case 195:b=this.H&255;break;case 196:b=this.D>>8&255;break;case 197:b=this.I>>8&255;break;case 198:b=this.M>>8&255;break;case 199:b=this.H>>8&255;break;default:b=0}var c=this.ea>>3&7;switch(c){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.M&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.M>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D= @@ -400,467 +413,467 @@ break;case 197:this.N=a;break;case 198:this.L=a;break;case 199:this.K=a;break;de function dh(a,b){var c=this.ea=this.ra();switch(c&199){case 0:var d=ai(this,this.D);break;case 1:d=ai(this,this.I);break;case 2:d=ai(this,this.M);break;case 3:d=ai(this,this.H);break;case 4:d=ai(this,am.call(this,0));break;case 5:d=ai(this,L(this));break;case 6:d=ai(this,this.L);break;case 7:d=ai(this,this.K);break;case 64:d=ai(this,this.D+this.S());break;case 65:d=ai(this,this.I+this.S());break;case 66:d=ai(this,this.M+this.S());break;case 67:d=ai(this,this.H+this.S());break;case 68:d=ai(this,am.call(this, 1)+this.S());break;case 69:d=pi(this,this.N+this.S());break;case 70:d=ai(this,this.L+this.S());break;case 71:d=ai(this,this.K+this.S());break;case 128:d=ai(this,this.D+L(this));break;case 129:d=ai(this,this.I+L(this));break;case 130:d=ai(this,this.M+L(this));break;case 131:d=ai(this,this.H+L(this));break;case 132:d=ai(this,am.call(this,2)+L(this));break;case 133:d=pi(this,this.N+L(this));break;case 134:d=ai(this,this.L+L(this));break;case 135:d=ai(this,this.K+L(this));break;case 192:d=this.D;break; case 193:d=this.I;break;case 194:d=this.M;break;case 195:d=this.H;break;case 196:d=A(this);break;case 197:d=this.N;break;case 198:d=this.L;break;case 199:d=this.K}a=a[c>>3&7].call(this,d,b.call(this));switch(c&199){case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.M=a;break;case 195:this.H=a;break;case 196:zg(this,a);break;case 197:this.N=a;break;case 198:this.L=a;break;case 199:this.K=a;break;default:si(this,a)}} -function am(a){var b=this.ra(),c=b>>6;switch(b>>3&7){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.M;break;case 3:d=this.H;break;case 4:d=0;break;case 5:d=this.N;break;case 6:d=this.L;break;case 7:d=this.K}switch(b&7){case 0:var e=this.D;break;case 1:e=this.I;break;case 2:e=this.M;break;case 3:e=this.H;break;case 4:e=A(this);this.Ca=this.Cb;break;case 5:a?(e=this.N,this.Ca=this.Cb):e=L(this);break;case 6:e=this.L;break;case 7:e=this.K}return(d<>6;switch(b>>3&7){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.M;break;case 3:d=this.H;break;case 4:d=0;break;case 5:d=this.N;break;case 6:d=this.L;break;case 7:d=this.K}switch(b&7){case 0:var e=this.D;break;case 1:e=this.I;break;case 2:e=this.M;break;case 3:e=this.H;break;case 4:e=A(this);this.Ca=this.Db;break;case 5:a?(e=this.N,this.Ca=this.Db):e=L(this);break;case 6:e=this.L;break;case 7:e=this.K}return(d<>8&255;if(9<(b&15)||Eh(this)){b+=6;80286<=this.model&&255>8&255;if(9<(b&15)||Eh(this)){b=b-6&15;c=c-1&255;var d=a=1}else d=a=0;this.D=this.D&-65536|c<<8|b;d?Kh(this):Lh(this);a?Sh(this):Oh(this);this.A-=this.B.Ne},function(){this.D=Nl.call(this,this.D)},function(){this.I=Nl.call(this,this.I)},function(){this.M=Nl.call(this,this.M)},function(){this.H=Nl.call(this, +function Cm(){Yl.call(this,vi(this));this.A-=this.B.Rk}function Dm(){Yl.call(this,0);this.A-=this.B.Qk}function Em(a){this.Zi=a;this.ja.call(this,qk)}function Fm(){this.O|=36;this.A-=this.B.rd}function hg(){var a=this.B.Wh;this.Bc=-1;Wl.call(this,1,null,1,a)}function Di(){this.P&131072?F.call(this,13,0):(this.Ea|=4,this.A-=2,this.ca&&x(this,70368744177666)?(this.Y=this.Qc,Xl(this.ca)):this.P&512||(this.ca&&(this.Y=this.Qc),af(this)))}function If(){F.call(this,6)} +function Yf(){xh(this,this.Qc-this.ba.ta);yc(this,"Undefined opcode "+Va(this.ya(this.Y))+" at "+v(this.Y,8,!0));af(this)} +var Ef=[function(){this.pc.call(this,Yj)},function(){this.sa.call(this,Zj)},function(){this.ac.call(this,Yj)},function(){this.ja.call(this,Zj)},function(){this.D=this.D&-256|Yj.call(this,this.D&255,this.ra());this.A--},function(){this.D=this.D&~this.R|Zj.call(this,this.D&this.R,this.Ja());this.A--},function(){yi(this,this.fa.V,this.X,2);this.A-=this.B.Pe},function(){this.pa=this.Aa;wh(this,wi(this));this.A-=this.B.rc;this.pa=-1},function(){this.pc.call(this,Wk)},function(){this.sa.call(this,Xk)}, +function(){this.ac.call(this,Wk)},function(){this.ja.call(this,Xk)},function(){this.D=this.D&-256|Wk.call(this,this.D&255,this.ra());this.A--},function(){this.D=this.D&~this.R|Xk.call(this,this.D&this.R,this.Ja());this.A--},function(){yi(this,this.ba.V,this.X,2);this.A-=this.B.Pe},function(){uh(this,wi(this));this.A-=this.B.rc},function(){this.pc.call(this,Wj)},function(){this.sa.call(this,Xj)},function(){this.ac.call(this,Wj)},function(){this.ja.call(this,Xj)},function(){this.D=this.D&-256|Wj.call(this, +this.D&255,this.ra());this.A--},function(){this.D=this.D&~this.R|Xj.call(this,this.D&this.R,this.Ja());this.A--},function(){yi(this,this.T.V,this.X,2);this.A-=this.B.Pe},function(){this.pa=this.Aa;Eg(this,wi(this));this.A-=this.B.rc;this.pa=-1},function(){this.pc.call(this,Yk)},function(){this.sa.call(this,Zk)},function(){this.ac.call(this,Yk)},function(){this.ja.call(this,Zk)},function(){this.D=this.D&-256|Yk.call(this,this.D&255,this.ra());this.A--},function(){this.D=this.D&~this.R|Zk.call(this, +this.D&this.R,this.Ja());this.A--},function(){yi(this,this.xa.V,this.X,2);this.A-=this.B.Pe},function(){this.pa=this.Aa;vh(this,wi(this));this.A-=this.B.rc;this.pa=-1},function(){this.pc.call(this,ak)},function(){this.sa.call(this,bk)},function(){this.ac.call(this,ak)},function(){this.ja.call(this,bk)},function(){this.D=this.D&-256|ak.call(this,this.D&255,this.ra());this.A--},function(){this.D=this.D&~this.R|bk.call(this,this.D&this.R,this.Ja());this.A--},function(){this.O|=20;this.Ca=this.Db=this.fa; +this.A-=this.B.rd},function(){var a=this.D&255,b=Eh(this),c=Ch(this);9<(a&15)||b?(a+=6,b=16):b=0;159>8&255;if(9<(b&15)||Eh(this)){b+=6;80286<=this.model&&255>8&255;if(9<(b&15)||Eh(this)){b=b-6&15;c=c-1&255;var d=a=1}else d=a=0;this.D=this.D&-65536|c<<8|b;d?Kh(this):Lh(this);a?Sh(this):Oh(this);this.A-=this.B.Oe},function(){this.D=Nl.call(this,this.D)},function(){this.I=Nl.call(this,this.I)},function(){this.M=Nl.call(this,this.M)},function(){this.H=Nl.call(this, this.H)},function(){zg(this,Nl.call(this,A(this)))},function(){this.N=Nl.call(this,this.N)},function(){this.L=Nl.call(this,this.L)},function(){this.K=Nl.call(this,this.K)},function(){this.D=Ll.call(this,this.D)},function(){this.I=Ll.call(this,this.I)},function(){this.M=Ll.call(this,this.M)},function(){this.H=Ll.call(this,this.H)},function(){zg(this,Ll.call(this,A(this)))},function(){this.N=Ll.call(this,this.N)},function(){this.L=Ll.call(this,this.L)},function(){this.K=Ll.call(this,this.K)},function(){xi(this, -this.D&this.R);this.A-=this.B.Sc},function(){xi(this,this.I&this.R);this.A-=this.B.Sc},function(){xi(this,this.M&this.R);this.A-=this.B.Sc},function(){xi(this,this.H&this.R);this.A-=this.B.Sc},function(){xi(this,A(this)-2&65535);this.A-=this.B.Sc},function(){xi(this,this.N&this.R);this.A-=this.B.Sc},function(){xi(this,this.L&this.R);this.A-=this.B.Sc},function(){xi(this,this.K&this.R);this.A-=this.B.Sc},function(){this.D=this.D&~this.R|wi(this);this.A-=this.B.qc},function(){this.I=this.I&~this.R| -wi(this);this.A-=this.B.qc},function(){this.M=this.M&~this.R|wi(this);this.A-=this.B.qc},function(){this.H=this.H&~this.R|wi(this);this.A-=this.B.qc},function(){zg(this,A(this)&~this.R|wi(this));this.A-=this.B.qc},function(){this.N=this.N&~this.R|wi(this);this.A-=this.B.qc},function(){this.L=this.L&~this.R|wi(this);this.A-=this.B.qc},function(){this.K=this.K&~this.R|wi(this);this.A-=this.B.qc},bm,cm,dm,em,fm,gm,hm,im,jm,km,lm,mm,nm,om,pm,qm,bm,cm,dm,em,fm,gm,hm,im,jm,km,lm,mm,nm,om,pm,qm,rm,function(){this.ib.call(this, -Gm,this.Ja);this.A-=-1===this.F?1:this.B.Tg},rm,function(){this.ib.call(this,Gm,this.S);this.A-=-1===this.F?1:this.B.Tg},function(){this.oc.call(this,Cl)},function(){this.sa.call(this,Dl)},function(){this.$b.call(this,Gl)},function(){this.ja.call(this,Hl)},tm,um,vm,wm,function(){this.O|=1;this.sa.call(this,Vk)},function(){this.O|=1;this.Ca=this.Cb=this.Oi;this.ja.call(this,Bk)},function(){this.ja.call(this,Uk);switch(this.ea>>3&7){case 0:var a=this.D;this.D=this.qa;wh(this,a);break;case 1:a=this.I; -this.I=this.qa;uh(this,a);break;case 2:a=this.M;this.M=this.qa;Eg(this,a);break;case 3:a=this.H;this.H=this.qa;vh(this,a);break;case 4:a=A(this);zg(this,this.qa);80386<=this.model?this.Fa.load(a):wh(this,a);break;case 5:a=this.N;this.N=this.qa;80386<=this.model?this.Ia.load(a):uh(this,a);break;case 6:a=this.L;this.L=this.qa;Eg(this,a);break;case 7:a=this.K,this.K=this.qa,vh(this,a)}},function(){this.O|=1;this.pa=this.Aa;this.qa=wi(this);this.ib.call(this,Hm,Ul);this.pa=-1},function(){this.A-=3;this.aa& +this.D&this.R);this.A-=this.B.Tc},function(){xi(this,this.I&this.R);this.A-=this.B.Tc},function(){xi(this,this.M&this.R);this.A-=this.B.Tc},function(){xi(this,this.H&this.R);this.A-=this.B.Tc},function(){xi(this,A(this)-2&65535);this.A-=this.B.Tc},function(){xi(this,this.N&this.R);this.A-=this.B.Tc},function(){xi(this,this.L&this.R);this.A-=this.B.Tc},function(){xi(this,this.K&this.R);this.A-=this.B.Tc},function(){this.D=this.D&~this.R|wi(this);this.A-=this.B.rc},function(){this.I=this.I&~this.R| +wi(this);this.A-=this.B.rc},function(){this.M=this.M&~this.R|wi(this);this.A-=this.B.rc},function(){this.H=this.H&~this.R|wi(this);this.A-=this.B.rc},function(){zg(this,A(this)&~this.R|wi(this));this.A-=this.B.rc},function(){this.N=this.N&~this.R|wi(this);this.A-=this.B.rc},function(){this.L=this.L&~this.R|wi(this);this.A-=this.B.rc},function(){this.K=this.K&~this.R|wi(this);this.A-=this.B.rc},bm,cm,dm,em,fm,gm,hm,im,jm,km,lm,mm,nm,om,pm,qm,bm,cm,dm,em,fm,gm,hm,im,jm,km,lm,mm,nm,om,pm,qm,rm,function(){this.jb.call(this, +Gm,this.Ja);this.A-=-1===this.F?1:this.B.Ug},rm,function(){this.jb.call(this,Gm,this.S);this.A-=-1===this.F?1:this.B.Ug},function(){this.pc.call(this,Cl)},function(){this.sa.call(this,Dl)},function(){this.ac.call(this,Gl)},function(){this.ja.call(this,Hl)},tm,um,vm,wm,function(){this.O|=1;this.sa.call(this,Vk)},function(){this.O|=1;this.Ca=this.Db=this.Pi;this.ja.call(this,Bk)},function(){this.ja.call(this,Uk);switch(this.ea>>3&7){case 0:var a=this.D;this.D=this.qa;wh(this,a);break;case 1:a=this.I; +this.I=this.qa;uh(this,a);break;case 2:a=this.M;this.M=this.qa;Eg(this,a);break;case 3:a=this.H;this.H=this.qa;vh(this,a);break;case 4:a=A(this);zg(this,this.qa);80386<=this.model?this.Fa.load(a):wh(this,a);break;case 5:a=this.N;this.N=this.qa;80386<=this.model?this.Ia.load(a):uh(this,a);break;case 6:a=this.L;this.L=this.qa;Eg(this,a);break;case 7:a=this.K,this.K=this.qa,vh(this,a)}},function(){this.O|=1;this.pa=this.Aa;this.qa=wi(this);this.jb.call(this,Hm,Ul);this.pa=-1},function(){this.A-=3;this.aa& 32&&80386<=this.model&&F.call(this,6,0)},function(){var a=this.D;this.D=this.D&~this.R|this.I&this.R;this.I=this.I&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.M&this.R;this.M=this.M&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.H&this.R;this.H=this.H&~this.R|a&this.R;this.A-=3},function(){var a=this.D,b=A(this);this.D=this.D&~this.R|b&this.R;zg(this,b&~this.R|a&this.R);this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.N& this.R;this.N=this.N&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.L&this.R;this.L=this.L&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.K&this.R;this.K=this.K&~this.R|a&this.R;this.A-=3},function(){this.D=2==this.X?this.D&-65536|this.D<<24>>24&65535:this.D<<16>>16;this.A-=2},function(){this.M=2==this.X?this.M&-65536|(this.D&32768?65535:0):this.D&-2147483648?-1:0;this.A-=this.B.Zj},function(){Vl.call(this,this.Ja(),vi(this));this.A-= -this.B.bk},function(){this.A-=3},function(){var a=ih(this);a&131072&&3>this.jc?F.call(this,13,0):(xi(this,a&-196609),this.A-=this.B.Sc)},function(){if(this.P&131072&&3>this.jc)F.call(this,13,0);else{var a=wi(this);a=a&65535|this.P&-65536;Kg(this,a);this.A-=this.B.qc}},function(){var a=this.D>>8&255;a&1?Kh(this):Lh(this);a&4?(this.resultType&=-3,this.P|=4):(this.resultType&=-3,this.P&=-5);a&16?Sh(this):Oh(this);a&64?Th(this):Rh(this);a&128?(this.resultType&=-17,this.P|=128):(this.resultType&=-17,this.P&= --129);this.A-=this.B.cc},function(){this.D=this.D&-65281|(ih(this)&255)<<8;this.A-=this.B.cc},function(){var a=this.D&-256;var b=L(this);b=this.ya(this.Ca.Bb(b,1));this.D=a|b;this.A-=this.B.ci},function(){this.D=this.D&~this.R|ti(this,this.Ca,L(this));this.A-=this.B.ci},function(){var a=L(this),b=this.D;this.ub(this.Ca.Xb(a,1),b);this.A-=this.B.di},function(){ui(this,this.Ca,L(this),this.D);this.A-=this.B.di},function(){var a=1,b=0,c=this.wa,d=this.B.ei;this.aa&192&&(a=this.I&c,b=1,d=this.B.gi,this.aa& -256||(this.A-=this.B.fi));if(a--){var e=this.ya(this.Ca.Bb(this.L&c,1));this.ub(this.fa.Xb(this.K&c,1),e);e=this.P&1024?-1:1;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.ei;this.aa&192&&(a=this.I&c,b=1,d=this.B.gi,this.aa&256||(this.A-=this.B.fi));if(a--){ui(this,this.fa,this.K&c,ti(this,this.Ca,this.L&c));var e=this.P&1024?-this.X:this.X;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+ -e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ph;this.aa&192&&(a=this.I&c,b=1,d=this.B.Rh,this.aa&256||(this.A-=this.B.Qh));if(a--){var e=Xh(this,this.Ca,this.L),f=Xh(this,this.fa,this.K);this.F=this.C;ok.call(this,e,f);e=this.P&1024?-1:1;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Qb;a&&Fh(this)==(this.aa&64)&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ph;this.aa&192&&(a=this.I& -c,b=1,d=this.B.Rh,this.aa&256||(this.A-=this.B.Qh));if(a--){var e=Zh(this,this.Ca,this.L&c),f=Zh(this,this.fa,this.K&c);this.F=this.C;pk.call(this,e,f);e=this.P&1024?-this.X:this.X;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Qb;a&&Fh(this)==(this.aa&64)&&Ah(this,!0)}},function(){Jh(this,this.D&this.ra(),128);this.A-=this.B.Ne},function(){Jh(this,this.D&this.Ja(),this.vb);this.A-=this.B.Ne},function(){var a=1,b=0,c=this.wa,d=this.B.pi;this.aa& -192&&(a=this.I&c,b=1,d=this.B.si,this.aa&256||(this.A-=this.B.ri));if(a--){var e=this.D;this.ub(this.fa.Xb(this.K&c,1),e);this.I=this.I&~c|this.I-b&c;80546<=this.Ed&&80564>=this.Ed&&!(this.aa&2048)!=(103!=this.ya(this.Y))&&(c^=-65536);this.K=this.K&~c|this.K+(this.P&1024?-1:1)&c;this.A-=d;a&&Ah(this)}},function(){var a=1,b=0,c=this.wa,d=this.B.pi;this.aa&192&&(a=this.I&c,b=1,d=this.B.si,this.aa&256||(this.A-=this.B.ri));a--&&(ui(this,this.fa,this.K&c,this.D),this.K=this.K&~c|this.K+(this.P&1024?-this.X: -this.X)&c,this.I=this.I&~c|this.I-b&c,this.A-=d,a&&Ah(this))},function(){var a=1,b=0,c=this.wa,d=this.B.Xh;this.aa&192&&(a=this.I&c,b=1,d=this.B.Zh,this.aa&256||(this.A-=this.B.Yh));if(a--){var e=this.ya(this.Ca.Bb(this.L&c,1));this.D=this.D&-256|e;this.L=this.L&~c|this.L+(this.P&1024?-1:1)&c;this.I=this.I&~c|this.I-b&c;this.A-=d;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.Xh;this.aa&192&&(a=this.I&c,b=1,d=this.B.Zh,this.aa&256||(this.A-=this.B.Yh));if(a--){var e=ti(this,this.Ca,this.L& -c);this.D=this.D&~this.R|e;this.L=this.L&~c|this.L+(this.P&1024?-this.X:this.X)&c;this.I=this.I&~c|this.I-b&c;this.A-=d;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.ji;this.aa&192&&(a=this.I&c,b=1,d=this.B.li,this.aa&256||(this.A-=this.B.ki));if(a--){var e=this.D&255,f=Xh(this,this.fa,this.K);this.F=this.C;ok.call(this,e,f);this.K=this.K&~c|this.K+(this.P&1024?-1:1)&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Qb;a&&Fh(this)==(this.aa&64)&&Ah(this)}},function(){var a=1,b=0,c=this.wa, -d=this.B.ji;this.aa&192&&(a=this.I&c,b=1,d=this.B.li,this.aa&256||(this.A-=this.B.ki));if(a--){var e=this.D&this.R,f=Zh(this,this.fa,this.K&c);this.F=this.C;pk.call(this,e,f);this.K=this.K&~c|this.K+(this.P&1024?-this.X:this.X)&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Qb;a&&Fh(this)==(this.aa&64)&&Ah(this)}},function(){this.D=this.D&-256|this.ra();this.A-=this.B.cc},function(){this.I=this.I&-256|this.ra();this.A-=this.B.cc},function(){this.M=this.M&-256|this.ra();this.A-=this.B.cc},function(){this.H= -this.H&-256|this.ra();this.A-=this.B.cc},function(){this.D=this.D&-65281|this.ra()<<8;this.A-=this.B.cc},function(){this.I=this.I&-65281|this.ra()<<8;this.A-=this.B.cc},function(){this.M=this.M&-65281|this.ra()<<8;this.A-=this.B.cc},function(){this.H=this.H&-65281|this.ra()<<8;this.A-=this.B.cc},function(){this.D=this.D&~this.R|this.Ja();this.A-=this.B.cc},function(){this.I=this.I&~this.R|this.Ja();this.A-=this.B.cc},function(){this.M=this.M&~this.R|this.Ja();this.A-=this.B.cc},function(){this.H= -this.H&~this.R|this.Ja();this.A-=this.B.cc},function(){zg(this,A(this)&~this.R|this.Ja());this.A-=this.B.cc},function(){this.N=this.N&~this.R|this.Ja();this.A-=this.B.cc},function(){this.L=this.L&~this.R|this.Ja();this.A-=this.B.cc},function(){this.K=this.K&~this.R|this.Ja();this.A-=this.B.cc},Am,Bm,Am,Bm,function(){this.ja.call(this,Ck)},function(){this.ja.call(this,Ak)},function(){this.O|=1;this.rd.call(this,Im,this.ra)},function(){this.O|=1;this.ib.call(this,Im,this.Ja)},Cm,Dm,Cm,Dm,function(){if(this.P& -131072&&3>this.jc)F.call(this,13,0);else{var a=this.B.Vh;this.Ac=-1;Wl.call(this,3,null,1,a)}},function(){var a=this.ra();if(this.P&131072&&3>this.jc)F.call(this,13,0);else{a:{var b=this.ef[a];if(void 0!==b)for(var c=0;cthis.jc)F.call(this,13,0);else{var a=this.B.tk;this.Ac=-1;Wl.call(this,4,null,1,a)}else this.A-= -this.B.uk},function(){if(this.P&131072&&3>this.jc)F.call(this,13,0);else{this.O|=16384;this.Uc=this.T.V;this.pa=this.Aa;this.A-=this.B.rk;if(this.ma&1&&16384==(this.P&147456)){var a=this.ka(this.ga.ta+0);Vj(this.ba,a,!1)}else{a=this.Na;var b=wi(this),c=wi(this),d=wi(this);if(this.P&131072)d=d&131071|this.P&-131072;else if(d&131072){var e=wi(this),f=wi(this),g=wi(this),h=wi(this),k=wi(this),l=wi(this);Lg(this,!0,!0);Eg(this,f);zg(this,e);wh(this,g);vh(this,h);this.Fa.load(k);this.Ia.load(l)}null!= -Gg(this,b,c,!1)&&(Kg(this,d,a),this.Dg&&lh(this,this.Y))}this.Uc=this.pa=-1}},function(){this.rd.call(this,xm,Ql)},function(){this.ib.call(this,2==this.X?ym:zm,Ql)},function(){this.rd.call(this,xm,Rl)},function(){this.ib.call(this,2==this.X?ym:zm,Rl)},function(){var a=this.ra();if(a){var b=this.D&255;this.D=this.D&-65536|b/a<<8|b%a;Jh(this,this.D,128);this.A-=this.B.Wj}else $l.call(this)},function(){var a=this.D&255,b=(this.D>>8&255)*this.ra()|0,c=a+b|0;this.D=this.D&-65536|c&255;Bh(this,a,b,c,191); +this.B.bk},function(){this.A-=3},function(){var a=ih(this);a&131072&&3>this.kc?F.call(this,13,0):(xi(this,a&-196609),this.A-=this.B.Tc)},function(){if(this.P&131072&&3>this.kc)F.call(this,13,0);else{var a=wi(this);a=a&65535|this.P&-65536;Kg(this,a);this.A-=this.B.rc}},function(){var a=this.D>>8&255;a&1?Kh(this):Lh(this);a&4?(this.resultType&=-3,this.P|=4):(this.resultType&=-3,this.P&=-5);a&16?Sh(this):Oh(this);a&64?Th(this):Rh(this);a&128?(this.resultType&=-17,this.P|=128):(this.resultType&=-17,this.P&= +-129);this.A-=this.B.dc},function(){this.D=this.D&-65281|(ih(this)&255)<<8;this.A-=this.B.dc},function(){var a=this.D&-256;var b=L(this);b=this.ya(this.Ca.Cb(b,1));this.D=a|b;this.A-=this.B.di},function(){this.D=this.D&~this.R|ti(this,this.Ca,L(this));this.A-=this.B.di},function(){var a=L(this),b=this.D;this.vb(this.Ca.Yb(a,1),b);this.A-=this.B.ei},function(){ui(this,this.Ca,L(this),this.D);this.A-=this.B.ei},function(){var a=1,b=0,c=this.wa,d=this.B.fi;this.aa&192&&(a=this.I&c,b=1,d=this.B.hi,this.aa& +256||(this.A-=this.B.gi));if(a--){var e=this.ya(this.Ca.Cb(this.L&c,1));this.vb(this.fa.Yb(this.K&c,1),e);e=this.P&1024?-1:1;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.fi;this.aa&192&&(a=this.I&c,b=1,d=this.B.hi,this.aa&256||(this.A-=this.B.gi));if(a--){ui(this,this.fa,this.K&c,ti(this,this.Ca,this.L&c));var e=this.P&1024?-this.X:this.X;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+ +e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.Qh;this.aa&192&&(a=this.I&c,b=1,d=this.B.Sh,this.aa&256||(this.A-=this.B.Rh));if(a--){var e=Xh(this,this.Ca,this.L),f=Xh(this,this.fa,this.K);this.F=this.C;ok.call(this,e,f);e=this.P&1024?-1:1;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Rb;a&&Fh(this)==(this.aa&64)&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.Qh;this.aa&192&&(a=this.I& +c,b=1,d=this.B.Sh,this.aa&256||(this.A-=this.B.Rh));if(a--){var e=Zh(this,this.Ca,this.L&c),f=Zh(this,this.fa,this.K&c);this.F=this.C;pk.call(this,e,f);e=this.P&1024?-this.X:this.X;this.L=this.L&~c|this.L+e&c;this.K=this.K&~c|this.K+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Rb;a&&Fh(this)==(this.aa&64)&&Ah(this,!0)}},function(){Jh(this,this.D&this.ra(),128);this.A-=this.B.Oe},function(){Jh(this,this.D&this.Ja(),this.wb);this.A-=this.B.Oe},function(){var a=1,b=0,c=this.wa,d=this.B.ri;this.aa& +192&&(a=this.I&c,b=1,d=this.B.ti,this.aa&256||(this.A-=this.B.si));if(a--){var e=this.D;this.vb(this.fa.Yb(this.K&c,1),e);this.I=this.I&~c|this.I-b&c;80546<=this.Fd&&80564>=this.Fd&&!(this.aa&2048)!=(103!=this.ya(this.Y))&&(c^=-65536);this.K=this.K&~c|this.K+(this.P&1024?-1:1)&c;this.A-=d;a&&Ah(this)}},function(){var a=1,b=0,c=this.wa,d=this.B.ri;this.aa&192&&(a=this.I&c,b=1,d=this.B.ti,this.aa&256||(this.A-=this.B.si));a--&&(ui(this,this.fa,this.K&c,this.D),this.K=this.K&~c|this.K+(this.P&1024?-this.X: +this.X)&c,this.I=this.I&~c|this.I-b&c,this.A-=d,a&&Ah(this))},function(){var a=1,b=0,c=this.wa,d=this.B.Yh;this.aa&192&&(a=this.I&c,b=1,d=this.B.$h,this.aa&256||(this.A-=this.B.Zh));if(a--){var e=this.ya(this.Ca.Cb(this.L&c,1));this.D=this.D&-256|e;this.L=this.L&~c|this.L+(this.P&1024?-1:1)&c;this.I=this.I&~c|this.I-b&c;this.A-=d;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.Yh;this.aa&192&&(a=this.I&c,b=1,d=this.B.$h,this.aa&256||(this.A-=this.B.Zh));if(a--){var e=ti(this,this.Ca,this.L& +c);this.D=this.D&~this.R|e;this.L=this.L&~c|this.L+(this.P&1024?-this.X:this.X)&c;this.I=this.I&~c|this.I-b&c;this.A-=d;a&&Ah(this,!0)}},function(){var a=1,b=0,c=this.wa,d=this.B.ki;this.aa&192&&(a=this.I&c,b=1,d=this.B.mi,this.aa&256||(this.A-=this.B.li));if(a--){var e=this.D&255,f=Xh(this,this.fa,this.K);this.F=this.C;ok.call(this,e,f);this.K=this.K&~c|this.K+(this.P&1024?-1:1)&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Rb;a&&Fh(this)==(this.aa&64)&&Ah(this)}},function(){var a=1,b=0,c=this.wa, +d=this.B.ki;this.aa&192&&(a=this.I&c,b=1,d=this.B.mi,this.aa&256||(this.A-=this.B.li));if(a--){var e=this.D&this.R,f=Zh(this,this.fa,this.K&c);this.F=this.C;pk.call(this,e,f);this.K=this.K&~c|this.K+(this.P&1024?-this.X:this.X)&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Rb;a&&Fh(this)==(this.aa&64)&&Ah(this)}},function(){this.D=this.D&-256|this.ra();this.A-=this.B.dc},function(){this.I=this.I&-256|this.ra();this.A-=this.B.dc},function(){this.M=this.M&-256|this.ra();this.A-=this.B.dc},function(){this.H= +this.H&-256|this.ra();this.A-=this.B.dc},function(){this.D=this.D&-65281|this.ra()<<8;this.A-=this.B.dc},function(){this.I=this.I&-65281|this.ra()<<8;this.A-=this.B.dc},function(){this.M=this.M&-65281|this.ra()<<8;this.A-=this.B.dc},function(){this.H=this.H&-65281|this.ra()<<8;this.A-=this.B.dc},function(){this.D=this.D&~this.R|this.Ja();this.A-=this.B.dc},function(){this.I=this.I&~this.R|this.Ja();this.A-=this.B.dc},function(){this.M=this.M&~this.R|this.Ja();this.A-=this.B.dc},function(){this.H= +this.H&~this.R|this.Ja();this.A-=this.B.dc},function(){zg(this,A(this)&~this.R|this.Ja());this.A-=this.B.dc},function(){this.N=this.N&~this.R|this.Ja();this.A-=this.B.dc},function(){this.L=this.L&~this.R|this.Ja();this.A-=this.B.dc},function(){this.K=this.K&~this.R|this.Ja();this.A-=this.B.dc},Am,Bm,Am,Bm,function(){this.ja.call(this,Ck)},function(){this.ja.call(this,Ak)},function(){this.O|=1;this.sd.call(this,Im,this.ra)},function(){this.O|=1;this.jb.call(this,Im,this.Ja)},Cm,Dm,Cm,Dm,function(){if(this.P& +131072&&3>this.kc)F.call(this,13,0);else{var a=this.B.Wh;this.Bc=-1;Wl.call(this,3,null,1,a)}},function(){var a=this.ra();if(this.P&131072&&3>this.kc)F.call(this,13,0);else{a:{var b=this.ff[a];if(void 0!==b)for(var c=0;cthis.kc)F.call(this,13,0);else{var a=this.B.tk;this.Bc=-1;Wl.call(this,4,null,1,a)}else this.A-= +this.B.uk},function(){if(this.P&131072&&3>this.kc)F.call(this,13,0);else{this.O|=16384;this.Vc=this.T.V;this.pa=this.Aa;this.A-=this.B.rk;if(this.ma&1&&16384==(this.P&147456)){var a=this.ka(this.ga.ta+0);Vj(this.ba,a,!1)}else{a=this.Na;var b=wi(this),c=wi(this),d=wi(this);if(this.P&131072)d=d&131071|this.P&-131072;else if(d&131072){var e=wi(this),f=wi(this),g=wi(this),h=wi(this),k=wi(this),l=wi(this);Lg(this,!0,!0);Eg(this,f);zg(this,e);wh(this,g);vh(this,h);this.Fa.load(k);this.Ia.load(l)}null!= +Gg(this,b,c,!1)&&(Kg(this,d,a),this.Eg&&lh(this,this.Y))}this.Vc=this.pa=-1}},function(){this.sd.call(this,xm,Ql)},function(){this.jb.call(this,2==this.X?ym:zm,Ql)},function(){this.sd.call(this,xm,Rl)},function(){this.jb.call(this,2==this.X?ym:zm,Rl)},function(){var a=this.ra();if(a){var b=this.D&255;this.D=this.D&-65536|b/a<<8|b%a;Jh(this,this.D,128);this.A-=this.B.Wj}else $l.call(this)},function(){var a=this.D&255,b=(this.D>>8&255)*this.ra()|0,c=a+b|0;this.D=this.D&-65536|c&255;Bh(this,a,b,c,191); this.A-=this.B.Vj},function(){this.D=this.D&-256|(Ch(this)?255:0);this.A-=2},function(){this.D=this.D&-256|Xh(this,this.Ca,this.H+(this.D&255));this.A-=this.B.Uk},function(){Em.call(this,216)},function(){Em.call(this,217)},function(){Em.call(this,218)},function(){Em.call(this,219)},function(){Em.call(this,220)},function(){Em.call(this,221)},function(){Em.call(this,222)},function(){Em.call(this,223)},function(){var a=this.S(),b=this.I-1&this.wa;this.I=this.I&~this.wa|b;b&&!Fh(this)?(xh(this,C(this)+ -a),this.A-=this.B.Bk):this.A-=this.B.$h},function(){var a=this.S(),b=this.I-1&this.wa;this.I=this.I&~this.wa|b;b&&Fh(this)?(xh(this,C(this)+a),this.A-=this.B.ai):this.A-=this.B.bi},function(){var a=this.S(),b=this.I-1&this.wa;this.I=this.I&~this.wa|b;b?(xh(this,C(this)+a),this.A-=this.B.Ak):this.A-=this.B.$h},function(){var a=this.S();this.I&this.wa?this.A-=this.B.bi:(xh(this,C(this)+a),this.A-=this.B.ai)},function(){var a=this.ra();Vh(this,a,1,!0)&&(this.D=this.D&-256|je(this.la,a,1,this.Y-2)&255, -this.A-=this.B.Uh)},function(){var a=this.ra();Vh(this,a,this.X,!0)&&(this.D=this.D&~this.R|je(this.la,a,this.X,this.Y-2)&this.R,this.A-=this.B.Uh)},function(){var a=this.ra();Vh(this,a,1,!1)&&(me(this.la,a,1,this.D&255,this.Y-2),this.A-=this.B.ii)},function(){var a=this.ra();Vh(this,a,this.X,!1)&&(me(this.la,a,this.X,this.D&this.R,this.Y-2),this.A-=this.B.ii)},function(){var a=this.Ja(),b=C(this);a=b+a;xi(this,b);xh(this,a);this.A-=this.B.$j},function(){var a=this.Ja();xh(this,C(this)+a);this.A-= -this.B.Wh},function(){Gg(this,this.Ja(),vi(this));this.A-=this.B.wk},function(){var a=this.S();xh(this,C(this)+a);this.A-=this.B.Wh},function(){var a=this.M&65535;Vh(this,a,1,!0)&&(this.D=this.D&-256|je(this.la,a,1,this.Y-1)&255,this.A-=this.B.Th)},function(){var a=this.M&65535;Vh(this,a,this.X,!0)&&(this.D=this.D&~this.R|je(this.la,a,this.X,this.Y-1)&this.R,this.A-=this.B.Th)},function(){var a=this.M&65535;Vh(this,a,1,!1)&&(me(this.la,a,1,this.D&255,this.Y-1),this.A-=this.B.hi)},function(){var a= -this.M&65535;Vh(this,a,2,!1)&&(me(this.la,a,this.X,this.D&this.R,this.Y-1),this.A-=this.B.hi)},Fm,Fm,function(){this.O|=132;this.A-=this.B.qd},function(){this.O|=68;this.A-=this.B.qd},Di,function(){Ch(this)?Lh(this):Kh(this);this.A-=2},function(){this.rc=!1;this.rd.call(this,Km,Tl);this.rc&&(this.D=this.D&~this.R|this.Ba&this.R)},function(){this.rc=!1;this.ib.call(this,Lm,Tl);this.rc&&(this.D=this.D&~this.R|this.Ba&this.R,this.M=this.M&~this.R|this.Sa&this.R)},function(){Lh(this);this.A-=2},function(){Kh(this); -this.A-=2},function(){this.Na>this.jc?F.call(this,13,0):(this.P&=-513,this.A-=this.B.Yj)},function(){this.Na>this.jc?F.call(this,13,0):(this.P|=512,this.O|=4,this.A-=2)},function(){this.P&=-1025;this.A-=2},function(){this.P|=1024;this.A-=2},function(){this.rd.call(this,Ff,Tl)},function(){this.ib.call(this,Gf,Tl)}],sm=[Yj,Wk,Wj,Yk,ak,Al,Il,ok],Gm=[Zj,Xk,Xj,Zk,bk,Bl,Jl,pk],Hm=[function(a,b){this.A-=-1===this.F?this.B.qc:this.B.Mk;return b},rk,rk,rk,rk,rk,rk,rk],Im=[function(a,b){this.A-=-1===this.F? +a),this.A-=this.B.Bk):this.A-=this.B.ai},function(){var a=this.S(),b=this.I-1&this.wa;this.I=this.I&~this.wa|b;b&&Fh(this)?(xh(this,C(this)+a),this.A-=this.B.bi):this.A-=this.B.ci},function(){var a=this.S(),b=this.I-1&this.wa;this.I=this.I&~this.wa|b;b?(xh(this,C(this)+a),this.A-=this.B.Ak):this.A-=this.B.ai},function(){var a=this.S();this.I&this.wa?this.A-=this.B.ci:(xh(this,C(this)+a),this.A-=this.B.bi)},function(){var a=this.ra();Vh(this,a,1,!0)&&(this.D=this.D&-256|je(this.la,a,1,this.Y-2)&255, +this.A-=this.B.Vh)},function(){var a=this.ra();Vh(this,a,this.X,!0)&&(this.D=this.D&~this.R|je(this.la,a,this.X,this.Y-2)&this.R,this.A-=this.B.Vh)},function(){var a=this.ra();Vh(this,a,1,!1)&&(me(this.la,a,1,this.D&255,this.Y-2),this.A-=this.B.ji)},function(){var a=this.ra();Vh(this,a,this.X,!1)&&(me(this.la,a,this.X,this.D&this.R,this.Y-2),this.A-=this.B.ji)},function(){var a=this.Ja(),b=C(this);a=b+a;xi(this,b);xh(this,a);this.A-=this.B.$j},function(){var a=this.Ja();xh(this,C(this)+a);this.A-= +this.B.Xh},function(){Gg(this,this.Ja(),vi(this));this.A-=this.B.wk},function(){var a=this.S();xh(this,C(this)+a);this.A-=this.B.Xh},function(){var a=this.M&65535;Vh(this,a,1,!0)&&(this.D=this.D&-256|je(this.la,a,1,this.Y-1)&255,this.A-=this.B.Uh)},function(){var a=this.M&65535;Vh(this,a,this.X,!0)&&(this.D=this.D&~this.R|je(this.la,a,this.X,this.Y-1)&this.R,this.A-=this.B.Uh)},function(){var a=this.M&65535;Vh(this,a,1,!1)&&(me(this.la,a,1,this.D&255,this.Y-1),this.A-=this.B.ii)},function(){var a= +this.M&65535;Vh(this,a,2,!1)&&(me(this.la,a,this.X,this.D&this.R,this.Y-1),this.A-=this.B.ii)},Fm,Fm,function(){this.O|=132;this.A-=this.B.rd},function(){this.O|=68;this.A-=this.B.rd},Di,function(){Ch(this)?Lh(this):Kh(this);this.A-=2},function(){this.sc=!1;this.sd.call(this,Km,Tl);this.sc&&(this.D=this.D&~this.R|this.Ba&this.R)},function(){this.sc=!1;this.jb.call(this,Lm,Tl);this.sc&&(this.D=this.D&~this.R|this.Ba&this.R,this.M=this.M&~this.R|this.Ta&this.R)},function(){Lh(this);this.A-=2},function(){Kh(this); +this.A-=2},function(){this.Na>this.kc?F.call(this,13,0):(this.P&=-513,this.A-=this.B.Yj)},function(){this.Na>this.kc?F.call(this,13,0):(this.P|=512,this.O|=4,this.A-=2)},function(){this.P&=-1025;this.A-=2},function(){this.P|=1024;this.A-=2},function(){this.sd.call(this,Ff,Tl)},function(){this.jb.call(this,Gf,Tl)}],sm=[Yj,Wk,Wj,Yk,ak,Al,Il,ok],Gm=[Zj,Xk,Xj,Zk,bk,Bl,Jl,pk],Hm=[function(a,b){this.A-=-1===this.F?this.B.rc:this.B.Mk;return b},rk,rk,rk,rk,rk,rk,rk],Im=[function(a,b){this.A-=-1===this.F? this.B.Ek:this.B.Ck;return b},sk,sk,sk,sk,sk,sk,sk],xm=[function(a,b){var c=a;if(b&=this.Oa){if(b&=7){var d=a<>8-b)&255}else d=a<<7;Ph(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Oa){if(b&=7){var d=a<<8-b;c=(a>>>b|d)&255}else d=a;Ph(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Oa){var d=Qh(this);(b%=9)?(c=(a<>9-b)&255,d=a<>b|d<<8-b|a<<9-b)&255, d=a<<8-b):d<<=7;Ph(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Oa){var d=0;8>>b-1,a=b>>>1&255,Jh(this,a,128,b&1,a&128);return a},sk,function(a,b){if(b&=this.Oa)9>24>>b-1,a=b>>1&255,Jh(this,a,128,b&1);return a}],ym=[function(a,b){var c=a;if(b&=this.Oa){if(b&=15){var d=a<>16-b)&65535}else d=a<<15;Ph(this,c,d,32768)}return c},function(a,b){var c=a; if(b&=this.Oa){if(b&=15){var d=a<<16-b;c=(a>>>b|d)&65535}else d=a;Ph(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Oa){var d=Qh(this);(b%=17)?(c=(a<>17-b)&65535,d=a<>b|d<<16-b|a<<17-b)&65535,d=a<<16-b):d<<=15;Ph(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Oa){var d=0;16>>b-1,a=b>>>1&65535,Jh(this,a,32768,b&1,a&32768);return a},sk,function(a,b){if(b&=this.Oa)17>16>>b-1,a=b>>1&65535,Jh(this,a,32768,b&1);return a}],zm=[function(a,b){var c=a;if(b&=this.Oa)c=a<>>32-b,Ph(this,c,a<>>b|d;Ph(this,c,d,-2147483648)}return c},function(a,b){var c=a;if(b&=this.Oa)c=Qh(this),c=a<>>32-b>>>1,Ph(this,c,a<>>b|c<<32-b|a<<32-b<<1,Ph(this,c,a<<32-b,-2147483648);return c},function(a,b){var c=a;if(b&=this.Oa)a<<=b-1,c=a<<1,Jh(this,c,-2147483648,a&-2147483648,(c^a)&-2147483648);return c},function(a,b){if(b&=this.Oa)b=a>>>b-1,a=b>>>1,Jh(this,a,-2147483648,b&1,a&-2147483648);return a},sk,function(a,b){if(b&=this.Oa)b=a>>b-1,a=b>>1,Jh(this,a,-2147483648,b&1);return a}],Km=[function(a,b){b=this.ra();Jh(this,a&b,128);this.A-=-1===this.C?this.B.ui:this.B.ti;this.O|=2;return a}, -sk,function(a){this.A-=-1===this.C?this.B.Uf:this.B.Tf;return a^255},function(a){var b=-a|0;Bh(this,0,a,b,191,!0);this.A-=-1===this.C?this.B.Uf:this.B.Tf;return b&255},function(a){this.Ba=(this.D&255)*a&65535;this.Ba&65280?(Kh(this),Mh(this)):(Lh(this),Nh(this));8088>=this.model&&Rh(this);this.rc=!0;this.A-=-1===this.C?this.B.Ik:this.B.Hk;this.O|=2;return a},function(a){var b=(this.D<<24>>24)*(a<<24>>24)|0;this.Ba=b&65535;127b?(Kh(this),Mh(this)):(Lh(this),Nh(this));8088>=this.model&&Rh(this); -this.rc=!0;this.A-=-1===this.C?this.B.nk:this.B.mk;this.O|=2;return a},function(a,b){if(!a)return $l.call(this),a;var c=(b=this.D&65535)/a;if(255>24,d=(b=this.D<<16>>16)/c|0;if(d!=d<<24>>24||8088>=this.model&&-128==d)return $l.call(this),a;this.Ba=d&255|(b%c&255)<<8;this.rc=!0;this.A-=-1===this.C?this.B.jk:this.B.ik;this.O|= -2;return a}],Lm=[function(a,b){b=this.Ja();Jh(this,a&b,this.vb);this.A-=-1===this.C?this.B.ui:this.B.ti;this.O|=2;return a},sk,function(a){this.A-=-1===this.C?this.B.Uf:this.B.Tf;return a^this.R},function(a){var b=-a|0;Bh(this,0,a,b,this.vb|63,!0);this.A-=-1===this.C?this.B.Uf:this.B.Tf;return b&this.R},function(a,b){2==this.X?(b=this.D&65535,b=b*a|0,this.Ba=b&65535,this.Sa=b>>16&65535):(yk.call(this,a,this.D),80563==this.Ed&&68657152==this.D&&129==a&&(this.Sa=0));this.Sa?(Kh(this),Mh(this)):(Lh(this), -Nh(this));8088>=this.model&&Rh(this);this.rc=!0;this.A-=-1===this.C?this.B.Kk:this.B.Jk;this.O|=2;return a},function(a,b){2==this.X?(b=this.D&65535,b=(b<<16>>16)*(a<<16>>16)|0,this.Ba=b&65535,this.Sa=b>>16&65535,b=32767b):(xk.call(this,a,this.D),b=this.Sa!=this.Ba>>31);b?(Kh(this),Mh(this)):(Lh(this),Nh(this));8088>=this.model&&Rh(this);this.rc=!0;this.A-=-1===this.C?this.B.qk:this.B.pk;this.O|=2;return a},function(a,b){if(2==this.X){if(!a)return $l.call(this),a;b=65536*(this.M&65535)+ -(this.D&65535);var c=b/a;if(65536<=c)return $l.call(this),a;this.Ba=c&65535;this.Sa=b%a&65535}else{if(!Ml.call(this,this.D,this.M,a))return $l.call(this),a;this.Ba|=0;this.Sa|=0}this.rc=!0;this.A-=-1===this.C?this.B.hk:this.B.gk;this.O|=2;return a},function(a,b){if(2==this.X){if(!a)return $l.call(this),a;var c=a<<16>>16,d=(b=this.M<<16|this.D&65535)/c|0;if(d!=d<<16>>16||8088>=this.model&&-32768==d)return $l.call(this),a;this.Ba=d&65535;this.Sa=b%c&65535}else{b=this.D;c=this.M;d=a;var e=0,f=0;0>d&& -(d=-d|0,e=1-e);0>c&&(b=-b|0,c=~c+(b?0:1)|0,f=1,e=1-e);!Ml.call(this,b,c,d)||this.Ba>2147483647+e||this.Sa>2147483647+f?b=!1:(e&&(this.Ba=-this.Ba),f&&(this.Sa=-this.Sa),b=!0);if(!b)return $l.call(this),a;this.Ba|=0;this.Sa|=0}this.rc=!0;this.A-=-1===this.C?this.B.lk:this.B.kk;this.O|=2;return a}],Ff=[function(a){var b=a+1|0;Bh(this,a,1,b,190);this.A-=-1===this.C?this.B.Sf:this.B.Rf;return b&255},function(a){var b=a-1|0;Bh(this,a,1,b,190,!0);this.A-=-1===this.C?this.B.Sf:this.B.Rf;return b&255},sk, -sk,sk,sk,sk,sk],Gf=[function(a){var b=a+1|0;Bh(this,a,1,b,this.vb|62);this.A-=-1===this.C?this.B.Sf:this.B.Rf;return b&this.R},function(a){var b=a-1|0;Bh(this,a,1,b,this.vb|62,!0);this.A-=-1===this.C?this.B.Sf:this.B.Rf;return b&this.R},function(a){xi(this,C(this));xh(this,a);this.A-=-1===this.C?this.B.dk:this.B.ck;this.O|=2;return a},function(a,b){if(-1===this.C)return sk.call(this,a,b);this.pa=this.Aa;Vl.call(this,a,this.ka(this.C+this.X));this.A-=this.B.ak;this.O|=2;this.pa=-1;return a},function(a){xh(this, -a);this.A-=-1===this.C?this.B.yk:this.B.xk;this.O|=2;return a},function(a,b){if(-1===this.C)return sk.call(this,a,b);Gg(this,a,this.ka(this.C+this.X));this.A-=this.B.vk;this.O|=2;return a},function(a){var b=a;this.O&512&&(a=a-2&65535,80286>this.model&&(b=a));xi(this,b);this.A-=-1===this.C?this.B.Sc:this.B.Ok;this.O|=2;return a},sk];function ig(){this.ja.call(this,Fl);this.A-=-1===this.C?6:13}function jg(){this.sa.call(this,El);this.A-=-1===this.C?12:19}var ag=Array(256); -ag[0]=function(){16>(this.ya(this.Y)&56)&&(this.O|=1);this.ib.call(this,this.Ti,Tl)};ag[1]=function(){this.ya(this.Y)&16||(this.O|=1);this.ib.call(this,Mm,Tl)};ag[2]=function(){!(this.ma&1)||this.P&131072?F.call(this,6):this.ja.call(this,zk)};ag[3]=function(){!(this.ma&1)||this.P&131072?F.call(this,6):this.ja.call(this,Fk)}; -ag[5]=function(){this.Na?F.call(this,13,0,0,!0):(Uh(this,this.ka(2054)),this.K=this.ka(2086),this.L=this.ka(2088),this.N=this.ka(2090),this.H=this.ka(2094),this.M=this.ka(2096),this.I=this.ka(2098),this.D=this.ka(2100),Uj(this.fa,2102,this.ka(2084)),Uj(this.ba,2108,this.ka(2082)),Uj(this.T,2114,this.ka(2080)),Uj(this.xa,2120,this.ka(2078)),Kg(this,this.ka(2072)),xh(this,this.ka(2074)),zg(this,this.ka(2092)),this.Ab=this.ka(2126)|this.ya(2128)<<16,this.Nc=this.Ab+this.ka(2130),this.Eb=this.ka(2138)| -this.ya(2140)<<16,this.gd=this.Eb+this.ka(2142),Uj(this.rb,2132,this.ka(2076)),Uj(this.ga,2144,this.ka(2070)),this.A-=195)};ag[6]=function(){this.Na?F.call(this,13,0):(this.ma&=-9,this.A-=2)};ag[11]=If;ag[166]=If;ag[255]=If;var z=[];z[5]=If; -z[7]=function(){if(this.Na)F.call(this,13,0,0,!0);else{var a=this.fa.Bb(this.K&this.wa,204);if(-1!==a){Ol.call(this,this.ha(a));var b=this.ha(a+168),c=(b&24576)>>13;Kg(this,this.ha(a+4),c);this.Ab=this.ha(a+112);this.Nc=this.Ab+this.ha(a+116);this.Eb=this.ha(a+100);this.gd=this.Eb+this.ha(a+104);Tj(this.rb,this.ha(a+56),this.ha(a+120),this.ha(a+124),this.ha(a+128));Tj(this.ga,this.ha(a+52),this.ha(a+84),this.ha(a+88),this.ha(a+92));this.K=this.ha(a+12);this.L=this.ha(a+16);this.N=this.ha(a+20);this.H= +b){var c=a;if(b&=this.Oa)c=Qh(this),c=a>>>b|c<<32-b|a<<32-b<<1,Ph(this,c,a<<32-b,-2147483648);return c},function(a,b){var c=a;if(b&=this.Oa)a<<=b-1,c=a<<1,Jh(this,c,-2147483648,a&-2147483648,(c^a)&-2147483648);return c},function(a,b){if(b&=this.Oa)b=a>>>b-1,a=b>>>1,Jh(this,a,-2147483648,b&1,a&-2147483648);return a},sk,function(a,b){if(b&=this.Oa)b=a>>b-1,a=b>>1,Jh(this,a,-2147483648,b&1);return a}],Km=[function(a,b){b=this.ra();Jh(this,a&b,128);this.A-=-1===this.C?this.B.vi:this.B.ui;this.O|=2;return a}, +sk,function(a){this.A-=-1===this.C?this.B.Vf:this.B.Uf;return a^255},function(a){var b=-a|0;Bh(this,0,a,b,191,!0);this.A-=-1===this.C?this.B.Vf:this.B.Uf;return b&255},function(a){this.Ba=(this.D&255)*a&65535;this.Ba&65280?(Kh(this),Mh(this)):(Lh(this),Nh(this));8088>=this.model&&Rh(this);this.sc=!0;this.A-=-1===this.C?this.B.Ik:this.B.Hk;this.O|=2;return a},function(a){var b=(this.D<<24>>24)*(a<<24>>24)|0;this.Ba=b&65535;127b?(Kh(this),Mh(this)):(Lh(this),Nh(this));8088>=this.model&&Rh(this); +this.sc=!0;this.A-=-1===this.C?this.B.nk:this.B.mk;this.O|=2;return a},function(a,b){if(!a)return $l.call(this),a;var c=(b=this.D&65535)/a;if(255>24,d=(b=this.D<<16>>16)/c|0;if(d!=d<<24>>24||8088>=this.model&&-128==d)return $l.call(this),a;this.Ba=d&255|(b%c&255)<<8;this.sc=!0;this.A-=-1===this.C?this.B.jk:this.B.ik;this.O|= +2;return a}],Lm=[function(a,b){b=this.Ja();Jh(this,a&b,this.wb);this.A-=-1===this.C?this.B.vi:this.B.ui;this.O|=2;return a},sk,function(a){this.A-=-1===this.C?this.B.Vf:this.B.Uf;return a^this.R},function(a){var b=-a|0;Bh(this,0,a,b,this.wb|63,!0);this.A-=-1===this.C?this.B.Vf:this.B.Uf;return b&this.R},function(a,b){2==this.X?(b=this.D&65535,b=b*a|0,this.Ba=b&65535,this.Ta=b>>16&65535):(yk.call(this,a,this.D),80563==this.Fd&&68657152==this.D&&129==a&&(this.Ta=0));this.Ta?(Kh(this),Mh(this)):(Lh(this), +Nh(this));8088>=this.model&&Rh(this);this.sc=!0;this.A-=-1===this.C?this.B.Kk:this.B.Jk;this.O|=2;return a},function(a,b){2==this.X?(b=this.D&65535,b=(b<<16>>16)*(a<<16>>16)|0,this.Ba=b&65535,this.Ta=b>>16&65535,b=32767b):(xk.call(this,a,this.D),b=this.Ta!=this.Ba>>31);b?(Kh(this),Mh(this)):(Lh(this),Nh(this));8088>=this.model&&Rh(this);this.sc=!0;this.A-=-1===this.C?this.B.qk:this.B.pk;this.O|=2;return a},function(a,b){if(2==this.X){if(!a)return $l.call(this),a;b=65536*(this.M&65535)+ +(this.D&65535);var c=b/a;if(65536<=c)return $l.call(this),a;this.Ba=c&65535;this.Ta=b%a&65535}else{if(!Ml.call(this,this.D,this.M,a))return $l.call(this),a;this.Ba|=0;this.Ta|=0}this.sc=!0;this.A-=-1===this.C?this.B.hk:this.B.gk;this.O|=2;return a},function(a,b){if(2==this.X){if(!a)return $l.call(this),a;var c=a<<16>>16,d=(b=this.M<<16|this.D&65535)/c|0;if(d!=d<<16>>16||8088>=this.model&&-32768==d)return $l.call(this),a;this.Ba=d&65535;this.Ta=b%c&65535}else{b=this.D;c=this.M;d=a;var e=0,f=0;0>d&& +(d=-d|0,e=1-e);0>c&&(b=-b|0,c=~c+(b?0:1)|0,f=1,e=1-e);!Ml.call(this,b,c,d)||this.Ba>2147483647+e||this.Ta>2147483647+f?b=!1:(e&&(this.Ba=-this.Ba),f&&(this.Ta=-this.Ta),b=!0);if(!b)return $l.call(this),a;this.Ba|=0;this.Ta|=0}this.sc=!0;this.A-=-1===this.C?this.B.lk:this.B.kk;this.O|=2;return a}],Ff=[function(a){var b=a+1|0;Bh(this,a,1,b,190);this.A-=-1===this.C?this.B.Tf:this.B.Sf;return b&255},function(a){var b=a-1|0;Bh(this,a,1,b,190,!0);this.A-=-1===this.C?this.B.Tf:this.B.Sf;return b&255},sk, +sk,sk,sk,sk,sk],Gf=[function(a){var b=a+1|0;Bh(this,a,1,b,this.wb|62);this.A-=-1===this.C?this.B.Tf:this.B.Sf;return b&this.R},function(a){var b=a-1|0;Bh(this,a,1,b,this.wb|62,!0);this.A-=-1===this.C?this.B.Tf:this.B.Sf;return b&this.R},function(a){xi(this,C(this));xh(this,a);this.A-=-1===this.C?this.B.dk:this.B.ck;this.O|=2;return a},function(a,b){if(-1===this.C)return sk.call(this,a,b);this.pa=this.Aa;Vl.call(this,a,this.ka(this.C+this.X));this.A-=this.B.ak;this.O|=2;this.pa=-1;return a},function(a){xh(this, +a);this.A-=-1===this.C?this.B.yk:this.B.xk;this.O|=2;return a},function(a,b){if(-1===this.C)return sk.call(this,a,b);Gg(this,a,this.ka(this.C+this.X));this.A-=this.B.vk;this.O|=2;return a},function(a){var b=a;this.O&512&&(a=a-2&65535,80286>this.model&&(b=a));xi(this,b);this.A-=-1===this.C?this.B.Tc:this.B.Ok;this.O|=2;return a},sk];function ig(){this.ja.call(this,Fl);this.A-=-1===this.C?6:13}function jg(){this.sa.call(this,El);this.A-=-1===this.C?12:19}var ag=Array(256); +ag[0]=function(){16>(this.ya(this.Y)&56)&&(this.O|=1);this.jb.call(this,this.Ui,Tl)};ag[1]=function(){this.ya(this.Y)&16||(this.O|=1);this.jb.call(this,Mm,Tl)};ag[2]=function(){!(this.ma&1)||this.P&131072?F.call(this,6):this.ja.call(this,zk)};ag[3]=function(){!(this.ma&1)||this.P&131072?F.call(this,6):this.ja.call(this,Fk)}; +ag[5]=function(){this.Na?F.call(this,13,0,0,!0):(Uh(this,this.ka(2054)),this.K=this.ka(2086),this.L=this.ka(2088),this.N=this.ka(2090),this.H=this.ka(2094),this.M=this.ka(2096),this.I=this.ka(2098),this.D=this.ka(2100),Uj(this.fa,2102,this.ka(2084)),Uj(this.ba,2108,this.ka(2082)),Uj(this.T,2114,this.ka(2080)),Uj(this.xa,2120,this.ka(2078)),Kg(this,this.ka(2072)),xh(this,this.ka(2074)),zg(this,this.ka(2092)),this.Bb=this.ka(2126)|this.ya(2128)<<16,this.Oc=this.Bb+this.ka(2130),this.Fb=this.ka(2138)| +this.ya(2140)<<16,this.hd=this.Fb+this.ka(2142),Uj(this.sb,2132,this.ka(2076)),Uj(this.ga,2144,this.ka(2070)),this.A-=195)};ag[6]=function(){this.Na?F.call(this,13,0):(this.ma&=-9,this.A-=2)};ag[11]=If;ag[166]=If;ag[255]=If;var z=[];z[5]=If; +z[7]=function(){if(this.Na)F.call(this,13,0,0,!0);else{var a=this.fa.Cb(this.K&this.wa,204);if(-1!==a){Ol.call(this,this.ha(a));var b=this.ha(a+168),c=(b&24576)>>13;Kg(this,this.ha(a+4),c);this.Bb=this.ha(a+112);this.Oc=this.Bb+this.ha(a+116);this.Fb=this.ha(a+100);this.hd=this.Fb+this.ha(a+104);Tj(this.sb,this.ha(a+56),this.ha(a+120),this.ha(a+124),this.ha(a+128));Tj(this.ga,this.ha(a+52),this.ha(a+84),this.ha(a+88),this.ha(a+92));this.K=this.ha(a+12);this.L=this.ha(a+16);this.N=this.ha(a+20);this.H= this.ha(a+28);this.M=this.ha(a+32);this.I=this.ha(a+36);this.D=this.ha(a+40);Tj(this.Ia,this.ha(a+60),this.ha(a+132),this.ha(a+136),this.ha(a+140));Tj(this.Fa,this.ha(a+64),this.ha(a+144),this.ha(a+148),this.ha(a+152));Tj(this.xa,this.ha(a+68),this.ha(a+156),this.ha(a+160),this.ha(a+164));Tj(this.T,this.ha(a+72),b,this.ha(a+172),this.ha(a+176));Tj(this.ba,this.ha(a+76),this.ha(a+180),this.ha(a+184),this.ha(a+188));Tj(this.fa,this.ha(a+80),this.ha(a+192),this.ha(a+196),this.ha(a+200));xh(this,this.ha(a+ -8));zg(this,this.ha(a+24))}this.A-=122<<(a&3?1:0)}};z[16]=tm;z[17]=um;z[18]=vm;z[19]=wm;z[32]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra();switch((a&56)>>3){case 0:var b=this.ma;break;case 2:b=this.md;break;case 3:b=this.kc;break;default:Yf.call(this);return}vg(this,a&7,b);this.A-=6}};z[33]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;4==b||5==b?Yf.call(this):(vg(this,a&7,this.Pb[b]),this.A-=22)}}; -z[34]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=sg(this,a&7);switch((a&56)>>3){case 0:Ol.call(this,b);this.A-=10;break;case 2:this.md=b;this.A-=4;break;case 3:this.kc=b;Hd(this);this.A-=5;break;default:Yf.call(this)}}};z[35]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;4==b||5==b?Yf.call(this):(a=sg(this,a&7),a!=this.Pb[b]&&(mh(this,!1),this.Pb[b]=a,mh(this,!0)),this.A-=4>b?22:14)}}; -z[36]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;6>b?Yf.call(this):(vg(this,a&7,this.Wg[b]),this.A-=12)}};z[38]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;6>b?Yf.call(this):(this.Wg[b]=sg(this,a&7),this.A-=12)}};z[128]=function(){var a=this.Ja();Ih(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[129]=function(){var a=this.Ja();Ih(this)?this.A-=this.B.$a:(xh(this,C(this)+a),this.A-=this.B.Za)}; -z[130]=function(){var a=this.Ja();Ch(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[131]=function(){var a=this.Ja();Ch(this)?this.A-=this.B.$a:(xh(this,C(this)+a),this.A-=this.B.Za)};z[132]=function(){var a=this.Ja();Fh(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[133]=function(){var a=this.Ja();Fh(this)?this.A-=this.B.$a:(xh(this,C(this)+a),this.A-=this.B.Za)}; -z[134]=function(){var a=this.Ja();Ch(this)||Fh(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[135]=function(){var a=this.Ja();Ch(this)||Fh(this)?this.A-=this.B.$a:(xh(this,C(this)+a),this.A-=this.B.Za)};z[136]=function(){var a=this.Ja();Hh(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[137]=function(){var a=this.Ja();Hh(this)?this.A-=this.B.$a:(xh(this,C(this)+a),this.A-=this.B.Za)}; -z[138]=function(){var a=this.Ja();Dh(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[139]=function(){var a=this.Ja();Dh(this)?this.A-=this.B.$a:(xh(this,C(this)+a),this.A-=this.B.Za)};z[140]=function(){var a=this.Ja();!Hh(this)!=!Ih(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[141]=function(){var a=this.Ja();!Hh(this)==!Ih(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a}; -z[142]=function(){var a=this.Ja();Fh(this)||!Hh(this)!=!Ih(this)?(xh(this,C(this)+a),this.A-=this.B.Za):this.A-=this.B.$a};z[143]=function(){var a=this.Ja();Fh(this)||!Hh(this)!=!Ih(this)?this.A-=this.B.$a:(xh(this,C(this)+a),this.A-=this.B.Za)};z[144]=function(){Pl.call(this,$k)};z[145]=function(){Pl.call(this,$k)};z[146]=function(){Pl.call(this,al)};z[147]=function(){Pl.call(this,bl)};z[148]=function(){Pl.call(this,cl)};z[149]=function(){Pl.call(this,dl)};z[150]=function(){Pl.call(this,el)}; -z[151]=function(){Pl.call(this,fl)};z[152]=function(){Pl.call(this,gl)};z[153]=function(){Pl.call(this,hl)};z[154]=function(){Pl.call(this,il)};z[155]=function(){Pl.call(this,jl)};z[156]=function(){Pl.call(this,kl)};z[157]=function(){Pl.call(this,ll)};z[158]=function(){Pl.call(this,ml)};z[159]=function(){Pl.call(this,nl)};z[160]=function(){yi(this,this.Fa.V,this.X,2);this.A-=this.B.Oe};z[161]=function(){this.pa=this.Aa;var a=wi(this);this.Fa.load(a);this.A-=this.B.qc;this.pa=-1}; -z[163]=function(){this.sa.call(this,kk);-1!==this.C&&(this.A-=6)};z[164]=function(){this.sa.call(this,2==this.X?ol:ql);this.A-=-1===this.C?3:7};z[165]=function(){this.sa.call(this,2==this.X?sl:tl);this.A-=-1===this.C?3:7};z[168]=function(){yi(this,this.Ia.V,this.X,2);this.A-=this.B.Oe};z[169]=function(){this.pa=this.Aa;var a=wi(this);this.Ia.load(a);this.A-=this.B.qc;this.pa=-1};z[171]=function(){this.sa.call(this,nk);-1!==this.C&&(this.A-=5)}; +8));zg(this,this.ha(a+24))}this.A-=122<<(a&3?1:0)}};z[16]=tm;z[17]=um;z[18]=vm;z[19]=wm;z[32]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra();switch((a&56)>>3){case 0:var b=this.ma;break;case 2:b=this.nd;break;case 3:b=this.lc;break;default:Yf.call(this);return}vg(this,a&7,b);this.A-=6}};z[33]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;4==b||5==b?Yf.call(this):(vg(this,a&7,this.Qb[b]),this.A-=22)}}; +z[34]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=sg(this,a&7);switch((a&56)>>3){case 0:Ol.call(this,b);this.A-=10;break;case 2:this.nd=b;this.A-=4;break;case 3:this.lc=b;Hd(this);this.A-=5;break;default:Yf.call(this)}}};z[35]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;4==b||5==b?Yf.call(this):(a=sg(this,a&7),a!=this.Qb[b]&&(mh(this,!1),this.Qb[b]=a,mh(this,!0)),this.A-=4>b?22:14)}}; +z[36]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;6>b?Yf.call(this):(vg(this,a&7,this.Xg[b]),this.A-=12)}};z[38]=function(){if(this.Na)F.call(this,13,0);else{var a=this.ra(),b=(a&56)>>3;6>b?Yf.call(this):(this.Xg[b]=sg(this,a&7),this.A-=12)}};z[128]=function(){var a=this.Ja();Ih(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[129]=function(){var a=this.Ja();Ih(this)?this.A-=this.B.ab:(xh(this,C(this)+a),this.A-=this.B.$a)}; +z[130]=function(){var a=this.Ja();Ch(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[131]=function(){var a=this.Ja();Ch(this)?this.A-=this.B.ab:(xh(this,C(this)+a),this.A-=this.B.$a)};z[132]=function(){var a=this.Ja();Fh(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[133]=function(){var a=this.Ja();Fh(this)?this.A-=this.B.ab:(xh(this,C(this)+a),this.A-=this.B.$a)}; +z[134]=function(){var a=this.Ja();Ch(this)||Fh(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[135]=function(){var a=this.Ja();Ch(this)||Fh(this)?this.A-=this.B.ab:(xh(this,C(this)+a),this.A-=this.B.$a)};z[136]=function(){var a=this.Ja();Hh(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[137]=function(){var a=this.Ja();Hh(this)?this.A-=this.B.ab:(xh(this,C(this)+a),this.A-=this.B.$a)}; +z[138]=function(){var a=this.Ja();Dh(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[139]=function(){var a=this.Ja();Dh(this)?this.A-=this.B.ab:(xh(this,C(this)+a),this.A-=this.B.$a)};z[140]=function(){var a=this.Ja();!Hh(this)!=!Ih(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[141]=function(){var a=this.Ja();!Hh(this)==!Ih(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab}; +z[142]=function(){var a=this.Ja();Fh(this)||!Hh(this)!=!Ih(this)?(xh(this,C(this)+a),this.A-=this.B.$a):this.A-=this.B.ab};z[143]=function(){var a=this.Ja();Fh(this)||!Hh(this)!=!Ih(this)?this.A-=this.B.ab:(xh(this,C(this)+a),this.A-=this.B.$a)};z[144]=function(){Pl.call(this,$k)};z[145]=function(){Pl.call(this,$k)};z[146]=function(){Pl.call(this,al)};z[147]=function(){Pl.call(this,bl)};z[148]=function(){Pl.call(this,cl)};z[149]=function(){Pl.call(this,dl)};z[150]=function(){Pl.call(this,el)}; +z[151]=function(){Pl.call(this,fl)};z[152]=function(){Pl.call(this,gl)};z[153]=function(){Pl.call(this,hl)};z[154]=function(){Pl.call(this,il)};z[155]=function(){Pl.call(this,jl)};z[156]=function(){Pl.call(this,kl)};z[157]=function(){Pl.call(this,ll)};z[158]=function(){Pl.call(this,ml)};z[159]=function(){Pl.call(this,nl)};z[160]=function(){yi(this,this.Fa.V,this.X,2);this.A-=this.B.Pe};z[161]=function(){this.pa=this.Aa;var a=wi(this);this.Fa.load(a);this.A-=this.B.rc;this.pa=-1}; +z[163]=function(){this.sa.call(this,kk);-1!==this.C&&(this.A-=6)};z[164]=function(){this.sa.call(this,2==this.X?ol:ql);this.A-=-1===this.C?3:7};z[165]=function(){this.sa.call(this,2==this.X?sl:tl);this.A-=-1===this.C?3:7};z[168]=function(){yi(this,this.Ia.V,this.X,2);this.A-=this.B.Pe};z[169]=function(){this.pa=this.Aa;var a=wi(this);this.Ia.load(a);this.A-=this.B.rc;this.pa=-1};z[171]=function(){this.sa.call(this,nk);-1!==this.C&&(this.A-=5)}; z[172]=function(){this.sa.call(this,2==this.X?ul:wl);this.A-=-1===this.C?3:7};z[173]=function(){this.sa.call(this,2==this.X?yl:zl);this.A-=-1===this.C?3:7};z[175]=function(){this.ja.call(this,2==this.X?uk:wk)};z[178]=function(){this.ja.call(this,Gk)};z[179]=function(){this.sa.call(this,mk);-1!==this.C&&(this.A-=5)};z[180]=function(){this.ja.call(this,Dk)};z[181]=function(){this.ja.call(this,Ek)}; -z[182]=function(){this.$b.call(this,Sk);switch(this.ea>>3&7){case 0:this.D=this.D&~this.R|this.D&255;break;case 1:this.I=this.I&~this.R|this.I&255;break;case 2:this.M=this.M&~this.R|this.M&255;break;case 3:this.H=this.H&~this.R|this.H&255;break;case 4:this.Cc=this.Cc&~this.R|this.D>>8&255;this.D=this.qa;break;case 5:this.N=this.N&~this.R|this.I>>8&255;this.I=this.qa;break;case 6:this.L=this.L&~this.R|this.M>>8&255;this.M=this.qa;break;case 7:this.K=this.K&~this.R|this.H>>8&255,this.H=this.qa}this.A-= --1===this.C?3:6};z[183]=function(){eh(this,2);this.ja.call(this,Tk);switch(this.ea>>3&7){case 0:this.D=this.D&65535;break;case 1:this.I=this.I&65535;break;case 2:this.M=this.M&65535;break;case 3:this.H=this.H&65535;break;case 4:this.Cc=this.Cc&65535;break;case 5:this.N=this.N&65535;break;case 6:this.L=this.L&65535;break;case 7:this.K=this.K&65535}this.A-=-1===this.C?3:6};z[186]=function(){this.ib.call(this,Nm,this.ra)};z[187]=function(){this.sa.call(this,lk);-1!==this.C&&(this.A-=5)}; +z[182]=function(){this.ac.call(this,Sk);switch(this.ea>>3&7){case 0:this.D=this.D&~this.R|this.D&255;break;case 1:this.I=this.I&~this.R|this.I&255;break;case 2:this.M=this.M&~this.R|this.M&255;break;case 3:this.H=this.H&~this.R|this.H&255;break;case 4:this.Dc=this.Dc&~this.R|this.D>>8&255;this.D=this.qa;break;case 5:this.N=this.N&~this.R|this.I>>8&255;this.I=this.qa;break;case 6:this.L=this.L&~this.R|this.M>>8&255;this.M=this.qa;break;case 7:this.K=this.K&~this.R|this.H>>8&255,this.H=this.qa}this.A-= +-1===this.C?3:6};z[183]=function(){eh(this,2);this.ja.call(this,Tk);switch(this.ea>>3&7){case 0:this.D=this.D&65535;break;case 1:this.I=this.I&65535;break;case 2:this.M=this.M&65535;break;case 3:this.H=this.H&65535;break;case 4:this.Dc=this.Dc&65535;break;case 5:this.N=this.N&65535;break;case 6:this.L=this.L&65535;break;case 7:this.K=this.K&65535}this.A-=-1===this.C?3:6};z[186]=function(){this.jb.call(this,Nm,this.ra)};z[187]=function(){this.sa.call(this,lk);-1!==this.C&&(this.A-=5)}; z[188]=function(){this.ja.call(this,ek)};z[189]=function(){this.ja.call(this,fk)}; -z[190]=function(){this.$b.call(this,Sk);switch(this.ea>>3&7){case 0:this.D=this.D&~this.R|(this.D&255)<<24>>24&this.R;break;case 1:this.I=this.I&~this.R|(this.I&255)<<24>>24&this.R;break;case 2:this.M=this.M&~this.R|(this.M&255)<<24>>24&this.R;break;case 3:this.H=this.H&~this.R|(this.H&255)<<24>>24&this.R;break;case 4:this.Cc=this.Cc&~this.R|this.D<<16>>24&this.R;this.D=this.qa;break;case 5:this.N=this.N&~this.R|this.I<<16>>24&this.R;this.I=this.qa;break;case 6:this.L=this.L&~this.R|this.M<<16>>24& -this.R;this.M=this.qa;break;case 7:this.K=this.K&~this.R|this.H<<16>>24&this.R,this.H=this.qa}this.A-=-1===this.C?3:6};z[191]=function(){eh(this,2);this.ja.call(this,Tk);switch(this.ea>>3&7){case 0:this.D=this.D<<16>>16;break;case 1:this.I=this.I<<16>>16;break;case 2:this.M=this.M<<16>>16;break;case 3:this.H=this.H<<16>>16;break;case 4:this.Cc=this.Cc<<16>>16;break;case 5:this.N=this.N<<16>>16;break;case 6:this.L=this.L<<16>>16;break;case 7:this.K=this.K<<16>>16}this.A-=-1===this.C?3:6}; -var nh=[function(){this.A-=2+(-1===this.C?0:1);return this.rb.V},function(){this.A-=2+(-1===this.C?0:1);return this.ga.V},function(a){this.O|=2;this.rb.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.O|=2;-1!==this.ga.load(a)&&(this.mb(this.ga.Tb+4,this.ga.wb|=512),this.ga.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.O|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.nb.load(a)&&2048!=(this.nb.wb&2560)&&(this.nb.wc>=this.Na&&this.nb.wc>=(a&3)||7168==(this.nb.wb&7168)))return Th(this), -a;Rh(this);return a},function(a){this.O|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.nb.load(a)&&512==(this.nb.wb&2560)&&this.nb.wc>=this.Na&&this.nb.wc>=(a&3))return Th(this),a;Rh(this);return a},sk,sk],Hf=[Zf,Zf,Zf,Zf,Zf,Zf,sk,sk],Mm=[function(a){if(-1===this.C)F.call(this,6);else{a=this.Nc-this.Ab;var b=this.Ab;80286==this.model?b|=-16777216:80386<=this.model&&2!=this.X&&(a|=b<<16);this.lb(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)F.call(this,6);else{a=this.gd-this.Eb;var b=this.Eb; -80286==this.model?b|=-16777216:80386<=this.model&&2!=this.X&&(a|=b<<16);this.lb(this.C+2,b);this.A-=12}return a},function(a){-1===this.C||this.P&131072?F.call(this,6):(this.Ab=this.ha(this.C+2)&(this.R|this.R<<8),a&=65535,this.Nc=this.Ab+a,this.O|=2,this.A-=11);return a},function(a){-1===this.C||this.P&131072?F.call(this,6):(this.Eb=this.ha(this.C+2)&(this.R|this.R<<8),a&=65535,this.gd=this.Eb+a,this.O|=2,this.A-=12);return a},function(){this.A-=2+(-1===this.C?0:1);return this.ma&this.R},sk,function(a){this.P& +z[190]=function(){this.ac.call(this,Sk);switch(this.ea>>3&7){case 0:this.D=this.D&~this.R|(this.D&255)<<24>>24&this.R;break;case 1:this.I=this.I&~this.R|(this.I&255)<<24>>24&this.R;break;case 2:this.M=this.M&~this.R|(this.M&255)<<24>>24&this.R;break;case 3:this.H=this.H&~this.R|(this.H&255)<<24>>24&this.R;break;case 4:this.Dc=this.Dc&~this.R|this.D<<16>>24&this.R;this.D=this.qa;break;case 5:this.N=this.N&~this.R|this.I<<16>>24&this.R;this.I=this.qa;break;case 6:this.L=this.L&~this.R|this.M<<16>>24& +this.R;this.M=this.qa;break;case 7:this.K=this.K&~this.R|this.H<<16>>24&this.R,this.H=this.qa}this.A-=-1===this.C?3:6};z[191]=function(){eh(this,2);this.ja.call(this,Tk);switch(this.ea>>3&7){case 0:this.D=this.D<<16>>16;break;case 1:this.I=this.I<<16>>16;break;case 2:this.M=this.M<<16>>16;break;case 3:this.H=this.H<<16>>16;break;case 4:this.Dc=this.Dc<<16>>16;break;case 5:this.N=this.N<<16>>16;break;case 6:this.L=this.L<<16>>16;break;case 7:this.K=this.K<<16>>16}this.A-=-1===this.C?3:6}; +var nh=[function(){this.A-=2+(-1===this.C?0:1);return this.sb.V},function(){this.A-=2+(-1===this.C?0:1);return this.ga.V},function(a){this.O|=2;this.sb.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.O|=2;-1!==this.ga.load(a)&&(this.nb(this.ga.Ub+4,this.ga.xb|=512),this.ga.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.O|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.ob.load(a)&&2048!=(this.ob.xb&2560)&&(this.ob.xc>=this.Na&&this.ob.xc>=(a&3)||7168==(this.ob.xb&7168)))return Th(this), +a;Rh(this);return a},function(a){this.O|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.ob.load(a)&&512==(this.ob.xb&2560)&&this.ob.xc>=this.Na&&this.ob.xc>=(a&3))return Th(this),a;Rh(this);return a},sk,sk],Hf=[Zf,Zf,Zf,Zf,Zf,Zf,sk,sk],Mm=[function(a){if(-1===this.C)F.call(this,6);else{a=this.Oc-this.Bb;var b=this.Bb;80286==this.model?b|=-16777216:80386<=this.model&&2!=this.X&&(a|=b<<16);this.mb(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)F.call(this,6);else{a=this.hd-this.Fb;var b=this.Fb; +80286==this.model?b|=-16777216:80386<=this.model&&2!=this.X&&(a|=b<<16);this.mb(this.C+2,b);this.A-=12}return a},function(a){-1===this.C||this.P&131072?F.call(this,6):(this.Bb=this.ha(this.C+2)&(this.R|this.R<<8),a&=65535,this.Oc=this.Bb+a,this.O|=2,this.A-=11);return a},function(a){-1===this.C||this.P&131072?F.call(this,6):(this.Fb=this.ha(this.C+2)&(this.R|this.R<<8),a&=65535,this.hd=this.Fb+a,this.O|=2,this.A-=12);return a},function(){this.A-=2+(-1===this.C?0:1);return this.ma&this.R},sk,function(a){this.P& 131072?F.call(this,6):(Uh(this,a),this.A-=-1===this.C?3:6,this.O|=2);return a},sk],Nm=[sk,sk,sk,sk,gk,jk,ik,hk]; -function Om(a){dc.call(this,"ChipSet",a,268435456);var b=a.model;b&&!Pm[b]&&xb(274877906944,"Unrecognized ChipSet model: %s\n",b);this.model=Pm[b]||Qm;this.B=[];b=Rm(a[Sm]);this.B[0]=[b,b];null==b&&(this.N=[360,360],b=a.floppies,"string"==typeof b&&(b=JSON.parse(b)),b&&b.length&&(this.N=b),Tm(this,Um,this.N.length),Tm(this,Vm,a.monitor||(this.model=Ki&&(this.xa=this.aa=2);this.O=a.scaleTimers||!1;this.Sa=a.dateRTC;this.Ba= +function Om(a){dc.call(this,"ChipSet",a,268435456);var b=a.model;b&&!Pm[b]&&xb(274877906944,"Unrecognized ChipSet model: %s\n",b);this.model=Pm[b]||Qm;this.B=[];b=Rm(a[Sm]);this.B[0]=[b,b];null==b&&(this.N=[360,360],b=a.floppies,"string"==typeof b&&(b=JSON.parse(b)),b&&b.length&&(this.N=b),Tm(this,Um,this.N.length),Tm(this,Vm,a.monitor||(this.model=Ki&&(this.xa=this.aa=2);this.O=a.scaleTimers||!1;this.Ta=a.dateRTC;this.Ba= 0;if(a=a.sound)if(this.Ba="number"!=typeof a||0>a||1e||1=Ki&&qn(d,1048576,function(){for(var g="",h=0;h=Ki){this.D=Hn;this.L=0;this.K=In;this.ma=0;this.M=Jn|Kn;512<=Ln(this)&&(this.M|=Mn);+qg(this,Vm)==Nn&&(this.M|=On);(this.model|0)== -nn&&(this.M=this.M|Pn|Qn);this.oa=Rn|Sn;this.Y=Array(8);this.P=0;a&&(this.A=Array(sn));Tn(this,this.Sa);for(a=Un;a<=Vn;a++)this.A[a]=0;for(a=Wn;ae||1=Ki&&qn(d,1048576,function(){for(var g="",h=0;h=Ki){this.D=Hn;this.L=0;this.K=In;this.ma=0;this.M=Jn|Kn;512<=Ln(this)&&(this.M|=Mn);+qg(this,Vm)==Nn&&(this.M|=On);(this.model|0)== +nn&&(this.M=this.M|Pn|Qn);this.oa=Rn|Sn;this.Y=Array(8);this.P=0;a&&(this.A=Array(sn));Tn(this,this.Ta);for(a=Un;a<=Vn;a++)this.A[a]=0;for(a=Wn;ac?c=c?c:12:c=(c-=12)?c+128:140,d=!0);a.A[tf]&Wo||(d&&128>8} -m.save=function(){var a=new ph(this);a.set(0,[this.B]);for(var b=[],c=0;c=Ki&&(a.set(5,[this.D,this.L,this.K,this.ma,this.M,this.oa]),a.set(6,[this.Y[7],this.Y,this.P,this.A,this.ja,this.ba]));return a.data()}; -m.restore=function(a){var b;var c=a[0];Array.isArray(c[0])?this.B=c[0]:(this.B[0][0]=c[0],this.B[1][0]=c[1]&15,this.B[0][1]=c[2],this.B[1][1]=c[3]&15);yn(this);c=a[1];for(b=0;b=f;f++){var g="pcjs-bitCell";f||(g+=" pcjs-bitCellLeft");d+='
'+f+"
\n"}e.innerHTML=d;gp(a,b,c,!0)}function hp(a,b,c){if(b=(a=ip[a.model|0])&&a[b])for(var d in b)if(a=b[d],a.Fc&1<c[0]||c[0]>+f)c[0]=+f;if(0>c[1]||c[1]<+f)c[1]=+f}}return c} +m.restore=function(a){var b;var c=a[0];Array.isArray(c[0])?this.B=c[0]:(this.B[0][0]=c[0],this.B[1][0]=c[1]&15,this.B[0][1]=c[2],this.B[1][1]=c[3]&15);yn(this);c=a[1];for(b=0;b=f;f++){var g="pcjs-bitCell";f||(g+=" pcjs-bitCellLeft");d+='
'+f+"
\n"}e.innerHTML=d;gp(a,b,c,!0)}function hp(a,b,c){if(b=(a=ip[a.model|0])&&a[b])for(var d in b)if(a=b[d],a.Gc&1<c[0]||c[0]>+f)c[0]=+f;if(0>c[1]||c[1]<+f)c[1]=+f}}return c} function co(a,b){if(b<+qg(a,Um)){if(!a.N)return kp;if(bg.jb[0]&&(g.jb[0]=255,g.jb[1]--,0>g.jb[1]&&(g.jb[1]=255)));return h}function xp(a,b,c,d,e,f){var g=a.F[b];x(a,16416)&&y(a,d,e,f,"DMA"+b+".CHANNEL"+c+".COUNT["+g.Lb+"]",void 0,!0);a=g.lc[c];a.jb[g.Lb]=a.vc[g.Lb]=e;g.Lb^=1} -function yp(a,b,c,d){var e=a.F[b],f=e.Mb|zp;e.Mb&=~Ap;x(a,16416)&&y(a,c,void 0,d,"DMA"+b+".STATUS",f,!0);return f}function Bp(a,b,c,d,e){x(a,16416)&&y(a,c,d,e,"DMA"+b+".CMD",void 0,!0);a.F[b].gj=d}function Cp(a,b,c,d,e){var f=a.F[b];x(a,16416)&&y(a,c,d,e,"DMA"+b+".REQ",void 0,!0);a=d&3;f.Mb=f.Mb&~(16<>2].lc[b&3],c,d,e)}function Gp(a,b,c){b=a.F[b>>2].lc[b&3];b.component&&b.Bg&&b.Yf?(c&&(b.done=c),b.Me||Sp(a,b,!0)):c&&c(!0)} -function Sp(a,b,c){c&&(b.count=b.jb[1]<<8|b.jb[0],b.type=b.mode&Tp,b.zg=b.Lf=!1);for(var d=!1;0<=b.count&&(c=void 0,c=b.Hf<<16|b.sb[1]<<8|b.sb[0],b.type==Up?(d=!0,function(e){b.Bg.call(b.component,b.Yf,-1,function(f,g){0>f&&(b.zg||(b.zg=!0),f=255);b.Me||b.Lf||a.la.ub(e,f);(d=g)&&setTimeout(function(){Vp(b)||Sp(a,b)},0)})}(c)):b.type==Wp?(c=a.la.ya(c),0>b.Bg.call(b.component,b.Yf,c)&&(b.Lf=!0)):b.type==Xp?function(){b.Bg.call(b.component,b.Yf,-1,function(e){0>e&&!b.zg&&(b.zg=!0)})}(c):b.Lf=!0),!d&& -!Vp(b););}function Vp(a){if(!a.Lf&&0<=--a.count&&(a.mode&Yp?(a.sb[0]--,0>a.sb[0]&&(a.sb[0]=255,a.sb[1]--,0>a.sb[1]&&(a.sb[1]=255))):(a.sb[0]++,255>3],e=1<<(b&7);d.ic&e||(d.ic|=e,a.J(vq(b),"set IRQ %d\n",b),d.tf=c||0,mq(a))}function Li(a,b){var c=a.hc[b>>3],d=1<<(b&7);c.ic&d&&(c.ic&=~d,a.J(vq(b),"clear IRQ %d\n",b),mq(a))}function mq(a,b){var c=-1;if(1>=1),hf(a.G,e))),b==Bq&&c==Fq&&$o(a))}function Gq(a,b,c,d){y(a,c,void 0,d,"PIT"+b+".CTRL",void 0,524288);return b?a.qa:a.pa} -function Hq(a,b,c,d,e){y(a,c,d,e,"PIT"+b+".CTRL",void 0,524288);e=0;c=d&Iq;b?(e=3,a.qa=d):a.pa=d;if(c==Jq){if(!(d&Kq))for(c=0;2>=c;c++)if(d&Lq<=c;c++)d&Lq<>=Qq;f=d&Rq;var g=d&Sq;d&=Tq;if(d==Uq)Pq(a,e+c);else{e+=c;var h=a.Qa[e];h.dg=d;h.mode=g;h.th=f;h.vc=[0,0];h.jb=[0,0];h.Ie=[0,0];h.Bd=!1;h.jf=!1;h.Ke=!1;h.mf=!1;xq(a,e);b==Bq&&c==Cq&&Li(a,Dq);b==Bq&&c==Fq&& -255==a.hc[0].Md&&a.H==(Vq|Wq|Xq|Yq)&&(b=a.Qa[0],b.Zc[0]=b.vc[0],b.Zc[1]=b.vc[1],b.Dd=df(a.G,a.O))}}}function Eq(a,b){a=a.Qa[b];(b=a.vc[1]<<8|a.vc[0])||(b=1==a.pd?256:65536);return b}function rf(a,b){a=a.Qa[b];(b=a.Zc[1]<<8|a.Zc[0])||(b=1==a.pd?256:65536);return b}function Pq(a,b){rn(a,b);var c=a.Qa[b];c.Ie[0]=c.jb[0];c.Ie[1]=c.jb[1];c.jf=!0;xq(a,b)}function xq(a,b){a=a.Qa[b];a.Rd=a.dg==Zq?1:0;a.pd=a.dg==$q?2:1} -function rn(a,b,c){var d=a.Qa[b];if(d.Ke&&(b!=Fq||a.H&Vq)){var e=df(a.G,a.O),f=(e-d.Dd)/a.Aa|0;0>f&&(d.Dd=e,f=0);var g=Eq(a,b),h=rf(a,b)-f;d.mode==zq?(0>=h&&(h=0),h||(d.Bd=!0,d.Ke=!1,b||Ni(a,Dq))):d.mode==ar?(d.Bd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.Zc[0]=h&255,d.Zc[1]=h>>8&255,d.Dd=e,!b&&d.Bd&&Ni(a,Dq))):d.mode==sf&&(h-=f,0>=h&&(d.Bd=!d.Bd,h=g+h,0>=h&&(h=g),d.Zc[0]=h&255,d.Zc[1]=h>>8&255,d.Dd=e,!b&&d.Bd&&Ni(a,Dq)));d.jb[0]=h&255;d.jb[1]=h>>8&255;c&&(a.Dd=0)}return d} -function qf(a,b){for(var c=0;c=Ki){b=a.G.oe;c=df(a.G,a.O);null==a.za&&(a.ja=df(a.G,a.O),a.Oa=1024,a.za=Math.floor(a.G.oe/a.Oa),Yo(a));c>=a.ba&&(a.A[Uo]|=br,a.A[tf]&uf&&(a.A[Uo]|=cr,Ni(a,dr)),a.ba=c+a.za);a.A[fo]==a.A[go]&&a.A[ho]==a.A[io]&&a.A[jo]==a.A[ko]&&(a.A[Uo]|=er,a.A[tf]&fr&&(a.A[Uo]|=cr,Ni(a,dr)));var d=c-a.ja,e=Math.floor(d/b);if(e&&!(a.A[tf]&gr)){for(;e--;)if(60<=++a.A[fo]&&(a.A[fo]=0,60<=++a.A[ho]&&(a.A[ho]=0,24<=++a.A[jo]))){a.A[jo]=0;a.A[lo]=a.A[lo]% +function tp(a,b,c,d,e){var f=a.F[b],g=f.mc[c],h=g.tb[f.Mb];x(a,16416)&&y(a,d,void 0,e,"DMA"+b+".CHANNEL"+c+".ADDR["+f.Mb+"]",h,!0);f.Mb^=1;b||c!=up||f.Mb||(g.tb[0]++,255g.kb[0]&&(g.kb[0]=255,g.kb[1]--,0>g.kb[1]&&(g.kb[1]=255)));return h}function xp(a,b,c,d,e,f){var g=a.F[b];x(a,16416)&&y(a,d,e,f,"DMA"+b+".CHANNEL"+c+".COUNT["+g.Mb+"]",void 0,!0);a=g.mc[c];a.kb[g.Mb]=a.wc[g.Mb]=e;g.Mb^=1} +function yp(a,b,c,d){var e=a.F[b],f=e.Nb|zp;e.Nb&=~Ap;x(a,16416)&&y(a,c,void 0,d,"DMA"+b+".STATUS",f,!0);return f}function Bp(a,b,c,d,e){x(a,16416)&&y(a,c,d,e,"DMA"+b+".CMD",void 0,!0);a.F[b].hj=d}function Cp(a,b,c,d,e){var f=a.F[b];x(a,16416)&&y(a,c,d,e,"DMA"+b+".REQ",void 0,!0);a=d&3;f.Nb=f.Nb&~(16<>2].mc[b&3],c,d,e)}function Gp(a,b,c){b=a.F[b>>2].mc[b&3];b.component&&b.Cg&&b.Zf?(c&&(b.done=c),b.Ne||Sp(a,b,!0)):c&&c(!0)} +function Sp(a,b,c){c&&(b.count=b.kb[1]<<8|b.kb[0],b.type=b.mode&Tp,b.Ag=b.Mf=!1);for(var d=!1;0<=b.count&&(c=void 0,c=b.If<<16|b.tb[1]<<8|b.tb[0],b.type==Up?(d=!0,function(e){b.Cg.call(b.component,b.Zf,-1,function(f,g){0>f&&(b.Ag||(b.Ag=!0),f=255);b.Ne||b.Mf||a.la.vb(e,f);(d=g)&&setTimeout(function(){Vp(b)||Sp(a,b)},0)})}(c)):b.type==Wp?(c=a.la.ya(c),0>b.Cg.call(b.component,b.Zf,c)&&(b.Mf=!0)):b.type==Xp?function(){b.Cg.call(b.component,b.Zf,-1,function(e){0>e&&!b.Ag&&(b.Ag=!0)})}(c):b.Mf=!0),!d&& +!Vp(b););}function Vp(a){if(!a.Mf&&0<=--a.count&&(a.mode&Yp?(a.tb[0]--,0>a.tb[0]&&(a.tb[0]=255,a.tb[1]--,0>a.tb[1]&&(a.tb[1]=255))):(a.tb[0]++,255>3],e=1<<(b&7);d.jc&e||(d.jc|=e,a.J(vq(b),"set IRQ %d\n",b),d.uf=c||0,mq(a))}function Li(a,b){var c=a.ic[b>>3],d=1<<(b&7);c.jc&d&&(c.jc&=~d,a.J(vq(b),"clear IRQ %d\n",b),mq(a))}function mq(a,b){var c=-1;if(1>=1),hf(a.G,e))),b==Bq&&c==Fq&&$o(a))}function Gq(a,b,c,d){y(a,c,void 0,d,"PIT"+b+".CTRL",void 0,524288);return b?a.qa:a.pa} +function Hq(a,b,c,d,e){y(a,c,d,e,"PIT"+b+".CTRL",void 0,524288);e=0;c=d&Iq;b?(e=3,a.qa=d):a.pa=d;if(c==Jq){if(!(d&Kq))for(c=0;2>=c;c++)if(d&Lq<=c;c++)d&Lq<>=Qq;f=d&Rq;var g=d&Sq;d&=Tq;if(d==Uq)Pq(a,e+c);else{e+=c;var h=a.Ra[e];h.eg=d;h.mode=g;h.uh=f;h.wc=[0,0];h.kb=[0,0];h.Je=[0,0];h.Cd=!1;h.kf=!1;h.Le=!1;h.nf=!1;xq(a,e);b==Bq&&c==Cq&&Li(a,Dq);b==Bq&&c==Fq&& +255==a.ic[0].Nd&&a.H==(Vq|Wq|Xq|Yq)&&(b=a.Ra[0],b.$c[0]=b.wc[0],b.$c[1]=b.wc[1],b.Ed=df(a.G,a.O))}}}function Eq(a,b){a=a.Ra[b];(b=a.wc[1]<<8|a.wc[0])||(b=1==a.qd?256:65536);return b}function rf(a,b){a=a.Ra[b];(b=a.$c[1]<<8|a.$c[0])||(b=1==a.qd?256:65536);return b}function Pq(a,b){rn(a,b);var c=a.Ra[b];c.Je[0]=c.kb[0];c.Je[1]=c.kb[1];c.kf=!0;xq(a,b)}function xq(a,b){a=a.Ra[b];a.Sd=a.eg==Zq?1:0;a.qd=a.eg==$q?2:1} +function rn(a,b,c){var d=a.Ra[b];if(d.Le&&(b!=Fq||a.H&Vq)){var e=df(a.G,a.O),f=(e-d.Ed)/a.Aa|0;0>f&&(d.Ed=e,f=0);var g=Eq(a,b),h=rf(a,b)-f;d.mode==zq?(0>=h&&(h=0),h||(d.Cd=!0,d.Le=!1,b||Ni(a,Dq))):d.mode==ar?(d.Cd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.$c[0]=h&255,d.$c[1]=h>>8&255,d.Ed=e,!b&&d.Cd&&Ni(a,Dq))):d.mode==sf&&(h-=f,0>=h&&(d.Cd=!d.Cd,h=g+h,0>=h&&(h=g),d.$c[0]=h&255,d.$c[1]=h>>8&255,d.Ed=e,!b&&d.Cd&&Ni(a,Dq)));d.kb[0]=h&255;d.kb[1]=h>>8&255;c&&(a.Ed=0)}return d} +function qf(a,b){for(var c=0;c=Ki){b=a.G.pe;c=df(a.G,a.O);null==a.za&&(a.ja=df(a.G,a.O),a.Oa=1024,a.za=Math.floor(a.G.pe/a.Oa),Yo(a));c>=a.ba&&(a.A[Uo]|=br,a.A[tf]&uf&&(a.A[Uo]|=cr,Ni(a,dr)),a.ba=c+a.za);a.A[fo]==a.A[go]&&a.A[ho]==a.A[io]&&a.A[jo]==a.A[ko]&&(a.A[Uo]|=er,a.A[tf]&fr&&(a.A[Uo]|=cr,Ni(a,dr)));var d=c-a.ja,e=Math.floor(d/b);if(e&&!(a.A[tf]&gr)){for(;e--;)if(60<=++a.A[fo]&&(a.A[fo]=0,60<=++a.A[ho]&&(a.A[ho]=0,24<=++a.A[jo]))){a.A[jo]=0;a.A[lo]=a.A[lo]% 7+1;var f=a.A[oo];var g=vb[a.A[no]-1];28==g&&0===f%4&&(f%100||0===f%400)&&g++;f=g;++a.A[mo]>f&&(a.A[mo]=1,12<++a.A[no]&&(a.A[no]=1,a.A[oo]=(a.A[oo]+1)%100))}a.A[qo]|=Xo;a.A[Uo]|=hr;a.A[tf]&ir&&(a.A[Uo]|=cr,Ni(a,dr))}a.ja=c-d%b}}m.Uo=function(a,b,c){y(this,a,b,c,"MFG_TEST")};m.Gj=function(a,b){var c=this.sa;if(this.ga&jr)if(this.H&kr)c=this.B[0][1];else return c=this.U,y(this,a,void 0,b,"PPI_A",c,8388608),c;y(this,a,void 0,b,"PPI_A",c);return c};m.kl=function(a,b,c){y(this,a,b,c,"PPI_A");this.sa=b}; m.Hj=function(a,b){var c=this.H;y(this,a,void 0,b,"PPI_B",c);return c};m.ll=function(a,b,c){y(this,a,b,c,"PPI_B");lr(this,b)};function lr(a,b){var c=b^a.H;c&Vq&&(b&Vq||rn(a,Fq));a.H=b;c&mr&&$o(a,b&mr);a.C&&nr(a.C,!(b&kr),!!(b&Yq))} -m.Ij=function(a,b){var c=0;(this.model|0)==$m?(c|=this.I&or,c|=pr|qr|rr,c|=this.U&1?sr:0,this.U>>>=1):c=(this.model|0)==wn?this.H&Wq?c|this.B[1][1]&tr:c|this.B[1][1]>>4&1:this.H&ur?c|this.B[0][1]>>4:c|this.B[0][1]&15;this.H&Vq&&rn(this,Fq).Bd&&(c=this.H&mr?c|vr:c|wr);y(this,a,void 0,b,"PPI_C",c,268435456);return c};m.ml=function(a,b,c){y(this,a,b,c,"PPI_C");this.Ca=b};m.Jj=function(a,b){var c=this.ga;y(this,a,void 0,b,"PPI_CTRL",c);return c};m.nl=function(a,b,c){y(this,a,b,c,"PPI_CTRL");this.ga=b}; +m.Ij=function(a,b){var c=0;(this.model|0)==$m?(c|=this.I&or,c|=pr|qr|rr,c|=this.U&1?sr:0,this.U>>>=1):c=(this.model|0)==wn?this.H&Wq?c|this.B[1][1]&tr:c|this.B[1][1]>>4&1:this.H&ur?c|this.B[0][1]>>4:c|this.B[0][1]&15;this.H&Vq&&rn(this,Fq).Cd&&(c=this.H&mr?c|vr:c|wr);y(this,a,void 0,b,"PPI_C",c,268435456);return c};m.ml=function(a,b,c){y(this,a,b,c,"PPI_C");this.Ca=b};m.Jj=function(a,b){var c=this.ga;y(this,a,void 0,b,"PPI_CTRL",c);return c};m.nl=function(a,b,c){y(this,a,b,c,"PPI_CTRL");this.ga=b}; m.cn=function(a,b){var c=this.U;y(this,a,void 0,b,"8041_KBD",c,8388608);this.fa&=~xr;return c};m.no=function(a,b,c){y(this,a,b,c,"8041_KBD")};m.bn=function(a,b){var c=this.H;y(this,a,void 0,b,"8041_CTRL",c);return c};m.mo=function(a,b,c){y(this,a,b,c,"8041_CTRL");lr(this,b)};m.dn=function(a,b){var c=this.fa;y(this,a,void 0,b,"8041_STATUS",c);return c};m.en=function(a,b){var c=this.ma;y(this,a,void 0,b,"8042_OUTBUFF",c,4194304);this.D&=~(xr|yr);this.C&&zr(this.C,c);return c}; m.po=function(a,b,c){y(this,a,b,c,"8042_INBUF.DATA",void 0,4194304);if(this.D&Ar)switch(this.L){case Br:Cr(this,b);break;case Dr:Er(this,b);break;default:if(Cr(this,this.K&~In),this.C){a=this.C;c=b;var d=-1;switch(a.L||c){case Fr:d=Gr;Hr(a);break;case Ir:a.L&&(c=0);Jr(a,Gr);a.L=c;break;case Kr:a.L&&(c=0),Jr(a,Gr),a.L=c}Lr(this,d)}}this.L=b;this.D&=~Ar};m.fn=function(a,b){var c=this.H&~(Mr|Nr)|(df(this.G)&64?Nr:0);y(this,a,void 0,b,"8042_RWREG",c,549760008192);return c}; m.qo=function(a,b,c){y(this,a,b,c,"8042_RWREG",void 0,4194304);lr(this,b)};m.gn=function(a,b){y(this,a,void 0,b,"8042_STATUS",this.D,4194304);a=this.D&255;this.D&yr&&(this.D|=xr,this.D&=~yr);this.D&xr||!this.C||zr(this.C);return a}; -m.oo=function(a,b,c){y(this,a,b,c,"8042_INBUFF.CMD",void 0,4194304);this.L=b;this.D|=Ar;a=0;this.L>=Or&&(a=this.L^15,this.L=Or);switch(this.L){case Pr:Lr(this,this.K);break;case Qr:Cr(this,this.K|In);break;case Rr:Cr(this,this.K&~In);this.C&&zr(this.C);break;case Sr:this.C&&(this.C.wd=[]);Cr(this,this.K|In);Lr(this,Tr);Er(this,Rn|Sn);break;case Ur:Lr(this,Vr);break;case Wr:Lr(this,this.M);break;case Xr:Lr(this,this.oa);break;case Yr:Lr(this,this.K&In?0:Zr);break;case Or:a&1&&kg(this.G)}}; +m.oo=function(a,b,c){y(this,a,b,c,"8042_INBUFF.CMD",void 0,4194304);this.L=b;this.D|=Ar;a=0;this.L>=Or&&(a=this.L^15,this.L=Or);switch(this.L){case Pr:Lr(this,this.K);break;case Qr:Cr(this,this.K|In);break;case Rr:Cr(this,this.K&~In);this.C&&zr(this.C);break;case Sr:this.C&&(this.C.xd=[]);Cr(this,this.K|In);Lr(this,Tr);Er(this,Rn|Sn);break;case Ur:Lr(this,Vr);break;case Wr:Lr(this,this.M);break;case Xr:Lr(this,this.oa);break;case Yr:Lr(this,this.K&In?0:Zr);break;case Or:a&1&&kg(this.G)}}; function Cr(a,b){a.K=b;a.D=a.D&~$r|b&as;a.C&&nr(a.C,!!(b&bs),!(b&In))}function Lr(a,b,c){0<=b&&(a.ma=b,c?a.D|=xr:(a.D&=~xr,a.D|=yr))}function Er(a,b){a.oa=b;Dd(a.la,!!(b&Sn));b&Rn||kg(a.G)}function cs(a,b){if(a.model==$m)return a.I&or?!1:(a.I|=or,(a.U=b)&&a.I&Oi&&Ci.call(a.G,2),!0);if(a.model>4)+(c&15),e=!0);if(d==jo||d==ko)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;d==tf&&a&uf&&b&uf&&Yo(this)};m.On=function(a,b){var c=this.I;y(this,a,void 0,b,"NMI",c);this.I&=~or;return c};m.zi=function(a,b,c){y(this,a,b,c,"NMI");this.I=b};m.Ko=function(a,b,c){y(this,a,b,c,"FPU.CLEAR")}; -m.Lo=function(a,b,c){y(this,a,b,c,"FPU.RESET");this.Ub&&this.Ub.Ce()};m.bo=function(a){if(x(this,1024)&&Jm(this.ca,26,a)){var b=this,c=this.G.D>>8,d=df(this.G);kh(this.G,a,function(e){var f=b.G.M&255,g=b.G.M>>8,h=b.G.M&255,k=b.G.M>>8;if(2==c||3==c)var l=" CH(hour)="+Xa(g)+" CL(min)="+Va(f)+" DH(sec)="+Va(k);else if(4==c||5==c)l=" CX(year)="+Xa(b.G.I)+" DH(month)="+Va(k)+" DL(day)="+Va(h);f=-d+(d=df(b.G));g=b.ca;g.J("INT %#04X: C=%d%s (cycles=%d%s)\n",26,Ch(g.G)?1:0,l||"",f,e?",level="+(e+1):"")})}return!0}; -function $o(a,b){void 0!==b?(b=!!b,b!=a.Fa&&(a.Fa=b)):b=!!(a.Fa&&a.G&&a.G.flags.eb);var c=Math.round(Xm/Eq(a,Fq));if(20>c||2E4>4)+(c&15),e=!0);if(d==jo||d==ko)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;d==tf&&a&uf&&b&uf&&Yo(this)};m.On=function(a,b){var c=this.I;y(this,a,void 0,b,"NMI",c);this.I&=~or;return c};m.Ai=function(a,b,c){y(this,a,b,c,"NMI");this.I=b};m.Ko=function(a,b,c){y(this,a,b,c,"FPU.CLEAR")}; +m.Lo=function(a,b,c){y(this,a,b,c,"FPU.RESET");this.Vb&&this.Vb.De()};m.bo=function(a){if(x(this,1024)&&Jm(this.ca,26,a)){var b=this,c=this.G.D>>8,d=df(this.G);kh(this.G,a,function(e){var f=b.G.M&255,g=b.G.M>>8,h=b.G.M&255,k=b.G.M>>8;if(2==c||3==c)var l=" CH(hour)="+Xa(g)+" CL(min)="+Va(f)+" DH(sec)="+Va(k);else if(4==c||5==c)l=" CX(year)="+Xa(b.G.I)+" DH(month)="+Va(k)+" DL(day)="+Va(h);f=-d+(d=df(b.G));g=b.ca;g.J("INT %#04X: C=%d%s (cycles=%d%s)\n",26,Ch(g.G)?1:0,l||"",f,e?",level="+(e+1):"")})}return!0}; +function $o(a,b){void 0!==b?(b=!!b,b!=a.Fa&&(a.Fa=b)):b=!!(a.Fa&&a.G&&a.G.flags.fb);var c=Math.round(Xm/Eq(a,Fq));if(20>c||2E4>>4,0,this.H,this.D,this.vd),delete this.vd);return!0};ps.prototype.dc=function(){return!0}; -function qs(a,b,c,d){if(d)a.J(0>d?137438953472:274877906944,"Unable to load system ROM (error %d: %s)\n",d,b);else{fc(a.Hc,b,c);if("["==c.charAt(0)||"{"==c.charAt(0))try{var e=eval("("+c+")"),f=e.width,g=e.values,h=!1!==e.littleEndian;if(!f||!g)if(f=0,g=e.bytes)f=8;else if(g=e.longs||e.data)f=32;if(f)if(8==f)a.A=g;else for(c=f>>>3,a.A=Array(g.length*c),f=d=0;d>>=8;else for(l=c-1;0<=l;l--)a.A[f+l]=k&255,k>>>=8;f+=c}else a.A=e;a.vd= +ps.prototype.yc=function(a,b,c,d){this.ua=a;this.la=b;this.G=c;this.ca=d;if(this.F){var e=this;wb(this.F,null,!0,function(f,g,h){qs(e,f,g,h)},function(){e.J(4398046511104,"Loading %s...\n",e.F)})}};ps.prototype.fc=function(){this.wd&&(this.ca&&rs(this.ca,this.id,0,this.H>>>4,0,this.H,this.D,this.wd),delete this.wd);return!0};ps.prototype.ec=function(){return!0}; +function qs(a,b,c,d){if(d)a.J(0>d?137438953472:274877906944,"Unable to load system ROM (error %d: %s)\n",d,b);else{fc(a.Ic,b,c);if("["==c.charAt(0)||"{"==c.charAt(0))try{var e=eval("("+c+")"),f=e.width,g=e.values,h=!1!==e.littleEndian;if(!f||!g)if(f=0,g=e.bytes)f=8;else if(g=e.longs||e.data)f=32;if(f)if(8==f)a.A=g;else for(c=f>>>3,a.A=Array(g.length*c),f=d=0;d>>=8;else for(l=c-1;0<=l;l--)a.A[f+l]=k&255,k>>>=8;f+=c}else a.A=e;a.wd= e.symbols;if(!a.A.length){hc("Empty ROM: "+b);return}if(1==a.A.length){hc(a.A[0]);return}}catch(p){a.J(274877906944,"ROM data error: %s\n",p.message);return}else for(b=c.replace(/\n/gm," ").replace(/ +$/,"").split(" "),a.A=Array(b.length),e=0;ethis.C&&(this.C*=1024);Bc(this)};m.ec=function(a,b){return!b&&(this.reset(),a&&this.controller&&!this.restore(a))?!1:!0};m.dc=function(a){return a&&this.controller?this.save():!0}; +m.Ab=function(a,b,c){if(void 0===this.ia[b])switch(b){case "listSizes":return this.ia[b]=c,!0}return!1};m.yc=function(a,b,c,d){this.la=b;this.G=c;this.ca=d;this.U=Yc(a,"ChipSet");this.F=We(a,"testRAM",this.F);this.C=+Xe(a,"sizeRAM")||0;1024>this.C&&(this.C*=1024);Bc(this)};m.fc=function(a,b){return!b&&(this.reset(),a&&this.controller&&!this.restore(a))?!1:!0};m.ec=function(a){return a&&this.controller?this.save():!0}; m.reset=function(){if(!this.B&&!this.H&&this.U){var a=this.C||-1;var b=this.ia.listSizes;b&&(0this.B?Un:23,c=a.A[b]|a.A[b+1]<<8,c+=this.A>>10,a.A[b]=c&255,a.A[b+1]=c>>8,eo(a)))):hc("No RAM allocated")};m.save=function(){var a=new ph(this);this.controller&&a.set(0,this.controller.save());return a.data()}; -m.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function xs(a){this.F=a;this.C=zs;this.D=As;this.G=Bs;this.B=null}pa(xs,zd);m=xs.prototype;m.save=function(){return[this.C,this.G]};m.restore=function(a){this.ub(0,a[0]&255);this.ub(2,a[1]&255);return!0};m.ya=function(a){var b=255;2>a?b=a&1?this.D>>8:this.D&255:4>a&&(b=a&1?this.G>>8:this.G&255);return b}; -m.ub=function(a,b){if(a)2==a&&(this.G=this.G&-256|b);else if(b!=(this.C&255)){a=this.F.la;if(b&Cs)this.B&&(Od(a,Ds,Es,this.B),this.B=null);else{this.B||(this.B=Pd(a,Ds,Es));var c=Pd(a,Fs,Es);Od(a,Ds,Es,c,b&Gs?1:be)}this.C=this.C&-256|b}};m.Cg=function(){return Hs};m.Eh=function(){return Is};var ys=-2134900736,Fs=16646144,Ds=917504,Es=131072,Cs=1,Gs=2,zs=65535,As=2575,Bs=2,Is=[null,0],Hs=[function(a){return this.controller.ya(a)},function(a,b){this.controller.ub(a,b)}]; +(a.selectedIndex=b);break}!this.D&&this.A&&Ed(this.la,this.B,this.A,1)&&(this.D=!0,"ramCPQ"==this.Eb&&(this.controller=new xs(this),Ed(this.la,ys,4,4,this.controller)));this.D?(this.B||this.F||he(this.la,1138,4660),"ramCPQ"!=this.Eb&&this.U&&(a=this.U,a.A&&(b=1048576>this.B?Un:23,c=a.A[b]|a.A[b+1]<<8,c+=this.A>>10,a.A[b]=c&255,a.A[b+1]=c>>8,eo(a)))):hc("No RAM allocated")};m.save=function(){var a=new ph(this);this.controller&&a.set(0,this.controller.save());return a.data()}; +m.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function xs(a){this.F=a;this.C=zs;this.D=As;this.G=Bs;this.B=null}pa(xs,zd);m=xs.prototype;m.save=function(){return[this.C,this.G]};m.restore=function(a){this.vb(0,a[0]&255);this.vb(2,a[1]&255);return!0};m.ya=function(a){var b=255;2>a?b=a&1?this.D>>8:this.D&255:4>a&&(b=a&1?this.G>>8:this.G&255);return b}; +m.vb=function(a,b){if(a)2==a&&(this.G=this.G&-256|b);else if(b!=(this.C&255)){a=this.F.la;if(b&Cs)this.B&&(Od(a,Ds,Es,this.B),this.B=null);else{this.B||(this.B=Pd(a,Ds,Es));var c=Pd(a,Fs,Es);Od(a,Ds,Es,c,b&Gs?1:be)}this.C=this.C&-256|b}};m.Dg=function(){return Hs};m.Fh=function(){return Is};var ys=-2134900736,Fs=16646144,Ds=917504,Es=131072,Cs=1,Gs=2,zs=65535,As=2575,Bs=2,Is=[null,0],Hs=[function(a){return this.controller.ya(a)},function(a,b){this.controller.vb(a,b)}]; Vb(function(){for(var a=oc("pcx86","ram"),b=0;bthis.O[b].length&&(this.O.splice(b,1),b--);this.P=a.autoType;this.fa=!1;this.Y=this.aa=null;this.K=Ms;this.exports={type:this.rf,wait:this.Bp};Bc(this)}pa(Js,dc);m=Js.prototype; -m.zb=function(a,b,c,d){var e=this,f=a+"-"+b;if(void 0===this.ia[f])switch(b){case "keys":case "keyboard":try{var g=document.getElementById(this.Hc+".soft-keyboard"+(this.N?"-mobile":""));if(!g){g=c.parentElement.parentElement.nextElementSibling;var h=g.className;this.N!=0<=h.indexOf("mobile")&&(g=g.nextElementSibling)}g&&(this.T=g,null!=this.H?Ns(this,this.H):this.H="none"!=getComputedStyle(g).display,c.onclick=function(){Ns(e,!e.H)},"ontouchstart"in window&&(g.ontouchstart=function(n){n.preventDefault()}))}catch(n){}return!0; +function Js(a){dc.call(this,"Keyboard",a,8388608);Ks(this,a.model);this.N=Lb("!iPad");this.J("mobile keyboard support: %b\n",this.N);this.qa=Kb("Windows");this.oa=0;this.H=a.softKeys;this.D=this.T=null;this.pa=this.Eh=!1;this.C=[];this.xa=50;this.ba=100;this.ma=this.I=0;this.O=Object.keys(Ls);for(var b=0;bthis.O[b].length&&(this.O.splice(b,1),b--);this.P=a.autoType;this.fa=!1;this.Y=this.aa=null;this.K=Ms;this.exports={type:this.sf,wait:this.Bp};Bc(this)}pa(Js,dc);m=Js.prototype; +m.Ab=function(a,b,c,d){var e=this,f=a+"-"+b;if(void 0===this.ia[f])switch(b){case "keys":case "keyboard":try{var g=document.getElementById(this.Ic+".soft-keyboard"+(this.N?"-mobile":""));if(!g){g=c.parentElement.parentElement.nextElementSibling;var h=g.className;this.N!=0<=h.indexOf("mobile")&&(g=g.nextElementSibling)}g&&(this.T=g,null!=this.H?Ns(this,this.H):this.H="none"!=getComputedStyle(g).display,c.onclick=function(){Ns(e,!e.H)},"ontouchstart"in window&&(g.ontouchstart=function(n){n.preventDefault()}))}catch(n){}return!0; case "screen":return"textarea"!=a||Kb("iPhone")||(this.D=c,this.D.addEventListener("copy",function(n){n.stopPropagation&&n.stopPropagation();n.preventDefault&&n.preventDefault();if((n=n.clipboardData||window.clipboardData)&&e.video){var q=e.video,t="",w=0;if(q.I)for(var J=0;JJ?l<<1:1;k=w.timeStamp;w.preventDefault();n.A="";Ss(n,t)}}(this,b,Ls[b]);b=function(n,q,t){return function(w){if(l){var J= -w.timeStamp-k;l=p&&250>J?l<<1:0;k=w.timeStamp;8>l?$s(n,t):l=0}}}(this,b,Ls[b]);"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b);return!0}if(d)return this.ia[f]=c,c.onclick=function(n){e.Tc(n);return e.rf(d)},!0}return!1};m.Tc=function(a){a.preventDefault();!this.H&&this.ua&&this.ua.Tc()}; -function at(a,b,c){if(a.oa&&a.H){for(var d in La)if(b==La[d]){b=+d;(d=Ka[d])&&(b=+d);break}b==bt?b=Us:b==ct?b=Vs:b==dt?b=et:b==ft?b=gt:b==ht?b=it:b==jt?b=kt:b==lt&&(b=mt);for(var e in Ls)if((d=Ls[e]==b)||(d=b,d>=u.a&&d<=u.z&&(d-=u.a-u.Ue),d=Ls[e]==d),d){(a=a.ia["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} -m.xc=function(a,b,c,d){this.ua=a;this.la=b;this.G=c;this.ca=d;var e=this;this.za=gd(this.G,this.id+".inject",function(){e.rf()});this.ja=gd(this.G,this.id+".transmit",function(){nt(e)});this.U=Yc(a,"ChipSet");this.P=Xe(a,"autoType")||this.P;(b=Xe(a,"softKeys"))&&Ns(this,"false"!=b);this.video=Yc(a,"Video");jh(c,33,this.co.bind(this))};m.start=function(){this.D&&(this.D.style.lineHeight="normal",this.D.focus(),this.D.select());ot(this,pt)}; -m.co=function(){var a=this.G.D>>8&255;this.fa=!1;10==a&&(this.fa=!0,this.Y?(this.Y(),this.Y=null):ot(this,Ms));return!0};function Hr(a){a.J(8388640,"keyboard reset\n");a.wd=[];Jr(a,qt)}function Ks(a,b){var c=0;a.model=null;"string"==typeof b&&(a.model=b.toUpperCase(),c=rt.indexOf(a.model),0>c&&(c=0));if(b=rt[c])a.sa=parseInt(b.substr(2),10)}function zr(a,b){var c=!1;b&&(b==Gr&&(c=!0),a.G&&mf(a.G,a.ja,25,!0));nt(a,c)} -function nr(a,b,c){a.ea!==c&&(a.ea=a.ga=c);a.W!==b&&(a.W=b)&&!a.ga&&nt(a,!0);a.W&&a.ga&&(Hr(a),a.ga=!1)}function Jr(a,b){a.U&&(a.wd.unshift(b),nt(a))}function nt(a,b){var c;if(c=a.U)b||(b=a.G,c=a.ja,b=!(0<=c&&c=a&&(b=a)}b&&(a=void 0===ut[b], -Ss(this,b,a),a&&vt(this,!0));this.A.length?mf(this.G,this.za,this.I):this.aa&&(this.aa(),this.aa=null);return!0};m.Bp=function(a,b){var c=!1;switch(b){case "DOS":this.fa?c=!0:this.Y=a;break;default:this.A.length?this.aa=a:c=!0}return c};m.zf=function(a,b){a.style.backgroundColor=b?"#00ff00":"#000000"}; -function Xs(a,b,c,d){var e=0;if(Qs[b]){var f=Math.floor(b/1E3)&2;if(b=Ys[b]||0){!f||b&wt||(b>>=1);if(b&xt){if(!1===d)return-1;d=null}null==d?d=!((c?a.F:a.B)&b):d||c||b&Zs&&(b=Zs);if(!c)a.B&=~b,d&&(a.B|=b);else if(!(a.F&Zs&&b&xt)){a.F&=~b;d&&(a.F|=b);c=b;var g,h;for(h in yt)e="led-"+h,f=yt[h],c&&c!=f||!(g=a.ia[e])||a.zf(g,!!(a.F&f))}e=d?1:-1}}return e} -function Ss(a,b,c){if((Qs[b]||Qs[b+=1E3])&&a.G&&a.G.flags.eb){Ys[b]&&a.C.length&&0d||(d==a.C.length&&(e={le:b},at(a,b,!0),d++),0b.ie&&(b.xg=!1),At(a,b.le,b.xg)&&b.ie){if(0>b.ie){if(!b.xg){$s(a,b.le);return}var d=a.xa}else d=1==b.ie++?500:100;b.Re&&clearTimeout(b.Re);b.Re=setTimeout(function(e){return function(){zt(e,b,d)}}(a),d)}}else $s(a,b.le,!0)}function Bt(a,b,c){var d=b;if(b>=u.Ue&&b<=u.mh)!(a.B&(Ct|Dt|Et))==c&&(d=b+(u.a-u.Ue));else if(b>=u.a&&b<=u.z)!!(a.B&(Ct|Dt|Et))==c&&(d=b-(u.a-u.Ue));else if(!!(a.B&(Ct|Dt))==c){if(a=La[b])d=a}else if(a=Ka[b])d=a;return d} -m.Xg=function(a){a||(this.B&=~Zs,vt(this))}; -function Os(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode;Kb("iOS")&&a.B&Ft&&13==g&&(g=u.Ui);if(229==g&&b.code){var h=b.code;g=0==h.indexOf("Key")?h.charCodeAt(3):0==h.indexOf("Digit")?h.charCodeAt(5):Ja[h]||0;a.J(25769803776,"onKeyActive(%d): remapped using event code '%s'\n",g,h)}if(!Ps(a.ua,b,c))return!1;c&&(a.ma++,a.A="",27!=g&&(a.K=tt));sc(a.Hc);h=Bt(a,g,!0);a.Dh&&h==u["`"]&&(g=h=27);if(Qs[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),Xs(a,h,!1,c)){if(20==g||144==g||145==g)a.qa||(c=e=!0);c||91!=g&&93!=g|| +(n=n.clipboardData||window.clipboardData)&&n.setData("text/plain",e.D.value)}),this.D.addEventListener("paste",function(n){n.stopPropagation&&n.stopPropagation();n.preventDefault&&n.preventDefault();if(n=n.clipboardData||window.clipboardData){n=n.getData("text/plain");var q=n.slice(-1);"$"==q&&(n=n.slice(0,-1),"$"==n.slice(-1)&&(q=""));"$"!=q&&(n=n.replace(/\$/g,"$$$$"));e.sf(n.replace(/\r\n/g,"\r"))}})),c.onkeydown=function(n){return Os(e,n,!0)},c.onkeypress=function(n){var q=n||window.event;n=q.which|| +q.keyCode;Ps(e.ua,q)?(e.ma++,e.A="",q=!Qs[n]||!!(e.B&Rs),e.J(25769803776,"onKeyPress(%d): %b\n",n,q),q||Ss(e,n,!0),n=q):n=!1;return n},c.onkeyup=function(n){return Os(e,n,!1)},!0;case "caps-lock":if("led"==a)return this.ia[f]=c,c.onclick=function(n){e.Uc(n);Ss(e,Ts,!0)},!0;case "num-lock":if("led"==a)return this.ia[f]=c,c.onclick=function(n){e.Uc(n);Ss(e,Us,!0)},!0;case "scroll-lock":if("led"==a)return this.ia[f]=c,c.onclick=function(n){e.Uc(n);Ss(e,Vs,!0)},!0;default:h=b.toUpperCase().replace(/-/g, +"_");if(void 0!==Ws[h]&&"button"==a)return this.ia[f]=c,c.onclick=function(n,q,t){return function(w){n.J(25769803776,"%s clicked\n",q);n.Uc(w);n.A="";Xs(n,t,!0);Ss(n,t,!0)}}(this,h,Ws[h]),!0;if(void 0!==Ls[b]){if((h=c.parentElement.parentElement.className)&&this.N!=0<=h.indexOf("mobile"))break;this.oa++;this.ia[f]=c;var k=0,l=0,p=Ys[Ls[b]]<=Zs;a=function(n,q,t){return function(w){var J=w.timeStamp-k;l=l&&250>J?l<<1:1;k=w.timeStamp;w.preventDefault();n.A="";Ss(n,t)}}(this,b,Ls[b]);b=function(n,q,t){return function(w){if(l){var J= +w.timeStamp-k;l=p&&250>J?l<<1:0;k=w.timeStamp;8>l?$s(n,t):l=0}}}(this,b,Ls[b]);"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b);return!0}if(d)return this.ia[f]=c,c.onclick=function(n){e.Uc(n);return e.sf(d)},!0}return!1};m.Uc=function(a){a.preventDefault();!this.H&&this.ua&&this.ua.Uc()}; +function at(a,b,c){if(a.oa&&a.H){for(var d in La)if(b==La[d]){b=+d;(d=Ka[d])&&(b=+d);break}b==bt?b=Us:b==ct?b=Vs:b==dt?b=et:b==ft?b=gt:b==ht?b=it:b==jt?b=kt:b==lt&&(b=mt);for(var e in Ls)if((d=Ls[e]==b)||(d=b,d>=u.a&&d<=u.z&&(d-=u.a-u.Ve),d=Ls[e]==d),d){(a=a.ia["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} +m.yc=function(a,b,c,d){this.ua=a;this.la=b;this.G=c;this.ca=d;var e=this;this.za=gd(this.G,this.id+".inject",function(){e.sf()});this.ja=gd(this.G,this.id+".transmit",function(){nt(e)});this.U=Yc(a,"ChipSet");this.P=Xe(a,"autoType")||this.P;(b=Xe(a,"softKeys"))&&Ns(this,"false"!=b);this.video=Yc(a,"Video");jh(c,33,this.co.bind(this))};m.start=function(){this.D&&(this.D.style.lineHeight="normal",this.D.focus(),this.D.select());ot(this,pt)}; +m.co=function(){var a=this.G.D>>8&255;this.fa=!1;10==a&&(this.fa=!0,this.Y?(this.Y(),this.Y=null):ot(this,Ms));return!0};function Hr(a){a.J(8388640,"keyboard reset\n");a.xd=[];Jr(a,qt)}function Ks(a,b){var c=0;a.model=null;"string"==typeof b&&(a.model=b.toUpperCase(),c=rt.indexOf(a.model),0>c&&(c=0));if(b=rt[c])a.sa=parseInt(b.substr(2),10)}function zr(a,b){var c=!1;b&&(b==Gr&&(c=!0),a.G&&mf(a.G,a.ja,25,!0));nt(a,c)} +function nr(a,b,c){a.ea!==c&&(a.ea=a.ga=c);a.W!==b&&(a.W=b)&&!a.ga&&nt(a,!0);a.W&&a.ga&&(Hr(a),a.ga=!1)}function Jr(a,b){a.U&&(a.xd.unshift(b),nt(a))}function nt(a,b){var c;if(c=a.U)b||(b=a.G,c=a.ja,b=!(0<=c&&c=a&&(b=a)}b&&(a=void 0===ut[b], +Ss(this,b,a),a&&vt(this,!0));this.A.length?mf(this.G,this.za,this.I):this.aa&&(this.aa(),this.aa=null);return!0};m.Bp=function(a,b){var c=!1;switch(b){case "DOS":this.fa?c=!0:this.Y=a;break;default:this.A.length?this.aa=a:c=!0}return c};m.Af=function(a,b){a.style.backgroundColor=b?"#00ff00":"#000000"}; +function Xs(a,b,c,d){var e=0;if(Qs[b]){var f=Math.floor(b/1E3)&2;if(b=Ys[b]||0){!f||b&wt||(b>>=1);if(b&xt){if(!1===d)return-1;d=null}null==d?d=!((c?a.F:a.B)&b):d||c||b&Zs&&(b=Zs);if(!c)a.B&=~b,d&&(a.B|=b);else if(!(a.F&Zs&&b&xt)){a.F&=~b;d&&(a.F|=b);c=b;var g,h;for(h in yt)e="led-"+h,f=yt[h],c&&c!=f||!(g=a.ia[e])||a.Af(g,!!(a.F&f))}e=d?1:-1}}return e} +function Ss(a,b,c){if((Qs[b]||Qs[b+=1E3])&&a.G&&a.G.flags.fb){Ys[b]&&a.C.length&&0d||(d==a.C.length&&(e={me:b},at(a,b,!0),d++),0b.je&&(b.yg=!1),At(a,b.me,b.yg)&&b.je){if(0>b.je){if(!b.yg){$s(a,b.me);return}var d=a.xa}else d=1==b.je++?500:100;b.Se&&clearTimeout(b.Se);b.Se=setTimeout(function(e){return function(){zt(e,b,d)}}(a),d)}}else $s(a,b.me,!0)}function Bt(a,b,c){var d=b;if(b>=u.Ve&&b<=u.nh)!(a.B&(Ct|Dt|Et))==c&&(d=b+(u.a-u.Ve));else if(b>=u.a&&b<=u.z)!!(a.B&(Ct|Dt|Et))==c&&(d=b-(u.a-u.Ve));else if(!!(a.B&(Ct|Dt))==c){if(a=La[b])d=a}else if(a=Ka[b])d=a;return d} +m.Yg=function(a){a||(this.B&=~Zs,vt(this))}; +function Os(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode;Kb("iOS")&&a.B&Ft&&13==g&&(g=u.Vi);if(229==g&&b.code){var h=b.code;g=0==h.indexOf("Key")?h.charCodeAt(3):0==h.indexOf("Digit")?h.charCodeAt(5):Ja[h]||0;a.J(25769803776,"onKeyActive(%d): remapped using event code '%s'\n",g,h)}if(!Ps(a.ua,b,c))return!1;c&&(a.ma++,a.A="",27!=g&&(a.K=tt));sc(a.Ic);h=Bt(a,g,!0);a.Eh&&h==u["`"]&&(g=h=27);if(Qs[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),Xs(a,h,!1,c)){if(20==g||144==g||145==g)a.qa||(c=e=!0);c||91!=g&&93!=g|| vt(a)}else 8==g&&(a.B&(Ft|Gt))==Ft&&(h=ct),8==g&&(a.B&(Ft|Gt))==(Ft|Gt)&&(h=dt),d=!1;else if((a.B&(Ft|Gt))==(Ft|Gt)&&(190==g&&(h=dt),187==g?h=ht:189==g&&(h=jt)),Qs[h]&&a.B&(Ht|It)&&(d=!1),d&&c||a.B&Jt)f=!0;d||b.preventDefault();a.J(25769803776,"onKeyActive(%d): %b%s\n",g,c,f?",ignore":d?"":",consume");f||a.N&&d||(c?Ss(a,h,e):$s(a,h)||(b=Bt(a,g,!1),b!=h&&$s(a,b)));return d} -function At(a,b,c){var d=!1;Xs(a,b,!0,c);var e=Qs[b]||Qs[b+1E3];if(void 0!==e){d=[];var f=e&255;if(83=u.Ue&&b<=u.mh||b>=u.a&&b<=u.z;e>>>=8;){var g=e&255;if(f==Lt||f==Mt)d.push(f|(c?0:Kt));else{var h=0;g==Nt?a.F&(Ct|Dt)||a.F&Et&&b||(h|=Ct):g==Ot?a.F&(Ft|Pt)||(h|=Ft):g==Qt?a.F&(Gt|Rt)||(h|=Gt):d.push(f|(c?0:Kt));h&&(c?a.M|=h:a.M&h?a.M&=~h:h=0);h&&(c?d.unshift(g):d.push(g|Kt))}}for(c=0;c=u.Ve&&b<=u.nh||b>=u.a&&b<=u.z;e>>>=8;){var g=e&255;if(f==Lt||f==Mt)d.push(f|(c?0:Kt));else{var h=0;g==Nt?a.F&(Ct|Dt)||a.F&Et&&b||(h|=Ct):g==Ot?a.F&(Ft|Pt)||(h|=Ft):g==Qt?a.F&(Gt|Rt)||(h|=Gt):d.push(f|(c?0:Kt));h&&(c?a.M|=h:a.M&h?a.M&=~h:h=0);h&&(c?d.unshift(g):d.push(g|Kt))}}for(c=0;c"]]=52| +O[1009]=15,O[u.q]=16,O[u.Q]=16|Nt<<8,O[u.w]=17,O[u.Km]=17|Nt<<8,O[u.e]=18,O[u.E]=18|Nt<<8,O[u.r]=19,O[u.Em]=19|Nt<<8,O[u.t]=20,O[u.Gm]=20|Nt<<8,O[u.y]=21,O[u.Mm]=21|Nt<<8,O[u.Cl]=22,O[u.Hm]=22|Nt<<8,O[u.xj]=23,O[u.nm]=23|Nt<<8,O[u.Xk]=24,O[u.Cm]=24|Nt<<8,O[u.p]=25,O[u.Dm]=25|Nt<<8,O[u["["]]=26,O[u["{"]]=26|Nt<<8,O[u["]"]]=27,O[u["}"]]=27|Nt<<8,O[13]=28,O[1017]=Ot,O[u.a]=30,O[u.Ve]=30|Nt<<8,O[u.yl]=31,O[u.Fm]=31|Nt<<8,O[u.d]=32,O[u.gm]=32|Nt<<8,O[u.f]=33,O[u.im]=33|Nt<<8,O[u.uj]=34,O[u.jm]=34|Nt<< +8,O[u.wj]=35,O[u.lm]=35|Nt<<8,O[u.Lj]=36,O[u.qm]=36|Nt<<8,O[u.k]=37,O[u.ym]=37|Nt<<8,O[u.Mj]=38,O[u.zm]=38|Nt<<8,O[u[";"]]=39,O[u[":"]]=39|Nt<<8,O[u["'"]]=40,O[u['"']]=40|Nt<<8,O[u["`"]]=41,O[u["~"]]=41|Nt<<8,O[1016]=Nt,O[u["\\"]]=43,O[u["|"]]=43|Nt<<8,O[u.z]=44,O[u.nh]=44|Nt<<8,O[u.x]=45,O[u.Lm]=45|Nt<<8,O[u.c]=46,O[u.Vi]=46|Nt<<8,O[u.Dl]=47,O[u.Im]=47|Nt<<8,O[u.b]=48,O[u.Ml]=48|Nt<<8,O[u.n]=49,O[u.Bm]=49|Nt<<8,O[u.Rj]=50,O[u.Am]=50|Nt<<8,O[u[","]]=51,O[u["<"]]=51|Nt<<8,O[u["."]]=52,O[u[">"]]=52| Nt<<8,O[u["/"]]=53,O[u["?"]]=53|Nt<<8,O[3016]=54,O[1044]=55,O[1018]=Qt,O[3018]=Qt,O[1032]=57,O[Ts]=58,O[1112]=59,O[1113]=60,O[1114]=61,O[1115]=62,O[1116]=63,O[1117]=64,O[1118]=65,O[1119]=66,O[1120]=67,O[1121]=68,O[Us]=69,O[Vs]=70,O[1036]=71,O[1103]=71,O[1038]=72,O[1104]=72,O[1033]=73,O[1105]=73,O[1037]=75,O[1100]=75,O[1101]=76,O[1039]=77,O[1102]=77,O[1035]=79,O[1097]=79,O[1040]=80,O[1098]=80,O[1034]=81,O[1099]=81,O[gt]=82,O[1096]=82,O[it]=78,O[kt]=74,O[et]=83,O[1110]=83,O[mt]=84,O[1122]=87,O[1123]= 88,O[1091]=91,O[1093]=93,O[1224]=91,O[Ut]=30|Ot<<8,O[Vt]=48|Ot<<8,O[Wt]=46|Ot<<8,O[Xt]=32|Ot<<8,O[Yt]=18|Ot<<8,O[Zt]=33|Ot<<8,O[$t]=34|Ot<<8,O[au]=35|Ot<<8,O[bu]=23|Ot<<8,O[cu]=36|Ot<<8,O[du]=37|Ot<<8,O[eu]=38|Ot<<8,O[fu]=50|Ot<<8,O[gu]=49|Ot<<8,O[hu]=24|Ot<<8,O[iu]=25|Ot<<8,O[ju]=16|Ot<<8,O[ku]=19|Ot<<8,O[lu]=31|Ot<<8,O[mu]=20|Ot<<8,O[nu]=22|Ot<<8,O[ou]=47|Ot<<8,O[pu]=17|Ot<<8,O[qu]=45|Ot<<8,O[ru]=21|Ot<<8,O[su]=44|Ot<<8,O[ct]=70|Ot<<8,O[dt]=83|Ot<<8|Qt<<16,O[ft]=82|Ot<<8|Qt<<16,O[ht]=78|Ot<<8|Qt<< 16,O[jt]=74|Ot<<8|Qt<<16,O[tu]=28|Ot<<8|Qt<<16,O[lt]=84|Ot<<8|Qt<<16,O[4009]=15|Nt<<8,O),Fr=255,Ir=243,Kr=237,qt=170,Gr=250,Tt=255,St=20,tt=0,pt=1,Ms=2;Vb(function(){for(var a=oc("pcx86","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(b>2,32768));this.Ic=c[0];this.dd=c[1];this.xf=c[2];this.da=c[3];this.Sb=c[4]&255;this.bh=c[4]>>8&255;this.Va=c[5];this.Lh=yu;this.og=Au;this.vf=this.Va[Bu]|this.Va[Cu]<<8;this.xl=0;this.ng=63;b>2),(d=b[15])&&(d&Lu?d&=~Lu:d=Tu[d&65280]|Tu[d&255]),this.fg(d),this.yi=b[16],this.pb=b[17],this.$c=b[18],this.Hb=b[19],this.Wf=b[20],this.je=b[21],this.Ae=b[22],this.Mh=b[23],this.Nh=b[24],this.vf=b[25],this.Da==vs&&(this.Gi=b[26],this.dh=b[27],this.cd=b[28],this.Dc=b[29],this.eh=b[30],this.Qe=b[31]),this.Ye=0);f=Uu[f]||Uu[Nn];this.Oh=a.G.oe/f.Sg|0;this.lo=this.Oh*f.$g/100|0;this.Tj=this.Oh*f.Rg|0;this.Uj=this.Tj/(f.ah/100)|0;this.Og=c[7]||0;this.Sj=0}}pa(wu,zd); -function Du(a,b,c){var d=a.Nd>>2;a.Kb=b;if(a.Kb&&a.Kb.length){if(d=c||d,a.Kb.length>16&65535;a.Kb=b}} -function Vu(a){var b=[];if(void 0!==a.Da){b[0]=a.Ic;b[1]=a.dd;b[2]=a.xf;b[3]=a.da;b[4]=a.Sb|a.bh<<8;b[5]=a.Va;if(a.Da=ts){var d=0,e=0,f=0;switch(b){case dv:d=ev;a.Da==vs&&(e=fv);break;case gv:a.Da==ts&&(d=hv);break;case iv:d=jv;a.Da==vs&&(e=kv);break;case lv:d=mv;a.Da==vs&&(e=nv);break;case ov:d=pv;a.Da==vs&&(f=qv);break;case rv:d=sv,a.Da==vs&&(f=tv)}d&&(c|=a.Va[uv]&d?256:0,c|=a.Va[uv]&e?512:0,c|=a.Va[vv]&f?512:0)}return c} +function wu(a,b,c,d){if(void 0!==b&&(!c||c.length)){this.video=a;var e=xu[b],f=a.ma||e[5];if(!c||6>c.length)c=[!1,0,null,null,0,Array(b>2,32768));this.Jc=c[0];this.ed=c[1];this.yf=c[2];this.da=c[3];this.Tb=c[4]&255;this.dh=c[4]>>8&255;this.Wa=c[5];this.Mh=yu;this.pg=Au;this.wf=this.Wa[Bu]|this.Wa[Cu]<<8;this.xl=0;this.og=63;b>2),(d=b[15])&&(d&Lu?d&=~Lu:d=Tu[d&65280]|Tu[d&255]),this.gg(d),this.zi=b[16],this.qb=b[17],this.ad=b[18],this.Ib=b[19],this.Xf=b[20],this.ke=b[21],this.Be=b[22],this.Nh=b[23],this.Oh=b[24],this.wf=b[25],this.Da==vs&&(this.Hi=b[26],this.eh=b[27],this.dd=b[28],this.Ec=b[29],this.fh=b[30],this.Re=b[31]),this.Ze=0);f=Uu[f]||Uu[Nn];this.Ph=a.G.pe/f.Tg|0;this.lo=this.Ph*f.ah/100|0;this.Tj=this.Ph*f.Sg|0;this.Uj=this.Tj/(f.bh/100)|0;this.Pg=c[7]||0;this.Sj=0}}pa(wu,zd); +function Du(a,b,c){var d=a.Od>>2;a.Lb=b;if(a.Lb&&a.Lb.length){if(d=c||d,a.Lb.length>16&65535;a.Lb=b}} +function Vu(a){var b=[];if(void 0!==a.Da){b[0]=a.Jc;b[1]=a.ed;b[2]=a.yf;b[3]=a.da;b[4]=a.Tb|a.dh<<8;b[5]=a.Wa;if(a.Da=ts){var d=0,e=0,f=0;switch(b){case dv:d=ev;a.Da==vs&&(e=fv);break;case gv:a.Da==ts&&(d=hv);break;case iv:d=jv;a.Da==vs&&(e=kv);break;case lv:d=mv;a.Da==vs&&(e=nv);break;case ov:d=pv;a.Da==vs&&(f=qv);break;case rv:d=sv,a.Da==vs&&(f=tv)}d&&(c|=a.Wa[uv]&d?256:0,c|=a.Wa[uv]&e?512:0,c|=a.Wa[vv]&f?512:0)}return c} var Cu=12,Bu=13,yu=18,dv=6,uv=7,ev=1,mv=2,jv=4,pv=8,sv=16,hv=32,fv=32,nv=64,kv=128,vv=9,qv=32,tv=64,gv=10,iv=16,lv=18,ov=21,rv=24,zu=25,wv={},xv=(wv[0]=255,wv[1]=255,wv[2]=255,wv[3]=15,wv[4]=127,wv[5]=31,wv[6]=127,wv[7]=127,wv[8]=3,wv[9]=31,wv[10]=127,wv[11]=31,wv[Cu]=63,wv[Bu]=255,wv[14]=63,wv[15]=255,wv[16]=63,wv[17]=255,wv),Au="HTOTAL HDISP HSPOS HSWIDTH VTOTAL VTOTADJ VDISP VSPOS ILMODE MAXSCAN CURSCAN CURSCANB STARTHI STARTLO CURSORHI CURSORLO PENHI PENLO".split(" "),Gu="HTOTAL HDEND HBSTART HBEND HRSTART HREND VTOTAL OVERFLOW PRESCAN MAXSCAN CURSCAN CURSCANB STARTHI STARTLO CURSORHI CURSORLO VRSTART VREND VDEND OFFSET UNDERLINE VBSTART VBEND MODECTRL LINECOMP".split(" "), Hu=20,Qu="ATC00 ATC01 ATC02 ATC03 ATC04 ATC05 ATC06 ATC07 ATC08 ATC09 ATC0A ATC0B ATC0C ATC0D ATC0E ATC0F ATCMODE OVERSCAN PLANES HPAN COLORSEL".split(" "),Iu=1,Mu=1,Ju=5,Ru=["RESET","CLKMODE","MAPMASK","CHARMAP","MEMMODE"],Nu=255,Ou=0,Pu=256,Ku=9,Su="SRESET ESRESET COLORCOMP DATAROT READMAP GRCMODE GRCMISC COLORDC BITMASK".split(" "),Eu=2048,av=4096,Zu=65280,Fu=8,cv=16,bv=255,Lu=-2147483648,Tu=[,,1024];Tu[3]=1024|av;Tu[16]=1280;Tu[512]=0;Tu[1024]=32;Tu[1536]=96;Tu[2560]=160;Tu[3584]=224; -Tu[768]=0|cv;Tu[4096]=1;Tu[8192]=2;Tu[24576]=98;Tu[40960]=162;Tu[57344]=226;var $u=[];$u[1024]=function(a){a+=this.C;return(this.controller.A=this.Z[a])>>this.controller.yi&255};$u[17408]=function(a){return(this.controller.A=this.Z[(a&-4)+this.C])>>((a&3)<<3)&255};$u[1024|av]=function(a){var b=(a+=this.C)&-2;b=this.controller.A=this.Z[b];return(a&1?b>>8:b)&255}; -$u[1280]=function(a){var b=this.controller;a=b.A=this.Z[a+this.C];var c=b.Nh;b=b.Mh&c;for(var d=0,e=128;e;)(a&c)==b&&(d|=e),b>>>=1,c>>>=1,e>>=1;return d};$u[Eu]=function(a){a+=this.C;return this.Z[a>>1]>>>((a&1)<<3)&255};$u[0]=function(a,b){var c=this.controller;a+=this.C;b=(b|b<<8|b<<16|b<<24)&c.je|c.Ae;b=b&c.Hb|c.A&~c.Hb;b=b&c.pb|this.Z[a]&~c.pb;var d=this.Z[a]^b;d&&(this.Z[a]=b,this.flags|=Kd,d&16711680&&(a=1<<(a>>13&7),c.Ye&a||(c.Ye|=a)))}; -$u[32]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.$c|b<<8-c.$c&255;b=(b|b<<8|b<<16|b<<24)&c.je|c.Ae;b=b&c.Hb|c.A&~c.Hb;b=b&c.pb|this.Z[a]&~c.pb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)};$u[96]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.$c|b<<8-c.$c&255;b=(b|b<<8|b<<16|b<<24)&c.je|c.Ae;b&=c.A;b=b&c.Hb|c.A&~c.Hb;b=b&c.pb|this.Z[a]&~c.pb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)}; -$u[160]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.$c|b<<8-c.$c&255;b=(b|b<<8|b<<16|b<<24)&c.je|c.Ae;b|=c.A;b=b&c.Hb|c.A&~c.Hb;b=b&c.pb|this.Z[a]&~c.pb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)};$u[224]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.$c|b<<8-c.$c&255;b=(b|b<<8|b<<16|b<<24)&c.je|c.Ae;b^=c.A;b=b&c.Hb|c.A&~c.Hb;b=b&c.pb|this.Z[a]&~c.pb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)}; -$u[4]=function(a,b){var c=this.controller,d=(a&-4)+this.C;a=(a&3)<<3;b=b<>c.$c|b<<8-c.$c&255;b=(b|b<<8|b<<16|b<<24)&c.Hb;b=c.Wf&b|c.A&~b;b=b&c.pb|this.Z[a]&~c.pb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)};$u[Fu]=function(a,b){a+=this.C;var c=a>>1;a=(a&1)<<3;b=this.Z[c]&~(255<=ts&&0<=l&&15>=l?l:void 0;this.qb=this.ga=this.Pb=this.I=0;this.Nd=+a.memory||0;this.ve=a.switches;this.Pc=a.randomize;null==this.Pc&&(this.Pc=1);this.ja=a.mode;if(null==this.ja||null==Av[this.ja])this.ja=k[1];this.Fd=a.charCols;this.Hd=a.charRows;if(void 0===this.Fd||void 0===this.Hd)this.Fd=Av[this.ja][0], -this.Hd=Av[this.ja][1];this.oa=a.screenWidth;this.qa=a.screenHeight;this.W=b;this.P=c;this.B=(this.Hg=d)||b||null;this.jd=a.screenColor||"black";this.td=this.Cc=!1;b&&(b.style.backgroundColor=this.jd,this.td=document.fullscreenEnabled||Kb("Edge/"));e&&(e.style.backgroundColor=this.jd);b=a.smoothing;(c=Mb("smoothing"))&&(b="true"==c);this.de=b;this.ue=Ob(this.P,"imageSmoothingEnabled");this.we=a.touchScreen;this.Ub=Bv;this.H=null;this.bf=a.autoLock;this.bb=this.Jb=0;this.xa=[];this.fd=[];this.ba=Array(this.Da== -vs?256:16);this.ab=!1;this.F=[];this.Rc=this.qe=0;this.ib=!1;this.re=this.Id=0;if(this.Y=e)if(h=Ob(e,"requestFullscreen")||Ob(e,"requestFullScreen")){this.Y.A=e[h];if(e=Ob(document,"on","fullscreenchange")){var p=Ob(document,"fullscreenElement")||Ob(document,"fullScreenElement");document.addEventListener(e,function(){Cv(g,null!=document[p])},!1)}(e=Ob(document,"on","fullscreenerror"))&&document.addEventListener(e,function(){Cv(g)},!1)}if(this.B&&(this.B.onfocus=function(){return g.Xg(!0)},this.B.onblur= -function(){return g.Xg(!1)},this.B.Le=(h=Ob(this.B,"requestPointerLock"))&&this.B[h],this.B.B=(h=Ob(this.B,"exitPointerLock"))&&this.B[h],this.B.Le&&(e=Ob(document,"on","pointerlockchange")))){var n=Ob(document,"pointerLockElement");document.addEventListener(e,function(){g.Xf(!(!n||document[n]!==g.B))},!1)}(this.Ia=a.fontROM)&&"json"!=Za(this.Ia)&&(this.Ia=Bb()+"/api/v1/dump?file="+this.Ia+"&format=bytes");this.Uc=[];if(f)for(a=0;a=c&&(this.Pc=c);if(this.Ab=Xe(a,"fontColor",this.te)){this.Ba=[255,255,255,255];var f=c=0,g;for("#"==this.Ab[c]&&c++;g=this.Ab.substr(c,2);)this.Ba[f++]=Number.parseInt(g,16),c+=2}this.se=(1-(Xe(a,"flicker",this.te)||0)).toString();c=(c=zv[this.model])&&c[0];c!==Dv&&(ie(b,this,Ev),le(b,this,Fv));c!==Gv&&(ie(b,this,Hv),le(b,this,Iv));this.Da>=ts&&(ie(b,this,Jv),le(b,this,Kv));this.Da==vs&&(ie(b,this,Lv),le(b, -this,Mv));d&&qn(d,536870912,function(k){var l=e.ca;if(e.cb)if(k[0])if(l=e.cb,l.Kb){var p,n=!1,q=8,t=8,w=-1,J=l.video.D>>3;for(p=0;p=H&&(t=H,n=!0);break;case "p":0<=H&&3>=H&&(w=H);break;case "w":H=l.bb&&(B-=l.bb);k="";for(p=0;pw?v(E,8):Sa(E>>(w<<3),8));n&&(B+=J-t);k+=D+"\n"}k&&l.ca.print(k);l.G=B}else l.ca.J("no buffer\n");else l.J(" MODE: %#04X\n",e.Aa),l.J(" BUFFER: %#010X\n",e.cb.bb),B=e.cb,Xu(B,"CRTC",B.Sb,B.Va,B.og),B.Da>=ts&&(Xu(B," GRC",B.Yd,B.Xd,B.qh),Xu(B," SEQ",B.Zd,B.Mc,B.rh),Xu(B," ATC",B.Wd,B.Lc,B.ph),Xu(B," ATCINDX",B.Wd),B.ca.J(" ATCDATA: %b\n",B.gf),Xu(B," FEAT",B.cg),Xu(B," MISC",B.yf),Xu(B," STATUS0",B.fh),B.Da==vs&&Xu(B," DAC",B.cd,B.Qe)),Xu(B," STATUS1",B.da),B.Da!=Gv&& -B.Da!=Dv||Xu(B," MODEREG",B.dd),B.Da==Dv&&Xu(B," COLOR",B.xf),B.Da>=ts&&(B.ca.J(" LATCHES: %0X\n",B.A),B.ca.J(" ACCESS: %04X\n",B.Of),B.ca.J(" PLANE2: %02X\n",B.Ye),B.ca.J("Use 'd video [addr]' to dump video memory\n"));else l.J("no active video card\n")});(this.C=Yc(a,"Keyboard"))&&this.B&&this.C.zb(this.Hg?"textarea":"canvas","screen",this.B);this.ea=Yc(a,"Panel",!1);for(b=0;bh&&(f=Math.round(h/g*100)+"%")}e.td?(e.W.style.width=f,e.W.style.height="auto",e.W.style.display="block",e.W.style.margin="auto"):(e.Y.style.width=f,e.Y.style.height="auto");e.Y.style.backgroundColor=e.jd;e.Y.A()}Sv(e)}}:c.parentNode.removeChild(c), -!0;case "lockPointer":return this.ff=c.textContent,this.B&&this.B.Le?c.onclick=function(){e.Le(!0)}:c.parentNode.removeChild(c),!0;case "refresh":return c.onclick=function(){Tv(e,!0)},!0;default:this.gd.push([a,b,c,d]),delete this.ia[b]}return!1};function Sv(a,b){a.B&&(a.B.focus(),b&&(document.getElementById(a.Hc)||a.B).scrollIntoView())}function Cv(a,b){!b&&a.Y&&(a.td?a.W.style.width=a.W.style.height="":a.Y.style.width=a.Y.style.height="");a.C&&(a.C.Dh=1==b)} -m.Le=function(a){var b=!1;this.B&&this.H&&(a?this.B.Le&&(this.B.Le(),this.H.Xf(!0),b=!0):this.B.B&&(this.B.B(),this.H.Xf(!1),b=!0),Sv(this));return b};m.Xf=function(a){this.H&&(this.H.Xf(a),this.C&&(this.C.Dh=a));var b=this.ia.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.ff)}; -function Nv(a,b){var c=a.B;if(c&&!a.Ub){a.Ub=b;var d=!1;if(b!=Ov)try{var e=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassive",null,e);window.removeEventListener("testPassive",null,e)}catch(f){}c.addEventListener("touchstart",function(f){is(a.U,f);a.Ub!=Qv&&Uv(a,f,!0)},d?{passive:!0}:!1);b!=Qv&&(c.addEventListener("touchmove",function(f){Uv(a,f)},d?{passive:!0}:!0),c.addEventListener("touchend",function(f){Uv(a,f,!1)},!1),a.Vb=a.$b=a.ne=-1,a.ud=!1,a.Nc= -null,a.sd=!1,a.ef=function(){a.sd=!0;a.H.Qd(Vv,!0)})}}m.Xg=function(a){this.C&&this.C.Xg(a)}; -function Uv(a,b,c){var d=0,e=0;var f=a.W;do isNaN(f.offsetLeft)||(d+=f.offsetLeft,e+=f.offsetTop);while(f=f.offsetParent);var g=a.oa/a.W.offsetWidth,h=a.qa/a.W.offsetHeight;if(b.targetTouches&&b.targetTouches.length){f=b.targetTouches[0].pageX;var k=b.targetTouches[0].pageY}else f=b.pageX,k=b.pageY;f=(f-d)*g;k=(k-e)*h;if(a.Ub==Pv)c&&Ss(a.C,Wv[k/(a.qa/3)|0][f/(a.oa/3)|0],!0);else if(a.H){e=a.ud;d=b.timeStamp-a.ne;!0===c?(a.ud=500d){a.H.Qd(Vv,!0);a.H.Qd(Vv,!1);return}}if(c||0>a.Vb||0>a.$b)a.Vb=f,a.$b=k;c=Math.round(f-a.Vb);b=Math.round(k-a.$b);a.Vb=f;a.$b=k;a.H.sf(c,b,a.Vb,a.$b)}} -m.ec=function(a,b){if(!b){if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;if(void 0==this.pf){this.Eb=this.Oc=1E3/Xv|0;this.pe=this.zc=0;var c=this;this.pf=gd(this.G,this.id,function(){var d=c.cb;d.Sj++;if(!(d.Da===vs&&d.Mc[1]&32&&d.Sj&1)){d.Og=df(c.G);c.jc&&(d.Va[17]&32||c.U&&Ni(c.U,c.jc));d=Date.now();var e=d-c.pe-c.Eb;if(0<=e){if(Tv(c)){var f=Date.now()-d;1==c.nc%120?(c.nc=1,c.zc=f):(c.zc+=f,f=c.zc/c.nc);f>=c.Eb/4?c.Eb=2*c.Oc:f=c.Eb?0:e)}d=c.cb; -e=d.Va[Bu];e|=(d.Va[Cu]&d.ng)<<8;d.vf!==e&&(d.vf=e,Yv(c,!1));e=d==c.A?d.Va[8]&31:0;d.xl!==e&&(d.xl=e,c.Id=0,c.Cb&&(c.ib=!0,c.Id=e&31))}},-this.cb.Uj)}}return!0};m.dc=function(a){return a?this.save():!0}; -m.reset=function(){var a=0;this.U&&(a=+qg(this.U,Vm));zv[this.model]||(this.Da=a==Nn?Gv:Dv);var b;this.ja=Zv;switch(this.Da){case vs:a=7;break;case ts:(b=$v[this.kc])&&(a=b[0]);if(!a){a=4;break}if(a!=Nn)break;case Gv:a=Nn;this.ja=aw;break;default:a=2}this.ma!==a&&(this.ma=a);this.cb=null;this.fa=this.hd=new wu(this,Gv);this.L=this.rc=new wu(this,Dv);this.Da>1&255;c=c>>8&~dw;c>>4==(c&15)&&(c^=15)}else d=c&255,c=(c&256?ew|fw:gw|hw)|iw&c>>8;he(this.la,b,d|c<<8)}Tv(this,!0)}};function bw(a){a.A.yf&Iu?(a.fa=a.hd,a.L=a.A):(a.fa=a.A,a.L=a.rc)}m.save=function(){var a=new ph(this);a.set(0,Vu(this.hd));a.set(1,Vu(this.rc));a.set(2,[this.ma,this.ja,this.Aa]);a.set(3,Vu(this.A));return a.data()}; -m.restore=function(a){var b=a[2];this.ma=b[0];this.ja=b[1];this.Aa=b[2];this.cb=null;this.fa=this.hd=new wu(this,Gv,a[0]);this.L=this.rc=new wu(this,Dv,a[1]);this.A=new wu(this,this.Da,a[3],this.Nd);this.A.Ic&&bw(this);if(!jw(this))return!1;kw(this);return!0}; -function Rv(a,b,c,d){if(d)a.J(0>d?137438953472:274877906944,"Unable to load font ROM (error %d: %s)\n",d,b);else{fc(a.Hc,b,c);try{var e=eval("("+c+")"),f=e.bytes||8==e.width&&e.values||e;if(!f||!f.length){hc("Unsupported font ROM: "+b);return}if(1==f.length){hc(f[0]);return}if(8192==f.length)us(a,f,[6144,0]);else if(2048==f.length)us(a,f,[0]);else{a.J(274877906944,"Unrecognized font data length (%d)\n",f.length);return}}catch(g){a.J(274877906944,"Font ROM data error: %s\n",g.message);return}Bc(a)}} -function us(a,b,c,d){a.Xe=b;a.Ka=c;a.Ac=d} -function lw(a,b){if(1==b)return a.ba[0]=mw[gw],a.ba[1]=nw(a,ew),a.ba;if(2==b){var c=a.cb.xf;if(a.cb===a.A){var d=a.A.Lc[0];c=d&7;d&16&&(c|=8);3==(a.A.Lc[1]&15)&&(c|=32)}a.ba[0]=nw(a,c&15);c=c&32?ow:pw;for(d=0;de;e++){var f=d[e]||0;var g=f<<2&252;var h=f>>4&252;f=f>>10&252;a.ba[e]=[g,h,f,255]}else{var k=d&&null!= -d[255];b=null!=c.Lc[15]?c.Lc:qw;for(e=0;16>e;e++)f=b[e]&63,k?(f|=(c.Lc[20]&12)<<4,c.Lc[16]&128&&(f&=-49,f|=(c.Lc[20]&3)<<4),f=d[f],g=f<<2&252,h=f>>4&252,f=f>>10&252):(g=(f&4?170:0)|(f&32?85:0),h=(f&2?170:0)|(f&16?85:0),f=(f&1?170:0)|(f&8?85:0)),a.ba[e]=[g,h,f,255]}a.ab=!0}return a.ba} -function nw(a,b){var c=mw;if(!a.Ab)return c[b];var d=c.length>>1;b=b+1-d;if(!b)return a.Ba;c=[0,0,0,255];var e,f=255,g=0;for(e=0;3>e;e++)f>a.Ba[e]&&(f=a.Ba[e]),gb?g/(d-1):(256-g)/d;for(e=0;3>e;e++)c[e]=a.Ba[e]+d*b|0,0>c[e]&&(c[e]=0),255>2|((b&12)>>2|(b&32)>>3)<<8} -function sw(a,b){b=void 0===b?!1:b;var c=!1;a.ga=a.Pb=a.I;if(ua&&a.I){var d=a.Xe;if(a.I==Gv||a.ma==Nn){if(a.Ab){var e=tw.slice();var f=e[1]=e[2]=a.Ba;var g=f.slice(),h,k=0;for(h=0;3>h;h++)kh;h++)g[h]+=255-k;e[3]=e[4]=g}else e=tw;f=uw}else e=lw(a);switch(a.I){case Gv:null!=a.Ka[1]&&vw(a,a.I,a.Ac||9,14,a.Ka[1],a.Ac?0:2048,d,!1,e,f)&&(c=!0);break;case Dv:null!=a.Ka[0]&&vw(a,a.I,a.Ac||8,8,a.Ka[0],0,d,!1,e,f)&&(c=!0);break;case vs:case ts:g=a.Ac||8;h=14;k=a.Ka[1];a.Ka[2]&&(h= -16,k=a.Ka[2]);var l=0;var p=a.A.Mc[1]&1?8:9;var n=a.A.Va[9]&xv[9];if(n++){g=p;h=n;k=0;d=null;if(l=a.A.Ye)a.A.Ye=0;a.qb=rw(a);a.ga=a.I+(a.qb&255);a.Pb=a.I+(a.qb>>8)}if(null!=k)for(p=0,n=-1;16>p;p+=8){var q=a.qb>>p&255;if(q!=n){n=q;var t=(q<<1)-(4>q?0:7);d||(k=8192*t);if(vw(a,a.I+q,g,h,k,0,d,!!(l&1<>1)+t,H=J.A.Kb,B=J.fd[E]||Array(256),Y=8192*((q<<1)-(4>q?0:7)),xa=8192*((t<<1)-(4>t?0:7)),U=0;256>U;U++){B[U]= -0;for(var Ra=Y+U*w,Aa=xa+U*w,sb=0;sb>16&255)!==(H[Aa++]>>16&255)){B[U]=-1;break}}J.fd[E]=B}}}}b||(a.T=-1,a.Na=-1,a.O=0)}return c} -function vw(a,b,c,d,e,f,g,h,k,l){var p=!1,n=a.xa[b],q=16>k.length?k.length:16;n&&q==n.oh.length||(n={Vm:c,zh:d,Gc:0,mc:0,Ee:Array(q),oh:k.slice(0,q),lg:l,Cf:Array(q)});var t=c<<1,w=d<<1;l=!1;if(n.Gc!=t||n.mc!=w)n.Vm=c,n.zh=d,n.Gc=t,n.mc=w,l=!0;for(t=0;tU||!Y?U:8;else{for(D=0;256>D;D++){var Md=B+D*Aa;for(E=0;E>16&255);E++);if(ED;D++){var kb=B+D*Aa;for(E=0;E>16&255,wc=0;1>=wc;wc++)for(Wc=0;Wc>(8<=Wc&&192<=D&&223>=D?7: -Wc)?J:Md;ww(Ce,Nd,Gh,ab);ww(Ce,Nd+1,Gh,ab)}}Wa.putImageData(Ce,(D&15)*w.Gc,(D>>4)*w.mc)}w.Ee[H]=fb("#%02X%02X%02X",J[0],J[1],J[2]);w.oh[H]=J;w.Cf[H]=yb;w=!0}if(!w){n=null;break}p=!0}}if((p||n!=a.xa[b])&&a.Uc.length&&(c=a.Uc[b-a.I]))if(d=c.canvas,n)for(e=d.width/q|0,f=d.height,g=0;ge&&(k=e),c.drawImage(h,0,0,k,h.height,g*e,0,e,f);else c.fillStyle="black",c.fillRect(0,0,d.width,d.height);a.xa[b]=n;return p} -function xw(a,b,c){var d=[];b!=c&&(b>1)+c]);return d}function yw(a){0a.Na&&(a.Na=0):a.Na=-1} -function kw(a){if(a.I){for(var b=a.cb,c=10;15>=c;c++)if(null==b.Va[c])return;var d=b.Va[10];c=d&31;var e=b.Va[11]&xv[11],f=b.Va[9]&xv[9];c>f&&(d|=32);var g=0;a.Da!=ts?(ef&&(c=0,e=f),e++):c==e%16?e=c+1:ef&&(c=0,e=f+1);e-=c;if(d&32||0>=e)zw(a);else{d=b.Va[15]|(b.Va[14]&b.ng)<<8;d-=b.Va[Bu]|(b.Va[Cu]&b.ng)<<8;b=Math.trunc(d/a.N)*a.M+d%a.N;a.T!=b&&(a.T=b,a.O=-1);if(a.Fe!==c||a.Bc!==e||a.ld!==g)a.Fe=c,a.Bc=e,a.ld=g,a.Rc&&0<=a.T&&a.Ta.pa&&(a.Bc=a.pa);yw(a)}}}function zw(a){if(0<=a.T){if(void 0!==a.F&&a.T=ts){a.ce=!1;var d=b.Xd[5];if(null!=d){c=1024;var e=0,f=b.Xd[3]&31;switch(d&3){case 0:if(f){e=32;switch(f&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}b.$c=f&7}break;case 1:e=1;break;case 2:switch(f&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.Da==vs&&(e=3,b.$c=f&7)}d&8&&(c=1280);b=b.Mc[4];null!=b&&(b&4||(c|=av,e|=cv),d&64&&(b&8&&(c|=16384,e|=4),a.ce=!0));c|=e}}return c} -function Dw(a,b){var c=a.cb;c&&b!=c.Of&&(c.fg(b),a.la.fg(c.bb,c.Jb,c.Cg(),!0))} -function jw(a,b){var c=!1,d=a.Aa,e=a.cb;if(e)if(e.Da==Gv)d=aw;else if(e.Da>=ts){d=null;var f=e.Nd>>2,g=32768=(k&31)?Ew:a.ma==Nn?Fw:Zv;break;case 4:e.bb=655360;e.Jb=f;d=a.ma==Nn?Gw:Hw;break;case 8:e.bb=720896;e.Jb=g;d=aw;break;case 12:e.bb=753664,e.Jb=g,d=a.ma==Nn?Fw:Zv}f=80==(e.Xd[5]&80);if(e.bb!=a.bb||e.Jb!=a.Jb)c=!0;g=Yu(e,dv);var l=e.Va[23],p=e.Mc[1]&8;d!=Ew&&(h&1?655360==e.bb||f||l&1?e.Xd[5]&64?d=k&31?143>= -e.Va[lv]?e.Mc[4]&8?Iw:Jw:Kw:Lw:k&128||350>g?d=p?Mw:Nw:480<=g&&(d=a.ma==Nn?Ow:Pw):d=p?7-d:Qw:d-=p?2:0)}}else e.dd&8?(e.dd&2?(d=e.dd&16?Qw:Rw,e.dd&4||--d):(d=e.dd&1?Zv:yx,e.dd&4&&--d),a.Cc&&(a.W.style.opacity="1",a.Cc=!1)):!a.Cc&&1>+a.se&&(a.Cc=!0,a.W.style.opacity=a.se,e=a.G,e.flags.jg=!0,$e(e));else a.Aa=null,null==d&&(d=a.ja);if(!cw(a,d,b,c))return!1;Dw(a,Cw(a));return!0} -function cw(a,b,c,d){if((c=null!=b&&(b!=a.Aa||c))||d){a.nc=0;a.Aa=b;a.ab=!1;b=a.cb||(b==aw?a.fa:a.L);if(b!=a.cb||b.bb!=a.bb||b.Jb!=a.Jb){zw(a);if(a.bb){if(!Td(a.la,a.bb,a.Jb))return!1;a.cb&&(a.cb.Ic=!1)}a.cb=b;b.Ic=!0;a.bb=b.bb;a.Jb=b.Jb;if(!Ed(a.la,b.bb,b.Jb,3,b))return!1;if(b.Daa.I&&(a.I=a.Da);sw(a);if(f=a.xa[a.ga])if(d=f.Gc,e=f.mc,a.Da>=ts){var g=Yu(a.A,lv);g++&&(f=g/f.zh|0)&&(a.K=f);a.Cb=!0}a.Sa=a.oa/a.D|0;a.Ea=a.qa/a.K|0}a.M=a.N=a.D;a.rb=a.K;a.Cb&&(a.M++,a.rb++);a.Ed=a.M*a.rb|0;a.qe=a.Ed/a.Gd|0;a.vb=a.Ed/a.sa|0;a.rd=0;void 0!==b&&(a.vb=a.vb+b|0,a.rd=a.vb+b>>1);a.aa=a.M*d;a.Ca=a.rb*e;a.P&&(a.ue&&(a.P[a.ue]=null==a.de?!!a.I:a.de),a.nb[a.aa]&&a.nb[a.aa][a.Ca]?(a.Fa=a.nb[a.aa][a.Ca],a.za=a.oc[a.aa][a.Ca]):(a.Fa=a.P.createImageData(a.aa, -a.Ca),a.za=document.createElement("canvas"),a.za.width=a.aa,a.za.height=a.Ca,a.nb[a.aa]||(a.nb[a.aa]={}),a.nb[a.aa][a.Ca]=a.Fa,a.oc[a.aa]||(a.oc[a.aa]={}),a.oc[a.aa][a.Ca]=a.za),a.Oa=a.za.getContext("2d"),a.Jd=a.Kd=0,a.kd=a.oa,a.md=a.qa,b=a.oa-a.D*a.Sa,d=a.qa-a.K*a.Ea,0>1,a.kd-=b),0>1,a.md-=d),b||d)&&(a.P.fillStyle=a.W.style.backgroundColor,a.P.fillRect(0,0,a.oa,a.qa));Yv(a);c&&Tv(a)}return!0} -function ww(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Ax(a){a.O=-1;a.Rc=0;var b=a.qe;if(void 0===a.F||a.F.length!=b)a.F=Array(b)}function Yv(a,b,c,d){if(a.Rc)if(!1!==b)a.ab=!1;else{if(void 0!==c){if(c==d)return;b=a.F;var e=0,f=xw(a,c&255,d&255);c=xw(a,c>>8,d>>8);for(d=0;d(b[d]|=(g&2048?c:f)[g&255])&&(a.Rc=1,e++)}return}a.Rc=1;return}Ax(a)} -function Bw(a,b,c,d,e){var f=d&255;d>>=8;var g=a.xa[a.ga];d&8&&a.ga!=a.Pb&&(g=a.xa[a.Pb],d&=-9);var h=d&15,k=d>>4&15;if(g.lg){!(d&7)&&d&112&&(h|=7);var l=d&247;112==l||240==l?h=0:k=0;h=g.lg[h];k=g.lg[k]}e?(b*=g.Gc,c*=g.mc,e.fillStyle=g.Ee[k],e.fillRect(b,c,g.Gc,g.mc)):(b=b*a.Sa+a.Jd,c=c*a.Ea+a.Kd,a.P.fillStyle=g.Ee[k],a.P.fillRect(b,c,a.Sa,a.Ea));d&Bx&&(k=(f&15)*g.Gc,f=(f>>4)*g.mc,e?e.drawImage(g.Cf[h],k,f,g.Gc,g.mc,b,c,g.Gc,g.mc):a.P.drawImage(g.Cf[h],k,f,g.Gc,g.mc,b,c,a.Sa,a.Ea));d&Aw&&(a.ld&&Cx(a, -0,a.ld,b,c,h,g,e),Cx(a,a.Fe,a.Bc,b,c,h,g,e))}function Cx(a,b,c,d,e,f,g,h){h?(a.pa&&a.pa!==g.mc&&(b=Math.round(b*g.mc/a.pa),c=Math.round(c*g.mc/a.pa)),h.fillStyle=g.Ee[f],h.fillRect(d,e+b,g.Gc,c)):(a.pa&&a.pa!==a.Ea&&(b=Math.round(b*a.Ea/a.pa),c=Math.round(c*a.Ea/a.pa)),a.P.fillStyle=g.Ee[f],a.P.fillRect(d,e+b,a.Sa,c))} -function Tv(a,b){b=void 0===b?!1:b;if(!a.W||!a.flags.fc)return!1;var c=a.cb;if(!c)return!1;var d=!1;c!==a.A?c.dd&8&&(d=!0):c.Wd&32&&(d=!0);if(!d&&!b)return!1;if(b)Ax(a);else if(void 0===a.F)return!1;d=!1;!(b||++a.nc%10)&&0<=a.Na&&(a.Na++,d=!0);var e=a.Ed,f=a.bb,g=f,h=g+a.Jb;a.Aa>=Iw&&(f=g=655360,h=g+65536);var k=a.vb;a.N=a.D;if(a.Daa.K&&g+k>h&&(k=(a.N*(a.K-1)+a.M)/a.sa|0))}p=l=0;g+k>h?(p=k,g>=h?(l=f+(g-h),k=0):(l=f,k=h-g,p-=k)):a.Da>=ts&&(c=Yu(c,lv)-Yu(c,rv),0c&&(a.O=-1),h+=Dx(a,f,l,p,h,e,b,d),a.O+=n,Jd(a.la,l,p,!0));Jd(a.la,g,k,!0);h&&(a.Rc=2);return!0} -function Dx(a,b,c,d,e,f,g,h){var k=d*a.sa;k=Math.trunc(k/a.N)*a.M+k%a.N;k>f&&(k=f);var l=c+d;if(!g&&2==a.Rc&&Jd(a.la,c,d))if(!h&&0<=a.O){if(!a.ib)return k;e=f}else if(!a.O)if(d=a.T-e,0>d){if(!a.ib)return k;e=f}else c+=(d/a.M|0)*a.N+d%a.M<<1,e+=d,f=e+1;if(a.ga){if(d=f,f=a.xa[a.ga]){var p=a.cb,n=h=g=0,q=Bx<<8,t=1048575,w=p.Kb,J=1/a.sa|0,D=p.Of&Fu?1:0,E=p.dd&32;a.Da>=ts&&(E=p.Lc[16]&8);E&&(n=dw<<8,t&=~n,a.Na&2||(t&=~q));a.O=0;p=e%a.M;E=e/a.M|0;for(var H=a.N-a.M<>>D]&65535; -B|=q;B&n&&(a.O++,B&=t);e==a.T&&(B|=a.Na&1?Aw<<8:0);a.Rc&&B===a.F[e]||(Bw(a,p,E,B,a.Oa),a.F[e]=B,h++);g++;e++;c+=J;if(++p>=a.M){p=0;if(++E>=a.rb)break;c+=H}}a.Oa&&(h||a.ib)&&(b=l=0,c=a.aa,e=a.Ca,a.Cb&&(d=a.re,g=a.Id,l+=d<<1,b+=g<<1,c-=f.Gc,e-=f.mc),a.P.drawImage(a.za,l,b,c,e,a.Jd,a.Kd,a.kd,a.md));yw(a)}}else{if(a.rd){b=c;k=l-b>>1;f=0;c=a.Gd;e=b;d=16==c?65536:196608;g=16==c?1:2;h=lw(a,g);q=n=0;t=a.D;w=0;J=a.K;D=0;for(a.O=0;e>>12;p=H!=p.B?p.W[B].bg(H,E):p.W[B++].Be(H, -E)|p.W[B&p.O].Be(0,E+1)<<8;if(a.Rc&&p===a.F[f])n+=c;else{a.F[f]=p;p=p>>8|(p&255)<<8;E=d;H=16;n>=g))>>(H-=g);ww(a.Fa,n++,q,h[Y])}n>w&&(w=n);q=D&&(D=q+1)}e+=2;f++;if(n>=a.D){n=0;q+=2;if(q>a.K)break;q==a.K&&(q=1,e=b+a.rd)}}ta.D?a.N-a.D-D>>3:0; -for(a.O=0;c>>=8;g>q&&(q=g);h=w&&(w=h+1)}c+=J;if(g>=a.D){g=0;if(++h>=a.K)break;c+=p}}D&&(f=0);na.D?a.N-a.D-J>>3:0;for(a.O=0;kE&&(H=E)):(p<<=J,H-= -J,a.Rc=0):(a.Rc&&p===a.F[f]?(g+=H,H=0):a.F[f]=p,f++);if(H){gq&&(q=g);h=w&&(w=h+1)}if(g>=a.D){g=0;if(++h>=a.K)break;k+=D}}J&&(c=0);n>>=1);0>d&&(b.Og=a,d=0);d-=b.Uj-b.Tj;0>d?c|=9:d%b.Oh>b.lo&&(c|=1);return c} -m.Gg=function(a,b){return Gx(this,this.fa,a,b)};m.Zg=function(a,b,c){var d=this.fa;d.bh=d.Sb;d.Sb=b&31;y(this,a,b,c,"CRTC.INDX")};m.Fg=function(a,b){return Hx(this,this.fa,a,b)};m.Yg=function(a,b,c){Ix(this,this.fa,a,b,c)};m.Ln=function(a,b){return Jx(this,this.fa,b)};m.To=function(a,b,c){Kx(this,this.fa,b,c)};m.Mn=function(){return Lx(this,this.fa)};m.jl=function(a,b,c){this.A.cg=this.A.cg&-4|b&3;y(this,a,b,c,"FEAT")}; -m.hn=function(a,b){a=this.A.Wd;b&&!x(this)||y(this,960,void 0,b,"ATC.INDX",a,!0);return a};m.rm=function(a,b){a=this.A.Lc[this.A.Wd&31];b&&!x(this)||y(this,960,void 0,b,"ATC."+this.A.ph[this.A.Wd&31],a,!0);return a}; -m.$k=function(a,b,c){var d=this.A,e=d.Wd&32;if(d.gf){d.gf=!1;var f=d.Wd&31;if(16<=f||!e)e=d.Lc[f]!==b,!Mx&&!e||c&&!x(this)||y(this,a,b,c,"ATC."+d.ph[f],void 0,!0),e&&(d.Lc[f]=b,19==f?this.Cb&&(this.ib=!0,this.re=b&15):17!=f&&Yv(this,!0))}else d.Wd=b,y(this,a,b,c,"ATC.INDX"),d.gf=!0,b&32&&!e&&sw(this,!0)&&Tv(this,!0)}; -m.Tn=function(a,b){a=0;if(this.Da==ts)a=3-((this.A.yf&12)>>2),a=(this.kc&1<>this.A.Dc&63;b&&!x(this)||y(this,969,void 0,b,"DAC.DATA["+Va(this.A.cd)+"]["+Va(this.A.Dc)+"]",a,!0);this.A.Dc+=6;12g&&(f=b.Va[b.Sb^1]&xv[9],f>g))return}if((f=b.Va[b.Sb]!==d)||Mx)e&&!x(a)||y(a,c,d,e,"CRTC."+b.og[b.Sb]),b.Va[b.Sb]=d;b==a.A&&(17==b.Sb?a.jc&&(d&16||a.U&&Li(a.U,a.jc)):f&&b.Sb==rv&&Yv(a,!1));f&&((9==b.Sb&&8!=b.bh||b.Sb==lv&&223==d)&&jw(a,!0),kw(a))}}function Jx(a,b,c){var d=b.dd;y(a,b.port+4,void 0,c,"MODE",d);return d} -function Kx(a,b,c,d){y(a,b.port+4,c,d,"MODE");(b.dd^c)&32&&(b.video.Rc=0);b.dd=c;jw(a)}function Lx(a,b){var c=Fx(a,b);b===a.A?(c|=b.da&48^48,b.gf=!1):c|=240;return b.da=c}var Mx=!0,Gv=1,Dv=2,ts=4,vs=8,yx=1,Fw=2,Zv=3,Rw=5,Qw=6,aw=7,Mw=13,Nw=14,Gw=15,Hw=16,Ow=17,Pw=18,Iw=19,Jw=20,Kw=21,Lw=22,Ew=255,Xv=60,zv={mda:[Gv,aw],cga:[Dv,Zv],ega:[ts,Zv],vga:[vs,Zv]},Uu={2:{Sg:15700,Rg:200,$g:75,ah:96}};Uu[Nn]={Sg:18432,Rg:350,$g:75,ah:96};Uu[4]={Sg:21850,Rg:350,$g:75,ah:96};Uu[7]={Sg:31500,Rg:400,$g:85,ah:83}; +Tu[768]=0|cv;Tu[4096]=1;Tu[8192]=2;Tu[24576]=98;Tu[40960]=162;Tu[57344]=226;var $u=[];$u[1024]=function(a){a+=this.C;return(this.controller.A=this.Z[a])>>this.controller.zi&255};$u[17408]=function(a){return(this.controller.A=this.Z[(a&-4)+this.C])>>((a&3)<<3)&255};$u[1024|av]=function(a){var b=(a+=this.C)&-2;b=this.controller.A=this.Z[b];return(a&1?b>>8:b)&255}; +$u[1280]=function(a){var b=this.controller;a=b.A=this.Z[a+this.C];var c=b.Oh;b=b.Nh&c;for(var d=0,e=128;e;)(a&c)==b&&(d|=e),b>>>=1,c>>>=1,e>>=1;return d};$u[Eu]=function(a){a+=this.C;return this.Z[a>>1]>>>((a&1)<<3)&255};$u[0]=function(a,b){var c=this.controller;a+=this.C;b=(b|b<<8|b<<16|b<<24)&c.ke|c.Be;b=b&c.Ib|c.A&~c.Ib;b=b&c.qb|this.Z[a]&~c.qb;var d=this.Z[a]^b;d&&(this.Z[a]=b,this.flags|=Kd,d&16711680&&(a=1<<(a>>13&7),c.Ze&a||(c.Ze|=a)))}; +$u[32]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.ad|b<<8-c.ad&255;b=(b|b<<8|b<<16|b<<24)&c.ke|c.Be;b=b&c.Ib|c.A&~c.Ib;b=b&c.qb|this.Z[a]&~c.qb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)};$u[96]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.ad|b<<8-c.ad&255;b=(b|b<<8|b<<16|b<<24)&c.ke|c.Be;b&=c.A;b=b&c.Ib|c.A&~c.Ib;b=b&c.qb|this.Z[a]&~c.qb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)}; +$u[160]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.ad|b<<8-c.ad&255;b=(b|b<<8|b<<16|b<<24)&c.ke|c.Be;b|=c.A;b=b&c.Ib|c.A&~c.Ib;b=b&c.qb|this.Z[a]&~c.qb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)};$u[224]=function(a,b){var c=this.controller;a+=this.C;b=b>>c.ad|b<<8-c.ad&255;b=(b|b<<8|b<<16|b<<24)&c.ke|c.Be;b^=c.A;b=b&c.Ib|c.A&~c.Ib;b=b&c.qb|this.Z[a]&~c.qb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)}; +$u[4]=function(a,b){var c=this.controller,d=(a&-4)+this.C;a=(a&3)<<3;b=b<>c.ad|b<<8-c.ad&255;b=(b|b<<8|b<<16|b<<24)&c.Ib;b=c.Xf&b|c.A&~b;b=b&c.qb|this.Z[a]&~c.qb;this.Z[a]!=b&&(this.Z[a]=b,this.flags|=Kd)};$u[Fu]=function(a,b){a+=this.C;var c=a>>1;a=(a&1)<<3;b=this.Z[c]&~(255<=ts&&0<=l&&15>=l?l:void 0;this.rb=this.ga=this.Qb=this.I=0;this.Od=+a.memory||0;this.we=a.switches;this.Qc=a.randomize;null==this.Qc&&(this.Qc=1);this.ja=a.mode;if(null==this.ja||null==Av[this.ja])this.ja=k[1];this.Gd=a.charCols;this.Id=a.charRows;if(void 0===this.Gd||void 0===this.Id)this.Gd=Av[this.ja][0], +this.Id=Av[this.ja][1];this.oa=a.screenWidth;this.qa=a.screenHeight;this.W=b;this.P=c;this.B=(this.Ig=d)||b||null;this.kd=a.screenColor||"black";this.ud=this.Dc=!1;b&&(b.style.backgroundColor=this.kd,this.ud=document.fullscreenEnabled||Kb("Edge/"));e&&(e.style.backgroundColor=this.kd);b=a.smoothing;(c=Mb("smoothing"))&&(b="true"==c);this.ee=b;this.ve=Ob(this.P,"imageSmoothingEnabled");this.xe=a.touchScreen;this.Vb=Bv;this.H=null;this.cf=a.autoLock;this.cb=this.Kb=0;this.xa=[];this.gd=[];this.ba=Array(this.Da== +vs?256:16);this.bb=!1;this.F=[];this.Sc=this.re=0;this.jb=!1;this.se=this.Jd=0;if(this.Y=e)if(h=Ob(e,"requestFullscreen")||Ob(e,"requestFullScreen")){this.Y.A=e[h];if(e=Ob(document,"on","fullscreenchange")){var p=Ob(document,"fullscreenElement")||Ob(document,"fullScreenElement");document.addEventListener(e,function(){Cv(g,null!=document[p])},!1)}(e=Ob(document,"on","fullscreenerror"))&&document.addEventListener(e,function(){Cv(g)},!1)}if(this.B&&(this.B.onfocus=function(){return g.Yg(!0)},this.B.onblur= +function(){return g.Yg(!1)},this.B.Me=(h=Ob(this.B,"requestPointerLock"))&&this.B[h],this.B.B=(h=Ob(this.B,"exitPointerLock"))&&this.B[h],this.B.Me&&(e=Ob(document,"on","pointerlockchange")))){var n=Ob(document,"pointerLockElement");document.addEventListener(e,function(){g.Yf(!(!n||document[n]!==g.B))},!1)}(this.Ia=a.fontROM)&&"json"!=Za(this.Ia)&&(this.Ia=Bb()+"/api/v1/dump?file="+this.Ia+"&format=bytes");this.Vc=[];if(f)for(a=0;a=c&&(this.Qc=c);if(this.Bb=Xe(a,"fontColor",this.ue)){this.Ba=[255,255,255,255];var f=c=0,g;for("#"==this.Bb[c]&&c++;g=this.Bb.substr(c,2);)this.Ba[f++]=Number.parseInt(g,16),c+=2}this.te=(1-(Xe(a,"flicker",this.ue)||0)).toString();c=(c=zv[this.model])&&c[0];c!==Dv&&(ie(b,this,Ev),le(b,this,Fv));c!==Gv&&(ie(b,this,Hv),le(b,this,Iv));this.Da>=ts&&(ie(b,this,Jv),le(b,this,Kv));this.Da==vs&&(ie(b,this,Lv),le(b, +this,Mv));d&&qn(d,536870912,function(k){var l=e.ca;if(e.eb)if(k[0])if(l=e.eb,l.Lb){var p,n=!1,q=8,t=8,w=-1,J=l.video.D>>3;for(p=0;p=H&&(t=H,n=!0);break;case "p":0<=H&&3>=H&&(w=H);break;case "w":H=l.cb&&(B-=l.cb);k="";for(p=0;pw?v(E,8):Sa(E>>(w<<3),8));n&&(B+=J-t);k+=D+"\n"}k&&l.ca.print(k);l.G=B}else l.ca.J("no buffer\n");else l.J(" MODE: %#04X\n",e.Aa),l.J(" BUFFER: %#010X\n",e.eb.cb),B=e.eb,Xu(B,"CRTC",B.Tb,B.Wa,B.pg),B.Da>=ts&&(Xu(B," GRC",B.Zd,B.Yd,B.rh),Xu(B," SEQ",B.$d,B.Nc,B.sh),Xu(B," ATC",B.Xd,B.Mc,B.qh),Xu(B," ATCINDX",B.Xd),B.ca.J(" ATCDATA: %b\n",B.hf),Xu(B," FEAT",B.dg),Xu(B," MISC",B.zf),Xu(B," STATUS0",B.gh),B.Da==vs&&Xu(B," DAC",B.dd,B.Re)),Xu(B," STATUS1",B.da),B.Da!=Gv&& +B.Da!=Dv||Xu(B," MODEREG",B.ed),B.Da==Dv&&Xu(B," COLOR",B.yf),B.Da>=ts&&(B.ca.J(" LATCHES: %0X\n",B.A),B.ca.J(" ACCESS: %04X\n",B.Pf),B.ca.J(" PLANE2: %02X\n",B.Ze),B.ca.J("Use 'd video [addr]' to dump video memory\n"));else l.J("no active video card\n")});(this.C=Yc(a,"Keyboard"))&&this.B&&this.C.Ab(this.Ig?"textarea":"canvas","screen",this.B);this.ea=Yc(a,"Panel",!1);for(b=0;bh&&(f=Math.round(h/g*100)+"%")}e.ud?(e.W.style.width=f,e.W.style.height="auto",e.W.style.display="block",e.W.style.margin="auto"):(e.Y.style.width=f,e.Y.style.height="auto");e.Y.style.backgroundColor=e.kd;e.Y.A()}Sv(e)}}:c.parentNode.removeChild(c), +!0;case "lockPointer":return this.gf=c.textContent,this.B&&this.B.Me?c.onclick=function(){e.Me(!0)}:c.parentNode.removeChild(c),!0;case "refresh":return c.onclick=function(){Tv(e,!0)},!0;default:this.hd.push([a,b,c,d]),delete this.ia[b]}return!1};function Sv(a,b){a.B&&(a.B.focus(),b&&(document.getElementById(a.Ic)||a.B).scrollIntoView())}function Cv(a,b){!b&&a.Y&&(a.ud?a.W.style.width=a.W.style.height="":a.Y.style.width=a.Y.style.height="");a.C&&(a.C.Eh=1==b)} +m.Me=function(a){var b=!1;this.B&&this.H&&(a?this.B.Me&&(this.B.Me(),this.H.Yf(!0),b=!0):this.B.B&&(this.B.B(),this.H.Yf(!1),b=!0),Sv(this));return b};m.Yf=function(a){this.H&&(this.H.Yf(a),this.C&&(this.C.Eh=a));var b=this.ia.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.gf)}; +function Nv(a,b){var c=a.B;if(c&&!a.Vb){a.Vb=b;var d=!1;if(b!=Ov)try{var e=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassive",null,e);window.removeEventListener("testPassive",null,e)}catch(f){}c.addEventListener("touchstart",function(f){is(a.U,f);a.Vb!=Qv&&Uv(a,f,!0)},d?{passive:!0}:!1);b!=Qv&&(c.addEventListener("touchmove",function(f){Uv(a,f)},d?{passive:!0}:!0),c.addEventListener("touchend",function(f){Uv(a,f,!1)},!1),a.Wb=a.ac=a.oe=-1,a.vd=!1,a.Oc= +null,a.td=!1,a.ff=function(){a.td=!0;a.H.Rd(Vv,!0)})}}m.Yg=function(a){this.C&&this.C.Yg(a)}; +function Uv(a,b,c){var d=0,e=0;var f=a.W;do isNaN(f.offsetLeft)||(d+=f.offsetLeft,e+=f.offsetTop);while(f=f.offsetParent);var g=a.oa/a.W.offsetWidth,h=a.qa/a.W.offsetHeight;if(b.targetTouches&&b.targetTouches.length){f=b.targetTouches[0].pageX;var k=b.targetTouches[0].pageY}else f=b.pageX,k=b.pageY;f=(f-d)*g;k=(k-e)*h;if(a.Vb==Pv)c&&Ss(a.C,Wv[k/(a.qa/3)|0][f/(a.oa/3)|0],!0);else if(a.H){e=a.vd;d=b.timeStamp-a.oe;!0===c?(a.vd=500d){a.H.Rd(Vv,!0);a.H.Rd(Vv,!1);return}}if(c||0>a.Wb||0>a.ac)a.Wb=f,a.ac=k;c=Math.round(f-a.Wb);b=Math.round(k-a.ac);a.Wb=f;a.ac=k;a.H.tf(c,b,a.Wb,a.ac)}} +m.fc=function(a,b){if(!b){if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;if(void 0==this.qf){this.Fb=this.Pc=1E3/Xv|0;this.qe=this.Ac=0;var c=this;this.qf=gd(this.G,this.id,function(){var d=c.eb;d.Sj++;if(!(d.Da===vs&&d.Nc[1]&32&&d.Sj&1)){d.Pg=df(c.G);c.kc&&(d.Wa[17]&32||c.U&&Ni(c.U,c.kc));d=Date.now();var e=d-c.qe-c.Fb;if(0<=e){if(Tv(c)){var f=Date.now()-d;1==c.oc%120?(c.oc=1,c.Ac=f):(c.Ac+=f,f=c.Ac/c.oc);f>=c.Fb/4?c.Fb=2*c.Pc:f=c.Fb?0:e)}d=c.eb; +e=d.Wa[Bu];e|=(d.Wa[Cu]&d.og)<<8;d.wf!==e&&(d.wf=e,Yv(c,!1));e=d==c.A?d.Wa[8]&31:0;d.xl!==e&&(d.xl=e,c.Jd=0,c.Db&&(c.jb=!0,c.Jd=e&31))}},-this.eb.Uj)}}return!0};m.ec=function(a){return a?this.save():!0}; +m.reset=function(){var a=0;this.U&&(a=+qg(this.U,Vm));zv[this.model]||(this.Da=a==Nn?Gv:Dv);var b;this.ja=Zv;switch(this.Da){case vs:a=7;break;case ts:(b=$v[this.lc])&&(a=b[0]);if(!a){a=4;break}if(a!=Nn)break;case Gv:a=Nn;this.ja=aw;break;default:a=2}this.ma!==a&&(this.ma=a);this.eb=null;this.fa=this.jd=new wu(this,Gv);this.L=this.sc=new wu(this,Dv);this.Da>1&255;c=c>>8&~dw;c>>4==(c&15)&&(c^=15)}else d=c&255,c=(c&256?ew|fw:gw|hw)|iw&c>>8;he(this.la,b,d|c<<8)}Tv(this,!0)}};function bw(a){a.A.zf&Iu?(a.fa=a.jd,a.L=a.A):(a.fa=a.A,a.L=a.sc)}m.save=function(){var a=new ph(this);a.set(0,Vu(this.jd));a.set(1,Vu(this.sc));a.set(2,[this.ma,this.ja,this.Aa]);a.set(3,Vu(this.A));return a.data()}; +m.restore=function(a){var b=a[2];this.ma=b[0];this.ja=b[1];this.Aa=b[2];this.eb=null;this.fa=this.jd=new wu(this,Gv,a[0]);this.L=this.sc=new wu(this,Dv,a[1]);this.A=new wu(this,this.Da,a[3],this.Od);this.A.Jc&&bw(this);if(!jw(this))return!1;kw(this);return!0}; +function Rv(a,b,c,d){if(d)a.J(0>d?137438953472:274877906944,"Unable to load font ROM (error %d: %s)\n",d,b);else{fc(a.Ic,b,c);try{var e=eval("("+c+")"),f=e.bytes||8==e.width&&e.values||e;if(!f||!f.length){hc("Unsupported font ROM: "+b);return}if(1==f.length){hc(f[0]);return}if(8192==f.length)us(a,f,[6144,0]);else if(2048==f.length)us(a,f,[0]);else{a.J(274877906944,"Unrecognized font data length (%d)\n",f.length);return}}catch(g){a.J(274877906944,"Font ROM data error: %s\n",g.message);return}Bc(a)}} +function us(a,b,c,d){a.Ye=b;a.Ka=c;a.Bc=d} +function lw(a,b){if(1==b)return a.ba[0]=mw[gw],a.ba[1]=nw(a,ew),a.ba;if(2==b){var c=a.eb.yf;if(a.eb===a.A){var d=a.A.Mc[0];c=d&7;d&16&&(c|=8);3==(a.A.Mc[1]&15)&&(c|=32)}a.ba[0]=nw(a,c&15);c=c&32?ow:pw;for(d=0;de;e++){var f=d[e]||0;var g=f<<2&252;var h=f>>4&252;f=f>>10&252;a.ba[e]=[g,h,f,255]}else{var k=d&&null!= +d[255];b=null!=c.Mc[15]?c.Mc:qw;for(e=0;16>e;e++)f=b[e]&63,k?(f|=(c.Mc[20]&12)<<4,c.Mc[16]&128&&(f&=-49,f|=(c.Mc[20]&3)<<4),f=d[f],g=f<<2&252,h=f>>4&252,f=f>>10&252):(g=(f&4?170:0)|(f&32?85:0),h=(f&2?170:0)|(f&16?85:0),f=(f&1?170:0)|(f&8?85:0)),a.ba[e]=[g,h,f,255]}a.bb=!0}return a.ba} +function nw(a,b){var c=mw;if(!a.Bb)return c[b];var d=c.length>>1;b=b+1-d;if(!b)return a.Ba;c=[0,0,0,255];var e,f=255,g=0;for(e=0;3>e;e++)f>a.Ba[e]&&(f=a.Ba[e]),gb?g/(d-1):(256-g)/d;for(e=0;3>e;e++)c[e]=a.Ba[e]+d*b|0,0>c[e]&&(c[e]=0),255>2|((b&12)>>2|(b&32)>>3)<<8} +function sw(a,b){b=void 0===b?!1:b;var c=!1;a.ga=a.Qb=a.I;if(ua&&a.I){var d=a.Ye;if(a.I==Gv||a.ma==Nn){if(a.Bb){var e=tw.slice();var f=e[1]=e[2]=a.Ba;var g=f.slice(),h,k=0;for(h=0;3>h;h++)kh;h++)g[h]+=255-k;e[3]=e[4]=g}else e=tw;f=uw}else e=lw(a);switch(a.I){case Gv:null!=a.Ka[1]&&vw(a,a.I,a.Bc||9,14,a.Ka[1],a.Bc?0:2048,d,!1,e,f)&&(c=!0);break;case Dv:null!=a.Ka[0]&&vw(a,a.I,a.Bc||8,8,a.Ka[0],0,d,!1,e,f)&&(c=!0);break;case vs:case ts:g=a.Bc||8;h=14;k=a.Ka[1];a.Ka[2]&&(h= +16,k=a.Ka[2]);var l=0;var p=a.A.Nc[1]&1?8:9;var n=a.A.Wa[9]&xv[9];if(n++){g=p;h=n;k=0;d=null;if(l=a.A.Ze)a.A.Ze=0;a.rb=rw(a);a.ga=a.I+(a.rb&255);a.Qb=a.I+(a.rb>>8)}if(null!=k)for(p=0,n=-1;16>p;p+=8){var q=a.rb>>p&255;if(q!=n){n=q;var t=(q<<1)-(4>q?0:7);d||(k=8192*t);if(vw(a,a.I+q,g,h,k,0,d,!!(l&1<>1)+t,H=J.A.Lb,B=J.gd[E]||Array(256),Y=8192*((q<<1)-(4>q?0:7)),xa=8192*((t<<1)-(4>t?0:7)),U=0;256>U;U++){B[U]= +0;for(var Ra=Y+U*w,Aa=xa+U*w,sb=0;sb>16&255)!==(H[Aa++]>>16&255)){B[U]=-1;break}}J.gd[E]=B}}}}b||(a.T=-1,a.Na=-1,a.O=0)}return c} +function vw(a,b,c,d,e,f,g,h,k,l){var p=!1,n=a.xa[b],q=16>k.length?k.length:16;n&&q==n.ph.length||(n={Vm:c,Ah:d,Hc:0,nc:0,Fe:Array(q),ph:k.slice(0,q),mg:l,Df:Array(q)});var t=c<<1,w=d<<1;l=!1;if(n.Hc!=t||n.nc!=w)n.Vm=c,n.Ah=d,n.Hc=t,n.nc=w,l=!0;for(t=0;tU||!Y?U:8;else{for(D=0;256>D;D++){var Md=B+D*Aa;for(E=0;E>16&255);E++);if(ED;D++){var kb=B+D*Aa;for(E=0;E>16&255,wc=0;1>=wc;wc++)for(Wc=0;Wc>(8<=Wc&&192<=D&&223>=D?7: +Wc)?J:Md;ww(Ce,Nd,Gh,ab);ww(Ce,Nd+1,Gh,ab)}}Wa.putImageData(Ce,(D&15)*w.Hc,(D>>4)*w.nc)}w.Fe[H]=fb("#%02X%02X%02X",J[0],J[1],J[2]);w.ph[H]=J;w.Df[H]=yb;w=!0}if(!w){n=null;break}p=!0}}if((p||n!=a.xa[b])&&a.Vc.length&&(c=a.Vc[b-a.I]))if(d=c.canvas,n)for(e=d.width/q|0,f=d.height,g=0;ge&&(k=e),c.drawImage(h,0,0,k,h.height,g*e,0,e,f);else c.fillStyle="black",c.fillRect(0,0,d.width,d.height);a.xa[b]=n;return p} +function xw(a,b,c){var d=[];b!=c&&(b>1)+c]);return d}function yw(a){0a.Na&&(a.Na=0):a.Na=-1} +function kw(a){if(a.I){for(var b=a.eb,c=10;15>=c;c++)if(null==b.Wa[c])return;var d=b.Wa[10];c=d&31;var e=b.Wa[11]&xv[11],f=b.Wa[9]&xv[9];c>f&&(d|=32);var g=0;a.Da!=ts?(ef&&(c=0,e=f),e++):c==e%16?e=c+1:ef&&(c=0,e=f+1);e-=c;if(d&32||0>=e)zw(a);else{d=b.Wa[15]|(b.Wa[14]&b.og)<<8;d-=b.Wa[Bu]|(b.Wa[Cu]&b.og)<<8;b=Math.trunc(d/a.N)*a.M+d%a.N;a.T!=b&&(a.T=b,a.O=-1);if(a.Ge!==c||a.Cc!==e||a.md!==g)a.Ge=c,a.Cc=e,a.md=g,a.Sc&&0<=a.T&&a.Ta.pa&&(a.Cc=a.pa);yw(a)}}}function zw(a){if(0<=a.T){if(void 0!==a.F&&a.T=ts){a.de=!1;var d=b.Yd[5];if(null!=d){c=1024;var e=0,f=b.Yd[3]&31;switch(d&3){case 0:if(f){e=32;switch(f&24){case 8:e=96;break;case 16:e=160;break;case 24:e=224}b.ad=f&7}break;case 1:e=1;break;case 2:switch(f&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.Da==vs&&(e=3,b.ad=f&7)}d&8&&(c=1280);b=b.Nc[4];null!=b&&(b&4||(c|=av,e|=cv),d&64&&(b&8&&(c|=16384,e|=4),a.de=!0));c|=e}}return c} +function Dw(a,b){var c=a.eb;c&&b!=c.Pf&&(c.gg(b),a.la.gg(c.cb,c.Kb,c.Dg(),!0))} +function jw(a,b){var c=!1,d=a.Aa,e=a.eb;if(e)if(e.Da==Gv)d=aw;else if(e.Da>=ts){d=null;var f=e.Od>>2,g=32768=(k&31)?Ew:a.ma==Nn?Fw:Zv;break;case 4:e.cb=655360;e.Kb=f;d=a.ma==Nn?Gw:Hw;break;case 8:e.cb=720896;e.Kb=g;d=aw;break;case 12:e.cb=753664,e.Kb=g,d=a.ma==Nn?Fw:Zv}f=80==(e.Yd[5]&80);if(e.cb!=a.cb||e.Kb!=a.Kb)c=!0;g=Yu(e,dv);var l=e.Wa[23],p=e.Nc[1]&8;d!=Ew&&(h&1?655360==e.cb||f||l&1?e.Yd[5]&64?d=k&31?143>= +e.Wa[lv]?e.Nc[4]&8?Iw:Jw:Kw:Lw:k&128||350>g?d=p?Mw:Nw:480<=g&&(d=a.ma==Nn?Ow:Pw):d=p?7-d:Qw:d-=p?2:0)}}else e.ed&8?(e.ed&2?(d=e.ed&16?Qw:Rw,e.ed&4||--d):(d=e.ed&1?Zv:yx,e.ed&4&&--d),a.Dc&&(a.W.style.opacity="1",a.Dc=!1)):!a.Dc&&1>+a.te&&(a.Dc=!0,a.W.style.opacity=a.te,e=a.G,e.flags.kg=!0,$e(e));else a.Aa=null,null==d&&(d=a.ja);if(!cw(a,d,b,c))return!1;Dw(a,Cw(a));return!0} +function cw(a,b,c,d){if((c=null!=b&&(b!=a.Aa||c))||d){a.oc=0;a.Aa=b;a.bb=!1;b=a.eb||(b==aw?a.fa:a.L);if(b!=a.eb||b.cb!=a.cb||b.Kb!=a.Kb){zw(a);if(a.cb){if(!Td(a.la,a.cb,a.Kb))return!1;a.eb&&(a.eb.Jc=!1)}a.eb=b;b.Jc=!0;a.cb=b.cb;a.Kb=b.Kb;if(!Ed(a.la,b.cb,b.Kb,3,b))return!1;if(b.Daa.I&&(a.I=a.Da);sw(a);if(f=a.xa[a.ga])if(d=f.Hc,e=f.nc,a.Da>=ts){var g=Yu(a.A,lv);g++&&(f=g/f.Ah|0)&&(a.K=f);a.Db=!0}a.Ta=a.oa/a.D|0;a.Ea=a.qa/a.K|0}a.M=a.N=a.D;a.sb=a.K;a.Db&&(a.M++,a.sb++);a.Fd=a.M*a.sb|0;a.re=a.Fd/a.Hd|0;a.wb=a.Fd/a.sa|0;a.sd=0;void 0!==b&&(a.wb=a.wb+b|0,a.sd=a.wb+b>>1);a.aa=a.M*d;a.Ca=a.sb*e;a.P&&(a.ve&&(a.P[a.ve]=null==a.ee?!!a.I:a.ee),a.ob[a.aa]&&a.ob[a.aa][a.Ca]?(a.Fa=a.ob[a.aa][a.Ca],a.za=a.pc[a.aa][a.Ca]):(a.Fa=a.P.createImageData(a.aa, +a.Ca),a.za=document.createElement("canvas"),a.za.width=a.aa,a.za.height=a.Ca,a.ob[a.aa]||(a.ob[a.aa]={}),a.ob[a.aa][a.Ca]=a.Fa,a.pc[a.aa]||(a.pc[a.aa]={}),a.pc[a.aa][a.Ca]=a.za),a.Oa=a.za.getContext("2d"),a.Kd=a.Ld=0,a.ld=a.oa,a.nd=a.qa,b=a.oa-a.D*a.Ta,d=a.qa-a.K*a.Ea,0>1,a.ld-=b),0>1,a.nd-=d),b||d)&&(a.P.fillStyle=a.W.style.backgroundColor,a.P.fillRect(0,0,a.oa,a.qa));Yv(a);c&&Tv(a)}return!0} +function ww(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Ax(a){a.O=-1;a.Sc=0;var b=a.re;if(void 0===a.F||a.F.length!=b)a.F=Array(b)}function Yv(a,b,c,d){if(a.Sc)if(!1!==b)a.bb=!1;else{if(void 0!==c){if(c==d)return;b=a.F;var e=0,f=xw(a,c&255,d&255);c=xw(a,c>>8,d>>8);for(d=0;d(b[d]|=(g&2048?c:f)[g&255])&&(a.Sc=1,e++)}return}a.Sc=1;return}Ax(a)} +function Bw(a,b,c,d,e){var f=d&255;d>>=8;var g=a.xa[a.ga];d&8&&a.ga!=a.Qb&&(g=a.xa[a.Qb],d&=-9);var h=d&15,k=d>>4&15;if(g.mg){!(d&7)&&d&112&&(h|=7);var l=d&247;112==l||240==l?h=0:k=0;h=g.mg[h];k=g.mg[k]}e?(b*=g.Hc,c*=g.nc,e.fillStyle=g.Fe[k],e.fillRect(b,c,g.Hc,g.nc)):(b=b*a.Ta+a.Kd,c=c*a.Ea+a.Ld,a.P.fillStyle=g.Fe[k],a.P.fillRect(b,c,a.Ta,a.Ea));d&Bx&&(k=(f&15)*g.Hc,f=(f>>4)*g.nc,e?e.drawImage(g.Df[h],k,f,g.Hc,g.nc,b,c,g.Hc,g.nc):a.P.drawImage(g.Df[h],k,f,g.Hc,g.nc,b,c,a.Ta,a.Ea));d&Aw&&(a.md&&Cx(a, +0,a.md,b,c,h,g,e),Cx(a,a.Ge,a.Cc,b,c,h,g,e))}function Cx(a,b,c,d,e,f,g,h){h?(a.pa&&a.pa!==g.nc&&(b=Math.round(b*g.nc/a.pa),c=Math.round(c*g.nc/a.pa)),h.fillStyle=g.Fe[f],h.fillRect(d,e+b,g.Hc,c)):(a.pa&&a.pa!==a.Ea&&(b=Math.round(b*a.Ea/a.pa),c=Math.round(c*a.Ea/a.pa)),a.P.fillStyle=g.Fe[f],a.P.fillRect(d,e+b,a.Ta,c))} +function Tv(a,b){b=void 0===b?!1:b;if(!a.W||!a.flags.hc)return!1;var c=a.eb;if(!c)return!1;var d=!1;c!==a.A?c.ed&8&&(d=!0):c.Xd&32&&(d=!0);if(!d&&!b)return!1;if(b)Ax(a);else if(void 0===a.F)return!1;d=!1;!(b||++a.oc%10)&&0<=a.Na&&(a.Na++,d=!0);var e=a.Fd,f=a.cb,g=f,h=g+a.Kb;a.Aa>=Iw&&(f=g=655360,h=g+65536);var k=a.wb;a.N=a.D;if(a.Daa.K&&g+k>h&&(k=(a.N*(a.K-1)+a.M)/a.sa|0))}p=l=0;g+k>h?(p=k,g>=h?(l=f+(g-h),k=0):(l=f,k=h-g,p-=k)):a.Da>=ts&&(c=Yu(c,lv)-Yu(c,rv),0c&&(a.O=-1),h+=Dx(a,f,l,p,h,e,b,d),a.O+=n,Jd(a.la,l,p,!0));Jd(a.la,g,k,!0);h&&(a.Sc=2);return!0} +function Dx(a,b,c,d,e,f,g,h){var k=d*a.sa;k=Math.trunc(k/a.N)*a.M+k%a.N;k>f&&(k=f);var l=c+d;if(!g&&2==a.Sc&&Jd(a.la,c,d))if(!h&&0<=a.O){if(!a.jb)return k;e=f}else if(!a.O)if(d=a.T-e,0>d){if(!a.jb)return k;e=f}else c+=(d/a.M|0)*a.N+d%a.M<<1,e+=d,f=e+1;if(a.ga){if(d=f,f=a.xa[a.ga]){var p=a.eb,n=h=g=0,q=Bx<<8,t=1048575,w=p.Lb,J=1/a.sa|0,D=p.Pf&Fu?1:0,E=p.ed&32;a.Da>=ts&&(E=p.Mc[16]&8);E&&(n=dw<<8,t&=~n,a.Na&2||(t&=~q));a.O=0;p=e%a.M;E=e/a.M|0;for(var H=a.N-a.M<>>D]&65535; +B|=q;B&n&&(a.O++,B&=t);e==a.T&&(B|=a.Na&1?Aw<<8:0);a.Sc&&B===a.F[e]||(Bw(a,p,E,B,a.Oa),a.F[e]=B,h++);g++;e++;c+=J;if(++p>=a.M){p=0;if(++E>=a.sb)break;c+=H}}a.Oa&&(h||a.jb)&&(b=l=0,c=a.aa,e=a.Ca,a.Db&&(d=a.se,g=a.Jd,l+=d<<1,b+=g<<1,c-=f.Hc,e-=f.nc),a.P.drawImage(a.za,l,b,c,e,a.Kd,a.Ld,a.ld,a.nd));yw(a)}}else{if(a.sd){b=c;k=l-b>>1;f=0;c=a.Hd;e=b;d=16==c?65536:196608;g=16==c?1:2;h=lw(a,g);q=n=0;t=a.D;w=0;J=a.K;D=0;for(a.O=0;e>>12;p=H!=p.B?p.W[B].cg(H,E):p.W[B++].Ce(H, +E)|p.W[B&p.O].Ce(0,E+1)<<8;if(a.Sc&&p===a.F[f])n+=c;else{a.F[f]=p;p=p>>8|(p&255)<<8;E=d;H=16;n>=g))>>(H-=g);ww(a.Fa,n++,q,h[Y])}n>w&&(w=n);q=D&&(D=q+1)}e+=2;f++;if(n>=a.D){n=0;q+=2;if(q>a.K)break;q==a.K&&(q=1,e=b+a.sd)}}ta.D?a.N-a.D-D>>3:0; +for(a.O=0;c>>=8;g>q&&(q=g);h=w&&(w=h+1)}c+=J;if(g>=a.D){g=0;if(++h>=a.K)break;c+=p}}D&&(f=0);na.D?a.N-a.D-J>>3:0;for(a.O=0;kE&&(H=E)):(p<<=J,H-= +J,a.Sc=0):(a.Sc&&p===a.F[f]?(g+=H,H=0):a.F[f]=p,f++);if(H){gq&&(q=g);h=w&&(w=h+1)}if(g>=a.D){g=0;if(++h>=a.K)break;k+=D}}J&&(c=0);n>>=1);0>d&&(b.Pg=a,d=0);d-=b.Uj-b.Tj;0>d?c|=9:d%b.Ph>b.lo&&(c|=1);return c} +m.Hg=function(a,b){return Gx(this,this.fa,a,b)};m.$g=function(a,b,c){var d=this.fa;d.dh=d.Tb;d.Tb=b&31;y(this,a,b,c,"CRTC.INDX")};m.Gg=function(a,b){return Hx(this,this.fa,a,b)};m.Zg=function(a,b,c){Ix(this,this.fa,a,b,c)};m.Ln=function(a,b){return Jx(this,this.fa,b)};m.To=function(a,b,c){Kx(this,this.fa,b,c)};m.Mn=function(){return Lx(this,this.fa)};m.jl=function(a,b,c){this.A.dg=this.A.dg&-4|b&3;y(this,a,b,c,"FEAT")}; +m.hn=function(a,b){a=this.A.Xd;b&&!x(this)||y(this,960,void 0,b,"ATC.INDX",a,!0);return a};m.rm=function(a,b){a=this.A.Mc[this.A.Xd&31];b&&!x(this)||y(this,960,void 0,b,"ATC."+this.A.qh[this.A.Xd&31],a,!0);return a}; +m.$k=function(a,b,c){var d=this.A,e=d.Xd&32;if(d.hf){d.hf=!1;var f=d.Xd&31;if(16<=f||!e)e=d.Mc[f]!==b,!Mx&&!e||c&&!x(this)||y(this,a,b,c,"ATC."+d.qh[f],void 0,!0),e&&(d.Mc[f]=b,19==f?this.Db&&(this.jb=!0,this.se=b&15):17!=f&&Yv(this,!0))}else d.Xd=b,y(this,a,b,c,"ATC.INDX"),d.hf=!0,b&32&&!e&&sw(this,!0)&&Tv(this,!0)}; +m.Tn=function(a,b){a=0;if(this.Da==ts)a=3-((this.A.zf&12)>>2),a=(this.lc&1<>this.A.Ec&63;b&&!x(this)||y(this,969,void 0,b,"DAC.DATA["+Va(this.A.dd)+"]["+Va(this.A.Ec)+"]",a,!0);this.A.Ec+=6;12g&&(f=b.Wa[b.Tb^1]&xv[9],f>g))return}if((f=b.Wa[b.Tb]!==d)||Mx)e&&!x(a)||y(a,c,d,e,"CRTC."+b.pg[b.Tb]),b.Wa[b.Tb]=d;b==a.A&&(17==b.Tb?a.kc&&(d&16||a.U&&Li(a.U,a.kc)):f&&b.Tb==rv&&Yv(a,!1));f&&((9==b.Tb&&8!=b.dh||b.Tb==lv&&223==d)&&jw(a,!0),kw(a))}}function Jx(a,b,c){var d=b.ed;y(a,b.port+4,void 0,c,"MODE",d);return d} +function Kx(a,b,c,d){y(a,b.port+4,c,d,"MODE");(b.ed^c)&32&&(b.video.Sc=0);b.ed=c;jw(a)}function Lx(a,b){var c=Fx(a,b);b===a.A?(c|=b.da&48^48,b.hf=!1):c|=240;return b.da=c}var Mx=!0,Gv=1,Dv=2,ts=4,vs=8,yx=1,Fw=2,Zv=3,Rw=5,Qw=6,aw=7,Mw=13,Nw=14,Gw=15,Hw=16,Ow=17,Pw=18,Iw=19,Jw=20,Kw=21,Lw=22,Ew=255,Xv=60,zv={mda:[Gv,aw],cga:[Dv,Zv],ega:[ts,Zv],vga:[vs,Zv]},Uu={2:{Tg:15700,Sg:200,ah:75,bh:96}};Uu[Nn]={Tg:18432,Sg:350,ah:75,bh:96};Uu[4]={Tg:21850,Sg:350,ah:75,bh:96};Uu[7]={Tg:31500,Sg:400,ah:85,bh:83}; var $v={6:[1,Nn,!0],7:[2,Nn,!0],8:[6,Nn,!0],9:[4,Nn,!0],10:[Nn,1,!0],11:[Nn,2,!0],0:[1,Nn,!1],1:[2,Nn,!1],2:[6,Nn,!1],3:[4,Nn,!1],4:[Nn,1,!1],5:[Nn,2,!1]},Av=[];Av[yx]=[40,25,1,.5,0,Dv];Av[Zv]=[80,25,1,.5,0,Dv];Av[4]=[320,200,8,4,192];Av[Qw]=[640,200,16,8,192];Av[aw]=[80,25,1,.5,0,Gv];Av[Mw]=[320,200,8,8];Av[Nw]=[640,200,8,8];Av[Gw]=[640,350,8,8];Av[Hw]=[640,350,8,8];Av[Ow]=[640,480,8,8];Av[Pw]=[640,480,8,8];Av[Iw]=[320,200,4,1];Av[Jw]=[320,200,4,4];Av[Kw]=[320,240,4,4];Av[Lw]=[320,400,4,4]; Av[0]=Av[yx];Av[Fw]=Av[Zv];Av[Rw]=Av[4]; var gw=0,ew=7,iw=8,fw=0,hw=112,dw=128,Bx=256,Aw=512,tw=[[0,0,0,255],[9,204,80,255],[9,204,80,255],[60,255,131,255],[60,255,131,255]],uw=[0,1,2,2,2,2,2,2,0,3,4,4,4,4,4,4],mw=[[0,0,0,255],[0,0,170,255],[0,170,0,255],[0,170,170,255],[170,0,0,255],[170,0,170,255],[170,85,0,255],[170,170,170,255],[85,85,85,255],[85,85,255,255],[85,255,85,255],[85,255,255,255],[255,85,85,255],[255,85,255,255],[255,255,85,255],[255,255,255,255]],pw=[2,4,6],ow=[3,5,ew],qw=[0,1,2,3,4,5,20,7,56,57,58,59,60,61,62,63],yv=[0, 255,65280,65535,16711680,16711935,16776960,16777215,-16777216,-16776961,-16711936,-16711681,-65536,-65281,-256,-1],Ex=[0];Ex[128]=1;Ex[32768]=2;Ex[32896]=3;Ex[8388608]=4;Ex[8388736]=5;Ex[8421376]=6;Ex[8421504]=7;Ex[-2147483648]=8;Ex[-2147483520]=9;Ex[-2147450880]=10;Ex[-2147450752]=11;Ex[-2139095040]=12;Ex[-2139094912]=13;Ex[-2139062272]=14;Ex[-2139062144]=15;var xu=[];xu[Gv]=["MDA",948,720896,4096,4096,Nn];xu[Dv]=["CGA",980,753664,16384,16384,2];xu[ts]=["EGA",980,753664,16384,65536,4]; xu[vs]=["VGA",980,753664,16384,262144,7]; -var Bv=0,Qv=1,Pv=2,Ov=3,Wv=[[1036,1038,1033],[1037,1032,1039],[1035,1040,1034]],Ev={944:P.prototype.Gg,945:P.prototype.Fg,946:P.prototype.Gg,947:P.prototype.Fg,948:P.prototype.Gg,949:P.prototype.Fg,950:P.prototype.Gg,951:P.prototype.Fg,952:P.prototype.Ln,954:P.prototype.Mn},Fv={944:P.prototype.Zg,945:P.prototype.Yg,946:P.prototype.Zg,947:P.prototype.Yg,948:P.prototype.Zg,949:P.prototype.Yg,950:P.prototype.Zg,951:P.prototype.Yg,952:P.prototype.To},Hv={980:P.prototype.qn,981:P.prototype.pn,984:P.prototype.rn, +var Bv=0,Qv=1,Pv=2,Ov=3,Wv=[[1036,1038,1033],[1037,1032,1039],[1035,1040,1034]],Ev={944:P.prototype.Hg,945:P.prototype.Gg,946:P.prototype.Hg,947:P.prototype.Gg,948:P.prototype.Hg,949:P.prototype.Gg,950:P.prototype.Hg,951:P.prototype.Gg,952:P.prototype.Ln,954:P.prototype.Mn},Fv={944:P.prototype.$g,945:P.prototype.Zg,946:P.prototype.$g,947:P.prototype.Zg,948:P.prototype.$g,949:P.prototype.Zg,950:P.prototype.$g,951:P.prototype.Zg,952:P.prototype.To},Hv={980:P.prototype.qn,981:P.prototype.pn,984:P.prototype.rn, 985:P.prototype.on,986:P.prototype.sn},Iv={980:P.prototype.xo,981:P.prototype.wo,984:P.prototype.yo,985:P.prototype.vo},Jv={960:P.prototype.hn,961:P.prototype.rm,962:P.prototype.Tn,964:P.prototype.Rn,965:P.prototype.Qn,974:P.prototype.Fn,975:P.prototype.En},Kv={954:P.prototype.jl,960:P.prototype.$k,961:P.prototype.$k,962:P.prototype.Vo,964:P.prototype.Xo,965:P.prototype.Wo,970:P.prototype.Po,972:P.prototype.Oo,974:P.prototype.No,975:P.prototype.Mo,986:P.prototype.jl},Lv={963:P.prototype.Un,966:P.prototype.xn, 967:P.prototype.yn,969:P.prototype.wn,970:P.prototype.Vn,972:P.prototype.Wn},Mv={963:P.prototype.Zo,966:P.prototype.Do,967:P.prototype.Eo,968:P.prototype.Fo,969:P.prototype.Co}; -Vb(function(){for(var a=oc("pcx86","video"),b={},c=0;cMissing <canvas> support. Please try a newer web browser.";0<=Eb().indexOf("MSIE")&&(d.onresize=function(l, -p,n,q){return function(){p.style.height=(l.clientWidth*q/n|0)+"px"}}(d,f,e.screenWidth,e.screenHeight),d.onresize(null));var h=+(Mb("aspect")||e.aspect);h&&.3<=h&&3.33>=h&&(Ub("resize",function(l,p,n){return function(){p.style.height=(l.clientWidth/n|0)+"px"}}(d,f,h)),r.onresize());b.ed=void 0;(h=oc("pcjs-overlay","",d))&&h.length?b.ed=h[0]:ua&&(b.ed=document.createElement("textarea"),b.ed.setAttribute("class","pcjs-overlay"),d.appendChild(b.ed));b.ed&&(b.ed.setAttribute("autocapitalize","off"),b.ed.setAttribute("autocorrect", -"off"),b.ed.setAttribute("spellcheck","false"),h=function(l){return function(){l.ed.style.fontSize=(.01875*l.ed.clientWidth|0)+"px"}}(b),h(),Ub("resize",h));h=oc("pcx86-video-diagnostic");var k=void 0;d.style&&(k=d);e=new P(e,f,g,b.ed,k,h);nc(e,d)}}); -function Nx(a){dc.call(this,"ParallelPort",a,16777216);this.H=a.adapter;switch(this.H){case 1:this.D=956;this.C=7;break;case 2:this.D=888;this.C=7;break;case 3:this.D=632;this.C=5;break;default:xb(549755813888,"Unrecognized parallel adapter #"+this.H);return}this.A=this.B=null;a=a.binding;"console"==a?this.B="":lc(this,a)}pa(Nx,dc);m=Nx.prototype;m.zb=function(a,b,c){return a&&"textarea"!=a?!1:(this.ia[b]=this.A=c,!0)}; -m.xc=function(a,b,c,d){this.la=b;this.G=c;this.ca=d;this.U=Yc(a,"ChipSet");ie(b,this,Ox,this.D);le(b,this,Px,this.D);Bc(this)};m.ec=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};m.dc=function(a){return a?this.save():!0};m.reset=function(){Qx(this)};m.save=function(){var a=new ph(this),b=0,c=[];c[b++]=this.F;c[b++]=this.Mb;c[b]=this.Ff;a.set(0,c);return a.data()};m.restore=function(a){return Qx(this,a[0])}; -function Qx(a,b){var c=0;void 0===b&&(b=[0,Rx|Sx,Tx]);a.F=b[c++];a.Mb=b[c++];a.Ff=b[c];return!0}m.zn=function(a,b){var c=this.F;y(this,a,void 0,b,"DATA",c);return c};m.Sn=function(a,b){var c=this.Mb;this.Mb=this.Mb|Ux|Vx;y(this,a,void 0,b,"STAT",c);Wx(this);return c};m.vn=function(a,b){var c=this.Ff;y(this,a,void 0,b,"CTRL",c);return c}; -m.Go=function(a,b,c){var d=this;y(this,a,b,c,"DATA");this.F=b;Cf(this.G,function(){var e=b,f=!1;d.J("transmitByte(%#04x)\n",e);if(d.A)13!=e&&(8==e?d.A.value=d.A.value.slice(0,-1):(128<=e&&(e=160>e?e-128:224>e?42:32),d.A.value+=hb(e),d.A.scrollTop=d.A.scrollHeight)),f=!0;else if(null!=d.B){if(10==e||1024<=d.B.length)d.print(d.B),d.B="";10!=e&&(d.B+=String.fromCharCode(e));f=!0}return f?(d.Mb|=Rx,d.Mb&=~(Ux|Vx),!0):!1});Wx(this)};m.Bo=function(a,b,c){y(this,a,b,c,"CTRL");this.Ff=b|Tx;Wx(this)}; -function Wx(a){a.U&&a.C&&(a.Ff&Xx&&!(a.Mb&Ux)?Ni(a.U,a.C):Li(a.U,a.C))}var Sx=7,Rx=8,Ux=64,Vx=128,Xx=16,Tx=224,Ox={0:Nx.prototype.zn,1:Nx.prototype.Sn,2:Nx.prototype.vn},Px={0:Nx.prototype.Go,2:Nx.prototype.Bo};Vb(function(){for(var a=oc("pcx86","parallel"),b=0;b=f)e.preventDefault&&e.preventDefault(),64");if(2==c.length){var d=gb(c[0]);if(d!=this.Db)return;c=gb(c[1]);if(this.D=rc(c,!1)){var e=this.D.exports;if(e){var f=e.connect;f&&f.call(this.D,this.W);if(this.C=e.receiveData){this.W=a;this.Y=e.receiveStatus;this.J(137438953472,"Connected %s.%s to %s\n",this.Hc,d,c);return}}}}this.J(137438953472,"Unable to establish connection: %s\n",b)}}}; -m.ec=function(a,b){if(!b)if(this.Kj(this.W),!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};m.dc=function(a){return a?this.save():!0};m.reset=function(){fy(this)};m.save=function(){var a=new ph(this),b=0,c=[];c[b++]=this.ea;c[b++]=this.fa;c[b++]=this.K;c[b++]=this.O;c[b++]=this.L;c[b++]=this.H;c[b++]=this.T;c[b++]=this.A;c[b++]=this.B;c[b]=this.I;a.set(0,c);return a.data()};m.restore=function(a){return fy(this,a[0])}; -function fy(a,b){var c=0;void 0===b&&(b=[0,0,gy,0,hy,0,0,ay|by,a.pa,[]]);a.ea=b[c++];a.fa=b[c++];a.K=b[c++];a.O=b[c++];a.L=b[c++];a.H=b[c++];a.T=b[c++];a.A=b[c++];a.B=b[c++];a.I=b[c];return!0}m.Vd=function(a,b){b&&(this.I=[]);if(null!=a)if("number"==typeof a)this.I.push(a);else if("string"==typeof a)for(b=0;bMissing <canvas> support. Please try a newer web browser.";0<=Eb().indexOf("MSIE")&&(d.onresize=function(l, +p,n,q){return function(){p.style.height=(l.clientWidth*q/n|0)+"px"}}(d,f,e.screenWidth,e.screenHeight),d.onresize(null));var h=+(Mb("aspect")||e.aspect);h&&.3<=h&&3.33>=h&&(Ub("resize",function(l,p,n){return function(){p.style.height=(l.clientWidth/n|0)+"px"}}(d,f,h)),r.onresize());b.fd=void 0;(h=oc("pcjs-overlay","",d))&&h.length?b.fd=h[0]:ua&&(b.fd=document.createElement("textarea"),b.fd.setAttribute("class","pcjs-overlay"),d.appendChild(b.fd));b.fd&&(b.fd.setAttribute("autocapitalize","off"),b.fd.setAttribute("autocorrect", +"off"),b.fd.setAttribute("spellcheck","false"),h=function(l){return function(){l.fd.style.fontSize=(.01875*l.fd.clientWidth|0)+"px"}}(b),h(),Ub("resize",h));h=oc("pcx86-video-diagnostic");var k=void 0;d.style&&(k=d);e=new P(e,f,g,b.fd,k,h);nc(e,d)}}); +function Nx(a){dc.call(this,"ParallelPort",a,16777216);this.H=a.adapter;switch(this.H){case 1:this.D=956;this.C=7;break;case 2:this.D=888;this.C=7;break;case 3:this.D=632;this.C=5;break;default:xb(549755813888,"Unrecognized parallel adapter #"+this.H);return}this.A=this.B=null;a=a.binding;"console"==a?this.B="":lc(this,a)}pa(Nx,dc);m=Nx.prototype;m.Ab=function(a,b,c){return a&&"textarea"!=a?!1:(this.ia[b]=this.A=c,!0)}; +m.yc=function(a,b,c,d){this.la=b;this.G=c;this.ca=d;this.U=Yc(a,"ChipSet");ie(b,this,Ox,this.D);le(b,this,Px,this.D);Bc(this)};m.fc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};m.ec=function(a){return a?this.save():!0};m.reset=function(){Qx(this)};m.save=function(){var a=new ph(this),b=0,c=[];c[b++]=this.F;c[b++]=this.Nb;c[b]=this.Gf;a.set(0,c);return a.data()};m.restore=function(a){return Qx(this,a[0])}; +function Qx(a,b){var c=0;void 0===b&&(b=[0,Rx|Sx,Tx]);a.F=b[c++];a.Nb=b[c++];a.Gf=b[c];return!0}m.zn=function(a,b){var c=this.F;y(this,a,void 0,b,"DATA",c);return c};m.Sn=function(a,b){var c=this.Nb;this.Nb=this.Nb|Ux|Vx;y(this,a,void 0,b,"STAT",c);Wx(this);return c};m.vn=function(a,b){var c=this.Gf;y(this,a,void 0,b,"CTRL",c);return c}; +m.Go=function(a,b,c){var d=this;y(this,a,b,c,"DATA");this.F=b;Cf(this.G,function(){var e=b,f=!1;d.J("transmitByte(%#04x)\n",e);if(d.A)13!=e&&(8==e?d.A.value=d.A.value.slice(0,-1):(128<=e&&(e=160>e?e-128:224>e?42:32),d.A.value+=hb(e),d.A.scrollTop=d.A.scrollHeight)),f=!0;else if(null!=d.B){if(10==e||1024<=d.B.length)d.print(d.B),d.B="";10!=e&&(d.B+=String.fromCharCode(e));f=!0}return f?(d.Nb|=Rx,d.Nb&=~(Ux|Vx),!0):!1});Wx(this)};m.Bo=function(a,b,c){y(this,a,b,c,"CTRL");this.Gf=b|Tx;Wx(this)}; +function Wx(a){a.U&&a.C&&(a.Gf&Xx&&!(a.Nb&Ux)?Ni(a.U,a.C):Li(a.U,a.C))}var Sx=7,Rx=8,Ux=64,Vx=128,Xx=16,Tx=224,Ox={0:Nx.prototype.zn,1:Nx.prototype.Sn,2:Nx.prototype.vn},Px={0:Nx.prototype.Go,2:Nx.prototype.Bo};Vb(function(){for(var a=oc("pcx86","parallel"),b=0;b=f)e.preventDefault&&e.preventDefault(),64");if(2==c.length){var d=gb(c[0]);if(d!=this.Eb)return;c=gb(c[1]);if(this.D=rc(c,!1)){var e=this.D.exports;if(e){var f=e.connect;f&&f.call(this.D,this.W);if(this.C=e.receiveData){this.W=a;this.Y=e.receiveStatus;this.J(137438953472,"Connected %s.%s to %s\n",this.Ic,d,c);return}}}}this.J(137438953472,"Unable to establish connection: %s\n",b)}}}; +m.fc=function(a,b){if(!b)if(this.Kj(this.W),!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};m.ec=function(a){return a?this.save():!0};m.reset=function(){fy(this)};m.save=function(){var a=new ph(this),b=0,c=[];c[b++]=this.ea;c[b++]=this.fa;c[b++]=this.K;c[b++]=this.O;c[b++]=this.L;c[b++]=this.H;c[b++]=this.T;c[b++]=this.A;c[b++]=this.B;c[b]=this.I;a.set(0,c);return a.data()};m.restore=function(a){return fy(this,a[0])}; +function fy(a,b){var c=0;void 0===b&&(b=[0,0,gy,0,hy,0,0,ay|by,a.pa,[]]);a.ea=b[c++];a.fa=b[c++];a.K=b[c++];a.O=b[c++];a.L=b[c++];a.H=b[c++];a.T=b[c++];a.A=b[c++];a.B=b[c++];a.I=b[c];return!0}m.Wd=function(a,b){b&&(this.I=[]);if(null!=a)if("number"==typeof a)this.I.push(a);else if("string"==typeof a)for(b=0;b>8:this.O;y(this,a,void 0,b,this.H&ny?"DLM":"IER",c);return c}; m.Hn=function(a,b){var c=this.L;c==oy&&(this.L=hy);y(this,a,void 0,b,"IIR",c);return c};m.In=function(a,b){var c=this.H;y(this,a,void 0,b,"LCR",c);return c};m.Kn=function(a,b){var c=this.T;y(this,a,void 0,b,"MCR",c);return c};m.Jn=function(a,b){var c=this.A;y(this,a,void 0,b,"LSR",c);return c};m.Nn=function(a,b){var c=this.B;this.B&=~(jy|ky);y(this,a,void 0,b,"MSR",c);return c}; m.Yo=function(a,b,c){var d=this;y(this,a,b,c,this.H&ny?"DLL":"THR");this.H&ny?this.K=this.K&-256|b:(this.fa=b,this.A&=~(ay|by),Cf(this.G,function(){var e=!1;d.J("transmitByte(%#04x)\n",b);d.C&&d.C.call(d.D,b)&&(e=!0);if(d.F){if(13==b)d.N=0;else if(8==b)d.F.value=d.F.value.slice(0,-1),0b&&1==f&&(f=0);9==b&&(f=d.oa||8,f-=d.N%f,d.oa&&(e=eb("",-f)));!d.N&&f&&(10!=d.ja&&(e="\n"+e),d.ga&&(e=String.fromCharCode(d.ga)+e));d.F.value+=e;d.F.scrollTop=d.F.scrollHeight; d.N+=f}d.ja=b;e=!0}else if(null!=d.M){if(10==b||1024<=d.M.length)d.print(d.M),d.M="";10!=b&&(d.M+=String.fromCharCode(b));e=!0}return e}),mf(this.G,this.sa,1E3/(1843200/((this.K||1)<<7))|0),cy(this))};m.Qo=function(a,b,c){y(this,a,b,c,this.H&ny?"DLM":"IER");this.H&ny?this.K=this.K&255|b<<8:this.O=b};m.Ro=function(a,b,c){y(this,a,b,c,"LCR");this.H=b}; m.So=function(a,b,c){var d=b^this.T;y(this,a,b,c,"MCR");this.T=b;d&(py|my)&&(this.Y&&(a=0,this.W?(a|=b&my?32:0,a|=b&py?320:0):(a|=b&my?16:0,a|=b&py?1048576:0),this.Y.call(this.D,a)),iy(this))};function cy(a){var b=-1;a.A&ly&&a.O&qy?b=ry:a.A&ay&&a.O&sy?b=oy:a.B&(jy|ky)&&a.O&ty&&(b=uy);0<=b?(a.L&=~(hy|vy),a.L|=b,a.U&&a.P&&Ni(a.U,a.P,100)):(a.L=hy,a.U&&a.P&&Li(a.U,a.P))} var gy=384,qy=1,sy=2,ty=8,hy=1,ry=4,oy=2,uy=0,vy=6,ny=128,py=1,my=2,ly=1,ay=32,by=64,jy=1,ky=2,Zx=16,$x=32,dy={0:Yx.prototype.Pn,1:Yx.prototype.Gn,2:Yx.prototype.Hn,3:Yx.prototype.In,4:Yx.prototype.Kn,5:Yx.prototype.Jn,6:Yx.prototype.Nn},ey={0:Yx.prototype.Yo,1:Yx.prototype.Qo,3:Yx.prototype.Ro,4:Yx.prototype.So};Vb(function(){for(var a=oc("pcx86","serial"),b=0;bf?137438953472:274877906944,"Unable to load tests (error %d: %s)\n",f,d);else try{a.ae=JSON.parse(e),a.Kf&&(a.Kf(a.ae),a.ae=null),fc(a.Hc,d,e)}catch(g){a.J(274877906944,"Test parsing error: %s\n",g.message)}Bc(a)},function(){a.J(4398046511104,"%s\n",c)})} -wy.prototype.zb=function(a,b,c){var d=this;return"textarea"!=a||this.A?!1:(this.A=this.ia[b]=c,this.B=null,c.onkeydown=function(e){e=e||window.event;var f=e.keyCode;if(8===f||e.ctrlKey&&65<=f&&90>=f)e.preventDefault&&e.preventDefault(),64f?137438953472:274877906944,"Unable to load tests (error %d: %s)\n",f,d);else try{a.be=JSON.parse(e),a.Lf&&(a.Lf(a.be),a.be=null),fc(a.Ic,d,e)}catch(g){a.J(274877906944,"Test parsing error: %s\n",g.message)}Bc(a)},function(){a.J(4398046511104,"%s\n",c)})} +wy.prototype.Ab=function(a,b,c){var d=this;return"textarea"!=a||this.A?!1:(this.A=this.ia[b]=c,this.B=null,c.onkeydown=function(e){e=e||window.event;var f=e.keyCode;if(8===f||e.ctrlKey&&65<=f&&90>=f)e.preventDefault&&e.preventDefault(),64=d.length?(n+=q,h="missing value for "+n):n=p?"$"==n?d[p]:fb("%x",d[p]):b;return n});if(h)a.J("%s\n",h);else{var k=c.indexOf("(");e=0=d.length?(n+=q,h="missing value for "+n):n=p?"$"==n?d[p]:fb("%x",d[p]):b;return n});if(h)a.J("%s\n",h);else{var k=c.indexOf("(");e=0=this.I&&(this.B=this.B.slice(-(this.I-1))),10==a&&(this.B=""),this.B+=String.fromCharCode(a),a=this.M.indexOf(this.B),0<=a&&Ay(this,Ly,this.L[a])):this.mode==By&&this.D(a)}; -zy.prototype.O=function(a){a==u.Wi?Ay(this,this.mode==By?this.F?Ly:Ky:By):this.mode==By||this.mode==Ky?this.C(a):this.mode==Ly&&(this.K?(this.D(10),Gy(this)):13==a?(this.D(10),Hy(this),Cy(this,this.A.replace(/\\n/g,"\n")),this.A=""):a==u.Vi||a==u.hm?this.A.length&&(this.A=this.A.slice(0,-1),this.D("\b \b")):32<=a&&127>a&&(this.A+=String.fromCharCode(a),this.D(a)))};var By="terminal",Ky="prompt",Ly="command",Iy="printf",Jy="wait",Ey=[Iy,Jy]; -function My(a){dc.call(this,"Mouse",a,67108864);this.U=a.serial||a.binding;this.W=a.type||(this.U?Ny:Oy);this.T=this.W==Ny?"SerialPort":null;this.C=null;this.L=a.scaleMouse;this.Ic=this.P=this.O=!1;this.D=[];this.B=[]}pa(My,dc);m=My.prototype;m.xc=function(a,b,c,d){this.ua=a;this.la=b;this.G=c;this.ca=d;this.L=Xe(a,"scaleMouse")||this.L;for(c=null;c=Yc(a,"Video",c);)this.D.push(c);this.W==Oy&&(ie(b,this,Py,Qy),le(b,this,Ry,Qy));Bc(this)}; -m.isActive=function(){return this.Ic&&(this.G?this.G.flags.eb:!1)};m.ec=function(a,b){if(!b){if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;if(this.T&&!this.C){for(a=null;(a=Yc(this.ua,this.T,a))&&(!a.kj||!(this.C=a.kj(this.U,this,this.tm))););if(this.C)for(this.B=[],a=0;aa.I||0>a.K)a.I=b.screenX,a.K=b.screenY;a.O?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.I,d=b.screenY-a.K);a.I=b.screenX;a.K=b.screenY;a.sf(c,d,a.I,a.K)}} -m.Qd=function(a,b){if(this.isActive()){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case Vv:if(this.M!=b){this.M=b;Xy(this,c);return}break;case Yy:if(this.N!=b){this.N=b;Xy(this,c);return}}this.J("%s: ignored\n",c)}};m.sf=function(a,b,c,d){this.isActive()&&(a=Math.round(Math.abs(a)*this.L)*Math.sign(a)||Math.sign(a),b=Math.round(Math.abs(b)*this.L)*Math.sign(b)||Math.sign(b),a||b)&&(this.J(67108864,"moveMouse(%s,%s)\n",a,b),this.F=a,this.H=b,Xy(this,null,c,d))}; -function Xy(a,b,c,d){var e=64|(a.M?32:0)|(a.N?16:0)|(a.H&192)>>4|(a.F&192)>>6,f=a.F&63,g=a.H&63;a.J(33554433,"%s%sserial packet [%#04x,%#04x,%#04x]\n",b?b+": ":"",void 0!==d?"mouse ("+c+","+d+"): ":"",e,f,g);a.C.Vd([e,f,g]);a.F=a.H=0} -m.tm=function(a){var b=1048592==(a&1048592);if(b){if(!this.Ic){var c=!1;this.A&16||(this.reset(),this.J("serial mouse reset\n"),c=!0);this.A&1048576||(this.J("serial mouse ID requested\n"),c=!0);c&&(this.C.Vd([Zy,Zy],!0),this.J("serial mouse ID sent\n"));Sy(this);this.Ic=b}}else this.Ic&&(this.J("serial mouse inactive\n"),Ty(this),this.Ic=b);this.A=a};m.mn=function(a,b){y(this,a,void 0,b,"DATA",0);return 0};m.nn=function(a,b){y(this,a,void 0,b,"TPPI",0);return 0}; +function Ay(a,b,c){if(b!=a.mode){switch(b){case By:a.F=null;break;case Ky:a.L=[];a.M=[];a.I=0;for(var d in a.be)if(c=a.be[d][Ky]){"string"==typeof c&&(c=[c]);for(var e=0;e=this.I&&(this.B=this.B.slice(-(this.I-1))),10==a&&(this.B=""),this.B+=String.fromCharCode(a),a=this.M.indexOf(this.B),0<=a&&Ay(this,Ly,this.L[a])):this.mode==By&&this.D(a)}; +zy.prototype.O=function(a){a==u.Xi?Ay(this,this.mode==By?this.F?Ly:Ky:By):this.mode==By||this.mode==Ky?this.C(a):this.mode==Ly&&(this.K?(this.D(10),Gy(this)):13==a?(this.D(10),Hy(this),Cy(this,this.A.replace(/\\n/g,"\n")),this.A=""):a==u.Wi||a==u.hm?this.A.length&&(this.A=this.A.slice(0,-1),this.D("\b \b")):32<=a&&127>a&&(this.A+=String.fromCharCode(a),this.D(a)))};var By="terminal",Ky="prompt",Ly="command",Iy="printf",Jy="wait",Ey=[Iy,Jy]; +function My(a){dc.call(this,"Mouse",a,67108864);this.U=a.serial||a.binding;this.W=a.type||(this.U?Ny:Oy);this.T=this.W==Ny?"SerialPort":null;this.C=null;this.L=a.scaleMouse;this.Jc=this.P=this.O=!1;this.D=[];this.B=[]}pa(My,dc);m=My.prototype;m.yc=function(a,b,c,d){this.ua=a;this.la=b;this.G=c;this.ca=d;this.L=Xe(a,"scaleMouse")||this.L;for(c=null;c=Yc(a,"Video",c);)this.D.push(c);this.W==Oy&&(ie(b,this,Py,Qy),le(b,this,Ry,Qy));Bc(this)}; +m.isActive=function(){return this.Jc&&(this.G?this.G.flags.fb:!1)};m.fc=function(a,b){if(!b){if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;if(this.T&&!this.C){for(a=null;(a=Yc(this.ua,this.T,a))&&(!a.lj||!(this.C=a.lj(this.U,this,this.tm))););if(this.C)for(this.B=[],a=0;aa.I||0>a.K)a.I=b.screenX,a.K=b.screenY;a.O?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.I,d=b.screenY-a.K);a.I=b.screenX;a.K=b.screenY;a.tf(c,d,a.I,a.K)}} +m.Rd=function(a,b){if(this.isActive()){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case Vv:if(this.M!=b){this.M=b;Xy(this,c);return}break;case Yy:if(this.N!=b){this.N=b;Xy(this,c);return}}this.J("%s: ignored\n",c)}};m.tf=function(a,b,c,d){this.isActive()&&(a=Math.round(Math.abs(a)*this.L)*Math.sign(a)||Math.sign(a),b=Math.round(Math.abs(b)*this.L)*Math.sign(b)||Math.sign(b),a||b)&&(this.J(67108864,"moveMouse(%s,%s)\n",a,b),this.F=a,this.H=b,Xy(this,null,c,d))}; +function Xy(a,b,c,d){var e=64|(a.M?32:0)|(a.N?16:0)|(a.H&192)>>4|(a.F&192)>>6,f=a.F&63,g=a.H&63;a.J(33554433,"%s%sserial packet [%#04x,%#04x,%#04x]\n",b?b+": ":"",void 0!==d?"mouse ("+c+","+d+"): ":"",e,f,g);a.C.Wd([e,f,g]);a.F=a.H=0} +m.tm=function(a){var b=1048592==(a&1048592);if(b){if(!this.Jc){var c=!1;this.A&16||(this.reset(),this.J("serial mouse reset\n"),c=!0);this.A&1048576||(this.J("serial mouse ID requested\n"),c=!0);c&&(this.C.Wd([Zy,Zy],!0),this.J("serial mouse ID sent\n"));Sy(this);this.Jc=b}}else this.Jc&&(this.J("serial mouse inactive\n"),Ty(this),this.Jc=b);this.A=a};m.mn=function(a,b){y(this,a,void 0,b,"DATA",0);return 0};m.nn=function(a,b){y(this,a,void 0,b,"TPPI",0);return 0}; m.kn=function(a,b){y(this,a,void 0,b,"CTRL",0);return 0};m.jn=function(a,b){y(this,a,void 0,b,"CPPI",0);return 0};m.to=function(a,b,c){y(this,a,b,c,"DATA")};m.uo=function(a,b,c){y(this,a,b,c,"TPPI")};m.so=function(a,b,c){y(this,a,b,c,"CTRL")};m.ro=function(a,b,c){y(this,a,b,c,"CPPI")};var Oy="bus",Ny="serial",Vv=0,Yy=2,Qy=572,Zy=77,Py={0:My.prototype.mn,1:My.prototype.nn,2:My.prototype.kn,3:My.prototype.jn},Ry={0:My.prototype.to,1:My.prototype.uo,2:My.prototype.so,3:My.prototype.ro}; -Vb(function(){for(var a=oc("pcx86","mouse"),b=0;bb.indexOf("/api/v1/dump")&&(a=Za(b),"json"!=a&&"gz"!=a&&("demandrw"==this.mode||"demandro"==this.mode?(f=hz(this,b),this.yg=!0):this.N="arraybuffer"));var k="Loading "+f+"...";return!!wb(f,this.N,!0,function(l,p,n){fz(g,l,p,n)},function(){g.J(4398046511104,"%s\n",k)})}; -function gz(a,b,c,d){var e=0,f=null;b&&(e=b.byteLength,f=new DataView(b,0,e));b=0;f&&1397375824==f.getUint32(409,!0)&&(b=f.getUint16(414,!0));if(b)a.Ua=b,a.Ra=f.getUint8(416),a.Ta=f.getUint8(428),a.Fb=512;else if(b=Ha[e])b[0]<=a.Ua&&b[1]<=a.Ra?(a.Ua=b[0],a.Ra=b[1],a.Ta=b[2],a.Fb=b[3]||512):a.Ua=0;if(f&&a.Ua){d=0;e=a.Fb>>2;var g=0;a.fb=Array(a.Ua);for(b=0;bd&&a.ua&&!a.ua.flags.fc?137438953472:274877906944;if(a.yg)d?a.J(f,'Unable to connect to disk "%s" (error %d: %s)\n',a.Ib,d,c):(e=a,a.J(131072,'doneLoad("%s")\n',a.Ib),a.A=!0);else if(d)a.J(f,'Unable to load disk "%s" (error %d: %s)\n',a.sc,d,b);else{a.J(131072,'doneLoad("%s")\n',a.Ib);if("string"!=typeof c){gz(a,c);return}try{if(0g&&0c.indexOf("0x")&&'["'!=c.substr(0,2)?JSON.parse(c.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+c+")");if(h.length)if(1==h.length)hc(h[0]);else{a.Ua=h.length;a.Ra=h[0].length;a.Ta=h[0][0].length;var n=h[0][0][0];a.Fb=n&&(n[jz]||n.length)||512;for(g=f=0;g>2&&(J=D[D.length-1],D.length&&D.length--);ez(n,g,k,t,a.Fb,J);for(var B=0;Bb.indexOf("/api/v1/dump")&&(a=Za(b),"json"!=a&&"gz"!=a&&("demandrw"==this.mode||"demandro"==this.mode?(f=hz(this,b),this.zg=!0):this.N="arraybuffer"));var k="Loading "+f+"...";return!!wb(f,this.N,!0,function(l,p,n){fz(g,l,p,n)},function(){g.J(4398046511104,"%s\n",k)})}; +function gz(a,b,c,d){var e=0,f=null;b&&(e=b.byteLength,f=new DataView(b,0,e));b=0;f&&1397375824==f.getUint32(409,!0)&&(b=f.getUint16(414,!0));if(b)a.Va=b,a.Sa=f.getUint8(416),a.Ua=f.getUint8(428),a.Gb=512;else if(b=Ha[e])b[0]<=a.Va&&b[1]<=a.Sa?(a.Va=b[0],a.Sa=b[1],a.Ua=b[2],a.Gb=b[3]||512):a.Va=0;if(f&&a.Va){d=0;e=a.Gb>>2;var g=0;a.gb=Array(a.Va);for(b=0;bd&&a.ua&&!a.ua.flags.hc?137438953472:274877906944;if(a.zg)d?a.J(f,'Unable to connect to disk "%s" (error %d: %s)\n',a.Jb,d,c):(e=a,a.J(131072,'doneLoad("%s")\n',a.Jb),a.A=!0);else if(d)a.J(f,'Unable to load disk "%s" (error %d: %s)\n',a.tc,d,b);else{a.J(131072,'doneLoad("%s")\n',a.Jb);if("string"!=typeof c){gz(a,c);return}try{if(0g&&0c.indexOf("0x")&&'["'!=c.substr(0,2)?JSON.parse(c.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+c+")");if(h.length)if(1==h.length)hc(h[0]);else{a.Va=h.length;a.Sa=h[0].length;a.Ua=h[0][0].length;var n=h[0][0][0];a.Gb=n&&(n[jz]||n.length)||512;for(g=f=0;g>2&&(J=D[D.length-1],D.length&&D.length--);ez(n,g,k,t,a.Gb,J);for(var B=0;Bb&&(b=0);2E3>=2;for(var t=k[iz],w=k[tz],J=0;J>8&255;n[q++]=D>>16&255;n[q++]=D>>24&255}g=l.call(g,n);k.wg=!1;f++}a=vz(a,d,e,c,f,g,b);return b|| -a}return!1}m.info=function(){return this.fb.length?[this.fb.length,this.fb[0].length,this.fb[0][0].length,this.fb[0][0][0][jz]]:[0,0,0,0]}; -m.seek=function(a,b,c,d,e,f){var g=null,h=this.zd,k=this.fb[a];if(k){var l,p=k[b];if(!p&&h.sh&&2>b){p=Array(h.ze);for(l=0;l=p.length&&(d=0);k=p[d];if(!k||k==g)break;if(k[kz]==c){g=k;l=d;break}}if(null===g[tz])if(e)g[tz]=0;else{for(e=1;++l>2,e=Array(d),f=0;f>2;c=(d>((b&3)<<3)&255}return c}; -m.write=function(a,b,c){if(this.nf)return!1;if(b>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.Yc?f=a.Cd+a.Yc&&(a.Yc+=f-(a.Cd+a.Yc)+1):(a.Cd=f,a.Yc=1);d[f]=d[f]&~(255<>=2;for(var t=k[iz],w=k[tz],J=0;J>8&255;n[q++]=D>>16&255;n[q++]=D>>24&255}g=l.call(g,n);k.xg=!1;f++}a=vz(a,d,e,c,f,g,b);return b|| +a}return!1}m.info=function(){return this.gb.length?[this.gb.length,this.gb[0].length,this.gb[0][0].length,this.gb[0][0][0][jz]]:[0,0,0,0]}; +m.seek=function(a,b,c,d,e,f){var g=null,h=this.Ad,k=this.gb[a];if(k){var l,p=k[b];if(!p&&h.th&&2>b){p=Array(h.Ae);for(l=0;l=p.length&&(d=0);k=p[d];if(!k||k==g)break;if(k[kz]==c){g=k;l=d;break}}if(null===g[tz])if(e)g[tz]=0;else{for(e=1;++l>2,e=Array(d),f=0;f>2;c=(d>((b&3)<<3)&255}return c}; +m.write=function(a,b,c){if(this.pf)return!1;if(b>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.Zc?f=a.Dd+a.Zc&&(a.Zc+=f-(a.Dd+a.Zc)+1):(a.Dd=f,a.Zc=1);d[f]=d[f]&~(255<w)break;q|=w<=this.fb.length||k>=this.fb[h].length||l>=this.fb[h][k].length){c="sector (CHS="+h+":"+ -k+":"+l+") out of range ("+b+" changes applied)";b=-1;break}if(this.nf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.fb[h][k][l]){for(k=h[iz].length;kb?-2!=b&&this.J(274877906944,'Unable to restore disk "%s": %s\n',this.sc,c):(this.J(2199023255552,'restore("%s"): restored %d change(s)\n',this.sc,b),lz(this));return b}; -function zz(a){for(var b=0,c;c=qz(a,b++);)Az(c);a=JSON.stringify(a.fb,function(d,e){if("file"!=d)return e});a=a.replace(/,"length":512/g,"").replace(/,"data":\[]/g,"");a=a.replace(/"(c|h|s|l|d|sector|length|data|pattern)":/g,"$1:");a=a.replace(/,"[^"]*":([0-9]+|true|false)/g,"");return a=a.replace(/(c|h|s|l|d|sector|length|data|pattern):/g,'"$1":')}function Az(a){var b=a[iz],c=b.length;if(c<<2==a[jz]){for(var d=c-1,e=b[d],f=0;d--&&b[d]===e;)f++;f++&&(b.length=c-f,a[tz]=e)}} -var rz="c",sz="h",kz="s",jz="l",iz="d",mz="f",oz="o",tz="pattern",az=0;function nz(a,b,c,d,e,f){this.na=a;this.path=b;this.name=c;this.fj=d;this.size=e;this.module=f} -function Bz(a){dc.call(this,"FDC",a,32768);this.dmaRead=Bz.prototype.um;this.dmaWrite=Bz.prototype.vm;this.dmaFormat=Bz.prototype.Wm;this.N=null;this.D=a.diskettes;this.fa=a.server||"";this.O=a.drives;this.P=Cz(a.autoMount);this.T=a.sortBy||"name";"none"==this.T&&(this.T=null);this.H=[];this.W=!Lb()&&"FileReader"in r;this.aa=null;this.De={};this.K=null;this.Y=!1;this.exports={loadDisk:this.Mg,wait:this.Ap}}pa(Bz,dc);m=Bz.prototype; -m.zb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.ia[b]=c,c.onchange=function(){Dz(d)},!0;case "descDisk":case "listDrives":return this.ia[b]=c,c.onchange=function(){var e=Pa(c.value,10);null!=e&&Ez(d,e,!0)},!0;case "loadDisk":return this.ia[b]=c,c.onclick=function(){if(d.K){var e=d.De[d.K];e.controller.Mg(e.zd.Pa,e.yh)}else d.Mg()},!0;case "saveDisk":if(!this.W){c.parentNode.style.display="none";break}this.ia[b]=c;c.onclick=function(){var e=d.ia.listDrives;e&&e.options&&d.A&& -((e=d.A[Pa(e.value,10)||0])?(e=e.na)?(e=Rb(yz(e),"octet-stream",!0,e.Hi.replace(".json",".img")),Ab(e)):d.J(274877906944,"No diskette loaded in drive\n"):d.J(274877906944,"No diskette drive selected\n"))};return!0;case "mountDisk":if(this.W)return this.ia[b]=c,c.onchange=function(){var e=c.children[0];e.children[1].disabled=!e.children[0].files.length},c.onsubmit=function(e){if(e=e.currentTarget[1].files[0]){var f=e.name;Fz(d,Ya(f,!0),f,e)}return!1},!0;c.parentNode.removeChild(c)}return!1}; -m.xc=function(a,b,c,d){this.la=b;this.G=c;this.ca=d;this.ua=a;if(c=Xe(a,"floppyDrives"))"string"==typeof c?this.O=c:(this.N=c,this.O="");if(this.O)try{this.N=eval("("+this.O+")"),this.O=""}catch(p){hc("FDC drive configuration error: "+p.message+" ("+this.O+")")}this.U=Yc(a,"ChipSet");this.P=Cz(Xe(this.ua,"autoMount"),this.P);this.ea=Yc(a,"Panel",!1);Gz(this);ie(b,this,Hz);le(b,this,Iz);if((this.D=Xe(this.ua,"diskettes")||this.D)&&"string"==typeof this.D){var e=this,f=Cb(),g=Jz(e),h=e.D.split(","), -k=0,l=0;for(a=0;a=this.gb.length||k>=this.gb[h].length||l>=this.gb[h][k].length){c="sector (CHS="+h+":"+ +k+":"+l+") out of range ("+b+" changes applied)";b=-1;break}if(this.pf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.gb[h][k][l]){for(k=h[iz].length;kb?-2!=b&&this.J(274877906944,'Unable to restore disk "%s": %s\n',this.tc,c):(this.J(2199023255552,'restore("%s"): restored %d change(s)\n',this.tc,b),lz(this));return b}; +function zz(a){for(var b=0,c;c=qz(a,b++);)Az(c);a=JSON.stringify(a.gb,function(d,e){if("file"!=d)return e});a=a.replace(/,"length":512/g,"").replace(/,"data":\[]/g,"");a=a.replace(/"(c|h|s|l|d|sector|length|data|pattern)":/g,"$1:");a=a.replace(/,"[^"]*":([0-9]+|true|false)/g,"");return a=a.replace(/(c|h|s|l|d|sector|length|data|pattern):/g,'"$1":')}function Az(a){var b=a[iz],c=b.length;if(c<<2==a[jz]){for(var d=c-1,e=b[d],f=0;d--&&b[d]===e;)f++;f++&&(b.length=c-f,a[tz]=e)}} +var rz="c",sz="h",kz="s",jz="l",iz="d",mz="f",oz="o",tz="pattern",az=0;function nz(a,b,c,d,e,f){this.na=a;this.path=b;this.name=c;this.gj=d;this.size=e;this.module=f} +function Bz(a){dc.call(this,"FDC",a,32768);this.dmaRead=Bz.prototype.um;this.dmaWrite=Bz.prototype.vm;this.dmaFormat=Bz.prototype.Wm;this.N=null;this.D=a.diskettes;this.fa=a.server||"";this.O=a.drives;this.P=Cz(a.autoMount);this.T=a.sortBy||"name";"none"==this.T&&(this.T=null);this.H=[];this.W=!Lb()&&"FileReader"in r;this.aa=null;this.Ee={};this.K=null;this.Y=!1;this.exports={loadDisk:this.Ng,wait:this.Ap}}pa(Bz,dc);m=Bz.prototype; +m.Ab=function(a,b,c){var d=this;switch(b){case "listDisks":return this.ia[b]=c,c.onchange=function(){Dz(d)},!0;case "descDisk":case "listDrives":return this.ia[b]=c,c.onchange=function(){var e=Pa(c.value,10);null!=e&&Ez(d,e,!0)},!0;case "loadDisk":return this.ia[b]=c,c.onclick=function(){if(d.K){var e=d.Ee[d.K];e.controller.Ng(e.Ad.Qa,e.zh)}else d.Ng()},!0;case "saveDisk":if(!this.W){c.parentNode.style.display="none";break}this.ia[b]=c;c.onclick=function(){var e=d.ia.listDrives;e&&e.options&&d.A&& +((e=d.A[Pa(e.value,10)||0])?(e=e.na)?(e=Rb(yz(e),"octet-stream",!0,e.Ii.replace(".json",".img")),Ab(e)):d.J(274877906944,"No diskette loaded in drive\n"):d.J(274877906944,"No diskette drive selected\n"))};return!0;case "mountDisk":if(this.W)return this.ia[b]=c,c.onchange=function(){var e=c.children[0];e.children[1].disabled=!e.children[0].files.length},c.onsubmit=function(e){if(e=e.currentTarget[1].files[0]){var f=e.name;Fz(d,Ya(f,!0),f,e)}return!1},!0;c.parentNode.removeChild(c)}return!1}; +m.yc=function(a,b,c,d){this.la=b;this.G=c;this.ca=d;this.ua=a;if(c=Xe(a,"floppyDrives"))"string"==typeof c?this.O=c:(this.N=c,this.O="");if(this.O)try{this.N=eval("("+this.O+")"),this.O=""}catch(p){hc("FDC drive configuration error: "+p.message+" ("+this.O+")")}this.U=Yc(a,"ChipSet");this.P=Cz(Xe(this.ua,"autoMount"),this.P);this.ea=Yc(a,"Panel",!1);Gz(this);ie(b,this,Hz);le(b,this,Iz);if((this.D=Xe(this.ua,"diskettes")||this.D)&&"string"==typeof this.D){var e=this,f=Cb(),g=Jz(e),h=e.D.split(","), +k=0,l=0;for(a=0;ah.na.restore(w)&&(g=!1);g&&h.na&&void 0!==h.Ma&&(h.Xa=h.na.seek(h.ob,h.Ga,h.La));g||(d=!1)}a.I=b[c++]||0;a.Wb=b[c]||Vz;a.J("FDC initialized for %d drive(s)\n",a.A.length);return d}function Jz(a){for(var b=[0,0],c=0;cd.Ra||!b[0])b[0]=d.Ra;if(b[1]>d.Ua||!b[1])b[1]=d.Ua}return b}m.pj=function(a){a=this.A[a];if(void 0!==a){var b={};for(var c in a)b[c]=a[c]}return b}; -m.zl=function(a,b,c){if(a.na){var d=a.na.info(),e=d[2],f=d[1]*e;if(b+c<=d[0]*f)return a.ob=Math.floor(b/f),b%=f,a.Ga=Math.floor(b/e),a.La=b%e+1,a.kb=c*d[3],a.hb=Wz,!0}return!1}; +m.save=function(){var a=new ph(this),b=a.set,c=0,d=[];d[c++]=this.Qa;d[c++]=0;d[c++]=this.da;d[c++]=this.F;d[c++]=this.C;d[c++]=this.B;d[c++]=this.L;for(var e=c++,f=0,g=[],h=0;hh.na.restore(w)&&(g=!1);g&&h.na&&void 0!==h.Ma&&(h.Ya=h.na.seek(h.pb,h.Ga,h.La));g||(d=!1)}a.I=b[c++]||0;a.Xb=b[c]||Vz;a.J("FDC initialized for %d drive(s)\n",a.A.length);return d}function Jz(a){for(var b=[0,0],c=0;cd.Sa||!b[0])b[0]=d.Sa;if(b[1]>d.Va||!b[1])b[1]=d.Va}return b}m.qj=function(a){a=this.A[a];if(void 0!==a){var b={};for(var c in a)b[c]=a[c]}return b}; +m.zl=function(a,b,c){if(a.na){var d=a.na.info(),e=d[2],f=d[1]*e;if(b+c<=d[0]*f)return a.pb=Math.floor(b/f),b%=f,a.Ga=Math.floor(b/e),a.La=b%e+1,a.lb=c*d[3],a.ib=Wz,!0}return!1}; function Mz(a,b){b||(a.M=0);for(var c in a.P){var d=a.P[c],e;if(!(e=d.path))a:{if((e=d.name)&&"None"!=e){var f=a.ia.listDisks;if(f){if(f.options)for(var g=0;gTz(a,e,b,c,!1,d);){if(!("localhost"==Cb()||r.confirm&&r.confirm("Click OK to reload the original disk and discard any changes.")))return a.J(2199023255552, "load cancelled\n"),!1;var g=a,h=c;for(f=0;fb.Ua||f[1]>b.Ra)a.J(274877906944,'Diskette "%s" too large for drive %s\n',d,String.fromCharCode(65+b.Pa)),c=null}c?(b.na=c,b.sc=d,b.Ib=e,Xz(a,e)||Yz(a,d,e),Uz(a,d,e,c),f=c.info(),a.I|=Zz,b.qf||a.J(137438953472,'Mounted "%s" (format %s) in drive %s\n',d,c.L&&c.L.format||"unknown",String.fromCharCode(65+b.Pa)),b.Qg=f[0],b.Pf=f[1],b.Qf=f[2],a.ua&&a.ua.Tc(a.Y)):b.kf=!1;b.hf&&(b.hf=!1,--a.M||Bc(a));Ez(a,b.Pa);b.qf&&(b.qf(),b.qf=null);a.Y=!1} +function Tz(a,b,c,d,e,f){function g(l,p,n,q){Sz(a,l,p,n,q)}var h=-1,k=a.A[b];if(!k)h=15;else if(d&&(d=Db(d),k.Jb.toUpperCase()!=d.toUpperCase())){h=1;Lz(a,b,e,!0);if(k.Ke)return a.J(274877906944,"Drive %d busy\n",b),0;k.Ke=!0;e&&(k.jf=!0,a.M++,a.J('loading diskette "%s"\n',c));k.lf=!!f;(new $y(a,k,"preload")).load(c,d,f,g)||(h=0)}return h} +function Sz(a,b,c,d,e){b.Ke=!1;if(c){var f=c.info();if(c&&f[0]>b.Va||f[1]>b.Sa)a.J(274877906944,'Diskette "%s" too large for drive %s\n',d,String.fromCharCode(65+b.Qa)),c=null}c?(b.na=c,b.tc=d,b.Jb=e,Xz(a,e)||Yz(a,d,e),Uz(a,d,e,c),f=c.info(),a.I|=Zz,b.rf||a.J(137438953472,'Mounted "%s" (format %s) in drive %s\n',d,c.L&&c.L.format||"unknown",String.fromCharCode(65+b.Qa)),b.Rg=f[0],b.Qf=f[1],b.Rf=f[2],a.ua&&a.ua.Uc(a.Y)):b.lf=!1;b.jf&&(b.jf=!1,--a.M||Bc(a));Ez(a,b.Qa);b.rf&&(b.rf(),b.rf=null);a.Y=!1} function Yz(a,b,c,d){if((a=a.ia.listDisks)&&a.options){for(var e=0;e'+a+"");c.innerHTML=a}}m.Ap=function(a){for(var b=0;b'+a+"");c.innerHTML=a}}m.Ap=function(a){for(var b=0;b=this.B&&(this.da&=~(bA|cA),this.C=this.B=0);return c}; -m.Io=function(a,b,c){x(this)&&y(this,a,b,c,"DATA["+this.B+"]");this.B=eA[b].Od){var d=!1;this.C=0;a=fA(this);c=a&dA;switch(c){case gA:fA(this);fA(this);hA(this);break;case iA:var e=fA(this);this.Pa=e&3;var f=this.A[this.Pa];hA(this);jA(this,(f.hb&kA)>>>24);break;case lA:var g="#ff0000";case mA:case nA:g||(g="#00ff00");e=fA(this);b=e>>2&1;this.Pa=e&3;f=this.A[this.Pa];f.Ga=b;e=f.ob=fA(this);var h=fA(this);var k=f.La= -fA(this);var l=fA(this);f.kb=128<g.Ra-1){g.hb=pA|oA;g=!0;break a}g.Xa=null;g.hb=Wz;if(this.U){if(!g.ob&&!g.Ga&&1==g.La&&!g.vg&&31744==Qp(this.U)[0]){g=!1;break a}Rp(this.U,2,this,"dmaRead", -g);Gp(this.U,2)}}g=!0}else a:{g=f;g.hb=qA|oA;if(g.na){x(this)&&(d=Qp(this.U),this.J("%s.doWrite(drive=%d,CHS=%d:%d:%d,LBA=%d,addr=%#X,len=%#X)\n",this.Db,g.Pa,g.ob,g.Ga,g.La,g.ob*g.na.Ra*g.na.Ta+g.Ga*g.na.Ta+g.La-1,d[0],d[1]+1));if(g.Ga>g.Ra-1){g.hb=pA|oA;g=!0;break a}if(!g.ge||g.na.nf){g.hb=rA|oA;g=!0;break a}g.Xa=null;g.hb=Wz;this.U&&(Rp(this.U,2,this,"dmaWrite",g),Gp(this.U,2))}g=!0}d=g}sA(this,f,a,b,e,h,k,l);break;case tA:e=fA(this);this.Pa=e&3;f=this.A[this.Pa];f.ob=f.ye=0;f.hb=uA|vA;hA(this); -d=!0;break;case wA:f=this.A[this.Pa];f.Ga=0;hA(this);jA(this,f.Pa|f.Ga<<2|f.hb&xA);jA(this,f.ob);this.Pa=this.Pa+1&3;break;case yA:e=fA(this);b=e>>2&1;this.Pa=e&3;f=this.A[this.Pa];e=f.ob;h=f.Ga=b;k=f.La=1;l=0;f.hb=Wz;f.na&&(f.Xa=f.na.seek(f.ob,f.Ga,f.La))?l=f.Xa.length>>8:f.hb=qA|oA;sA(this,f,a,b,e,h,k,l);d=!0;break;case zA:e=fA(this);b=e>>2&1;this.Pa=e&3;f=this.A[this.Pa];e=f.ob;h=f.Ga=b;k=1;l=fA(this);f.kb=128<>2&1;e=fA(this);f.ob+=e-f.ye;0>f.ob&&(f.ob=0);f.ob>=f.Ua&&(f.ob=f.Ua-1);f.ye=e;f.hb=uA;f.ob||(f.hb|=vA);hA(this);d=!0;break;default:this.J("unsupported FDC operation: %02x\n",a)}0>>8);jA(a,(b.hb&CA)>>>16);var k=0;if(e!=b.ob||f!=b.Ga)k=g=1;c&DA&&(f^=k,d||(k=0),g=b.La,b.na&&b.na.fb&&b.na.fb[e]&&b.na.fb[e][f]&&b.na.fb[e][f][g-1]&&(g=b.na.fb[e][f][g-1][kz]));e+=k;jA(a,e);jA(a,f);jA(a,g);jA(a,h)}function fA(a){var b=a.F[a.C];a.C++;return b} -function hA(a){a.zf();a.C=a.B=0}function jA(a,b){a.F[a.B++]=b}m.um=function(a,b,c){void 0===b||0>b?this.Pe(a,c):c(-1,!1)};m.vm=function(a,b){return void 0!==b&&0<=b?EA(a,b):-1}; -m.Wm=function(a,b){if(void 0!==b&&0<=b)a:if(a.hb)a=-1;else{a.od[a.af++]=b;if(a.af==a.od.length){a.ob=a.od[0];a.Ga=a.od[1];a.La=a.od[2];a.kb=128<EA(a,a.hj)){a=-1;break a}a.qg++}a.qg>=a.ze&&(b=-1);a=b}else a=-1;return a}; -m.Pe=function(a,b){var c=-1,d=null,e=0;if((!a.hb||a.hb==(FA|oA))&&a.na){do{if(a.Xa&&(e=a.Ma,0<=(c=a.na.read(a.Xa,a.Ma++)))){d=a.Xa;break}a.Xa=a.na.seek(a.ob,a.Ga,a.La,a.gh);if(!a.Xa){a.hb=pA|oA;break}a.gh=a.Xa;a.Xa.dataError&&(a.hb=FA|oA);a.Ma=0;GA(a)}while(1)}b(c,!1,d,e)}; -function EA(a,b){if(a.hb||!a.na)return-1;do{if(a.Xa){if(a.Xa.dataError&&a.Ma>=a.Xa.dataError)break;if(a.na.write(a.Xa,a.Ma++,b))break}a.Xa=a.na.seek(a.ob,a.Ga,a.La,a.gh);if(!a.Xa){a.hb=FA|oA;b=-1;break}a.gh=a.Xa;a.Ma=0;GA(a)}while(1);return b}function GA(a){a.La++;a.La>=a.Qf+1&&(a.La=1,a.Ga++,a.Ga>=a.Pf&&(a.Ga=0,a.ob++))} +m.Io=function(a,b,c){x(this)&&y(this,a,b,c,"DATA["+this.B+"]");this.B=eA[b].Pd){var d=!1;this.C=0;a=fA(this);c=a&dA;switch(c){case gA:fA(this);fA(this);hA(this);break;case iA:var e=fA(this);this.Qa=e&3;var f=this.A[this.Qa];hA(this);jA(this,(f.ib&kA)>>>24);break;case lA:var g="#ff0000";case mA:case nA:g||(g="#00ff00");e=fA(this);b=e>>2&1;this.Qa=e&3;f=this.A[this.Qa];f.Ga=b;e=f.pb=fA(this);var h=fA(this);var k=f.La= +fA(this);var l=fA(this);f.lb=128<g.Sa-1){g.ib=pA|oA;g=!0;break a}g.Ya=null;g.ib=Wz;if(this.U){if(!g.pb&&!g.Ga&&1==g.La&&!g.wg&&31744==Qp(this.U)[0]){g=!1;break a}Rp(this.U,2,this,"dmaRead", +g);Gp(this.U,2)}}g=!0}else a:{g=f;g.ib=qA|oA;if(g.na){x(this)&&(d=Qp(this.U),this.J("%s.doWrite(drive=%d,CHS=%d:%d:%d,LBA=%d,addr=%#X,len=%#X)\n",this.Eb,g.Qa,g.pb,g.Ga,g.La,g.pb*g.na.Sa*g.na.Ua+g.Ga*g.na.Ua+g.La-1,d[0],d[1]+1));if(g.Ga>g.Sa-1){g.ib=pA|oA;g=!0;break a}if(!g.he||g.na.pf){g.ib=rA|oA;g=!0;break a}g.Ya=null;g.ib=Wz;this.U&&(Rp(this.U,2,this,"dmaWrite",g),Gp(this.U,2))}g=!0}d=g}sA(this,f,a,b,e,h,k,l);break;case tA:e=fA(this);this.Qa=e&3;f=this.A[this.Qa];f.pb=f.ze=0;f.ib=uA|vA;hA(this); +d=!0;break;case wA:f=this.A[this.Qa];f.Ga=0;hA(this);jA(this,f.Qa|f.Ga<<2|f.ib&xA);jA(this,f.pb);this.Qa=this.Qa+1&3;break;case yA:e=fA(this);b=e>>2&1;this.Qa=e&3;f=this.A[this.Qa];e=f.pb;h=f.Ga=b;k=f.La=1;l=0;f.ib=Wz;f.na&&(f.Ya=f.na.seek(f.pb,f.Ga,f.La))?l=f.Ya.length>>8:f.ib=qA|oA;sA(this,f,a,b,e,h,k,l);d=!0;break;case zA:e=fA(this);b=e>>2&1;this.Qa=e&3;f=this.A[this.Qa];e=f.pb;h=f.Ga=b;k=1;l=fA(this);f.lb=128<>2&1;e=fA(this);f.pb+=e-f.ze;0>f.pb&&(f.pb=0);f.pb>=f.Va&&(f.pb=f.Va-1);f.ze=e;f.ib=uA;f.pb||(f.ib|=vA);hA(this);d=!0;break;default:this.J("unsupported FDC operation: %02x\n",a)}0>>8);jA(a,(b.ib&CA)>>>16);var k=0;if(e!=b.pb||f!=b.Ga)k=g=1;c&DA&&(f^=k,d||(k=0),g=b.La,b.na&&b.na.gb&&b.na.gb[e]&&b.na.gb[e][f]&&b.na.gb[e][f][g-1]&&(g=b.na.gb[e][f][g-1][kz]));e+=k;jA(a,e);jA(a,f);jA(a,g);jA(a,h)}function fA(a){var b=a.F[a.C];a.C++;return b} +function hA(a){a.Af();a.C=a.B=0}function jA(a,b){a.F[a.B++]=b}m.um=function(a,b,c){void 0===b||0>b?this.Qe(a,c):c(-1,!1)};m.vm=function(a,b){return void 0!==b&&0<=b?EA(a,b):-1}; +m.Wm=function(a,b){if(void 0!==b&&0<=b)a:if(a.ib)a=-1;else{a.pd[a.bf++]=b;if(a.bf==a.pd.length){a.pb=a.pd[0];a.Ga=a.pd[1];a.La=a.pd[2];a.lb=128<EA(a,a.ij)){a=-1;break a}a.rg++}a.rg>=a.Ae&&(b=-1);a=b}else a=-1;return a}; +m.Qe=function(a,b){var c=-1,d=null,e=0;if((!a.ib||a.ib==(FA|oA))&&a.na){do{if(a.Ya&&(e=a.Ma,0<=(c=a.na.read(a.Ya,a.Ma++)))){d=a.Ya;break}a.Ya=a.na.seek(a.pb,a.Ga,a.La,a.hh);if(!a.Ya){a.ib=pA|oA;break}a.hh=a.Ya;a.Ya.dataError&&(a.ib=FA|oA);a.Ma=0;GA(a)}while(1)}b(c,!1,d,e)}; +function EA(a,b){if(a.ib||!a.na)return-1;do{if(a.Ya){if(a.Ya.dataError&&a.Ma>=a.Ya.dataError)break;if(a.na.write(a.Ya,a.Ma++,b))break}a.Ya=a.na.seek(a.pb,a.Ga,a.La,a.hh);if(!a.Ya){a.ib=FA|oA;b=-1;break}a.hh=a.Ya;a.Ma=0;GA(a)}while(1);return b}function GA(a){a.La++;a.La>=a.Rf+1&&(a.La=1,a.Ga++,a.Ga>=a.Qf&&(a.Ga=0,a.pb++))} var Rz="Floppy Drive",$z=4,aA=8,cA=16,bA=64,Pz=128,nA=2,gA=3,iA=4,lA=5,mA=6,tA=7,wA=8,yA=10,zA=13,AA=15,dA=31,DA=128,Wz=0,qA=8,uA=32,oA=64,Qz=192,xA=255,rA=512,pA=1024,FA=8192,BA=65280,CA=16711680,vA=268435456,kA=-16777216,Zz=128,Vz=0;aa={}; -var eA={2:{Od:9,fe:7,name:aa.Yp},3:{Od:3,fe:0,name:aa.cq},4:{Od:2,fe:1,name:aa.aq},5:{Od:9,fe:7,name:aa.hq},6:{Od:9,fe:7,name:aa.Wp},7:{Od:2,fe:0,name:aa.Zp},8:{Od:1,fe:2,name:aa.bq},10:{Od:2,fe:7,name:aa.Xp},13:{Od:6,fe:7,name:aa.Tp},15:{Od:3,fe:0,name:aa.$p}},Hz={1009:Bz.prototype.Bn,1012:Bz.prototype.Dn,1013:Bz.prototype.An,1015:Bz.prototype.Cn},Iz={1010:Bz.prototype.Jo,1013:Bz.prototype.Io,1015:Bz.prototype.Ho}; +var eA={2:{Pd:9,ge:7,name:aa.Yp},3:{Pd:3,ge:0,name:aa.cq},4:{Pd:2,ge:1,name:aa.aq},5:{Pd:9,ge:7,name:aa.hq},6:{Pd:9,ge:7,name:aa.Wp},7:{Pd:2,ge:0,name:aa.Zp},8:{Pd:1,ge:2,name:aa.bq},10:{Pd:2,ge:7,name:aa.Xp},13:{Pd:6,ge:7,name:aa.Tp},15:{Pd:3,ge:0,name:aa.$p}},Hz={1009:Bz.prototype.Bn,1012:Bz.prototype.Dn,1013:Bz.prototype.An,1015:Bz.prototype.Cn},Iz={1010:Bz.prototype.Jo,1013:Bz.prototype.Io,1015:Bz.prototype.Ho}; Vb(function(){for(var a=oc("pcx86","fdc"),b=0;bthis.aa.indexOf("XT")&&(this.ba=!0,this.T=0<=this.aa.indexOf("ATAPI"));this.L=this.T?1:0;a=this.aa.slice(-1);"1"==a?this.L=0:"2"==a&&(this.L=1);this.sa=!Lb()&&"FileReader"in r}pa(HA,dc);m=HA.prototype; -m.zb=function(a,b,c){var d=this;switch(b){case "listDisks":this.ia[b]=c;break;case "saveHD0":case "saveHD1":if(this.sa)return this.ia[b]=c,c.onclick=function(e){return function(){var f=d.A&&d.A[e];if(f&&f.na){f=f.na;var g=f.Hi||f.sc,h=g.lastIndexOf(".");0<=h&&(g=g.substr(0,h));g+=".img";f=Rb(yz(f),"octet-stream",!0,g);Ab(f)}else d.J(274877906944,"Hard drive %d is not available.\n",e)}}(+b.slice(-1)),!0;c.parentNode.style.display="none"}return!1}; -m.xc=function(a,b,c,d){this.la=b;this.G=c;this.ca=d;this.ua=a;d=Xe(a,this.L?"cdromDrives":"drives")||this.xa;if(Array.isArray(d))this.fa=d;else if("string"==typeof d)try{this.fa=eval("("+d+")")}catch(e){hc("HDC drive configuration error: "+e.message+" ("+d+")")}this.U=Yc(a,"ChipSet");this.K=0;this.ja=3;this.ba?(this.L?(ie(b,this,IA),le(b,this,JA),b.P[KA]=2,b.U[KA]=2):(ie(b,this,LA),le(b,this,MA),b.P[NA]=2,b.U[NA]=2),this.K++,this.U&&this.U.model==nn&&this.K++,this.ja=2):(ie(b,this,OA),le(b,this,PA)); -jh(c,19,this.$n.bind(this));jh(c,64,this.ao.bind(this));this.reset();if((this.Ia=Yc(a,"FDC"))&&this.T&&this.ia.listDisks)for(a=0;ak.na.restore(g)&&(t=!1),t&&void 0!==k.Ma&&(k.Xa= -k.na.seek(k.Vc,k.Ga,k.La+k.pg)));t||(e=!1);null!=a.Y&&1>=d&&(a.Y|=(f.type&3)<<(1-d<<1))}0<=a.Pa&&(a.zd=a.A[a.Pa]);c&&a.J("HDC initialized for %d drive(s)\n",a.A.length);return e}function XA(a,b){b=void 0===b?a.kb:b;if(!a.buffer||a.buffer.lengtha.aa.indexOf("PCJS"))b.Ua=e,b.Ra=d;null==b.na&&(b.na=new $y(a,b,b.mode))}}} -m.zl=function(a,b,c){if(a.na){var d=a.na.info(),e=d[0];if(e){var f=d[2],g=d[1]*f;if(b+c<=e*g)return a.Vc=Math.floor(b/g),b%=g,a.Ga=Math.floor(b/f),a.La=b%f,a.kb=c*d[3],a.errorCode=UA,!0}}return!1}; -function QA(a,b){b||(a.M=0);for(var c=0;ck.na.restore(g)&&(t=!1),t&&void 0!==k.Ma&&(k.Ya= +k.na.seek(k.Wc,k.Ga,k.La+k.qg)));t||(e=!1);null!=a.Y&&1>=d&&(a.Y|=(f.type&3)<<(1-d<<1))}0<=a.Qa&&(a.Ad=a.A[a.Qa]);c&&a.J("HDC initialized for %d drive(s)\n",a.A.length);return e}function XA(a,b){b=void 0===b?a.lb:b;if(!a.buffer||a.buffer.lengtha.aa.indexOf("PCJS"))b.Va=e,b.Sa=d;null==b.na&&(b.na=new $y(a,b,b.mode))}}} +m.zl=function(a,b,c){if(a.na){var d=a.na.info(),e=d[0];if(e){var f=d[2],g=d[1]*f;if(b+c<=e*g)return a.Wc=Math.floor(b/g),b%=g,a.Ga=Math.floor(b/f),a.La=b%f,a.lb=c*d[3],a.errorCode=UA,!0}}return!1}; +function QA(a,b){b||(a.M=0);for(var c=0;c=this.B&&(this.C=this.B=0,this.da&=~(ZA|$A|aB));return c};m.$o=function(a,b,c){y(this,a,b,c,"DATA["+this.B+"]");this.B=a&&(this.da|=ZA,this.da&=~cB,dB(this))};m.Zn=function(a,b){var c=this.da;y(this,a,void 0,b,"STATUS",c);this.C=e.Pd?(a.da=fB,a.Pe(e,function(f){0<=f?(gB(a),a.U&&a.U.model==nn&&(a.da=0),a.da=a.da|SA|hB|iB):(a.da=jB,a.I=kB)},!1)):(a.da=SA,e.me?(a.D=lB|mB,gB(a)):a.da|=hB)));return d}m.bj=function(a,b){return eB(this,a,b)|eB(this,a,b)<<8}; -function nB(a,b,c,d){var e=a.zd;if(e&&e.kb>=e.Pd)if(0>oB(a,e,c))a.da=jB,a.I=kB;else if(1==e.Ma||e.Ma==e.Pd)if(x(a,65568)&&y(a,b,c,d,"DATA["+e.Ma+"]"),1=e.Pd)a.da|=iB;else if(e.me){pB(a,e);return}gB(a)}}m.dl=function(a,b,c){nB(this,a,b&255,c);nB(this,a,b>>8&255,c)};m.Cj=function(a,b){var c=this.I;y(this,a,void 0,b,"ERROR",c);return c};m.il=function(a,b,c){y(this,a,b,c,"WPREC");this.qa=b}; +m.cp=function(a,b,c){y(this,a,b,c,"RESET");this.pa=b;this.U&&Li(this.U,ls);RA(this)};m.Xn=function(a,b){y(this,a,void 0,b,"CONFIG",this.Y);return this.Y};m.bp=function(a,b,c){y(this,a,b,c,"PULSE");this.oa=b;this.da=cB|$A|aB};m.ap=function(a,b,c){y(this,a,b,c,"PATTERN");this.ma=b};m.Bi=function(a,b,c){y(this,a,b,c,"NOISE")}; +function eB(a,b,c){var d=-1,e=a.Ad;e&&(d=a.Qe(e,function(){}),1==e.Ma||e.Ma==e.Qd)&&(x(a,65568)&&y(a,b,void 0,c,"DATA["+e.Ma+"]",d),1=e.Qd?(a.da=fB,a.Qe(e,function(f){0<=f?(gB(a),a.U&&a.U.model==nn&&(a.da=0),a.da=a.da|SA|hB|iB):(a.da=jB,a.I=kB)},!1)):(a.da=SA,e.ne?(a.D=lB|mB,gB(a)):a.da|=hB)));return d}m.cj=function(a,b){return eB(this,a,b)|eB(this,a,b)<<8}; +function nB(a,b,c,d){var e=a.Ad;if(e&&e.lb>=e.Qd)if(0>oB(a,e,c))a.da=jB,a.I=kB;else if(1==e.Ma||e.Ma==e.Qd)if(x(a,65568)&&y(a,b,c,d,"DATA["+e.Ma+"]"),1=e.Qd)a.da|=iB;else if(e.ne){pB(a,e);return}gB(a)}}m.dl=function(a,b,c){nB(this,a,b&255,c);nB(this,a,b>>8&255,c)};m.Cj=function(a,b){var c=this.I;y(this,a,void 0,b,"ERROR",c);return c};m.il=function(a,b,c){y(this,a,b,c,"WPREC");this.qa=b}; m.Dj=function(a,b){var c=this.D;y(this,a,void 0,b,"SECCNT",c);return c};m.gl=function(a,b,c){y(this,a,b,c,"SECCNT");this.D=b};m.Ej=function(a,b){var c=this.ea;y(this,a,void 0,b,"SECNUM",c);return c};m.hl=function(a,b,c){y(this,a,b,c,"SECNUM");this.ea=b};m.Aj=function(a,b){var c=this.O;y(this,a,void 0,b,"CYLLO",c);return c};m.cl=function(a,b,c){y(this,a,b,c,"CYLLO");this.O=b};m.zj=function(a,b){var c=this.N;y(this,a,void 0,b,"CYLHI",c);return c};m.bl=function(a,b,c){y(this,a,b,c,"CYLHI");this.N=b}; m.Bj=function(a,b){var c=this.H;y(this,a,void 0,b,"DRVHD",c);return c};m.el=function(a,b,c){y(this,a,b,c,"DRVHD");this.H=b;this.da=this.A[this.H&qB?1:0]?this.da|SA|hB:this.da&~SA};m.Fj=function(a,b){var c=this.da;y(this,a,void 0,b,"STATUS",c);this.da&SA&&(this.da&=~fB);return c};m.al=function(a,b,c){y(this,a,b,c,"COMMAND");this.ga=b;this.U&&Li(this.U,ns+this.L);rB(this)};m.fl=function(a,b,c){y(this,a,b,c,"FDR");this.P&sB&&!(b&sB)&&(this.I=tB);this.P=b}; -function rB(a){var b=!1,c=!1,d=a.ga,e=d&~uB;e==vB||e==wB?d=e:e==xB||e==yB?d&=~(zB|AB):e==BB&&(d&=~zB);e=a.H&qB?1:0;var f=a.H&CB,g=a.O|(a.N&DB)<<8,h=a.ea,k=a.D||256;a.Pa=-1;a.zd=null;a.I=EB;a.da=SA|hB;var l=a.A[e];a.J(65569,"%s.doATC(%d,%#04x): %s%s\n",a.Db,2*a.L+e,d,FB[d],l?"":" (drive "+e+" not present)");if(l){a.Pa=e;a.zd=l;l.Vc=g;l.Ga=f;l.La=h;l.kb=k*(l.Pd=l.Fb);l.Xa=null;l.Ma=0;l.errorCode=0;l.me=!1;switch(d){case GB:HB(a,l)&&(c=!0);break;case vB:b=c=!0;break;case IB:case JB:if(!KB(a,l,d))break; -case xB:l.me||a.J(65568,"%s.doATCRead(%d,%d:%d:%d,%d)\n",a.Db,e,l.Vc,l.Ga,l.La,k);a.da=fB;a.Pe(l,function(p){0<=p&&a.U?(gB(a),a.da=SA|hB|iB):(a.da=jB,a.I=kB)},!1);c=!0;break;case LB:XA(l),l.me=!0,l.kb=l.Pd=12,a.D=mB;case yB:l.me||a.J(65568,"%s.doATCWrite(%d,%d:%d:%d,%d)\n",a.Db,e,l.Vc,l.Ga,l.La,k);a.da=iB;c=!0;break;case BB:b=c=!0;break;case wB:b=c=!0;break;case MB:a.I=tB;b=c=!0;break;case NB:l.Ra=f+1,l.Ta=k,b=c=!0}c?b&&gB(a):(a.da=jB,a.I=OB,x(a)&&a.J("%s.doATC(%#04x): unsupported operation\n",a.Db, +function rB(a){var b=!1,c=!1,d=a.ga,e=d&~uB;e==vB||e==wB?d=e:e==xB||e==yB?d&=~(zB|AB):e==BB&&(d&=~zB);e=a.H&qB?1:0;var f=a.H&CB,g=a.O|(a.N&DB)<<8,h=a.ea,k=a.D||256;a.Qa=-1;a.Ad=null;a.I=EB;a.da=SA|hB;var l=a.A[e];a.J(65569,"%s.doATC(%d,%#04x): %s%s\n",a.Eb,2*a.L+e,d,FB[d],l?"":" (drive "+e+" not present)");if(l){a.Qa=e;a.Ad=l;l.Wc=g;l.Ga=f;l.La=h;l.lb=k*(l.Qd=l.Gb);l.Ya=null;l.Ma=0;l.errorCode=0;l.ne=!1;switch(d){case GB:HB(a,l)&&(c=!0);break;case vB:b=c=!0;break;case IB:case JB:if(!KB(a,l,d))break; +case xB:l.ne||a.J(65568,"%s.doATCRead(%d,%d:%d:%d,%d)\n",a.Eb,e,l.Wc,l.Ga,l.La,k);a.da=fB;a.Qe(l,function(p){0<=p&&a.U?(gB(a),a.da=SA|hB|iB):(a.da=jB,a.I=kB)},!1);c=!0;break;case LB:XA(l),l.ne=!0,l.lb=l.Qd=12,a.D=mB;case yB:l.ne||a.J(65568,"%s.doATCWrite(%d,%d:%d:%d,%d)\n",a.Eb,e,l.Wc,l.Ga,l.La,k);a.da=iB;c=!0;break;case BB:b=c=!0;break;case wB:b=c=!0;break;case MB:a.I=tB;b=c=!0;break;case NB:l.Sa=f+1,l.Ua=k,b=c=!0}c?b&&gB(a):(a.da=jB,a.I=OB,x(a)&&a.J("%s.doATC(%#04x): unsupported operation\n",a.Eb, a.ga))}}function gB(a){a.U&&(a.P&PB||Ni(a.U,ns+a.L,120))} -function dB(a){a.C=0;var b=QB(a),c=b,d=QB(a),e=d&32,f=e>>5,g=d&31,h=QB(a),k=QB(a),l=h<<2&768|k,p=h&63,n=QB(a),q=QB(a),t=a.A[f];t&&(t.Vc=l,t.Ga=g,t.La=p,t.kb=n*t.Fb);switch(b){case RB:SB(a,t?t.errorCode:TB);UB(a,d);UB(a,h);UB(a,k);UB(a,VB|e);b=-1;break;case bB:for(d=0;0<=(b=QB(a));)t&&db?"invalid drive ("+f+")":"unsupported operation")}}function QB(a){var b=-1,c=a.C;cb?this.Pe(a,c):c(-1,!1)};m.xm=function(a,b){return void 0!==b&&0<=b?oB(this,a,b):-1};m.Xm=function(a,b){void 0!==b&&0<=b?(a.MaoB(this,a,a.hj)){a=-1;break a}a.qg++}a.qg>=a.ze&&(b=-1);a=b}else a=-1;return a}; -function cC(a,b,c){b.errorCode=TB;a.J(65568,"%s.doRead(%d,%d:%d:%d,%d)\n",a.Db,b.Pa,b.Vc,b.Ga,b.La,b.kb/b.Fb|0);if(b.na&&(b.Xa=null,a.U)){b.errorCode=UA;Rp(a.U,3,a,"dmaRead",b);Gp(a.U,3,function(d){d||b.errorCode!=UA||(b.errorCode=TB);c(b.errorCode?WB:VB)});return}c(b.errorCode?WB:VB)} -function eC(a,b,c){b.errorCode=TB;a.J(65568,"%s.doWrite(%d,%d:%d:%d,%d)\n",a.Db,b.Pa,b.Vc,b.Ga,b.La,b.kb/b.Fb|0);if(b.na&&(b.Xa=null,a.U)){b.errorCode=UA;Rp(a.U,3,a,"dmaWrite",b);Gp(a.U,3,function(d){d||(b.errorCode==UA&&(b.errorCode=TB),b.errorCode==iC&&(b.errorCode=UA));c(b.errorCode?WB:VB)});return}c(b.errorCode?WB:VB)} +function dB(a){a.C=0;var b=QB(a),c=b,d=QB(a),e=d&32,f=e>>5,g=d&31,h=QB(a),k=QB(a),l=h<<2&768|k,p=h&63,n=QB(a),q=QB(a),t=a.A[f];t&&(t.Wc=l,t.Ga=g,t.La=p,t.lb=n*t.Gb);switch(b){case RB:SB(a,t?t.errorCode:TB);UB(a,d);UB(a,h);UB(a,k);UB(a,VB|e);b=-1;break;case bB:for(d=0;0<=(b=QB(a));)t&&db?"invalid drive ("+f+")":"unsupported operation")}}function QB(a){var b=-1,c=a.C;cb?this.Qe(a,c):c(-1,!1)};m.xm=function(a,b){return void 0!==b&&0<=b?oB(this,a,b):-1};m.Xm=function(a,b){void 0!==b&&0<=b?(a.MaoB(this,a,a.ij)){a=-1;break a}a.rg++}a.rg>=a.Ae&&(b=-1);a=b}else a=-1;return a}; +function cC(a,b,c){b.errorCode=TB;a.J(65568,"%s.doRead(%d,%d:%d:%d,%d)\n",a.Eb,b.Qa,b.Wc,b.Ga,b.La,b.lb/b.Gb|0);if(b.na&&(b.Ya=null,a.U)){b.errorCode=UA;Rp(a.U,3,a,"dmaRead",b);Gp(a.U,3,function(d){d||b.errorCode!=UA||(b.errorCode=TB);c(b.errorCode?WB:VB)});return}c(b.errorCode?WB:VB)} +function eC(a,b,c){b.errorCode=TB;a.J(65568,"%s.doWrite(%d,%d:%d:%d,%d)\n",a.Eb,b.Qa,b.Wc,b.Ga,b.La,b.lb/b.Gb|0);if(b.na&&(b.Ya=null,a.U)){b.errorCode=UA;Rp(a.U,3,a,"dmaWrite",b);Gp(a.U,3,function(d){d||(b.errorCode==UA&&(b.errorCode=TB),b.errorCode==iC&&(b.errorCode=UA));c(b.errorCode?WB:VB)});return}c(b.errorCode?WB:VB)} function gC(a,b,c){b.errorCode=TB;XA(b);a.U?(b.errorCode=UA,Rp(a.U,3,a,"dmaWriteBuffer",b),Gp(a.U,3,function(d){d||b.errorCode!=UA||(b.errorCode=TB);c(b.errorCode?WB:VB)})):c(b.errorCode?WB:VB)} -m.Pe=function(a,b,c){var d=-1,e=null,f=0;if(a.errorCode)return b&&b(d,!1,e,f),d;var g=!1!==c?1:0;if(a.me)return a.Ma=b.Ta+c&&(b.La=c,b.Ga++,b.Ga>=b.Ra&&(b.Ga=0,b.Vc++),a.H=a.H&~CB|b.Ga&CB)} -function KB(a,b,c){if(a.T){if(b.type&&c==IB)return!1;if(!b.type&&c==JB)return HB(a,b),!1;XA(b);a=function(d,e){b.buffer[d]=e&255;b.buffer[d+1]=e>>8&255};c=function(d,e,f){e||(e="");for(var g=0;g>8&255,a.da=a.da&~fB|iB,a.D=lB):(a.da=SA,a.D=lB|mB);gB(a)}function f(B,Y){k(B,Y>>8);k(B+1,Y)}function g(B,Y,xa){Y||(Y="");for(var U=0;Un&&(B=n);return B}function p(B){return(b.buffer[B]&255)<<8|b.buffer[B+1]&255}var n=b.buffer.length;var q=0;var t;var w=b.buffer[0]&255;a.J(65536,"%s.packet(%#04x): %s (drive %d)\n",a.Db,w,wC[w],b.Pa);switch(w){case xC:w= +m.Qe=function(a,b,c){var d=-1,e=null,f=0;if(a.errorCode)return b&&b(d,!1,e,f),d;var g=!1!==c?1:0;if(a.ne)return a.Ma=b.Ua+c&&(b.La=c,b.Ga++,b.Ga>=b.Sa&&(b.Ga=0,b.Wc++),a.H=a.H&~CB|b.Ga&CB)} +function KB(a,b,c){if(a.T){if(b.type&&c==IB)return!1;if(!b.type&&c==JB)return HB(a,b),!1;XA(b);a=function(d,e){b.buffer[d]=e&255;b.buffer[d+1]=e>>8&255};c=function(d,e,f){e||(e="");for(var g=0;g>8&255,a.da=a.da&~fB|iB,a.D=lB):(a.da=SA,a.D=lB|mB);gB(a)}function f(B,Y){k(B,Y>>8);k(B+1,Y)}function g(B,Y,xa){Y||(Y="");for(var U=0;Un&&(B=n);return B}function p(B){return(b.buffer[B]&255)<<8|b.buffer[B+1]&255}var n=b.buffer.length;var q=0;var t;var w=b.buffer[0]&255;a.J(65536,"%s.packet(%#04x): %s (drive %d)\n",a.Eb,w,wC[w],b.Qa);switch(w){case xC:w= 0;break;case yC:n=0;break;case zC:n=l(3);k(0,5);k(1,128);k(2,0);k(3,33);k(4,31);h(5,0,3);g(8,"PCJS.ORG",8);g(16,b.name,16);g(32,"1.0",4);break;case AC:q=p(2)<<16|p(4);w=p(7);q<<=11;n=w<<11;XA(b,n);var J=1;var D=0;w=q>>>15;q&=32767;var E=n;for(t=0;0E&&(H=E);c(w,q,H,t);t+=H;E-=H;q=0;w++}--J||e(!0);w=-1;break;case BC:q=p(2)<<16|p(4);w=0;break;case CC:n=l(7);q=b.buffer[2]>>0&15;switch(q){case 0:f(0,10);k(2,1);k(3,1);k(4,0);k(5,20);k(6,1);k(7,0);f(8,0);f(10,0);break;default:a.J(65536, -"%s.packet(%#04x): unsupported format %d\n",a.Db,w,q),w=-1}break;case DC:w=0;break;case EC:n=l(7);H=b.buffer[2]>>0&63;switch(H){case FC:h(0,0,n);f(0,n-2);k(2,1);q=8;k(q,H);k(q+1,n-8-2);break;case GC:h(0,0,n);f(0,n-2);q=8;k(q,H);k(q+1,n-8-2);k(q+2,8);k(q+4,113);k(q+6,41);f(q+8,5632);f(q+10,2);f(q+12,128);f(q+14,5632);break;default:a.J(65536,"%s.packet(%#04x): unsupported page code %d\n",a.Db,w,H),w=-1}break;default:w=-1}0<=w&&e(0>8)&&128>8||!this.U)||(a=ms,a=!(this.U.hc[a>>3].Md&1<<(a&7)));return a?!0:!1}; +"%s.packet(%#04x): unsupported format %d\n",a.Eb,w,q),w=-1}break;case DC:w=0;break;case EC:n=l(7);H=b.buffer[2]>>0&63;switch(H){case FC:h(0,0,n);f(0,n-2);k(2,1);q=8;k(q,H);k(q+1,n-8-2);break;case GC:h(0,0,n);f(0,n-2);q=8;k(q,H);k(q+1,n-8-2);k(q+2,8);k(q+4,113);k(q+6,41);f(q+8,5632);f(q+10,2);f(q+12,128);f(q+14,5632);break;default:a.J(65536,"%s.packet(%#04x): unsupported page code %d\n",a.Eb,w,H),w=-1}break;default:w=-1}0<=w&&e(0>8)&&128>8||!this.U)||(a=ms,a=!(this.U.ic[a>>3].Nd&1<<(a&7)));return a?!0:!1}; var VA="Hard Drive",NA=496,KA=368,tB=1,EB=0,OB=4,kB=16,mB=1,lB=2,DB=3,CB=15,qB=16,jB=1,iB=8,hB=16,SA=64,fB=128,zB=1,AB=2,uB=15,vB=16,xB=32,yB=48,BB=64,wB=112,MB=144,NB=145,GB=8,LB=160,IB=161,JB=236,PB=2,sB=4,kC=0,lC=64,mC=2,nC=6,oC=10,pC=12,qC=20,rC=40,sC=42,tC=46,uC=54,vC=99,xC=0,yC=3,zC=18,AC=40,BC=43,CC=67,DC=69,EC=90,FC=1,GC=42,VB=0,WB=2,ZB=0,$B=1,RB=3,aC=5,bC=8,dC=10,bB=12,fC=15,XB=224,YB=228,UA=0,TB=4,iC=20,TA=0,cB=1,ZA=2,$A=4,aB=8,YA=32,FB={8:"Device Reset",16:"Restore (Recalibrate)",32:"Read", 48:"Write",64:"Read Verify",80:"Format Track",112:"Seek",144:"Diagnose",145:"Set Parameters",160:"Packet Request",161:"Identify Packet Device",236:"Identify Device"},HC={},wC=(HC[xC]="Test Unit Ready",HC[yC]="Request Sense",HC[zC]="Inquiry",HC[AC]="Read",HC[BC]="Seek",HC[CC]="Read TOC",HC[DC]="Play Audio",HC[EC]="Mode Sense",HC),hC={0:"Test Drive Ready",1:"Recalibrate",3:"Request Sense Status",4:"Format Drive",5:"Read Verify",6:"Format Track",7:"Format Bad Track",8:"Read",10:"Write",11:"Seek",12:"Initialize Drive Characteristics", -13:"Read ECC Burst Error Length",14:"Read Data from Sector Buffer",15:"Write Data to Sector Buffer",224:"RAM Diagnostic",227:"Drive Diagnostic",228:"Controller Diagnostic",229:"Read Long",230:"Write Long"},OA={800:HA.prototype.Yn,801:HA.prototype.Zn,802:HA.prototype.Xn},LA={496:HA.prototype.bj,497:HA.prototype.Cj,498:HA.prototype.Dj,499:HA.prototype.Ej,500:HA.prototype.Aj,501:HA.prototype.zj,502:HA.prototype.Bj,503:HA.prototype.Fj},IA={368:HA.prototype.bj,369:HA.prototype.Cj,370:HA.prototype.Dj,371:HA.prototype.Ej, -372:HA.prototype.Aj,373:HA.prototype.zj,374:HA.prototype.Bj,375:HA.prototype.Fj},PA={800:HA.prototype.$o,801:HA.prototype.cp,802:HA.prototype.bp,803:HA.prototype.ap,807:HA.prototype.Ai,811:HA.prototype.Ai,815:HA.prototype.Ai},MA={496:HA.prototype.dl,497:HA.prototype.il,498:HA.prototype.gl,499:HA.prototype.hl,500:HA.prototype.cl,501:HA.prototype.bl,502:HA.prototype.el,503:HA.prototype.al,1014:HA.prototype.fl},JA={368:HA.prototype.dl,369:HA.prototype.il,370:HA.prototype.gl,371:HA.prototype.hl,372:HA.prototype.cl, -373:HA.prototype.bl,374:HA.prototype.el,375:HA.prototype.al,886:HA.prototype.fl};Vb(function(){for(var a=oc("pcx86","hdc"),b=0;bthis.C&&this.F.length&&(this.C=0);if(0>this.C||a!=this.F[this.C])this.F.splice(0,0,a),this.C=0;this.C--}else this.ma?a="end":a=this.F[this.C+1];b=[];if(a){a=a.replace(/""/g,"'");var d=0,e=null;c=c||";";for(var f=0;f<=a.length;f++){var g=a.charAt(f);if('"'==g||"'"==g)e?g==e&&(e=null):e=g;else if(g==c&&!e||!g)b.push(gb(a.substring(d,f))),d=f+1}}return b}; +13:"Read ECC Burst Error Length",14:"Read Data from Sector Buffer",15:"Write Data to Sector Buffer",224:"RAM Diagnostic",227:"Drive Diagnostic",228:"Controller Diagnostic",229:"Read Long",230:"Write Long"},OA={800:HA.prototype.Yn,801:HA.prototype.Zn,802:HA.prototype.Xn},LA={496:HA.prototype.cj,497:HA.prototype.Cj,498:HA.prototype.Dj,499:HA.prototype.Ej,500:HA.prototype.Aj,501:HA.prototype.zj,502:HA.prototype.Bj,503:HA.prototype.Fj},IA={368:HA.prototype.cj,369:HA.prototype.Cj,370:HA.prototype.Dj,371:HA.prototype.Ej, +372:HA.prototype.Aj,373:HA.prototype.zj,374:HA.prototype.Bj,375:HA.prototype.Fj},PA={800:HA.prototype.$o,801:HA.prototype.cp,802:HA.prototype.bp,803:HA.prototype.ap,807:HA.prototype.Bi,811:HA.prototype.Bi,815:HA.prototype.Bi},MA={496:HA.prototype.dl,497:HA.prototype.il,498:HA.prototype.gl,499:HA.prototype.hl,500:HA.prototype.cl,501:HA.prototype.bl,502:HA.prototype.el,503:HA.prototype.al,1014:HA.prototype.fl},JA={368:HA.prototype.dl,369:HA.prototype.il,370:HA.prototype.gl,371:HA.prototype.hl,372:HA.prototype.cl, +373:HA.prototype.bl,374:HA.prototype.el,375:HA.prototype.al,886:HA.prototype.fl};Vb(function(){for(var a=oc("pcx86","hdc"),b=0;bthis.C&&this.F.length&&(this.C=0);if(0>this.C||a!=this.F[this.C])this.F.splice(0,0,a),this.C=0;this.C--}else this.ma?a="end":a=this.F[this.C+1];b=[];if(a){a=a.replace(/""/g,"'");var d=0,e=null;c=c||";";for(var f=0;f<=a.length;f++){var g=a.charAt(f);if('"'==g||"'"==g)e?g==e&&(e=null):e=g;else if(g==c&&!e||!g)b.push(gb(a.substring(d,f))),d=f+1}}return b}; function JC(a,b,c){var d=a;b=b||32;if(c)if(32==b)d=a>>>0;else if(32>b)d=a&(1<a||a>=b)d=a%b,0>d&&(d+=b)}else 32>=b?d=a<<32-b>>32-b:(b=Math.pow(2,b-1),a>=b?(d=a%b,(a/b|0)&1&&(d-=b)):a<-b&&(d=a%b,((-a-1)/b|0)&1?d&&(d+=b):d||(d-=b)));a!=d&&(a=d);return a} function KC(a,b,c){for(c=void 0===c?-1:c;c--&&b.length;){var d=b.pop();if(2>a.length)return!1;var e=a.pop();var f=a.pop();switch(d){case "*":f*=e;break;case "/":if(!e)return!1;f=Math.trunc(f/e);break;case "^/":if(!e)return!1;f%=e;break;case "+":f+=e;break;case "-":f-=e;break;case "<<":f<<=e;break;case ">>":f>>=e;break;case ">>>":f>>>=e;break;case "<":f=f":f=f>e?1:0;break;case ">=":f=f>=e?1:0;break;case "==":f=f==e?1:0;break;case "!=":f=f!=e?1:0;break; case "&":f&=e;break;case "!":case "|":f|=e;break;case "^!":f^=e;break;case "&&":f=f&&e?1:0;break;case "||":f=f||e?1:0;break;case ",,":f=JC(f,18,!0)*Math.pow(2,18)+JC(e,18,!0);break;case "^_":"^_"==d&&(e=35-(e&255));e&&(f=JC(f,0,!0),f=0=|>>>|>>|>|<=|<<|<|-|\+|\^\/|\/|\*|,,| )/);d=LC(a,b,0,b.length,a.I,c);void 0!==d&&e&&TC(a,null,d)}return d} function UC(a,b){var c,d=a.pa[0],e=a.pa[1],f="("==d||"{"==d||"["==d?"\\":"",g="["==d?"\\":"";for(f=new RegExp(f+d+"([^"+g+d+g+e+"]+)"+f+e);c=b.match(f);){g=SC(a,c[1]);if(void 0===g)return;c=d+c[1]+e;g=null!=g?RC(a,g):"undefined";b=b.replace(c,g)}if(a.Na.length)for(d=a.Na[0],e=a.Na[1],f="("==d||"{"==d||"["==d?"\\":"",g="["==d?"\\":"",f=new RegExp(f+d+"([^"+g+d+g+e+"]+)"+f+e);c=b.match(f);)b=a.ol(b,c[1]);for(;d=b.match(/\$([a-z]+)/i);){e=null;switch(d[1].toLowerCase()){case "ops":e=a.ea-a.qa}if(null== e)break;b=b.replace(d[0],e.toString())}return b}function NC(a,b){for(;b;){var c;switch(b&3){case 1:a=-JC(a);break;case 2:a^=-1;break;case 3:for(c=35;0<=c&&!(a&Math.pow(2,c));)c--;a=35-c}b>>>=2}return a} -function MC(a,b,c,d,e){e=void 0===e?0:e;var f=Array.isArray(d)?d:void 0;if(void 0!=b){var g=a.Fh(b);if(0<=g)g=a.Gh(g);else if(g=b,a.L[g]?g=a.L[g].value:(g=g.substr(0,6),g=a.L[g]&&a.L[g].value),void 0!=g){var h=a.L[b]&&a.L[b].zp;h&&(f?f.push(h):(f=SC(a,h,d),void 0!==f?g+=f:(d||a.J("undefined %s: %s (%s)\n",c||"value",b,h),g=void 0)))}else g=Pa(b,1c&&(e+=" '"+String.fromCharCode(c)+"'")}a.J("%s%s\n",null!=b?b+": ":"",e);return d}function VC(a,b){var c=0;if(a.L){if(b)return TC(a,b,a.L[b]&&a.L[b].value);b=Object.keys(a.L);b.sort();for(var d=0;d>2:0,!!e)}return c=0>c?a.replace(/^0+([0-9A-F]+)$/i,"$1"):a}function WC(a,b,c){for(var d=0;d>2:0,!!e)}return c=0>c?a.replace(/^0+([0-9A-F]+)$/i,"$1"):a}function WC(a,b,c){for(var d=0;d=":11,">":11,"<=":11,"<":11,">>>":12,">>":12,"<<":12,"-":13,"+":13,"^/":14,"/":14,"*":14,"^_":19,"{":20,"}":20},OC={",,":1,"||":5,"&&":6,"!=":10,"==":10,">=":11,">":11,"<=":11,"<":11,">>>":12,">>":12,"<<":12,"-":13,"+":13,"^/":14,"/":14,"*":14,"!":15,"|":15,"^!":15,"&":15,"^_":19,"{":20,"}":20}; -function XC(a){IC.call(this,"Debugger",a,-1);this.za=4;this.sa=5;this.wa=1048575;this.T=YC(this,0,0);this.Ea=YC(this,0,0);this.ja=YC(this,0,0);this.D=[];this.A=this.aa=this.N=[];ZC(this);this.Aa=0;this.M=[];this.oa=!0;this.ga=this.ib=-1;$C(this);this.Oa={};aD(this,a.messages);this.Ba=a.commands;var b=this;void 0===r.pcx86&&(r.pcx86=function(c){return bD(b,c)})}pa(XC,IC);m=XC.prototype; -m.xc=function(a,b,c,d){this.la=b;this.G=c;this.ua=a;this.Ia=Yc(a,"FDC",!1);this.rb=Yc(a,"HDC",!1);this.H=Yc(a,"Mouse",!1);(c=Xe(a,"messages"))&&aD(this,c);this.Ba=Xe(a,"commands")||this.Ba;x(this,268435456)?this.U=Yc(a,"ChipSet"):x(this,536870912)&&(this.video=Yc(a,"Video"));this.sa=b.M>>2;this.wa=b.N;this.Ab=new Ag(this.G,7,"DBG");this.xa=cD;80186<=this.G.model&&(this.xa=cD.slice(),this.xa[15]=dD,80286<=this.G.model&&(this.xa[15]=eD,80386<=this.G.model&&(this.za=8)));qn(this,4096,function(e){fD(d, -d.G.nc,e[0])});qn(this,8,function(e){if(e=e[0]){var f=MC(d,e);if(void 0===f)d.J("invalid selector: %s\n",e);else if(e=gD(d,f,hD),d.J("dumpSel(%#06x): %%%0*x\n",e?e.V:f,d.sa,e?e.Tb:null),e){f=!1;if(e.type&4096){if(e.type&2048){var g="code"+(e.type&512?",readable":",execonly");e.type&1024&&(g+=",conforming")}else g="data"+(e.type&512?",writable":",readonly"),e.type&1024&&(g+=",expdown");e.type&256&&(g+=",accessed")}else{var h=iD[e.type];h&&(g=h[0],f=h[1])}!g||e.wb&32768||(g+=",not present");d.J("%s type=%#04x (%s) ext=%#06x dpl=%#04x\n", -f?"seg="+Xa(e.ta&65535)+" off="+Xa(e.Ya):"base="+v(e.ta,d.sa)+" limit="+jD(e.Ya),e.type>>8,g,e.ext&-65296,e.wc)}}else d.J("no selector\n")});qn(this,4294967296,function(e){var f;(e=e[0])&&(f=MC(d,e));if(void 0===f)d.J("invalid MCB\n");else for(d.J("dumpMCB(%#06x)\n",f);f;){e=YC(d,0,f);var g=d.ya(e,1),h=d.nd(e,2),k=d.nd(e,5);if(77!=g&&90!=g)break;d.J("%s: '%s' PID=%#06x LEN=%#06x \"%s\"\n",kD(0,f),String.fromCharCode(g),h,k,lD(d,e,8));f+=1+k}});qn(this,8192,function(e){fD(d,d.G.W,e[0],d.G.W!==d.G.nc)}); -qn(this,16,function(e){a:{if(e=e[0]){var f=MC(d,e);if(void 0===f){d.J("invalid task selector: %s\n",e);break a}e=gD(d,f,hD)}else e=d.G.ga;d.J("dumpTSS(%#06x): %%0*x\n",e?e.V:f,d.sa,e?e.ta:null);if(e){f="";var g=e.type&-513,h=256==g?4:8,k=256==g?mD:nD;for(q in k){var l=k[q];var p=e.ta+l;var n=Wh(d.G,p,2);2304==g&&(n|=Wh(d.G,p+2,2)<<16);f&&(f+="\n");f+=Xa(l)+" "+eb(q+":",-11)+v(n,h)}if(2304==g){var q=0;for(l=n>>>16;lq;){p=e.ta+l;n=Wh(d.G,p,2);p=2;g="";if(!p||4>=8;f+="\n"+Xa(l)+" ports "+Xa(q)+"-"+Xa(q+15)+": "+g;q+=16;l+=2}}d.print(f+"\n")}}});We(a,"symbols",!1)&&(this.B=null,this.qb=0,this.Fa=!1,jh(this.G,48,this.eo.bind(this)),jh(this.G,65,this.fo.bind(this)),this.W=null,jh(this.G,104,this.ho.bind(this)));Bc(this)}; -function oD(a,b,c,d,e,f){b=lD(a,b);var g=gD(a,d);g=g?g.Ya+1:0;var h=(e?"_CODE":"_DATA")+v(c,2);f&&a.J(2199023255552,"%s %s(%04X)=#%04X len %0X\n",b,e?"code":"data",c,d,g);e=pD(a,b,c);e[b+h]=0;rs(a,b,c,d,0,null,g,e)}function qD(a,b,c){var d=rD(a,null,b);c&&(d?a.J(2199023255552,"%s #%04X removed\n",d,b):a.J(2199023255552,"unable to remove module for segment #%04X\n",b))} -function sD(a,b,c,d){var e=a.nd(b,2),f=a.nd(b,2),g=tD(a,b,4),h=tD(a,b,4),k=YC(a,tD(a,b,4),a.nd(b,2));b=YC(a,tD(a,b,4),a.nd(b,2));b=lD(a,b).toUpperCase();k=lD(a,k).toUpperCase();var l=(c?"_CODE":"_DATA")+v(e,2);d&&a.J(2199023255552,"%s%s %s(%04X)=%04X:%0X len %0X\n",b==k?"":b+"!",k,c?"code":"data",e,f,g,h);c=pD(a,k,e);c[k+l]=g;rs(a,k,e,f,g,null,h,c)} +function XC(a){IC.call(this,"Debugger",a,-1);this.za=4;this.sa=5;this.wa=1048575;this.T=YC(this,0,0);this.Ea=YC(this,0,0);this.ja=YC(this,0,0);this.D=[];this.A=this.aa=this.N=[];ZC(this);this.Aa=0;this.M=[];this.oa=!0;this.ga=this.jb=-1;$C(this);this.Oa={};aD(this,a.messages);this.Ba=a.commands;var b=this;void 0===r.pcx86&&(r.pcx86=function(c){return bD(b,c)})}pa(XC,IC);m=XC.prototype; +m.yc=function(a,b,c,d){this.la=b;this.G=c;this.ua=a;this.Ia=Yc(a,"FDC",!1);this.sb=Yc(a,"HDC",!1);this.H=Yc(a,"Mouse",!1);(c=Xe(a,"messages"))&&aD(this,c);this.Ba=Xe(a,"commands")||this.Ba;x(this,268435456)?this.U=Yc(a,"ChipSet"):x(this,536870912)&&(this.video=Yc(a,"Video"));this.sa=b.M>>2;this.wa=b.N;this.Bb=new Ag(this.G,7,"DBG");this.xa=cD;80186<=this.G.model&&(this.xa=cD.slice(),this.xa[15]=dD,80286<=this.G.model&&(this.xa[15]=eD,80386<=this.G.model&&(this.za=8)));qn(this,4096,function(e){fD(d, +d.G.oc,e[0])});qn(this,8,function(e){if(e=e[0]){var f=MC(d,e);if(void 0===f)d.J("invalid selector: %s\n",e);else if(e=gD(d,f,hD),d.J("dumpSel(%#06x): %%%0*x\n",e?e.V:f,d.sa,e?e.Ub:null),e){f=!1;if(e.type&4096){if(e.type&2048){var g="code"+(e.type&512?",readable":",execonly");e.type&1024&&(g+=",conforming")}else g="data"+(e.type&512?",writable":",readonly"),e.type&1024&&(g+=",expdown");e.type&256&&(g+=",accessed")}else{var h=iD[e.type];h&&(g=h[0],f=h[1])}!g||e.xb&32768||(g+=",not present");d.J("%s type=%#04x (%s) ext=%#06x dpl=%#04x\n", +f?"seg="+Xa(e.ta&65535)+" off="+Xa(e.Za):"base="+v(e.ta,d.sa)+" limit="+jD(e.Za),e.type>>8,g,e.ext&-65296,e.xc)}}else d.J("no selector\n")});qn(this,4294967296,function(e){var f;(e=e[0])&&(f=MC(d,e));if(void 0===f)d.J("invalid MCB\n");else for(d.J("dumpMCB(%#06x)\n",f);f;){e=YC(d,0,f);var g=d.ya(e,1),h=d.od(e,2),k=d.od(e,5);if(77!=g&&90!=g)break;d.J("%s: '%s' PID=%#06x LEN=%#06x \"%s\"\n",kD(0,f),String.fromCharCode(g),h,k,lD(d,e,8));f+=1+k}});qn(this,8192,function(e){fD(d,d.G.W,e[0],d.G.W!==d.G.oc)}); +qn(this,16,function(e){a:{if(e=e[0]){var f=MC(d,e);if(void 0===f){d.J("invalid task selector: %s\n",e);break a}e=gD(d,f,hD)}else e=d.G.ga;d.J("dumpTSS(%#06x): %%0*x\n",e?e.V:f,d.sa,e?e.ta:null);if(e){f="";var g=e.type&-513,h=256==g?4:8,k=256==g?mD:nD;for(q in k){var l=k[q];var p=e.ta+l;var n=Wh(d.G,p,2);2304==g&&(n|=Wh(d.G,p+2,2)<<16);f&&(f+="\n");f+=Xa(l)+" "+eb(q+":",-11)+v(n,h)}if(2304==g){var q=0;for(l=n>>>16;lq;){p=e.ta+l;n=Wh(d.G,p,2);p=2;g="";if(!p||4>=8;f+="\n"+Xa(l)+" ports "+Xa(q)+"-"+Xa(q+15)+": "+g;q+=16;l+=2}}d.print(f+"\n")}}});We(a,"symbols",!1)&&(this.B=null,this.rb=0,this.Fa=!1,jh(this.G,48,this.eo.bind(this)),jh(this.G,65,this.fo.bind(this)),this.W=null,jh(this.G,104,this.ho.bind(this)));Bc(this)}; +function oD(a,b,c,d,e,f){b=lD(a,b);var g=gD(a,d);g=g?g.Za+1:0;var h=(e?"_CODE":"_DATA")+v(c,2);f&&a.J(2199023255552,"%s %s(%04X)=#%04X len %0X\n",b,e?"code":"data",c,d,g);e=pD(a,b,c);e[b+h]=0;rs(a,b,c,d,0,null,g,e)}function qD(a,b,c){var d=rD(a,null,b);c&&(d?a.J(2199023255552,"%s #%04X removed\n",d,b):a.J(2199023255552,"unable to remove module for segment #%04X\n",b))} +function sD(a,b,c,d){var e=a.od(b,2),f=a.od(b,2),g=tD(a,b,4),h=tD(a,b,4),k=YC(a,tD(a,b,4),a.od(b,2));b=YC(a,tD(a,b,4),a.od(b,2));b=lD(a,b).toUpperCase();k=lD(a,k).toUpperCase();var l=(c?"_CODE":"_DATA")+v(e,2);d&&a.J(2199023255552,"%s%s %s(%04X)=%04X:%0X len %0X\n",b==k?"":b+"!",k,c?"code":"data",e,f,g,h);c=pD(a,k,e);c[k+l]=g;rs(a,k,e,f,g,null,h,c)} function uD(a,b,c,d){c=lD(a,c).toUpperCase();var e=rD(a,c,b);d&&(e?a.J(2199023255552,"%s %04X removed\n",c,b):a.J(2199023255552,"unable to remove %s for section %04X\n",c,b))}m.eo=function(){var a=this.G;if(null!=this.B&&2752554==a.D){var b=a.M&65535,c=a.L&65535,d=YC(this,A(a)+12,a.T.V);switch(tD(this,d)){case 336:sD(this,YC(this,a.H,b),!c,this.B)}}return!0}; m.fo=function(a){var b=this.G,c=b.D&65535,d=b.H&65535,e=b.I&65535,f=b.M&65535,g=b.L&65535,h=b.K&65535,k=b.fa.V;if(null==this.B)return 79==c&&kh(b,a,function(l){return function(){62342!=(b.D&65535)?(b.D=b.D&-65536|62342,l.J(2199023255552,"INT 41 handling enabled\n"),l.B=!0):(l.J(2199023255552,"INT 41 monitoring enabled\n"),l.B=!1)}}(this)),!0;switch(c){case 3:break;case 64:break;case 79:this.B&&(b.D=b.D&-65536|62342,this.J(2199023255552,"INT 41 handling enabled\n"));break;case 80:oD(this,YC(this,h, -k),d+1,e,!(g&1),this.B);break;case 82:qD(this,d,this.B);break;case 90:break;case 92:case 98:case 100:case 101:case 102:case 103:break;case 93:case 112:case 61441:break;case 127:this.B&&(b.D=b.D&-65536|(this.Fa?0:1),this.J(2199023255552,"INT 41 CHECKFAULT: fault=%04X type=%04X trap=%b\n",d,e,!this.Fa));break;case 131:this.B&&(a=YC(this,b.M,e),this.qb++?(this.J("TRAPFAULT failed\n"),vD(this,this.A,a,!0,!0),this.qb=0,Xl(this)):(this.J("INT 41 TRAPFAULT: fault=%04X error=%08X addr=%s\n",d,b.L,wD(a)), -this.xd(this.A,a,!0),$C(this,!0)));break;case 141:this.B&&(b.D=b.D&-65536|1);break;case 336:sD(this,YC(this,b.H,f),!g,this.B);break;case 338:uD(this,d,YC(this,b.K,f),this.B);break;case 61442:break;default:this.B&&this.J(2199023255552,"INT 41: AX=%04X (unhandled)\n",c)}this.Fa=!1;return!this.B}; +k),d+1,e,!(g&1),this.B);break;case 82:qD(this,d,this.B);break;case 90:break;case 92:case 98:case 100:case 101:case 102:case 103:break;case 93:case 112:case 61441:break;case 127:this.B&&(b.D=b.D&-65536|(this.Fa?0:1),this.J(2199023255552,"INT 41 CHECKFAULT: fault=%04X type=%04X trap=%b\n",d,e,!this.Fa));break;case 131:this.B&&(a=YC(this,b.M,e),this.rb++?(this.J("TRAPFAULT failed\n"),vD(this,this.A,a,!0,!0),this.rb=0,Xl(this)):(this.J("INT 41 TRAPFAULT: fault=%04X error=%08X addr=%s\n",d,b.L,wD(a)), +this.yd(this.A,a,!0),$C(this,!0)));break;case 141:this.B&&(b.D=b.D&-65536|1);break;case 336:sD(this,YC(this,b.H,f),!g,this.B);break;case 338:uD(this,d,YC(this,b.K,f),this.B);break;case 61442:break;default:this.B&&this.J(2199023255552,"INT 41: AX=%04X (unhandled)\n",c)}this.Fa=!1;return!this.B}; m.ho=function(a){var b=this.G,c=b.D&255,d=b.D>>8&255,e=b.H&65535,f=b.I&65535,g=b.M&65535,h=b.K&65535,k=b.fa.V;if(null==this.W){if(67==d){if(609437257==b.ha((b.ba.V<<4)+10))return this.J(2199023255552,"ignoring INT 68 from IFSHLP.SYS\n"),!0;if(1111835735==b.ha((b.ba.V<<4)+130)||1111835735==b.ha((b.ba.V<<4)+95))return this.J(2199023255552,"ignoring INT 68 from WDEB386.EXE\n"),!0;kh(b,a,function(l){return function(){62342!=(b.D&65535)?(b.D=b.D&-65536|62342,l.J(2199023255552,"INT 68 handling enabled\n"), l.B=l.W=!0):(l.J(2199023255552,"INT 68 monitoring enabled\n"),l.W=!1)}}(this))}return!0}switch(d){case 67:this.W&&(b.D=b.D&-65536|62342);break;case 68:this.W&&(a=Pj(b.ba,this.Rm.bind(this)))&&(b.K=a[0],wh(b,a[1]));break;case 72:qD(this,e,this.B);break;case 79:break;case 80:32==c?oD(this,YC(this,h,k),0,f,!0,this.W):128>c?oD(this,YC(this,h,k),e+1,c&64?g:f,!(c&1),this.W):sD(this,YC(this,h,k),!(c&1),this.W);this.W&&(b.D=b.D&-256|1);break;default:this.W&&this.J(2199023255552,"INT 68: AH=%02X (unhandled)\n", d)}return!this.W};m.Rm=function(){var a=this.G;5==(a.D&255)&&(a.I=a.L=0,a.D=a.D&-256|1);return!1}; -m.zb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.ba=this.ia[b]=c,c.onkeydown=function(e){if(13==e.keyCode){var f=d.ba.value;d.ba.value="";bD(d,f,!0)}else if(27==e.keyCode)d.ba.value=f="";else if(38==e.keyCode?(f=null,d.C>>0)+1;a.wb=f;a.type=g;a.ext=k;a.Tb=d;oh(a,!0,!0,!1)}}return a}m.Zb=function(a,b,c){var d=a&&a.va;if(void 0==d&&(d=-1,a)){var e=gD(this,a.V,a.type);e&&(b=a.Ha||0,c=c||1,e=-1===e.Tb||e.Ad&&(b>>>0)+c>e.Rb||!e.Ad&&(b>>>0)+c<=e.Rb?e.ta+b|0:-1,d=e,a.va=d)}return d};m.ya=function(a,b){var c=255,d=this.Zb(a,!1,1);-1!==d&&(c=Wh(this.G,d,1,a.type==AD)|0,b&&BD(this,a,b));return c}; -m.tb=function(a,b){return a.Nb?tD(this,a,b?4:0):this.nd(a,b?2:0)};m.nd=function(a,b){var c=65535,d=this.Zb(a,!1,2);-1!==d&&(c=Wh(this.G,d,2,a.type==AD)|0,b&&BD(this,a,b));return c};function tD(a,b,c){var d=-1,e=a.Zb(b,!1,4);-1!==e&&(d=Wh(a.G,e,4,b.type==AD)|0,c&&BD(a,b,c));return d}m.ub=function(a,b,c,d){var e=this.Zb(a,!0,1);-1!==e&&(a.type!=AD?this.G.ub(e,b):fe(this.la,e,b),c&&BD(this,a,c),d||$e(this.G,!0))}; -m.kg=function(a,b,c,d){var e=this.Zb(a,!0,2);-1!==e&&(a.type!=AD?this.G.mb(e,b):he(this.la,e,b),c&&BD(this,a,c),d||$e(this.G,!0))};function YC(a,b,c,d,e,f,g){return CD(a,{},b,c,d,e,f,g)}function CD(a,b,c,d,e,f,g,h){b.Ha=c||0;b.V=d;b.va=e;b.type=f||(yD(a)?hD:zD);b.Nb=void 0!=g?g:!(!a.G||4!=a.G.ba.X);b.Yb=void 0!=h?h:!(!a.G||4!=a.G.ba.Ec);b.Sd=!1;return b}function DD(a){return[a.Ha,a.V,a.va,a.Sd,a.Nb,a.Yb,0]}function ED(a){return{Ha:a[0],V:a[1],va:a[2],Sd:a[3],Nb:a[4],Yb:a[5]}} -function FD(a,b,c){if(void 0!=b.V&&(a=gD(a,b.V,b.type))){var d=b.Ha;if(!a.Ad){if(d>>>0>=a.Rb)return!1}else if(d>>>0e?void 0!=g?(f=SC(a,b),e=void 0):(e=SC(a,b),void 0==e&&(f=void 0)):(g=SC(a,b.substring(0,e)),f=SC(a,b.substring(e+1)),e=void 0)}void 0!=f&&(h=YC(a,f,g,e,c),d||FD(a,h,!0)||(a.J("invalid offset: %s\n",wD(h)),h=void 0));return h}function JD(a,b,c){c&&(c=c.match(/(['"])(.*?)\1/))&&(b.Nm=a.$f(b.mq=c[2]))}m.ol=function(a,b){var c=GD(this,b);return a.replace("["+b+"]",c?v(this.tb(c),c.Nb?8:4):"undefined")}; -function BD(a,b,c){c=c||1;void 0!=b.va&&(b.va+=c);void 0!=b.V&&(b.Ha+=c,FD(a,b)||(b.Ha=0,b.va=void 0))}function kD(a,b,c){return void 0!=b?v(b,4)+":"+v(a,a&-65536||c?8:4):v(a)}function wD(a){switch(a.type){case zD:case KD:var b="&";break;case hD:b="#";break;case ID:b="%";break;case AD:b="%%";break;default:b=a.V?"":"%"}return a.type>=ID||void 0==a.V?b+v(a.va):b+kD(a.Ha,a.V,a.Yb)} +m.Ab=function(a,b,c){var d=this;switch(b){case "debugInput":return this.ba=this.ia[b]=c,c.onkeydown=function(e){if(13==e.keyCode){var f=d.ba.value;d.ba.value="";bD(d,f,!0)}else if(27==e.keyCode)d.ba.value=f="";else if(38==e.keyCode?(f=null,d.C>>0)+1;a.xb=f;a.type=g;a.ext=k;a.Ub=d;oh(a,!0,!0,!1)}}return a}m.$b=function(a,b,c){var d=a&&a.va;if(void 0==d&&(d=-1,a)){var e=gD(this,a.V,a.type);e&&(b=a.Ha||0,c=c||1,e=-1===e.Ub||e.Bd&&(b>>>0)+c>e.Sb||!e.Bd&&(b>>>0)+c<=e.Sb?e.ta+b|0:-1,d=e,a.va=d)}return d};m.ya=function(a,b){var c=255,d=this.$b(a,!1,1);-1!==d&&(c=Wh(this.G,d,1,a.type==AD)|0,b&&BD(this,a,b));return c}; +m.ub=function(a,b){return a.Ob?tD(this,a,b?4:0):this.od(a,b?2:0)};m.od=function(a,b){var c=65535,d=this.$b(a,!1,2);-1!==d&&(c=Wh(this.G,d,2,a.type==AD)|0,b&&BD(this,a,b));return c};function tD(a,b,c){var d=-1,e=a.$b(b,!1,4);-1!==e&&(d=Wh(a.G,e,4,b.type==AD)|0,c&&BD(a,b,c));return d}m.vb=function(a,b,c,d){var e=this.$b(a,!0,1);-1!==e&&(a.type!=AD?this.G.vb(e,b):fe(this.la,e,b),c&&BD(this,a,c),d||$e(this.G,!0))}; +m.lg=function(a,b,c,d){var e=this.$b(a,!0,2);-1!==e&&(a.type!=AD?this.G.nb(e,b):he(this.la,e,b),c&&BD(this,a,c),d||$e(this.G,!0))};function YC(a,b,c,d,e,f,g){return CD(a,{},b,c,d,e,f,g)}function CD(a,b,c,d,e,f,g,h){b.Ha=c||0;b.V=d;b.va=e;b.type=f||(yD(a)?hD:zD);b.Ob=void 0!=g?g:!(!a.G||4!=a.G.ba.X);b.Zb=void 0!=h?h:!(!a.G||4!=a.G.ba.Fc);b.Td=!1;return b}function DD(a){return[a.Ha,a.V,a.va,a.Td,a.Ob,a.Zb,0]}function ED(a){return{Ha:a[0],V:a[1],va:a[2],Td:a[3],Ob:a[4],Zb:a[5]}} +function FD(a,b,c){if(void 0!=b.V&&(a=gD(a,b.V,b.type))){var d=b.Ha;if(!a.Bd){if(d>>>0>=a.Sb)return!1}else if(d>>>0e?void 0!=g?(f=SC(a,b),e=void 0):(e=SC(a,b),void 0==e&&(f=void 0)):(g=SC(a,b.substring(0,e)),f=SC(a,b.substring(e+1)),e=void 0)}void 0!=f&&(h=YC(a,f,g,e,c),d||FD(a,h,!0)||(a.J("invalid offset: %s\n",wD(h)),h=void 0));return h}function JD(a,b,c){c&&(c=c.match(/(['"])(.*?)\1/))&&(b.Nm=a.ag(b.mq=c[2]))}m.ol=function(a,b){var c=GD(this,b);return a.replace("["+b+"]",c?v(this.ub(c),c.Ob?8:4):"undefined")}; +function BD(a,b,c){c=c||1;void 0!=b.va&&(b.va+=c);void 0!=b.V&&(b.Ha+=c,FD(a,b)||(b.Ha=0,b.va=void 0))}function kD(a,b,c){return void 0!=b?v(b,4)+":"+v(a,a&-65536||c?8:4):v(a)}function wD(a){switch(a.type){case zD:case KD:var b="&";break;case hD:b="#";break;case ID:b="%";break;case AD:b="%%";break;default:b=a.V?"":"%"}return a.type>=ID||void 0==a.V?b+v(a.va):b+kD(a.Ha,a.V,a.Zb)} function lD(a,b,c){var d="";for(c=c||256;d.length>>a.G.ab;g=1}a.J("blockid %s blockaddr used size type\n",d?"linear ":"physical");a.J("-------- --------- ---------- ------ ------ ----\n");c=-1;for(var h=0;g--;)(d=b[f])&&d.type==we&&(d=Qe(a.G,e,!1,!0)),d.type==c?h++||a.J("...\n"):(c=d.type,h=ud[c],c==ye&&(d=d.He,h+=" -> "+ud[d.type]),d&&a.J("%08x %%%08x %%%%%08x %#06x %#06x %s\n",d.id,f<c&&(c=ub(MD,a.substr(b,2)));return c}; -function ND(a,b){var c=0,d=a.Gh(b);if(null!=d)switch(b){case OD:case PD:case QD:case RD:case SD:case TD:case UD:case VD:c=2;break;case WD:case XD:case YD:case ZD:case $D:case aE:case bE:case cE:case dE:case eE+fE:case eE+gE:case eE+hE:case eE+iE:case eE+jE:case eE+kE:c=4;break;case lE:case mE:case nE:case oE:case pE:case qE:case rE:case sE:case tE:case uE:case vE:case wE:case xE:c=8;break;case yE:c=a.za}return c?v(d,c):"??"} -m.Gh=function(a){if(0<=a){var b=this.G;switch(a){case OD:var c=b.D&255;break;case PD:c=b.I&255;break;case QD:c=b.M&255;break;case RD:c=b.H&255;break;case SD:c=b.D>>8&255;break;case TD:c=b.I>>8&255;break;case UD:c=b.M>>8&255;break;case VD:c=b.H>>8&255;break;case WD:c=b.D&65535;break;case XD:c=b.I&65535;break;case YD:c=b.M&65535;break;case ZD:c=b.H&65535;break;case $D:c=A(b)&65535;break;case aE:c=b.N&65535;break;case bE:c=b.L&65535;break;case cE:c=b.K&65535;break;case dE:c=C(b)&65535;break;case yE:c= -ih(b);break;case eE+fE:c=b.fa.V;break;case eE+gE:c=hh(b);break;case eE+hE:c=b.T.V;break;case eE+iE:c=b.xa.V;break;default:if(80286==this.G.model)a==tE&&(c=b.ma);else if(80386<=this.G.model)switch(a){case lE:c=b.D;break;case mE:c=b.I;break;case nE:c=b.M;break;case oE:c=b.H;break;case pE:c=A(b);break;case qE:c=b.N;break;case rE:c=b.L;break;case sE:c=b.K;break;case tE:c=b.ma;break;case uE:c=b.Ki;break;case vE:c=b.md;break;case wE:c=b.kc;break;case eE+jE:c=b.Fa.V;break;case eE+kE:c=b.Ia.V;break;case xE:c= +function fD(a,b,c,d){var e=0,f=0,g=b.length;if(c){e=a.$b(GD(a,c));if(-1===e){a.J("invalid address: %s\n\n");return}f=e>>>a.G.bb;g=1}a.J("blockid %s blockaddr used size type\n",d?"linear ":"physical");a.J("-------- --------- ---------- ------ ------ ----\n");c=-1;for(var h=0;g--;)(d=b[f])&&d.type==we&&(d=Qe(a.G,e,!1,!0)),d.type==c?h++||a.J("...\n"):(c=d.type,h=ud[c],c==ye&&(d=d.Ie,h+=" -> "+ud[d.type]),d&&a.J("%08x %%%08x %%%%%08x %#06x %#06x %s\n",d.id,f<c&&(c=ub(MD,a.substr(b,2)));return c}; +function ND(a,b){var c=0,d=a.Hh(b);if(null!=d)switch(b){case OD:case PD:case QD:case RD:case SD:case TD:case UD:case VD:c=2;break;case WD:case XD:case YD:case ZD:case $D:case aE:case bE:case cE:case dE:case eE+fE:case eE+gE:case eE+hE:case eE+iE:case eE+jE:case eE+kE:c=4;break;case lE:case mE:case nE:case oE:case pE:case qE:case rE:case sE:case tE:case uE:case vE:case wE:case xE:c=8;break;case yE:c=a.za}return c?v(d,c):"??"} +m.Hh=function(a){if(0<=a){var b=this.G;switch(a){case OD:var c=b.D&255;break;case PD:c=b.I&255;break;case QD:c=b.M&255;break;case RD:c=b.H&255;break;case SD:c=b.D>>8&255;break;case TD:c=b.I>>8&255;break;case UD:c=b.M>>8&255;break;case VD:c=b.H>>8&255;break;case WD:c=b.D&65535;break;case XD:c=b.I&65535;break;case YD:c=b.M&65535;break;case ZD:c=b.H&65535;break;case $D:c=A(b)&65535;break;case aE:c=b.N&65535;break;case bE:c=b.L&65535;break;case cE:c=b.K&65535;break;case dE:c=C(b)&65535;break;case yE:c= +ih(b);break;case eE+fE:c=b.fa.V;break;case eE+gE:c=hh(b);break;case eE+hE:c=b.T.V;break;case eE+iE:c=b.xa.V;break;default:if(80286==this.G.model)a==tE&&(c=b.ma);else if(80386<=this.G.model)switch(a){case lE:c=b.D;break;case mE:c=b.I;break;case nE:c=b.M;break;case oE:c=b.H;break;case pE:c=A(b);break;case qE:c=b.N;break;case rE:c=b.L;break;case sE:c=b.K;break;case tE:c=b.ma;break;case uE:c=b.Li;break;case vE:c=b.nd;break;case wE:c=b.lc;break;case eE+jE:c=b.Fa.V;break;case eE+kE:c=b.Ia.V;break;case xE:c= C(b)}}}return c}; -function zE(a,b){b=UC(a,b)||b;for(var c=0,d,e;0<=(c=b.indexOf("@",c));)e=a.Fh(b,c+1),0<=e&&(b=b.substr(0,c)+ND(a,e)+b.substr(c+1+MD[e].length)),c++;for(c=0;0<=(c=b.indexOf("#",c));)e=b.substr(c+1,2),d=Pa(e,16),null!=d&&32<=d&&127>d?(d=e+" '"+String.fromCharCode(d)+"'",b=b.replace("#"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("$",c));)e=b.substr(c+1,9),(d=GD(a,e))?(d=e+' "'+lD(a,d)+'"',b=b.replace("$"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("^",c));)e=b.substr(c+1,9),(d=GD(a,e))?(BD(a,d), -d=e+' "'+lD(a,d,11)+'"',b=b.replace("^"+e,d),c+=d.length):c++;return b}m.message=function(a,b){b=void 0===b?0:b;if(b&1&&this.G){var c=fb(" at %s (%%%X)$1",wD(YC(this,C(this.G),hh(this.G))),this.G.Y);a=a.replace(/(\n?)$/,c)}Hc(this.uc,0x800000000000)?this.Ka.push(a):this.Ca&&a==this.Ca||(this.Ca=a,b&&Hc(this.uc,70368744177664)&&(a=a.replace(/(\n?)$/," (cpu halted)$1"),Xl(this)),this.print(a,b),this.G&&(a=this.G,a.flags.jg=!0,$e(a)))}; +function zE(a,b){b=UC(a,b)||b;for(var c=0,d,e;0<=(c=b.indexOf("@",c));)e=a.Gh(b,c+1),0<=e&&(b=b.substr(0,c)+ND(a,e)+b.substr(c+1+MD[e].length)),c++;for(c=0;0<=(c=b.indexOf("#",c));)e=b.substr(c+1,2),d=Pa(e,16),null!=d&&32<=d&&127>d?(d=e+" '"+String.fromCharCode(d)+"'",b=b.replace("#"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("$",c));)e=b.substr(c+1,9),(d=GD(a,e))?(d=e+' "'+lD(a,d)+'"',b=b.replace("$"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("^",c));)e=b.substr(c+1,9),(d=GD(a,e))?(BD(a,d), +d=e+' "'+lD(a,d,11)+'"',b=b.replace("^"+e,d),c+=d.length):c++;return b}m.message=function(a,b){b=void 0===b?0:b;if(b&1&&this.G){var c=fb(" at %s (%%%X)$1",wD(YC(this,C(this.G),hh(this.G))),this.G.Y);a=a.replace(/(\n?)$/,c)}Hc(this.vc,0x800000000000)?this.Ka.push(a):this.Ca&&a==this.Ca||(this.Ca=a,b&&Hc(this.vc,70368744177664)&&(a=a.replace(/(\n?)$/," (cpu halted)$1"),Xl(this)),this.print(a,b),this.G&&(a=this.G,a.flags.kg=!0,$e(a)))}; function Jm(a,b,c,d){var e;d||(d=x(a,2)&&0>AE.indexOf(b),d||(e=BE[b])&&(d=x(a,e)?!0:32768==e&&x(a,e=65536)));if(d){var f=a.G.D>>8&255;var g=a.G.M&255;if(33==b&&11==f||32768==e&&128<=g||65536==e&&128>g)d=!1}d&&((e=(e=Pc[b])&&e[f]||"")&&(e=zE(a,e)),a.J("INT %#04X: AH=%#04X at %s %s\n",b,f,kD(c-2-a.G.ba.ta,hh(a.G)),e));return d} -function Ic(a,b,c,d,e,f,g,h){h=Gc(h||0,32);f||(h=Gc(h,549755813888));if(void 0==e||Hc(a.uc,h))h="",void 0!=e&&(h=hh(a.G),e-=a.G.ba.ta,h="at "+kD(e,h)),void 0==d?a.J("%s.inPort(%#06X,%s): %#04X %s\n",b.Db,c,f||"unknown",g,h):a.J("%s.outPort(%#06X,%s,%#04X) %s\n",b.Db,c,f||"unknown",d,h)}m.Hh=function(){this.J("Type ? for help with PCx86 Debugger commands\n");CE(this);if(this.Ba){var a=this.Ba;this.Ba=null;bD(this,a)}}; +function Ic(a,b,c,d,e,f,g,h){h=Gc(h||0,32);f||(h=Gc(h,549755813888));if(void 0==e||Hc(a.vc,h))h="",void 0!=e&&(h=hh(a.G),e-=a.G.ba.ta,h="at "+kD(e,h)),void 0==d?a.J("%s.inPort(%#06X,%s): %#04X %s\n",b.Eb,c,f||"unknown",g,h):a.J("%s.outPort(%#06X,%s,%#04X) %s\n",b.Eb,c,f||"unknown",d,h)}m.Ih=function(){this.J("Type ? for help with PCx86 Debugger commands\n");CE(this);if(this.Ba){var a=this.Ba;this.Ba=null;bD(this,a)}}; function $C(a,b){var c;if(Ai(a)){if(!a.O||!a.O.length){a.O=Array(DE);for(c=0;c>>g.ab,l=h?g.nc:g.W;l[k]?(l[k].xd(f&g.qb,a==this.N),h&&Hd(g),f=!0):f=!1;g=!f}g&&(this.J("invalid address: %s\n",wD(b)),e=!1)}e&&(a.push(b),c?(void 0!=b.va&&(b.V=void 0),b.Sd=!0):(d||KE(this,a,a.length-1,"set"),$C(this)))}; -function vD(a,b,c,d,e){for(var f=!1,g=LE(a,a.Zb(c)),h=1;ha.ib)for(var h=0;ha.ib){a.ga=b;if(b==Qc.Jm&&d&&void 0!==a.B){var e=YC(a,C(a.G),hh(a.G));e.Td=tD(a,e);BD(a,e,-2);a.xd(a.A,e,!0)}if(a.oa&&(e=PE(a,b),0<=e&&d==(a.M[e].type==hD)&&(a.J("break on vector %02X\n",b),Xl(a),c)))return xh(a.G,C(a.G)-c),!0}return!1} -function PE(a,b){for(var c=0;ca.G.model)break;102==q?k||(b.Nb=!b.Nb,k=!0):103==q?l||(b.Yb=!b.Yb,l=!0):n=f[w]}else break}while(h--);w==UE&&(w=a.ya(b,1),t=VE[w]||dD,q|=w<<8,w=t[0]);w==WE&&(e=a.ya(b,1),h=null,l=e>>3&7,k=(3>(e>>6&3)?0:48)+l,(217==q||219==q)&&52<=k&&(k=l<<4|e&7),(l=XE[q])&&(h=l[k]),h&&(f=YE,t=h,w=t[0]));w>=f.length&& -(e=a.ya(b,1),t=ZE[w-f.length][e>>3&7],w=t[0]);f=f[w];l=t.length-1;h="";b.Nb&&(w==$E?f="CWDE":w==aF?f="CDQ":w>=bF&&w<=cF&&(f+="D"));if(164<=q&&167>=q||170<=q&&175>=q)l=0,b.Nb&&"W"==f.slice(-1)&&(f=f.slice(0,-1)+"D");k=-1;for(J=1;J<=l;J++){var D="";var E=t[J];if(void 0!==E){0>k&&(k=E>>dF);w==eF&&(k==fF?h="[%800]":k==gF&&(h=(n||"ES:")+"["+(b.Yb?"E":"")+"DI]"));var H=E&hF;if(H!=iF){var B=E&jF;if(B>=R)if(0>e&&(e=a.ya(b,1)),B>6,Aa=e&7;if(3>Ra){B=0==f.indexOf("FI"); -if(!Ra&&(!H.Yb&&6==Aa||H.Yb&&5==Aa))Ra=2;else{if(H.Yb)if(4!=Aa)Aa+=8;else{U=Y;var sb=Ra,Md=H,yb=U.ya(Md,1),Wa=yb>>6,Ce=yb>>3&7;yb&=7;var kb="";if(sb||5!=yb)kb=lF[yb+8];4!=Ce&&(kb&&(kb+="+"),kb+=lF[Ce+8],Wa&&(kb+="*"+(1<>24),2)):U+("+"+v(Y,2))):2==Ra&&(U&&(U+="+"),H.Yb?(Y=tD(Y,H,4),U+=v(Y)):(Y=Y.nd(H,2),U+=v(Y,4)));U=D+"["+U+"]";if(1==xa){D="";E&=hF;E==S&&(E=H.Nb?mF:T);switch(E){case nF:D= -"FAR";break;case V:D="BYTE";break;case T:if(B){D="INT16";break}D="WORD";break;case mF:D="DWORD";break;case oF:if(B){D="INT32";break}case pF:D="REAL32";break;case qF:if(B){D="INT64";break}case rF:D="REAL64";break;case sF:D="REAL80";break;case tF:D="BCD80"}D&&(U=D+" "+U)}}else U=uF(Y,Aa,E,H);D=U}else D=B==kF?uF(a,e&7,E,b):uF(a,e>>3&7,E,b);else if(B==vF)D="1";else if(B==W){D=a;H=E;B=b;E=" ";switch(H&hF){case V:H&X&&(E=v(D.ya(B,1),2));break;case wF:E=v(D.ya(B,1)<<24>>24,B.Nb?8:4);break;case S:if(B.Nb){E= -v(tD(D,B,4));break}case T:E=v(D.nd(B,2),4);break;case nF:B=YC(D,D.tb(B,!0),D.nd(B,2),void 0,B.type,B.Nb,B.Yb);E=wD(B);D=xF(D,B);D[0]&&(E+=" ("+D[0]+")");break;default:E="imm("+Xa(H)+")"}D=E}else B==yF?(b.Yb?(D=8,E=tD(a,b,4)):(D=4,E=a.nd(b,2)),D=n+"["+v(E,D)+"]"):B==zF?(D=H==V?a.ya(b,1)<<24>>24:a.tb(b,!0),E=b.Ha+D&(b.Nb?-1:65535),D=v(E,b.Nb?8:4),E=xF(a,YC(a,E,b.V)),E[0]&&(D+=" ("+E[0]+")")):B==Z?D=H==AF?"ST":H==BF?"ST("+(e&7)+")":uF(a,(E&CF)>>8,E,b):B==DF?D=uF(a,(E&CF)>>8,EF,b):B==FF?D=(n||"DS:")+ -"[SI]":B==GF&&(D=(n||"ES:")+"[DI]");if(!D||!D.length){h="INVALID";break}0kE||b>=jE&&80386>a.G.model)return"??";b+=eE}else if(e==JF)b+=tE;else if(e==KF)b+=LF;else if(e==MF)b+=NF;else if(a=c&hF,a>=T&&(b>>g.bb,l=h?g.oc:g.W;l[k]?(l[k].yd(f&g.rb,a==this.N),h&&Hd(g),f=!0):f=!1;g=!f}g&&(this.J("invalid address: %s\n",wD(b)),e=!1)}e&&(a.push(b),c?(void 0!=b.va&&(b.V=void 0),b.Td=!0):(d||KE(this,a,a.length-1,"set"),$C(this)))}; +function vD(a,b,c,d,e){for(var f=!1,g=LE(a,a.$b(c)),h=1;ha.jb)for(var h=0;ha.jb){a.ga=b;if(b==Qc.Jm&&d&&void 0!==a.B){var e=YC(a,C(a.G),hh(a.G));e.Ud=tD(a,e);BD(a,e,-2);a.yd(a.A,e,!0)}if(a.oa&&(e=PE(a,b),0<=e&&d==(a.M[e].type==hD)&&(a.J("break on vector %02X\n",b),Xl(a),c)))return xh(a.G,C(a.G)-c),!0}return!1} +function PE(a,b){for(var c=0;ca.G.model)break;102==q?k||(b.Ob=!b.Ob,k=!0):103==q?l||(b.Zb=!b.Zb,l=!0):n=f[w]}else break}while(h--);w==UE&&(w=a.ya(b,1),t=VE[w]||dD,q|=w<<8,w=t[0]);w==WE&&(e=a.ya(b,1),h=null,l=e>>3&7,k=(3>(e>>6&3)?0:48)+l,(217==q||219==q)&&52<=k&&(k=l<<4|e&7),(l=XE[q])&&(h=l[k]),h&&(f=YE,t=h,w=t[0]));w>=f.length&& +(e=a.ya(b,1),t=ZE[w-f.length][e>>3&7],w=t[0]);f=f[w];l=t.length-1;h="";b.Ob&&(w==$E?f="CWDE":w==aF?f="CDQ":w>=bF&&w<=cF&&(f+="D"));if(164<=q&&167>=q||170<=q&&175>=q)l=0,b.Ob&&"W"==f.slice(-1)&&(f=f.slice(0,-1)+"D");k=-1;for(J=1;J<=l;J++){var D="";var E=t[J];if(void 0!==E){0>k&&(k=E>>dF);w==eF&&(k==fF?h="[%800]":k==gF&&(h=(n||"ES:")+"["+(b.Zb?"E":"")+"DI]"));var H=E&hF;if(H!=iF){var B=E&jF;if(B>=R)if(0>e&&(e=a.ya(b,1)),B>6,Aa=e&7;if(3>Ra){B=0==f.indexOf("FI"); +if(!Ra&&(!H.Zb&&6==Aa||H.Zb&&5==Aa))Ra=2;else{if(H.Zb)if(4!=Aa)Aa+=8;else{U=Y;var sb=Ra,Md=H,yb=U.ya(Md,1),Wa=yb>>6,Ce=yb>>3&7;yb&=7;var kb="";if(sb||5!=yb)kb=lF[yb+8];4!=Ce&&(kb&&(kb+="+"),kb+=lF[Ce+8],Wa&&(kb+="*"+(1<>24),2)):U+("+"+v(Y,2))):2==Ra&&(U&&(U+="+"),H.Zb?(Y=tD(Y,H,4),U+=v(Y)):(Y=Y.od(H,2),U+=v(Y,4)));U=D+"["+U+"]";if(1==xa){D="";E&=hF;E==S&&(E=H.Ob?mF:T);switch(E){case nF:D= +"FAR";break;case V:D="BYTE";break;case T:if(B){D="INT16";break}D="WORD";break;case mF:D="DWORD";break;case oF:if(B){D="INT32";break}case pF:D="REAL32";break;case qF:if(B){D="INT64";break}case rF:D="REAL64";break;case sF:D="REAL80";break;case tF:D="BCD80"}D&&(U=D+" "+U)}}else U=uF(Y,Aa,E,H);D=U}else D=B==kF?uF(a,e&7,E,b):uF(a,e>>3&7,E,b);else if(B==vF)D="1";else if(B==W){D=a;H=E;B=b;E=" ";switch(H&hF){case V:H&X&&(E=v(D.ya(B,1),2));break;case wF:E=v(D.ya(B,1)<<24>>24,B.Ob?8:4);break;case S:if(B.Ob){E= +v(tD(D,B,4));break}case T:E=v(D.od(B,2),4);break;case nF:B=YC(D,D.ub(B,!0),D.od(B,2),void 0,B.type,B.Ob,B.Zb);E=wD(B);D=xF(D,B);D[0]&&(E+=" ("+D[0]+")");break;default:E="imm("+Xa(H)+")"}D=E}else B==yF?(b.Zb?(D=8,E=tD(a,b,4)):(D=4,E=a.od(b,2)),D=n+"["+v(E,D)+"]"):B==zF?(D=H==V?a.ya(b,1)<<24>>24:a.ub(b,!0),E=b.Ha+D&(b.Ob?-1:65535),D=v(E,b.Ob?8:4),E=xF(a,YC(a,E,b.V)),E[0]&&(D+=" ("+E[0]+")")):B==Z?D=H==AF?"ST":H==BF?"ST("+(e&7)+")":uF(a,(E&CF)>>8,E,b):B==DF?D=uF(a,(E&CF)>>8,EF,b):B==FF?D=(n||"DS:")+ +"[SI]":B==GF&&(D=(n||"ES:")+"[DI]");if(!D||!D.length){h="INVALID";break}0kE||b>=jE&&80386>a.G.model)return"??";b+=eE}else if(e==JF)b+=tE;else if(e==KF)b+=LF;else if(e==MF)b+=NF;else if(a=c&hF,a>=T&&(b=WD&&b<=cE&&4b[0]?1:a[0]>>0,p],a.xh));w&&(n.a=w.replace(/''/g,'"'))}d={Ii:b,Vk:c,V:d,Ha:e,va:f,Pj:g,vd:h,Df:l};e=a.D.findIndex(function(J){return J.Ii==b&&J.Vk==c});0>e&&(e=a.D.length);a.D[e]=d} -function NE(a,b,c,d){var e=b&65535,f=b>>16&65535;b=Object.keys(Qc);var g=ca(b),h=g.next();for(b={};!h.done;b={yd:b.yd,$d:b.$d},h=g.next())if(b.$d=h.value,f==Qc[b.$d].id){if(Qc[b.$d].tj){if(f=Qc[b.$d].tj[e]){b.yd=a;a=function(k){return function(l,p){var n=p>>>0,q=k.yd.D.findIndex(function(J){return 40==J.V&&n>=J.Ha>>>0&&n>>0});if(0<=q){p=l.toUpperCase();q=k.yd.D[q];var t=q.vd[p];if(t){if(t.o==n&&t.s==q.V)return!0;k.yd.J(3298534883328,"%s.%s (%x) does not match previous value (%x)\n",k.$d, -l,n,t.o);return!1}t=[n,p];var w=pb(q.Df,t,k.yd.xh);if(0>w)return q.Df.splice(-(w+1),0,t),q.vd[p]={o:n,s:q.V},d&&"$"!=l[0]&&k.yd.J(2267742732288,"%s.%s: %x\n",k.$d,l,n),!0;k.yd.J(2748779069440,"%s.%s (%x) already has symbol: %s\n",k.$d,l,n,q.Df[w][1]);return!1}k.yd.J(3298534883328,"%s.%s (%x) out of range\n",k.$d,l,n);return!1}}(b);e=tD(b.yd,c);a("$"+f,e)&&(c.va=e,a(f,tD(b.yd,c)));return}32768>e&&a.J(2748779069440,"%s service %d: unrecognized\n",b.$d,e)}return}a.J(2748779069440,"VxD %d: unrecognized\n", -f)}function rD(a,b,c){for(var d=null,e=0;e>>0,f=a.Zb(b)>>>0,g=0;g>>0,p=h.va;null!=p&&(p>>>=0);var n=h.Pj;48==k&&(k=40);if(k==b.V&&e>=l&&e=p&&fb[0]?1:a[0]>>0,p],a.yh));w&&(n.a=w.replace(/''/g,'"'))}d={Ji:b,Vk:c,V:d,Ha:e,va:f,Pj:g,wd:h,Ef:l};e=a.D.findIndex(function(J){return J.Ji==b&&J.Vk==c});0>e&&(e=a.D.length);a.D[e]=d} +function NE(a,b,c,d){var e=b&65535,f=b>>16&65535;b=Object.keys(Qc);var g=ca(b),h=g.next();for(b={};!h.done;b={zd:b.zd,ae:b.ae},h=g.next())if(b.ae=h.value,f==Qc[b.ae].id){if(Qc[b.ae].Pa){if(f=Qc[b.ae].Pa[e]){b.zd=a;a=function(k){return function(l,p){var n=p>>>0,q=k.zd.D.findIndex(function(J){return 40==J.V&&n>=J.Ha>>>0&&n>>0});if(0<=q){p=l.toUpperCase();q=k.zd.D[q];var t=q.wd[p];if(t){if(t.o==n&&t.s==q.V)return!0;k.zd.J(3298534883328,"%s.%s (%x) does not match previous value (%x)\n",k.ae, +l,n,t.o);return!1}t=[n,p];var w=pb(q.Ef,t,k.zd.yh);if(0>w)return q.Ef.splice(-(w+1),0,t),q.wd[p]={o:n,s:q.V},d&&"$"!=l[0]&&k.zd.J(2267742732288,"%s.%s: %x\n",k.ae,l,n),!0;k.zd.J(2748779069440,"%s.%s (%x) already has symbol: %s\n",k.ae,l,n,q.Ef[w][1]);return!1}k.zd.J(3298534883328,"%s.%s (%x) out of range\n",k.ae,l,n);return!1}}(b);e=tD(b.zd,c);a("$"+f,e)&&(c.va=e,a(f,tD(b.zd,c)));return}32768>e&&a.J(2748779069440,"%s service %d: unrecognized\n",b.ae,e)}return}a.J(2748779069440,"VxD %d: unrecognized\n", +f)}function rD(a,b,c){for(var d=null,e=0;e>>0,f=a.$b(b)>>>0,g=0;g>>0,p=h.va;null!=p&&(p>>>=0);var n=h.Pj;48==k&&(k=40);if(k==b.V&&e>=l&&e=p&&ft?(n.J("out of data at address %s\n",wD(q)),p=!0):(n.ub(q,t,1,!0),l++)})})(a, +function VF(a,b,c){var d=null;if(b=GD(a,b,!0)){a.$b(b);var e=xF(a,b,!0);if(e.length){var f;if(e[0]){var g="";(f=b.Ha-e[1])&&(g=" + "+v(f,0,!0));f=e[0]+" ("+kD(e[1],b.V)+")"+g;c&&a.J("%s\n",f);d=f}4t?(n.J("out of data at address %s\n",wD(q)),p=!0):(n.vb(q,t,1,!0),l++)})})(a, f);$e(a.G,!0);a.J("%d bytes read at %s\n",l,b)}else a.J("sector %d request out of range\n",d);else a.J("drive %d not loaded\n",g);else a.J("invalid drive: %d\n",g)}else a.J("disk controller not present\n")}}}else a.J("load commands:\n"),a.J("\tl [address] [drive #] [sector #] [# sectors]\n")} -function FE(a,b){var c;if(b&&"?"==b[1])a.J("register commands:\n"),a.J("\tr\tdump registers\n"),a.Ub&&a.J("\trfp\tdump floating-point registers\n"),a.J("\trp\tdump all registers\n"),a.J("\trx [#]\tset flag or register x to [#]\n");else{null==c&&(c=!0);if(null!=b&&1f;f++){var g=c;d=null;if(ff;f++){var g=c;d=null;if(f=a.za&&(k=null); switch(k){case "AL":a.G.D=a.G.D&-256|g&255;break;case "AH":a.G.D=a.G.D&-65281|g<<8&255;break;case "AX":a.G.D=a.G.D&-65536|g&65535;break;case "BL":a.G.H=a.G.H&-256|g&255;break;case "BH":a.G.H=a.G.H&-65281|g<<8&255;break;case "BX":a.G.H=a.G.H&-65536|g&65535;break;case "CL":a.G.I=a.G.I&-256|g&255;break;case "CH":a.G.I=a.G.I&-65281|g<<8&255;break;case "CX":a.G.I=a.G.I&-65536|g&65535;break;case "DL":a.G.M=a.G.M&-256|g&255;break;case "DH":a.G.M=a.G.M&-65281|g<<8&255;break;case "DX":a.G.M=a.G.M&-65536|g& 65535;break;case "SP":zg(a.G,A(a.G)&-65536|g&65535);break;case "BP":a.G.N=a.G.N&-65536|g&65535;break;case "SI":a.G.L=a.G.L&-65536|g&65535;break;case "DI":a.G.K=a.G.K&-65536|g&65535;break;case "DS":vh(a.G,g);break;case "ES":wh(a.G,g);break;case "SS":Eg(a.G,g);break;case "CS":uh(a.G,g);a.T=YC(a,C(a.G),hh(a.G));break;case "IP":case "EIP":xh(a.G,g);a.T=YC(a,C(a.G),hh(a.G));break;case "PC":case "PS":Kg(a.G,g);break;case "C":g?Kh(a.G):Lh(a.G);break;case "P":g?(d=a.G,d.resultType&=-3,d.P|=4):(d=a.G,d.resultType&= -3,d.P&=-5);break;case "A":g?Sh(a.G):Oh(a.G);break;case "Z":g?Th(a.G):Rh(a.G);break;case "S":g?(d=a.G,d.resultType&=-17,d.P|=128):(d=a.G,d.resultType&=-17,d.P&=-129);break;case "I":g?(d=a.G,d.P|=512):(d=a.G,d.P&=-513);break;case "D":g?(d=a.G,d.P|=1024):(d=a.G,d.P&=-1025);break;case "V":g?Mh(a.G):Nh(a.G);break;default:h=!0;if(80286<=a.G.model)switch(h=!1,k){case "MS":Uh(a.G,g);break;case "TR":-1===a.G.ga.load(g)&&(f=!1);break;default:if(h=!0,80386<=a.G.model)switch(h=!1,k){case "EAX":a.G.D=g;break; -case "EBX":a.G.H=g;break;case "ECX":a.G.I=g;break;case "EDX":a.G.M=g;break;case "ESP":zg(a.G,g);break;case "EBP":a.G.N=g;break;case "ESI":a.G.L=g;break;case "EDI":a.G.K=g;break;case "FS":a.G.Fa.load(g);break;case "GS":a.G.Ia.load(g);break;case "CR0":a.G.ma=g;Ol.call(a.G,g);break;case "CR2":a.G.md=g;break;case "CR3":a.G.kc=g;a.G.kc=g;Hd(a.G);break;default:h=!0}}if(h){a.J("unknown register: %s\n",d);return}}if(!f){a.J("invalid value: %s\n",b);return}$e(a.G);a.J("updated registers:\n")}}b=a.J;void 0=== -e&&(e=yD(a));f=PF(a,WD)+PF(a,ZD)+PF(a,XD)+PF(a,YD)+(4a.G.model&&(d="\n"+d,f+=g,g=""),f+="\n"+QF(a,a.G.ba,e)+" ",80386<=a.G.model&&(g+="\n",f+=QF(a,a.G.Fa,e)+" "+QF(a,a.G.Ia,e)+"\n"),f+=RF(a,"LD",a.G.rb.V,a.G.rb.ta,a.G.rb.ta+a.G.rb.Ya)+" "+RF(a,"GD",null,a.G.Ab,a.G.Nc)+" "+RF(a,"ID",null,a.G.Eb,a.G.gd)+" ",f=f+(d+ +case "EBX":a.G.H=g;break;case "ECX":a.G.I=g;break;case "EDX":a.G.M=g;break;case "ESP":zg(a.G,g);break;case "EBP":a.G.N=g;break;case "ESI":a.G.L=g;break;case "EDI":a.G.K=g;break;case "FS":a.G.Fa.load(g);break;case "GS":a.G.Ia.load(g);break;case "CR0":a.G.ma=g;Ol.call(a.G,g);break;case "CR2":a.G.nd=g;break;case "CR3":a.G.lc=g;a.G.lc=g;Hd(a.G);break;default:h=!0}}if(h){a.J("unknown register: %s\n",d);return}}if(!f){a.J("invalid value: %s\n",b);return}$e(a.G);a.J("updated registers:\n")}}b=a.J;void 0=== +e&&(e=yD(a));f=PF(a,WD)+PF(a,ZD)+PF(a,XD)+PF(a,YD)+(4a.G.model&&(d="\n"+d,f+=g,g=""),f+="\n"+QF(a,a.G.ba,e)+" ",80386<=a.G.model&&(g+="\n",f+=QF(a,a.G.Fa,e)+" "+QF(a,a.G.Ia,e)+"\n"),f+=RF(a,"LD",a.G.sb.V,a.G.sb.ta,a.G.sb.ta+a.G.sb.Za)+" "+RF(a,"GD",null,a.G.Bb,a.G.Oc)+" "+RF(a,"ID",null,a.G.Fb,a.G.hd)+" ",f=f+(d+ " "+g)+PF(a,tE),80386<=a.G.model&&(f+=PF(a,vE)+PF(a,wE))):80386<=a.G.model&&(f+=QF(a,a.G.Fa,e)+" "+QF(a,a.G.Ia,e)+" ");f+=PF(a,yE)+OF(a,"V")+OF(a,"D")+OF(a,"I")+OF(a,"T")+OF(a,"S")+OF(a,"Z")+OF(a,"A")+OF(a,"P")+OF(a,"C");b.call(a,"%s\n",f);c&&(a.T=YC(a,C(a.G),hh(a.G)),GE(a,wD(a.T)))}}function ZF(a,b){b=gb(b);var c=b.match(/^(['"])(.*?)\1$/);c?a.J("%s\n",zE(a,c[2])):SC(a,b,!1)} -function $F(a,b,c){for(var d=null,e=b.Ha,f=e,g=1;6>=g&&e;g++){if(2=g&&e;g++){if(2e&&(e=1);4096h[0].indexOf("+"))){var l=h[0]+":";h[2]&&(l+=" "+h[2]);a.J("%s\n",l)}h[3]&&(g=h[3],f=-1);f=RE(a,b,g,f);a.J("%s\n",f);a.T=b;e-=b.va-k;c++}}} -m.$f=function(a,b,c){c=void 0===c?";":c;if(b)if(a){0>this.C&&this.F.length&&(this.C=0);if(0>this.C||a!=this.F[this.C])this.F.splice(0,0,a),this.C=0;this.C--}else a=this.F[this.C+1];b=[];if(a){a=a.replace(/""/g,"'");for(var d=0,e=null,f=!1,g=0,h=null;g<=a.length;g++){var k=a.charAt(g);if('"'==k||"'"==k)e?k==e&&(e=null):(e=k,f=!0);else if(k==c&&!e&&k!=h||!k)d=gb(a.substring(d,g)),f||(d=d.toLowerCase()),b.push(d),d=g+1,f=!1;h=k}if(" "==c&&b.length)for(a=b[0],c=a.charAt(0),e=1;ethis.C&&this.F.length&&(this.C=0);if(0>this.C||a!=this.F[this.C])this.F.splice(0,0,a),this.C=0;this.C--}else a=this.F[this.C+1];b=[];if(a){a=a.replace(/""/g,"'");for(var d=0,e=null,f=!1,g=0,h=null;g<=a.length;g++){var k=a.charAt(g);if('"'==k||"'"==k)e?k==e&&(e=null):(e=k,f=!0);else if(k==c&&!e&&k!=h||!k)d=gb(a.substring(d,g)),f||(d=d.toLowerCase()),b.push(d),d=g+1,f=!1;h=k}if(" "==c&&b.length)for(a=b[0],c=a.charAt(0),e=1;ef||"z"PE(xa,U)){var Ra="#"==J||!J&&yD(xa)?hD:zD;if(Ra!=hD){var Aa=xa.G.ha(U<<2),sb=Aa&65535,Md=Aa>>16&65535;Y=YC(xa,sb,Md,(Md<<4)+sb,Ra)}xa.M.push({gg:U,type:Ra,Ah:Y});QE(xa,U,!0);$C(xa);var yb=!0}else yb=!1;if(yb)continue}a.J("vector %s invalid\n",q);break}while(q=g.shift())}else QE(a);else if(void 0===q)a.J("missing breakpoint address\n");else{var Wa={};if("*"!=q&&(Wa=GD(a,q,!0,!0),!Wa))break a;q=null==Wa.Ha?q:Xa(Wa.Ha);if("c"==t)null==Wa.Ha?(ZC(a),a.J("all breakpoints cleared\n")): +var Y=void 0,xa=a,U=D;if(0>PE(xa,U)){var Ra="#"==J||!J&&yD(xa)?hD:zD;if(Ra!=hD){var Aa=xa.G.ha(U<<2),sb=Aa&65535,Md=Aa>>16&65535;Y=YC(xa,sb,Md,(Md<<4)+sb,Ra)}xa.M.push({hg:U,type:Ra,Bh:Y});QE(xa,U,!0);$C(xa);var yb=!0}else yb=!1;if(yb)continue}a.J("vector %s invalid\n",q);break}while(q=g.shift())}else QE(a);else if(void 0===q)a.J("missing breakpoint address\n");else{var Wa={};if("*"!=q&&(Wa=GD(a,q,!0,!0),!Wa))break a;q=null==Wa.Ha?q:Xa(Wa.Ha);if("c"==t)null==Wa.Ha?(ZC(a),a.J("all breakpoints cleared\n")): vD(a,a.A,Wa)||vD(a,a.aa,Wa)||vD(a,a.N,Wa)||a.J("breakpoint missing: %s\n",wD(Wa));else if("i"==t){var Ce=a.J;var kb=a.la,De=Wa.Ha;if(null==De){kb.I=!kb.I;var Wc=kb.I}else void 0===kb.D[De]&&(kb.D[De]=[null,!1]),kb.D[De][1]=!kb.D[De][1],Wc=kb.D[De][1];Ce.call(a,"breakpoint %s: port %s (input)\n",Wc?"enabled":"cleared",q)}else if("o"==t){var bn=a.J;var wc=a.la,Nd=Wa.Ha;if(null==Nd){wc.K=!wc.K;var Gh=wc.K}else void 0===wc.F[Nd]&&(wc.F[Nd]=[null,!1]),wc.F[Nd][1]=!wc.F[Nd][1],Gh=wc.F[Nd][1];bn.call(a, -"breakpoint %s: port %s (output)\n",Gh?"enabled":"cleared",q)}else null!=Wa.Ha&&(JD(a,Wa,p),"p"==t?a.xd(a.A,Wa):"r"==t?a.xd(a.aa,Wa):"w"==t?a.xd(a.N,Wa):a.J("unknown breakpoint command: %s\n",t))}}}break;case "c":XF(a.ua);break;case "d":a:{var ab=g,tg,mb=ab[0],Fc=ab[1],Ke=ab[2],Sw=ab[3];if("?"==Fc){var ug="";for(tg in za)a.Oa[tg]&&(ug&&(ug+=","),ug+=tg);ug+=",state,symbols";a.J("dump memory commands:\n");a.J("\tda [a] [#] dump # ASCII chars at address a\n");a.J("\tdb [a] [#] dump # bytes at address a\n"); +"breakpoint %s: port %s (output)\n",Gh?"enabled":"cleared",q)}else null!=Wa.Ha&&(JD(a,Wa,p),"p"==t?a.yd(a.A,Wa):"r"==t?a.yd(a.aa,Wa):"w"==t?a.yd(a.N,Wa):a.J("unknown breakpoint command: %s\n",t))}}}break;case "c":XF(a.ua);break;case "d":a:{var ab=g,tg,mb=ab[0],Fc=ab[1],Ke=ab[2],Sw=ab[3];if("?"==Fc){var ug="";for(tg in za)a.Oa[tg]&&(ug&&(ug+=","),ug+=tg);ug+=",state,symbols";a.J("dump memory commands:\n");a.J("\tda [a] [#] dump # ASCII chars at address a\n");a.J("\tdb [a] [#] dump # bytes at address a\n"); a.J("\tdw [a] [#] dump # words at address a\n");a.J("\tdd [a] [#] dump # dwords at address a\n");a.J("\tdh [n] [#] dump # instructions from history n\n");a.J("\tdi [#] dump descriptor info for IDT #\n");a.J("\tds [#] dump descriptor info for selector #\n");a.J("\tdby,dwy,ddy dump data in binary\n");ug.length&&a.J("dump extension commands:\n\t%s\n",ug)}else if("state"==Fc){var so=bG(a.ua,!0);so?"console"==Ke?console.log(so):(XF(a.ua),a.J("%s\n",so)):a.J("powerOff() error\n")}else if("symbols"== -Fc){for(var Tw=0,to=0;to>>20;db.dj=a.G.kc+db.Yk;db.xb=Ik.W[(db.dj&Ik.C)>>>12];db.Nj=db.xb.ke(db.Yk);db.Zk=(bi&4190208)>>>10;db.ej=(db.Nj&-4096)+db.Zk;db.yb=Ik.W[(db.ej&Ik.C)>>>12];db.Oj=db.yb.ke(db.Zk);db.Pm=(db.Oj&-4096)+(bi&4095)}if(xg=db){a.J("linear PDE addr PDE PTE addr PTE physical\n");a.J("--------- ---------- -------- ---------- -------- ----------\n");var Jk="%"+v(bi);Jk+=" %%"+LD(xg.dj,xg.Nj);Jk+=" %%"+LD(xg.ej,xg.Oj, -!0);Jk+=" %%"+v(xg.Pm);a.J("%s\n",Jk)}else a.J("unsupported operation\n")}}else a.J("missing address\n")}else{if("d"==mb){if("disk"==Fc){ab[0]="l";ab[1]="json";WF(a,ab);break a}for(tg in za)if(ab[1]==tg){var Xw=a.Oa[tg];Xw?(ab.shift(),ab.shift(),Xw(ab)):a.J("no dump registered for %s\n",Fc);break a}Fc||(mb=a.Eb||"db")}if("dh"==mb){var Yw=Fc,Zw=Ke,ci=Sw;ci=void 0===ci?"history":ci;var $w="",ax=0,Vd=a.fa,Wd=a.O;if(Wd.length){var qd=+Yw||a.vb,Kk=+Zw||10;isNaN(qd)?qd=Kk:$w="more ";qd>Wd.length&&(a.J("note: only %d available\n", -Wd.length),qd=Wd.length);Vd-=qd;0>Vd&&(null==Wd[Wd.length-1].V?(qd=Vd+qd,Vd=0):Vd+=Wd.length);var wo=[];"call"==Zw&&(Kk=1E5,wo=["CALL"]);void 0!==Yw&&a.J("%d instructions earlier:\n",qd);for(var Lk="",xo=0,QG="cycles"==ci;0>16)+",AX="+Xa(Nb.Td& -65535)+")"));if(!wo.length||0<=di.indexOf(wo[0]))Lk+=(Lk?"\n":"")+di;Vd>=Wd.length&&(Vd=0);a.vb=qd;ax++;Kk--}Lk&&a.J("%s\n",Lk)}ax||(a.J("no %shistory available\n",$w),a.vb=void 0)}else if("di"==mb){ab.shift();var zo=ab[0];if(zo){var ei=MC(a,zo);if(void 0===ei||0>ei||255"abwd".indexOf(mb[1]))a.J("unrecognized dump command\n");else{a.Eb=mb;var Xd=GD(a,Fc);if(Xd&&(null!=Xd.V||null!=Xd.va)){var Yd=0;if(Ke){if("l"==Ke.charAt(0))Ke=Ke.substr(1)||Sw,Yd=MC(a,Ke);else{var Ao=GD(a,Ke);if(!Ao)break a;Yd=Xd.type!=ID?Ao.Ha-Xd.Ha+1:Ao.va-Xd.va+1}if(0>Yd||65536>4||1,fi=4==Le? +Fc){for(var Tw=0,to=0;to>>20;db.ej=a.G.lc+db.Yk;db.yb=Ik.W[(db.ej&Ik.C)>>>12];db.Nj=db.yb.le(db.Yk);db.Zk=(bi&4190208)>>>10;db.fj=(db.Nj&-4096)+db.Zk;db.zb=Ik.W[(db.fj&Ik.C)>>>12];db.Oj=db.zb.le(db.Zk);db.Pm=(db.Oj&-4096)+(bi&4095)}if(xg=db){a.J("linear PDE addr PDE PTE addr PTE physical\n");a.J("--------- ---------- -------- ---------- -------- ----------\n");var Jk="%"+v(bi);Jk+=" %%"+LD(xg.ej,xg.Nj);Jk+=" %%"+LD(xg.fj,xg.Oj, +!0);Jk+=" %%"+v(xg.Pm);a.J("%s\n",Jk)}else a.J("unsupported operation\n")}}else a.J("missing address\n")}else{if("d"==mb){if("disk"==Fc){ab[0]="l";ab[1]="json";WF(a,ab);break a}for(tg in za)if(ab[1]==tg){var Xw=a.Oa[tg];Xw?(ab.shift(),ab.shift(),Xw(ab)):a.J("no dump registered for %s\n",Fc);break a}Fc||(mb=a.Fb||"db")}if("dh"==mb){var Yw=Fc,Zw=Ke,ci=Sw;ci=void 0===ci?"history":ci;var $w="",ax=0,Vd=a.fa,Wd=a.O;if(Wd.length){var qd=+Yw||a.wb,Kk=+Zw||10;isNaN(qd)?qd=Kk:$w="more ";qd>Wd.length&&(a.J("note: only %d available\n", +Wd.length),qd=Wd.length);Vd-=qd;0>Vd&&(null==Wd[Wd.length-1].V?(qd=Vd+qd,Vd=0):Vd+=Wd.length);var wo=[];"call"==Zw&&(Kk=1E5,wo=["CALL"]);void 0!==Yw&&a.J("%d instructions earlier:\n",qd);for(var Lk="",xo=0,QG="cycles"==ci;0>16)+",AX="+Xa(Nb.Ud& +65535)+")"));if(!wo.length||0<=di.indexOf(wo[0]))Lk+=(Lk?"\n":"")+di;Vd>=Wd.length&&(Vd=0);a.wb=qd;ax++;Kk--}Lk&&a.J("%s\n",Lk)}ax||(a.J("no %shistory available\n",$w),a.wb=void 0)}else if("di"==mb){ab.shift();var zo=ab[0];if(zo){var ei=MC(a,zo);if(void 0===ei||0>ei||255"abwd".indexOf(mb[1]))a.J("unrecognized dump command\n");else{a.Fb=mb;var Xd=GD(a,Fc);if(Xd&&(null!=Xd.V||null!=Xd.va)){var Yd=0;if(Ke){if("l"==Ke.charAt(0))Ke=Ke.substr(1)||Sw,Yd=MC(a,Ke);else{var Ao=GD(a,Ke);if(!Ao)break a;Yd=Xd.type!=ID?Ao.Ha-Xd.Ha+1:Ao.va-Xd.va+1}if(0>Yd||65536>4||1,fi=4==Le? 16:a.I;"a"==mb[1]?(Bo=!0,fi=160,Ok=1>=Yd?25:Math.ceil(Yd/fi),xf=Ok*fi):"y"==mb[2]&&(fi=Le,Yd||(xf=8),Ok=xf,Nk=8*Le);for(;Ok--&&0Pk?String.fromCharCode(Pk):Bo?"":".");xf--}wf&&(wf+="\n");wf=Bo?wf+ii:wf+(Fc+" "+Do+eb(ii,ii.length+3*hi+1))}wf&&a.print(wf.replace(/\s*$/, -"")+"\n");a.Ea=Xd}}}}}break;case "e":if("else"==g[0])break;var fx=g[1];if(null==fx)a.J("edit memory commands:\n"),a.J("\teb [a] [...] edit bytes at address a\n"),a.J("\tew [a] [...] edit words at address a\n");else{var Me=GD(a,fx);if(Me)if("ev"==g[0])for(var Zd=0;256>Zd;Zd++){var gx=v(Zd,2);!Zd||Zd&15||BD(a,Me,64);a.kg(Me,Zd<<8|gx.charCodeAt(0),2,!0);a.kg(Me,Zd<<8|gx.charCodeAt(1),2,!0);a.kg(Me,Zd<<8|32,2,255>Zd)}else{var Qk=1,hx=255,ix=a.ya,jx=a.ub;"ew"==g[0]&&(Qk=2,hx=65535,ix=a.nd,jx=a.kg);for(var kx= +"")+"\n");a.Ea=Xd}}}}}break;case "e":if("else"==g[0])break;var fx=g[1];if(null==fx)a.J("edit memory commands:\n"),a.J("\teb [a] [...] edit bytes at address a\n"),a.J("\tew [a] [...] edit words at address a\n");else{var Me=GD(a,fx);if(Me)if("ev"==g[0])for(var Zd=0;256>Zd;Zd++){var gx=v(Zd,2);!Zd||Zd&15||BD(a,Me,64);a.lg(Me,Zd<<8|gx.charCodeAt(0),2,!0);a.lg(Me,Zd<<8|gx.charCodeAt(1),2,!0);a.lg(Me,Zd<<8|32,2,255>Zd)}else{var Qk=1,hx=255,ix=a.ya,jx=a.vb;"ew"==g[0]&&(Qk=2,hx=65535,ix=a.od,jx=a.lg);for(var kx= Qk<<1,Eo=!1,ji=2;jiLo;){for(var rd=null,qx=null,WG=256;Ne.Ha>>>0Lo;){for(var rd=null,qx=null,WG=256;Ne.Ha>>>0>8&255;if(4<=wx&&6>=wx){for(var $G=128;(Ro=a.ya(nb))&&$G--;)BD(a,nb,1);BD(a,nb,1)}}break;case 224:case 225:case 226:a.K=Bf;BD(a,nb,nb.Nb?4:2);break;case 232:a.K=Bf;BD(a,nb,nb.Nb?5:3);break;case 154:a.K= -Bf;BD(a,nb,nb.Nb?7:5);break;case 255:var xx=a.tb(nb)&14591;if(4351==xx||6399==xx)a.K=Bf,RE(a,nb);break;case 243:case 242:BD(a,nb,1);vx=Qo=!0;break;case 108:case 109:case 110:case 111:case 164:case 165:case 166:case 167:case 170:case 171:case 172:case 173:case 174:case 175:vx&&(a.K=Bf,BD(a,nb,1))}}while(Qo);a.K?(a.xd(a.A,nb,!0),EE(a)&&bf(a.G)||(a.ua&&a.ua.Tc(),a.K=0)):aG(a,ux?"tr":"t")}break;case "r":if("reset"==b){a.ua&&a.ua.reset();break}FE(a,g);break;case "t":aG(a,g[0],g[1]);break;case "u":GE(a, +a.J("%s%s\n",null!==ae?ae?"messages on: ":"messages off: ":"message categories:\n\t",mi||"none");a.vc=Af;$C(a)}break;case "o":var No=g[1],ZG=g[2];if(No&&"?"!=No){var Oo=MC(a,No,"port #"),Po=MC(a,ZG);void 0!==Oo&&void 0!==Po&&(me(a.la,Oo,1,Po),a.J("%#06x: %#04x\n",Oo,Po))}else a.J("output commands:\n"),a.J("\to [p] [b]\twrite byte [b] to port [p]\n"),a.J("warning: port accesses can affect hardware state\n");break;case "p":if("print"==g[0]){ZF(a,b.substr(5));break}var ux="pr"==g[0]?1:0,Bf=1+ux;if(a.K)a.J("step in progress\n"); +else{var vx=!1,nb=YC(a,C(a.G),hh(a.G));do{var Qo=!1;var Ro=void 0;switch(a.ya(nb)){case 38:case 46:case 54:case 62:case 100:case 101:case 102:case 103:case 240:BD(a,nb,1);Qo=!0;break;case 204:case 206:a.K=Bf;BD(a,nb,1);break;case 205:a.K=Bf;BD(a,nb,1);Ro=a.ya(nb);BD(a,nb,1);if(50==Ro){var wx=a.G.D>>8&255;if(4<=wx&&6>=wx){for(var $G=128;(Ro=a.ya(nb))&&$G--;)BD(a,nb,1);BD(a,nb,1)}}break;case 224:case 225:case 226:a.K=Bf;BD(a,nb,nb.Ob?4:2);break;case 232:a.K=Bf;BD(a,nb,nb.Ob?5:3);break;case 154:a.K= +Bf;BD(a,nb,nb.Ob?7:5);break;case 255:var xx=a.ub(nb)&14591;if(4351==xx||6399==xx)a.K=Bf,RE(a,nb);break;case 243:case 242:BD(a,nb,1);vx=Qo=!0;break;case 108:case 109:case 110:case 111:case 164:case 165:case 166:case 167:case 170:case 171:case 172:case 173:case 174:case 175:vx&&(a.K=Bf,BD(a,nb,1))}}while(Qo);a.K?(a.yd(a.A,nb,!0),EE(a)&&bf(a.G)||(a.ua&&a.ua.Uc(),a.K=0)):aG(a,ux?"tr":"t")}break;case "r":if("reset"==b){a.ua&&a.ua.reset();break}FE(a,g);break;case "t":aG(a,g[0],g[1]);break;case "u":GE(a, g[1],g[2],8);break;case "v":if("var"==g[0]){UF(a,b.substr(3))||(d=!1);break}a.J("%s version %s (%s%s%s%s%s)\n","PCx86","2.23",a.G.model,",RELEASE",",NOPREFETCH",",TYPEDARRAYS",",NOBACKTRACK");a.J("%s\n",Eb());break;case "x":a:if(1=this.A||(this.A=1);this.F=0;this.ga=a.busWidth||a.buswidth;this.B=wG;this.O=null;this.L=this.ba=!1;this.url=Xe(this,"url")||"";this.ja=(Math.random()+.1).toString(36).substr(2,12);this.D=xG(this);if(this.G=mc("CPU",this.id)){(this.Eg=mc("FPU",this.id))||new Fi({id:this.Hc+".fpu"});this.ca=mc("Debugger",this.id);this.C=[];for(b=null;b=Yc(this,"Video", -b);)this.C.push(b);this.la=new Ad({id:this.Hc+".bus",busWidth:this.ga},this.G,this.ca);var e=qc(this.id);this.K=(this.ea=mc("Panel",this.id))&&this.ea.ia.print;this.fa=this.print;this.K&&(this.fa=this.ea.print);for(b=0;b","License: MIT ");for(b=0;b=this.A||(this.A=1);this.F=0;this.ga=a.busWidth||a.buswidth;this.B=wG;this.O=null;this.L=this.ba=!1;this.url=Xe(this,"url")||"";this.ja=(Math.random()+.1).toString(36).substr(2,12);this.D=xG(this);if(this.G=mc("CPU",this.id)){(this.Fg=mc("FPU",this.id))||new Fi({id:this.Ic+".fpu"});this.ca=mc("Debugger",this.id);this.C=[];for(b=null;b=Yc(this,"Video", +b);)this.C.push(b);this.la=new Ad({id:this.Ic+".bus",busWidth:this.ga},this.G,this.ca);var e=qc(this.id);this.K=(this.ea=mc("Panel",this.id))&&this.ea.ia.print;this.fa=this.print;this.K&&(this.fa=this.ea.print);for(b=0;b","License: MIT ");for(b=0;bwG){if(d.load(this.O)){this.H=new ph(this,"2.23",IG);this.H.load()&&(a!=HG&&JG(this)&&(a=KG),LG(this.H));this.H.set(GG,fb("%T",new Date));this.H.store();var e=this.B&&!this.L;if(a==HG||ic("Click OK to restore the previous PCx86 machine state.")){if(c=FG(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"==f&&"no machine state"!= -g?(this.J(274877906944,"Error: %s\n",g),"unable to verify user"==g&&(Jb(MG,""),this.D=null)):this.J(2199023255552,"%s: %s\n",f,g),LG(d),d.load()?(c=FG(d),e=!0):c=!1))}e&&DG(this,c?d:null)}else a==KG&&d.clear()}else DG(this);delete this.O;delete this.U}e=qc(this.id);for(f=0;fa[1];a=a[2];var d=this.ia.power;d&&(d.textContent="Shutdown");this.flags.fc=!0;this.G&&(NG(this,this.G,b,c,a),this.G.Ld());this.aa&&(JG(this),b.clear());!c&&this.H&&(this.H.clear(),delete this.H);this.F=0;sc(this.Hc,Xe(this,"autoScript"))};function JG(a){return a.flags.Se?!1:(Xb("There may be a problem with your PCx86 machine."),!0)} -function bG(a,b,c){var d="none";if(a.F)return null;a.F--;var e=new ph(a,"2.23"),f=new ph(a,"2.23",EG),g=fb("%T",new Date);f.set(GG,g);e.set(GG,g);e.set(OG,"2.23");e.set(PG,r.location?r.location.href:null);e.set(aH,Eb());if(a.G&&a.G.dc){var h=a.G.dc(b,c);"object"===typeof h&&e.set(a.G.id,h);c&&(a.G.flags.fc=!1,!1===h&&(d=null))}g=qc(a.id);for(var k=0;kwG){if(d.load(this.O)){this.H=new ph(this,"2.23",IG);this.H.load()&&(a!=HG&&JG(this)&&(a=KG),LG(this.H));this.H.set(GG,fb("%T",new Date));this.H.store();var e=this.B&&!this.L;if(a==HG||ic("Click OK to restore the previous PCx86 machine state.")){if(c=FG(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"==f&&"no machine state"!= +g?(this.J(274877906944,"Error: %s\n",g),"unable to verify user"==g&&(Jb(MG,""),this.D=null)):this.J(2199023255552,"%s: %s\n",f,g),LG(d),d.load()?(c=FG(d),e=!0):c=!1))}e&&DG(this,c?d:null)}else a==KG&&d.clear()}else DG(this);delete this.O;delete this.U}e=qc(this.id);for(f=0;fa[1];a=a[2];var d=this.ia.power;d&&(d.textContent="Shutdown");this.flags.hc=!0;this.G&&(NG(this,this.G,b,c,a),this.G.Md());this.aa&&(JG(this),b.clear());!c&&this.H&&(this.H.clear(),delete this.H);this.F=0;sc(this.Ic,Xe(this,"autoScript"))};function JG(a){return a.flags.Te?!1:(Xb("There may be a problem with your PCx86 machine."),!0)} +function bG(a,b,c){var d="none";if(a.F)return null;a.F--;var e=new ph(a,"2.23"),f=new ph(a,"2.23",EG),g=fb("%T",new Date);f.set(GG,g);e.set(GG,g);e.set(OG,"2.23");e.set(PG,r.location?r.location.href:null);e.set(aH,Eb());if(a.G&&a.G.ec){var h=a.G.ec(b,c);"object"===typeof h&&e.set(a.G.id,h);c&&(a.G.flags.hc=!1,!1===h&&(d=null))}g=qc(a.id);for(var k=0;kd.model?4:8;c.Fa=16;c.pa=g;vd(c,"AX",d.D,2);vd(c,"DS",d.xa.V,0,1);vd(c,"DX",d.M,2);vd(c,"SI",d.L,0,1.5);vd(c,"BX",d.H,2);vd(c, -"ES",d.fa.V,0,1);vd(c,"CX",d.I,2);vd(c,"DI",d.K,0,1.5);vd(c,"CS",hh(d),2);vd(c,"SS",d.T.V,0,1);vd(c,"IP",C(d),2);vd(c,"SP",A(d),0,1.5);vd(c,"PS",g=ih(d),2);vd(c,"BP",d.N,0,1.5);80386<=d.model&&(vd(c,"FS",d.Fa.V,2),vd(c,"CR0",d.ma,0,1),vd(c,"GS",d.Ia.V,2),vd(c,"CR3",d.kc,0,1.5));xd(c,9);vd(c,"V"+(g&2048?1:0));vd(c,"D"+(g&1024?1:0));vd(c,"I"+(g&512?1:0));vd(c,"T"+(g&256?1:0));vd(c,"S"+(g&128?1:0));vd(c,"Z"+(g&64?1:0));vd(c,"A"+(g&16?1:0));vd(c,"P"+(g&4?1:0));vd(c,"C"+(g&1?1:0),0,2);md(c,c.ba);c.context.drawImage(c.B, -0,0,e,f,c.sa,c.ab,c.fa,c.Ea)}hd(c)}if(void 0!==b)for(c=0;cd.model?4:8;c.Fa=16;c.pa=g;vd(c,"AX",d.D,2);vd(c,"DS",d.xa.V,0,1);vd(c,"DX",d.M,2);vd(c,"SI",d.L,0,1.5);vd(c,"BX",d.H,2);vd(c, +"ES",d.fa.V,0,1);vd(c,"CX",d.I,2);vd(c,"DI",d.K,0,1.5);vd(c,"CS",hh(d),2);vd(c,"SS",d.T.V,0,1);vd(c,"IP",C(d),2);vd(c,"SP",A(d),0,1.5);vd(c,"PS",g=ih(d),2);vd(c,"BP",d.N,0,1.5);80386<=d.model&&(vd(c,"FS",d.Fa.V,2),vd(c,"CR0",d.ma,0,1),vd(c,"GS",d.Ia.V,2),vd(c,"CR3",d.lc,0,1.5));xd(c,9);vd(c,"V"+(g&2048?1:0));vd(c,"D"+(g&1024?1:0));vd(c,"I"+(g&512?1:0));vd(c,"T"+(g&256?1:0));vd(c,"S"+(g&128?1:0));vd(c,"Z"+(g&64?1:0));vd(c,"A"+(g&16?1:0));vd(c,"P"+(g&4?1:0));vd(c,"C"+(g&1?1:0),0,2);md(c,c.ba);c.context.drawImage(c.B, +0,0,e,f,c.sa,c.bb,c.fa,c.Ea)}hd(c)}if(void 0!==b)for(c=0;c]*path=(['"])(.*?)\1.*?<\/disk>\n?/g;c=n.exec(h[l]);){var q=c[2];q&&(h[q]?xb('recording disk: "%s"\n',q):p=p.replace(c[0],""))}c=l=Ya(l)}else"xsl"==n&&(d=l=Ya(l));xb('saving resource: "%s" (%d bytes)\n',l,p.length);k[l]=p}a&&(k[l="css"]=a,xb('saving resource: "%s" (%d bytes)\n',l,a.length));b[2]&& (a=k[l="parms"]=b[2],xb('saving resource: "%s" (%d bytes)\n',l,a.length));b[3]&&(a=k[l="state"]=b[3],xb('saving resource: "%s" (%d bytes)\n',l,a.length));c&&d?(b=JSON.stringify(k),f+=".js",g=g[1]+"var resources="+b+";"+g[2]+g[3],xb('saving machine: "%s" (%d bytes)\n',e,g.length),b=Rb(g,"javascript",!1,f),b=b+(', copy it to your web server as "'+f+'", and then add the following to your web page:\n\n
\n