content
stringlengths
5
1.05M
-- Animation System -- local Base = require 'src.entities.systems.base' local Animation = Base:extend() -- New -- function Animation:new(host, data) Base.new(self, host, { 'axis' }) -- -- properties self.sprite = Sprite[host.name] -- set up post-callback self.sprite:each(function(anim, name) anim:after(function() host:dispatch('onAnimationComplete', name) end) end) end -- Event: onStateChange -- function Animation:onStateChange(state) self.sprite:set(state) end -- Update -- function Animation:update(dt) self.sprite:update(dt) end -- Draw -- function Animation:draw() lg.push() lg.scale( self.host:sx() * self.host:facing(), self.host:sy()) -- self.sprite:draw() -- lg.pop() end return Animation
------------------------------------------------------------------------------- -- Sends the logging information through a socket using luasocket -- -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 2004-2021 Kepler Project -- ------------------------------------------------------------------------------- local logging = require"logging" local socket = require"socket" function logging.socket(params, ...) params = logging.getDeprecatedParams({ "hostname", "port", "logPattern" }, params, ...) local hostname = params.hostname local port = params.port local logPatterns = logging.buildLogPatterns(params.logPatterns, params.logPattern) local timestampPattern = params.timestampPattern or logging.defaultTimestampPattern() local startLevel = params.logLevel or logging.defaultLevel() return logging.new( function(self, level, message) local s = logging.prepareLogMsg(logPatterns[level], os.date(timestampPattern), level, message) local socket, err = socket.connect(hostname, port) if not socket then return nil, err end local cond, err = socket:send(s) if not cond then return nil, err end socket:close() return true end, startLevel) end return logging.socket
local Editor = {} -- ---------------------------------------------------------------------- -- Fonts -- ---------------------------------------------------------------------- local defaultFont if system.IsWindows() then defaultFont = "Courier New" elseif system.IsOSX() then defaultFont = "Monaco" else defaultFont = "DejaVu Sans Mono" end Editor.FontConVar = CreateClientConVar("wire_expression2_editor_font", defaultFont, true, false) Editor.FontSizeConVar = CreateClientConVar("wire_expression2_editor_font_size", 16, true, false) Editor.BlockCommentStyleConVar = CreateClientConVar("wire_expression2_editor_block_comment_style", 1, true, false) Editor.NewTabOnOpen = CreateClientConVar("wire_expression2_new_tab_on_open", "1", true, false) Editor.ops_sync_subscribe = CreateClientConVar("wire_expression_ops_sync_subscribe",0,true,false) Editor.Fonts = {} -- Font Description -- Windows Editor.Fonts["Courier New"] = "Windows standard font" Editor.Fonts["DejaVu Sans Mono"] = "" Editor.Fonts["Consolas"] = "" Editor.Fonts["Fixedsys"] = "" Editor.Fonts["Lucida Console"] = "" -- Mac Editor.Fonts["Monaco"] = "Mac standard font" surface.CreateFont("DefaultBold", { font = "defaultbold", size = 12, weight = 700, antialias = true, additive = false, }) Editor.CreatedFonts = {} function Editor:SetEditorFont(editor) if not self.CurrentFont then self:ChangeFont(self.FontConVar:GetString(), self.FontSizeConVar:GetInt()) return end editor.CurrentFont = self.CurrentFont editor.FontWidth = self.FontWidth editor.FontHeight = self.FontHeight end function Editor:ChangeFont(FontName, Size) if not FontName or FontName == "" or not Size then return end -- If font is not already created, create it. if not self.CreatedFonts[FontName .. "_" .. Size] then local fontTable = { font = FontName, size = Size, weight = 400, antialias = false, additive = false, } surface.CreateFont("Expression2_" .. FontName .. "_" .. Size, fontTable) fontTable.weight = 700 surface.CreateFont("Expression2_" .. FontName .. "_" .. Size .. "_Bold", fontTable) self.CreatedFonts[FontName .. "_" .. Size] = true end self.CurrentFont = "Expression2_" .. FontName .. "_" .. Size surface.SetFont(self.CurrentFont) self.FontWidth, self.FontHeight = surface.GetTextSize(" ") for i = 1, self:GetNumTabs() do self:SetEditorFont(self:GetEditor(i)) end end ------------------------------------------------------------------------ -- Colors ------------------------------------------------------------------------ local colors = { -- Table copied from TextEditor, used for saving colors to convars. ["directive"] = Color(240, 240, 160), -- yellow ["number"] = Color(240, 160, 160), -- light red ["function"] = Color(160, 160, 240), -- blue ["notfound"] = Color(240, 96, 96), -- dark red ["variable"] = Color(160, 240, 160), -- light green ["string"] = Color(128, 128, 128), -- grey ["keyword"] = Color(160, 240, 240), -- turquoise ["operator"] = Color(224, 224, 224), -- white ["comment"] = Color(128, 128, 128), -- grey ["ppcommand"] = Color(240, 96, 240), -- purple ["typename"] = Color(240, 160, 96), -- orange ["constant"] = Color(240, 160, 240), -- pink ["userfunction"] = Color(102, 122, 102), -- dark grayish-green ["dblclickhighlight"] = Color(0, 100, 0) -- dark green } local colors_defaults = {} local colors_convars = {} for k, v in pairs(colors) do colors_defaults[k] = Color(v.r, v.g, v.b) -- Copy to save defaults colors_convars[k] = CreateClientConVar("wire_expression2_editor_color_" .. k, v.r .. "_" .. v.g .. "_" .. v.b, true, false) end function Editor:LoadSyntaxColors() for k, v in pairs(colors_convars) do local r, g, b = v:GetString():match("(%d+)_(%d+)_(%d+)") local def = colors_defaults[k] colors[k] = Color(tonumber(r) or def.r, tonumber(g) or def.g, tonumber(b) or def.b) end for i = 1, self:GetNumTabs() do self:GetEditor(i):SetSyntaxColors(colors) end end function Editor:SetSyntaxColor(colorname, colr) if not colors[colorname] then return end colors[colorname] = colr RunConsoleCommand("wire_expression2_editor_color_" .. colorname, colr.r .. "_" .. colr.g .. "_" .. colr.b) for i = 1, self:GetNumTabs() do self:GetEditor(i):SetSyntaxColor(colorname, colr) end end ------------------------------------------------------------------------ local invalid_filename_chars = { ["*"] = "", ["?"] = "", [">"] = "", ["<"] = "", ["|"] = "", ["\\"] = "", ['"'] = "", [" "] = "_", } -- overwritten commands function Editor:Init() -- don't use any of the default DFrame UI components for _, v in pairs(self:GetChildren()) do v:Remove() end self.Title = "" self.subTitle = "" self.LastClick = 0 self.GuiClick = 0 self.SimpleGUI = false self.Location = "" self.C = {} self.Components = {} -- Load border colors, position, & size self:LoadEditorSettings() local fontTable = { font = "default", size = 11, weight = 300, antialias = false, additive = false, } surface.CreateFont("E2SmallFont", fontTable) self.logo = surface.GetTextureID("vgui/e2logo") self:InitComponents() self:LoadSyntaxColors() -- This turns off the engine drawing self:SetPaintBackgroundEnabled(false) self:SetPaintBorderEnabled(false) self:SetV(false) self:InitShutdownHook() end local size = CreateClientConVar("wire_expression2_editor_size", "800_600", true, false) local pos = CreateClientConVar("wire_expression2_editor_pos", "-1_-1", true, false) function Editor:LoadEditorSettings() -- Position & Size local w, h = size:GetString():match("(%d+)_(%d+)") w = tonumber(w) h = tonumber(h) self:SetSize(w, h) local x, y = pos:GetString():match("(%-?%d+)_(%-?%d+)") x = tonumber(x) y = tonumber(y) if x == -1 and y == -1 then self:Center() else self:SetPos(x, y) end if x < 0 or y < 0 or x + w > ScrW() or x + h > ScrH() then -- If the editor is outside the screen, reset it local width, height = math.min(surface.ScreenWidth() - 200, 800), math.min(surface.ScreenHeight() - 200, 620) self:SetPos((surface.ScreenWidth() - width) / 2, (surface.ScreenHeight() - height) / 2) self:SetSize(width, height) self:SaveEditorSettings() end end function Editor:SaveEditorSettings() -- Position & Size local w, h = self:GetSize() RunConsoleCommand("wire_expression2_editor_size", w .. "_" .. h) local x, y = self:GetPos() RunConsoleCommand("wire_expression2_editor_pos", x .. "_" .. y) end function Editor:PaintOver() local w, h = self:GetSize() surface.SetFont("DefaultBold") surface.SetTextColor(255, 255, 255, 255) surface.SetTextPos(10, 6) surface.DrawText(self.Title .. self.subTitle) --[[ if(self.E2) then surface.SetTexture(self.logo) surface.SetDrawColor( 255, 255, 255, 128 ) surface.DrawTexturedRect( w-148, h-158, 128, 128) end ]] -- surface.SetDrawColor(255, 255, 255, 255) surface.SetTextPos(0, 0) surface.SetFont("Default") return true end function Editor:PerformLayout() local w, h = self:GetSize() for i = 1, #self.Components do local c = self.Components[i] local c_x, c_y, c_w, c_h = c.Bounds.x, c.Bounds.y, c.Bounds.w, c.Bounds.h if (c_x < 0) then c_x = w + c_x end if (c_y < 0) then c_y = h + c_y end if (c_w < 0) then c_w = w + c_w - c_x end if (c_h < 0) then c_h = h + c_h - c_y end c:SetPos(c_x, c_y) c:SetSize(c_w, c_h) end end function Editor:OnMousePressed(mousecode) if mousecode ~= 107 then return end -- do nothing if mouseclick is other than left-click if not self.pressed then self.pressed = true self.p_x, self.p_y = self:GetPos() self.p_w, self.p_h = self:GetSize() self.p_mx = gui.MouseX() self.p_my = gui.MouseY() self.p_mode = self:getMode() if self.p_mode == "drag" then if self.GuiClick > CurTime() - 0.2 then self:fullscreen() self.pressed = false self.GuiClick = 0 else self.GuiClick = CurTime() end end end end function Editor:OnMouseReleased(mousecode) if mousecode ~= 107 then return end -- do nothing if mouseclick is other than left-click self.pressed = false end function Editor:Think() if self.fs then return end if self.pressed then if not input.IsMouseDown(MOUSE_LEFT) then -- needs this if you let go of the mouse outside the panel self.pressed = false end local movedX = gui.MouseX() - self.p_mx local movedY = gui.MouseY() - self.p_my if self.p_mode == "drag" then local x = self.p_x + movedX local y = self.p_y + movedY if (x < 10 and x > -10) then x = 0 end if (y < 10 and y > -10) then y = 0 end if (x + self.p_w < surface.ScreenWidth() + 10 and x + self.p_w > surface.ScreenWidth() - 10) then x = surface.ScreenWidth() - self.p_w end if (y + self.p_h < surface.ScreenHeight() + 10 and y + self.p_h > surface.ScreenHeight() - 10) then y = surface.ScreenHeight() - self.p_h end self:SetPos(x, y) end if self.p_mode == "sizeBR" then local w = self.p_w + movedX local h = self.p_h + movedY if (self.p_x + w < surface.ScreenWidth() + 10 and self.p_x + w > surface.ScreenWidth() - 10) then w = surface.ScreenWidth() - self.p_x end if (self.p_y + h < surface.ScreenHeight() + 10 and self.p_y + h > surface.ScreenHeight() - 10) then h = surface.ScreenHeight() - self.p_y end if (w < 300) then w = 300 end if (h < 200) then h = 200 end self:SetSize(w, h) end if self.p_mode == "sizeR" then local w = self.p_w + movedX if (w < 300) then w = 300 end self:SetWide(w) end if self.p_mode == "sizeB" then local h = self.p_h + movedY if (h < 200) then h = 200 end self:SetTall(h) end end if not self.pressed then local cursor = "arrow" local mode = self:getMode() if (mode == "sizeBR") then cursor = "sizenwse" elseif (mode == "sizeR") then cursor = "sizewe" elseif (mode == "sizeB") then cursor = "sizens" end if cursor ~= self.cursor then self.cursor = cursor self:SetCursor(self.cursor) end end local x, y = self:GetPos() local w, h = self:GetSize() if w < 518 then w = 518 end if h < 200 then h = 200 end if x < 0 then x = 0 end if y < 0 then y = 0 end if x + w > surface.ScreenWidth() then x = surface.ScreenWidth() - w end if y + h > surface.ScreenHeight() then y = surface.ScreenHeight() - h end if y < 0 then y = 0 end if x < 0 then x = 0 end if w > surface.ScreenWidth() then w = surface.ScreenWidth() end if h > surface.ScreenHeight() then h = surface.ScreenHeight() end self:SetPos(x, y) self:SetSize(w, h) end -- special functions function Editor:fullscreen() if self.fs then self:SetPos(self.preX, self.preY) self:SetSize(self.preW, self.preH) self.fs = false else self.preX, self.preY = self:GetPos() self.preW, self.preH = self:GetSize() self:SetPos(0, 0) self:SetSize(surface.ScreenWidth(), surface.ScreenHeight()) self.fs = true end end function Editor:getMode() local x, y = self:GetPos() local w, h = self:GetSize() local ix = gui.MouseX() - x local iy = gui.MouseY() - y if (ix < 0 or ix > w or iy < 0 or iy > h) then return end -- if the mouse is outside the box if (iy < 22) then return "drag" end if (iy > h - 10) then if (ix > w - 20) then return "sizeBR" end return "sizeB" end if (ix > w - 10) then if (iy > h - 20) then return "sizeBR" end return "sizeR" end end function Editor:addComponent(panel, x, y, w, h) assert(not panel.Bounds) panel.Bounds = { x = x, y = y, w = w, h = h } self.Components[#self.Components + 1] = panel return panel end -- TODO: Fix this function local function extractNameFromCode(str) return str:match("@name ([^\r\n]+)") end local function getPreferredTitles(Line, code) local title local tabtext local str = Line if str and str ~= "" then title = str tabtext = str end local str = extractNameFromCode(code) if str and str ~= "" then if not title then title = str end tabtext = str end return title, tabtext end function Editor:GetLastTab() return self.LastTab end function Editor:SetLastTab(Tab) self.LastTab = Tab end function Editor:GetActiveTab() return self.C.TabHolder:GetActiveTab() end function Editor:GetNumTabs() return #self.C.TabHolder.Items end function Editor:SetActiveTab(val) if self:GetActiveTab() == val then val:GetPanel():RequestFocus() return end self:SetLastTab(self:GetActiveTab()) if isnumber(val) then self.C.TabHolder:SetActiveTab(self.C.TabHolder.Items[val].Tab) self:GetCurrentEditor():RequestFocus() elseif val and val:IsValid() then self.C.TabHolder:SetActiveTab(val) val:GetPanel():RequestFocus() end if self.E2 then self:Validate() end -- Editor subtitle and tab text local title, tabtext = getPreferredTitles(self:GetChosenFile(), self:GetCode()) if title then self:SubTitle("Editing: " .. title) else self:SubTitle() end if tabtext then if self:GetActiveTab():GetText() ~= tabtext then self:GetActiveTab():SetText(tabtext) self.C.TabHolder.tabScroller:InvalidateLayout() end end end function Editor:GetActiveTabIndex() local tab = self:GetActiveTab() for k, v in pairs(self.C.TabHolder.Items) do if tab == v.Tab then return k end end return -1 end function Editor:SetActiveTabIndex(index) local tab = self.C.TabHolder.Items[index].Tab if not tab then return end self:SetActiveTab(tab) end local function extractNameFromFilePath(str) local found = str:reverse():find("/", 1, true) if found then return str:Right(found - 1) else return str end end function Editor:SetSyntaxColorLine(func) self.SyntaxColorLine = func for i = 1, self:GetNumTabs() do self:GetEditor(i).SyntaxColorLine = func end end function Editor:GetSyntaxColorLine() return self.SyntaxColorLine end local old function Editor:FixTabFadeTime() if old ~= nil then return end -- It's already being fixed local old = self.C.TabHolder:GetFadeTime() self.C.TabHolder:SetFadeTime(0) timer.Simple(old, function() self.C.TabHolder:SetFadeTime(old) old = nil end) end function Editor:CreateTab(chosenfile) local editor = vgui.Create("Expression2Editor") editor.parentpanel = self local sheet = self.C.TabHolder:AddSheet(extractNameFromFilePath(chosenfile), editor) self:SetEditorFont(editor) editor.chosenfile = chosenfile sheet.Tab.OnMousePressed = function(pnl, keycode, ...) if keycode == MOUSE_MIDDLE then --self:FixTabFadeTime() self:CloseTab(pnl) return elseif keycode == MOUSE_RIGHT then local menu = DermaMenu() menu:AddOption("Close", function() --self:FixTabFadeTime() self:CloseTab(pnl) end) menu:AddOption("Close all others", function() self:FixTabFadeTime() self:SetActiveTab(pnl) for i = self:GetNumTabs(), 1, -1 do if self.C.TabHolder.Items[i] ~= sheet then self:CloseTab(i) end end end) menu:AddSpacer() menu:AddOption("Save", function() self:FixTabFadeTime() local old = self:GetLastTab() self:SetActiveTab(pnl) self:SaveFile(self:GetChosenFile(), true) self:SetActiveTab(self:GetLastTab()) self:SetLastTab(old) end) menu:AddOption("Save As", function() self:FixTabFadeTime() local old = self:GetLastTab() self:SetActiveTab(pnl) self:SaveFile(self:GetChosenFile(), false, true) self:SetActiveTab(self:GetLastTab()) self:SetLastTab(old) end) menu:AddOption("Reload", function() self:FixTabFadeTime() local old = self:GetLastTab() self:SetActiveTab(pnl) self:LoadFile(editor.chosenfile, false) self:SetActiveTab(self:GetLastTab()) self:SetLastTab(old) end) menu:AddSpacer() menu:AddOption("Copy file path to clipboard", function() if editor.chosenfile and editor.chosenfile ~= "" then SetClipboardText(editor.chosenfile) end end) menu:AddOption("Copy all file paths to clipboard", function() local str = "" for i = 1, self:GetNumTabs() do local chosenfile = self:GetEditor(i).chosenfile if chosenfile and chosenfile ~= "" then str = str .. chosenfile .. ";" end end str = str:sub(1, -2) SetClipboardText(str) end) menu:Open() return end self:SetActiveTab(pnl) end editor.OnTextChanged = function(panel) timer.Create("e2autosave", 5, 1, function() self:AutoSave() end) end editor.OnShortcut = function(_, code) if code == KEY_S then self:SaveFile(self:GetChosenFile()) if self.E2 then self:Validate() end else local mode = GetConVar("wire_expression2_autocomplete_controlstyle"):GetInt() local enabled = GetConVar("wire_expression2_autocomplete"):GetBool() if mode == 1 and enabled then if code == KEY_B then self:Validate(true) elseif code == KEY_SPACE then local ed = self:GetCurrentEditor() if (ed.AC_Panel and ed.AC_Panel:IsVisible()) then ed:AC_Use(ed.AC_Suggestions[1]) end end elseif code == KEY_SPACE then self:Validate(true) end end end editor:RequestFocus() local func = self:GetSyntaxColorLine() if func ~= nil then -- it's a custom syntax highlighter editor.SyntaxColorLine = func else -- else it's E2's syntax highlighter editor:SetSyntaxColors(colors) end self:OnTabCreated(sheet) -- Call a function that you can override to do custom stuff to each tab. return sheet end function Editor:OnTabCreated(sheet) end -- This function is made to be overwritten function Editor:GetNextAvailableTab() local activetab = self:GetActiveTab() for k, v in pairs(self.C.TabHolder.Items) do if v.Tab and v.Tab:IsValid() and v.Tab ~= activetab then return v.Tab end end end function Editor:NewTab() local sheet = self:CreateTab("generic") self:SetActiveTab(sheet.Tab) if self.E2 then self:NewScript(true) end end function Editor:CloseTab(_tab) local activetab, sheetindex if _tab then if isnumber(_tab) then local temp = self.C.TabHolder.Items[_tab] if temp then activetab = temp.Tab sheetindex = _tab else return end else activetab = _tab -- Find the sheet index for k, v in pairs(self.C.TabHolder.Items) do if activetab == v.Tab then sheetindex = k break end end end else activetab = self:GetActiveTab() -- Find the sheet index for k, v in pairs(self.C.TabHolder.Items) do if activetab == v.Tab then sheetindex = k break end end end self:AutoSave() -- There's only one tab open, no need to actually close any tabs if self:GetNumTabs() == 1 then activetab:SetText("generic") self.C.TabHolder:InvalidateLayout() self:NewScript(true) return end -- Find the panel (for the scroller) local tabscroller_sheetindex for k, v in pairs(self.C.TabHolder.tabScroller.Panels) do if v == activetab then tabscroller_sheetindex = k break end end self:FixTabFadeTime() if activetab == self:GetActiveTab() then -- We're about to close the current tab if self:GetLastTab() and self:GetLastTab():IsValid() then -- If the previous tab was saved if activetab == self:GetLastTab() then -- If the previous tab is equal to the current tab local othertab = self:GetNextAvailableTab() -- Find another tab if othertab and othertab:IsValid() then -- If that other tab is valid, use it self:SetActiveTab(othertab) self:SetLastTab() else -- Reset the current tab (backup) self:GetActiveTab():SetText("generic") self.C.TabHolder:InvalidateLayout() self:NewScript(true) return end else -- Change to the previous tab self:SetActiveTab(self:GetLastTab()) self:SetLastTab() end else -- If the previous tab wasn't saved local othertab = self:GetNextAvailableTab() -- Find another tab if othertab and othertab:IsValid() then -- If that other tab is valid, use it self:SetActiveTab(othertab) else -- Reset the current tab (backup) self:GetActiveTab():SetText("generic") self.C.TabHolder:InvalidateLayout() self:NewScript(true) return end end end self:OnTabClosed(activetab) -- Call a function that you can override to do custom stuff to each tab. activetab:GetPanel():Remove() activetab:Remove() table.remove(self.C.TabHolder.Items, sheetindex) table.remove(self.C.TabHolder.tabScroller.Panels, tabscroller_sheetindex) self.C.TabHolder.tabScroller:InvalidateLayout() local w, h = self.C.TabHolder:GetSize() self.C.TabHolder:SetSize(w + 1, h) -- +1 so it updates end function Editor:OnTabClosed(sheet) end -- This function is made to be overwritten -- initialization commands function Editor:InitComponents() self.Components = {} self.C = {} local function PaintFlatButton(panel, w, h) if not (panel:IsHovered() or panel:IsDown()) then return end derma.SkinHook("Paint", "Button", panel, w, h) end local DMenuButton = vgui.RegisterTable({ Init = function(panel) panel:SetText("") panel:SetSize(24, 20) panel:Dock(LEFT) end, Paint = PaintFlatButton, DoClick = function(panel) local name = panel:GetName() local f = name and name ~= "" and self[name] or nil if f then f(self) end end }, "DButton") -- addComponent( panel, x, y, w, h ) -- if x, y, w, h is minus, it will stay relative to right or buttom border self.C.Close = self:addComponent(vgui.Create("DButton", self), -45-4, 0, 45, 22) -- Close button self.C.Inf = self:addComponent(vgui.CreateFromTable(DMenuButton, self), -45-4-26, 0, 24, 22) -- Info button self.C.ConBut = self:addComponent(vgui.CreateFromTable(DMenuButton, self), -45-4-24-26, 0, 24, 22) -- Control panel open/close self.C.Divider = vgui.Create("DHorizontalDivider", self) self.C.Browser = vgui.Create("wire_expression2_browser", self.C.Divider) -- Expression browser self.C.MainPane = vgui.Create("DPanel", self.C.Divider) self.C.Menu = vgui.Create("DPanel", self.C.MainPane) self.C.Val = vgui.Create("Button", self.C.MainPane) -- Validation line self.C.TabHolder = vgui.Create("DPropertySheet", self.C.MainPane) self.C.Btoggle = vgui.CreateFromTable(DMenuButton, self.C.Menu) -- Toggle Browser being shown self.C.Sav = vgui.CreateFromTable(DMenuButton, self.C.Menu) -- Save button self.C.NewTab = vgui.CreateFromTable(DMenuButton, self.C.Menu, "NewTab") -- New tab button self.C.CloseTab = vgui.CreateFromTable(DMenuButton, self.C.Menu, "CloseTab") -- Close tab button self.C.Reload = vgui.CreateFromTable(DMenuButton, self.C.Menu) -- Reload tab button self.C.SaE = vgui.Create("DButton", self.C.Menu) -- Save & Exit button self.C.SavAs = vgui.Create("DButton", self.C.Menu) -- Save As button self.C.Control = self:addComponent(vgui.Create("Panel", self), -350, 52, 342, -32) -- Control Panel self.C.Credit = self:addComponent(vgui.Create("DTextEntry", self), -160, 52, 150, 150) -- Credit box self:CreateTab("generic") -- extra component options self.C.Divider:SetLeft(self.C.Browser) self.C.Divider:SetRight(self.C.MainPane) self.C.Divider:Dock(FILL) self.C.Divider:SetDividerWidth(4) self.C.Divider:SetCookieName("wire_expression2_editor_divider") local DoNothing = function() end self.C.MainPane.Paint = DoNothing --self.C.Menu.Paint = DoNothing self.C.Menu:Dock(TOP) self.C.TabHolder:Dock(FILL) self.C.Val:Dock(BOTTOM) self.C.TabHolder:SetPadding(1) self.C.Menu:SetHeight(24) self.C.Menu:DockPadding(2,2,2,2) self.C.Val:SetHeight(22) self.C.SaE:SetSize(80, 20) self.C.SaE:Dock(RIGHT) self.C.SavAs:SetSize(51, 20) self.C.SavAs:Dock(RIGHT) self.C.Inf:Dock(NODOCK) self.C.ConBut:Dock(NODOCK) self.C.Close:SetText("r") self.C.Close:SetFont("Marlett") self.C.Close.DoClick = function(btn) self:Close() end self.C.ConBut:SetImage("icon16/wrench.png") self.C.ConBut:SetText("") self.C.ConBut.Paint = PaintFlatButton self.C.ConBut.DoClick = function() self.C.Control:SetVisible(not self.C.Control:IsVisible()) end self.C.Inf:SetImage("icon16/information.png") self.C.Inf.Paint = PaintFlatButton self.C.Inf.DoClick = function(btn) self.C.Credit:SetVisible(not self.C.Credit:IsVisible()) end self.C.Sav:SetImage("icon16/disk.png") self.C.Sav.DoClick = function(button) self:SaveFile(self:GetChosenFile()) end self.C.Sav:SetToolTip( "Save" ) self.C.NewTab:SetImage("icon16/page_white_add.png") self.C.NewTab.DoClick = function(button) self:NewTab() end self.C.NewTab:SetToolTip( "New tab" ) self.C.CloseTab:SetImage("icon16/page_white_delete.png") self.C.CloseTab.DoClick = function(button) self:CloseTab() end self.C.CloseTab:SetToolTip( "Close tab" ) self.C.Reload:SetImage("icon16/page_refresh.png") self.C.Reload:SetToolTip( "Refresh file" ) self.C.Reload.DoClick = function(button) self:LoadFile(self:GetChosenFile(), false) end self.C.SaE:SetText("Save and Exit") self.C.SaE.DoClick = function(button) self:SaveFile(self:GetChosenFile(), true) end self.C.SavAs:SetText("Save As") self.C.SavAs.DoClick = function(button) self:SaveFile(self:GetChosenFile(), false, true) end self.C.Browser:AddRightClick(self.C.Browser.filemenu, 4, "Save to", function() Derma_Query("Overwrite this file?", "Save To", "Overwrite", function() self:SaveFile(self.C.Browser.File.FileDir) end, "Cancel") end) self.C.Browser.OnFileOpen = function(_, filepath, newtab) self:Open(filepath, nil, newtab) end self.C.Val:SetText(" Click to validate...") self.C.Val.UpdateColours = function(button, skin) return button:SetTextStyleColor(skin.Colours.Button.Down) end self.C.Val.SetBGColor = function(button, r, g, b, a) self.C.Val.bgcolor = Color(r, g, b, a) end self.C.Val.bgcolor = Color(255, 255, 255) self.C.Val.Paint = function(button) local w, h = button:GetSize() draw.RoundedBox(1, 0, 0, w, h, button.bgcolor) if button.Hovered then draw.RoundedBox(0, 1, 1, w - 2, h - 2, Color(0, 0, 0, 128)) end end self.C.Val.OnMousePressed = function(panel, btn) if btn == MOUSE_RIGHT then local menu = DermaMenu() menu:AddOption("Copy to clipboard", function() SetClipboardText(self.C.Val:GetValue():sub(4)) end) menu:Open() else self:Validate(true) end end self.C.Btoggle:SetImage("icon16/application_side_contract.png") function self.C.Btoggle.DoClick(button) if button.hide then self.C.Divider:LoadCookies() else self.C.Divider:SetLeftWidth(0) end button:InvalidateLayout() end local oldBtoggleLayout = self.C.Btoggle.PerformLayout function self.C.Btoggle.PerformLayout(button) oldBtoggleLayout(button) if self.C.Divider:GetLeftWidth() > 0 then button.hide = false button:SetImage("icon16/application_side_contract.png") else button.hide = true button:SetImage("icon16/application_side_expand.png") end end self.C.Credit:SetTextColor(Color(0, 0, 0, 255)) self.C.Credit:SetText("\t\tCREDITS\n\n\tEditor by: \tSyranide and Shandolum\n\n\tTabs (and more) added by Divran.\n\n\tFixed for GMod13 By Ninja101") -- Sure why not ;) self.C.Credit:SetMultiline(true) self.C.Credit:SetVisible(false) self:InitControlPanel(self.C.Control) -- making it seperate for better overview self.C.Control:SetVisible(false) if self.E2 then self:Validate() end end function Editor:AutoSave() local buffer = self:GetCode() if self.savebuffer == buffer or buffer == defaultcode or buffer == "" then return end self.savebuffer = buffer file.Write(self.Location .. "/_autosave_.txt", buffer) end function Editor:AddControlPanelTab(label, icon, tooltip) local frame = self.C.Control local panel = vgui.Create("DPanel") local ret = frame.TabHolder:AddSheet(label, panel, icon, false, false, tooltip) local old = ret.Tab.OnMousePressed function ret.Tab.OnMousePressed(...) timer.Simple(0.1,function() frame:ResizeAll() end) -- timers solve everything old(...) end ret.Panel:SetBackgroundColor(Color(96, 96, 96, 255)) return ret end function Editor:InitControlPanel(frame) local C = self.C.Control -- Add a property sheet to hold the tabs local tabholder = vgui.Create("DPropertySheet", frame) tabholder:SetPos(2, 4) frame.TabHolder = tabholder -- They need to be resized one at a time... dirty fix incoming (If you know of a nicer way to do this, don't hesitate to fix it.) local function callNext(t, n) local obj = t[n] local pnl = obj[1] if pnl and pnl:IsValid() then local x, y = obj[2], obj[3] pnl:SetPos(x, y) local w, h = pnl:GetParent():GetSize() local wofs, hofs = w - x * 2, h - y * 2 pnl:SetSize(wofs, hofs) end n = n + 1 if n <= #t then timer.Simple(0, function() callNext(t, n) end) end end function frame:ResizeAll() timer.Simple(0, function() callNext(self.ResizeObjects, 1) end) end -- Resize them at the right times local old = frame.SetSize function frame:SetSize(...) self:ResizeAll() old(self, ...) end local old = frame.SetVisible function frame:SetVisible(...) self:ResizeAll() old(self, ...) end -- Function to add more objects to resize automatically frame.ResizeObjects = {} function frame:AddResizeObject(...) self.ResizeObjects[#self.ResizeObjects + 1] = { ... } end -- Our first object to auto resize is the tabholder. This sets it to position 2,4 and with a width and height offset of w-4, h-8. frame:AddResizeObject(tabholder, 2, 4) -- ------------------------------------------- EDITOR TAB local sheet = self:AddControlPanelTab("Editor", "icon16/wrench.png", "Options for the editor itself.") -- WINDOW BORDER COLORS local dlist = vgui.Create("DPanelList", sheet.Panel) dlist.Paint = function() end frame:AddResizeObject(dlist, 4, 4) dlist:EnableVerticalScrollbar(true) -- Color Mixer PANEL - Houses label, combobox, mixer, reset button & reset all button. local mixPanel = vgui.Create( "panel" ) mixPanel:SetTall( 240 ) dlist:AddItem( mixPanel ) do -- Label local label = vgui.Create( "DLabel", mixPanel ) label:Dock( TOP ) label:SetText( "Syntax Colors" ) label:SizeToContents() -- Dropdown box of convars to change ( affects editor colors ) local box = vgui.Create( "DComboBox", mixPanel ) box:Dock( TOP ) box:SetValue( "Color feature" ) local active = nil -- Mixer local mixer = vgui.Create( "DColorMixer", mixPanel ) mixer:Dock( FILL ) mixer:SetPalette( true ) mixer:SetAlphaBar( true ) mixer:SetWangs( true ) mixer.ValueChanged = function ( _, clr ) self:SetSyntaxColor( active, clr ) end for k, _ in pairs( colors_convars ) do box:AddChoice( k ) end box.OnSelect = function ( self, index, value, data ) -- DComboBox doesn't have a method for getting active value ( to my knowledge ) -- Therefore, cache it, we're in a local scope so we're fine. active = value mixer:SetColor( colors[ active ] or Color( 255, 255, 255 ) ) end -- Reset ALL button local rAll = vgui.Create( "DButton", mixPanel ) rAll:Dock( BOTTOM ) rAll:SetText( "Reset ALL to Default" ) rAll.DoClick = function () for k, v in pairs( colors_defaults ) do self:SetSyntaxColor( k, v ) end mixer:SetColor( colors_defaults[ active ] ) end -- Reset to default button local reset = vgui.Create( "DButton", mixPanel ) reset:Dock( BOTTOM ) reset:SetText( "Set to Default" ) reset.DoClick = function () self:SetSyntaxColor( active, colors_defaults[ active ] ) mixer:SetColor( colors_defaults[ active ] ) end -- Select a convar to be displayed automatically box:ChooseOptionID( 1 ) end --- - FONTS local FontLabel = vgui.Create("DLabel") dlist:AddItem(FontLabel) FontLabel:SetText("Font: Font Size:") FontLabel:SizeToContents() FontLabel:SetPos(10, 0) local temp = vgui.Create("Panel") temp:SetTall(25) dlist:AddItem(temp) local FontSelect = vgui.Create("DComboBox", temp) -- dlist:AddItem( FontSelect ) FontSelect.OnSelect = function(panel, index, value) if value == "Custom..." then Derma_StringRequestNoBlur("Enter custom font:", "", "", function(value) self:ChangeFont(value, self.FontSizeConVar:GetInt()) RunConsoleCommand("wire_expression2_editor_font", value) end) else value = value:gsub(" %b()", "") -- Remove description self:ChangeFont(value, self.FontSizeConVar:GetInt()) RunConsoleCommand("wire_expression2_editor_font", value) end end for k, v in pairs(self.Fonts) do FontSelect:AddChoice(k .. (v ~= "" and " (" .. v .. ")" or "")) end FontSelect:AddChoice("Custom...") FontSelect:SetSize(240 - 50 - 4, 20) local FontSizeSelect = vgui.Create("DComboBox", temp) FontSizeSelect.OnSelect = function(panel, index, value) value = value:gsub(" %b()", "") self:ChangeFont(self.FontConVar:GetString(), tonumber(value)) RunConsoleCommand("wire_expression2_editor_font_size", value) end for i = 11, 26 do FontSizeSelect:AddChoice(i .. (i == 16 and " (Default)" or "")) end FontSizeSelect:SetPos(FontSelect:GetWide() + 4, 0) FontSizeSelect:SetSize(50, 20) local label = vgui.Create("DLabel") dlist:AddItem(label) label:SetText("Auto completion options") label:SizeToContents() local AutoComplete = vgui.Create("DCheckBoxLabel") dlist:AddItem(AutoComplete) AutoComplete:SetConVar("wire_expression2_autocomplete") AutoComplete:SetText("Auto Completion") AutoComplete:SizeToContents() AutoComplete:SetTooltip("Enable/disable auto completion in the E2 editor.") local AutoCompleteExtra = vgui.Create("DCheckBoxLabel") dlist:AddItem(AutoCompleteExtra) AutoCompleteExtra:SetConVar("wire_expression2_autocomplete_moreinfo") AutoCompleteExtra:SetText("More Info (for AC)") AutoCompleteExtra:SizeToContents() AutoCompleteExtra:SetTooltip("Enable/disable additional information for auto completion.") local label = vgui.Create("DLabel") dlist:AddItem(label) label:SetText("Auto completion control style") label:SizeToContents() local AutoCompleteControlOptions = vgui.Create("DComboBox") dlist:AddItem(AutoCompleteControlOptions) local modes = {} modes["Default"] = { 0, "Current mode:\nTab/CTRL+Tab to choose item;\nEnter/Space to use;\nArrow keys to abort." } modes["Visual C# Style"] = { 1, "Current mode:\nCtrl+Space to use the top match;\nArrow keys to choose item;\nTab/Enter/Space to use;\nCode validation hotkey (ctrl+space) moved to ctrl+b." } modes["Scroller"] = { 2, "Current mode:\nMouse scroller to choose item;\nMiddle mouse to use." } modes["Scroller w/ Enter"] = { 3, "Current mode:\nMouse scroller to choose item;\nEnter to use." } modes["Eclipse Style"] = { 4, "Current mode:\nEnter to use top match;\nTab to enter auto completion menu;\nArrow keys to choose item;\nEnter to use;\nSpace to abort." } -- modes["Qt Creator Style"] = { 6, "Current mode:\nCtrl+Space to enter auto completion menu;\nSpace to abort; Enter to use top match." } <-- probably wrong. I'll check about adding Qt style later. for k, v in pairs(modes) do AutoCompleteControlOptions:AddChoice(k) end modes[0] = modes["Default"][2] modes[1] = modes["Visual C# Style"][2] modes[2] = modes["Scroller"][2] modes[3] = modes["Scroller w/ Enter"][2] modes[4] = modes["Eclipse Style"][2] AutoCompleteControlOptions:SetToolTip(modes[GetConVar("wire_expression2_autocomplete_controlstyle"):GetInt()]) AutoCompleteControlOptions.OnSelect = function(panel, index, value) panel:SetToolTip(modes[value][2]) RunConsoleCommand("wire_expression2_autocomplete_controlstyle", modes[value][1]) end local HighightOnUse = vgui.Create("DCheckBoxLabel") dlist:AddItem(HighightOnUse) HighightOnUse:SetConVar("wire_expression2_autocomplete_highlight_after_use") HighightOnUse:SetText("Highlight word after AC use.") HighightOnUse:SizeToContents() HighightOnUse:SetTooltip("Enable/Disable highlighting of the entire word after using auto completion.\nIn E2, this is only for variables/constants, not functions.") local label = vgui.Create("DLabel") dlist:AddItem(label) label:SetText("Other options") label:SizeToContents() local NewTabOnOpen = vgui.Create("DCheckBoxLabel") dlist:AddItem(NewTabOnOpen) NewTabOnOpen:SetConVar("wire_expression2_new_tab_on_open") NewTabOnOpen:SetText("New tab on open") NewTabOnOpen:SizeToContents() NewTabOnOpen:SetTooltip("Enable/disable loaded files opening in a new tab.\nIf disabled, loaded files will be opened in the current tab.") local SaveTabsOnClose = vgui.Create("DCheckBoxLabel") dlist:AddItem(SaveTabsOnClose) SaveTabsOnClose:SetConVar("wire_expression2_editor_savetabs") SaveTabsOnClose:SetText("Save tabs on close") SaveTabsOnClose:SizeToContents() SaveTabsOnClose:SetTooltip("Save the currently opened tab file paths on shutdown.\nOnly saves tabs whose files are saved.") local OpenOldTabs = vgui.Create("DCheckBoxLabel") dlist:AddItem(OpenOldTabs) OpenOldTabs:SetConVar("wire_expression2_editor_openoldtabs") OpenOldTabs:SetText("Open old tabs on load") OpenOldTabs:SizeToContents() OpenOldTabs:SetTooltip("Open the tabs from the last session on load.\nOnly tabs whose files were saved before disconnecting from the server are stored.") local DisplayCaretPos = vgui.Create("DCheckBoxLabel") dlist:AddItem(DisplayCaretPos) DisplayCaretPos:SetConVar("wire_expression2_editor_display_caret_pos") DisplayCaretPos:SetText("Show Caret Position") DisplayCaretPos:SizeToContents() DisplayCaretPos:SetTooltip("Shows the position of the caret.") local HighlightOnDoubleClick = vgui.Create("DCheckBoxLabel") dlist:AddItem(HighlightOnDoubleClick) HighlightOnDoubleClick:SetConVar("wire_expression2_editor_highlight_on_double_click") HighlightOnDoubleClick:SetText("Highlight copies of selected word") HighlightOnDoubleClick:SizeToContents() HighlightOnDoubleClick:SetTooltip("Find all identical words and highlight them after a double-click.") local WorldClicker = vgui.Create("DCheckBoxLabel") dlist:AddItem(WorldClicker) WorldClicker:SetConVar("wire_expression2_editor_worldclicker") WorldClicker:SetText("Enable Clicking Outside Editor") WorldClicker:SizeToContents() function WorldClicker.OnChange(pnl, bVal) self:GetParent():SetWorldClicker(bVal) end --------------------------------------------- EXPRESSION 2 TAB local sheet = self:AddControlPanelTab("Expression 2", "icon16/computer.png", "Options for Expression 2.") local dlist = vgui.Create("DPanelList", sheet.Panel) dlist.Paint = function() end frame:AddResizeObject(dlist, 2, 2) dlist:EnableVerticalScrollbar(true) local label = vgui.Create("DLabel") dlist:AddItem(label) label:SetText("Clientside expression 2 options") label:SizeToContents() local AutoIndent = vgui.Create("DCheckBoxLabel") dlist:AddItem(AutoIndent) AutoIndent:SetConVar("wire_expression2_autoindent") AutoIndent:SetText("Auto indenting") AutoIndent:SizeToContents() AutoIndent:SetTooltip("Enable/disable auto indenting.") local Concmd = vgui.Create("DCheckBoxLabel") dlist:AddItem(Concmd) Concmd:SetConVar("wire_expression2_concmd") Concmd:SetText("concmd") Concmd:SizeToContents() Concmd:SetTooltip("Allow/disallow the E2 from running console commands on you.") local label = vgui.Create("DLabel") dlist:AddItem(label) label:SetText("Concmd whitelist") label:SizeToContents() local ConcmdWhitelist = vgui.Create("DTextEntry") dlist:AddItem(ConcmdWhitelist) ConcmdWhitelist:SetConVar("wire_expression2_concmd_whitelist") ConcmdWhitelist:SetToolTip("Separate the commands with commas.") local label = vgui.Create("DLabel") dlist:AddItem(label) label:SetText("Expression 2 block comment style") label:SizeToContents() local BlockCommentStyle = vgui.Create("DComboBox") dlist:AddItem(BlockCommentStyle) local modes = {} modes["New (alt 1)"] = { 0, [[Current mode: #[ Text here Text here ]#]] } modes["New (alt 2)"] = { 1, [[Current mode: #[Text here Text here]# ]] } modes["Old"] = { 2, [[Current mode: #Text here #Text here]] } for k, v in pairs(modes) do BlockCommentStyle:AddChoice(k) end modes[0] = modes["New (alt 1)"][2] modes[1] = modes["New (alt 2)"][2] modes[2] = modes["Old"][2] BlockCommentStyle:SetToolTip(modes[self.BlockCommentStyleConVar:GetInt()]) BlockCommentStyle.OnSelect = function(panel, index, value) panel:SetToolTip(modes[value][2]) RunConsoleCommand("wire_expression2_editor_block_comment_style", modes[value][1]) end local ops_sync_checkbox = vgui.Create("DCheckBoxLabel") dlist:AddItem(ops_sync_checkbox) ops_sync_checkbox:SetConVar("wire_expression_ops_sync_subscribe") ops_sync_checkbox:SetText("ops/cpu usage syncing for remote uploader (Admin only)") ops_sync_checkbox:SizeToContents() ops_sync_checkbox:SetTooltip("Opt into live ops/cpu usage for all E2s on the server via the remote uploader tab. If you're not admin, this checkbox does nothing.") -- ------------------------------------------- REMOTE UPDATER TAB local sheet = self:AddControlPanelTab("Remote Updater", "icon16/world.png", "Manage your E2s from far away.") local dlist = vgui.Create("DPanelList", sheet.Panel) dlist.Paint = function() end frame:AddResizeObject(dlist, 2, 2) dlist:EnableVerticalScrollbar(true) dlist:SetSpacing(2) local dlist2 = vgui.Create("DPanelList") dlist:AddItem(dlist2) dlist2:EnableVerticalScrollbar(true) -- frame:AddResizeObject( dlist2, 2,2 ) -- dlist2:SetTall( 444 ) dlist2:SetSpacing(1) local painted = 0 local opened = false dlist2.Paint = function() painted = SysTime() + 0.05 end timer.Create( "wire_expression2_ops_sync_check", 0, 0, function() if painted > SysTime() and not opened then opened = true if Editor.ops_sync_subscribe:GetBool() then RunConsoleCommand("wire_expression_ops_sync","1") end elseif painted < SysTime() and opened then opened = false RunConsoleCommand("wire_expression_ops_sync","0") end end) local UpdateList = vgui.Create("DButton") UpdateList:SetText("Update List (Show only yours)") dlist:AddItem(UpdateList) UpdateList.DoClick = function(pnl, showall) local E2s = ents.FindByClass("gmod_wire_expression2") dlist2:Clear() local size = 0 for k, v in pairs(E2s) do local ply = v:GetNWEntity("player", NULL) if IsValid(ply) and ply == LocalPlayer() or showall then local nick if not ply or not ply:IsValid() then nick = "Unknown" else nick = ply:Nick() end local name = v:GetNWString("name", "generic") local singleline = string.match( name, "(.-)\n" ) if singleline then name = singleline .. "..." end local max = 20 if #name > max then name = string.sub(name,1,max) .. "..." end local panel = vgui.Create("DPanel") panel:SetTall((LocalPlayer():IsAdmin() and 74 or 47)) panel.Paint = function(panel) local w, h = panel:GetSize() draw.RoundedBox(1, 0, 0, w, h, Color(65, 105, 255, 100)) end dlist2:AddItem(panel) size = size + panel:GetTall() + 1 local label = vgui.Create("DLabel", panel) local idx = v:EntIndex() local str = string.format("Name: %s\nEntity ID: '%d'\nOwner: %s",name,idx,nick) if LocalPlayer():IsAdmin() then str = string.format("Name: %s\nEntity ID: '%d'\n%i ops, %i%% %s\ncpu time: %ius\nOwner: %s",name,idx,0,0,"",0,nick) end label:SetText(str) label:SizeToContents() label:SetWide(280) label:SetWrap(true) label:SetPos(4, 4) label:SetTextColor(Color(255, 255, 255, 255)) if LocalPlayer():IsAdmin() then local hardquota = GetConVar("wire_expression2_quotahard") local softquota = GetConVar("wire_expression2_quotasoft") function label:Think() if not IsValid(v) then label.Think = function() end return end local data = v:GetOverlayData() if data then local prfbench = data.prfbench local prfcount = data.prfcount local timebench = data.timebench local e2_hardquota = hardquota:GetInt() local e2_softquota = softquota:GetInt() local hardtext = (prfcount / e2_hardquota > 0.33) and "(+" .. tostring(math.Round(prfcount / e2_hardquota * 100)) .. "%)" or "" label:SetText(string.format("Name: %s\nEntity ID: '%d'\n%i ops, %i%% %s\ncpu time: %ius\nOwner: %s",name,idx,prfbench,prfbench / e2_softquota * 100,hardtext,timebench*1000000,nick)) end end end local btn = vgui.Create("DButton", panel) btn:SetText("Upload") btn:SetSize(57, 18) timer.Simple(0, function() btn:SetPos(panel:GetWide() - btn:GetWide() * 2 - 6, 4) end) btn.DoClick = function(pnl) WireLib.Expression2Upload(v) end local btn = vgui.Create("DButton", panel) btn:SetText("Download") btn:SetSize(57, 18) timer.Simple(0, function() btn:SetPos(panel:GetWide() - btn:GetWide() - 4, 4) end) btn.DoClick = function(pnl) RunConsoleCommand("wire_expression_requestcode", v:EntIndex()) end local btn = vgui.Create("DButton", panel) btn:SetText("Halt execution") btn:SetSize(75, 18) timer.Simple(0, function() btn:SetPos(panel:GetWide() - btn:GetWide() - 4, 24) end) btn.DoClick = function(pnl) RunConsoleCommand("wire_expression_forcehalt", v:EntIndex()) end local btn2 = vgui.Create("DButton", panel) btn2:SetText("Reset") btn2:SetSize(39, 18) timer.Simple(0, function() btn2:SetPos(panel:GetWide() - btn2:GetWide() - btn:GetWide() - 6, 24) end) btn2.DoClick = function(pnl) RunConsoleCommand("wire_expression_reset", v:EntIndex()) end end end dlist2:SetTall(size + 2) dlist:InvalidateLayout() end local UpdateList2 = vgui.Create("DButton") UpdateList2:SetText("Update List (Show all)") dlist:AddItem(UpdateList2) UpdateList2.DoClick = function(pnl) UpdateList:DoClick(true) end end -- used with color-circles function Editor:TranslateValues(panel, x, y) x = x - 0.5 y = y - 0.5 local angle = math.atan2(x, y) local length = math.sqrt(x * x + y * y) length = math.Clamp(length, 0, 0.5) x = 0.5 + math.sin(angle) * length y = 0.5 + math.cos(angle) * length panel:SetHue(math.deg(angle) + 270) panel:SetSaturation(length * 2) panel:SetRGB(HSVToColor(panel:GetHue(), panel:GetSaturation(), 1)) panel:SetFrameColor() return x, y end -- options -- code1 contains the code that is not to be marked local code1 = "@name \n@inputs \n@outputs \n@persist \n@trigger \n\n" -- code2 contains the code that is to be marked, so it can simply be overwritten or deleted. local code2 = [[#[ Shoutout to Expression Advanced 2! Have you tried it yet? You should try it. It's a hundred times faster than E2 and has more features. http://goo.gl/sZcyN9 A new preprocessor command, @autoupdate has been added. See the wiki for more info. Documentation and examples are available at: http://wiki.wiremod.com/wiki/Expression_2 The community is available at http://www.wiremod.com ]#]] local defaultcode = code1 .. code2 .. "\n" function Editor:NewScript(incurrent) if not incurrent and self.NewTabOnOpen:GetBool() then self:NewTab() else self:AutoSave() self:ChosenFile() -- Set title self:GetActiveTab():SetText("generic") self.C.TabHolder:InvalidateLayout() if self.E2 then -- add both code1 and code2 to the editor self:SetCode(defaultcode) local ed = self:GetCurrentEditor() -- mark only code2 ed.Start = ed:MovePosition({ 1, 1 }, code1:len()) ed.Caret = ed:MovePosition({ 1, 1 }, defaultcode:len()) else self:SetCode("") end end end local wire_expression2_editor_savetabs = CreateClientConVar("wire_expression2_editor_savetabs", "1", true, false) local id = 0 function Editor:InitShutdownHook() id = id + 1 -- save code when shutting down hook.Add("ShutDown", "wire_expression2_ShutDown" .. id, function() -- if wire_expression2_editor == nil then return end local buffer = self:GetCode() if buffer == defaultcode then return end file.Write(self.Location .. "/_shutdown_.txt", buffer) if wire_expression2_editor_savetabs:GetBool() then self:SaveTabs() end end) end function Editor:SaveTabs() local strtabs = "" local tabs = {} for i=1, self:GetNumTabs() do local chosenfile = self:GetEditor(i).chosenfile if chosenfile and chosenfile ~= "" and not tabs[chosenfile] then strtabs = strtabs .. chosenfile .. ";" tabs[chosenfile] = true -- Prevent duplicates end end strtabs = strtabs:sub(1, -2) file.Write(self.Location .. "/_tabs_.txt", strtabs) end local wire_expression2_editor_openoldtabs = CreateClientConVar("wire_expression2_editor_openoldtabs", "1", true, false) function Editor:OpenOldTabs() if not file.Exists(self.Location .. "/_tabs_.txt", "DATA") then return end -- Read file local tabs = file.Read(self.Location .. "/_tabs_.txt") if not tabs or tabs == "" then return end -- Explode around ; tabs = string.Explode(";", tabs) if not tabs or #tabs == 0 then return end -- Temporarily remove fade time self:FixTabFadeTime() local is_first = true for k, v in pairs(tabs) do if v and v ~= "" then if (file.Exists(v, "DATA")) then -- Open it in a new tab self:LoadFile(v, true) -- If this is the first loop, close the initial tab. if (is_first) then timer.Simple(0, function() self:CloseTab(1) end) is_first = false end end end end end function Editor:Validate(gotoerror) if self.EditorType == "E2" then local errors = wire_expression2_validate(self:GetCode()) if not errors then self.C.Val:SetBGColor(0, 110, 20, 255) self.C.Val:SetText(" Validation successful") return true end if gotoerror then local row, col = errors:match("at line ([0-9]+), char ([0-9]+)$") if not row then row, col = errors:match("at line ([0-9]+)$"), 1 end if row then self:GetCurrentEditor():SetCaret({ tonumber(row), tonumber(col) }) end end self.C.Val:SetBGColor(110, 0, 20, 255) self.C.Val:SetText(" " .. errors) elseif self.EditorType == "CPU" or self.EditorType == "GPU" or self.EditorType == "SPU" then self.C.Val:SetBGColor(64, 64, 64, 180) self.C.Val:SetText(" Recompiling...") CPULib.Validate(self, self:GetCode(), self:GetChosenFile()) end return true end function Editor:SetValidatorStatus(text, r, g, b, a) self.C.Val:SetBGColor(r or 0, g or 180, b or 0, a or 180) self.C.Val:SetText(" " .. text) end function Editor:SubTitle(sub) if not sub then self.subTitle = "" else self.subTitle = " - " .. sub end end local wire_expression2_editor_worldclicker = CreateClientConVar("wire_expression2_editor_worldclicker", "0", true, false) function Editor:SetV(bool) if bool then self:MakePopup() self:InvalidateLayout(true) if self.E2 then self:Validate() end end self:SetVisible(bool) self:SetKeyBoardInputEnabled(bool) self:GetParent():SetWorldClicker(wire_expression2_editor_worldclicker:GetBool() and bool) -- Enable this on the background so we can update E2's without closing the editor if CanRunConsoleCommand() then RunConsoleCommand("wire_expression2_event", bool and "editor_open" or "editor_close") if not e2_function_data_received and bool then -- Request the E2 functions RunConsoleCommand("wire_expression2_sendfunctions") end end end function Editor:GetChosenFile() return self:GetCurrentEditor().chosenfile end function Editor:ChosenFile(Line) self:GetCurrentEditor().chosenfile = Line if Line then self:SubTitle("Editing: " .. Line) else self:SubTitle() end end function Editor:FindOpenFile(FilePath) for i = 1, self:GetNumTabs() do local ed = self:GetEditor(i) if ed.chosenfile == FilePath then return ed end end end function Editor:ExtractName() if not self.E2 then self.savefilefn = "filename" return end local code = self:GetCode() local name = extractNameFromCode(code) if name and name ~= "" then Expression2SetName(name) self.savefilefn = name else Expression2SetName(nil) self.savefilefn = "filename" end end function Editor:SetCode(code) self:GetCurrentEditor():SetText(code) self.savebuffer = self:GetCode() if self.E2 then self:Validate() end self:ExtractName() end function Editor:GetEditor(n) if self.C.TabHolder.Items[n] then return self.C.TabHolder.Items[n].Panel end end function Editor:GetCurrentEditor() return self:GetActiveTab():GetPanel() end function Editor:GetCode() return self:GetCurrentEditor():GetValue() end function Editor:Open(Line, code, forcenewtab) if self:IsVisible() and not Line and not code then self:Close() end self:SetV(true) if self.chip then self.C.SaE:SetText("Upload & Exit") else self.C.SaE:SetText("Save and Exit") end if code then if not forcenewtab then for i = 1, self:GetNumTabs() do if self:GetEditor(i).chosenfile == Line then self:SetActiveTab(i) self:SetCode(code) return elseif self:GetEditor(i):GetValue() == code then self:SetActiveTab(i) return end end end local title, tabtext = getPreferredTitles(Line, code) local tab if self.NewTabOnOpen:GetBool() or forcenewtab then tab = self:CreateTab(tabtext).Tab else tab = self:GetActiveTab() tab:SetText(tabtext) self.C.TabHolder:InvalidateLayout() end self:SetActiveTab(tab) self:ChosenFile() self:SetCode(code) if Line then self:SubTitle("Editing: " .. Line) end return end if Line then self:LoadFile(Line, forcenewtab) return end end function Editor:SaveFile(Line, close, SaveAs) self:ExtractName() if close and self.chip then if not self:Validate(true) then return end WireLib.Expression2Upload(self.chip, self:GetCode()) self:Close() return end if not Line or SaveAs or Line == self.Location .. "/" .. ".txt" then local str if self.C.Browser.File then str = self.C.Browser.File.FileDir -- Get FileDir if str and str ~= "" then -- Check if not nil -- Remove "expression2/" or "cpuchip/" etc local n, _ = str:find("/", 1, true) str = str:sub(n + 1, -1) if str and str ~= "" then -- Check if not nil if str:Right(4) == ".txt" then -- If it's a file str = string.GetPathFromFilename(str):Left(-2) -- Get the file path instead if not str or str == "" then str = nil end end else str = nil end else str = nil end end Derma_StringRequestNoBlur("Save to New File", "", (str ~= nil and str .. "/" or "") .. self.savefilefn, function(strTextOut) strTextOut = string.gsub(strTextOut, ".", invalid_filename_chars) self:SaveFile(self.Location .. "/" .. strTextOut .. ".txt", close) end) return end file.Write(Line, self:GetCode()) local panel = self.C.Val timer.Simple(0, function() panel.SetText(panel, " Saved as " .. Line) end) surface.PlaySound("ambient/water/drip3.wav") if not self.chip then self:ChosenFile(Line) end if close then if self.E2 then GAMEMODE:AddNotify("Expression saved as " .. Line .. ".", NOTIFY_GENERIC, 7) else GAMEMODE:AddNotify("Source code saved as " .. Line .. ".", NOTIFY_GENERIC, 7) end self:Close() end end function Editor:LoadFile(Line, forcenewtab) if not Line or file.IsDir(Line, "DATA") then return end local f = file.Open(Line, "r", "DATA") if not f then ErrorNoHalt("Erroring opening file: " .. Line) else local str = f:Read(f:Size()) or "" f:Close() self:AutoSave() if not forcenewtab then for i = 1, self:GetNumTabs() do if self:GetEditor(i).chosenfile == Line then self:SetActiveTab(i) if forcenewtab ~= nil then self:SetCode(str) end return elseif self:GetEditor(i):GetValue() == str then self:SetActiveTab(i) return end end end if not self.chip then local title, tabtext = getPreferredTitles(Line, str) local tab if self.NewTabOnOpen:GetBool() or forcenewtab then tab = self:CreateTab(tabtext).Tab else tab = self:GetActiveTab() tab:SetText(tabtext) self.C.TabHolder:InvalidateLayout() end self:SetActiveTab(tab) self:ChosenFile(Line) end self:SetCode(str) end end function Editor:Close() timer.Stop("e2autosave") self:AutoSave() self:Validate() self:ExtractName() self:SetV(false) self.chip = false self:SaveEditorSettings() end function Editor:Setup(nTitle, nLocation, nEditorType) self.Title = nTitle self.Location = nLocation self.EditorType = nEditorType self.C.Browser:Setup(nLocation) local syntaxHighlighters = { CPU = self:GetCurrentEditor().CPUGPUSyntaxColorLine, GPU = self:GetCurrentEditor().CPUGPUSyntaxColorLine, SPU = self:GetCurrentEditor().CPUGPUSyntaxColorLine, E2 = nil, -- the E2 highlighter is used by default [""] = function(self, row) return { { self.Rows[row], { Color(255, 255, 255, 255), false } } } end } local helpModes = { CPU = E2Helper.UseCPU, GPU = E2Helper.UseCPU, SPU = E2Helper.UseCPU, E2 = E2Helper.UseE2 } local syntaxHighlighter = syntaxHighlighters[nEditorType or ""] if syntaxHighlighter then self:SetSyntaxColorLine(syntaxHighlighter) end local helpMode = helpModes[nEditorType or ""] if helpMode then -- Add "E2Helper" button local E2Help = vgui.Create("Button", self.C.Menu) E2Help:SetSize(58, 20) E2Help:Dock(RIGHT) E2Help:SetText("E2Helper") E2Help.DoClick = function() E2Helper.Show() helpMode(nEditorType) E2Helper.Update() end self.C.E2Help = E2Help end local useValidator = nEditorType ~= nil local useSoundBrowser = nEditorType == "SPU" or nEditorType == "E2" local useDebugger = nEditorType == "CPU" if not useValidator then self.C.Val:SetVisible(false) end if useSoundBrowser then -- Add "Sound Browser" button local SoundBrw = vgui.Create("Button", self.C.Menu) SoundBrw:SetSize(85, 20) SoundBrw:Dock(RIGHT) SoundBrw:SetText("Sound Browser") SoundBrw.DoClick = function() RunConsoleCommand("wire_sound_browser_open") end self.C.SoundBrw = SoundBrw end if useDebugger then -- Add "step forward" button local DebugForward = self:addComponent(vgui.Create("Button", self), -306, 31, -226, 20) DebugForward:SetText("Step Forward") DebugForward.Font = "E2SmallFont" DebugForward.DoClick = function() local currentPosition = CPULib.Debugger.PositionByPointer[CPULib.Debugger.Variables.IP] if currentPosition then local linePointers = CPULib.Debugger.PointersByLine[currentPosition.Line .. ":" .. currentPosition.File] if linePointers then -- Run till end of line RunConsoleCommand("wire_cpulib_debugstep", linePointers[2]) else -- Run just once RunConsoleCommand("wire_cpulib_debugstep") end else -- Run just once RunConsoleCommand("wire_cpulib_debugstep") end -- Reset interrupt text CPULib.InterruptText = nil end self.C.DebugForward = DebugForward -- Add "reset" button local DebugReset = self:addComponent(vgui.Create("Button", self), -346, 31, -306, 20) DebugReset:SetText("Reset") DebugReset.DoClick = function() RunConsoleCommand("wire_cpulib_debugreset") -- Reset interrupt text CPULib.InterruptText = nil end self.C.DebugReset = DebugReset -- Add "run" button local DebugRun = self:addComponent(vgui.Create("Button", self), -381, 31, -346, 20) DebugRun:SetText("Run") DebugRun.DoClick = function() RunConsoleCommand("wire_cpulib_debugrun") end self.C.DebugRun = DebugRun end if nEditorType == "E2" then self.E2 = true self:NewScript(true) -- insert default code end if wire_expression2_editor_openoldtabs:GetBool() then self:OpenOldTabs() end self:InvalidateLayout() end vgui.Register("Expression2EditorFrame", Editor, "DFrame")
---- -- -- A simple program to write some data to an Excel file using the -- xlsxwriter.lua module. -- -- This program is shown, with explanations, in Tutorial 1 of the xlsxwriter -- documentation. -- -- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org -- local Workbook = require "xlsxwriter.workbook" -- Create a workbook and add a worksheet. local workbook = Workbook:new("Expensese01.xlsx") local worksheet = workbook:add_worksheet() -- Some data we want to write to the worksheet. local expenses = { {"Rent", 1000}, {"Gas", 100}, {"Food", 300}, {"Gym", 50}, } -- Start from the first cell. Rows and columns are zero indexed. local row = 0 local col = 0 -- Iterate over the data and write it out element by element. for _, expense in ipairs(expenses) do local item, cost = unpack(expense) worksheet:write(row, col, item) worksheet:write(row, col + 1, cost) row = row + 1 end -- Write a total using a formula. worksheet:write(row, 0, "Total") worksheet:write(row, 1, "=SUM(B1:B4)") workbook:close()
--[[ Fast animated 2D mesh using skeletal and shape key (AKA morph target) deformations. Assets and code by Rafael Navega, 2020. Version 1.1.0. ]] io.stdout:setvbuf("no") --[[ Choice of CPU or GPU skinning: Uncomment the line below that loads the module that you want to test, and comment the other one out. ]] local modelLib = require('model-cpu') -- CPU / software skinning. --local modelLib = require('model-gpu') -- GPU skinning. On my system this is about 9x faster than 'model-cpu'. local FRAME_TIME = 1.0 / 30.0 local model = {} local showDebug = false local showBoneResult = true local showShapekeyResult = true function love.load() model = modelLib.loadModel() end function love.update(dt) model:advanceFrame(dt, FRAME_TIME) model:setFrame(model.currentFrame, showShapekeyResult, showBoneResult) end function love.draw() love.graphics.origin() love.graphics.setWireframe(false) love.graphics.clear(0.0, 0.01, 0.05) love.graphics.setColor(1.0, 1.0, 1.0) love.graphics.print(string.format('Current frame: %d / %d', model.currentFrame, model.totalFrames), 10, 10) love.graphics.print( 'Hold Left to disable shape key influence. ' .. ((showShapekeyResult and '(Shape keys ON)') or '(Shape keys OFF)'), 10, 30 ) love.graphics.print( 'Hold Right to disable bone influence. ' .. ((showBoneResult and '(Bones ON)') or '(Bones OFF)'), 10, 50 ) love.graphics.print('Hold any other key to show debug info. ' .. ((showDebug and '(ON)') or '(OFF)'), 10, 70) love.graphics.print('Press Esc or Alt+F4 to quit.', 10, 90) love.graphics.translate(love.graphics.getWidth() / 2, love.graphics.getHeight() / 2) -- When using module 'model-gpu' this draw function also sends the shader uniform data. model:draw(showShapekeyResult, showBoneResult) -- Debug information. if showDebug then love.graphics.setWireframe(true) model.mesh:setTexture() love.graphics.setColor(1.0, 1.0, 1.0, 0.33) model:draw(showShapekeyResult, showBoneResult) model.mesh:setTexture(model.image) love.graphics.setWireframe(false) love.graphics.setColor(1.0, 0.0, 0.0) local BONE_LENGTH = 32.0 for index = 1, model.totalBones do local boneData = model.bones[index] local tform = (showBoneResult and boneData.frames[model.currentFrame]) or boneData.baseTransform local headX = tform[1] local headY = tform[2] local boneAimAngle = tform[3] local tailX = headX + math.cos(boneAimAngle) * BONE_LENGTH local tailY = headY + math.sin(boneAimAngle) * BONE_LENGTH love.graphics.circle('line', headX, headY, 6) love.graphics.line(headX, headY, tailX, tailY) end end end function love.keypressed(key) if key == 'escape' then love.event.quit() elseif key == 'left' then showShapekeyResult = false elseif key == 'right' then showBoneResult = false else showDebug = true end end function love.keyreleased(key) if key == 'left' then showShapekeyResult = true elseif key == 'right' then showBoneResult = true else showDebug = false end end -- Custom love.run with frame limiting. function love.run() if not love.timer or not love.event or not love.graphics then error('Modules not enabled') end if love.load then love.load(love.arg.parseGameArguments(arg), arg) end -- Main loop. return function() local timerStep = love.timer.step local timerSleep = love.timer.sleep local eventPump = love.event.pump local eventPoll = love.event.poll local eventHandlers = love.handlers local dt1 = 0.0 local dt2 = 0.0 local sleepTime = 0.0 while true do eventPump() for name, a,b,c,d,e,f in eventPoll() do if name == "quit" then if not love.quit or not love.quit() then return a or 0 end end eventHandlers[name](a,b,c,d,e,f) end -- Call update and draw. dt1 = timerStep() love.update(dt1+dt2) if love.graphics.isActive() then love.draw() love.graphics.present() end dt2 = timerStep() sleepTime = FRAME_TIME - (dt1+dt2) if sleepTime > 0.0 then timerSleep(sleepTime) end end end end
-- the judge counter. counts judges -- judgments to display and the order for them local jdgT = { "TapNoteScore_W1", "TapNoteScore_W2", "TapNoteScore_W3", "TapNoteScore_W4", "TapNoteScore_W5", "TapNoteScore_Miss", "HoldNoteScore_Held", "HoldNoteScore_LetGo", } local spacing = GAMEPLAY:getItemHeight("judgeDisplayVerticalSpacing") -- Spacing between the judgetypes local frameWidth = GAMEPLAY:getItemWidth("judgeDisplay") -- Width of the Frame local frameHeight = ((#jdgT + 1) * spacing) -- Height of the Frame local judgeFontSize = GAMEPLAY:getItemHeight("judgeDisplayJudgeText") local countFontSize = GAMEPLAY:getItemHeight("judgeDisplayCountText") -- the text actors for each judge count local judgeCounts = {} local t = Def.ActorFrame { Name = "JudgeCounter", InitCommand = function(self) self:playcommand("SetUpMovableValues") registerActorToCustomizeGameplayUI({ actor = self, coordInc = {5,1}, }) end, BeginCommand = function(self) for _, j in ipairs(jdgT) do judgeCounts[j] = self:GetChild(j .. "count") end end, SetUpMovableValuesMessageCommand = function(self) self:xy(MovableValues.JudgeCounterX, MovableValues.JudgeCounterY) end, SpottedOffsetCommand = function(self, params) if params == nil then return end local cur = params.judgeCurrent if cur and judgeCounts[cur] ~= nil then judgeCounts[cur]:settext(params.judgeCount) end end, Def.Quad { Name = "BG", InitCommand = function(self) self:zoomto(frameWidth, frameHeight) self:diffuse(COLORS:getGameplayColor("PrimaryBackground")) self:diffusealpha(0.4) end, }, } local function makeJudgeText(judge, index) return LoadFont("Common normal") .. { Name = judge .. "text", InitCommand = function(self) self:xy(-frameWidth / 2 + 5, -frameHeight / 2 + (index * spacing)) self:halign(0) self:zoom(judgeFontSize) self:settext(getShortJudgeStrings(judge)) self:diffuse(COLORS:colorByJudgment(judge)) self:diffusealpha(1) end, } end local function makeJudgeCount(judge, index) return LoadFont("Common Normal") .. { Name = judge .. "count", InitCommand = function(self) self:halign(1) self:xy(frameWidth / 2 - 5, -frameHeight / 2 + (index * spacing)) self:zoom(countFontSize) self:settext(0) self:diffuse(COLORS:getGameplayColor("PrimaryText")) self:diffusealpha(1) end, PracticeModeResetMessageCommand = function(self) self:settext(0) end, } end for i, j in ipairs(jdgT) do t[#t+1] = makeJudgeText(j, i) t[#t+1] = makeJudgeCount(j, i) end return t
local lj = require 'lunajson' local util = require 'util' local function test(round) local saxtbl = {} local bufsize = round == 1 and 64 or 1 local fp = util.open('test.dat') local function input() local s = fp:read(bufsize) if not s then fp:close() fp = nil end return s end local parser = lj.newparser(input, saxtbl) if (parser.tryc() ~= string.byte('a')) then print(parser.tryc()) return "1st not a" end if (parser.read(3) ~= ("abc")) then return "not abc" end if (parser.read(75) ~= ("abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc")) then return "not abc*25" end if (parser.tellpos() ~= 79) then return "not read 78" end parser.run() if parser.tellpos() ~= 139 then return "1st json not end at 139" end if parser.read(8) ~= " mmmmmm" then return "not __mmmmmm" end parser.run() if parser.tryc() ~= string.byte('&') then return "not &" end if parser.read(200) ~= '&++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' then return "not &+*" end if parser.tellpos() ~= 276 then print(parser.tellpos()) return "not last pos" end if parser.tryc() then return "not ended" end if parser.read(10) ~= "" then return "not empty" end if parser.tellpos() ~= 276 then return "last pos moving" end end io.write('parse: ') for round = 1, 2 do local err = test(round) if err then io.write(err .. '\n') return true else io.write('ok\n') return false end end
object_draft_schematic_furniture_wod_pro_ns_tree_03 = object_draft_schematic_furniture_shared_wod_pro_ns_tree_03:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_pro_ns_tree_03, "object/draft_schematic/furniture/wod_pro_ns_tree_03.iff")
object_tangible_component_droid_combat_module_electric_shocker = object_tangible_component_droid_shared_combat_module_electric_shocker:new { } ObjectTemplates:addTemplate(object_tangible_component_droid_combat_module_electric_shocker, "object/tangible/component/droid/combat_module_electric_shocker.iff")
local awful = require "awful" local widgets = require "widgets" awful.mouse.append_global_mousebindings { awful.button { modifiers = {}, button = 3, on_press = function() widgets.mainmenu:toggle() end, }, awful.button { modifiers = {}, button = 4, on_press = awful.tag.viewprev, }, awful.button { modifiers = {}, button = 5, on_press = awful.tag.viewnext, }, }
local error_handler = {}; error_handler.dump = function() (require 'pl.pretty').dump(_G.message_validation_context); end error_handler.init = function() _G.message_validation_context = { fieldpath = { level = 0, path = {} }, status = { set = false; success = true, error_no = 0, error_message = '', traceback = ''}, status_objs = {} }; return; end error_handler.set_validation_error = function(error_no, message, tb, s, ln) local path = error_handler.get_fieldpath(); if (not _G.message_validation_context.status.set) then -- Capture the first error explicitly _G.message_validation_context.status.set = true _G.message_validation_context.status.success = false; _G.message_validation_context.status.error_no = error_no; _G.message_validation_context.status.error_message = message; _G.message_validation_context.status.traceback = tb; _G.message_validation_context.status.source_file = s; _G.message_validation_context.status.line_no = ln; _G.message_validation_context.status.field_path = path; end local status = {}; status.set = true status.success = false; status.error_no = error_no; status.error_message = message; status.traceback = tb; status.source_file = s; status.line_no = ln; status.field_path = path; local n = #(_G.message_validation_context.status_objs); _G.message_validation_context.status_objs[n+1] = status; return; end error_handler.get_fieldpath = function() if (_G.message_validation_context == nil) then return '' end local path = nil; for i,v in ipairs(_G.message_validation_context.fieldpath.path) do if (path ~= nil) then if ('integer' == math.type(v)) then path = path.."["..v.."]"; else path = path.."."..v; end else path = v; end end if (path == nil) then path = '' end return path; end error_handler.raise_validation_error = function(error_no, message, d_info) local tb = debug.traceback(); if (_G.message_validation_context == nil) then --print(tb); error(message); return false; else --print(d_info.source, d_info.currentline); local src = nil; local line = nil; if (d_info ~= nil) then src = d_info.source; line = d_info.currentline; end error_handler.set_validation_error(error_no, message, tb, src, line); return false; end end error_handler.raise_error = function(error_no, message, d_info) return error_handler.raise_validation_error(error_no, message, d_info); end error_handler.raise_fatal_error = function(error_no, message, d_info) error_handler.raise_validation_error(error_no, message, d_info); local msv = error_handler.reset_init(); error(msv.status.error_message); end error_handler.reset_error = function() _G.message_validation_context.status = { success = true, error_no = 0, error_message = '', traceback = ''}; return; end error_handler.reset = function() local message_validation_context = _G.message_validation_context; _G.message_validation_context = nil; -- to ensure garbage collection return message_validation_context; end error_handler.reset_init = function() local message_validation_context = nil; if (_G.message_validation_context ~= nil) then message_validation_context = _G.message_validation_context; _G.message_validation_context = nil; -- to ensure garbage collection error_handler.init(); end return message_validation_context; end error_handler.push_element = function(name) _G.message_validation_context.fieldpath.level = _G.message_validation_context.fieldpath.level + 1; _G.message_validation_context.fieldpath.path[_G.message_validation_context.fieldpath.level] = name; end error_handler.pop_element = function() _G.message_validation_context.fieldpath.path[_G.message_validation_context.fieldpath.level] = nil; _G.message_validation_context.fieldpath.level = _G.message_validation_context.fieldpath.level - 1; end return error_handler;
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Dwago -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local stock = { 17395, 9, -- Lugworm 17396, 3, -- Little worm 17016, 11, -- Pet Food Alpha Biscuit 17017, 82, -- Pet Food Beta Biscuit 17862, 98 -- Jug of Bug Broth } player:showText(npc, ID.text.DWAGO_SHOP_DIALOG) tpz.shop.general(player, stock) end function onEventUpdate(player,csid,option) end function onEventFinish(player,csid,option) end
--MCmobs v0.4 --maikerumine --made for MC like Survival game --License for code WTFPL and otherwise stated in readmes --dofile(minetest.get_modpath("mobs").."/api.lua") --################### --################### SKELETON --################### --[[ mobs:register_mob("mobs_mc:35skeleton", { type = "animal", passive = true, runaway = true, stepheight = 1.2, hp_min = 30, hp_max = 60, armor = 150, collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35}, rotate = -180, visual = "mesh", mesh = "skeleton.b3d", textures = { {"skeleton.png"}, }, visual_size = {x=3, y=3}, walk_velocity = 0.6, run_velocity = 2, jump = true, animation = { speed_normal = 25, speed_run = 50, stand_start = 40, stand_end = 80, walk_start = 0, walk_end = 40, run_start = 0, run_end = 40, }, }) mobs:register_egg("mobs_mc:35skeleton", "Skeleton", "skeleton_inv.png", 0) ]] mobs:register_mob("mobs_mc:skeleton", { type = "monster", hp_min = 20, hp_max = 20, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, pathfinding = true, group_attack = true, visual = "mesh", mesh = "skeleton.b3d", rotate = -180, textures = { {"skeleton.png"}, }, visual_size = {x=3, y=3}, makes_footstep_sound = true, sounds = { random = "skeleton1", death = "skeletondeath", damage = "skeletonhurt1", }, walk_velocity = 1.2, run_velocity = 2.4, damage = 2, drops = { {name = "throwing:arrow", chance = 1, min = 0, max = 2,}, {name = "throwing:bow_wood", chance = 11, min = 1, max = 1,}, {name = "bonemeal:bone", chance = 1, min = 0, max = 2,}, {name = "mobs_mc:skeleton_head", chance = 50, min = 0, max = 1,}, }, animation = { stand_start = 0, stand_end = 40, speed_stand = 5, walk_start = 40, walk_end = 60, speed_walk = 50, shoot_start = 70, shoot_end = 90, punch_start = 70, punch_end = 90, die_start = 120, die_end = 130, speed_die = 5, hurt_start = 100, hurt_end = 120, }, drawtype = "front", water_damage = 1, lava_damage = 5, light_damage = 1, view_range = 16, attack_type = "dogshoot", --arrow = "throwing:arrow_entity", --was "mobs:arrow_entity" arrow = "mobs:arrow_entity", shoot_interval = 2.5, shoot_offset = 1, --'dogshoot_switch' allows switching between shoot and dogfight modes inside dogshoot using timer (1 = shoot, 2 = dogfight) --'dogshoot_count_max' number of seconds before switching above modes. dogshoot_switch = 1, dogshoot_count_max =1.8, }) -- compatibility mobs:alias_mob("mobs:skeleton", "mobs_mc:skeleton") --spawn mobs:spawn_specific("mobs_mc:skeleton", {"default:dirt_with_grass", "default:dirt_with_dry_grass","default:stone","default:dirt","default:coarse_dirt"},{"air"},0, 6, 20, 9000, 2, -110, 31000) -- spawn eggs mobs:register_egg("mobs_mc:skeleton", "Skeleton", "skeleton_inv.png", 0) if minetest.settings:get_bool("log_mods") then minetest.log("action", "MC Skeleton loaded") end
-- ----------------------------------------------------------------------------- -- Parse -- ----------------------------------------------------------------------------- describe('Table.parse', function() spec('table numberKey', function() assert.has_subtable({ { variant = 'numberKey', value = { value = '10' }, }, }, parse.Table( '{ 10 }' )) end) spec('table nameKey', function() assert.has_subtable({ { variant = 'nameKey', key = 'x', value = { value = '2' }, }, }, parse.Table( '{ x = 2 }' )) end) spec('table exprKey', function() assert.has_subtable({ { variant = 'exprKey', key = { op = { tag = 'add' } }, value = { value = '3' }, }, }, parse.Table( '{ [1 + 2] = 3 }' )) assert.has_error(function() parse.Table('{ [1 + 2] }') end) end) spec('table mixed variants', function() assert.has_subtable({ { value = { value = 'a' } }, { value = { value = 'b' } }, { key = 'c' }, { key = { variant = 'long' } }, }, parse.Table( '{ a, b, c = 1, [[[d]]] = 2 }' )) end) spec('nested table', function() assert.has_subtable({ { key = 'x', value = { { key = 'y', value = { value = '1' } }, }, }, }, parse.Table( '{ x = { y = 1 } }' )) end) end) -- ----------------------------------------------------------------------------- -- Compile -- ----------------------------------------------------------------------------- describe('Table.compile', function() spec('table numberKey', function() assert.eval({ 10 }, compile.Table('{ 10 }')) end) spec('table nameKey', function() assert.eval({ x = 2 }, compile.Table('{ x = 2 }')) end) spec('table exprKey', function() assert.eval({ [3] = 1 }, compile.Table('{ [1 + 2] = 1 }')) end) spec('nested table', function() assert.eval({ x = { y = 1 } }, compile.Table('{ x = { y = 1 } }')) end) end)
ITEM.name = "Daewoo K2" ITEM.description = "This rifle was developed by the South Korean Agency for Defense Development and manufactured by S&T Motiv (formerly Daewoo Precision Industries). It is currently the standard service rifle of the Republic of Korea Armed Forces. Fires 5.56x45 rounds." ITEM.model = "models/weapons/ethereal/w_k2.mdl" ITEM.class = "cw_kk_ins2_k2" ITEM.weaponCategory = "primary" ITEM.width = 3 ITEM.height = 2 ITEM.price = 35000 ITEM.weight = 7
local class = require "libs.classic" local _M = class:extend() function _M:new(hight) self.hight = hight end function _M:IsEmpty() return self.hight == 0 end function _M:String() return string.format("%016x", self.hight) end return _M
if pollws then return end print("Attempting to link pollws.dll through FFI") local ffi = ffi or _G.ffi or require("ffi") ffi.cdef[[ struct pollsocket* pollws_open(const char* url); void pollws_close(struct pollsocket* ctx); int pollws_status(struct pollsocket* ctx); void pollws_send(struct pollsocket* ctx, const char* msg); int pollws_poll(struct pollsocket* ctx); unsigned int pollws_get(struct pollsocket* ctx, char* dest, unsigned int dest_size); unsigned int pollws_pop(struct pollsocket* ctx, char* dest, unsigned int dest_size); ]] print("CDEF was OK") pollws = ffi.load("pollws") print("FFI was OK") local POLLWS_STATUS_CODES = { [-1] = "invalid", [ 0] = "closed", [ 1] = "opening", [ 2] = "open", [ 3] = "error" } function open_socket(url, scratch_size) -- might as well have a comfortable megabyte of space if not scratch_size then scratch_size = 1000000 end local res = { _socket = pollws.pollws_open(url), _scratch = ffi.new("int8_t[?]", scratch_size), _scratch_size = scratch_size } function res:set_scratch_size(scratch_size) self._scratch = ffi.new("int8_t[?]", scratch_size) self._scratch_size = scratch_size end function res:poll() if not self._socket then return end local msg_size = pollws.pollws_pop(self._socket, self._scratch, self._scratch_size) if msg_size > 0 then local smsg = ffi.string(self._scratch, msg_size) return smsg else return nil end end function res:send(msg) if not self._socket then return end pollws.pollws_send(self._socket, msg) end function res:close() pollws.pollws_close(self._socket) self._socket = nil end function res:raw_status() if not self._socket then return -1 end return pollws.pollws_status(self._socket) end function res:status() return POLLWS_STATUS_CODES[self:raw_status()] or "unknown" end function res:run_async(on_message) self.running = true async(function() while self._socket and self.running do local msg = self:poll() if msg then on_message(self, msg) end wait(1) end end) end function res:stop() self.running = false end return res end
--- A module allowing scripts of dialogue to be parsed. --- @module parser local scene = require "scene" local audioHandler = require "audioHandler" local stringx = require "pl.stringx" local locked = true local parser = {} --- Prompts the player for input between dialogue options. --- @tparam table tbl The script --- @tparam coroutine process The coroutine the parser is running from. --- @treturn string The choice the player picked. local function promptPlayer(tbl, process) local choices = {} for k, v in pairs(tbl) do if v then choices[k] = v end end local buttons = {} local function clearButtons() for i = 1, #buttons do buttons[i].visible = false buttons[i] = nil end buttons = nil end local choice for k in pairs(choices) do local btn = gooi.newButton(k):onRelease(function(self) choice = choices[self.text] clearButtons() coroutine.resume(process) end) btn.x = love.graphics.getWidth() / 2 - btn.w / 2 btn.y = love.graphics.getHeight() / 2 - btn.h * 1.05 * (#buttons - #choices / 2) buttons[#buttons + 1] = btn end repeat coroutine.yield() -- Until a choice is picked, don't go back to processVal. until choice return choice end --- Contains all commands recognized by the parser. --- @see processLine local commands = { new = function() scene:clearText() scene:printText("", true) end, --- Clears the screen of text. sfx = function(val) --parser.lock() audioHandler.play(val:sub(6) --[[, parser.unlock]]) end, --- Plays the sound with the given name. ["end"] = function() --TODO: Implement end command end, --- Ends the game. scene = function(scenes) scenes = stringx.split(scenes:sub(8), ",") scene:clearAll() for i = 1, #scenes do scene.show(scenes[i]) end end, --- Switches to the given scene(s). store = function(val, tbl) local varName, value = unpack(stringx.split(val, " ")) tbl.vars[varName] = tonumber(value) or value end, --- Stores the given value at the given name, coercing it to a number if possible. add = function(val, tbl) local varName, value = unpack(stringx.split(val, " ")) value = tonumber(value) assert(varName, "You need a value to add to!") assert(value, "You need a number to add to the value.") assert(tbl.vars[varName], ("No variable with the name %s found."):format(varName)) tbl.vars[varName] = tbl.vars[varName] + value end, --- Adds to the given variable name the given amount. subtract = function(val, tbl) local varName, value = unpack(stringx.split(val, " ")) assert(varName, "You need a value to subtract from!") assert(value, "You need a number to subtract from the value.") assert(tbl.vars[varName], ("No variable with the name %s found."):format(varName)) tbl.vars[varName] = tbl.vars[varName] - value end, --- Subtracts from the given variable name the given amount. auto = function(val, tbl) parser.processLine(val:sub(7), false, true) end --- Processes the line, but does not yield. } --- Contains any prefixes recognized by the parser. --- @see processLine local prefixes = { ["/r"] = function(val, _, noYield) assert(type(val) == "string", ("String expected, got %s."):format(type(val))) scene:printText(val:sub(3), false, { 255, 0, 0 }) if not noYield then coroutine.yield() end end, ["/t{"] = function(val, _, noYield) local findClosingBrace = val:find("}", 4, true) assert(findClosingBrace, "The color table must be closed with a closing brace!") local color = stringx.split(val:sub(3, val:find("}", 4, true)), ",") assert(type(color) == "table", ("Table expected, got %s."):format(type(color))) assert(#color == 3 or #color == 4, ("Length of color table must be 3 or 4, was %d."):format(#color)) scene:printText(val:sub(findClosingBrace + 1), false, color) if not noYield then coroutine.yield() end end, ["/t#"] = function(val, _, noYield) local color = tonumber("0x" .. val:sub(4, 12)) local alpha = color and true or false color = color or tonumber("0x" .. val:sub(4, 10)) assert(color, ("Could not parse #%s as hex string"):format(val:sub(4, (alpha and 12 or 10)))) scene:printText(val:sub(alpha and 12 or 10), false, { tonumber("0x" .. val:sub(4, 6)), tonumber("0x" .. val:sub(6, 8)), tonumber("0x" .. val:sub(8, 10)), alpha and tonumber("0x" .. val:sub(10, 12)) or nil }) if not noYield then coroutine.yield() end end, ["@"] = function(val, tbl, noYield) local findSpace = val:find(" ", nil, true) local firstWord = val:sub(1, findSpace and findSpace - 1 or #val) local cmd = firstWord:sub(2):lower() assert(commands[cmd], ("Unrecognized command: \"%s\" from string \"%s\""):format(cmd, val)) commands[cmd](val, tbl, noYield) end } --- Processes a string from the script. --- @tparam string val The string to process --- @tparam table tbl The table containing the script. --- @tparam boolean noYield Makes the coroutine not yield, so it processes another line. --- @return nil function parser.processLine(val, tbl, noYield) assert(type(val) == "string", ("Expected string, got %s."):format(type(val))) local prefixed = false for k, v in pairs(prefixes) do if val:sub(1, #k) == k then v(val, tbl, noYield) prefixed = true break end end if not prefixed then --No prefix was recognized, so just put the text on the screen. scene:printText(val, false) if not noYield then coroutine.yield() end end end --- Processes the next value in the script. --- @tparam table tbl The script. --- @tparam coroutine process The coroutine the parser is being run from. --- @tparam boolean noYield Makes the coroutine not yield, so it processes another line. --- @return nil function parser.processVal(tbl, process, noYield) if type(tbl) == "table" then tbl.vars = tbl.vars or {} for i = 1, #tbl do local val = tbl[i] local t = type(val) if t == "string" then parser.processLine(val, tbl, noYield) elseif t == "table" then parser.processVal(promptPlayer(val, process), process, noYield) elseif t == "function" then parser.processVal(val(val, tbl), process, noYield) end end end end --- Locks the parser. --- @return nil function parser.lock() locked = true end --- Unlocks the parser. --- @return nil function parser.unlock() locked = false end --- Returns whether the parser is locked or not. --- @return Whether the parser is locked or not. function parser.locked() return locked end --- Processes the file at the given path using require(). Returns a coroutine to the parser and the table it's reading from, or false if it is unsuccessful. --- @tparam string path The path to the file to parse. --- @treturn coroutine,table|false A coroutine to the parser and the table it's reading from, or false if it is unsuccessful. function parser.process(path) local processTbl = require(path) if type(processTbl) == "table" then return coroutine.create(parser.processVal), processTbl else return false end end return parser
vim.g.mapleader = ' ' vim.keymap.set('n', '<leader>vr', ':source ~/.config/nvim/init.lua<cr>') -- Refresh -- Edit configs vim.keymap.set('n', '<leader>vi', ':edit ~/.config/nvim/init.lua<cr>') -- init.lua vim.keymap.set('n', '<leader>vk', ':edit ~/.config/nvim/lua/keymaps.lua<cr>') -- keymaps.lua vim.keymap.set('n', '<leader>vo', ':edit ~/.config/nvim/lua/options.lua<cr>') -- options.lua vim.keymap.set('n', '<leader>vp', ':edit ~/.config/nvim/lua/plugins.lua<cr>') -- plugins.lua vim.keymap.set('n', '<leader>vl', ':edit ~/.config/nvim/lua/plugin-config/nvim-lspconfig.lua<cr>') -- nvim-lspconfig.lua -- Save buffer vim.keymap.set('', '<leader>s', ':w<CR>') -- Select all vim.keymap.set('n', '<leader>a', 'ggVG') -- Easier split navigations vim.keymap.set('n', '<C-J>', '<C-W><C-J>') vim.keymap.set('n', '<C-K>', '<C-W><C-K>') vim.keymap.set('n', '<C-L>', '<C-W><C-L>') vim.keymap.set('n', '<C-H>', '<C-W><C-H>') -- Easier splits handling vim.keymap.set('n', '<leader>|', '<C-W>v', { silent = true }) vim.keymap.set('n', '<leader>-', '<C-W>s', { silent = true }) -- Reselect visual selection after indenting vim.keymap.set('v', '<', '<gv') vim.keymap.set('v', '>', '>gv') -- Maintain the cursor position when yanking a visual selection -- http://ddrscott.github.io/blog/2016/yank-without-jank/ vim.keymap.set('v', 'y', 'myy`y') vim.keymap.set('v', 'Y', 'myY`y') -- Reselect pasted text vim.keymap.set('n', 'gp', '`[v`]') -- When text is wrapped, move by terminal rows, not lines, unless a count is provided vim.keymap.set('', 'j', function() return vim.v.count == 0 and 'gj' or 'j' end, { silent = true, expr = true }) vim.keymap.set('', 'k', function() return vim.v.count == 0 and 'gk' or 'k' end, { silent = true, expr = true }) -- Make Y behave like the other capitals vim.keymap.set('n', 'Y', 'y$') -- Move line up vim.keymap.set('n', '<leader>mk', ':m -2<CR>') -- Move line down vim.keymap.set('n', '<leader>mj', ':m +1<CR>') -- Diff with clipboard -- https://www.reddit.com/r/neovim/comments/sg919r/diff_with_clipboard/huy72t0/?utm_source=reddit&utm_medium=web2x&context=3 vim.keymap.set('n', 'cp', function() local ftype = vim.api.nvim_eval('&filetype') vim.cmd(string.format( [[ vsplit enew normal! P setlocal buftype=nowrite set filetype=%s diffthis bprevious execute "normal! \<C-w>\<C-w>" diffthis ]], ftype )) end)
function Orcshaman_OnCombat(pUnit, event) pUnit:SendChatMessage(12, 0, "Your dead!") pUnit:RegisterEvent("Orcshaman_Lightning", 2000, 100) pUnit:RegisterEvent("Orcshaman_Heal", 3000, 0) end function Orcshaman_Lightning(pUnit, event) pUnit:StopMovement(2100) pUnit:FullCastSpellOnTarget(37273, pUnit:GetRandomPlayer(1)) end function Orcshaman_Heal(pUnit, event) if pUnit:GetHealthPct() < 50 then pUnit:FullCastSpell(38330) end end function Orcshaman_OnDied(pUnit, event) pUnit:RemoveEvents() pUnit:SendChatMessage(12, 0, "Damn...") end RegisterUnitEvent(65002, 1, "Orcshaman_OnCombat") RegisterUnitEvent(65002, 4, "Orcshaman_OnDied")
local T, C, L, G = unpack(select(2, ...)) local blankTex = C.media.blankTex -- specific elements for shaman class. T.ClassElements["SHAMAN"] = function(self) -- Additional Power (Elemental - Maelstrom) if C.unitframes.addpower then local AddPower = CreateFrame("StatusBar", self:GetName() .. "ShamanMana", self) AddPower:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 7) AddPower:SetPoint("BOTTOMRIGHT", self, "TOPRIGHT", 0, 7) AddPower:SetHeight(3) AddPower:SetStatusBarTexture(blankTex) AddPower:SetFrameStrata(self.Health:GetFrameStrata()) AddPower:SetFrameLevel(self.Health:GetFrameLevel()) AddPower:SetBorder("Default") AddPower.bg = AddPower:CreateTexture(nil, "BORDER") AddPower.bg:SetAllPoints(AddPower) AddPower.bg:SetTexture(blankTex) AddPower.bg:SetColorTexture(1.,1.,1.,.0) AddPower.colorClass = false AddPower.colorPower = true AddPower.bg.multiplier = 0.3 self.AdditionalPower = AddPower -- Additional Power Prediction local altBar = CreateFrame("StatusBar", nil, AddPower) altBar:SetReverseFill(true) altBar:SetPoint("TOP") altBar:SetPoint("BOTTOM") altBar:SetPoint("RIGHT", AddPower:GetStatusBarTexture(), "RIGHT", 0, 0) altBar:SetWidth(AddPower:GetWidth()) altBar:SetStatusBarTexture(blankTex) altBar:SetStatusBarColor(.0,.0,.0,.7) self.PowerPrediction.altBar = altBar end -- Totems if C.unitframes.totem then local size = self.Health:GetHeight() + self.Power:GetHeight() + 3 local Totems = CreateFrame("Frame", self:GetName() .. "TotemsBar", self) Totems:SetPoint("TOPRIGHT", self.Health, "TOPLEFT", -7, 0) Totems:SetHeight(size) Totems:SetWidth(10) for i = 1, MAX_TOTEMS do Totems[i] = CreateFrame("StatusBar", Totems:GetName() .. i, self) Totems[i]:SetHeight(Totems:GetHeight()) Totems[i]:SetStatusBarTexture(blankTex) Totems[i]:SetBorder("Default") Totems[i]:EnableMouse(true) Totems[i]:SetWidth(Totems:GetWidth()) Totems[i]:SetOrientation("VERTICAL") if (i == 1) then Totems[i]:SetPoint("TOPRIGHT", Totems, "TOPRIGHT", 0, 0) else Totems[i]:SetPoint("TOPRIGHT", Totems[i - 1], "TOPLEFT", -7, 0) end end Totems.Override = T.UpdateTotems self.Totems = Totems end end
if GameSettingsManager == nil then GameSettingsManager = {} end GameSettingsManager.__index = GameSettingsManager function GameSettingsManager.GetSettings() return GameSettings.Settings end local isClient = Ext.IsClient() local self = GameSettingsManager function GameSettingsManager.Apply(sync) if not isClient and sync then SyncStatOverrides(GameSettings, true) end GameSettings:Apply() end function GameSettingsManager.Load(sync) local b,result = xpcall(function() return GameSettings:LoadString(Ext.LoadFile("LeaderLib_GameSettings.json")) end, debug.traceback) if b and result then if GameSettings.Settings ~= nil and GameSettings.Settings.Version ~= nil then if GameSettings.Settings.Version < GameSettings.Default.Version then GameSettings.Settings.Version = GameSettings.Default.Version GameSettingsManager.Save() end end else Ext.Print("[LeaderLib] Generating and saving LeaderLib_GameSettings.json") --Ext.PrintError("[LeaderLib:GameSettingsManager.Load]", result) GameSettings = Classes.LeaderLibGameSettings:Create() self.Save() end GameSettings.Loaded = true self.Apply(sync) return GameSettings end LoadGameSettings = GameSettingsManager.Load function GameSettingsManager.Save() if GameSettings ~= nil then local b,err = xpcall(function() GameSettings:Apply() Ext.SaveFile("LeaderLib_GameSettings.json", GameSettings:ToString()) end, debug.traceback) if not b then Ext.PrintError(err) end elseif Vars.DebugMode then Ext.PrintWarning("[LeaderLib:GameSettingsManager:GameSettingsManager.Save] GameSettings is nil?") end end SaveGameSettings = GameSettingsManager.Save function GameSettingsManager.Sync(id) if not isClient then if id ~= nil then Ext.PostMessageToUser(id, "LeaderLib_SyncGameSettings", GameSettings:ToString()) else Ext.BroadcastMessage("LeaderLib_SyncGameSettings", GameSettings:ToString()) end else Ext.PostMessageToServer("LeaderLib_SyncGameSettings", GameSettings:ToString()) end end if not isClient then Ext.RegisterNetListener("LeaderLib_GameSettingsChanged", function(call, gameSettingsStr) fprint(LOGLEVEL.TRACE, "[%s]", call) GameSettings:LoadString(gameSettingsStr) self.Apply(true) end) end Ext.RegisterListener("GameStateChanged", function(from, to) fprint(LOGLEVEL.TRACE, "[GameStateChanged:%s] (%s) => (%s)", isClient and "CLIENT" or "SERVER", from, to) end) --Ext.RegisterListener("ModuleLoadStarted", LoadSettings) Ext.RegisterListener("ModuleLoadStarted", function() --- So we can initialize the settings file in the main menu. GameSettingsManager.Load() end)
data:extend( { { type = "autoplace-control", name = "uraninite", richness = true, order = "b-e", category = "resource", }, { type = "autoplace-control", name = "fluorite", richness = true, order = "b-f", category = "resource", }, } )
local materials = {} file.CreateDir("rpgm") function RPGM.GetImgur(id, callback, useproxy) if materials[id] then return callback(materials[id]) end if file.Exists("rpgm/" .. id .. ".png", "DATA") then materials[id] = Material("../data/rpgm/" .. id .. ".png", "noclamp smooth") return callback(materials[id]) end http.Fetch(useproxy and "https://proxy.duckduckgo.com/iu/?u=https://i.imgur.com" or "https://i.imgur.com/" .. id .. ".png", function(body, len, headers, code) file.Write("rpgm/" .. id .. ".png", body) materials[id] = Material("../data/rpgm/" .. id .. ".png", "noclamp smooth") return callback(materials[id]) end, function(error) if useproxy then materials[id] = Material("nil") return callback(materials[id]) end return RPGM.GetImgur(id, callback, true) end ) end
local awful = require 'awful' client.connect_signal('manage', function(c) if not awesome.startup then awful.client.setslave(c) end end)
--- Applies rules to the economy state, solving conflicts. -- @classmod RuleSolver local Heap = require 'ur-proto.heap' local RuleSolver = require 'common.class' () local NOOP = function () end function RuleSolver:_init(record) -- luacheck: no self record:new_property('rule', { name = "unknown", definition = function () end }) end function RuleSolver:rule(rulename, record) if record:where('rule', { name = rulename }).n > 0 then return function (...) self:apply(rulename, record, ...) end end end function RuleSolver:apply(rulename, record, ...) local possible_cases = record:where('rule', { name = rulename }) if possible_cases.n == 0 then return print("no such rule: " .. rulename) end local n = 0 local matched_cases = {} for _, case in ipairs(possible_cases) do local match = {} local definition = record:get(case, 'rule', 'definition') definition(match, ...) match.case = case assert(match.when and match.apply, "malformed rule case") if match.when() then n = n + 1 matched_cases[n] = match end end if n > 0 then if n == 1 then return matched_cases[1].apply(NOOP) else return self:_solve_conflict(record, matched_cases) end else print("no rule case applies: " .. rulename) end end function RuleSolver:_solve_conflict(record, cases) local cmp = function (a, b) return self:apply('precedes', record, b.case, a.case) end local heap = Heap(cmp) for _, match in ipairs(cases) do heap:push(match) end local apply while not heap:is_empty() do local match = heap:pop() if match.compose then local super = apply or NOOP apply = function () return match.apply(super) end else apply = match.apply end end return apply() end return RuleSolver
return { width = 18, height = 18, ground = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 3, 0, 0, 0, 0, 0, 2, 1, 2, 1, 2, 0, 0, 0, 2, 1, 3, 1, 3, 2, 0, 0, 0, 0, 0, 0, 1, 1, 2, 1, 0, 0, 0, 3, 1, 3, 1, 1, 2, 0, 0, 0, 0, 3, 1, 1, 3, 2, 0, 0, 0, 2, 2, 1, 2, 2, 1, 0, 0, 0, 0, 3, 2, 2, 1, 2, 0, 0, 0, 0, 1, 2, 3, 3, 3, 0, 0, 1, 3, 0, 3, 2, 3, 2, 1, 0, 0, 0, 1, 0, 1, 3, 2, 2, 0, 2, 0, 2, 1, 1, 3, 2, 2, 0, 0, 0, 2, 2, 2, 0, 2, 0, 0, 1, 0, 3, 2, 1, 2, 1, 0, 0, 0, 1, 2, 2, 1, 1, 1, 2, 0, 0, 0, 2, 3, 1, 2, 2, 1, 0, 0, 0, 3, 1, 2, 1, 1, 1, 0, 0, 1, 0, 1, 3, 3, 3, 0, 0, 0, 0, 2, 1, 3, 2, 1, 2, 0, 3, 1, 2, 0, 1, 1, 3, 1, 0, 0, 1, 2, 1, 2, 3, 1, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 2, 3, 1, 2, 0, 0, 0, 2, 1, 3, 1, 0, 2, 3, 2, 0, 0, 0, 1, 2, 2, 3, 1, 0, 0, 0, 0, 3, 0, 2, 3, 3, 1, 0, 0, 0, 2, 3, 1, 0, 0, 0, 0, 0, 0, 2, 1, 3, 3, 2, 3, 1, 0, 0, 0, 2, 3, 1, 0, 0, 0, 0, 3, 1, 2, 2, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, buildings = { {name = 'base', x = 5, z = 5}, {name = 'base', x = 15, z = 13}, {name = 'hive_lvl3', x = 8, z = 15}, {name = 'hive_lvl2', x = 6, z = 13}, {name = 'hive_lvl2', x = 5, z = 17}, {name = 'hive_lvl2', x = 4, z = 11}, {name = 'hive_lvl3', x = 12, z = 4}, {name = 'hive_lvl2', x = 15, z = 4}, {name = 'hive_lvl2', x = 13, z = 6}, {name = 'hive_lvl2', x = 16, z = 6}, }, units = { {name = 'robot', x = 15, z = 11}, {name = 'hovercraft', x = 7, z = 7}, {name = 'tower', x = 5, z = 7}, {name = 'hovercraft', x = 13, z = 12}, }, resources = 80 }
math.randomseed(6) s=Instance.new("Sound",workspace) s.SoundId='rbxassetid://171217870' s.Volume=10 s.Looped=true s:play() m = false repeat wait(0) num1="-"..math.random(0,500).."00000" num2="-"..math.random(0,500).."00000" num3="-"..math.random(0,500).."00000" game.Lighting.FogColor=Color3.new(tonumber(num1),tonumber(num2),tonumber(num3)) game.Lighting.FogEnd=9e9 until m==true
love.graphics.setDefaultFilter( "nearest", "nearest", 1 ) tween = require"lib/tween" require"src/init" MobileAlpha = 0 MobileMode = false local sys = love.system.getOS() if sys == "iOS" or sys == "Android" then MobileMode = true MobileAlpha = .25 Joystick = require"mobile/joystick":New() Button = require"mobile/joystick":New() Button.ButtonActive = 1 Button.Size = 45 Button.ButtonSize = 45 Button:SetPosition(520, 240) function Button:ButtonEvent() GLOBAL_UT_BATTLE.PressedKey = "z" if GLOBAL_UT_BATTLE.Boss.BossAlive >= 1 then GLOBAL_UT_BATTLE.Button.KeyPressed( "z" ) end self.id = nil end Button1 = require"mobile/joystick":New() Button1.ButtonActive = 1 Button1.Size = 45 Button1.ButtonSize = 45 Button1:SetPosition(520, 360) function Button1:ButtonEvent() GLOBAL_UT_BATTLE.PressedKey = "x" if GLOBAL_UT_BATTLE.Boss.BossAlive >= 1 then GLOBAL_UT_BATTLE.Button.KeyPressed( "x" ) end self.id = nil end end Key = { Up = "up", Left = "left", Right = "right", Down = "down", Enter = "z", Exit = "x" } function DrawOutline() love.graphics.setColor( 0, 0, 0, 1 ) love.graphics.rectangle( 'fill', GLOBAL_UT_BATTLE.Box.x+GLOBAL_UT_BATTLE.Box.LineWidth, GLOBAL_UT_BATTLE.Box.y+GLOBAL_UT_BATTLE.Box.LineWidth, GLOBAL_UT_BATTLE.Box.Width-GLOBAL_UT_BATTLE.Box.LineWidth*2, GLOBAL_UT_BATTLE.Box.Height-GLOBAL_UT_BATTLE.Box.LineWidth*2 ) love.graphics.setColor(1, 1, 1, 1) end --Key.Up Key.Left Key.Right Key.Down Key.Enter Key.Exit PLAYER_NAME = "chara" PLAYER_LEVEL = 19 if Turn == nil then Turn = true end Player = { Health = 92, MaxHealth = 92, Kr = 0, MaxKr = 0, Damage = 10, MinDamage = 10, Item = { [1]="PI", [2]="Pie", [3]="Pie" }, ItemHealth = { [1]=-3.1415926, [2]=50, [3]=50 }, Dead = function () love.event.quit() end, KrTime = 0, KrUpdate = function (dt) Player.KrTime = Player.KrTime + dt if Player.KrTime >= 1 then Player.KrTime = 0 end if math.floor(Player.KrTime*10) >= 4 and math.floor(Player.KrTime*10) < 5 then if Player.Health > 1 then Player.Health = Player.Health - 1 Player.Kr = Player.Kr + 1 else Player.Kr = Player.Kr - 1 if Player.Health <= 1 then Player.Health = 0 end end end end, Hurt = function (d,dt) Player.KrUpdate(dt) Player.Health = Player.Health - d end } GLOBAL_UT_BATTLE:Play("sans") GLOBAL_DIALOGUE = require( "src/dialogue" ):New(GLOBAL_BATTLE_DIALOGUE, GLOBAL_UT_BATTLE.Font, 1) GLOBAL_DIALOGUE.x,GLOBAL_DIALOGUE.y = 40, 270 GLOBAL_DIALOGUE.Done = not Turn Depth = { {Draw = DrawOutline}, {Draw = GLOBAL_TURN_MANAGER.Draw, Parent = GLOBAL_TURN_MANAGER}, {Draw = GLOBAL_UT_BATTLE.Box.Draw}, {Draw = GLOBAL_DIALOGUE.Draw, Parent = GLOBAL_DIALOGUE}, {Draw = GLOBAL_UT_BATTLE.Boss.Draw}, {Draw = GLOBAL_UT_BATTLE.Button.Draw}, {Draw = GLOBAL_UT_BATTLE.Heart.Draw, Parent = GLOBAL_UT_BATTLE.Heart}, {Draw = GLOBAL_TURN_MANAGER.FrontDraw, Parent = GLOBAL_TURN_MANAGER}, } love.window.setTitle("Undertale") shader = love.graphics.newShader([[ vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords) { vec4 tcolor = vec4(1,1,1,0.5); int seg = 4; float s = 0.015; vec4 texture = Texel(tex, texture_coords)*vec4(0.2,0.2,0.2,1); return color*texture; } ]]) function love.update( dt ) gdt = dt GLOBAL_UT_BATTLE.Button.Update( gdt ) GLOBAL_UT_BATTLE.Heart:Update( gdt ) GLOBAL_DIALOGUE:Update( gdt ) GLOBAL_UT_BATTLE.Boss.Update( gdt ) GLOBAL_UT_BATTLE.Box.Update(gdt) GLOBAL_TURN_MANAGER:Update(gdt) --Turn = true --GLOBAL_UT_BATTLE:Shake(50, x, y) if Player.Health <= 0 then Player:Dead() end --GLOBAL_UT_BATTLE.Background.Update(dt) collectgarbage("collect") end function love.draw() --love.graphics.setShader(shader) for k,v in ipairs(Depth) do v.Draw(v.Parent) end --[[love.graphics.setShader() GLOBAL_UT_BATTLE.Background.Draw() love.graphics.setColor(1, 1, 1, 1) love.graphics.setFont(GLOBAL_UT_BATTLE.Font) love.graphics.printf("Sudden Changes",320-168,210,168*2,"center") love.graphics.printf("子弹地狱",320-60,240,120,"center")]] end function love.keypressed( k ) GLOBAL_UT_BATTLE.PressedKey = k if GLOBAL_UT_BATTLE.Boss.BossAlive >= 1 then GLOBAL_UT_BATTLE.Button.KeyPressed( k ) end end function love.keyreleased( k ) GLOBAL_UT_BATTLE.ReleasedKey = k end
local player = ... local pn = ToEnumShortString(player) local mods = SL[pn].ActiveModifiers local center1p = PREFSMAN:GetPreference("Center1Player") if mods.HideScore then return end if #GAMESTATE:GetHumanPlayers() > 1 and mods.NPSGraphAtTop and SL.Global.GameMode ~= "StomperZ" then return end if #GAMESTATE:GetHumanPlayers() == 1 and SL.Global.GameMode ~= "StomperZ" and mods.NPSGraphAtTop and mods.DataVisualizations ~= "Step Statistics" and not center1p then return end local dance_points, percent local pss = STATSMAN:GetCurStageStats():GetPlayerStageStats(player) return LoadFont("_wendy monospace numbers")..{ Text="0.00", Name=pn.."Score", InitCommand=function(self) self:valign(1):halign(1) local playeroptions = GAMESTATE:GetPlayerState(player):GetPlayerOptions("ModsLevel_Preferred") local scroll = playeroptions:UsingReverse() and "Reverse" or "Standard" local ypos = { Standard = 56, Reverse = 447, } if SL.Global.GameMode == "StomperZ" then self:zoom(0.4):x( WideScale(160, 214) ):y(20) if player == PLAYER_2 then self:x( _screen.w - WideScale(50, 104) ) end else -- if mods.NPSGraphAtTop and mods.DataVisualizations=="Step Statistics" then -- self:zoom(0.5) -- self:x( player==PLAYER_1 and _screen.w-WideScale(15, center1p and 9 or 67) or WideScale(306, center1p and 280 or 358) ) -- self:y( _screen.cy + 40 ) -- else self:zoom(0.4) self:x( _screen.cx - 40 ):y(ypos[scroll]) if #GAMESTATE:GetHumanPlayers() == 1 and PREFSMAN:GetPreference("Center1Player") then -- TODO: make this center hacks configurable somewhere, maybe in appearance? -- renders score on the left side -- self:x( _screen.cx - 95 - 20 - 25) -- renders score on the right side self:x( _screen.cx + 95 + 20 + 120) elseif player == PLAYER_2 then self:x( _screen.cx + 150 ) end -- end end end, JudgmentMessageCommand=function(self) self:queuecommand("RedrawScore") end, RedrawScoreCommand=function(self) dance_points = pss:GetPercentDancePoints() percent = FormatPercentScore( dance_points ):sub(1,-2) self:settext(percent) end }
function love.conf(t) t.window.width = 320 t.window.height = 40 t.title = "ILoveMP3s Player" t.window.resizable = true t.releases = { title = "ILoveMP3s", package = "ILoveMP3s", loveVersion = "0.10.0", version = "2.0", author = "iggyvolz", email = "iggyvolz@gmail.com", description = "Simple MP3 Player", homepage = "ILoveMP3s.yingatech.com", identifier = "com.yingatech.ILoveMP3s", releaseDirectory = "releases" } end
object_mobile_dressed_npe_sequencer_secretary = object_mobile_shared_dressed_npe_sequencer_secretary:new { } ObjectTemplates:addTemplate(object_mobile_dressed_npe_sequencer_secretary, "object/mobile/dressed_npe_sequencer_secretary.iff")
-- -- Autogenerated by Thrift -- -- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING -- @generated -- require 'thrift.Thrift' require 'evernote.types.constants' PrivilegeLevel = { NORMAL = 1, PREMIUM = 3, VIP = 5, MANAGER = 7, SUPPORT = 8, ADMIN = 9 } QueryFormat = { USER = 1, SEXP = 2 } NoteSortOrder = { CREATED = 1, UPDATED = 2, RELEVANCE = 3, UPDATE_SEQUENCE_NUMBER = 4, TITLE = 5 } PremiumOrderStatus = { NONE = 0, PENDING = 1, ACTIVE = 2, FAILED = 3, CANCELLATION_PENDING = 4, CANCELED = 5 } SharedNotebookPrivilegeLevel = { READ_NOTEBOOK = 0, MODIFY_NOTEBOOK_PLUS_ACTIVITY = 1, READ_NOTEBOOK_PLUS_ACTIVITY = 2, GROUP = 3, FULL_ACCESS = 4, BUSINESS_FULL_ACCESS = 5 } SponsoredGroupRole = { GROUP_MEMBER = 1, GROUP_ADMIN = 2, GROUP_OWNER = 3 } BusinessUserRole = { ADMIN = 1, NORMAL = 2 } SharedNotebookInstanceRestrictions = { ONLY_JOINED_OR_PREVIEW = 1, NO_SHARED_NOTEBOOKS = 2 } ReminderEmailConfig = { DO_NOT_SEND = 1, SEND_DAILY_EMAIL = 2 } UserID = i32 Guid = string Timestamp = i64 Data = __TObject:new{ bodyHash, size, body } function Data:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.bodyHash = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.I32 then self.size = iprot:readI32() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.body = iprot:readString() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function Data:write(oprot) oprot:writeStructBegin('Data') if self.bodyHash then oprot:writeFieldBegin('bodyHash', TType.STRING, 1) oprot:writeString(self.bodyHash) oprot:writeFieldEnd() end if self.size then oprot:writeFieldBegin('size', TType.I32, 2) oprot:writeI32(self.size) oprot:writeFieldEnd() end if self.body then oprot:writeFieldBegin('body', TType.STRING, 3) oprot:writeString(self.body) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end UserAttributes = __TObject:new{ defaultLocationName, defaultLatitude, defaultLongitude, preactivation, viewedPromotions, incomingEmailAddress, recentMailedAddresses, comments, dateAgreedToTermsOfService, maxReferrals, referralCount, refererCode, sentEmailDate, sentEmailCount, dailyEmailLimit, emailOptOutDate, partnerEmailOptInDate, preferredLanguage, preferredCountry, clipFullPage, twitterUserName, twitterId, groupName, recognitionLanguage, referralProof, educationalDiscount, businessAddress, hideSponsorBilling, taxExempt, useEmailAutoFiling, reminderEmailConfig } function UserAttributes:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.defaultLocationName = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.DOUBLE then self.defaultLatitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.DOUBLE then self.defaultLongitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.BOOL then self.preactivation = iprot:readBool() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.LIST then self.viewedPromotions = {} local _etype3, _size0 = iprot:readListBegin() for _i=1,_size0 do _elem4 = iprot:readString() table.insert(self.viewedPromotions, _elem4) end iprot:readListEnd() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.STRING then self.incomingEmailAddress = iprot:readString() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.LIST then self.recentMailedAddresses = {} local _etype8, _size5 = iprot:readListBegin() for _i=1,_size5 do _elem9 = iprot:readString() table.insert(self.recentMailedAddresses, _elem9) end iprot:readListEnd() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.STRING then self.comments = iprot:readString() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.I64 then self.dateAgreedToTermsOfService = iprot:readI64() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.I32 then self.maxReferrals = iprot:readI32() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.I32 then self.referralCount = iprot:readI32() else iprot:skip(ftype) end elseif fid == 14 then if ftype == TType.STRING then self.refererCode = iprot:readString() else iprot:skip(ftype) end elseif fid == 15 then if ftype == TType.I64 then self.sentEmailDate = iprot:readI64() else iprot:skip(ftype) end elseif fid == 16 then if ftype == TType.I32 then self.sentEmailCount = iprot:readI32() else iprot:skip(ftype) end elseif fid == 17 then if ftype == TType.I32 then self.dailyEmailLimit = iprot:readI32() else iprot:skip(ftype) end elseif fid == 18 then if ftype == TType.I64 then self.emailOptOutDate = iprot:readI64() else iprot:skip(ftype) end elseif fid == 19 then if ftype == TType.I64 then self.partnerEmailOptInDate = iprot:readI64() else iprot:skip(ftype) end elseif fid == 20 then if ftype == TType.STRING then self.preferredLanguage = iprot:readString() else iprot:skip(ftype) end elseif fid == 21 then if ftype == TType.STRING then self.preferredCountry = iprot:readString() else iprot:skip(ftype) end elseif fid == 22 then if ftype == TType.BOOL then self.clipFullPage = iprot:readBool() else iprot:skip(ftype) end elseif fid == 23 then if ftype == TType.STRING then self.twitterUserName = iprot:readString() else iprot:skip(ftype) end elseif fid == 24 then if ftype == TType.STRING then self.twitterId = iprot:readString() else iprot:skip(ftype) end elseif fid == 25 then if ftype == TType.STRING then self.groupName = iprot:readString() else iprot:skip(ftype) end elseif fid == 26 then if ftype == TType.STRING then self.recognitionLanguage = iprot:readString() else iprot:skip(ftype) end elseif fid == 28 then if ftype == TType.STRING then self.referralProof = iprot:readString() else iprot:skip(ftype) end elseif fid == 29 then if ftype == TType.BOOL then self.educationalDiscount = iprot:readBool() else iprot:skip(ftype) end elseif fid == 30 then if ftype == TType.STRING then self.businessAddress = iprot:readString() else iprot:skip(ftype) end elseif fid == 31 then if ftype == TType.BOOL then self.hideSponsorBilling = iprot:readBool() else iprot:skip(ftype) end elseif fid == 32 then if ftype == TType.BOOL then self.taxExempt = iprot:readBool() else iprot:skip(ftype) end elseif fid == 33 then if ftype == TType.BOOL then self.useEmailAutoFiling = iprot:readBool() else iprot:skip(ftype) end elseif fid == 34 then if ftype == TType.I32 then self.reminderEmailConfig = iprot:readI32() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function UserAttributes:write(oprot) oprot:writeStructBegin('UserAttributes') if self.defaultLocationName then oprot:writeFieldBegin('defaultLocationName', TType.STRING, 1) oprot:writeString(self.defaultLocationName) oprot:writeFieldEnd() end if self.defaultLatitude then oprot:writeFieldBegin('defaultLatitude', TType.DOUBLE, 2) oprot:writeDouble(self.defaultLatitude) oprot:writeFieldEnd() end if self.defaultLongitude then oprot:writeFieldBegin('defaultLongitude', TType.DOUBLE, 3) oprot:writeDouble(self.defaultLongitude) oprot:writeFieldEnd() end if self.preactivation then oprot:writeFieldBegin('preactivation', TType.BOOL, 4) oprot:writeBool(self.preactivation) oprot:writeFieldEnd() end if self.viewedPromotions then oprot:writeFieldBegin('viewedPromotions', TType.LIST, 5) oprot:writeListBegin(TType.STRING, #self.viewedPromotions) for _,iter10 in ipairs(self.viewedPromotions) do oprot:writeString(iter10) end oprot:writeListEnd() oprot:writeFieldEnd() end if self.incomingEmailAddress then oprot:writeFieldBegin('incomingEmailAddress', TType.STRING, 6) oprot:writeString(self.incomingEmailAddress) oprot:writeFieldEnd() end if self.recentMailedAddresses then oprot:writeFieldBegin('recentMailedAddresses', TType.LIST, 7) oprot:writeListBegin(TType.STRING, #self.recentMailedAddresses) for _,iter11 in ipairs(self.recentMailedAddresses) do oprot:writeString(iter11) end oprot:writeListEnd() oprot:writeFieldEnd() end if self.comments then oprot:writeFieldBegin('comments', TType.STRING, 9) oprot:writeString(self.comments) oprot:writeFieldEnd() end if self.dateAgreedToTermsOfService then oprot:writeFieldBegin('dateAgreedToTermsOfService', TType.I64, 11) oprot:writeI64(self.dateAgreedToTermsOfService) oprot:writeFieldEnd() end if self.maxReferrals then oprot:writeFieldBegin('maxReferrals', TType.I32, 12) oprot:writeI32(self.maxReferrals) oprot:writeFieldEnd() end if self.referralCount then oprot:writeFieldBegin('referralCount', TType.I32, 13) oprot:writeI32(self.referralCount) oprot:writeFieldEnd() end if self.refererCode then oprot:writeFieldBegin('refererCode', TType.STRING, 14) oprot:writeString(self.refererCode) oprot:writeFieldEnd() end if self.sentEmailDate then oprot:writeFieldBegin('sentEmailDate', TType.I64, 15) oprot:writeI64(self.sentEmailDate) oprot:writeFieldEnd() end if self.sentEmailCount then oprot:writeFieldBegin('sentEmailCount', TType.I32, 16) oprot:writeI32(self.sentEmailCount) oprot:writeFieldEnd() end if self.dailyEmailLimit then oprot:writeFieldBegin('dailyEmailLimit', TType.I32, 17) oprot:writeI32(self.dailyEmailLimit) oprot:writeFieldEnd() end if self.emailOptOutDate then oprot:writeFieldBegin('emailOptOutDate', TType.I64, 18) oprot:writeI64(self.emailOptOutDate) oprot:writeFieldEnd() end if self.partnerEmailOptInDate then oprot:writeFieldBegin('partnerEmailOptInDate', TType.I64, 19) oprot:writeI64(self.partnerEmailOptInDate) oprot:writeFieldEnd() end if self.preferredLanguage then oprot:writeFieldBegin('preferredLanguage', TType.STRING, 20) oprot:writeString(self.preferredLanguage) oprot:writeFieldEnd() end if self.preferredCountry then oprot:writeFieldBegin('preferredCountry', TType.STRING, 21) oprot:writeString(self.preferredCountry) oprot:writeFieldEnd() end if self.clipFullPage then oprot:writeFieldBegin('clipFullPage', TType.BOOL, 22) oprot:writeBool(self.clipFullPage) oprot:writeFieldEnd() end if self.twitterUserName then oprot:writeFieldBegin('twitterUserName', TType.STRING, 23) oprot:writeString(self.twitterUserName) oprot:writeFieldEnd() end if self.twitterId then oprot:writeFieldBegin('twitterId', TType.STRING, 24) oprot:writeString(self.twitterId) oprot:writeFieldEnd() end if self.groupName then oprot:writeFieldBegin('groupName', TType.STRING, 25) oprot:writeString(self.groupName) oprot:writeFieldEnd() end if self.recognitionLanguage then oprot:writeFieldBegin('recognitionLanguage', TType.STRING, 26) oprot:writeString(self.recognitionLanguage) oprot:writeFieldEnd() end if self.referralProof then oprot:writeFieldBegin('referralProof', TType.STRING, 28) oprot:writeString(self.referralProof) oprot:writeFieldEnd() end if self.educationalDiscount then oprot:writeFieldBegin('educationalDiscount', TType.BOOL, 29) oprot:writeBool(self.educationalDiscount) oprot:writeFieldEnd() end if self.businessAddress then oprot:writeFieldBegin('businessAddress', TType.STRING, 30) oprot:writeString(self.businessAddress) oprot:writeFieldEnd() end if self.hideSponsorBilling then oprot:writeFieldBegin('hideSponsorBilling', TType.BOOL, 31) oprot:writeBool(self.hideSponsorBilling) oprot:writeFieldEnd() end if self.taxExempt then oprot:writeFieldBegin('taxExempt', TType.BOOL, 32) oprot:writeBool(self.taxExempt) oprot:writeFieldEnd() end if self.useEmailAutoFiling then oprot:writeFieldBegin('useEmailAutoFiling', TType.BOOL, 33) oprot:writeBool(self.useEmailAutoFiling) oprot:writeFieldEnd() end if self.reminderEmailConfig then oprot:writeFieldBegin('reminderEmailConfig', TType.I32, 34) oprot:writeI32(self.reminderEmailConfig) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end Accounting = __TObject:new{ uploadLimit, uploadLimitEnd, uploadLimitNextMonth, premiumServiceStatus, premiumOrderNumber, premiumCommerceService, premiumServiceStart, premiumServiceSKU, lastSuccessfulCharge, lastFailedCharge, lastFailedChargeReason, nextPaymentDue, premiumLockUntil, updated, premiumSubscriptionNumber, lastRequestedCharge, currency, unitPrice, businessId, businessName, businessRole, unitDiscount, nextChargeDate } function Accounting:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.I64 then self.uploadLimit = iprot:readI64() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.I64 then self.uploadLimitEnd = iprot:readI64() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.I64 then self.uploadLimitNextMonth = iprot:readI64() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.I32 then self.premiumServiceStatus = iprot:readI32() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.STRING then self.premiumOrderNumber = iprot:readString() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.STRING then self.premiumCommerceService = iprot:readString() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.I64 then self.premiumServiceStart = iprot:readI64() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.STRING then self.premiumServiceSKU = iprot:readString() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.I64 then self.lastSuccessfulCharge = iprot:readI64() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.I64 then self.lastFailedCharge = iprot:readI64() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.STRING then self.lastFailedChargeReason = iprot:readString() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.I64 then self.nextPaymentDue = iprot:readI64() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.I64 then self.premiumLockUntil = iprot:readI64() else iprot:skip(ftype) end elseif fid == 14 then if ftype == TType.I64 then self.updated = iprot:readI64() else iprot:skip(ftype) end elseif fid == 16 then if ftype == TType.STRING then self.premiumSubscriptionNumber = iprot:readString() else iprot:skip(ftype) end elseif fid == 17 then if ftype == TType.I64 then self.lastRequestedCharge = iprot:readI64() else iprot:skip(ftype) end elseif fid == 18 then if ftype == TType.STRING then self.currency = iprot:readString() else iprot:skip(ftype) end elseif fid == 19 then if ftype == TType.I32 then self.unitPrice = iprot:readI32() else iprot:skip(ftype) end elseif fid == 20 then if ftype == TType.I32 then self.businessId = iprot:readI32() else iprot:skip(ftype) end elseif fid == 21 then if ftype == TType.STRING then self.businessName = iprot:readString() else iprot:skip(ftype) end elseif fid == 22 then if ftype == TType.I32 then self.businessRole = iprot:readI32() else iprot:skip(ftype) end elseif fid == 23 then if ftype == TType.I32 then self.unitDiscount = iprot:readI32() else iprot:skip(ftype) end elseif fid == 24 then if ftype == TType.I64 then self.nextChargeDate = iprot:readI64() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function Accounting:write(oprot) oprot:writeStructBegin('Accounting') if self.uploadLimit then oprot:writeFieldBegin('uploadLimit', TType.I64, 1) oprot:writeI64(self.uploadLimit) oprot:writeFieldEnd() end if self.uploadLimitEnd then oprot:writeFieldBegin('uploadLimitEnd', TType.I64, 2) oprot:writeI64(self.uploadLimitEnd) oprot:writeFieldEnd() end if self.uploadLimitNextMonth then oprot:writeFieldBegin('uploadLimitNextMonth', TType.I64, 3) oprot:writeI64(self.uploadLimitNextMonth) oprot:writeFieldEnd() end if self.premiumServiceStatus then oprot:writeFieldBegin('premiumServiceStatus', TType.I32, 4) oprot:writeI32(self.premiumServiceStatus) oprot:writeFieldEnd() end if self.premiumOrderNumber then oprot:writeFieldBegin('premiumOrderNumber', TType.STRING, 5) oprot:writeString(self.premiumOrderNumber) oprot:writeFieldEnd() end if self.premiumCommerceService then oprot:writeFieldBegin('premiumCommerceService', TType.STRING, 6) oprot:writeString(self.premiumCommerceService) oprot:writeFieldEnd() end if self.premiumServiceStart then oprot:writeFieldBegin('premiumServiceStart', TType.I64, 7) oprot:writeI64(self.premiumServiceStart) oprot:writeFieldEnd() end if self.premiumServiceSKU then oprot:writeFieldBegin('premiumServiceSKU', TType.STRING, 8) oprot:writeString(self.premiumServiceSKU) oprot:writeFieldEnd() end if self.lastSuccessfulCharge then oprot:writeFieldBegin('lastSuccessfulCharge', TType.I64, 9) oprot:writeI64(self.lastSuccessfulCharge) oprot:writeFieldEnd() end if self.lastFailedCharge then oprot:writeFieldBegin('lastFailedCharge', TType.I64, 10) oprot:writeI64(self.lastFailedCharge) oprot:writeFieldEnd() end if self.lastFailedChargeReason then oprot:writeFieldBegin('lastFailedChargeReason', TType.STRING, 11) oprot:writeString(self.lastFailedChargeReason) oprot:writeFieldEnd() end if self.nextPaymentDue then oprot:writeFieldBegin('nextPaymentDue', TType.I64, 12) oprot:writeI64(self.nextPaymentDue) oprot:writeFieldEnd() end if self.premiumLockUntil then oprot:writeFieldBegin('premiumLockUntil', TType.I64, 13) oprot:writeI64(self.premiumLockUntil) oprot:writeFieldEnd() end if self.updated then oprot:writeFieldBegin('updated', TType.I64, 14) oprot:writeI64(self.updated) oprot:writeFieldEnd() end if self.premiumSubscriptionNumber then oprot:writeFieldBegin('premiumSubscriptionNumber', TType.STRING, 16) oprot:writeString(self.premiumSubscriptionNumber) oprot:writeFieldEnd() end if self.lastRequestedCharge then oprot:writeFieldBegin('lastRequestedCharge', TType.I64, 17) oprot:writeI64(self.lastRequestedCharge) oprot:writeFieldEnd() end if self.currency then oprot:writeFieldBegin('currency', TType.STRING, 18) oprot:writeString(self.currency) oprot:writeFieldEnd() end if self.unitPrice then oprot:writeFieldBegin('unitPrice', TType.I32, 19) oprot:writeI32(self.unitPrice) oprot:writeFieldEnd() end if self.businessId then oprot:writeFieldBegin('businessId', TType.I32, 20) oprot:writeI32(self.businessId) oprot:writeFieldEnd() end if self.businessName then oprot:writeFieldBegin('businessName', TType.STRING, 21) oprot:writeString(self.businessName) oprot:writeFieldEnd() end if self.businessRole then oprot:writeFieldBegin('businessRole', TType.I32, 22) oprot:writeI32(self.businessRole) oprot:writeFieldEnd() end if self.unitDiscount then oprot:writeFieldBegin('unitDiscount', TType.I32, 23) oprot:writeI32(self.unitDiscount) oprot:writeFieldEnd() end if self.nextChargeDate then oprot:writeFieldBegin('nextChargeDate', TType.I64, 24) oprot:writeI64(self.nextChargeDate) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end BusinessUserInfo = __TObject:new{ businessId, businessName, role, email } function BusinessUserInfo:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.I32 then self.businessId = iprot:readI32() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.businessName = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.I32 then self.role = iprot:readI32() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.STRING then self.email = iprot:readString() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function BusinessUserInfo:write(oprot) oprot:writeStructBegin('BusinessUserInfo') if self.businessId then oprot:writeFieldBegin('businessId', TType.I32, 1) oprot:writeI32(self.businessId) oprot:writeFieldEnd() end if self.businessName then oprot:writeFieldBegin('businessName', TType.STRING, 2) oprot:writeString(self.businessName) oprot:writeFieldEnd() end if self.role then oprot:writeFieldBegin('role', TType.I32, 3) oprot:writeI32(self.role) oprot:writeFieldEnd() end if self.email then oprot:writeFieldBegin('email', TType.STRING, 4) oprot:writeString(self.email) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end PremiumInfo = __TObject:new{ currentTime, premium, premiumRecurring, premiumExpirationDate, premiumExtendable, premiumPending, premiumCancellationPending, canPurchaseUploadAllowance, sponsoredGroupName, sponsoredGroupRole, premiumUpgradable } function PremiumInfo:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.I64 then self.currentTime = iprot:readI64() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.BOOL then self.premium = iprot:readBool() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.BOOL then self.premiumRecurring = iprot:readBool() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.I64 then self.premiumExpirationDate = iprot:readI64() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.BOOL then self.premiumExtendable = iprot:readBool() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.BOOL then self.premiumPending = iprot:readBool() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.BOOL then self.premiumCancellationPending = iprot:readBool() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.BOOL then self.canPurchaseUploadAllowance = iprot:readBool() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.STRING then self.sponsoredGroupName = iprot:readString() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.I32 then self.sponsoredGroupRole = iprot:readI32() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.BOOL then self.premiumUpgradable = iprot:readBool() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function PremiumInfo:write(oprot) oprot:writeStructBegin('PremiumInfo') if self.currentTime then oprot:writeFieldBegin('currentTime', TType.I64, 1) oprot:writeI64(self.currentTime) oprot:writeFieldEnd() end if self.premium then oprot:writeFieldBegin('premium', TType.BOOL, 2) oprot:writeBool(self.premium) oprot:writeFieldEnd() end if self.premiumRecurring then oprot:writeFieldBegin('premiumRecurring', TType.BOOL, 3) oprot:writeBool(self.premiumRecurring) oprot:writeFieldEnd() end if self.premiumExpirationDate then oprot:writeFieldBegin('premiumExpirationDate', TType.I64, 4) oprot:writeI64(self.premiumExpirationDate) oprot:writeFieldEnd() end if self.premiumExtendable then oprot:writeFieldBegin('premiumExtendable', TType.BOOL, 5) oprot:writeBool(self.premiumExtendable) oprot:writeFieldEnd() end if self.premiumPending then oprot:writeFieldBegin('premiumPending', TType.BOOL, 6) oprot:writeBool(self.premiumPending) oprot:writeFieldEnd() end if self.premiumCancellationPending then oprot:writeFieldBegin('premiumCancellationPending', TType.BOOL, 7) oprot:writeBool(self.premiumCancellationPending) oprot:writeFieldEnd() end if self.canPurchaseUploadAllowance then oprot:writeFieldBegin('canPurchaseUploadAllowance', TType.BOOL, 8) oprot:writeBool(self.canPurchaseUploadAllowance) oprot:writeFieldEnd() end if self.sponsoredGroupName then oprot:writeFieldBegin('sponsoredGroupName', TType.STRING, 9) oprot:writeString(self.sponsoredGroupName) oprot:writeFieldEnd() end if self.sponsoredGroupRole then oprot:writeFieldBegin('sponsoredGroupRole', TType.I32, 10) oprot:writeI32(self.sponsoredGroupRole) oprot:writeFieldEnd() end if self.premiumUpgradable then oprot:writeFieldBegin('premiumUpgradable', TType.BOOL, 11) oprot:writeBool(self.premiumUpgradable) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end User = __TObject:new{ id, username, email, name, timezone, privilege, created, updated, deleted, active, shardId, attributes, accounting, premiumInfo, businessUserInfo } function User:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.I32 then self.id = iprot:readI32() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.username = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.email = iprot:readString() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.STRING then self.name = iprot:readString() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.STRING then self.timezone = iprot:readString() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.I32 then self.privilege = iprot:readI32() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.I64 then self.created = iprot:readI64() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.I64 then self.updated = iprot:readI64() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.I64 then self.deleted = iprot:readI64() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.BOOL then self.active = iprot:readBool() else iprot:skip(ftype) end elseif fid == 14 then if ftype == TType.STRING then self.shardId = iprot:readString() else iprot:skip(ftype) end elseif fid == 15 then if ftype == TType.STRUCT then self.attributes = UserAttributes:new{} self.attributes:read(iprot) else iprot:skip(ftype) end elseif fid == 16 then if ftype == TType.STRUCT then self.accounting = Accounting:new{} self.accounting:read(iprot) else iprot:skip(ftype) end elseif fid == 17 then if ftype == TType.STRUCT then self.premiumInfo = PremiumInfo:new{} self.premiumInfo:read(iprot) else iprot:skip(ftype) end elseif fid == 18 then if ftype == TType.STRUCT then self.businessUserInfo = BusinessUserInfo:new{} self.businessUserInfo:read(iprot) else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function User:write(oprot) oprot:writeStructBegin('User') if self.id then oprot:writeFieldBegin('id', TType.I32, 1) oprot:writeI32(self.id) oprot:writeFieldEnd() end if self.username then oprot:writeFieldBegin('username', TType.STRING, 2) oprot:writeString(self.username) oprot:writeFieldEnd() end if self.email then oprot:writeFieldBegin('email', TType.STRING, 3) oprot:writeString(self.email) oprot:writeFieldEnd() end if self.name then oprot:writeFieldBegin('name', TType.STRING, 4) oprot:writeString(self.name) oprot:writeFieldEnd() end if self.timezone then oprot:writeFieldBegin('timezone', TType.STRING, 6) oprot:writeString(self.timezone) oprot:writeFieldEnd() end if self.privilege then oprot:writeFieldBegin('privilege', TType.I32, 7) oprot:writeI32(self.privilege) oprot:writeFieldEnd() end if self.created then oprot:writeFieldBegin('created', TType.I64, 9) oprot:writeI64(self.created) oprot:writeFieldEnd() end if self.updated then oprot:writeFieldBegin('updated', TType.I64, 10) oprot:writeI64(self.updated) oprot:writeFieldEnd() end if self.deleted then oprot:writeFieldBegin('deleted', TType.I64, 11) oprot:writeI64(self.deleted) oprot:writeFieldEnd() end if self.active then oprot:writeFieldBegin('active', TType.BOOL, 13) oprot:writeBool(self.active) oprot:writeFieldEnd() end if self.shardId then oprot:writeFieldBegin('shardId', TType.STRING, 14) oprot:writeString(self.shardId) oprot:writeFieldEnd() end if self.attributes then oprot:writeFieldBegin('attributes', TType.STRUCT, 15) self.attributes:write(oprot) oprot:writeFieldEnd() end if self.accounting then oprot:writeFieldBegin('accounting', TType.STRUCT, 16) self.accounting:write(oprot) oprot:writeFieldEnd() end if self.premiumInfo then oprot:writeFieldBegin('premiumInfo', TType.STRUCT, 17) self.premiumInfo:write(oprot) oprot:writeFieldEnd() end if self.businessUserInfo then oprot:writeFieldBegin('businessUserInfo', TType.STRUCT, 18) self.businessUserInfo:write(oprot) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end Tag = __TObject:new{ guid, name, parentGuid, updateSequenceNum } function Tag:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.guid = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.name = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.parentGuid = iprot:readString() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.I32 then self.updateSequenceNum = iprot:readI32() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function Tag:write(oprot) oprot:writeStructBegin('Tag') if self.guid then oprot:writeFieldBegin('guid', TType.STRING, 1) oprot:writeString(self.guid) oprot:writeFieldEnd() end if self.name then oprot:writeFieldBegin('name', TType.STRING, 2) oprot:writeString(self.name) oprot:writeFieldEnd() end if self.parentGuid then oprot:writeFieldBegin('parentGuid', TType.STRING, 3) oprot:writeString(self.parentGuid) oprot:writeFieldEnd() end if self.updateSequenceNum then oprot:writeFieldBegin('updateSequenceNum', TType.I32, 4) oprot:writeI32(self.updateSequenceNum) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end LazyMap = __TObject:new{ keysOnly, fullMap } function LazyMap:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.SET then self.keysOnly = {} local _etype15, _size12 = iprot:readSetBegin() for _i=1,_size12 do _elem16 = iprot:readString() self.keysOnly[_elem16] = _elem16 end iprot:readSetEnd() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.MAP then self.fullMap = {} local _ktype18, _vtype19, _size17 = iprot:readMapBegin() for _i=1,_size17 do _key21 = iprot:readString() _val22 = iprot:readString() self.fullMap[_key21] = _val22 end iprot:readMapEnd() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function LazyMap:write(oprot) oprot:writeStructBegin('LazyMap') if self.keysOnly then oprot:writeFieldBegin('keysOnly', TType.SET, 1) oprot:writeSetBegin(TType.STRING, #self.keysOnly) for iter23,_ in pairs(self.keysOnly) do oprot:writeString(iter23) end oprot:writeSetEnd() oprot:writeFieldEnd() end if self.fullMap then oprot:writeFieldBegin('fullMap', TType.MAP, 2) oprot:writeMapBegin(TType.STRING, TType.STRING, #self.fullMap) for kiter24,viter25 in pairs(self.fullMap) do oprot:writeString(kiter24) oprot:writeString(viter25) end oprot:writeMapEnd() oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end ResourceAttributes = __TObject:new{ sourceURL, timestamp, latitude, longitude, altitude, cameraMake, cameraModel, clientWillIndex, recoType, fileName, attachment, applicationData } function ResourceAttributes:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.sourceURL = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.I64 then self.timestamp = iprot:readI64() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.DOUBLE then self.latitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.DOUBLE then self.longitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.DOUBLE then self.altitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.STRING then self.cameraMake = iprot:readString() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.STRING then self.cameraModel = iprot:readString() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.BOOL then self.clientWillIndex = iprot:readBool() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.STRING then self.recoType = iprot:readString() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.STRING then self.fileName = iprot:readString() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.BOOL then self.attachment = iprot:readBool() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.STRUCT then self.applicationData = LazyMap:new{} self.applicationData:read(iprot) else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function ResourceAttributes:write(oprot) oprot:writeStructBegin('ResourceAttributes') if self.sourceURL then oprot:writeFieldBegin('sourceURL', TType.STRING, 1) oprot:writeString(self.sourceURL) oprot:writeFieldEnd() end if self.timestamp then oprot:writeFieldBegin('timestamp', TType.I64, 2) oprot:writeI64(self.timestamp) oprot:writeFieldEnd() end if self.latitude then oprot:writeFieldBegin('latitude', TType.DOUBLE, 3) oprot:writeDouble(self.latitude) oprot:writeFieldEnd() end if self.longitude then oprot:writeFieldBegin('longitude', TType.DOUBLE, 4) oprot:writeDouble(self.longitude) oprot:writeFieldEnd() end if self.altitude then oprot:writeFieldBegin('altitude', TType.DOUBLE, 5) oprot:writeDouble(self.altitude) oprot:writeFieldEnd() end if self.cameraMake then oprot:writeFieldBegin('cameraMake', TType.STRING, 6) oprot:writeString(self.cameraMake) oprot:writeFieldEnd() end if self.cameraModel then oprot:writeFieldBegin('cameraModel', TType.STRING, 7) oprot:writeString(self.cameraModel) oprot:writeFieldEnd() end if self.clientWillIndex then oprot:writeFieldBegin('clientWillIndex', TType.BOOL, 8) oprot:writeBool(self.clientWillIndex) oprot:writeFieldEnd() end if self.recoType then oprot:writeFieldBegin('recoType', TType.STRING, 9) oprot:writeString(self.recoType) oprot:writeFieldEnd() end if self.fileName then oprot:writeFieldBegin('fileName', TType.STRING, 10) oprot:writeString(self.fileName) oprot:writeFieldEnd() end if self.attachment then oprot:writeFieldBegin('attachment', TType.BOOL, 11) oprot:writeBool(self.attachment) oprot:writeFieldEnd() end if self.applicationData then oprot:writeFieldBegin('applicationData', TType.STRUCT, 12) self.applicationData:write(oprot) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end Resource = __TObject:new{ guid, noteGuid, data, mime, width, height, duration, active, recognition, attributes, updateSequenceNum, alternateData } function Resource:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.guid = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.noteGuid = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRUCT then self.data = Data:new{} self.data:read(iprot) else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.STRING then self.mime = iprot:readString() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.I16 then self.width = iprot:readI16() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.I16 then self.height = iprot:readI16() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.I16 then self.duration = iprot:readI16() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.BOOL then self.active = iprot:readBool() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.STRUCT then self.recognition = Data:new{} self.recognition:read(iprot) else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.STRUCT then self.attributes = ResourceAttributes:new{} self.attributes:read(iprot) else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.I32 then self.updateSequenceNum = iprot:readI32() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.STRUCT then self.alternateData = Data:new{} self.alternateData:read(iprot) else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function Resource:write(oprot) oprot:writeStructBegin('Resource') if self.guid then oprot:writeFieldBegin('guid', TType.STRING, 1) oprot:writeString(self.guid) oprot:writeFieldEnd() end if self.noteGuid then oprot:writeFieldBegin('noteGuid', TType.STRING, 2) oprot:writeString(self.noteGuid) oprot:writeFieldEnd() end if self.data then oprot:writeFieldBegin('data', TType.STRUCT, 3) self.data:write(oprot) oprot:writeFieldEnd() end if self.mime then oprot:writeFieldBegin('mime', TType.STRING, 4) oprot:writeString(self.mime) oprot:writeFieldEnd() end if self.width then oprot:writeFieldBegin('width', TType.I16, 5) oprot:writeI16(self.width) oprot:writeFieldEnd() end if self.height then oprot:writeFieldBegin('height', TType.I16, 6) oprot:writeI16(self.height) oprot:writeFieldEnd() end if self.duration then oprot:writeFieldBegin('duration', TType.I16, 7) oprot:writeI16(self.duration) oprot:writeFieldEnd() end if self.active then oprot:writeFieldBegin('active', TType.BOOL, 8) oprot:writeBool(self.active) oprot:writeFieldEnd() end if self.recognition then oprot:writeFieldBegin('recognition', TType.STRUCT, 9) self.recognition:write(oprot) oprot:writeFieldEnd() end if self.attributes then oprot:writeFieldBegin('attributes', TType.STRUCT, 11) self.attributes:write(oprot) oprot:writeFieldEnd() end if self.updateSequenceNum then oprot:writeFieldBegin('updateSequenceNum', TType.I32, 12) oprot:writeI32(self.updateSequenceNum) oprot:writeFieldEnd() end if self.alternateData then oprot:writeFieldBegin('alternateData', TType.STRUCT, 13) self.alternateData:write(oprot) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end NoteAttributes = __TObject:new{ subjectDate, latitude, longitude, altitude, author, source, sourceURL, sourceApplication, shareDate, reminderOrder, reminderDoneTime, reminderTime, placeName, contentClass, applicationData, lastEditedBy, classifications, creatorId, lastEditorId } function NoteAttributes:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.I64 then self.subjectDate = iprot:readI64() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.DOUBLE then self.latitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.DOUBLE then self.longitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.DOUBLE then self.altitude = iprot:readDouble() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.STRING then self.author = iprot:readString() else iprot:skip(ftype) end elseif fid == 14 then if ftype == TType.STRING then self.source = iprot:readString() else iprot:skip(ftype) end elseif fid == 15 then if ftype == TType.STRING then self.sourceURL = iprot:readString() else iprot:skip(ftype) end elseif fid == 16 then if ftype == TType.STRING then self.sourceApplication = iprot:readString() else iprot:skip(ftype) end elseif fid == 17 then if ftype == TType.I64 then self.shareDate = iprot:readI64() else iprot:skip(ftype) end elseif fid == 18 then if ftype == TType.I64 then self.reminderOrder = iprot:readI64() else iprot:skip(ftype) end elseif fid == 19 then if ftype == TType.I64 then self.reminderDoneTime = iprot:readI64() else iprot:skip(ftype) end elseif fid == 20 then if ftype == TType.I64 then self.reminderTime = iprot:readI64() else iprot:skip(ftype) end elseif fid == 21 then if ftype == TType.STRING then self.placeName = iprot:readString() else iprot:skip(ftype) end elseif fid == 22 then if ftype == TType.STRING then self.contentClass = iprot:readString() else iprot:skip(ftype) end elseif fid == 23 then if ftype == TType.STRUCT then self.applicationData = LazyMap:new{} self.applicationData:read(iprot) else iprot:skip(ftype) end elseif fid == 24 then if ftype == TType.STRING then self.lastEditedBy = iprot:readString() else iprot:skip(ftype) end elseif fid == 26 then if ftype == TType.MAP then self.classifications = {} local _ktype27, _vtype28, _size26 = iprot:readMapBegin() for _i=1,_size26 do _key30 = iprot:readString() _val31 = iprot:readString() self.classifications[_key30] = _val31 end iprot:readMapEnd() else iprot:skip(ftype) end elseif fid == 27 then if ftype == TType.I32 then self.creatorId = iprot:readI32() else iprot:skip(ftype) end elseif fid == 28 then if ftype == TType.I32 then self.lastEditorId = iprot:readI32() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function NoteAttributes:write(oprot) oprot:writeStructBegin('NoteAttributes') if self.subjectDate then oprot:writeFieldBegin('subjectDate', TType.I64, 1) oprot:writeI64(self.subjectDate) oprot:writeFieldEnd() end if self.latitude then oprot:writeFieldBegin('latitude', TType.DOUBLE, 10) oprot:writeDouble(self.latitude) oprot:writeFieldEnd() end if self.longitude then oprot:writeFieldBegin('longitude', TType.DOUBLE, 11) oprot:writeDouble(self.longitude) oprot:writeFieldEnd() end if self.altitude then oprot:writeFieldBegin('altitude', TType.DOUBLE, 12) oprot:writeDouble(self.altitude) oprot:writeFieldEnd() end if self.author then oprot:writeFieldBegin('author', TType.STRING, 13) oprot:writeString(self.author) oprot:writeFieldEnd() end if self.source then oprot:writeFieldBegin('source', TType.STRING, 14) oprot:writeString(self.source) oprot:writeFieldEnd() end if self.sourceURL then oprot:writeFieldBegin('sourceURL', TType.STRING, 15) oprot:writeString(self.sourceURL) oprot:writeFieldEnd() end if self.sourceApplication then oprot:writeFieldBegin('sourceApplication', TType.STRING, 16) oprot:writeString(self.sourceApplication) oprot:writeFieldEnd() end if self.shareDate then oprot:writeFieldBegin('shareDate', TType.I64, 17) oprot:writeI64(self.shareDate) oprot:writeFieldEnd() end if self.reminderOrder then oprot:writeFieldBegin('reminderOrder', TType.I64, 18) oprot:writeI64(self.reminderOrder) oprot:writeFieldEnd() end if self.reminderDoneTime then oprot:writeFieldBegin('reminderDoneTime', TType.I64, 19) oprot:writeI64(self.reminderDoneTime) oprot:writeFieldEnd() end if self.reminderTime then oprot:writeFieldBegin('reminderTime', TType.I64, 20) oprot:writeI64(self.reminderTime) oprot:writeFieldEnd() end if self.placeName then oprot:writeFieldBegin('placeName', TType.STRING, 21) oprot:writeString(self.placeName) oprot:writeFieldEnd() end if self.contentClass then oprot:writeFieldBegin('contentClass', TType.STRING, 22) oprot:writeString(self.contentClass) oprot:writeFieldEnd() end if self.applicationData then oprot:writeFieldBegin('applicationData', TType.STRUCT, 23) self.applicationData:write(oprot) oprot:writeFieldEnd() end if self.lastEditedBy then oprot:writeFieldBegin('lastEditedBy', TType.STRING, 24) oprot:writeString(self.lastEditedBy) oprot:writeFieldEnd() end if self.classifications then oprot:writeFieldBegin('classifications', TType.MAP, 26) oprot:writeMapBegin(TType.STRING, TType.STRING, #self.classifications) for kiter32,viter33 in pairs(self.classifications) do oprot:writeString(kiter32) oprot:writeString(viter33) end oprot:writeMapEnd() oprot:writeFieldEnd() end if self.creatorId then oprot:writeFieldBegin('creatorId', TType.I32, 27) oprot:writeI32(self.creatorId) oprot:writeFieldEnd() end if self.lastEditorId then oprot:writeFieldBegin('lastEditorId', TType.I32, 28) oprot:writeI32(self.lastEditorId) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end Note = __TObject:new{ guid, title, content, contentHash, contentLength, created, updated, deleted, active, updateSequenceNum, notebookGuid, tagGuids, resources, attributes, tagNames } function Note:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.guid = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.title = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.content = iprot:readString() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.STRING then self.contentHash = iprot:readString() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.I32 then self.contentLength = iprot:readI32() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.I64 then self.created = iprot:readI64() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.I64 then self.updated = iprot:readI64() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.I64 then self.deleted = iprot:readI64() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.BOOL then self.active = iprot:readBool() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.I32 then self.updateSequenceNum = iprot:readI32() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.STRING then self.notebookGuid = iprot:readString() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.LIST then self.tagGuids = {} local _etype37, _size34 = iprot:readListBegin() for _i=1,_size34 do _elem38 = iprot:readString() table.insert(self.tagGuids, _elem38) end iprot:readListEnd() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.LIST then self.resources = {} local _etype42, _size39 = iprot:readListBegin() for _i=1,_size39 do _elem43 = Resource:new{} _elem43:read(iprot) table.insert(self.resources, _elem43) end iprot:readListEnd() else iprot:skip(ftype) end elseif fid == 14 then if ftype == TType.STRUCT then self.attributes = NoteAttributes:new{} self.attributes:read(iprot) else iprot:skip(ftype) end elseif fid == 15 then if ftype == TType.LIST then self.tagNames = {} local _etype47, _size44 = iprot:readListBegin() for _i=1,_size44 do _elem48 = iprot:readString() table.insert(self.tagNames, _elem48) end iprot:readListEnd() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function Note:write(oprot) oprot:writeStructBegin('Note') if self.guid then oprot:writeFieldBegin('guid', TType.STRING, 1) oprot:writeString(self.guid) oprot:writeFieldEnd() end if self.title then oprot:writeFieldBegin('title', TType.STRING, 2) oprot:writeString(self.title) oprot:writeFieldEnd() end if self.content then oprot:writeFieldBegin('content', TType.STRING, 3) oprot:writeString(self.content) oprot:writeFieldEnd() end if self.contentHash then oprot:writeFieldBegin('contentHash', TType.STRING, 4) oprot:writeString(self.contentHash) oprot:writeFieldEnd() end if self.contentLength then oprot:writeFieldBegin('contentLength', TType.I32, 5) oprot:writeI32(self.contentLength) oprot:writeFieldEnd() end if self.created then oprot:writeFieldBegin('created', TType.I64, 6) oprot:writeI64(self.created) oprot:writeFieldEnd() end if self.updated then oprot:writeFieldBegin('updated', TType.I64, 7) oprot:writeI64(self.updated) oprot:writeFieldEnd() end if self.deleted then oprot:writeFieldBegin('deleted', TType.I64, 8) oprot:writeI64(self.deleted) oprot:writeFieldEnd() end if self.active then oprot:writeFieldBegin('active', TType.BOOL, 9) oprot:writeBool(self.active) oprot:writeFieldEnd() end if self.updateSequenceNum then oprot:writeFieldBegin('updateSequenceNum', TType.I32, 10) oprot:writeI32(self.updateSequenceNum) oprot:writeFieldEnd() end if self.notebookGuid then oprot:writeFieldBegin('notebookGuid', TType.STRING, 11) oprot:writeString(self.notebookGuid) oprot:writeFieldEnd() end if self.tagGuids then oprot:writeFieldBegin('tagGuids', TType.LIST, 12) oprot:writeListBegin(TType.STRING, #self.tagGuids) for _,iter49 in ipairs(self.tagGuids) do oprot:writeString(iter49) end oprot:writeListEnd() oprot:writeFieldEnd() end if self.resources then oprot:writeFieldBegin('resources', TType.LIST, 13) oprot:writeListBegin(TType.STRUCT, #self.resources) for _,iter50 in ipairs(self.resources) do iter50:write(oprot) end oprot:writeListEnd() oprot:writeFieldEnd() end if self.attributes then oprot:writeFieldBegin('attributes', TType.STRUCT, 14) self.attributes:write(oprot) oprot:writeFieldEnd() end if self.tagNames then oprot:writeFieldBegin('tagNames', TType.LIST, 15) oprot:writeListBegin(TType.STRING, #self.tagNames) for _,iter51 in ipairs(self.tagNames) do oprot:writeString(iter51) end oprot:writeListEnd() oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end Publishing = __TObject:new{ uri, order, ascending, publicDescription } function Publishing:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.uri = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.I32 then self.order = iprot:readI32() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.BOOL then self.ascending = iprot:readBool() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.STRING then self.publicDescription = iprot:readString() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function Publishing:write(oprot) oprot:writeStructBegin('Publishing') if self.uri then oprot:writeFieldBegin('uri', TType.STRING, 1) oprot:writeString(self.uri) oprot:writeFieldEnd() end if self.order then oprot:writeFieldBegin('order', TType.I32, 2) oprot:writeI32(self.order) oprot:writeFieldEnd() end if self.ascending then oprot:writeFieldBegin('ascending', TType.BOOL, 3) oprot:writeBool(self.ascending) oprot:writeFieldEnd() end if self.publicDescription then oprot:writeFieldBegin('publicDescription', TType.STRING, 4) oprot:writeString(self.publicDescription) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end BusinessNotebook = __TObject:new{ notebookDescription, privilege, recommended } function BusinessNotebook:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.notebookDescription = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.I32 then self.privilege = iprot:readI32() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.BOOL then self.recommended = iprot:readBool() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function BusinessNotebook:write(oprot) oprot:writeStructBegin('BusinessNotebook') if self.notebookDescription then oprot:writeFieldBegin('notebookDescription', TType.STRING, 1) oprot:writeString(self.notebookDescription) oprot:writeFieldEnd() end if self.privilege then oprot:writeFieldBegin('privilege', TType.I32, 2) oprot:writeI32(self.privilege) oprot:writeFieldEnd() end if self.recommended then oprot:writeFieldBegin('recommended', TType.BOOL, 3) oprot:writeBool(self.recommended) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end SavedSearchScope = __TObject:new{ includeAccount, includePersonalLinkedNotebooks, includeBusinessLinkedNotebooks } function SavedSearchScope:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.BOOL then self.includeAccount = iprot:readBool() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.BOOL then self.includePersonalLinkedNotebooks = iprot:readBool() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.BOOL then self.includeBusinessLinkedNotebooks = iprot:readBool() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function SavedSearchScope:write(oprot) oprot:writeStructBegin('SavedSearchScope') if self.includeAccount then oprot:writeFieldBegin('includeAccount', TType.BOOL, 1) oprot:writeBool(self.includeAccount) oprot:writeFieldEnd() end if self.includePersonalLinkedNotebooks then oprot:writeFieldBegin('includePersonalLinkedNotebooks', TType.BOOL, 2) oprot:writeBool(self.includePersonalLinkedNotebooks) oprot:writeFieldEnd() end if self.includeBusinessLinkedNotebooks then oprot:writeFieldBegin('includeBusinessLinkedNotebooks', TType.BOOL, 3) oprot:writeBool(self.includeBusinessLinkedNotebooks) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end SavedSearch = __TObject:new{ guid, name, query, format, updateSequenceNum, scope } function SavedSearch:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.guid = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.name = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.query = iprot:readString() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.I32 then self.format = iprot:readI32() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.I32 then self.updateSequenceNum = iprot:readI32() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.STRUCT then self.scope = SavedSearchScope:new{} self.scope:read(iprot) else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function SavedSearch:write(oprot) oprot:writeStructBegin('SavedSearch') if self.guid then oprot:writeFieldBegin('guid', TType.STRING, 1) oprot:writeString(self.guid) oprot:writeFieldEnd() end if self.name then oprot:writeFieldBegin('name', TType.STRING, 2) oprot:writeString(self.name) oprot:writeFieldEnd() end if self.query then oprot:writeFieldBegin('query', TType.STRING, 3) oprot:writeString(self.query) oprot:writeFieldEnd() end if self.format then oprot:writeFieldBegin('format', TType.I32, 4) oprot:writeI32(self.format) oprot:writeFieldEnd() end if self.updateSequenceNum then oprot:writeFieldBegin('updateSequenceNum', TType.I32, 5) oprot:writeI32(self.updateSequenceNum) oprot:writeFieldEnd() end if self.scope then oprot:writeFieldBegin('scope', TType.STRUCT, 6) self.scope:write(oprot) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end SharedNotebookRecipientSettings = __TObject:new{ reminderNotifyEmail, reminderNotifyInApp } function SharedNotebookRecipientSettings:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.BOOL then self.reminderNotifyEmail = iprot:readBool() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.BOOL then self.reminderNotifyInApp = iprot:readBool() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function SharedNotebookRecipientSettings:write(oprot) oprot:writeStructBegin('SharedNotebookRecipientSettings') if self.reminderNotifyEmail then oprot:writeFieldBegin('reminderNotifyEmail', TType.BOOL, 1) oprot:writeBool(self.reminderNotifyEmail) oprot:writeFieldEnd() end if self.reminderNotifyInApp then oprot:writeFieldBegin('reminderNotifyInApp', TType.BOOL, 2) oprot:writeBool(self.reminderNotifyInApp) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end SharedNotebook = __TObject:new{ id, userId, notebookGuid, email, notebookModifiable, requireLogin, serviceCreated, serviceUpdated, shareKey, username, privilege, allowPreview, recipientSettings } function SharedNotebook:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.I64 then self.id = iprot:readI64() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.I32 then self.userId = iprot:readI32() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.notebookGuid = iprot:readString() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.STRING then self.email = iprot:readString() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.BOOL then self.notebookModifiable = iprot:readBool() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.BOOL then self.requireLogin = iprot:readBool() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.I64 then self.serviceCreated = iprot:readI64() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.I64 then self.serviceUpdated = iprot:readI64() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.STRING then self.shareKey = iprot:readString() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.STRING then self.username = iprot:readString() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.I32 then self.privilege = iprot:readI32() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.BOOL then self.allowPreview = iprot:readBool() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.STRUCT then self.recipientSettings = SharedNotebookRecipientSettings:new{} self.recipientSettings:read(iprot) else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function SharedNotebook:write(oprot) oprot:writeStructBegin('SharedNotebook') if self.id then oprot:writeFieldBegin('id', TType.I64, 1) oprot:writeI64(self.id) oprot:writeFieldEnd() end if self.userId then oprot:writeFieldBegin('userId', TType.I32, 2) oprot:writeI32(self.userId) oprot:writeFieldEnd() end if self.notebookGuid then oprot:writeFieldBegin('notebookGuid', TType.STRING, 3) oprot:writeString(self.notebookGuid) oprot:writeFieldEnd() end if self.email then oprot:writeFieldBegin('email', TType.STRING, 4) oprot:writeString(self.email) oprot:writeFieldEnd() end if self.notebookModifiable then oprot:writeFieldBegin('notebookModifiable', TType.BOOL, 5) oprot:writeBool(self.notebookModifiable) oprot:writeFieldEnd() end if self.requireLogin then oprot:writeFieldBegin('requireLogin', TType.BOOL, 6) oprot:writeBool(self.requireLogin) oprot:writeFieldEnd() end if self.serviceCreated then oprot:writeFieldBegin('serviceCreated', TType.I64, 7) oprot:writeI64(self.serviceCreated) oprot:writeFieldEnd() end if self.serviceUpdated then oprot:writeFieldBegin('serviceUpdated', TType.I64, 10) oprot:writeI64(self.serviceUpdated) oprot:writeFieldEnd() end if self.shareKey then oprot:writeFieldBegin('shareKey', TType.STRING, 8) oprot:writeString(self.shareKey) oprot:writeFieldEnd() end if self.username then oprot:writeFieldBegin('username', TType.STRING, 9) oprot:writeString(self.username) oprot:writeFieldEnd() end if self.privilege then oprot:writeFieldBegin('privilege', TType.I32, 11) oprot:writeI32(self.privilege) oprot:writeFieldEnd() end if self.allowPreview then oprot:writeFieldBegin('allowPreview', TType.BOOL, 12) oprot:writeBool(self.allowPreview) oprot:writeFieldEnd() end if self.recipientSettings then oprot:writeFieldBegin('recipientSettings', TType.STRUCT, 13) self.recipientSettings:write(oprot) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end NotebookRestrictions = __TObject:new{ noReadNotes, noCreateNotes, noUpdateNotes, noExpungeNotes, noShareNotes, noEmailNotes, noSendMessageToRecipients, noUpdateNotebook, noExpungeNotebook, noSetDefaultNotebook, noSetNotebookStack, noPublishToPublic, noPublishToBusinessLibrary, noCreateTags, noUpdateTags, noExpungeTags, noSetParentTag, noCreateSharedNotebooks, updateWhichSharedNotebookRestrictions, expungeWhichSharedNotebookRestrictions } function NotebookRestrictions:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.BOOL then self.noReadNotes = iprot:readBool() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.BOOL then self.noCreateNotes = iprot:readBool() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.BOOL then self.noUpdateNotes = iprot:readBool() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.BOOL then self.noExpungeNotes = iprot:readBool() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.BOOL then self.noShareNotes = iprot:readBool() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.BOOL then self.noEmailNotes = iprot:readBool() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.BOOL then self.noSendMessageToRecipients = iprot:readBool() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.BOOL then self.noUpdateNotebook = iprot:readBool() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.BOOL then self.noExpungeNotebook = iprot:readBool() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.BOOL then self.noSetDefaultNotebook = iprot:readBool() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.BOOL then self.noSetNotebookStack = iprot:readBool() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.BOOL then self.noPublishToPublic = iprot:readBool() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.BOOL then self.noPublishToBusinessLibrary = iprot:readBool() else iprot:skip(ftype) end elseif fid == 14 then if ftype == TType.BOOL then self.noCreateTags = iprot:readBool() else iprot:skip(ftype) end elseif fid == 15 then if ftype == TType.BOOL then self.noUpdateTags = iprot:readBool() else iprot:skip(ftype) end elseif fid == 16 then if ftype == TType.BOOL then self.noExpungeTags = iprot:readBool() else iprot:skip(ftype) end elseif fid == 17 then if ftype == TType.BOOL then self.noSetParentTag = iprot:readBool() else iprot:skip(ftype) end elseif fid == 18 then if ftype == TType.BOOL then self.noCreateSharedNotebooks = iprot:readBool() else iprot:skip(ftype) end elseif fid == 19 then if ftype == TType.I32 then self.updateWhichSharedNotebookRestrictions = iprot:readI32() else iprot:skip(ftype) end elseif fid == 20 then if ftype == TType.I32 then self.expungeWhichSharedNotebookRestrictions = iprot:readI32() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function NotebookRestrictions:write(oprot) oprot:writeStructBegin('NotebookRestrictions') if self.noReadNotes then oprot:writeFieldBegin('noReadNotes', TType.BOOL, 1) oprot:writeBool(self.noReadNotes) oprot:writeFieldEnd() end if self.noCreateNotes then oprot:writeFieldBegin('noCreateNotes', TType.BOOL, 2) oprot:writeBool(self.noCreateNotes) oprot:writeFieldEnd() end if self.noUpdateNotes then oprot:writeFieldBegin('noUpdateNotes', TType.BOOL, 3) oprot:writeBool(self.noUpdateNotes) oprot:writeFieldEnd() end if self.noExpungeNotes then oprot:writeFieldBegin('noExpungeNotes', TType.BOOL, 4) oprot:writeBool(self.noExpungeNotes) oprot:writeFieldEnd() end if self.noShareNotes then oprot:writeFieldBegin('noShareNotes', TType.BOOL, 5) oprot:writeBool(self.noShareNotes) oprot:writeFieldEnd() end if self.noEmailNotes then oprot:writeFieldBegin('noEmailNotes', TType.BOOL, 6) oprot:writeBool(self.noEmailNotes) oprot:writeFieldEnd() end if self.noSendMessageToRecipients then oprot:writeFieldBegin('noSendMessageToRecipients', TType.BOOL, 7) oprot:writeBool(self.noSendMessageToRecipients) oprot:writeFieldEnd() end if self.noUpdateNotebook then oprot:writeFieldBegin('noUpdateNotebook', TType.BOOL, 8) oprot:writeBool(self.noUpdateNotebook) oprot:writeFieldEnd() end if self.noExpungeNotebook then oprot:writeFieldBegin('noExpungeNotebook', TType.BOOL, 9) oprot:writeBool(self.noExpungeNotebook) oprot:writeFieldEnd() end if self.noSetDefaultNotebook then oprot:writeFieldBegin('noSetDefaultNotebook', TType.BOOL, 10) oprot:writeBool(self.noSetDefaultNotebook) oprot:writeFieldEnd() end if self.noSetNotebookStack then oprot:writeFieldBegin('noSetNotebookStack', TType.BOOL, 11) oprot:writeBool(self.noSetNotebookStack) oprot:writeFieldEnd() end if self.noPublishToPublic then oprot:writeFieldBegin('noPublishToPublic', TType.BOOL, 12) oprot:writeBool(self.noPublishToPublic) oprot:writeFieldEnd() end if self.noPublishToBusinessLibrary then oprot:writeFieldBegin('noPublishToBusinessLibrary', TType.BOOL, 13) oprot:writeBool(self.noPublishToBusinessLibrary) oprot:writeFieldEnd() end if self.noCreateTags then oprot:writeFieldBegin('noCreateTags', TType.BOOL, 14) oprot:writeBool(self.noCreateTags) oprot:writeFieldEnd() end if self.noUpdateTags then oprot:writeFieldBegin('noUpdateTags', TType.BOOL, 15) oprot:writeBool(self.noUpdateTags) oprot:writeFieldEnd() end if self.noExpungeTags then oprot:writeFieldBegin('noExpungeTags', TType.BOOL, 16) oprot:writeBool(self.noExpungeTags) oprot:writeFieldEnd() end if self.noSetParentTag then oprot:writeFieldBegin('noSetParentTag', TType.BOOL, 17) oprot:writeBool(self.noSetParentTag) oprot:writeFieldEnd() end if self.noCreateSharedNotebooks then oprot:writeFieldBegin('noCreateSharedNotebooks', TType.BOOL, 18) oprot:writeBool(self.noCreateSharedNotebooks) oprot:writeFieldEnd() end if self.updateWhichSharedNotebookRestrictions then oprot:writeFieldBegin('updateWhichSharedNotebookRestrictions', TType.I32, 19) oprot:writeI32(self.updateWhichSharedNotebookRestrictions) oprot:writeFieldEnd() end if self.expungeWhichSharedNotebookRestrictions then oprot:writeFieldBegin('expungeWhichSharedNotebookRestrictions', TType.I32, 20) oprot:writeI32(self.expungeWhichSharedNotebookRestrictions) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end Notebook = __TObject:new{ guid, name, updateSequenceNum, defaultNotebook, serviceCreated, serviceUpdated, publishing, published, stack, sharedNotebookIds, sharedNotebooks, businessNotebook, contact, restrictions } function Notebook:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.guid = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.name = iprot:readString() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.I32 then self.updateSequenceNum = iprot:readI32() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.BOOL then self.defaultNotebook = iprot:readBool() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.I64 then self.serviceCreated = iprot:readI64() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.I64 then self.serviceUpdated = iprot:readI64() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.STRUCT then self.publishing = Publishing:new{} self.publishing:read(iprot) else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.BOOL then self.published = iprot:readBool() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.STRING then self.stack = iprot:readString() else iprot:skip(ftype) end elseif fid == 13 then if ftype == TType.LIST then self.sharedNotebookIds = {} local _etype55, _size52 = iprot:readListBegin() for _i=1,_size52 do _elem56 = iprot:readI64() table.insert(self.sharedNotebookIds, _elem56) end iprot:readListEnd() else iprot:skip(ftype) end elseif fid == 14 then if ftype == TType.LIST then self.sharedNotebooks = {} local _etype60, _size57 = iprot:readListBegin() for _i=1,_size57 do _elem61 = SharedNotebook:new{} _elem61:read(iprot) table.insert(self.sharedNotebooks, _elem61) end iprot:readListEnd() else iprot:skip(ftype) end elseif fid == 15 then if ftype == TType.STRUCT then self.businessNotebook = BusinessNotebook:new{} self.businessNotebook:read(iprot) else iprot:skip(ftype) end elseif fid == 16 then if ftype == TType.STRUCT then self.contact = User:new{} self.contact:read(iprot) else iprot:skip(ftype) end elseif fid == 17 then if ftype == TType.STRUCT then self.restrictions = NotebookRestrictions:new{} self.restrictions:read(iprot) else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function Notebook:write(oprot) oprot:writeStructBegin('Notebook') if self.guid then oprot:writeFieldBegin('guid', TType.STRING, 1) oprot:writeString(self.guid) oprot:writeFieldEnd() end if self.name then oprot:writeFieldBegin('name', TType.STRING, 2) oprot:writeString(self.name) oprot:writeFieldEnd() end if self.updateSequenceNum then oprot:writeFieldBegin('updateSequenceNum', TType.I32, 5) oprot:writeI32(self.updateSequenceNum) oprot:writeFieldEnd() end if self.defaultNotebook then oprot:writeFieldBegin('defaultNotebook', TType.BOOL, 6) oprot:writeBool(self.defaultNotebook) oprot:writeFieldEnd() end if self.serviceCreated then oprot:writeFieldBegin('serviceCreated', TType.I64, 7) oprot:writeI64(self.serviceCreated) oprot:writeFieldEnd() end if self.serviceUpdated then oprot:writeFieldBegin('serviceUpdated', TType.I64, 8) oprot:writeI64(self.serviceUpdated) oprot:writeFieldEnd() end if self.publishing then oprot:writeFieldBegin('publishing', TType.STRUCT, 10) self.publishing:write(oprot) oprot:writeFieldEnd() end if self.published then oprot:writeFieldBegin('published', TType.BOOL, 11) oprot:writeBool(self.published) oprot:writeFieldEnd() end if self.stack then oprot:writeFieldBegin('stack', TType.STRING, 12) oprot:writeString(self.stack) oprot:writeFieldEnd() end if self.sharedNotebookIds then oprot:writeFieldBegin('sharedNotebookIds', TType.LIST, 13) oprot:writeListBegin(TType.I64, #self.sharedNotebookIds) for _,iter62 in ipairs(self.sharedNotebookIds) do oprot:writeI64(iter62) end oprot:writeListEnd() oprot:writeFieldEnd() end if self.sharedNotebooks then oprot:writeFieldBegin('sharedNotebooks', TType.LIST, 14) oprot:writeListBegin(TType.STRUCT, #self.sharedNotebooks) for _,iter63 in ipairs(self.sharedNotebooks) do iter63:write(oprot) end oprot:writeListEnd() oprot:writeFieldEnd() end if self.businessNotebook then oprot:writeFieldBegin('businessNotebook', TType.STRUCT, 15) self.businessNotebook:write(oprot) oprot:writeFieldEnd() end if self.contact then oprot:writeFieldBegin('contact', TType.STRUCT, 16) self.contact:write(oprot) oprot:writeFieldEnd() end if self.restrictions then oprot:writeFieldBegin('restrictions', TType.STRUCT, 17) self.restrictions:write(oprot) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end LinkedNotebook = __TObject:new{ shareName, username, shardId, shareKey, uri, guid, updateSequenceNum, noteStoreUrl, webApiUrlPrefix, stack, businessId } function LinkedNotebook:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 2 then if ftype == TType.STRING then self.shareName = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.username = iprot:readString() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.STRING then self.shardId = iprot:readString() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.STRING then self.shareKey = iprot:readString() else iprot:skip(ftype) end elseif fid == 6 then if ftype == TType.STRING then self.uri = iprot:readString() else iprot:skip(ftype) end elseif fid == 7 then if ftype == TType.STRING then self.guid = iprot:readString() else iprot:skip(ftype) end elseif fid == 8 then if ftype == TType.I32 then self.updateSequenceNum = iprot:readI32() else iprot:skip(ftype) end elseif fid == 9 then if ftype == TType.STRING then self.noteStoreUrl = iprot:readString() else iprot:skip(ftype) end elseif fid == 10 then if ftype == TType.STRING then self.webApiUrlPrefix = iprot:readString() else iprot:skip(ftype) end elseif fid == 11 then if ftype == TType.STRING then self.stack = iprot:readString() else iprot:skip(ftype) end elseif fid == 12 then if ftype == TType.I32 then self.businessId = iprot:readI32() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function LinkedNotebook:write(oprot) oprot:writeStructBegin('LinkedNotebook') if self.shareName then oprot:writeFieldBegin('shareName', TType.STRING, 2) oprot:writeString(self.shareName) oprot:writeFieldEnd() end if self.username then oprot:writeFieldBegin('username', TType.STRING, 3) oprot:writeString(self.username) oprot:writeFieldEnd() end if self.shardId then oprot:writeFieldBegin('shardId', TType.STRING, 4) oprot:writeString(self.shardId) oprot:writeFieldEnd() end if self.shareKey then oprot:writeFieldBegin('shareKey', TType.STRING, 5) oprot:writeString(self.shareKey) oprot:writeFieldEnd() end if self.uri then oprot:writeFieldBegin('uri', TType.STRING, 6) oprot:writeString(self.uri) oprot:writeFieldEnd() end if self.guid then oprot:writeFieldBegin('guid', TType.STRING, 7) oprot:writeString(self.guid) oprot:writeFieldEnd() end if self.updateSequenceNum then oprot:writeFieldBegin('updateSequenceNum', TType.I32, 8) oprot:writeI32(self.updateSequenceNum) oprot:writeFieldEnd() end if self.noteStoreUrl then oprot:writeFieldBegin('noteStoreUrl', TType.STRING, 9) oprot:writeString(self.noteStoreUrl) oprot:writeFieldEnd() end if self.webApiUrlPrefix then oprot:writeFieldBegin('webApiUrlPrefix', TType.STRING, 10) oprot:writeString(self.webApiUrlPrefix) oprot:writeFieldEnd() end if self.stack then oprot:writeFieldBegin('stack', TType.STRING, 11) oprot:writeString(self.stack) oprot:writeFieldEnd() end if self.businessId then oprot:writeFieldBegin('businessId', TType.I32, 12) oprot:writeI32(self.businessId) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end NotebookDescriptor = __TObject:new{ guid, notebookDisplayName, contactName, hasSharedNotebook, joinedUserCount } function NotebookDescriptor:read(iprot) iprot:readStructBegin() while true do local fname, ftype, fid = iprot:readFieldBegin() if ftype == TType.STOP then break elseif fid == 1 then if ftype == TType.STRING then self.guid = iprot:readString() else iprot:skip(ftype) end elseif fid == 2 then if ftype == TType.STRING then self.notebookDisplayName = iprot:readString() else iprot:skip(ftype) end elseif fid == 3 then if ftype == TType.STRING then self.contactName = iprot:readString() else iprot:skip(ftype) end elseif fid == 4 then if ftype == TType.BOOL then self.hasSharedNotebook = iprot:readBool() else iprot:skip(ftype) end elseif fid == 5 then if ftype == TType.I32 then self.joinedUserCount = iprot:readI32() else iprot:skip(ftype) end else iprot:skip(ftype) end iprot:readFieldEnd() end iprot:readStructEnd() end function NotebookDescriptor:write(oprot) oprot:writeStructBegin('NotebookDescriptor') if self.guid then oprot:writeFieldBegin('guid', TType.STRING, 1) oprot:writeString(self.guid) oprot:writeFieldEnd() end if self.notebookDisplayName then oprot:writeFieldBegin('notebookDisplayName', TType.STRING, 2) oprot:writeString(self.notebookDisplayName) oprot:writeFieldEnd() end if self.contactName then oprot:writeFieldBegin('contactName', TType.STRING, 3) oprot:writeString(self.contactName) oprot:writeFieldEnd() end if self.hasSharedNotebook then oprot:writeFieldBegin('hasSharedNotebook', TType.BOOL, 4) oprot:writeBool(self.hasSharedNotebook) oprot:writeFieldEnd() end if self.joinedUserCount then oprot:writeFieldBegin('joinedUserCount', TType.I32, 5) oprot:writeI32(self.joinedUserCount) oprot:writeFieldEnd() end oprot:writeFieldStop() oprot:writeStructEnd() end
local x x = function() return print(what) end local _ _ = function() end _ = function() return function() return function() end end end go(to(the(barn))) open(function() return the(function() return door end) end) open(function() the(door) local hello hello = function() return my(func) end end) local h h = function() return hi end eat(function() end, world); (function() end)() x = function(...) end hello() hello.world() _ = hello().something _ = what()["ofefe"] what()(the()(heck())) _ = function(a, b, c, d, e) end _ = function(a, a, a, a, a) return print(a) end _ = function(x) if x == nil then x = 23023 end end _ = function(x) if x == nil then x = function(y) if y == nil then y = function() end end end end end _ = function(x) if x == nil then if something then x = yeah else x = no end end end local something something = function(hello, world) if hello == nil then hello = 100 end if world == nil then world = function(x) if x == nil then x = [[yeah cool]] end return print("eat rice") end end return print(hello) end _ = function(self) end _ = function(self, x, y) end _ = function(self, x, y) self.x = x self.y = y end _ = function(self, x) if x == nil then x = 1 end end _ = function(self, x, y, z) if x == nil then x = 1 end if z == nil then z = "hello world" end self.x = x self.z = z end x(function() return end) y(function() return 1 end) z(function() return 1, "hello", "world" end) k(function() if yes then return else return end end) _ = function() if something then return real_name end end d(function() return print("hello world") end, 10) d(1, 2, 3, 4, 5, 6, (function() if something then print("okay") return 10 end end)(), 10, 20) f()()(what)(function() return print("srue") end, 123) x = function(a, b) return print("what") end local y y = function(a, b) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end local z z = function(a, b) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end local j j = function(f, g, m, a, b) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end y = function(a, b, ...) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end y = function(a, b, ...) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end local args args = function(a, b) return print("what") end args = function(a, b) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end args = function(a, b) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end args = function(f, g, m, a, b) if a == nil then a = "hi" end if b == nil then b = 23 end return print("what") end local self self = function(n) if n == 0 then return 1 end return n * self(n - 1) end return nil
--- === plugins.core.menu.manager === --- --- Menu Manager Plugin. local require = require local image = require "hs.image" local menubar = require "hs.menubar" local config = require "cp.config" local i18n = require "cp.i18n" local section = require "section" local manager = {} --- plugins.core.menu.manager.rootSection() -> section --- Variable --- A new Root Section manager.rootSection = section:new() --- plugins.core.menu.manager.titleSuffix() -> table --- Variable --- Table of Title Suffix's manager.titleSuffix = {} --- plugins.core.menu.manager.init() -> none --- Function --- Initialises the module. --- --- Parameters: --- * None --- --- Returns: --- * None function manager.init() ------------------------------------------------------------------------------- -- Set up Menubar: -------------------------------------------------------------------------------- manager.menubar = menubar.new() -------------------------------------------------------------------------------- -- Set Tool Tip: -------------------------------------------------------------------------------- manager.menubar:setTooltip(config.appName .. " " .. config.appVersion .. " (" .. config.appBuild .. ")") -------------------------------------------------------------------------------- -- Work out Menubar Display Mode: -------------------------------------------------------------------------------- manager.updateMenubarIcon() manager.menubar:setMenu(manager.generateMenuTable) return manager end --- plugins.core.menu.manager.disable(priority) -> menubaritem --- Function --- Removes the menu from the system menu bar. --- --- Parameters: --- * None --- --- Returns: --- * the menubaritem function manager.disable() if manager.menubar then return manager.menubar:removeFromMenuBar() end end --- plugins.core.menu.manager.enable(priority) -> menubaritem --- Function --- Returns the previously removed menu back to the system menu bar. --- --- Parameters: --- * None --- --- Returns: --- * the menubaritem function manager.enable() if manager.menubar then return manager.menubar:returnToMenuBar() end end --- plugins.core.menu.manager.updateMenubarIcon(priority) -> none --- Function --- Updates the Menubar Icon --- --- Parameters: --- * None --- --- Returns: --- * None function manager.updateMenubarIcon() if not manager.menubar then return end local displayMenubarAsIcon = manager.displayMenubarAsIcon() local title = config.appName local icon = nil if displayMenubarAsIcon then local iconImage = image.imageFromPath(config.menubarIconPath) icon = iconImage:setSize({w=18,h=18}) title = "" end -------------------------------------------------------------------------------- -- Add any Title Suffix's: -------------------------------------------------------------------------------- local titleSuffix = "" for _,v in ipairs(manager.titleSuffix) do if type(v) == "function" then titleSuffix = titleSuffix .. v() end end title = title .. titleSuffix manager.menubar:setIcon(icon) -------------------------------------------------------------------------------- -- Issue #406: -- For some reason setting the title to " " temporarily fixes El Capitan. -------------------------------------------------------------------------------- manager.menubar:setTitle(" ") manager.menubar:setTitle(title) end --- plugins.core.menu.manager.displayMenubarAsIcon <cp.prop: boolean> --- Field --- If `true`, the menubar item will be the app icon. If not, it will be the app name. manager.displayMenubarAsIcon = config.prop("displayMenubarAsIcon", true):watch(manager.updateMenubarIcon) --- plugins.core.menu.manager.addSection(priority) -> section --- Function --- Creates a new menu section, which can have items and sub-menus added to it. --- --- Parameters: --- * priority - The priority order of menu items created in the section relative to other sections. --- --- Returns: --- * section - The section that was created. function manager.addSection(priority) return manager.rootSection:addSection(priority) end --- plugins.core.menu.manager.addTitleSuffix(fnTitleSuffix) --- Function --- Allows you to add a custom Suffix to the Menubar Title --- --- Parameters: --- * fnTitleSuffix - A function that returns a single string --- --- Returns: --- * None function manager.addTitleSuffix(fnTitleSuffix) manager.titleSuffix[#manager.titleSuffix + 1] = fnTitleSuffix manager.updateMenubarIcon() end --- plugins.core.menu.manager.generateMenuTable() --- Function --- Generates the Menu Table --- --- Parameters: --- * None --- --- Returns: --- * The Menu Table function manager.generateMenuTable() return manager.rootSection:generateMenuTable() end local plugin = { id = "core.menu.manager", group = "core", required = true, dependencies = { ["core.preferences.panels.menubar"] = "prefs", ["core.preferences.manager"] = "prefsManager", ["core.controlsurfaces.manager"] = "controlSurfaces", ["core.toolbox.manager"] = "toolbox", } } function plugin.init(deps) -------------------------------------------------------------------------------- -- Plugin Dependancies: -------------------------------------------------------------------------------- local prefs = deps.prefs local prefsManager = deps.prefsManager local controlSurfaces = deps.controlSurfaces local toolbox = deps.toolbox -------------------------------------------------------------------------------- -- Setup Menubar Manager: -------------------------------------------------------------------------------- manager.init() manager.enable() -------------------------------------------------------------------------------- -- Top Section: -------------------------------------------------------------------------------- manager.top = manager.addSection(1) -------------------------------------------------------------------------------- -- Bottom Section: -------------------------------------------------------------------------------- manager.bottom = manager.addSection(9999999) :addItem(0, function() return { title = "-" } end) -------------------------------------------------------------------------------- -- Tools Section: -------------------------------------------------------------------------------- local tools = manager.addSection(7777777) local toolsEnabled = config.prop("menubarToolsEnabled", true) tools:setDisabledFn(function() return not toolsEnabled() end) tools:addHeading(i18n("tools")) prefs:addCheckbox(105, { label = i18n("show") .. " " .. i18n("tools"), onchange = function(_, params) toolsEnabled(params.checked) end, checked = toolsEnabled, } ) manager.tools = tools -------------------------------------------------------------------------------- -- Help & Support Section: -------------------------------------------------------------------------------- local helpAndSupport = manager.addSection(8888888) local helpAndSupportEnabled = config.prop("menubarHelpEnabled", true) helpAndSupport:setDisabledFn(function() return not helpAndSupportEnabled() end) helpAndSupport:addHeading(i18n("helpAndSupport")) prefs:addCheckbox(104, { label = i18n("show") .. " " .. i18n("helpAndSupport"), onchange = function(_, params) helpAndSupportEnabled(params.checked) end, checked = helpAndSupportEnabled, } ) manager.helpAndSupport = helpAndSupport -------------------------------------------------------------------------------- -- Help & Support > CommandPost Section: -------------------------------------------------------------------------------- manager.commandPostHelpAndSupport = helpAndSupport:addMenu(10, function() return i18n("appName") end) -------------------------------------------------------------------------------- -- Help & Support > Apple Section: -------------------------------------------------------------------------------- manager.appleHelpAndSupport = helpAndSupport:addMenu(20, function() return i18n("apple") end) -------------------------------------------------------------------------------- -- Settings Section: -------------------------------------------------------------------------------- manager.settings = manager.bottom :addHeading(i18n("settings")) :addItem(10.1, function() return { title = i18n("preferences"), fn = prefsManager.show } end) :addItem(10.2, function() return { title = i18n("controlSurfaces"), fn = controlSurfaces.show } end) :addItem(10.3, function() return { title = "-" } end) :addItem(10.4, function() return { title = i18n("toolbox"), fn = toolbox.show } end) :addItem(11, function() return { title = "-" } end) -------------------------------------------------------------------------------- -- Restart Menu Item: -------------------------------------------------------------------------------- manager.bottom:addSeparator(9999999):addItem(10000000, function() return { title = i18n("restart"), fn = hs.reload } end) -------------------------------------------------------------------------------- -- Quit Menu Item: -------------------------------------------------------------------------------- manager.bottom:addItem(99999999, function() return { title = i18n("quit"), fn = function() config.application():kill() end } end) -------------------------------------------------------------------------------- -- Version Info: -------------------------------------------------------------------------------- manager.bottom:addItem(99999999.1, function() return { title = "-" } end) :addItem(99999999.2, function() return { title = i18n("version") .. ": " .. config.appVersion .. " (" .. config.appBuild .. ")", disabled = true } end) return manager end return plugin
local present, cmp = pcall(require, "cmp") if not present then return end vim.opt.completeopt = "menuone,noselect" local icons = { Text = "", Method = "", Function = "", Constructor = "", Field = "ﰠ", Variable = "", Class = "ﴯ", Interface = "", Module = "", Property = "ﰠ", Unit = "塞", Value = "", Enum = "", Keyword = "", Snippet = "", Color = "", File = "", Reference = "", Folder = "", EnumMember = "", Constant = "", Struct = "פּ", Event = "", Operator = "", TypeParameter = "", Table = " ", Object = "", Tag = " ", Array = " ", Boolean = "蘒", Number = "", String = "", Calendar = " ", Watch = "", } -- local cmp_window = require "cmp.utils.window" -- cmp_window.info_ = cmp_window.info -- cmp_window.info = function(self) -- local info = self:info_() -- info.scrollable = false -- return info -- end local options = { window = { completion = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(), }, snippet = { expand = function(args) require("luasnip").lsp_expand(args.body) end, }, formatting = { format = function(_, vim_item) vim_item.kind = string.format("%s %s", icons[vim_item.kind], vim_item.kind) return vim_item end, }, mapping = { ["<C-k>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "c" }), ["<C-j>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "c" }), ["<C-d>"] = cmp.mapping.scroll_docs(-4), ["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-Space>"] = cmp.mapping.complete(), ["<C-e>"] = cmp.mapping.close(), ["<CR>"] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Insert, select = true, }, ["<Tab>"] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() elseif require("luasnip").expand_or_jumpable() then vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-expand-or-jump", true, true, true), "") else fallback() end end, { "i", "s", }), ["<S-Tab>"] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() elseif require("luasnip").jumpable(-1) then vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-jump-prev", true, true, true), "") else fallback() end end, { "i", "s", }), }, sources = { { name = "luasnip" }, { name = "nvim_lsp" }, { name = "buffer" }, { name = "nvim_lua" }, { name = "path" }, }, } cmp.setup(options) cmp.setup.cmdline('/', { mapping = cmp.mapping.preset.cmdline(), sources = { { name = 'buffer' } } }) -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). cmp.setup.cmdline(':', { mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ { name = 'path' } }, { { name = 'cmdline' } }) })
#!/usr/bin/lua -- config PORT_NAME = "/dev/ttyACM0" READ_TIMEOUT = 2000 -- in ms DB_FILE = "/root/laser.db" COST_PER_MIN = 0.25 USB_PATH = "/sys/bus/usb/devices/usb1/authorized" UPDATE_INTERVAL = 3600 RETRY_INTERVAL = 300 -- a file with LASER_KEY and WP_KEY API keys defined (not public) dofile("/root/key.lua") -- open / create laser database sqlite3 = require("luasql.sqlite3") env = sqlite3.sqlite3() conn = env:connect(DB_FILE) conn:execute("CREATE TABLE IF NOT EXISTS log (id INTEGER PRIMARY KEY, time INTEGER, user_key_id TEXT, odometer INTEGER, evtype TEXT)") conn:commit() -- serial port rs232 = require("luars232") -- socket library http = require("socket.http") ltn12 = require("ltn12") -- DO NOT CALL THIS WITH REMOTELY RETURNED DATA (like error messages!!!!) function logger(msg) print(msg) os.execute(('logger -t laserboss "%q"'):format(msg)) end -- error handling device function try(f, catch_f) local status, exception = pcall(f) if not status then catch_f(exception) end end function update_keys() local t = {} local b, c = http.request{ url = "https://acemonstertoys.wpengine.com/wp-json/amt/v1/rfids/active", headers = {["X-Amt-Auth"] = WP_KEY}, method = "GET", redirect = true, sink = ltn12.sink.table(t) } assert(c == 200, "Got " .. c .. " instead of 200") assert(b == 1, "Got " .. b .. " instead of 1") local json_str = table.concat(t) assert(string.sub(json_str, 3, 4) == 'OK', "Got " .. json_str) local outtbl = {} local i = 0 for k in string.gmatch(string.sub(json_str, 5, -1), '\"(%w+)\"') do outtbl[k] = true i = i+1 end assert(i > 0, "Got 0 keys") logger("Updated active key list, " .. i .. " entries") active_keys = outtbl end function submit_event(ts, evtype, userid, odo) local t = {} local b, c = http.request{ url = "https://acemonstertoys.org/laser/api.php?timestamp=" .. ts .. "&odometer=" .. odo .. "&event=" .. evtype .. "&rfid=" .. userid, headers = {["X-Amt-Auth"] = LASER_KEY}, method = "GET", redirect = true, sink = ltn12.sink.table(t) } assert(c == 200, "Got " .. c .. " instead of 200 when submitting event") assert(b == 1, "Got " .. b .. " instead of 1 when submitting event") local response = table.concat(t) assert(string.sub(response, 1, 2) == 'OK', "Response is " .. response) print("Submitted event: ", ts, evtype, userid, odo) end function upload_journal() -- query the db local cur = conn:execute("SELECT * from log ORDER BY id") local row = {} local ok -- fetch, submit, and delete each journal record repeat ok = cur:fetch(row, 'a') if ok then submit_event(row['time'], row['evtype'], row['user_key_id'], row['odometer']) conn:execute("DELETE FROM log WHERE id="..row['id']) conn:commit() end until ok == nil end function open_port() local e p = nil -- close port if it was already open e, p = rs232.open(PORT_NAME) assert(e == rs232.RS232_ERR_NOERROR, "Error opening port") assert(p:set_baud_rate(rs232.RS232_BAUD_9600) == rs232.RS232_ERR_NOERROR, "Error setting baud") assert(p:set_data_bits(rs232.RS232_DATA_8) == rs232.RS232_ERR_NOERROR, "Error setting 8 bits") assert(p:set_parity(rs232.RS232_PARITY_NONE) == rs232.RS232_ERR_NOERROR, "Error setting parity") assert(p:set_stop_bits(rs232.RS232_STOP_1) == rs232.RS232_ERR_NOERROR, "Error setting stop bits") assert(p:set_flow_control(rs232.RS232_FLOW_OFF) == rs232.RS232_ERR_NOERROR, "Error setting flow off") p:flush() -- if an rfid got scanned at some point before we booted, ignore it get_status() get_rfid() end function display (line1, line2) if line1 then p:write("p" .. line1 .. "\n") end if line2 then p:write("q" .. line2 .. "\n") end end -- trim whitespace from string function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end function reset_usb () os.execute("echo 0 > " .. USB_PATH) os.execute("echo 1 > " .. USB_PATH) os.execute("sleep 2") end -- read a line from rs232 with timeout function rs232_readline () local s = "" repeat local e, d, sz = p:read(1, READ_TIMEOUT, 1) assert(e == rs232.RS232_ERR_NOERROR, "Error reading from port") s = s .. d until d == '\n' return s end function get_status () p:write("o\n") stat = rs232_readline() -- print("stat: ", trim(stat)) return string.gmatch(stat, 'o(%d+)x(%d+)')() end function get_rfid () p:write("r\n") return string.gmatch(rs232_readline(), 'r(%w+)')() end function set_enabled (enabled) if enabled then p:write("e\n") else p:write("d\n") end end function dblog (user, odometer, evtype) nr = conn:execute("INSERT INTO log (time, user_key_id, odometer, evtype) VALUES (" .. os.time() .. ",\"" .. conn:escape(user) .. "\", " .. odometer .. ",\"" .. evtype .. "\")") assert(nr == 1, "Rows written to db not 1") conn:commit() journal_dirty = true end function display_idle (odo) display("Tag your fob...", "Odo: " .. odo .. " s") end function display_active (odo_start, odo) print(odo_start, odo) local minutes = math.floor((odo-odo_start)/60) local seconds = (odo-odo_start) % 60 display(" Time: Cost:", string.format("%3.0f",minutes) .. ":" .. string.format("%02.0f",seconds) .. " $" .. string.format("%3.2f", COST_PER_MIN * (odo-odo_start)/60)) end function is_valid_user(userid) return (active_keys == nil or active_keys[userid] ~= nil) end local isEnabled = false local user, odo_start local time_last_update = os.time() local time_last_jrnl = 0 journal_dirty = true try(function() update_keys() end, function(e) logger("Could not load key list") print(e) end) try(function() open_port() set_enabled(false) end, function(e) logger("Failed to open port: ", e) end) while true do local odo, scanned try(function() odo, scanned = get_status() assert(odo ~= nil and scanned ~= nil, "Status is invalid") if os.time() - time_last_update > UPDATE_INTERVAL then try(function() update_keys() time_last_update = os.time() end, function(e) logger("Could not update key list") print(e) time_last_update = time_last_update + RETRY_INTERVAL end) end try(function() if (journal_dirty and os.time() - time_last_jrnl > RETRY_INTERVAL) then upload_journal() journal_dirty = false -- we don't update time_last_jrnl unless there is a failure end end, function(e) time_last_jrnl = os.time() logger("Failed to upload journal") print("Failed to upload journal: ", e) end) set_enabled(isEnabled) if isEnabled then if scanned == "1" then -- sign out dblog(user, odo, "logout") user2 = get_rfid() if (user2 ~= user) then logger("Logged out user " .. user) -- last person forgot to tag out if is_valid_user(user2) then logger("Logged in user " .. user2) dblog(user2, odo, "login") user = user2 display("Welcome new user") os.execute("sleep 1") odo_start = odo else logger("Attempted login from inactive fob: " .. user2) display("Fob not active") set_enabled(false) isEnabled = false os.execute("sleep 5") end else -- same person tagged out logger("Logged out user " .. user) set_enabled(false) display("Goodbye!") os.execute("sleep 5") isEnabled = false end else -- print("actv", odo_start, odo) display_active(odo_start, odo) os.execute("sleep 1") end else if scanned == "1" then -- sign in user = get_rfid() print(user) if is_valid_user(user) then logger("Logged in user " .. user) isEnabled = true set_enabled(true) dblog(user, odo, "login") odo_start = odo display("Welcome!") os.execute("sleep 2") else logger("Attempted login from inactive fob: " .. user) display("Fob not active") os.execute("sleep 5") end else display_idle(odo) os.execute("sleep 1") end end end, function(e) print("Error occurred: " .. e) local stat repeat logger("Trying to reset port") os.execute("sleep 1") try(function() if p ~= nil then p:close() end reset_usb() open_port() set_enabled(isEnabled) stat = true end, function(e) print(e); stat = nil end) until stat logger("Port reset OK") end) end
--[[ Copyright (c) 2010-2015 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Except as contained in this notice, the name(s) of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]]-- local _PATH = (...):match('^(.*[%./])[^%.%/]+$') or '' local cos, sin = math.cos, math.sin local camera = {} camera.__index = camera -- Movement interpolators (for camera locking/windowing) camera.smooth = {} function camera.smooth.none() return function(dx,dy) return dx,dy end end function camera.smooth.linear(speed) assert(type(speed) == "number", "Invalid parameter: speed = "..tostring(speed)) return function(dx,dy, s) -- normalize direction local d = math.sqrt(dx*dx+dy*dy) local dts = math.min((s or speed) * love.timer.getDelta(), d) -- prevent overshooting the goal if d > 0 then dx,dy = dx/d, dy/d end return dx*dts, dy*dts end end function camera.smooth.damped(stiffness) assert(type(stiffness) == "number", "Invalid parameter: stiffness = "..tostring(stiffness)) return function(dx,dy, s) local dts = love.timer.getDelta() * (s or stiffness) return dx*dts, dy*dts end end local function new(x,y, zoom, rot, smoother) x,y = x or love.graphics.getWidth()/2, y or love.graphics.getHeight()/2 zoom = zoom or 1 rot = rot or 0 smoother = smoother or camera.smooth.none() -- for locking, see below return setmetatable({x = x, y = y, scale = zoom, rot = rot, smoother = smoother}, camera) end function camera:lookAt(x,y) self.x, self.y = x, y return self end function camera:move(dx,dy) self.x, self.y = self.x + dx, self.y + dy return self end function camera:position() return self.x, self.y end function camera:rotate(phi) self.rot = self.rot + phi return self end function camera:rotateTo(phi) self.rot = phi return self end function camera:zoom(mul) self.scale = self.scale * mul return self end function camera:zoomTo(zoom) self.scale = zoom return self end function camera:attach(x,y,w,h, noclip) x,y = x or 0, y or 0 w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight() self._sx,self._sy,self._sw,self._sh = love.graphics.getScissor() if not noclip then love.graphics.setScissor(x,y,w,h) end local cx,cy = x+w/2, y+h/2 love.graphics.push() love.graphics.translate(cx, cy) love.graphics.scale(self.scale) love.graphics.rotate(self.rot) love.graphics.translate(-self.x, -self.y) end function camera:detach() love.graphics.pop() love.graphics.setScissor(self._sx,self._sy,self._sw,self._sh) end function camera:draw(...) local x,y,w,h,noclip,func local nargs = select("#", ...) if nargs == 1 then func = ... elseif nargs == 5 then x,y,w,h,func = ... elseif nargs == 6 then x,y,w,h,noclip,func = ... else error("Invalid arguments to camera:draw()") end self:attach(x,y,w,h,noclip) func() self:detach() end -- world coordinates to camera coordinates function camera:cameraCoords(x,y, ox,oy,w,h) ox, oy = ox or 0, oy or 0 w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight() -- x,y = ((x,y) - (self.x, self.y)):rotated(self.rot) * self.scale + center local c,s = cos(self.rot), sin(self.rot) x,y = x - self.x, y - self.y x,y = c*x - s*y, s*x + c*y return x*self.scale + w/2 + ox, y*self.scale + h/2 + oy end -- camera coordinates to world coordinates function camera:worldCoords(x,y, ox,oy,w,h) ox, oy = ox or 0, oy or 0 w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight() -- x,y = (((x,y) - center) / self.scale):rotated(-self.rot) + (self.x,self.y) local c,s = cos(-self.rot), sin(-self.rot) x,y = (x - w/2 - ox) / self.scale, (y - h/2 - oy) / self.scale x,y = c*x - s*y, s*x + c*y return x+self.x, y+self.y end function camera:mousePosition(ox,oy,w,h) local mx,my = love.mouse.getPosition() return self:worldCoords(mx,my, ox,oy,w,h) end -- camera scrolling utilities function camera:lockX(x, smoother, ...) local dx, dy = (smoother or self.smoother)(x - self.x, self.y, ...) self.x = self.x + dx return self end function camera:lockY(y, smoother, ...) local dx, dy = (smoother or self.smoother)(self.x, y - self.y, ...) self.y = self.y + dy return self end function camera:lockPosition(x,y, smoother, ...) return self:move((smoother or self.smoother)(x - self.x, y - self.y, ...)) end function camera:lockWindow(x, y, x_min, x_max, y_min, y_max, smoother, ...) -- figure out displacement in camera coordinates x,y = self:cameraCoords(x,y) local dx, dy = 0,0 if x < x_min then dx = x - x_min elseif x > x_max then dx = x - x_max end if y < y_min then dy = y - y_min elseif y > y_max then dy = y - y_max end -- transform displacement to movement in world coordinates local c,s = cos(-self.rot), sin(-self.rot) dx,dy = (c*dx - s*dy) / self.scale, (s*dx + c*dy) / self.scale -- move self:move((smoother or self.smoother)(dx,dy,...)) end -- the module return setmetatable({new = new, smooth = camera.smooth}, {__call = function(_, ...) return new(...) end})
require "core/game/game" require "main" if not init then init = GameBase.init end if not update then update = GameBase.update end if not render then render = GameBase.render end if not shutdown then shutdown = GameBase.shutdown end
function os.capture(cmd, raw) local f = assert(io.popen(cmd, 'r')) local s = assert(f:read('*a')) f:close() if (raw) then return s end s = string.gsub(s, '^%s+', '') s = string.gsub(s, '%s+$', '') s = string.gsub(s, '[\n\r]+', ' ') return s end function preinst() local out = os.capture("ls", 1) out = out .. "\n" out = out .. " pre-install script finished" return true, out end function postinst() local out = "Post installed script called" return true, out end
local M = {} function M.getChildrenGraph(node) local name = '' if node.getName then name = node:getName() end local ret = {} if name == '' then name = tostring(node['.classname']) .. ' | ' .. tostring(node) end if node.getChildren then ret = { name = name, node = node, children = {} } for _, v in ipairs(node:getChildren()) do table.insert(ret.children, M.getChildrenGraph(v)) end end return ret end function M.getChildrenWithName(node, t) t = t or {} local name = '' if node.getName then name = node:getName() --return end --name = node:getName() if name == '' then name = tostring(node['.classname']) .. ' | ' .. tostring(node) end if node.getChildren then t[name] = node for _, v in ipairs(node:getChildren()) do M.getChildrenWithName(v, t) end end return t end return M
function test_hash512(str) result = chainhelper:hash512(str) chainhelper:log("[test hash512]" .. str .. "--- hash512 --->" .. result) end
local ffi = require 'ffi' local torch = require 'torch' local utils = require 'pcl.utils' local pcl = require 'pcl.PointTypes' local KdTree = torch.class('pcl.KdTree', pcl) local func_by_type = {} local function init() local KdTreeFLANN_method_names = { 'new', 'clone', 'delete', 'setInputCloud', 'getEpsilon', 'setEpsilon', 'setMinPts', 'getMinPts', 'setSortedResults', 'assign', 'nearestKSearch', 'radiusSearch' } for k,v in pairs(utils.type_key_map) do func_by_type[k] = utils.create_typed_methods("pcl_KdTreeFLANN_TYPE_KEY_", KdTreeFLANN_method_names, v) end func_by_type[pcl.FPFHSignature33] = utils.create_typed_methods("pcl_KdTreeFLANN_TYPE_KEY_", KdTreeFLANN_method_names, 'FPFHSignature33') func_by_type[pcl.VFHSignature308] = utils.create_typed_methods("pcl_KdTreeFLANN_TYPE_KEY_", KdTreeFLANN_method_names, 'VFHSignature308') end init() function KdTree:__init(pointType, sorted) if type(pointType) == 'boolean' then sorted = pointType pointType = pcl.PointXYZ end sorted = sorted or true pointType = pcl.pointType(pointType) rawset(self, 'f', func_by_type[pointType]) self.pointType = pointType if type(sorted) == 'boolean' then self.o = self.f.new(sorted) elseif type(sorted) == 'cdata' then self.o = sorted end end function KdTree:cdata() return self.o end function KdTree:clone() local clone = self.f.clone(self.o) return KdTree.new(self.pointType, clone) end function KdTree:setInputCloud(cloud, indices) self.f.setInputCloud(self.o, cloud:cdata(), utils.cdata(indices)) end function KdTree:getEpsilon() return self.f.getEpsilon(self.o) end function KdTree:setEpsilon(eps) self.f.setEpsilon(self.o, eps) end function KdTree:setMinPts(value) self.f.setMinPts(self.o, value) end function KdTree:getMinPts() return self.f.getMinPts(self.o) end function KdTree:setSortedResults(sorted) self.f.setSortedResults(self.o, sorted) end function KdTree:set(other) self.f.assign(self.o, other:cdata()) return self end function KdTree:nearestKSearch(point, k, indices, squaredDistances) return self.f.nearestKSearch(self.o, point, k, utils.cdata(indices), utils.cdata(squaredDistances)) end function KdTree:radiusSearch(point, radius, indices, squaredDistances, max_nn) return self.f.radiusSearch(self.o, point, radius, utils.cdata(indices), utils.cdata(squaredDistances), max_nn or 0) end
----------------------------------------- -- ID: 5583 -- Item: plate_of_patlican_salata_+1 -- Food Effect: 4Hrs, All Races ----------------------------------------- -- Agility 5 -- Vitality -2 -- Evasion +7 -- hHP +3 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onItemCheck(target) local result = 0 if target:hasStatusEffect(tpz.effect.FOOD) or target:hasStatusEffect(tpz.effect.FIELD_SUPPORT_FOOD) then result = tpz.msg.basic.IS_FULL end return result end function onItemUse(target) target:addStatusEffect(tpz.effect.FOOD, 0, 0, 14400, 5583) end function onEffectGain(target, effect) target:addMod(tpz.mod.AGI, 5) target:addMod(tpz.mod.VIT, -2) target:addMod(tpz.mod.EVA, 7) target:addMod(tpz.mod.HPHEAL, 3) end function onEffectLose(target, effect) target:delMod(tpz.mod.AGI, 5) target:delMod(tpz.mod.VIT, -2) target:delMod(tpz.mod.EVA, 7) target:delMod(tpz.mod.HPHEAL, 3) end
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- Description: unit test file for iptable ------------------------------------------------------------------------------- package.cpath = "./build/?.so;" describe("iptable.reverse(pfx)", function() expose("module: ", function() iptable = require("iptable"); assert.is_truthy(iptable); it("reverses ipv4", function() assert.equal("0.0.0.0", iptable.reverse("0.0.0.0")) assert.equal("255.255.255.255", iptable.reverse("255.255.255.255")) assert.equal("4.3.2.1", iptable.reverse("1.2.3.4")) assert.equal("14.13.12.11", iptable.reverse("11.12.13.14")) assert.equal("114.113.112.111", iptable.reverse("111.112.113.114")) end) it("reverses ipv6", function() -- NOTE: ipv6 reversal is at nibble assert.equal("::", iptable.reverse("::")) assert.equal("2001:aacc::", iptable.reverse("::ccaa:1002")) end) it("returns reversed address, mlen and af", function() local ip,mlen,af ip, mlen, af = iptable.reverse("11.12.13.14/24") assert.equal("14.13.12.11", ip) assert.equal(24, mlen) assert.equal(iptable.AF_INET, af) ip, mlen, af = iptable.reverse("::acdc:1976/32") assert.equal("6791:cdca::", ip) assert.equal(32, mlen) assert.equal(iptable.AF_INET6, af) -- ipv4 in ipv6? ip, mlen, af = iptable.reverse("1112:1314:1516:1718:1920:2122:2324:2526/128") assert.equal("6252:4232:2212:291:8171:6151:4131:2111", ip) assert.equal(128, mlen) assert.equal(iptable.AF_INET6, af) end) end) end)
while true do if Hexus.GetKey("E") then game.Players.LocalPlayer.Character.Humanoid:ChangeState(11) wait(0.1) end end
C_SocialQueue = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.GetAllGroups) ---@param allowNonJoinable boolean ---@param allowNonQueuedGroups boolean ---@return string[] groupGUIDs function C_SocialQueue.GetAllGroups(allowNonJoinable, allowNonQueuedGroups) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.GetConfig) ---@return SocialQueueConfig config function C_SocialQueue.GetConfig() end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.GetGroupForPlayer) ---@param playerGUID string ---@return string groupGUID ---@return boolean isSoloQueueParty function C_SocialQueue.GetGroupForPlayer(playerGUID) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.GetGroupInfo) ---@param groupGUID string ---@return boolean canJoin ---@return number numQueues ---@return boolean needTank ---@return boolean needHealer ---@return boolean needDamage ---@return boolean isSoloQueueParty ---@return boolean questSessionActive ---@return string leaderGUID function C_SocialQueue.GetGroupInfo(groupGUID) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.GetGroupMembers) ---@param groupGUID string ---@return SocialQueuePlayerInfo[] groupMembers function C_SocialQueue.GetGroupMembers(groupGUID) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.GetGroupQueues) ---@param groupGUID string ---@return SocialQueueGroupQueueInfo[] queues function C_SocialQueue.GetGroupQueues(groupGUID) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.RequestToJoin) ---@param groupGUID string ---@param applyAsTank boolean ---@param applyAsHealer boolean ---@param applyAsDamage boolean ---@return boolean requestSuccessful function C_SocialQueue.RequestToJoin(groupGUID, applyAsTank, applyAsHealer, applyAsDamage) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_SocialQueue.SignalToastDisplayed) ---@param groupGUID string ---@param priority number function C_SocialQueue.SignalToastDisplayed(groupGUID, priority) end ---@class SocialQueueConfig ---@field TOASTS_DISABLED boolean ---@field TOAST_DURATION number ---@field DELAY_DURATION number ---@field QUEUE_MULTIPLIER number ---@field PLAYER_MULTIPLIER number ---@field PLAYER_FRIEND_VALUE number ---@field PLAYER_GUILD_VALUE number ---@field THROTTLE_INITIAL_THRESHOLD number ---@field THROTTLE_DECAY_TIME number ---@field THROTTLE_PRIORITY_SPIKE number ---@field THROTTLE_MIN_THRESHOLD number ---@field THROTTLE_PVP_PRIORITY_NORMAL number ---@field THROTTLE_PVP_PRIORITY_LOW number ---@field THROTTLE_PVP_HONOR_THRESHOLD number ---@field THROTTLE_LFGLIST_PRIORITY_DEFAULT number ---@field THROTTLE_LFGLIST_PRIORITY_ABOVE number ---@field THROTTLE_LFGLIST_PRIORITY_BELOW number ---@field THROTTLE_LFGLIST_ILVL_SCALING_ABOVE number ---@field THROTTLE_LFGLIST_ILVL_SCALING_BELOW number ---@field THROTTLE_RF_PRIORITY_ABOVE number ---@field THROTTLE_RF_ILVL_SCALING_ABOVE number ---@field THROTTLE_DF_MAX_ITEM_LEVEL number ---@field THROTTLE_DF_BEST_PRIORITY number ---@class SocialQueueGroupQueueInfo ---@field clientID number ---@field eligible boolean ---@field needTank boolean ---@field needHealer boolean ---@field needDamage boolean ---@field isAutoAccept boolean ---@field queueData QueueSpecificInfo ---@class SocialQueuePlayerInfo ---@field guid string ---@field clubId string|nil
--[[ BitFields - efficient bit packing 1.0 by: Chris This is a small library for handling efficient bit packing. It allows you to create bitfield objects, which are effectively infinite-sized sparse arrays of bits. See Bitfields_HowTo for usage instructions, and Bitfields_Sample for some sample code using the library. Setup: Any file that wants to use this code will need to `require()` the _BitFields file. After that, it is just a matter of invoking the functions from code. Functions: (static) BitFields.New() ---------------------------- Creates a new Bitfield object (static) BitFields.New(array) ---------------------------- Creates a new Bitfield object from the specified array. The array needs to be a table with integers for keys and values. This is most often used in conjunction with the Bitfield:GetRawData() function. BitField.GetBit(index) ---------------------------- Returns the value of the indexed bit in the array, as a boolean. Arrays are assumed to be of infinite size, so this will always return some value, for any positive input. BitField.SetBit(index, value) ---------------------------- Sets the value of the indexed bit to the specified value. n must be positive, but otherwise, there is no limit on the index. BitField.GetRawData() ---------------------------- Returns an array of integers that represents the bitfield. This can be saved/ loaded via the storage API, and turned back into a bitfield using the constructor. --]]
return { hand_left = { { {-1, 41}, {8, 35}, {5, 38}, {-3, 37}, {0, 0}, {-1, 41}, {-1, 41}, {10, 40}, {7, 38}, {7, 34}, {1, 41}, {-7, 38}, }, { {3, 39}, {9, 37}, {6, 39}, {-8, 38}, {0, 0}, {3, 39}, {3, 39}, {-6, 38}, {-9, 38}, {-9, 33}, {0, 41}, {-4, 38}, }, { {10, 30}, {0, 0}, {0, 0}, {11, 38}, {11, 38}, {-19, 46}, {10, 30}, {12, 43}, {4, 38}, {4, 38}, {4, 38}, {4, 38}, }, { {11, 30}, {0, 0}, {0, 0}, {10, 37}, {10, 37}, {15, 38}, {11, 30}, {9, 34}, {11, 35}, {14, 34}, {11, 35}, {16, 35}, }, { {3, 26}, {3, 26}, {3, 26}, {3, 26}, {0, 0}, {3, 26}, {12, 31}, {13, 28}, {13, 28}, {3, 33}, {2, 45}, {10, 40}, }, { {-6, 31}, {-6, 31}, {-6, 31}, {-6, 31}, {0, 0}, {-6, 31}, {-3, 31}, {-3, 28}, {-3, 28}, {4, 33}, {8, 45}, {0, 0}, }, { {-1, 32}, {-1, 32}, {-1, 32}, {-1, 32}, {0, 0}, {-1, 32}, {-1, 41}, {-1, 41}, {-1, 40}, {-1, 41}, {0, 0}, {-1, 41}, }, { {9, 33}, {9, 33}, {9, 32}, {9, 33}, {0, 0}, {9, 33}, {9, 41}, {9, 41}, {9, 40}, {9, 41}, {0, 0}, {9, 41}, }, { {-1, 41}, {-1, 41}, {-1, 41}, {-1, 41}, {-1, 41}, {-1, 41}, {-1, 41}, {-1, 41}, {4, 38}, {8, 35}, {5, 38}, {-2, 41}, }, { {12, 30}, {12, 30}, {12, 30}, {12, 30}, {9, 43}, {9, 43}, {9, 43}, {9, 42}, {11, 35}, {10, 36}, {10, 35}, {11, 36}, }, { {4, 32}, {-6, 32}, {6, 32}, {8, 32}, {4, 32}, {-6, 31}, {6, 32}, {8, 31}, {4, 32}, {-6, 32}, {6, 31}, {8, 32}, }, { {14, 33}, {14, 33}, {14, 33}, {14, 33}, {14, 33}, {14, 32}, {14, 33}, {14, 32}, {14, 33}, {14, 33}, {14, 33}, {14, 33}, }, { {-1, 46}, {-2, 46}, {-5, 46}, {-2, 46}, {7, 45}, {6, 43}, {8, 43}, {7, 43}, {-8, 43}, {0, 45}, {-9, 35}, {0, 0}, }, { {10, 46}, {9, 46}, {7, 46}, {9, 46}, {-9, 38}, {-10, 33}, {-9, 33}, {-9, 33}, {10, 41}, {5, 45}, {12, 33}, {0, 0}, }, { {-7, 43}, {-7, 43}, {0, 0}, {0, 0}, {-8, 44}, {-8, 44}, {-8, 44}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, }, { {10, 41}, {10, 41}, {0, 0}, {0, 0}, {9, 42}, {6, 41}, {9, 42}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, }, }, hand_right = { { {-4, 39}, {-10, 37}, {-7, 39}, {7, 37}, {0, 0}, {-4, 39}, {-4, 39}, {-12, 40}, {-9, 34}, {-9, 38}, {-1, 41}, {3, 38}, }, { {0, 41}, {-9, 35}, {-6, 38}, {2, 37}, {0, 0}, {0, 41}, {0, 41}, {4, 38}, {7, 33}, {7, 38}, {-2, 41}, {6, 38}, }, { {-13, 30}, {0, 0}, {0, 0}, {-11, 37}, {-11, 37}, {-16, 38}, {-12, 30}, {-9, 34}, {-12, 35}, {-15, 34}, {-12, 35}, {-17, 35}, }, { {-10, 30}, {0, 0}, {0, 0}, {-12, 38}, {-12, 38}, {18, 45}, {-10, 30}, {-12, 43}, {-5, 38}, {-5, 38}, {-5, 38}, {-5, 38}, }, { {5, 31}, {5, 31}, {5, 31}, {5, 31}, {0, 0}, {5, 31}, {-4, 31}, {-5, 28}, {-5, 28}, {-5, 33}, {-9, 45}, {-12, 40}, }, { {-4, 26}, {-4, 26}, {-4, 26}, {-4, 26}, {0, 0}, {-4, 26}, {11, 31}, {11, 28}, {11, 28}, {-4, 33}, {-3, 45}, {0, 0}, }, { {-10, 33}, {-10, 33}, {-10, 33}, {-10, 33}, {0, 0}, {-10, 33}, {-10, 41}, {-10, 41}, {-10, 40}, {-10, 41}, {0, 0}, {-10, 41}, }, { {0, 32}, {0, 32}, {0, 31}, {0, 32}, {0, 0}, {0, 32}, {0, 41}, {0, 41}, {0, 40}, {0, 41}, {0, 0}, {0, 41}, }, { {-13, 30}, {-13, 30}, {-13, 30}, {-13, 30}, {-10, 43}, {-10, 43}, {-10, 43}, {-10, 43}, {-12, 35}, {-11, 36}, {-11, 35}, {-12, 36}, }, { {0, 41}, {0, 41}, {0, 41}, {0, 41}, {0, 41}, {0, 41}, {0, 41}, {0, 40}, {-5, 38}, {-9, 35}, {-6, 38}, {1, 41}, }, { {-15, 33}, {-15, 33}, {-15, 33}, {-15, 33}, {-15, 33}, {-15, 32}, {-15, 33}, {-15, 32}, {-15, 33}, {-15, 33}, {-15, 33}, {-15, 33}, }, { {-5, 32}, {5, 32}, {-7, 32}, {-9, 32}, {-5, 32}, {5, 31}, {-7, 32}, {-9, 31}, {-5, 32}, {5, 32}, {-7, 31}, {-9, 32}, }, { {-11, 46}, {-10, 46}, {-8, 46}, {-10, 46}, {-9, 44}, {-8, 43}, {-8, 45}, {-7, 43}, {-10, 41}, {-5, 45}, {-12, 34}, {0, 0}, }, { {0, 46}, {1, 46}, {4, 46}, {1, 46}, {8, 33}, {8, 33}, {8, 38}, {9, 33}, {8, 43}, {0, 45}, {10, 35}, {0, 0}, }, { {-11, 41}, {-11, 41}, {0, 0}, {0, 0}, {-10, 42}, {-7, 41}, {-10, 42}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, }, { {7, 43}, {7, 43}, {0, 0}, {0, 0}, {7, 44}, {7, 44}, {7, 44}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, }, }, }
function main_character_select() love.audio.stop() stop_the_music() bg = charselect local map = {} -- ------------------------------------------------------- -- 2P Network VS -- ------------------------------------------------------- if character_select_mode == "2p_net_vs" then local opponent_connected = false local retries, retry_limit = 0, 250 while not global_initialize_room_msg and retries < retry_limit do for _,msg in ipairs(this_frame_messages) do if msg.create_room or msg.character_select or msg.spectate_request_granted then global_initialize_room_msg = msg end end gprint("Waiting for room initialization...", 300, 280) coroutine.yield() if not do_messages() then return main_dumb_transition, {main_select_mode, "Disconnected from server.\n\nReturning to main menu...", 60, 300} end retries = retries + 1 end if not global_initialize_room_msg then return main_dumb_transition, {main_select_mode, "Room initialization failed.\n\nReturning to main menu", 60, 300} end msg = global_initialize_room_msg global_initialize_room_msg = nil if msg.ratings then global_current_room_ratings = msg.ratings end global_my_state = msg.a_menu_state global_op_state = msg.b_menu_state if msg.your_player_number then my_player_number = msg.your_player_number elseif currently_spectating then my_player_number = 1 elseif my_player_number and my_player_number ~= 0 then print("We assumed our player number is still "..my_player_number) else error("We never heard from the server as to what player number we are") print("Error: The server never told us our player number. Assuming it is 1") my_player_number = 1 end if msg.op_player_number then op_player_number = msg.op_player_number or op_player_number elseif currently_spectating then op_player_number = 2 elseif op_player_number and op_player_number ~= 0 then print("We assumed op player number is still "..op_player_number) else error("We never heard from the server as to what player number we are") print("Error: The server never told us our player number. Assuming it is 2") op_player_number = 2 end if msg.win_counts then update_win_counts(msg.win_counts) end if msg.replay_of_match_so_far then replay_of_match_so_far = msg.replay_of_match_so_far end if msg.ranked then match_type = "Ranked" match_type_message = "" else match_type = "Casual" end if currently_spectating then P1 = {panel_buffer="", gpanel_buffer=""} print("we reset P1 buffers at start of main_character_select()") end P2 = {panel_buffer="", gpanel_buffer=""} print("we reset P2 buffers at start of main_character_select()") print("current_server_supports_ranking: "..tostring(current_server_supports_ranking)) local cursor,op_cursor,X,Y if current_server_supports_ranking then map = { {"match type desired", "match type desired", "match type desired", "level", "level", "leave", "ready"}, {"random", "yoshi"}, } else map = { {"level", "level", "level", "level", "level", "leave", "ready"}, {"random", "yoshi"}, } end end -- ------------------------------------------------------- -- 1P Solo VS -- ------------------------------------------------------- if character_select_mode == "1p_vs_yourself" then map = { {"level", "level", "level", "level", "level", "leave", "ready"}, {"random", "yoshi"}, } end -- ------------------------------------------------------- -- what the fuck -- ------------------------------------------------------- local op_state = global_op_state or {character="yoshi", level=5, cursor="level", ready=false} global_op_state = nil cursor,op_cursor,X,Y = {1,1},{1,1},5,7 local k = K[1] local up,down,left,right = {-1,0}, {1,0}, {0,-1}, {0,1} my_state = global_my_state or {character=config.character, level=config.level, cursor="level", ready=false} global_my_state = nil my_win_count = my_win_count or 0 local prev_state = shallowcpy(my_state) op_win_count = op_win_count or 0 -- ------------------------------------------------------- -- 2P Network VS again -- ------------------------------------------------------- if character_select_mode == "2p_net_vs" then global_current_room_ratings = global_current_room_ratings or {{new=0,old=0,difference=0},{new=0,old=0,difference=0}} my_expected_win_ratio = nil op_expected_win_ratio = nil print("my_player_number = "..my_player_number) print("op_player_number = "..op_player_number) if global_current_room_ratings[my_player_number].new and global_current_room_ratings[my_player_number].new ~= 0 and global_current_room_ratings[op_player_number] and global_current_room_ratings[op_player_number].new ~= 0 then my_expected_win_ratio = (100*round(1/(1+10^ ((global_current_room_ratings[op_player_number].new -global_current_room_ratings[my_player_number].new) /RATING_SPREAD_MODIFIER)) ,2)) op_expected_win_ratio = (100*round(1/(1+10^ ((global_current_room_ratings[my_player_number].new -global_current_room_ratings[op_player_number].new) /RATING_SPREAD_MODIFIER)) ,2)) end end -- ------------------------------------------------------- -- WHAT IS HAPPENING WHY IS THIS A DIFFERENT BLOCK -- ------------------------------------------------------- if character_select_mode == "2p_net_vs" then match_type = match_type or "Casual" if match_type == "" then match_type = "Casual" end end -- ------------------------------------------------------- -- probably something for the character select menu -- ------------------------------------------------------- match_type_message = match_type_message or "" local selected = false local active_str = "level" local selectable = {level=true, ready=true} local function move_cursor(direction) local dx,dy = unpack(direction) local can_x,can_y = wrap(1, cursor[1]+dx, X), wrap(1, cursor[2]+dy, Y) while can_x ~= cursor[1] or can_y ~= cursor[2] do if map[can_x] and map[can_x][can_y] and map[can_x][can_y] ~= map[cursor[1]][cursor[2]] then break end can_x,can_y = wrap(1, can_x+dx, X), wrap(1, can_y+dy, Y) end cursor[1],cursor[2] = can_x,can_y end local function do_leave() my_win_count = 0 op_win_count = 0 write_char_sel_settings_to_file() return json_send({leave_room=true}) end -- ------------------------------------------------------- -- why -- ------------------------------------------------------- local name_to_xy = {} print("character_select_mode = "..(character_select_mode or "nil")) print("map[1][1] = "..(map[1][1] or "nil")) for i=1,X do for j=1,Y do if map[i] and map[i][j] then name_to_xy[map[i][j]] = {i,j} end end end local function draw_button(x,y,w,h,str) local menu_width = Y*100 local menu_height = X*80 local spacing = 8 local x_padding = math.floor((819-menu_width)/2) local y_padding = math.floor((612-menu_height)/2) set_color(unpack(colors.white)) render_x = x_padding+(y-1)*100+spacing render_y = y_padding+(x-1)*100+spacing button_width = w*100-2*spacing button_height = h*100-2*spacing grectangle("line", render_x, render_y, button_width, button_height) if IMG_character_icons[str] then local orig_w, orig_h = IMG_character_icons[str]:getDimensions() menu_draw(IMG_character_icons[str], render_x, render_y, 0, button_width/orig_w, button_height/orig_h ) end local y_add,x_add = 10,30 local pstr = str:gsub("^%l", string.upper) -- why is this a button in here if str == "level" then if selected and active_str == "level" then pstr = my_name.."'s level: < "..my_state.level.." >" else pstr = my_name.."'s level: "..my_state.level end if character_select_mode == "2p_net_vs" then pstr = pstr .. "\n"..op_name.."'s level: "..op_state.level end y_add,x_add = 9,180 end -- whY ARE YOU DOING THIS if str == "match type desired" then local my_type_selection, op_type_selection = "[casual] ranked", "[casual] ranked" if my_state.ranked then my_type_selection = " casual [ranked]" end if op_state.ranked then op_type_selection = " casual [ranked]" end pstr = my_name..": "..my_type_selection.."\n"..op_name..": "..op_type_selection y_add,x_add = 9,180 end -- oh my god why are you comparing the cursor to the string of the button -- why -- aaaaag if my_state.cursor == str then pstr = pstr.."\n"..my_name end if op_state and op_name and op_state.cursor == str then pstr = pstr.."\n"..op_name end local cur_blink_frequency = 4 local cur_pos_change_frequency = 8 local player_num local draw_cur_this_frame = false local cursor_frame = 1 -- ------------------------------------------------------- -- special bullshit for 2P modes -- ------------------------------------------------------- if (character_select_mode == "2p_net_vs" or character_select_mode == "2p_local_vs") and op_state and op_state.cursor and (op_state.cursor == str or op_state.cursor == str) then player_num = 2 if op_state.ready then if (math.floor(menu_clock/cur_blink_frequency)+player_num)%2+1 == player_num then draw_cur_this_frame = true cursor_frame = 1 else draw_cur_this_frame = false end else draw_cur_this_frame = true cursor_frame = (math.floor(menu_clock/cur_pos_change_frequency)+player_num)%2+1 cur_img = IMG_char_sel_cursors[player_num][cursor_frame] end if draw_cur_this_frame then cur_img = IMG_char_sel_cursors[player_num][cursor_frame] cur_img_left = IMG_char_sel_cursor_halves.left[player_num][cursor_frame] cur_img_right = IMG_char_sel_cursor_halves.right[player_num][cursor_frame] local cur_img_w, cur_img_h = cur_img:getDimensions() local cursor_scale = (button_height+(spacing*2))/cur_img_h menu_drawq(cur_img, cur_img_left, render_x-spacing, render_y-spacing, 0, cursor_scale , cursor_scale) menu_drawq(cur_img, cur_img_right, render_x+button_width+spacing-cur_img_w*cursor_scale/2, render_y-spacing, 0, cursor_scale, cursor_scale) end end -- WHAT IS THIS????????????? -- WHY IS THIS "...AND ( A == B or A == B)" -- WHY WOULD YOU DO THIS????????? if my_state and my_state.cursor and (my_state.cursor == str or my_state.cursor == str) then player_num = 1 if my_state.ready then if (math.floor(menu_clock/cur_blink_frequency)+player_num)%2+1 == player_num then draw_cur_this_frame = true cursor_frame = 1 else draw_cur_this_frame = false end else draw_cur_this_frame = true cursor_frame = (math.floor(menu_clock/cur_pos_change_frequency)+player_num)%2+1 cur_img = IMG_char_sel_cursors[player_num][cursor_frame] end if draw_cur_this_frame then cur_img = IMG_char_sel_cursors[player_num][cursor_frame] cur_img_left = IMG_char_sel_cursor_halves.left[player_num][cursor_frame] cur_img_right = IMG_char_sel_cursor_halves.right[player_num][cursor_frame] local cur_img_w, cur_img_h = cur_img:getDimensions() local cursor_scale = (button_height+(spacing*2))/cur_img_h menu_drawq(cur_img, cur_img_left, render_x-spacing, render_y-spacing, 0, cursor_scale , cursor_scale) menu_drawq(cur_img, cur_img_right, render_x+button_width+spacing-cur_img_w*cursor_scale/2, render_y-spacing, 0, cursor_scale, cursor_scale) end end gprint(pstr, render_x+6, render_y+y_add) end -- why is that function called draw_button when it has so much fucking logic in it -- what is going on. why would you do this. why. why. whyyyyyyy print("got to LOC before net_vs_room character select loop") menu_clock = 0 while true do if character_select_mode == "2p_net_vs" then for _,msg in ipairs(this_frame_messages) do if msg.win_counts then update_win_counts(msg.win_counts) end if msg.menu_state then if currently_spectating then if msg.player_number == 2 then op_state = msg.menu_state elseif msg.player_number == 1 then my_state = msg.menu_state end else op_state = msg.menu_state end end if msg.ranked_match_approved then match_type = "Ranked" match_type_message = "" if msg.caveats then match_type_message = match_type_message..(msg.caveats[1] or "") end elseif msg.ranked_match_denied then match_type = "Casual" match_type_message = "Not ranked. " if msg.reasons then match_type_message = match_type_message..(msg.reasons[1] or "Reason unknown") end end if msg.leave_room then my_win_count = 0 op_win_count = 0 write_char_sel_settings_to_file() return main_net_vs_lobby end if msg.match_start or replay_of_match_so_far then local fake_P1 = P1 print("currently_spectating: "..tostring(currently_spectating)) local fake_P2 = P2 local p1char = stages[msg.player_settings.character] and msg.player_settings.character or characters[1] local p2char = stages[msg.opponent_settings.character] and msg.opponent_settings.character or characters[1] P1 = Playfield(1, "vs", msg.player_settings.level, p1char, msg.player_settings.player_number) P2 = Playfield(2, "vs", msg.opponent_settings.level, p2char, msg.opponent_settings.player_number) if currently_spectating then P1.panel_buffer = fake_P1.panel_buffer P1.gpanel_buffer = fake_P1.gpanel_buffer end P2.panel_buffer = fake_P2.panel_buffer P2.gpanel_buffer = fake_P2.gpanel_buffer P1.garbage_target = P2 P2.garbage_target = P1 P2.pos_x = 172 P2.score_x = 410 replay.vs = {P="",O="",I="",Q="",R="",in_buf="", P1_level=P1.level,P2_level=P2.level, P1_name=my_name, P2_name=op_name, P1_char=P1.character,P2_char=P2.character, ranked=msg.ranked, do_countdown=true} print("stupid debug bullshit: ", P1.character, P2.character) if currently_spectating and replay_of_match_so_far then --we joined a match in progress replay.vs = replay_of_match_so_far.vs P1.input_buffer = replay_of_match_so_far.vs.in_buf P1.panel_buffer = replay_of_match_so_far.vs.P P1.gpanel_buffer = replay_of_match_so_far.vs.Q P2.input_buffer = replay_of_match_so_far.vs.I P2.panel_buffer = replay_of_match_so_far.vs.O P2.gpanel_buffer = replay_of_match_so_far.vs.R if replay.vs.ranked then match_type = "Ranked" match_type_message = "" else match_type = "Casual" end replay_of_match_so_far = nil P1.play_to_end = true --this makes foreign_run run until caught up P2.play_to_end = true end if not currently_spectating then ask_for_gpanels("000000") ask_for_panels("000000") end to_print = "Game is starting!\n".."Level: "..P1.level.."\nOpponent's level: "..P2.level if P1.play_to_end or P2.play_to_end then to_print = "Joined a match in progress.\nCatching up..." end for i=1,30 do gprint(to_print .. " - " .. i, 300, 280) if not do_messages() then return main_dumb_transition, {main_select_mode, "Disconnected from server.\n\nReturning to main menu...", 60, 300} end coroutine.yield() end local game_start_timeout = 0 while P1.panel_buffer == "" or P2.panel_buffer == "" or P1.gpanel_buffer == "" or P2.gpanel_buffer == "" do --testing getting stuck here at "Game is starting" game_start_timeout = game_start_timeout + 1 print("game_start_timeout = "..game_start_timeout) print("P1.panel_buffer = "..P1.panel_buffer) print("P2.panel_buffer = "..P2.panel_buffer) print("P1.gpanel_buffer = "..P1.gpanel_buffer) print("P2.gpanel_buffer = "..P2.gpanel_buffer) gprint(to_print,300, 280) if not do_messages() then return main_dumb_transition, {main_select_mode, "Disconnected from server.\n\nReturning to main menu...", 60, 300} end coroutine.yield() if game_start_timeout > 250 then return main_dumb_transition, {main_select_mode, "game start timed out.\n This is a known bug, but you may post it in #panel-attack-bugs-features \nif you'd like.\n" .."\n".."msg.match_start = "..(tostring(msg.match_start) or "nil") .."\n".."replay_of_match_so_far = "..(tostring(replay_of_match_so_far) or "nil") .."\n".."P1.panel_buffer = "..P1.panel_buffer .."\n".."P2.panel_buffer = "..P2.panel_buffer .."\n".."P1.gpanel_buffer = "..P1.gpanel_buffer .."\n".."P2.gpanel_buffer = "..P2.gpanel_buffer, 180} end end P1:starting_state() P2:starting_state() return main_net_vs end end end -- you could just skip drawing the ranking button -- but also why is it based on the title of the button -- why is any of this a thing if current_server_supports_ranking then draw_button(1,1,2,1,"match type desired") draw_button(1,3,2,1,"level") else draw_button(1,1,4,1,"level") end draw_button(1,6,1,1,"leave") draw_button(1,7,1,1,"ready") -- can someone please explain to me what the purpose of -- "a or a" is here -- like what were you trying to accomplish -- just. why. why. whyyyyyyyyyyyyyYYYYYYYYYYYYYYY for i=2,X do for j=1,Y do if map[i] and map[i][j] then draw_button(i,j,1,1,map[i][j] or map[i][j]) else draw_button(i,j,1,1,"-") end end end -- why is rating calculation just here instead of somewhere useful local my_rating_difference = "" local op_rating_difference = "" if current_server_supports_ranking and not global_current_room_ratings[my_player_number].placement_match_progress then if global_current_room_ratings[my_player_number].difference then if global_current_room_ratings[my_player_number].difference>= 0 then my_rating_difference = "(+"..global_current_room_ratings[my_player_number].difference..") " else my_rating_difference = "("..global_current_room_ratings[my_player_number].difference..") " end end if global_current_room_ratings[op_player_number].difference then if global_current_room_ratings[op_player_number].difference >= 0 then op_rating_difference = "(+"..global_current_room_ratings[op_player_number].difference..") " else op_rating_difference = "("..global_current_room_ratings[op_player_number].difference..") " end end end local state = "" -- ok so the first thing they do here is add the name. -- if you know that why not just make local state = my_name? state = state..my_name if current_server_supports_ranking then state = state..": Rating: "..(global_current_room_ratings[my_player_number].league or "") if not global_current_room_ratings[my_player_number].placement_match_progress then state = state.." "..my_rating_difference..global_current_room_ratings[my_player_number].new elseif global_current_room_ratings[my_player_number].placement_match_progress and global_current_room_ratings[my_player_number].new and global_current_room_ratings[my_player_number].new == 0 then state = state.." "..global_current_room_ratings[my_player_number].placement_match_progress end end if character_select_mode == "2p_net_vs" or character_select_mode == "2p_local_vs" then state = state.." Wins: "..my_win_count end if current_server_supports_ranking or my_win_count + op_win_count > 0 then state = state.." Win Ratio:" end if my_win_count + op_win_count > 0 then state = state.." actual: "..(100*round(my_win_count/(op_win_count+my_win_count),2)).."%" end if current_server_supports_ranking and my_expected_win_ratio then state = state.." expected: " ..my_expected_win_ratio.."%" end state = state.." Char: "..my_state.character .." Ready: "..tostring(my_state.ready or false) -- draw 2p stuff here i guess. ok. if op_state and op_name then state = state.."\n" state = state..op_name if current_server_supports_ranking then state = state..": Rating: "..(global_current_room_ratings[op_player_number].league or "") if not global_current_room_ratings[op_player_number].placement_match_progress then state = state.." "..op_rating_difference..global_current_room_ratings[op_player_number].new elseif global_current_room_ratings[op_player_number].placement_match_progress and global_current_room_ratings[op_player_number].new and global_current_room_ratings[op_player_number].new == 0 then state = state.." "..global_current_room_ratings[op_player_number].placement_match_progress end end state = state.." Wins: "..op_win_count if current_server_supports_ranking or my_win_count + op_win_count > 0 then state = state.." Win Ratio:" end if my_win_count + op_win_count > 0 then state = state.." actual: "..(100*round(op_win_count/(op_win_count+my_win_count),2)).."%" end if current_server_supports_ranking and op_expected_win_ratio then state = state.." expected: " ..op_expected_win_ratio.."%" end state = state.." Char: "..op_state.character.." Ready: "..tostring(op_state.ready or false) --state = state.." "..json.encode(op_state) end gprint(state, 50, 50) -- ok more 2p stuff here. if character_select_mode == "2p_net_vs" then if not my_state.ranked and not op_state.ranked then match_type_message = "" end gprint(match_type, 375, 15) gprint(match_type_message,100,85) end coroutine.yield() local ret = nil variable_step(function() menu_clock = menu_clock + 1 if not currently_spectating then if menu_up(k) then if not selected then move_cursor(up) end elseif menu_down(k) then if not selected then move_cursor(down) end elseif menu_left(k) then if selected and active_str == "level" then config.level = bound(1, config.level-1, 10) end if not selected then move_cursor(left) end elseif menu_right(k) then if selected and active_str == "level" then config.level = bound(1, config.level+1, 10) end if not selected then move_cursor(right) end elseif menu_enter(k) then if selectable[active_str] then selected = not selected elseif active_str == "leave" then if character_select_mode == "2p_net_vs" then if not do_leave() then ret = {main_dumb_transition, {main_select_mode, "Error when leaving online"}} end else ret = {main_select_mode} end elseif active_str == "random" then config.character = uniformly(characters) elseif active_str == "match type desired" then config.ranked = not config.ranked else config.character = stages[active_str] and active_str or characters[1] --When we select a character, move cursor to "ready" active_str = "ready" cursor = shallowcpy(name_to_xy["ready"]) end elseif menu_escape(k) then if active_str == "leave" then if character_select_mode == "2p_net_vs" then if not do_leave() then ret = {main_dumb_transition, {main_select_mode, "Error when leaving online"}} end else ret = {main_select_mode} end end selected = false cursor = shallowcpy(name_to_xy["leave"]) end active_str = map[cursor[1]][cursor[2]] my_state = {character=config.character, level=config.level, cursor=active_str, ranked=config.ranked, ready=(selected and active_str=="ready")} if character_select_mode == "2p_net_vs" and not content_equal(my_state, prev_state) and not currently_spectating then json_send({menu_state=my_state}) end prev_state = my_state else -- (we are are spectating) if menu_escape(k) then do_leave() ret = {main_net_vs_lobby} end end end) if ret then return unpack(ret) end if my_state.ready and character_select_mode == "1p_vs_yourself" then P1 = Playfield(1, "vs", my_state.level, my_state.character) P1.garbage_target = P1 make_local_panels(P1, "000000") make_local_gpanels(P1, "000000") P1:starting_state() return main_dumb_transition, {main_local_vs_yourself, "Game is starting...", 30, 30} end if character_select_mode == "2p_net_vs" then if not do_messages() then return main_dumb_transition, {main_select_mode, "Disconnected from server.\n\nReturning to main menu...", 60, 300} end end end end
--KibbleChat v3 -- --by Kibblebit -- --www.ac-web.org-- local ChatMsg = "#coldchat" -- KibbleChat function ChatSystem (event, player, message, type, language) if (message:find(ChatMsg.." ") == 1) then local text = message:gsub(ChatMsg.." ", "") for k, v in pairs(GetPlayersInWorld()) do if (player:GetTeam() == 0) then -- Alliance local GMrank = player:GetGmRank() if (GMrank == 'az') then v:SendBroadcastMessage("|cFF00FFFF[CNA] |cFFFFA500[Admin] |cffffff00["..player:GetName().."]: |cff00ff00"..text.."") -- Admin Tag elseif (GMrank == 'a') then v:SendBroadcastMessage("|cFF00FFFF[CNA] |cFFFFA500[GM] |cffffff00["..player:GetName().."]: |cff00ff00"..text.."") -- GM Tag elseif (GMrank == 'g') then v:SendBroadcastMessage("|cFF00FFFF[CNA] |cFFFFA500[Donor] |cffffff00["..player:GetName().."]: |cff00ff00"..text.."") -- Donor Tag else v:SendBroadcastMessage("|cFF00FFFF[CNA] |cff00ff00[Alliance] |cffffff00["..player:GetName().."]: |cffD8FFFF"..text.."") -- Ally Tag end elseif (player:GetTeam() == 1) then -- Horde local GMrank = player:GetGmRank() if (GMrank == 'az') then v:SendBroadcastMessage("|cFF00FFFF[CNA] |cFFFFA500[Admin] |cffffff00["..player:GetName().."]: |cffff0000"..text.."") -- Admin Tag elseif (GMrank == 'a') then v:SendBroadcastMessage("|cFF00FFFF[CNA] |cFFF665AB[Developer] |cFFCC00CC["..player:GetName().."]: |cff00FF00"..text.."") -- GM Tag elseif (GMrank == 'g') then v:SendBroadcastMessage("|cFF00FFFF[CNA] |cFFFFA500[Donor] |cffffff00["..player:GetName().."]: |cffff0000"..text.."") -- Donor Tag else v:SendBroadcastMessage("|cFF00FFFF[CNA] |cffff0000[Horde] |cffffff00["..player:GetName().."]: |cffFFE2E2"..text.."") -- Horde Tag end end end return 0 end end -- Commands Functions function player_OnChat(event, pPlayer, message, type, language) if (message == "#commands") then pPlayer:SendAreaTriggerMessage("Commands") pPlayer:SendAreaTriggerMessage("--------") pPlayer:SendAreaTriggerMessage("#c = Sends message to world") pPlayer:SendAreaTriggerMessage("#gold = Gives you 100g - NOT!") end end -- Gold Functions function gold_OnChat(event, pPlayer, message, type, language) if (message == "#gold") then pPlayer:DealGoldMerit(1) -- In Copper. Default = 1000000 pPlayer:SendAreaTriggerMessage("There you go, "..pPlayer:GetName().."! Enjoy!") end end RegisterServerHook(16, "gold_OnChat") RegisterServerHook(16, "player_OnChat") RegisterServerHook(16, "ChatSystem")
--ZFUNC-flatten-v1 local function flatten( arr, shallow ) --> flatarr local flatarr = {} for _, v in ipairs( arr ) do if shallow or type( v ) ~= 'table' then table.insert( flatarr, v ) else for _, sub_v in ipairs( flatten( v ) ) do table.insert( flatarr, sub_v ) end end end return flatarr end return flatten
Talk(2, "找到七心海棠了吗?自己不行的话就多带些人去找.", "talkname2", 0); do return end;
AddCSLuaFile() ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.Category = "baristaner Quidditch" ENT.PrintName = "Takim A Sayac" ENT.Author = "" ENT.Spawnable = true ENT.AdminSpawnable = false topspawnla = Vector(-9808.903320, 5610.830078, -63.968750) if SERVER then function ENT:Initialize() self.Entity:SetModel("models/hunter/tubes/circle2x2.mdl") self.Entity:PhysicsInit( SOLID_CUSTOM ) self.Entity:SetMoveType(MOVETYPE_NONE) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetRenderMode(RENDERMODE_TRANSCOLOR) self.Entity:SetMaterial("models/shadertest/shader3") self.Entity:SetColor(Color(255,0,0,10)) if IsValid(self.Entity:GetPhysicsObject()) then self.Entity:GetPhysicsObject():EnableMotion(true) end end function ENT:Touch( entity ) if GetGlobalInt("macbasla", 0) == 0 then return end if entity:GetClass() == "bt_quaffle" or entity:GetClass() == "kekc_fireball_ent" then SetGlobalInt( "mavitakim", GetGlobalInt("mavitakim", 0)+(self.puan or 10)) entity:SetPos(topspawnla) for k, ply in pairs( player.GetAll() ) do ply:SendLua('chat.AddText( Color( 100, 255, 100 ), "TAKIM A SAYI YAPTI!", Color( 100, 100, 255 )," Tebrikler!" )') ply:SendLua('surface.PlaySound( "ui/freeze_cam.wav" )') end end end end
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.SkillTrees = wOS.SkillTrees or {} local PLAYER = LocalPlayer() net.Receive( "wOS.SkillTree.SendPlayerData", function() local equipped_skills = net.ReadTable() local localplayer = net.ReadBool() if localplayer then wOS.EquippedSkills = table.Copy( equipped_skills ) else local ply = net.ReadEntity() ply.EquippedSkills = table.Copy( equipped_skills ) end end ) net.Receive( "wOS.SkillTree.SendWLData", function() local whitelist_trees = net.ReadTable() local localplayer = net.ReadBool() if localplayer then wOS.SkillTreeWhitelists = table.Copy( whitelist_trees ) else local ply = net.ReadEntity() ply.WOS_SkillTreeWhitelists = table.Copy( whitelist_trees ) end end ) wOS.TreeIcons = {} wOS.TreeIcons[ "Help Menu" ] = { MainIcon = Material( "wos/skilltrees/wiltos.png", "unlitgeneric" ) } net.Receive( "wOS.SkillTree.SendTrees", function() local trees = net.ReadTable() for name, data in pairs( trees ) do wOS.SkillTrees[ name ] = data if not wOS.TreeIcons[ name ] then wOS.TreeIcons[ name ] = {} wOS.TreeIcons[ name ].MainIcon = wOS.ALCS.Skills:PrecacheIcon( "wos-alcs-treename-" .. name, data.TreeIcon ) for tier, sdata in pairs( data.Tier ) do wOS.TreeIcons[ name ][ tier ] = {} for skill, info in pairs( sdata ) do if info.DummySkill then continue end wOS.TreeIcons[ name ][ tier ][ skill ] = {} wOS.TreeIcons[ name ][ tier ][ skill ].Icon = wOS.ALCS.Skills:PrecacheIcon( "wos-alcs-skillname-" .. name .. tier .. skill, info.Icon ) end end end end end ) net.Receive( "wOS.SkillTree.RefreshWeapon", function() local name = net.ReadString() local self = LocalPlayer():GetWeapon( name ) if not IsValid( self ) then return end self.ForcePowerList = net.ReadTable() self.DevestatorList = net.ReadTable() self.ForcePowers = {} self.AvailablePowers = table.Copy( wOS.AvailablePowers ) local breakoff = wOS.ALCS.Config.LightsaberHUD == WOS_ALCS.HUD.HYBRID for _, force in pairs( self.ForcePowerList ) do if not self.AvailablePowers[ force ] then continue end self.ForcePowers[ #self.ForcePowers + 1 ] = self.AvailablePowers[ force ] if !breakoff then continue end if #self.ForcePowers >= wOS.ALCS.Config.MaximumForceSlots then break end end self.Devestators = {} self.AvailableDevestators = table.Copy( wOS.AvailableDevestators ) for _, dev in pairs( self.DevestatorList ) do if not self.AvailableDevestators[ dev ] then continue end self.Devestators[ #self.Devestators + 1 ] = self.AvailableDevestators[ dev ] end end ) net.Receive( "wOS.SkillTree.RefreshForms", function() local name = net.ReadString() local self = LocalPlayer():GetWeapon( name ) if not IsValid( self ) then return end self.Forms = net.ReadTable() self.Stances = net.ReadTable() self.UseForms = {} for _, form in pairs( self.Forms ) do self.UseForms[ form ] = true end end ) net.Receive( "wOS.SkillTree.RefreshDualForms", function() local name = net.ReadString() local self = LocalPlayer():GetWeapon( name ) if not IsValid( self ) then return end self.DualFormList = net.ReadTable() end )
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- Promotion local promoteKeyword = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, text = 'Do you want to be promoted in your vocation for 20000 gold?'}) promoteKeyword:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, level = 20, cost = 20000}) promoteKeyword:addChildKeyword({''}, StdModule.say, {npcHandler = npcHandler, text = 'Ok, whatever.', reset = true}) -- Postman keywordHandler:addKeyword({'uniforms'}, StdModule.say, {npcHandler = npcHandler, text = 'I remember about those uniforms, they had a camouflage inlay so they could be worn the inside out too. I will send some color samples via mail to Mr. Postner.'}, function(player) return player:getStorageValue(Storage.postman.Mission06) == 5 end, function(player) player:setStorageValue(Storage.postman.Mission06, 6) end ) keywordHandler:addKeyword({'uniforms'}, StdModule.say, {npcHandler = npcHandler, text = 'The uniforms of our guards and soldiers are of unparraleled quality of course.'}) -- Basic keywordHandler:addKeyword({'subject'}, StdModule.say, {npcHandler = npcHandler, text = 'I am {Queen} Eloise. It is my duty to reign over this marvellous {city} and the {lands} of the north.'}) keywordHandler:addAliasKeyword({'job'}) keywordHandler:addKeyword({'justice'}, StdModule.say, {npcHandler = npcHandler, text = 'We women try to bring justice and wisdom to all, even to males.'}) keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, text = 'I am Queen Eloise. For you it\'s \'My Queen\' or \'Your Majesty\', of course.'}) keywordHandler:addKeyword({'news'}, StdModule.say, {npcHandler = npcHandler, text = 'I don\'t care about gossip like a simpleminded male would do.'}) keywordHandler:addKeyword({'tibia'}, StdModule.say, {npcHandler = npcHandler, text = 'Soon the whole land will be ruled by women at last!'}) keywordHandler:addAliasKeyword({'land'}) keywordHandler:addKeyword({'how', 'are', 'you'}, StdModule.say, {npcHandler = npcHandler, text = 'Thank you, I\'m fine.'}) keywordHandler:addKeyword({'castle'}, StdModule.say, {npcHandler = npcHandler, text = 'It\'s my humble domain.'}) keywordHandler:addKeyword({'sell'}, StdModule.say, {npcHandler = npcHandler, text = 'Sell? Your question shows that you are a typical member of your gender!'}) keywordHandler:addKeyword({'god'}, StdModule.say, {npcHandler = npcHandler, text = 'We honor the gods of good in our fair city, especially Crunor, of course.'}) keywordHandler:addKeyword({'citizen'}, StdModule.say, {npcHandler = npcHandler, text = 'All citizens of Carlin are my subjects. I see them more as my childs, though, epecially the male population.'}) keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, text = 'This beast scared my cat away on my last diplomatic mission in this filthy town.'}) keywordHandler:addKeyword({'ferumbras'}, StdModule.say, {npcHandler = npcHandler, text = 'He is the scourge of the whole continent!'}) keywordHandler:addKeyword({'treasure'}, StdModule.say, {npcHandler = npcHandler, text = 'The royal treasure is hidden beyond the grasps of any thieves by magical means.'}) keywordHandler:addKeyword({'monster'}, StdModule.say, {npcHandler = npcHandler, text = 'Go and hunt them! For queen and country!'}) keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, text = 'Visit the church or the townguards for help.'}) keywordHandler:addKeyword({'quest'}, StdModule.say, {npcHandler = npcHandler, text = 'I will call for heroes as soon as the need arises again.'}) keywordHandler:addAliasKeyword({'mission'}) keywordHandler:addKeyword({'gold'}, StdModule.say, {npcHandler = npcHandler, text = 'Our city is rich and prospering.'}) keywordHandler:addAliasKeyword({'money'}) keywordHandler:addAliasKeyword({'tax'}) keywordHandler:addKeyword({'sewer'}, StdModule.say, {npcHandler = npcHandler, text = 'I don\'t want to talk about \'sewers\'.'}) keywordHandler:addKeyword({'dungeon'}, StdModule.say, {npcHandler = npcHandler, text = 'Dungeons are places where males crawl around and look for trouble.'}) keywordHandler:addKeyword({'equipment'}, StdModule.say, {npcHandler = npcHandler, text = 'Feel free to visit our town\'s magnificent shops.'}) keywordHandler:addAliasKeyword({'food'}) keywordHandler:addKeyword({'time'}, StdModule.say, {npcHandler = npcHandler, text = 'Don\'t worry about time in the presence of your Queen.'}) keywordHandler:addKeyword({'hero'}, StdModule.say, {npcHandler = npcHandler, text = 'We need the assistance of heroes now and then. Even males prove useful now and then.'}) keywordHandler:addAliasKeyword({'adventure'}) keywordHandler:addKeyword({'collector'}, StdModule.say, {npcHandler = npcHandler, text = 'The taxes in Carlin are not high, more a symbol than a sacrifice.'}) keywordHandler:addKeyword({'queen'}, StdModule.say, {npcHandler = npcHandler, text = 'I am the Queen, the only rightful ruler on the continent!'}) keywordHandler:addKeyword({'army'}, StdModule.say, {npcHandler = npcHandler, text = 'Ask one of the soldiers about that.'}) keywordHandler:addKeyword({'enemy'}, StdModule.say, {npcHandler = npcHandler, text = 'Our enemies are numerous. We have to fight vile monsters and have to watch this silly king in the south carefully.'}) keywordHandler:addAliasKeyword({'enemies'}) keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, text = 'They dare to reject my reign over them!'}) keywordHandler:addAliasKeyword({'south'}) keywordHandler:addKeyword({'carlin'}, StdModule.say, {npcHandler = npcHandler, text = 'Isn\'t our city marvellous? Have you noticed the lovely gardens on the roofs?'}) keywordHandler:addAliasKeyword({'city'}) keywordHandler:addKeyword({'shop'}, StdModule.say, {npcHandler = npcHandler, text = 'My subjects maintain many fine shops. Go and have a look at their wares.'}) keywordHandler:addKeyword({'merchant'}, StdModule.say, {npcHandler = npcHandler, text = 'Ask around about them.'}) keywordHandler:addAliasKeyword({'craftsmen'}) keywordHandler:addKeyword({'guild'}, StdModule.say, {npcHandler = npcHandler, text = 'The four major guilds are the Knights, the Paladins, the Druids, and the Sorcerers.'}) keywordHandler:addKeyword({'minotaur'}, StdModule.say, {npcHandler = npcHandler, text = 'They haven\'t troubled our city lately. I guess, they fear the wrath of our druids.'}) keywordHandler:addKeyword({'paladin'}, StdModule.say, {npcHandler = npcHandler, text = 'The paladins are great hunters.'}) keywordHandler:addAliasKeyword({'legola'}) keywordHandler:addKeyword({'elane'}, StdModule.say, {npcHandler = npcHandler, text = 'It\'s a shame that the High Paladin does not reside in Carlin.'}) keywordHandler:addKeyword({'knight'}, StdModule.say, {npcHandler = npcHandler, text = 'The knights of Carlin are the bravest.'}) keywordHandler:addAliasKeyword({'trisha'}) keywordHandler:addKeyword({'sorc'}, StdModule.say, {npcHandler = npcHandler, text = 'The sorcerers have a small isle for their guild. So if they blow something up it does not burn the whole city to ruins.'}) keywordHandler:addAliasKeyword({'lea'}) keywordHandler:addKeyword({'druid'}, StdModule.say, {npcHandler = npcHandler, text = 'The druids of Carlin are our protectors and advisors. Their powers provide us with wealth and food.'}) keywordHandler:addAliasKeyword({'padreia'}) keywordHandler:addKeyword({'good'}, StdModule.say, {npcHandler = npcHandler, text = 'Carlin is a center of the forces of good, of course.'}) keywordHandler:addKeyword({'evil'}, StdModule.say, {npcHandler = npcHandler, text = 'The forces of evil have a firm grip on this puny city to the south.'}) keywordHandler:addKeyword({'order'}, StdModule.say, {npcHandler = npcHandler, text = 'The order, Crunor gives the world, is essential for survival.'}) keywordHandler:addKeyword({'chaos'}, StdModule.say, {npcHandler = npcHandler, text = 'Chaos is common in the southern regions, where they allow a man to reign over a realm.'}) keywordHandler:addKeyword({'excalibug'}, StdModule.say, {npcHandler = npcHandler, text = 'A mans tale ... that means \'nonsense\', of course.'}) keywordHandler:addKeyword({'reward'}, StdModule.say, {npcHandler = npcHandler, text = 'If you want a reward, go and bring me something this silly King Tibianus wants dearly!'}) keywordHandler:addKeyword({'tbi'}, StdModule.say, {npcHandler = npcHandler, text = 'A dusgusting organisation, which could be only created by men.'}) keywordHandler:addKeyword({'eremo'}, StdModule.say, {npcHandler = npcHandler, text = 'It is said that he lives on a small island near Edron. Maybe the people there know more about him.'}) npcHandler:setMessage(MESSAGE_GREET, 'I greet thee, my loyal {subject}.') npcHandler:setMessage(MESSAGE_WALKAWAY, 'Farewell, |PLAYERNAME|!') local focusModule = FocusModule:new() focusModule:addGreetMessage('hail queen') focusModule:addGreetMessage('salutations queen') npcHandler:addModule(focusModule)
--[[ -- added by wsh @ 2017-12-05 -- 本地化工具类 --]] local LangUtil = {} local function GetData(path, lang) -- TODO:根据语言设置自动切换各语言源表 return require(path) end local function GetServerName(server_id) local data = GetData("Config.Data.ServerLang") if data[server_id] == nil then return "["..server_id.."]" end return data[server_id].name end local function GetServerAreaName(area_id) local data = GetData("Config.Data.ServerAreaLang") if data[area_id].name == nil then return "["..area_id.."]" end return data[area_id].name end LangUtil.GetServerName = GetServerName LangUtil.GetServerAreaName = GetServerAreaName return ConstClass("LangUtil", LangUtil)
-- Native file dialog premake5 script newoption { trigger = "nfd_linux_backend", value = "B", description = "Choose a dialog backend for NFD on linux", allowed = { { "gtk3", "GTK 3 - link to gtk3 directly" }, { "zenity", "Zenity - generate dialogs on the end users machine with zenity" } } } if not _OPTIONS["nfd_linux_backend"] then _OPTIONS["nfd_linux_backend"] = "gtk3" end -- On Linux we have to query the includes of gtk+3 for NFD, we do this on the host for now. if os.ishost("linux") then gtkFlags, code = os.outputof("pkg-config --cflags gtk+-3.0") end project("nfd") kind("StaticLib") -- common files files({"*.h", "nfd_common.c", "premake5.lua" }) -- system build filters filter("system:windows") language("C++") files({"nfd_win.cpp"}) filter({"action:gmake or action:xcode4"}) buildoptions({"-fno-exceptions"}) filter("system:macosx") language("C") files({"nfd_cocoa.m"}) filter({"system:linux", "options:nfd_linux_backend=gtk3"}) language("C") files({"nfd_gtk.c"}) buildoptions(gtkFlags) filter({"system:linux", "options:nfd_linux_backend=zenity"}) language("C") files({"nfd_zenity.c"}) -- visual studio filters filter("action:vs*") defines({ "_CRT_SECURE_NO_WARNINGS" }) filter({})
--- -- Stream interface --- Stream = { 'get', 'unget', 'source', 'lines', 'close' }
-- example config for firefox sandbox, which is created dynamycally from host environment. -- xpra x11-forwarding software (must be installed on host, v2.0 and up) may be used to isolate sanbox from host x11 service. -- opengl acceleration untested and may not work (especially with xpra mode or when using proprietary video drivers that install it's own libgl). -- this config is based on example.cfg.lua, most comments removed. sandbox={ features={ "resolvconf", "dbus", "gvfs_fix", "pulse", "x11host", -- less secure, try this if you do not have xpra software --"xpra", -- more secure, you must install xpra software suite with server and client functionality. "envfix", }, setup={ commands={ defaults.commands.etc_min, defaults.commands.etc_dbus, defaults.commands.etc_x11, defaults.commands.etc_udev, defaults.commands.passwd, defaults.commands.home, defaults.commands.home_gui_config, defaults.commands.machineid, -- defaults.commands.resolvconf, defaults.commands.var_cache, defaults.commands.var_tmp, }, env_blacklist={ defaults.env.blacklist_main, defaults.env.blacklist_audio, defaults.env.blacklist_desktop, defaults.env.blacklist_home, defaults.env.blacklist_xdg, }, -- set custom env variables, env_set={ defaults.env.set_home, defaults.env.set_xdg_runtime, }, mounts={ defaults.mounts.system_group, defaults.mounts.xdg_runtime_dir, defaults.mounts.home_mount, defaults.mounts.var_cache_mount, defaults.mounts.var_tmp_mount, defaults.mounts.etc_ro_mount, --defaults.mounts.devsnd_mount, -- for alsa support. --defaults.mounts.devdri_mount, -- may be needed when using x11host for opengl acceleration --defaults.mounts.sys_mount, -- may be needed when using x11host for opengl acceleration defaults.mounts.host_bin_mount, --defaults.mounts.host_sbin_mount, defaults.mounts.host_usr_mount, defaults.mounts.host_lib_mount, defaults.mounts.host_lib64_mount, } }, bwrap={ defaults.bwrap.unshare_user, -- defaults.bwrap.unshare_ipc, defaults.bwrap.unshare_pid, -- defaults.bwrap.unshare_net, defaults.bwrap.unshare_uts, -- defaults.bwrap.unshare_cgroup, defaults.bwrap.uid, defaults.bwrap.gid, } } shell={ exec="/bin/bash", path="/", env_unset={"TERM"}, env_set={{"TERM",os.getenv("TERM")}}, term_signal=defaults.signals.SIGHUP, attach=true, pty=true, term_on_interrupt=true, desktop={ name = "Shell for host-firefox sandbox", comment = "shell for sandbox uid "..config.sandbox_uid, icon = "terminal", terminal = true, startupnotify = false, }, } firefox_log={ exec="/usr/bin/firefox", path="/home/sandboxer", term_signal=defaults.signals.SIGTERM, attach=true, pty=false, exclusive=true, -- for now it is needed for logging to work log_stderr=loader.path.combine(loader.workdir,"firefox_dbg.err.log"), log_stdout=loader.path.combine(loader.workdir,"firefox_dbg.out.log"), } firefox={ exec="/usr/bin/firefox", path="/home/sandboxer", args=loader.args, term_signal=defaults.signals.SIGTERM, attach=false, pty=false, desktop={ name = "Firefox (in sandbox)", comment = "Firefox browser, sandbox uid "..config.sandbox_uid, icon = "firefox", mimetype = "x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;", field_code="%u", terminal = false, startupnotify = false, categories="Network;WebBrowser;GTK;" }, } firefox_home_log={ exec="/home/sandboxer/firefox/firefox", path="/home/sandboxer", term_signal=defaults.signals.SIGTERM, attach=true, pty=false, exclusive=true, -- for now it is needed for logging to work log_stderr=loader.path.combine(loader.workdir,"firefox_dbg.err.log"), log_stdout=loader.path.combine(loader.workdir,"firefox_dbg.out.log"), } firefox_home={ exec="/home/sandboxer/firefox/firefox", path="/home/sandboxer", args=loader.args, term_signal=defaults.signals.SIGTERM, attach=false, pty=false, desktop={ name = "Firefox (in sandbox)", comment = "Firefox browser, sandbox uid "..config.sandbox_uid, icon = loader.path.combine(tunables.datadir,"/home/sandboxer","firefox/browser/chrome/icons/default","default128.png"), mimetype = "x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;", field_code="%u", terminal = false, startupnotify = false, categories="Network;WebBrowser;GTK;" }, }
object_ship_ixiyen_s01_tier10 = object_ship_shared_ixiyen_s01_tier10:new { } ObjectTemplates:addTemplate(object_ship_ixiyen_s01_tier10, "object/ship/ixiyen_s01_tier10.iff")
local IslandsQueueUI = { Name = "IslandsQueue", Type = "System", Namespace = "C_IslandsQueue", Functions = { { Name = "CloseIslandsQueueScreen", Type = "Function", }, { Name = "GetIslandDifficultyInfo", Type = "Function", Returns = { { Name = "islandDifficultyInfo", Type = "table", InnerType = "IslandsQueueDifficultyInfo", Nilable = false }, }, }, { Name = "GetIslandsMaxGroupSize", Type = "Function", Returns = { { Name = "maxGroupSize", Type = "number", Nilable = false }, }, }, { Name = "GetIslandsWeeklyQuestID", Type = "Function", Returns = { { Name = "questID", Type = "number", Nilable = true }, }, }, { Name = "QueueForIsland", Type = "Function", Arguments = { { Name = "difficultyID", Type = "number", Nilable = false }, }, }, { Name = "RequestPreloadRewardData", Type = "Function", Arguments = { { Name = "questId", Type = "number", Nilable = false }, }, }, }, Events = { { Name = "IslandsQueueClose", Type = "Event", LiteralName = "ISLANDS_QUEUE_CLOSE", }, { Name = "IslandsQueueOpen", Type = "Event", LiteralName = "ISLANDS_QUEUE_OPEN", }, }, Tables = { { Name = "IslandsQueueDifficultyInfo", Type = "Structure", Fields = { { Name = "difficultyId", Type = "number", Nilable = false }, { Name = "previewRewardQuestId", Type = "number", Nilable = false }, }, }, }, }; APIDocumentation:AddDocumentationTable(IslandsQueueUI);
-- User Interface stuff using SUIT lib > local suit = require('libs.suit') local cfg = require('code.simconfig') local sim = require('code.simulation') local apiG = love.graphics local map = require('code.map') local ui = {} local cmul = cfg.colorMul suit.theme.color = { normal = {bg = { 66*cmul, 66*cmul, 66*cmul}, fg = {188*cmul,188*cmul,188*cmul}}, hovered = {bg = { 50*cmul,153*cmul,187*cmul}, fg = {255*cmul,255*cmul,255*cmul}}, active = {bg = {255*cmul,153*cmul, 0}, fg = {225*cmul,225*cmul,225*cmul}} } ui.cnormal = suit.theme.color.normal ui.selectedColor = { bg={55*cmul, 113*cmul, 140*cmul}, fg={255*cmul,255*cmul,255*cmul} } ui.cc = ui.cnormal ui.consumedClick = false ui.labelStyle = { normal = { fg={155*cmul,200*cmul,125*cmul} } } ui.leftPanelWidth = 110 ui.leftPanelColor = { 82*cmul, 82*cmul, 82*cmul} ui.numAnts = 0 -- set this on main.lua to update local btnDims = {w = 85, h = 40} function ui.onRadioCellsChanged( NewIdx ) print ( ui.radioBtns_cells.selectedCaption ) end ui.radioBtns_cells = { {caption = 'pan view'}, {caption = 'block'}, {caption = 'grass'}, {caption = 'cave'}, {caption = 'food'}, {caption = 'portal'}, {caption = 'remove'}, bWidth = btnDims.w, bHeight = btnDims.h, selectedIdx = 1, selectedCaption = 'pan view', onChanged = ui.onRadioCellsChanged } ui.showPheromones = { checked = false, text = 'phrms'} function ui.suitRadio( rbtns ) local grow --ui.consumedClick = false for i=1,#rbtns do if rbtns.selectedIdx then if rbtns.selectedIdx == i then ui.cc = ui.selectedColor grow = 25 else ui.cc = ui.cnormal grow = 0 end end rbtns[i].ret = suit.Button(rbtns[i].caption, { color = { normal = ui.cc }} , suit.layout:row( rbtns.bWidth + grow, rbtns.bHeight) ) if rbtns[i].ret.hit then --ui.consumedClick = true rbtns.selectedIdx = i if rbtns.onChanged then rbtns.selectedCaption = rbtns[i].caption rbtns.onChanged(i) end end end end function ui.onZoomInOut( inc ) end --event called onZoomInOut; overrided on main.lua function ui.mainUpdate() suit.layout:reset(10,10) suit.layout:padding(10,5) -- apiG.print("Hello World!", 400, 300) -- suit.Label(, { color = ui.labelStyle }, suit.layout:row(btnDims.w, 20 ) ) -- suit.Label(ui.numAnts..' ants', { color = ui.labelStyle }, suit.layout:row(btnDims.w, 20 ) ) -- suit.Label(cfg.simFrameNumber..' fs', { color = ui.labelStyle }, suit.layout:row(btnDims.w, 20 ) ) -- suit.Label('find '..cfg.FindAllFoodTime, { color = ui.labelStyle }, suit.layout:row(btnDims.w, 20 ) )a -- suit.Label('foodnumber '..cfg.foodNumbers..' fs', { color = ui.labelStyle }, suit.layout:row(btnDims.w, 20 ) ) if suit.Button('zoom+',suit.layout:row(btnDims.w, btnDims.h)).hit then ui.onZoomInOut(0.5) end if suit.Button('zoom-',suit.layout:row()).hit then ui.onZoomInOut(-0.5) end if suit.Button('start',suit.layout:row(btnDims.w, btnDims.h)).hit then sim.start() end if suit.Button('stop',suit.layout:row(btnDims.w, btnDims.h)).hit then sim.stop() end if suit.Button('pause',suit.layout:row(btnDims.w, btnDims.h)).hit then cfg.pause= not cfg.pause end if suit.Button('change map',suit.layout:row(btnDims.w, btnDims.h)).hit then sim.changeMap() end ui.suitRadio(ui.radioBtns_cells) if suit.Checkbox( ui.showPheromones, suit.layout:row() ).hit then cfg.debugPheromones = ui.showPheromones.checked end end function ui.draw() apiG.setBackgroundColor({0.5,0.5,0.5}) apiG.setColor( ui.leftPanelColor ) apiG.rectangle("fill", 0,0, ui.leftPanelWidth, apiG.getHeight() ) -- apiG.setColor(120,180,100) -- apiG.print(tostring(love.timer.getFPS( ))..' FPS', 10, 10) -- apiG.print('F# '..cfg.simFrameNumber, 10, 25) --apiG.print("DebugCounter 1 = "..cfg.debugCounters[1], 10, 25) --apiG.print("DebugCounter 2 = "..cfg.debugCounters[2], 10, 40) suit.draw() -- apiG.setColor(236/256,240/256,241/256) -- apiG.print(love.timer.getFPS()..' FPS' ,120, 0) -- apiG.print(ui.numAnts..' ants' ,120, 20) -- apiG.print('the time of finding all food: '..cfg.FindAllFoodTime..' fs' ,120, 40) -- apiG.print('the number of unfound food: '..cfg.foodNumbers ,120, 60) apiG.setColor( {0.,0.,0.} ) apiG.print( love.timer.getFPS() ..' FPS' ..'\n'.. ui.numAnts ..' ants' ..'\n'.. 'sim time: ' ..cfg.simFrameNumber..' fs' ..'\n'.. 'the number of all food: ' ..cfg.foodNumbers ..'\n'.. 'the number of found food: ' ..cfg.foodFoundNumbers ..'\n'.. 'the number of all food storage: ' ..cfg.foodAmount ..'\n'.. 'the number of arrived food storage: ' ..cfg.foodArrivedStorage ..'\n'.. 'the time of finding all food: ' ..cfg.FindAllFoodTime..' fs' ..'\n'.. 'the time of task finished: ' ..cfg.taskFinishedTime..' fs' ..'\n'.. 'the Arithmetic: ' ..cfg.arithmetic() ..'\n'.. 'the map: ' ..cfg.mapExampleNumber ..'\n'.. 'the grid found: ' ..cfg.mapGridFound ..'\n'.. 'the mapAreaGrid: ' ..cfg.mapAreaXYg ,120, 10) end function ui.setContentScale( x, y) suit.setContentScale( x, y ) end return ui
local local0 = 0.9 local local1 = 0.9 - local0 local local2 = 0.9 - local0 local local3 = 0.9 - local0 local local4 = 0.9 - local0 local local5 = 0.9 - local0 local local6 = 3 - local0 local local7 = 0.9 - local0 local local8 = 0.9 - local0 local local9 = 4.3 - local0 local local10 = 0.9 - local0 local local11 = 0.9 - local0 local local12 = 3 - local0 local local13 = 0.9 - local0 local local14 = 0.9 - local0 local local15 = 0.9 - local0 local local16 = 0.9 - local0 local local17 = 0.9 - local0 local local18 = 0.9 - local0 local local19 = 0.9 - local0 function OnIf_127000(arg0, arg1, arg2) if arg2 == 0 then VampireHogs127000_ActAfter_RealTime(arg0, arg1) end return end function VampireHogs127000Battle_Activate(arg0, arg1) local local0 = {} local local1 = {} local local2 = {} Common_Clear_Param(local0, local1, local2) local local3 = arg0:GetDist(TARGET_ENE_0) local local4 = arg0:GetEventRequest() local local5 = arg0:GetRandam_Int(1, 100) local local6 = arg0:GetHpRate(TARGET_SELF) if arg0:GetNumber(0) == 0 then local0[9] = 100 elseif arg0:GetNpcThinkParamID() == 127090 then if local6 <= 0.5 and arg0:HasSpecialEffectId(TARGET_SELF, 5020) == false then local0[12] = 100 elseif arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_B, 270) then local0[19] = 100 elseif local6 <= 0.5 then if 10 <= local3 then local0[1] = 50 local0[2] = 0 local0[3] = 0 local0[4] = 0 local0[5] = 0 local0[6] = 0 local0[7] = 50 local0[8] = 0 local0[9] = 0 local0[11] = 0 elseif 4.9 <= local3 then local0[1] = 40 local0[2] = 40 local0[3] = 0 local0[4] = 0 local0[5] = 10 local0[6] = 0 local0[7] = 10 local0[8] = 0 local0[9] = 0 local0[11] = 0 else local0[1] = 10 local0[2] = 0 local0[3] = 20 local0[4] = 5 local0[5] = 5 local0[6] = 20 local0[7] = 0 local0[8] = 0 local0[9] = 0 local0[10] = 15 local0[11] = 25 end elseif 10 <= local3 then local0[1] = 50 local0[2] = 0 local0[3] = 0 local0[4] = 0 local0[5] = 0 local0[6] = 0 local0[7] = 50 local0[8] = 0 local0[9] = 0 local0[11] = 0 elseif 4.9 <= local3 then local0[1] = 0 local0[2] = 50 local0[3] = 0 local0[4] = 0 local0[5] = 50 local0[6] = 0 local0[7] = 0 local0[8] = 0 local0[9] = 0 local0[11] = 0 else local0[1] = 0 local0[2] = 0 local0[3] = 20 local0[4] = 10 local0[5] = 10 local0[6] = 20 local0[7] = 0 local0[8] = 0 local0[9] = 0 local0[10] = 15 local0[11] = 25 end elseif arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_B, 270) then local0[19] = 100 elseif 10 <= local3 then local0[1] = 50 local0[2] = 0 local0[3] = 0 local0[4] = 0 local0[5] = 0 local0[6] = 0 local0[7] = 50 local0[8] = 0 local0[9] = 0 elseif 4.9 <= local3 then local0[1] = 0 local0[2] = 50 local0[3] = 0 local0[4] = 0 local0[5] = 50 local0[6] = 0 local0[7] = 0 local0[8] = 0 local0[9] = 0 else local0[1] = 0 local0[2] = 0 local0[3] = 25 local0[4] = 15 local0[5] = 15 local0[6] = 25 local0[7] = 0 local0[8] = 0 local0[9] = 0 local0[10] = 20 end local1[1] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act01) local1[2] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act02) local1[3] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act03) local1[4] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act04) local1[5] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act05) local1[6] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act06) local1[7] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act07) local1[8] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act08) local1[9] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act09) local1[10] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act10) local1[11] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act11) local1[12] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act12) local1[19] = REGIST_FUNC(arg0, arg1, VampireHogs127000_Act19) Common_Battle_Activate(arg0, arg1, local0, local1, REGIST_FUNC(arg0, arg1, VampireHogs127000_ActAfter_AdjustSpace), local2) return end local0 = 25 - local0 local0 = 25 - local0 function VampireHogs127000_Act01(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL0 + 1 local local3 = UPVAL0 if 60 <= local0 then local3 = UPVAL1 local2 = UPVAL1 + 1 end if local3 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local3, UPVAL0 + 999, 0, 3) end if local0 <= 60 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 7, 3000, TARGET_ENE_0, local2, 0, 0) else arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 7, 3001, TARGET_ENE_0, local2, 0, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = 4.9 - local0 function VampireHogs127000_Act02(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 if local1 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local1, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 6, 3002, TARGET_ENE_0, UPVAL0 + 1, 0, 0) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = 4.5 - local0 local0 = local12 function VampireHogs127000_Act03(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 + 1 local local2 = UPVAL0 if local2 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local2, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 4, 3005, TARGET_ENE_0, local1, 0, 0) if local0 <= 20 then arg1:AddSubGoal(GOAL_COMMON_Turn, 3, TARGET_ENE_0, 15, 0, 0) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 4.5, 3008, TARGET_ENE_0, UPVAL1 + 1, 0, 0) elseif local0 <= 50 then arg1:AddSubGoal(GOAL_COMMON_Turn, 3, TARGET_ENE_0, 15, 0, 0) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 4, 3005, TARGET_ENE_0, local1, 0, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local9 function VampireHogs127000_Act04(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 if local1 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local1, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 6, 3006, TARGET_ENE_0, UPVAL0 + 1, 0, 0) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = 7 - local0 function VampireHogs127000_Act05(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 if local1 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local1, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 6, 3007, TARGET_ENE_0, UPVAL0 + 1, 0, 0) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = 4.3 - local0 local0 = 4.3 - local0 function VampireHogs127000_Act06(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 + 1 local local2 = UPVAL0 if local2 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local2, UPVAL0 + 999, 0, 3) end if arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_R, 180) then local2 = UPVAL1 arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3011, TARGET_ENE_0, UPVAL1 + 1, 0, 0) elseif arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_L, 180) then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3010, TARGET_ENE_0, AttDist1, 0, 0) else arg1:AddSubGoal(GOAL_COMMON_Turn, 3, TARGET_ENE_0, 30, 0, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = 25 - local0 function VampireHogs127000_Act07(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 if local1 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local1, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 7, 3012, TARGET_ENE_0, UPVAL0 + 1, 0, 0) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local12 function VampireHogs127000_Act08(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 if local1 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local1, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3008, TARGET_ENE_0, UPVAL0 + 1, 0, 0) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = 40 - local0 function VampireHogs127000_Act09(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 if local1 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local1, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3009, TARGET_ENE_0, UPVAL0 + 1, 0, 0) arg0:SetNumber(0, 1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 5.2 - local0 function VampireHogs127000_Act10(arg0, arg1, arg2) local local0 = UPVAL0 + 1 if arg0:GetNpcThinkParamID() == 127600 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3015, TARGET_ENE_0, local0, 0, 0) else arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3014, TARGET_ENE_0, local0, 0, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = 3.2 - local0 function VampireHogs127000_Act11(arg0, arg1, arg2) local local0 = arg0:GetRandam_Int(1, 100) local local1 = UPVAL0 if local1 <= arg0:GetDist(TARGET_ENE_0) then Approach_Act(arg0, arg1, local1, UPVAL0 + 999, 0, 3) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 6, 3017, TARGET_ENE_0, UPVAL0 + 1, 0, 0) GetWellSpace_Odds = 100 return GetWellSpace_Odds end function VampireHogs127000_Act12(arg0, arg1, arg2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3018, TARGET_ENE_0, DIST_None, 0, 0) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local6 local0 = 3 - local0 local0 = local9 local0 = 3.2 - local0 function VampireHogs127000_Act19(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL2 + 1 local local3 = UPVAL3 + 1 if local0 <= 5 then if arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_B, 90) then if arg0:GetNpcThinkParamID() == 127090 and local0 <= local3 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3016, TARGET_ENE_0, local3, 0, 0) elseif 40 <= local1 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, 2, TARGET_ENE_0, arg0:GetRandam_Int(0, 1), 10, true, true, -1) else arg1:AddSubGoal(GOAL_COMMON_Turn, 3, TARGET_ENE_0, 15, 0, 0) end elseif arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_R, 180) then if 50 <= local1 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3004, TARGET_ENE_0, UPVAL0 + 1, 0, 0) else arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3006, TARGET_ENE_0, local2, 0, 0) end elseif 50 <= local1 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3003, TARGET_ENE_0, UPVAL1 + 1, 0, 0) else arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3006, TARGET_ENE_0, local2, 0, 0) end elseif arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_R, 180) then arg1:AddSubGoal(GOAL_COMMON_Turn, 3, TARGET_ENE_0, 15, 0, 0) else arg1:AddSubGoal(GOAL_COMMON_Turn, 3, TARGET_ENE_0, 15, 0, 0) end GetWellSpace_Odds = 0 return GetWellSpace_Odds end function VampireHogs127000_ActAfter_AdjustSpace(arg0, arg1, arg2) arg1:AddSubGoal(GOAL_COMMON_If, 10, 0) return end function VampireHogs127000_ActAfter_RealTime(arg0, arg1) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) if 6.5 > local0 then if 4 <= local0 then if local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, 5, TARGET_ENE_0, arg0:GetRandam_Int(2, 3), TARGET_ENE_0, true, -1) end else arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, 5, TARGET_ENE_0, arg0:GetRandam_Int(2, 3), TARGET_ENE_0, true, -1) if local1 <= 40 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, arg0:GetRandam_Float(3, 4), TARGET_ENE_0, arg0:GetRandam_Int(0, 1), 180, true, true, -1) end end end return end function VampireHogs127000Battle_Update(arg0, arg1) return GOAL_RESULT_Continue end function VampireHogs127000Battle_Terminate(arg0, arg1) return end local0 = local6 function VampireHogs127000Battle_Interupt(arg0, arg1) if arg0:IsLadderAct(TARGET_SELF) then return false else local local0 = arg0:GetRandam_Int(1, 100) local local1 = arg0:GetRandam_Int(1, 100) local local2 = arg0:GetRandam_Int(1, 100) if arg0:IsInterupt(INTERUPT_UseItem) and local0 <= 70 then arg1:ClearSubGoal() Approach_Act(arg0, arg1, UPVAL0, 0, 0) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3004, TARGET_ENE_0, UPVAL0 + 1, 0, -1) return true elseif arg0:IsInterupt(INTERUPT_Damaged) and arg0:GetDist(TARGET_ENE_0) <= 3 and local0 <= 20 then arg1:ClearSubGoal() arg1:AddSubGoal(GOAL_COMMON_SpinStep, 5, 701, TARGET_ENE_0, 0, AI_DIR_TYPE_B, 4) return true elseif FindAttack_Step(arg0, arg1, 3, 20, 100, 0, 0, 4) then return true else return false end end end return
--[[ Properties.lua Serves a few different flavors of properties (name-value pairs). --]] local Properties, dbg, dbgf = Object:newClass{ className = 'Properties' } local sharedProperties local propsForPlugin local propsForPluginSpanningCatalogs = {} --- Constructor for extending class. -- function Properties:newClass( t ) return Object.newClass( self, t ) end --- Constructor for new instance. -- function Properties:new( t ) return Object.new( self, t ) end -- Synopsis: Substitute for non-working Lightroom version, until fixed. -- -- Notes: - This will be removed or replaced with the equivalent lightroom version once difficulties are resolved. -- - Writes a table into file plugin-id.properties.lua with the specified property. -- -- Returns: Nothing. throws error if bad property file. -- function Properties:_readPropertyFile( pth ) local sts, props if LrFileUtils.exists( pth ) then sts, props = pcall( dofile, pth ) if sts then if props and type( props ) == 'table' then -- good else error( "Bad property file (no return table): " .. pth ) end else app:error( "Bad property file (^1) - syntax error? - ^2", pth, props ) end else props = {} end return props end -- Synopsis: Substitute for non-working Lightroom version, until fixed. -- -- Notes: - This will be removed or replaced with the equivalent lightroom version once difficulties are resolved. -- - Writes a table into file plugin-id.properties.lua with the specified property. -- -- Returns: Nothing. throws error if can't set property. -- function Properties:_savePropertyFile( pth, props ) local sts, msg local overwrite = LrFileUtils.exists( pth ) local contents = "return "..luaText:serialize( props ) -- reminder, props are not Lr property table, but simple (proprietary) lua table. local s, m = fso:assureDir( LrPathUtils.parent( pth ) ) if not s then app:error( m ) end --sts, msg = fso:writeFile( pth, contents ) -- overwrite is default behavior. local ok, fileOrMsg = pcall( io.open, pth, "wb" ) local msg = nil if ok and fileOrMsg then local orMsg ok, orMsg = pcall( fileOrMsg.write, fileOrMsg, contents ) if ok then -- good else msg = str:format( "Cant write file, path: ^1, additional info: ^2", pth, str:to( orMsg ) ) end -- ok = fso:closeFile( fileOrMsg ) fileOrMsg:close() if not ok then msg = str:format( "Unable to close file that was open for writing, path: ^1", pth ) end elseif fileOrMsg then msg = str:format( "Cant open file for writing, path: ^1, additional info: ^2", pth, fileOrMsg ) else msg = str:format( "Cant open file for writing, path: ^1, no additional info.", pth ) end if msg then error( msg ) end end function Properties:_getPropTbl( pluginId, name ) if type( name ) == 'string' then return propsForPlugin[pluginId], name else local props if propsForPlugin[pluginId][name[1]] == nil then propsForPlugin[pluginId][name[1]] = {} end props = propsForPlugin[pluginId][name[1]] for i = 2, #name-1 do if props[name[i]] == nil then props[name[i]] = {} end props = props[name[i]] end Debug.pauseIf( props == nil, "no props" ) return props, name[#name] end end function Properties:_getSpanCatPropTbl( pluginId, name ) if type( name ) == 'string' then return propsForPluginSpanningCatalogs[pluginId], name else local props if propsForPluginSpanningCatalogs[pluginId][name[1]] == nil then propsForPluginSpanningCatalogs[pluginId][name[1]] = {} end props = propsForPluginSpanningCatalogs[pluginId][name[1]] for i = 2, #name-1 do if props[name[i]] == nil then props[name[i]] = {} end props = props[name[i]] end Debug.pauseIf( props == nil, "no props" ) return props, name[#name] end end --- Clear all properties for plugin. -- function Properties:clearPropertiesForPlugin( _plugin, noFlush ) local pluginId if _plugin == nil then pluginId = _PLUGIN.id elseif type( _plugin ) == 'string' then pluginId = _plugin else pluginId = _plugin.id end assert( pluginId ~= nil, "bad plugin id" ) local fn = pluginId .. ".Properties.lua" local pth = LrPathUtils.child( LrPathUtils.parent( catalog:getPath() ), fn ) if not propsForPlugin then propsForPlugin = {} end propsForPlugin[pluginId] = {} if not noFlush then -- flush dbgf( "Properties for plugin ^1 cleared and flushed to file ^2", pluginId, pth ) self:_savePropertyFile( pth, propsForPlugin[pluginId] ) -- throws error if failure. else dbgf( "Properties for plugin ^1 cleared, but NOT flushed (yet) to file: ^2", pluginId, pth ) end end --- Set property value specified by name associated with catalog. -- -- @param _plugin - _PLUGIN or pluginId. -- @param name - property name -- @param value - property value, may be nil. -- @param noFlush - true => refrain from writing to disk. -- -- @usage Substitute for non-working Lightroom version, until fixed. -- @usage This will be removed or replaced with the equivalent lightroom version once difficulties are resolved. -- @usage Writes a table into file plugin-id.properties.lua with the specified property. -- @usage name should be string, and value should be number or string or nil. -- @usage Returns nothing - throws error if can't set property. -- function Properties:setPropertyForPlugin( _plugin, name, value, noFlush ) local pluginId if _plugin == nil then pluginId = _PLUGIN.id elseif type( _plugin ) == 'string' then pluginId = _plugin else pluginId = _plugin.id end assert( pluginId ~= nil, "bad plugin id" ) local fn = pluginId .. ".Properties.lua" local pth = LrPathUtils.child( LrPathUtils.parent( catalog:getPath() ), fn ) if name == nil then error( "set catalog property name can not be nil." ) end if not propsForPlugin then propsForPlugin = {} end if not propsForPlugin[pluginId] then propsForPlugin[pluginId] = self:_readPropertyFile( pth ) end if propsForPlugin[pluginId] then local props, key = self:_getPropTbl( pluginId, name ) props[key] = value if not noFlush then -- flush dbgf( "Property for plugin ^1 named ^2 set to '^3' in file ^4", pluginId, name, value, pth ) self:_savePropertyFile( pth, propsForPlugin[pluginId] ) -- throws error if failure. else dbgf( "Property for plugin ^1 named ^2 set to '^3' - NOT flushed (yet) to file: ^4", pluginId, name, value, pth ) end else error( "Program failure - no catalog properties for plugin." ) end end function Properties:flushPropertiesForPlugin( _plugin ) local pluginId if _plugin == nil then pluginId = _PLUGIN.id elseif type( _plugin ) == 'string' then pluginId = _plugin else pluginId = _plugin.id end assert( pluginId ~= nil, "bad plugin id" ) if not propsForPlugin then dbgf( "Nothing to flush for plugin: ^1", pluginId ) return end local fn = pluginId .. ".Properties.lua" local pth = LrPathUtils.child( LrPathUtils.parent( catalog:getPath() ), fn ) self:_savePropertyFile( pth, propsForPlugin[pluginId] ) end --- Reads named property value associated with catalog. -- -- @param _plugin - _PLUGIN or pluginId. -- @param name - property name -- -- @usage Substitute for non-working Lightroom version, until fixed. -- @usage This will be removed or replaced with the equivalent lightroom version once difficulties are resolved. -- @usage Reads from loaded table or loads then reads. -- @usage Name must be a string. -- @usage Throws error if problem reading properties. -- -- @return Value as set, which may be nil. -- function Properties:getPropertyForPlugin( _plugin, name, forceRead ) local pluginId if _plugin == nil then pluginId = _PLUGIN.id elseif type( _plugin ) == 'string' then pluginId = _plugin else pluginId = _plugin.id end assert( pluginId ~= nil, "bad plugin id" ) local fn = pluginId .. ".Properties.lua" local pth = LrPathUtils.child( LrPathUtils.parent( catalog:getPath() ), fn ) if not propsForPlugin then propsForPlugin = {} end if not propsForPlugin[pluginId] or forceRead then propsForPlugin[pluginId] = self:_readPropertyFile( pth ) end if propsForPlugin[pluginId] then if name ~= nil then local props, key = self:_getPropTbl( pluginId, name ) return props[key] -- may be nil. else return propsForPlugin[pluginId] end else error( "Program failure - no catalog properties to get." ) end end function Properties:_getPathToPropertyFileForPluginSpanningCatalog( pluginId ) local tkId, pqName, revDom, baseName = app:parseToolkitId( pluginId ) -- error if unparseable. -- note: baseName is full prefix, pqName is "final" suffix (extension). assert( tkId == pluginId, "id mismatch" ) -- note: os-app-data-dir is appropriate for things shared outdide Lr/plugin environ, but these properties are for lua plugins only, or so I'm imagining. --local ad, er = fso:getAppDataDir() - this is OS app-data folder, I should use Lr-app-data folder, no? -- reminder: app-data is Lr app-data, not tied to Lr pref: "store presets with this catalog". local lrAppDir = LrPathUtils.getStandardFilePath( 'appData' ) or error( "No Lr App-data folder." ) -- 'Lightroom' folder. local authorDir = LrPathUtils.child( lrAppDir, revDom ) local pluginDir = LrPathUtils.child( authorDir, pqName ) -- e.g. C:\Users\Me\AppData\Roaming\Adobe\Lightroom\com.robcole\FtpAggregator\SpanningProperties.lua (i.e. no replication). local fn = "SpanningProperties.lua" return LrPathUtils.child( pluginDir, fn ) -- lua tail call. end --- Gets property tied to plugin, but not to specific catalog. -- -- @usage Initial application: Importer master sequence number, so an index used for import file naming into different catalogs -- <br>would not create conflicts in common backup bucket, or when catalogs merged... -- -- @usage Original implementation had properties kept in parent of .lrplugin folder - on retrospect, maybe not such a good idea. -- <br> Current implementation uses app-data dir. -- -- @param pluginId plugin-id - nil for this plugin. -- @param name string or array representing leaf of hierarchically structured property. -- -- @return simple value (original type not table). -- function Properties:getPropertyForPluginSpanningCatalogs( pluginId, name ) pluginId = pluginId or _PLUGIN.id app:callingAssert( name ~= nil, "get catalog spanning property name can not be nil." ) -- Not sure if I really needed shared properties and those spanning catalogs, but -- a huge difference is that shared properties are not tied to a plugin! local pth = self:_getPathToPropertyFileForPluginSpanningCatalog( pluginId ) if not propsForPluginSpanningCatalogs[pluginId] then propsForPluginSpanningCatalogs[pluginId] = self:_readPropertyFile( pth ) end if propsForPluginSpanningCatalogs[pluginId] then local props, key = self:_getSpanCatPropTbl( pluginId, name ) return props[key] else error( "Program failure - no catalog spanning properties to get." ) end end --- Set plugin property that is catalog independent. -- -- @usage see 'get' function -- @usage Returns nothing - throws error if trouble. -- -- @param pluginId plugin-id string - nil for this plugin. -- @param name string or array representing leaf of hierarchically structured property. -- @param value property value. -- @param noFlush (boolean, default: flush) set to refrain from flusing properties to disk. -- function Properties:setPropertyForPluginSpanningCatalogs( pluginId, name, value, noFlush ) pluginId = pluginId or _PLUGIN.id app:callingAssert( str:is( name ), "set catalog spanning property name can not be nil." ) local pth = self:_getPathToPropertyFileForPluginSpanningCatalog( pluginId ) if not propsForPluginSpanningCatalogs[pluginId] then propsForPluginSpanningCatalogs[pluginId] = self:_readPropertyFile( pth ) end if propsForPluginSpanningCatalogs[pluginId] then local props, key = self:_getSpanCatPropTbl( pluginId, name ) props[key] = value if not noFlush then -- flush dbgf( "Property for plugin (spanning catalogs) ^1 named ^2 set to '^3' in file ^4", pluginId, name, value, pth ) self:_savePropertyFile( pth, propsForPluginSpanningCatalogs[pluginId] ) -- throws error if failure. else dbgf( "Property for plugin (spanning catalogs) ^1 named ^2 set to '^3' - NOT flushed (yet) to file: ^4", pluginId, name, value, pth ) end else error( "Program failure - no catalog spanning properties for plugin." ) end end --- Gets shared value associated with specified name. -- -- @param name (string or table, required) name or parameter table containing name - property name. -- @param expectedType (string, optional) expected type. -- @param default (any, optional) return value, instead of nil (note: type not checked, even if "expected type" is passed). -- -- @usage Shared meaning all-plugins, all-catalogs, all-users, ... -- @usage Initial application: user-name. -- @usage Properties are stored in plugin parent, so they will only be shared by child plugins. -- @usage Throws error if name not supplied or existing properties unobtainable. -- -- @return named value, any type - default or nil if non-existing. -- @return path of properties file, if value read is nil. -- function Properties:getSharedProperty( name, expectedType, default ) if name.name then -- parameter table expectedType = name.expectedType default = name.default name = name.name end app:callingAssert( name ~= nil, "get shared property name can not be nil." ) if expectedType == nil and default ~= nil then expectedType = type( default ) end local tkId, pqName, revDom, baseName = app:parseToolkitId() -- error if unparseable. local dir = LrPathUtils.getStandardFilePath( 'appData' ) or error( "No Lr App-data folder." ) -- 'Lightroom' folder. dir = LrPathUtils.child( dir, revDom..'.Shared' ) local fn = "Properties.lua" local pth = LrPathUtils.child( dir, fn ) if not sharedProperties then sharedProperties = self:_readPropertyFile( pth ) -- throws error if problem reading existing file, if no file, returns empty table. if tab:isNotEmpty( sharedProperties ) then -- properties file exists (and has properties). local attrs = LrFileUtils.fileAttributes( pth ) local lastMod if attrs then local modDate = attrs.fileModificationDate if modDate then lastMod = LrDate.timeToUserFormat( modDate, "%Y-%m-%d %H:%M:%S" ) else lastMod = "*** no last-mod date" end else lastMod = "*** unknown" end app:logV( "Shared properties read from '^1', last edited: ^2", pth, lastMod ) else local srcDir = LrPathUtils.child( _PLUGIN.path, "Properties" ) if fso:existsAsDir( srcDir ) then local srcFile = LrPathUtils.child( srcDir, "DefaultProperties.lua" ) if fso:existsAsFile( srcFile ) then local s, m = fso:copyFile( srcFile, pth, true, false ) -- due assure dir if need be, but don't overwrite if already file there. if s then app:log( "Shared properties default file copied from ^1 to ^2 - you can edit this file, and note: it won't be overwritten without your permission.", srcFile, pth ) sharedProperties = self:_readPropertyFile( pth ) else app:error( "Unable to initialize shared property file, source: ^1, destination: ^2", srcFile, pth ) end else app:logW( "Shared property was requested (^1), but file does not exist (^2), and no default was provided (tried '^3' )", name, srcFile, pth ) end else app:logW( "Shared property was requested (^1), but directory does not exist (^2) - where default properties file would come from, and no default was provided (tried '^3' )", name, srcDir, pth ) end end end if sharedProperties then -- reminder: empty table if file does not exist. local value = sharedProperties[name] -- may be nil. if value == nil then return default, pth end -- non-nil value if expectedType == nil then return value elseif type( value ) == expectedType then return value else app:error( "Unexpected property type, name: ^1, type: ^2, expected type: ^3", name, type( value ), expectedType ) end else -- never happens actually, but cheap insurance.. app:error( "Program failure - no shared properties to get from '^1'.", pth ) end end --- Sets property readable by sister function. -- -- @usage see 'get' function. -- @usage Returns nothing - throws error if trouble. -- function Properties:setSharedProperty( name, value ) app:callingError( "Shared properties are read-only." ) end return Properties
test_run = require('test_run').new() REPLICASET_1 = { 'storage_1_a', 'storage_1_b' } REPLICASET_2 = { 'storage_2_a', 'storage_2_b' } test_run:create_cluster(REPLICASET_1, 'storage') test_run:create_cluster(REPLICASET_2, 'storage') util = require('util') util.wait_master(test_run, REPLICASET_1, 'storage_1_a') util.wait_master(test_run, REPLICASET_2, 'storage_2_a') util.map_evals(test_run, {REPLICASET_1, REPLICASET_2}, 'bootstrap_storage()') -- -- gh-147: refs allow to pin all the buckets on the storage at once. Is invented -- for map-reduce functionality to pin all buckets on all storages in the -- cluster to execute consistent map-reduce calls on all cluster data. -- _ = test_run:switch('storage_1_a') vshard.storage.rebalancer_disable() vshard.storage.bucket_force_create(1, 1500) _ = test_run:switch('storage_2_a') vshard.storage.rebalancer_disable() vshard.storage.bucket_force_create(1501, 1500) _ = test_run:switch('storage_1_a') lref = require('vshard.storage.ref') -- -- Bucket moves are not allowed under a ref. -- util = require('util') sid = 0 rid = 0 big_timeout = 1000000 small_timeout = 0.001 timeout = 0.01 lref.add(rid, sid, big_timeout) -- Send fails. ok, err = vshard.storage.bucket_send(1, util.replicasets[2], \ {timeout = timeout}) assert(not ok and err.message) lref.use(rid, sid) -- Still fails - use only makes ref undead until it is deleted explicitly. ok, err = vshard.storage.bucket_send(1, util.replicasets[2], \ {timeout = timeout}) assert(not ok and err.message) _ = test_run:switch('storage_2_a') -- Receive (from another replicaset) also fails. big_timeout = 1000000 timeout = 0.01 ok, err = vshard.storage.bucket_send(1501, util.replicasets[1], \ {timeout = timeout}) assert(not ok and util.is_timeout_error(err)) -- -- After unref all the bucket moves are allowed again. -- _ = test_run:switch('storage_1_a') lref.del(rid, sid) vshard.storage.bucket_send(1, util.replicasets[2], {timeout = big_timeout}) wait_bucket_is_collected(1) _ = test_run:switch('storage_2_a') vshard.storage.bucket_send(1, util.replicasets[1], {timeout = big_timeout}) wait_bucket_is_collected(1) -- -- While bucket move is in progress, ref won't work. -- vshard.storage.internal.errinj.ERRINJ_LAST_RECEIVE_DELAY = true _ = test_run:switch('storage_1_a') fiber = require('fiber') _ = fiber.create(vshard.storage.bucket_send, 1, util.replicasets[2], \ {timeout = big_timeout}) ok, err = lref.add(rid, sid, small_timeout) assert(not ok and util.is_timeout_error(err)) -- Ref will wait if timeout is big enough. ok, err = nil _ = fiber.create(function() \ ok, err = lref.add(rid, sid, big_timeout) \ end) _ = test_run:switch('storage_2_a') vshard.storage.internal.errinj.ERRINJ_LAST_RECEIVE_DELAY = false _ = test_run:switch('storage_1_a') wait_bucket_is_collected(1) test_run:wait_cond(function() return ok or err end) lref.use(rid, sid) lref.del(rid, sid) assert(ok and not err) _ = test_run:switch('storage_2_a') vshard.storage.bucket_send(1, util.replicasets[1], {timeout = big_timeout}) wait_bucket_is_collected(1) -- -- Refs are bound to sessions. -- box.schema.user.grant('storage', 'super') lref = require('vshard.storage.ref') small_timeout = 0.001 function make_ref(rid, timeout) \ return lref.add(rid, box.session.id(), timeout) \ end function use_ref(rid) \ return lref.use(rid, box.session.id()) \ end function del_ref(rid) \ return lref.del(rid, box.session.id()) \ end _ = test_run:switch('storage_1_a') netbox = require('net.box') remote_uri = test_run:eval('storage_2_a', 'return box.cfg.listen')[1] c = netbox.connect(remote_uri) -- Ref is added and does not disappear anywhere on its own. c:call('make_ref', {1, small_timeout}) _ = test_run:switch('storage_2_a') assert(lref.count == 1) _ = test_run:switch('storage_1_a') -- Use works. c:call('use_ref', {1}) _ = test_run:switch('storage_2_a') assert(lref.count == 1) _ = test_run:switch('storage_1_a') -- Del works. c:call('del_ref', {1}) _ = test_run:switch('storage_2_a') assert(lref.count == 0) _ = test_run:switch('storage_1_a') -- Expiration works. Try to add a second ref when the first one is expired - the -- first is collected and a subsequent use and del won't work. c:call('make_ref', {1, small_timeout}) _ = test_run:switch('storage_2_a') assert(lref.count == 1) _ = test_run:switch('storage_1_a') fiber.sleep(small_timeout) c:call('make_ref', {2, small_timeout}) ok, err = c:call('use_ref', {1}) assert(ok == nil and err.message) ok, err = c:call('del_ref', {1}) assert(ok == nil and err.message) _ = test_run:switch('storage_2_a') assert(lref.count == 1) _ = test_run:switch('storage_1_a') -- -- Session disconnect keeps the refs, but the session is deleted when -- used ref count becomes 0. Unused refs don't prevent session deletion. -- _ = test_run:switch('storage_2_a') keep_long_ref = true function long_ref_request(rid) \ local sid = box.session.id() \ assert(lref.add(rid, sid, big_timeout)) \ assert(lref.use(rid, sid)) \ while keep_long_ref do \ fiber.sleep(small_timeout) \ end \ assert(lref.del(rid, sid)) \ end _ = test_run:switch('storage_1_a') _ = c:call('long_ref_request', {3}, {is_async = true}) c:call('make_ref', {4, big_timeout}) _ = test_run:switch('storage_2_a') test_run:wait_cond(function() return lref.count == 2 end) _ = test_run:switch('storage_1_a') c:close() _ = test_run:switch('storage_2_a') -- Still 2 refs. assert(lref.count == 2) -- The long request ends and the session must be deleted - that was the last -- used ref. keep_long_ref = false test_run:wait_cond(function() return lref.count == 0 end) _ = test_run:switch("default") test_run:drop_cluster(REPLICASET_2) test_run:drop_cluster(REPLICASET_1)
return { init_effect = "", name = "基洛夫燃烧", time = 8, picture = "", desc = "持续伤害+易伤效果", stack = 1, id = 346, icon = 346, last_effect = "Darkness", effect_list = { { type = "BattleBuffDOT", trigger = { "onUpdate" }, arg_list = { attr = "cannonPower", exposeGroup = 1, time = 2, cloakExpose = 36, number = 5, dotType = 1, k = 0.6 } }, { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { attr = "injureRatio", number = 0.15 } }, { type = "BattleBuffCastSkill", trigger = { "onAttach" }, arg_list = { quota = 1, target = "TargetSelf", skill_id = 60 } }, { type = "BattleBuffCastSkill", trigger = { "onRemove" }, arg_list = { skill_id = 61, target = "TargetSelf" } } } }
local M = {} local supported_configs = { vim.fn.stdpath "config", vim.fn.stdpath "config" .. "/../astronvim", } local g = vim.g local function file_not_empty(path) return vim.fn.empty(vim.fn.glob(path)) == 0 end local function load_module_file(module) local found_module = nil for _, config_path in ipairs(supported_configs) do local module_path = config_path .. "/lua/" .. module:gsub("%.", "/") .. ".lua" if file_not_empty(module_path) then found_module = module_path end end if found_module then local status_ok, loaded_module = pcall(require, module) if status_ok then found_module = loaded_module else vim.notify("Error loading " .. found_module, "error", M.base_notification) end end return found_module end local function load_user_settings() local user_settings = load_module_file "user.init" local defaults = require "core.defaults" if user_settings ~= nil and type(user_settings) == "table" then defaults = vim.tbl_deep_extend("force", defaults, user_settings) end return defaults end local _user_settings = load_user_settings() M.user_terminals = {} local function func_or_extend(overrides, default) if default == nil then default = overrides elseif type(overrides) == "table" then default = vim.tbl_deep_extend("force", default, overrides) elseif type(overrides) == "function" then default = overrides(default) end return default end local function user_setting_table(module) local settings = _user_settings for tbl in string.gmatch(module, "([^%.]+)") do settings = settings[tbl] if settings == nil then break end end return settings end local function load_options(module, default) local user_settings = load_module_file("user." .. module) if user_settings == nil then user_settings = user_setting_table(module) end if user_settings ~= nil then default = func_or_extend(user_settings, default) end return default end M.base_notification = { title = "AstroNvim" } function M.bootstrap() local fn = vim.fn local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then PACKER_BOOTSTRAP = fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path, } print "Cloning packer...\nSetup AstroNvim" vim.cmd "packadd packer.nvim" end end function M.disabled_builtins() g.load_black = false g.loaded_2html_plugin = false g.loaded_getscript = false g.loaded_getscriptPlugin = false g.loaded_gzip = false g.loaded_logipat = false g.loaded_matchit = true g.loaded_netrwFileHandlers = false g.loaded_netrwPlugin = false g.loaded_netrwSettngs = false g.loaded_remote_plugins = false g.loaded_tar = false g.loaded_tarPlugin = false g.loaded_zip = false g.loaded_zipPlugin = false g.loaded_vimball = false g.loaded_vimballPlugin = false g.zipPlugin = false end function M.user_settings() return _user_settings end function M.user_plugin_opts(plugin, default) return load_options(plugin, default) end function M.compiled() local run_me, _ = loadfile(M.user_plugin_opts("plugins.packer", {}).compile_path) if run_me then run_me() else print "Please run :PackerSync" end end function M.list_registered_providers_names(filetype) local s = require "null-ls.sources" local available_sources = s.get_available(filetype) local registered = {} for _, source in ipairs(available_sources) do for method in pairs(source.methods) do registered[method] = registered[method] or {} table.insert(registered[method], source.name) end end return registered end function M.list_registered_formatters(filetype) local null_ls_methods = require "null-ls.methods" local formatter_method = null_ls_methods.internal["FORMATTING"] local registered_providers = M.list_registered_providers_names(filetype) return registered_providers[formatter_method] or {} end function M.list_registered_linters(filetype) local null_ls_methods = require "null-ls.methods" local formatter_method = null_ls_methods.internal["DIAGNOSTICS"] local registered_providers = M.list_registered_providers_names(filetype) return registered_providers[formatter_method] or {} end function M.url_opener_cmd() local cmd = function() vim.notify("gx is not supported on this OS!", "error", M.base_notification) end if vim.fn.has "mac" == 1 then cmd = '<Cmd>call jobstart(["open", expand("<cfile>")], {"detach": v:true})<CR>' elseif vim.fn.has "unix" == 1 then cmd = '<Cmd>call jobstart(["xdg-open", expand("<cfile>")], {"detach": v:true})<CR>' end return cmd end -- term_details can be either a string for just a command or -- a complete table to provide full access to configuration when calling Terminal:new() function M.toggle_term_cmd(term_details) if type(term_details) == "string" then term_details = { cmd = term_details, hidden = true } end local term_key = term_details.cmd if vim.v.count > 0 and term_details.count == nil then term_details.count = vim.v.count term_key = term_key .. vim.v.count end if M.user_terminals[term_key] == nil then M.user_terminals[term_key] = require("toggleterm.terminal").Terminal:new(term_details) end M.user_terminals[term_key]:toggle() end function M.add_cmp_source(source, priority) if type(priority) ~= "number" then priority = 1000 end local cmp_avail, cmp = pcall(require, "cmp") if cmp_avail then local config = cmp.get_config() table.insert(config.sources, { name = source, priority = priority }) cmp.setup(config) end end function M.add_user_cmp_source(source) local priority = M.user_plugin_opts("cmp.source_priority", _user_settings.cmp.source_priority)[source] if priority then M.add_cmp_source(source, priority) end end function M.alpha_button(sc, txt) local sc_ = sc:gsub("%s", ""):gsub("LDR", "<leader>") if vim.g.mapleader then sc = sc:gsub("LDR", vim.g.mapleader == " " and "SPC" or vim.g.mapleader) end return { type = "button", val = txt, on_press = function() local key = vim.api.nvim_replace_termcodes(sc_, true, false, true) vim.api.nvim_feedkeys(key, "normal", false) end, opts = { position = "center", text = txt, shortcut = sc, cursor = 5, width = 36, align_shortcut = "right", hl = "DashboardCenter", hl_shortcut = "DashboardShortcut", }, } end function M.label_plugins(plugins) local labelled = {} for _, plugin in ipairs(plugins) do labelled[plugin[1]] = plugin end return labelled end function M.defer_plugin(plugin, timeout) vim.defer_fn(function() require("packer").loader(plugin) end, timeout or 0) end function M.is_available(plugin) return packer_plugins ~= nil and packer_plugins[plugin] ~= nil end function M.delete_url_match() for _, match in ipairs(vim.fn.getmatches()) do if match.group == "HighlightURL" then vim.fn.matchdelete(match.id) end end end function M.set_url_match() M.delete_url_match() if vim.g.highlighturl_enabled then vim.fn.matchadd( "HighlightURL", "\\v\\c%(%(h?ttps?|ftp|file|ssh|git)://|[a-z]+[@][a-z]+[.][a-z]+:)%([&:#*@~%_\\-=?!+;/0-9a-z]+%(%([.;/?]|[.][.]+)[&:#*@~%_\\-=?!+/0-9a-z]+|:\\d+|,%(%(%(h?ttps?|ftp|file|ssh|git)://|[a-z]+[@][a-z]+[.][a-z]+:)@![0-9a-z]+))*|\\([&:#*@~%_\\-=?!+;/.0-9a-z]*\\)|\\[[&:#*@~%_\\-=?!+;/.0-9a-z]*\\]|\\{%([&:#*@~%_\\-=?!+;/.0-9a-z]*|\\{[&:#*@~%_\\-=?!+;/.0-9a-z]*})\\})+", 15 ) end end function M.toggle_url_match() vim.g.highlighturl_enabled = not vim.g.highlighturl_enabled M.set_url_match() end function M.update() local Job = require "plenary.job" Job :new({ command = "git", args = { "pull", "--ff-only" }, cwd = vim.fn.stdpath "config", on_exit = function(_, return_val) if return_val == 0 then vim.notify("Updated!", "info", M.base_notification) else vim.notify("Update failed! Please try pulling manually.", "error", M.base_notification) end end, }) :sync() end return M
return { W1EarlyCommand = cmd(finishtweening;shadowlength,0;y,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.8;smooth,0.1;zoomy,0.5*1.2;zoomx,1.3*1.2;diffusealpha,0;glowblink;effectperiod,0.05;effectcolor1,color("1,1,1,0");effectcolor2,color("1,1,1,0.25")); W1LateCommand = cmd(finishtweening;shadowlength,0;y,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.8;smooth,0.1;zoomy,0.5*1.2;zoomx,1.3*1.2;diffusealpha,0;glowblink;effectperiod,0.05;effectcolor1,color("1,1,1,0");effectcolor2,color("1,1,1,0.25")); W2EarlyCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); W2LateCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); W3EarlyCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); W3LateCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); W4EarlyCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); W4LateCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.9*1.2;smooth,0.05;zoom,0.75*1.2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); W5EarlyCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.75*1.2;vibrate;effectmagnitude,1,2,2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); W5LateCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.75*1.2;vibrate;effectmagnitude,1,2,2;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); MissEarlyCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.75*1.2;y,-20;smooth,0.8;y,20;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); MissLateCommand = cmd(finishtweening;y,0;shadowlength,0;diffusealpha,1;zoom,0.75*1.2;y,-20;smooth,0.8;y,20;sleep,0.5;smooth,0.1;zoomy,0.5*1.2;zoomx,2*1.2;diffusealpha,0); };
object_mobile_space_comm_gotal_bandit_04 = object_mobile_shared_space_comm_gotal_bandit_04:new { } ObjectTemplates:addTemplate(object_mobile_space_comm_gotal_bandit_04, "object/mobile/space_comm_gotal_bandit_04.iff")
ITEM.name = "Respite Survival Guide" ITEM.desc = "A guide written by a Drifter based on his own experiences." ITEM.uniqueID = "book_walker1" ITEM.price = 0 ITEM.flag = "3" ITEM.iconCam = { pos = Vector(0, 200, 6), ang = Angle(0, 270, 0), fov = 4.5, } ITEM.contents = [[ <h1>The Survival Guide to the Respite.</h1> <h3>By Johnny Walker</h3> <p align="center"><font color='blue' size='6'>1. What is the Respite?</font></p><br/> <font color='black' size='3'>The Respite(s), are the spaces in time that we, the Drifters, Plastics, Shadow, Mannequins and everything else inhabits. It is believed that the Respites are created by Drifters, and the constant collapsing of these respites are due to their owners not being there anymore. <br/><br/> The Respite(s) also is the home of 'the Mist' (will be talked about later), and our presensce in the Respites causes over time degradation of the Respite itself. After roughly a week or more of being on a Respite, they usually collapse, but first forms a portal so all beings may escape their demise. <br/><br/> Most of the drifters have formed new lives within the Respite in an effort to mimic their old as best as possible. These may include having a new sexual partner, building new things, caring for a car, or trying to get property and homes. This, in term, makes it highly recommended that the reader of this guide does the same in order to maintain their sanity. <br/><br/> The Author also recommends not attempting suicide. <br/><br/> </font> <p align="center"><font color='blue' size='6'>2. The Mist</font></p><br/> <font color='black' size='3'>The Mist is a phenomenon that is carried out throughout all of the Respites, much like weather like snowing, raining and clouds. The Mist, however, comes for a certain amount of reasons, and there have been a total of three confirmed mists, albeit the author suggests there's four. <br/><br/> 1. Red Mist - This mist comes directly as a result of a Drifter attacking another Drifter. This Mist causes hallucination to anyone caught in it, and is very unpleasant. <br/><br/> 2. Pink Mist - The reason for this one to exist is unknown. It causes Sensory Deprivation and may cause blindness, deafness or loss of feelings for as long as you stay in it. <br/><br/> 3. Black Mist - This mist always summons the Shadow People. It is also believed that if you stay in the black mist for too long, you may end up killing yourself. <br/><br/> 4. White Mist - Cover for the Monsters of the Respite to ambush you. <br/><br/> 5. Blue Mist - This mist will destroyed technology, is attracted to water, and causes LSD-like Hallucinations if you are in it. <br/><br/> Whenever a Mist is happening, it's highly recommended you stay indoors. If it's a black mist, stay in a warehouse with a Shard weapon. <br/><br/> </font> <p align="center"><font color='blue' size='6'>3. The Plastic</font></p><br/> <font color='black' size='3'>The Plastics are the product of Drifters, who created them first from plastic, and after that the plastics have continued to make themselves. They are unable to bleed due to this, but also are not able to communicate to non-plastics. The Plastics have their own written language. <br/><br/> The Plastics are considered to be friendly to Drifters, albeit scared, at first glance, unless the plastic have experienced drifters before, or have a personality that aren't phased by new things. They have their own set of ethics and appear to be fully conciouss beings. <br/><br/> Plastics have shown to be kind and gratious hosts to drifters, and very rarely are provocative and aggressive towards them, unless the Drifters are arguing and being aggressive towards them. <br/><br/> It's recommended that if you see a plastic, you give it some distance to study you from. Violent cases of Plastics are rare, but don't take the risk. <br/><br/> </font> <p align="center"><font color='red' size='6'>4. The Mannequins</font></p><br/> <font color='black' size='3'>The Mannequins are, just as their name suggests, Mannequins. Albeit at one point they may have been used to display clothes and brand marks on them, they are now sentient beings that are known to be highly violent towards drifters. <br/><br/> There have been multiple cases in which lone-drifters have been killed by Mannequins, and so far the known ways to destroy a Mannequin is to throw it out of the Respite, burn them, or blow them up. <br/><br/> Once you have lost eyesight of a Mannequin, they will follow the shortest path to you as fast as possible, and attempt to position themselves behind you, where they lunge at and kill you. <br/><br/> It's recommended that if you believe you are followed by a Mannequin to get another Drifter to come down and help you, or a group of them. The Author also recommends that if you are only two people handling one, that you tell each other when you are blinking, as they also move during blinking. <br/><br/> </font> <p align="center"><font color='red' size='6'>5. The Shadow People</font></p><br/> <font color='black' size='3'>The Shadow People are, just as their name suggests once more, Shadows. They are capable of being killed if they are a weak shadow, albeit stronger ones require sharded weaponry. <br/><br/> The Shadow people can go through walls, and will simply go directly for their pray in order to kill them as swift as possible. As thus, it is recommended to avoid confined spaces that would allow them to flank you or block you in a room. Fighting them should be done by someone with a Shard weapon, and inside a Warehouse. <br/><br/> The Shadow people have, along with the Mannequins, have shown no real 'friendliness', and will attack any drifters and plastics on sight. They may however only appear in Black mists, and is thought of to be their 'Calling Card' to attack. <br/><br/> As such, the Author recommends staying away from Mannequins and shadow people. A telltale sign of when there are Shadow people around is due to the voices and whispering in your head. As thus, you are not necessarily insane. <br/><br/> </font> <p align="center"><font color='blue' size='6'>6. Salvager Kit Scrapping</font></p><br/> <font color='black' size='3'>What you can scrap and what you'll receive: <br/><br/> Cigarette Box - 1 Cloth <br/><br/> Teapot - 4 Scrap Metal <br/><br/> Blue Pillow - 4 Cloth <br/><br/> Industrial Fan - 1 Scrap Metal <br/><br/> Empty Can - 1 Scrap Metal <br/><br/> Life Preserver - 4 Plastic <br/><br/> Baby Doll - 1 Plastic <br/><br/> T-Shirt - 4 Cloth <br/><br/> Mug - 1 Plastic <br/><br/> Remote Controller - 1 Electronic Scrap <br/><br/> Sking Glasses - 1 Plastic <br/><br/> Broken Receiver - 3 Electronic Scraps <br/><br/> Hula Doll - 1 Plastic <br/><br/> Gasoline Can - 2 Plastic <br/><br/> Cactus Plant - 1 Organic Waste <br/><br/> Glasses - 1 Glass <br/><br/> Television - 3 Electronic Scraps <br/><br/> Framed Picture - 2 Scrap Woods <br/><br/> Headphones - 1 Electronic. <br/><br/> Stack of Newspapers - 3 Newspapers <br/><br/> (Value increase of 5 scraps if sold) <br/><br/> Newspaper - 2 Papers (with stack of newspapers, 6 papers total) <br/><br/> Mounted Fish - 1 Electronic, 1 Wood. <br/><br/> Mouse - 1 Scrap Electronic. <br/><br/> Powersaw - 3 Electronic, 3 Scrap Metal <br/><br/> Concrete - 1-2 Concrete <br/><br/> Painting - 4 Wooden Scraps <br/><br/> Blue Blanket - 4 Cloth <br/><br/> </font> <p align="center"><font color='blue' size='6'>7. Survival Tips</font></p><br/> <font color='black' size='3'>When it comes to tips, there are five essential items you will have want to secured for yourself by the time atleast a week has passed by: <br/><br/> 1. Friends. You need someone you can call a friend and someone who you can call a best friend. They will rely on you, you will rely on them, and you both are comfortable in each other's presensce. Don't just give away a bunch of things to strangers, but instead befriend them, talk to them. The more friends you have, the better off you are. <br/><br/> 2. Guns. In the Respite, there's a shit ton of monsters meaning to kill you, gut you, or drive you insane. The best way to keep them at bay is to have some form of a gun. Keep in mind, if you are going for a shotgun, be mindful of where you point it. It shoots pellets, not slugs. <br/><br/> 3. Communication. Be sure you can always communicate with everyone else. Use the Frequency 199.6 and get yourself a radio, fast. A lack of communication can lead to you missing key events, or even die to something the rest knew about. <br/><br/> 4. Light. You need a light, the Respite is a dark and gloomy place. The Light will help you see where you're going and keep your morale up. Just know when to turn it off, in case you see too much. <br/><br/> 5. House. Make sure you have a property you feel safe at in each Respite, or else it will just be a waste of time. <br/><br/> With almost everything covered, I have one important note to leave you on. <br/><br/> Once you have discovered it all, gotten all equipment and been here for a long time. Then you must remember one key thing: There are still new people every day in the Respite. Help them, talk to them, be kind to them. If you do that, you might have secured yourself a friend for life. <br/><br/> With that said, I thank you for reading the Survival Guide, and hope that you will find your stay in the Respite comfortable and as close to normal life as possible. <br/><br/> </font> ]]
-- script for npc in buya spy_hwan = { on_spawn = function(mob) mob.side = 2 mob:sendSide() end, on_healed = function(mob, healer) end, on_attacked = function(mob, attacker) if attacker.gmLevel == 99 then mob_ai_basic.on_attacked(mob, attacker) end end, move = function(mob, target) end, attack = function(mob, target) end, after_death = function(mob, block) end } -- script for interrogation hwan = { interrogate = async(function(player) local talking = true local counter = 0 local gfx = {graphic = convertGraphic(63, "monster"), color = 30} local mistress = {graphic = convertGraphic(5296, "item"), color = 30} while talking do player:dialogSeq( { gfx, "** You tie Hwan securely to the tree and stand behind the tree so that he cannot see you. **" }, 1 ) local choices = { "Pour water on head to wake up", "Slap the back of his head", "Tickle him awake..." } local choice = player:menuSeq( "What do you want to do?", choices, {} ) if choice == 1 or choice == 2 or choice == 3 then player:dialogSeq( {gfx, "What the HELL is this?! Do you know who I am?!"}, 1 ) local choices = { "Some imperial lackey who wants to die.", "It doesn't matter who you are.", "Father of a lovely little girl who would", "miss her daddy greatly if he went missing." } local choice = player:menuSeq( "How do you want to irritate him?", choices, {} ) if choice == 1 then player:dialogSeq( { gfx, "I'm not telling you a damn thing! Don't you know who I am?!" }, 1 ) elseif choice == 2 then player:dialogSeq( { gfx, "I'm not telling you a damn thing! Don't you know who I am?!" }, 1 ) elseif choice == 3 or choice == 4 then player:dialogSeq( {gfx, "You leave Mari out of this! What do you want?"}, 1 ) local choices = { "I need to know the transport route for the Jewels", "I want you to go home safely to Mari", "I need to know who has the Imperial jewels!" } local choice = player:menuSeq( "What do you want to do know that you have Hwan's attention?", choices, {} ) if choice == 1 then player:dialogSeq( { gfx, "Haha you are going to have to try harder than that." }, 1 ) elseif choice == 2 then player:dialogSeq( { gfx, "I said leave her out of this! They'll come for me you know! You're about to have the Imperial Scouts knocking down these doors!." }, 1 ) local choices = { "*Dig your dagger into one of his hands*", "Ha! They'll never find you.", "Maybe we should ask Mari to come find you." } local choice = player:menuSeq( "What do you do now with the unhelpful Hwan?", choices, {} ) if choice == 1 then player:dialogSeq( { gfx, "** Hwans screams ** Okay, okay! OKAY! What do you want to know, I'll tell you..." }, 1 ) local choices = { "I need to know where the Jewels are.", "I need to know where the Jewels are going.", "I need you to describe the Jewels." } local choice = player:menuSeq( "What do you do now with the helpful Hwan?", choices, {} ) if choice == 1 then player:dialogSeq( { gfx, "They're guarded by the highest security in the palace. ** That wasn't the answer you wanted **" }, 1 ) elseif choice == 2 then player.quest["spy_trials"] = 13 player.registry["spy_information"] = player.registry[ "spy_information" ] + 1 player:removeLegendbyName("spy_information") player:addLegend( "Acquired hidden information " .. player.registry[ "spy_information" ] .. " times", "spy_information", 22, 128 ) player:dialogSeq( { gfx, "They're going through the Vale, through a small passage in the southeast", "Are you going to let me go now?" }, 1 ) player:dialogSeq( { mistress, "** A woman appears from behind the tree and offers a silent greeting **", "We will indeed release you and spare your life so that you can remember who really controls these lands.", "Say anything of this and you'll never be heard from again.", "** The guild mistress knocks out Hwan and calls for the Gravekeeper **", "See to it our special guest rests comfortably somewhere away from here.", "Go quickly take care of that envoy before they reach Nagnang. Leave no trace of them - use our Guild's special explosives from Pyung's shop in Buya.", "Maybe you will get there before that other affiliate we sent... I'll wait here at this tree a little longer for whichever one of you gets the task done first." }, 1 ) return elseif choice == 3 then player:dialogSeq( { gfx, "These are some of the most precious jewels ever found. ** Clearly not what you needed to know **" }, 1 ) end elseif choice == 2 then player:dialogSeq( {gfx, "They will definitely find me."}, 1 ) elseif choice == 3 then player:dialogSeq( { gfx, "If you're going to kill me, get it over with." }, 1 ) end elseif choice == 3 then player:dialogSeq( { gfx, "Haha you are going to have to try harder than that." }, 1 ) end end end if counter == 10 then talking = false break end end end) }
for i,v in ipairs({ {758,-307.54254,1405.84741,70.75149,0,0,0,0,0,0, false}, {622,-311.83835,1405.91687,65.93539,0,0,270,0,0,0, false}, {622,-309.4436,1407.83691,68.90253,0,0,213.75,0,0,0, false}, {622,-304.70761,1406.80017,67.50552,0,0,101.25,0,0,0, false}, {647,-308.26709,1405.85205,71.30572,0,0,0,0,0,0, false}, {758,-364.86911,1455.06213,61.39536,0,0,0,0,0,0, false}, {622,-365.60342,1456.08838,61.79829,0,0,292.5,0,0,0, false}, {622,-365.48224,1455.16248,62.2151,0,0,33.75,0,0,0, false}, {622,-365.06522,1455.32739,61.76928,0,0,101.25,0,0,0, false}, {758,-330.9169,1328.77539,52.24354,0,0,0,0,0,0, false}, {622,-331.44809,1328.25488,52.15043,0,0,112.5001,0,0,0, false}, {622,-331.62738,1328.56873,53.243,0,0,292.5,0,0,0, false}, {622,-331.91333,1328.37488,52.90326,0,0,213.75,0,0,0, false}, {647,-331.31686,1328.84802,53.48302,0,0,0,0,0,0, false}, {647,-365.36072,1455.42651,62.58276,0,0,0,0,0,0, false}, {978,-288.9491,1401.18347,72.08991,0,0,67.5,0,0,0, false}, {978,-293.35346,1394.34668,72.08245,0,0,45,0,0,0, false}, {978,-300.46359,1389.49036,72.08117,0,0,22.5,0,0,0, false}, {978,-308.94394,1387.7561,72.08534,0,0,0,0,0,0, false}, {978,-317.14896,1390.23059,72.08115,0,0,326.25,0,0,0, false}, {16133,-304.5874,1374.60986,71.08991,0,0,258.75,0,0,0, false}, {16133,-272.39807,1396.44763,72.03602,0,0,326.25,0,0,0, false}, {16133,-271.02029,1433.54395,72.70293,0,0,348.75,0,0,0, false}, {16133,-277.12158,1477.0221,74.81715,0,0,348.75,0,0,0, false}, {16133,-314.51639,1472.85095,69.65242,0,0,1.7189,0,0,0, false}, {16133,-312.63562,1444.92224,67.89178,0,0,1.7189,0,0,0, false}, {978,-310.31894,1408.38416,71.42498,358.2811,349.6868,0,0,0,0, false}, {978,-311.25104,1422.19153,71.16092,0,12.8916,180,0,0,0, false}, {978,-319.73483,1423.89917,69.315,0,10.3132,157.5,0,0,0, false}, {16133,-345.71802,1420.96777,54.23607,0,0,12.9689,0,0,0, false}, {16133,-317.88794,1378.37085,58.76448,0,325.6225,24.2189,0,0,0, false}, {16133,-328.09674,1398.99377,57.81838,0,325.6225,24.2189,0,0,0, false}, {979,-341.49698,1459.6189,64.72296,0,4.2972,125.5461,0,0,0, false}, {979,-347.43506,1466.39648,64.12647,0,3.4377,136.7961,0,0,0, false}, {979,-354.51959,1470.77771,63.66024,0,3.4377,159.2961,0,0,0, false}, {979,-363.02631,1472.09595,63.14457,0,3.4377,181.7961,0,0,0, false}, {979,-371.21014,1470.41626,62.55259,0,4.2972,200.8584,0,0,0, false}, {979,-378.77377,1466.1571,61.94467,0,3.4377,218.9839,0,0,0, false}, {979,-384.46735,1459.35413,61.40813,0,3.4377,241.4839,0,0,0, false}, {16133,-389.13153,1472.54407,57.44023,0,325.6225,339.0642,0,0,0, false}, {16133,-333.97553,1482.19324,68.66708,0,315.3093,46.7189,0,0,0, false}, {16133,-293.84598,1364.93689,61.94375,0,325.6225,39.766,0,0,0, false}, {16133,-388.4093,1370.37476,36.91616,0,325.6225,24.2189,0,0,0, false}, {16133,-405.28586,1411.12085,29.93092,0,325.6225,24.2189,0,0,0, false}, {16133,-364.04215,1327.8971,39.15845,0,325.6225,24.2189,0,0,0, false}, {16133,-348.78256,1314.19482,40.13923,0,325.6225,46.7189,0,0,0, false}, {16133,-336.85596,1351.45483,44.0088,0,325.6225,19.9217,0,0,0, false}, {1260,-340.16702,1479.39429,92.71565,0,0,258.75,0,0,0, false}, {1260,-360.87085,1385.69556,66.64201,0,0,213.75,0,0,0, false}, {3715,-299.77487,1500.98914,82.05476,0,0,3.4377,0,0,0, false}, {4735,-339.88931,1478.96692,98.06934,0,0,259.6094,0,0,0, false}, {4735,-340.11334,1478.59973,98.58458,0,0,79.6095,0,0,0, false}, {4735,-361.69931,1385.39722,71.82123,0,0,34.6095,0,0,0, false}, {16133,-444.01428,1424.80823,26.7396,0,355.7028,260.4689,0,0,0, false}, {16133,-457.17841,1443.9585,22.04503,0,355.7028,181.7189,0,0,0, false}, {16133,-461.21124,1471.5752,24.30729,0,355.7028,170.4689,0,0,0, false}, {16133,-463.51325,1508.50562,23.11653,0,355.7028,174.7661,0,0,0, false}, {16133,-470.87976,1542.05029,23.01251,0,355.7028,174.7661,0,0,0, false}, {16133,-471.47528,1571.15125,23.76548,0,6.0161,163.5161,0,0,0, false}, {16127,-424.66702,1542.52368,43.71255,0,0,90,0,0,0, false}, {16127,-413.06549,1493.76782,49.49677,0,0,112.5001,0,0,0, false}, {16133,-470.08072,1602.05164,34.07121,0,6.0161,345.1575,0,0,0, false}, {16133,-457.74231,1638.03015,35.08971,0,6.0161,333.9075,0,0,0, false}, {16133,-446.9119,1668.45142,34.14187,0,6.0161,340.783,0,0,0, false}, {981,-136.84343,1250.02283,18.84533,0,0,90,0,0,0, false}, {981,-136.81158,1253.8822,18.91688,0,0,90,0,0,0, false}, {981,-136.79953,1257.52112,19.08861,0,0,90,0,0,0, false}, {993,-438.89407,1412.67688,33.03158,0,0,337.5,0,0,0, false}, {993,-429.23608,1412.22339,32.7751,0,0,14.4558,0,0,0, false}, {1237,-413.62753,1453.91809,34.32355,0,0,0,0,0,0, false}, {1237,-416.4223,1454.57617,34.06697,0,0,0,0,0,0, false}, {1237,-419.32617,1454.64758,33.84406,0,0,0,0,0,0, false}, {1237,-420.08521,1440.91016,34.06766,0,0,0,0,0,0, false}, {1237,-422.63611,1441.51502,33.54925,0,0,0,0,0,0, false}, {1237,-425.1593,1442.54285,33.34948,0,0,0,0,0,0, false}, {1237,-428.07617,1443.60584,33.28278,0,0,0,0,0,0, false}, {1237,-431.46707,1444.54749,33.25464,0,0,0,0,0,0, false}, {1237,-434.87631,1445.87476,32.86582,0,0,0,0,0,0, false}, {1237,-438.64856,1447.62878,32.73268,0,0,0,0,0,0, false}, {1237,-441.61905,1449.08948,32.68296,0,0,0,0,0,0, false}, {1237,-444.24515,1450.39795,32.73907,0,0,0,0,0,0, false}, {1237,-447.53064,1452.80615,32.8713,0,0,0,0,0,0, false}, {1237,-422.25974,1456.01868,33.75836,0,0,0,0,0,0, false}, {1237,-425.70355,1458.41419,33.77694,0,0,0,0,0,0, false}, {1237,-428.40695,1461.11035,33.63695,0,0,0,0,0,0, false}, {1237,-430.23767,1463.94153,33.565,0,0,0,0,0,0, false}, {1237,-431.88443,1466.53565,33.50086,0,0,0,0,0,0, false}, {1662,-423.17978,1400.474,31.66648,0,0,303.75,0,0,0, false}, {16133,-371.1958,1894.80261,51.6495,0,6.0161,352.033,0,0,0, false}, {16133,-368.60712,1856.32336,47.62949,0,6.0161,352.033,0,0,0, false}, {16133,-360.15833,1817.09387,44.01276,0,6.0161,352.033,0,0,0, false}, {16133,-360.82098,1787.22681,44.01276,0,6.0161,318.283,0,0,0, false}, {16133,-374.74066,1746.47473,40.17719,0,6.0161,329.5329,0,0,0, false}, {16133,-383.32367,1704.12878,37.85244,0,6.0161,340.783,0,0,0, false}, {16133,-390.8999,1662.8125,34.17513,0,6.0161,340.783,0,0,0, false}, {16133,-414.54126,1633.17786,32.8335,0,6.0161,318.283,0,0,0, false}, {16133,-456.55548,1874.68189,75.02482,0,314.4499,172.033,0,0,0, false}, {16133,-449.33344,1912.78296,73.15353,0,281.7913,138.2831,0,0,0, false}, {16133,-412.59195,1945.0177,71.34544,0,281.7913,104.5331,0,0,0, false}, {16133,-376.66577,1932.71045,72.93141,0,281.7913,48.2832,0,0,0, false}, {16133,-409.64111,1866.04724,52.485,0,6.0161,352.033,0,0,0, false}, {16133,-448.88013,1816.86365,63.70134,0,6.0161,172.033,0,0,0, false}, {16133,-403.40216,1813.96399,49.67098,0,6.0161,352.033,0,0,0, false}, {16133,-400.86902,1788.38684,45.34579,0,6.0161,352.033,0,0,0, false}, {16133,-423.69025,1755.7124,59.84875,0,284.3696,138.2829,0,0,0, false}, {16133,-456.73206,1737.56909,61.85685,0,6.0161,262.0329,0,0,0, false}, {16133,-481.54688,1755.48938,66.66999,0,6.0161,205.7829,0,0,0, false}, {16133,-443.30991,1720.27271,35.13659,0,6.0161,194.5329,0,0,0, false}, {16133,-420.71771,1957.36414,70.67926,0,6.0161,127.0329,0,0,0, false}, {16133,-451.44678,1924.67017,72.64196,0,6.0161,160.7829,0,0,0, false}, {16133,-492.41721,1858.28076,79.8485,0,6.0161,14.5327,0,0,0, false}, {16133,-505.2048,1907.3573,82.23151,0,6.0161,172.0328,0,0,0, false}, {16133,-500.12219,1939.21314,82.12796,0,6.0161,149.5329,0,0,0, false}, {16133,-407.40558,2052.4895,51.58511,0,6.0161,121.7991,0,0,0, false}, {16133,-353.0575,2084.69043,55.66866,0,6.0161,9.2993,0,0,0, false}, {16133,-368.83066,2104.54541,57.4408,0,6.0161,31.7992,0,0,0, false}, {16133,-398.47165,2115.62573,58.57155,0,6.0161,99.2991,0,0,0, false}, {16133,-431.45132,2093.39551,57.43498,0,6.0161,121.7991,0,0,0, false}, {16133,-463.1828,2058.38916,57.56547,0,6.0161,121.7991,0,0,0, false}, {16133,-492.76889,2021.91699,53.07799,0,6.0161,121.7991,0,0,0, false}, {16133,-553.32843,2009.63269,55.68463,0,6.0161,133.0491,0,0,0, false}, {16133,-523.37366,2013.77246,53.41984,0,6.0161,65.5492,0,0,0, false}, {16133,-549.35913,1977.23206,54.65447,0,6.0161,9.2993,0,0,0, false}, {16133,-528.44482,1960.71057,56.54025,0,6.0161,234.2994,0,0,0, false}, {16133,-499.23816,1960.23731,56.70309,0,6.0161,284.5332,0,0,0, false}, {622,-404.94968,1893.66748,62.32756,0,0,315,0,0,0, false}, {622,-415.15607,1890.99243,58.71605,0,0,33.75,0,0,0, false}, {622,-409.72089,1895.29565,61.8116,0,0,359.9999,0,0,0, false}, {622,-477.4841,1755.67639,83.22583,0,0,315,0,0,0, false}, {622,-468.82993,1742.87927,83.9832,0,0,337.4999,0,0,0, false}, {622,-454.80887,1737.14648,81.1501,0,0,359.9999,0,0,0, false}, {622,-437.83179,1738.56213,79.79288,0,0,33.75,0,0,0, false}, {622,-448.7898,1794.96826,83.39812,0,0,135,0,0,0, false}, {622,-445.6488,1793.18079,83.30647,0,0,191.2499,0,0,0, false}, {622,-445.00464,1798.40686,78.35295,0,0,258.7499,0,0,0, false}, {622,-412.91583,1967.21753,85.47957,0,0,359.9999,0,0,0, false}, {622,-425.77408,1957.43054,91.02104,0,0,359.9999,0,0,0, false}, {622,-436.12961,1947.42554,90.6787,0,0,67.4999,0,0,0, false}, {622,-495.15924,1875.97693,100.41954,0,0,292.5,0,0,0, false}, {622,-394.94385,2058.64429,66.49469,0,0,258.75,0,0,0, false}, {622,-395.45154,2063.19556,64.9567,0,0,315,0,0,0, false}, {622,-400.09729,2064.54273,67.21252,0,0,22.4999,0,0,0, false}, {622,-382.43057,2116.21314,77.2292,0,0,168.7499,0,0,0, false}, {622,-526.03461,1960.68115,74.04096,0,0,337.4999,0,0,0, false}, {622,-553.98816,2009.7915,73.45151,0,0,247.4999,0,0,0, false}, {3399,-408.48315,2061.40503,63.01422,0,0,0,0,0,0, false}, {1226,-401.2406,2074.04273,64.7105,0,0,270,0,0,0, false}, {1226,-396.22473,2074.1814,64.60898,0,0,258.75,0,0,0, false}, {1226,-391.47473,2072.2395,64.39217,0,0,247.5,0,0,0, false}, {1226,-388.11865,2069.302,64.25127,0,0,225,0,0,0, false}, {1226,-386.55261,2064.76074,64.31171,0,0,191.25,0,0,0, false}, {1226,-372.28159,2067.28345,63.53933,0,0,11.25,0,0,0, false}, {1226,-376.81397,2077.41333,63.49456,0,0,45,0,0,0, false}, {1226,-384.56867,2084.57886,63.81968,0,0,56.25,0,0,0, false}, {1226,-394.10571,2088.61694,64.27781,0,0,78.75,0,0,0, false}, {1226,-404.91101,2087.95728,64.67523,0,0,123.7499,0,0,0, false}, {1226,-443.18204,2031.58533,63.70131,0,0,315,0,0,0, false}, {1226,-484.58426,2007.07825,63.17371,0,0,123.7499,0,0,0, false}, {1226,-503.88858,1977.83801,63.13828,0,0,247.5,0,0,0, false}, {1226,-469.56357,1944.1178,88.81168,0,0,326.25,0,0,0, false}, {1237,-468.52866,1950.11157,84.07008,0,0,0,0,0,0, false}, {1237,-470.52676,1946.30286,84.66254,0,0,0,0,0,0, false}, {1237,-471.91126,1941.82227,85.1476,0,0,0,0,0,0, false}, {1237,-472.51401,1936.86365,85.34444,0,0,0,0,0,0, false}, {1226,-476.44208,1849.68762,83.77515,0,0,180,0,0,0, false}, {1226,-459.92606,1773.58594,76.15248,0,0,22.5,0,0,0, false}, {1226,-453.84122,1767.29175,75.26473,0,0,33.75,0,0,0, false}, {1226,-440.60016,1768.44067,75.03416,0,0,112.5001,0,0,0, false}, {1226,-430.07379,1780.27405,74.4336,0,0,180,0,0,0, false}, {1226,-417.7504,1773.39832,74.64529,0,0,348.7501,0,0,0, false}, {1226,-431.63123,1757.14026,75.04019,0,0,292.5001,0,0,0, false}, {1226,-450.4314,1751.48169,75.14825,0,0,258.7501,0,0,0, false}, {1226,-422.23596,1834.09509,69.32161,0,0,22.5001,0,0,0, false}, {1226,-439.07242,1864.95874,65.99439,0,0,168.7501,0,0,0, false}, {1226,-425.73068,1900.94287,61.55693,0,0,337.5002,0,0,0, false}, {1226,-417.45319,1908.78552,60.73885,0,0,303.7502,0,0,0, false}, {1226,-400.03055,1900.16345,60.57037,0,0,202.5002,0,0,0, false}, {1226,-408.25046,1908.01746,61.12499,0,0,247.5002,0,0,0, false}, {1226,-392.37024,1916.32007,61.13234,0,0,33.7501,0,0,0, false}, {1226,-411.9794,1925.28845,60.59608,0,0,90,0,0,0, false}, {1226,-433.84735,1917.08508,60.4932,0,0,146.2499,0,0,0, false}, {1226,-384.91809,1796.19519,51.13901,0,0,168.7499,0,0,0, false}, {1237,-385.20569,1796.13977,47.27417,0,0,0,0,0,0, false}, {1237,-417.16443,1698.16235,39.44986,0,0,0,0,0,0, false}, {1237,-417.79224,1695.72205,39.24999,0,0,0,0,0,0, false}, {1237,-418.7959,1693.12122,39.0739,0,0,0,0,0,0, false}, {1237,-419.78986,1690.25366,38.83748,0,0,0,0,0,0, false}, {1237,-416.319,1700.67908,39.60598,0,0,0,0,0,0, false}, {1237,-415.70776,1703.48242,39.82454,0,0,0,0,0,0, false}, {1237,-417.65796,1704.27686,40.15187,0,0,0,0,0,0, false}, {4735,-370.33777,1959.42285,116.1686,0,0,45,0,0,0, false}, {1260,-415.98178,1752.43005,80.77085,0,0,315,0,0,0, false}, {1260,-440.48645,1964.29114,91.08034,0,0,303.75,0,0,0, false}, {1260,-569.55029,2020.10083,60.50566,0,0,326.25,0,0,0, false}, {1260,-503.29733,1856.20435,111.29027,0,0,236.2499,0,0,0, false}, {4735,-440.54678,1963.27307,96.60969,0,0,123.75,0,0,0, false}, {4735,-440.79654,1963.69898,96.1311,0,0,303.75,0,0,0, false}, {4735,-503.89484,1856.21851,116.69087,0,0,236.25,0,0,0, false}, {4735,-415.5712,1752.38733,86.09092,0,0,315,0,0,0, false}, {4735,-415.70242,1751.42651,86.53141,0,0,136.7188,0,0,0, false}, {4735,-569.46533,2019.65161,65.67571,0,0,327.1094,0,0,0, false}, {1260,-411.78894,2111.04346,80.55293,0,0,101.25,0,0,0, false}, {4735,-370.5368,1992.23377,114.95898,0,0,336.6406,0,0,0, false}, {4735,-412.52127,2111.22485,85.96409,0,0,101.2501,0,0,0, false}, {1260,-371.52063,2122.55835,144.06091,0,0,135,0,0,0, false}, {4735,-371.87042,2122.73657,149.64053,0,0,136.7189,0,0,0, false}, {4735,-371.677,2123.53442,149.60452,0,0,315,0,0,0, false}, }) do local obj = createObject(v[1], v[2], v[3], v[4], v[5], v[6], v[7]) setObjectScale(obj, v[8]) setElementDimension(obj, v[9]) setElementInterior(obj, v[10]) setElementDoubleSided(obj, v[11]) end
ESX = nil local IsMorgued, unmorgued, MorgueTime, morgueTimer, GraveyardLocation = false, false, 0, 0, Config.GraveyardLocation Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end while ESX.GetPlayerData().job == nil do Citizen.Wait(100) end PlayerLoaded = true ESX.PlayerData = ESX.GetPlayerData() end) Citizen.CreateThread(function() while true do if IsMorgued then InvalidateIdleCam() Wait(1000) end end end) -- Disable most inputs when in Graveyard Citizen.CreateThread(function() while true do Citizen.Wait(0) if IsMorgued then DisableAllControlActions(0) else Citizen.Wait(500) end end end) RegisterNetEvent('esx_morgue:morgue') AddEventHandler('esx_morgue:morgue', function(morgueTimer) if IsMorgued then return end Citizen.CreateThread(function() DoScreenFadeOut(20000) while not IsScreenFadedOut() do Citizen.Wait(1000) end StopScreenEffect('DeathFailOut') DoScreenFadeIn(20000) MorgueTime = morgueTimer local playerPed = PlayerPedId() if DoesEntityExist(playerPed) then Citizen.CreateThread(function() -- Clear player -- SetPedArmour(playerPed, 0) ClearPedBloodDamage(playerPed) ResetPedVisibleDamage(playerPed) ClearPedLastWeaponDamage(playerPed) ESX.Game.Teleport(playerPed, GraveyardLocation) IsMorgued = true loadanimdict('missarmenian2') TaskPlayAnim(playerPed, 'missarmenian2', 'corpse_search_exit_ped', 8.0, -8,-1, 2, 0, 0, 0, 0) unmorgued = false while MorgueTime > 0 and not unmorgued do playerPed = PlayerPedId() RemoveAllPedWeapons(playerPed, true) if IsPedInAnyVehicle(playerPed, false) then ClearPedTasksImmediately(playerPed) end if MorgueTime % 120 == 0 then TriggerServerEvent('esx_morgue:updateRemaining', MorgueTime) end Citizen.Wait(20000) -- Is the player trying to escape? if GetDistanceBetweenCoords(GetEntityCoords(playerPed), GraveyardLocation.x, GraveyardLocation.y, GraveyardLocation.z) > 10 then ESX.Game.Teleport(playerPed, GraveyardLocation) TriggerEvent('chat:addMessage', { template = '<div style="padding: 0.5vw; margin: 0.5vw; background-color: rgba(58, 58, 52, 0.6); border-radius: 3px;"><i class="fas fa-cross"></i> <b>Morgue</b> {1}</div>', args = { _U('morgue'), _U('escape_attempt') }, color = { 79, 0, 4 } }) end Citizen.Wait(3494) MorgueTime = MorgueTime - 20 end -- graveyard time served TriggerServerEvent('esx_morgue:unmorgueTime', -1) ESX.Game.Teleport(playerPed, Config.BornLocation) IsMorgued = false end) end end) end) Citizen.CreateThread(function() while true do Citizen.Wait(1) if MorgueTime > 0 and IsMorgued then if morgueTimer < 0 then morgueTimer = MorgueTime end draw2dText(_U('remaining_msg', ESX.Math.Round(morgueTimer)), { 0.4, 0.8 } ) morgueTimer = morgueTimer - 0.01 else Citizen.Wait(1000) end end end) RegisterNetEvent('esx_morgue:unmorgue') AddEventHandler('esx_morgue:unmorgue', function(source) unmorgue = true MorgueTime = 0 morgueTimer = 0 end) -- When player respawns / joins RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:playerLoaded', function(xPlayer) ESX.TriggerServerCallback('esx_morgue:checkMorgue', function(Morgued) if Morgued then ESX.Game.Teleport(PlayerPedId(), GraveyardLocation) end end) end) -- Create Blips Citizen.CreateThread(function() local blip = AddBlipForCoord(Config.GraveyardBlip.x, Config.GraveyardBlip.y, Config.GraveyardBlip.z) SetBlipSprite (blip, 305) SetBlipDisplay(blip, 4) SetBlipScale (blip, 1.2) SetBlipColour (blip, 76) SetBlipAsShortRange(blip, true) BeginTextCommandSetBlipName('STRING') AddTextComponentString(_U('blip_name')) EndTextCommandSetBlipName(blip) end) function draw2dText(text, pos) SetTextFont(4) SetTextProportional(1) SetTextScale(0.45, 0.45) SetTextColour(255, 255, 255, 255) SetTextDropShadow(0, 0, 0, 0, 255) SetTextEdge(1, 0, 0, 0, 255) SetTextDropShadow() SetTextOutline() BeginTextCommandDisplayText('STRING') AddTextComponentSubstringPlayerName(text) EndTextCommandDisplayText(table.unpack(pos)) end function loadanimdict(dictname) if not HasAnimDictLoaded(dictname) then RequestAnimDict(dictname) while not HasAnimDictLoaded(dictname) do Citizen.Wait(1) end end end
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 25.01.2015 -- Time: 14:33 -- To change this template use File | Settings | File Templates. -- cThread = {} cThread.__index = cThread; Threads = {} _coroutine_resume = coroutine.resume function coroutine.resume(...) local state,result = _coroutine_resume(...) if not state then outputDebugString( tostring(result), 1 ) -- Output error message end return state,result end function cThread:new(...) local obj = setmetatable({}, {__index = self}); if obj.constructor then obj:constructor(...); end return obj; end function cThread:constructor(sName, func, iAmmounts) assert(Threads[sName] == nil); self.name = sName self.func = func self.iAmmounts = iAmmounts or 1; outputConsole("[TRHEAD: "..sName.."] Constructor"); Threads[sName] = self; end function cThread:start(iMS) self.thread = coroutine.create(self.func) self.yields = 0; self.lastTickCount = getTickCount(); self:resume() self.timer = setTimer(function() if(self:status() == "suspended") then if(getTickCount()-self.lastTickCount > 5000) then self.lastTickCount = getTickCount(); outputConsole("[THREAD: "..self.name.."] Current Yields: "..self.yields); end for i = 1, self.iAmmounts, 1 do if(self:status() == "suspended") then self.yields = self.yields+1; local result = self:resume(); if(result) and (type(result) ~= "boolean") then outputDebugString(tostring(result), 1) end end end end if(self:status() == "dead") then killTimer(self.timer); self:stop() end end, iMS, 0) end function cThread:resume() return coroutine.resume(self.thread) end function cThread:stop() self.thread = nil outputConsole("[THREAD: "..self.name.."] Completed, Yields: "..self.yields); end function cThread:status() return coroutine.status(self.thread) end
local buf_set_option = function(bufnr, ...) vim.api.nvim_buf_set_option(bufnr, ...) end local buf_set_keymap = function(bufnr, ...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local on_attach = function(client, bufnr) buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc") local opts = { noremap = true, silent = true } local keys = { { "n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts }, { "n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts }, { "n", "gD", "<cmd>lua require('modules.telescope').lsp_references()<CR>", opts }, { "n", "gs", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts }, { "n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts }, { "n", "gt", "<cmd>lua vim.lsp.buf.type_definition()<CR>", opts }, { "n", "]e", "<cmd>lua vim.lsp.diagnostic.goto_prev()<cr>", opts }, { "n", "[e", "<cmd>lua vim.lsp.diagnostic.goto_next()<cr>", opts }, { "n", "<leader>d", "<cmd>lua vim.lsp.diagnostic.set_loclist()<cr>", opts }, { "n", "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts }, { "n", "<leader>a", "<cmd>lua require('modules.telescope').lsp_code_action()<CR>", opts }, { "v", "<leader>a", "<cmd>lua require('modules.telescope').lsp_range_code_action()<CR>", opts }, } for _, key in ipairs(keys) do buf_set_keymap(bufnr, key[1], key[2], key[3], key[4]) -- is there an apply-like in lua? (apply bufnr key) end if client.resolved_capabilities.document_range_formatting then buf_set_keymap(bufnr, "v", "<leader>lf", [[<cmd>'<,'>lua vim.lsp.buf.formatting()<cr>]], opts) end if client.resolved_capabilities.document_formatting then buf_set_keymap(bufnr, "n", "<leader>lf", "<cmd>lua vim.lsp.buf.formatting()<cr>", opts) vim.api.nvim_exec( [[ augroup lsp_formatting autocmd! * <buffer> autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 1000) augroup END ]], false ) end vim.api.nvim_exec( [[ augroup lsp_hover autocmd! * <buffer> autocmd CursorHold <buffer> lua vim.lsp.diagnostic.show_line_diagnostics() autocmd CursorHoldI <buffer> silent! lua vim.lsp.buf.signature_help() augroup END ]], false ) if client.resolved_capabilities.code_lens then buf_set_keymap(bufnr, "n", "<leader>l", "<cmd>lua vim.lsp.codelens.run()<CR>", opts) vim.api.nvim_exec( [[ augroup lsp_codelens autocmd! * <buffer> autocmd BufEnter,InsertLeave <buffer> lua vim.lsp.codelens.refresh() augroup END ]], false ) vim.lsp.codelens.refresh() end if client.resolved_capabilities.document_highlight then vim.api.nvim_exec( [[ hi LspReferenceRead cterm=bold ctermbg=red guibg=#464646 hi LspReferenceText cterm=bold ctermbg=red guibg=#464646 hi LspReferenceWrite cterm=bold ctermbg=red guibg=#464646 augroup lsp_document_highlight autocmd! * <buffer> autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight() autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references() augroup END ]], false ) end end return { lazy_load = function(load) load "nvim-lspconfig" load "lspkind-nvim" load "lsp-colors.nvim" load "nvim-dap" load "trouble.nvim" load "nvim-web-devicons" load "null-ls.nvim" load "nvim-cmp" load "cmp-nvim-lsp" load "cmp-vsnip" load "vim-vsnip" end, plugins = function(use) use { "neovim/nvim-lspconfig", opt = true, requires = { "onsails/lspkind-nvim", "folke/lsp-colors.nvim", "mfussenegger/nvim-dap", "folke/trouble.nvim", "kyazdani42/nvim-web-devicons", }, } use { "hrsh7th/nvim-cmp", opt = true, requires = { "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-vsnip", "hrsh7th/vim-vsnip" }, } use { "jose-elias-alvarez/null-ls.nvim", opt = true } end, setup = function() require("lsp-colors").setup { Error = "#db4b4b", Warning = "#e0af68", Information = "#0db9d7", Hint = "#10B981", } require("trouble").setup() require("todo-comments").setup() vim.fn.sign_define("LspDiagnosticsSignError", { text = "", texthl = "LspDiagnosticsSignError" }) vim.fn.sign_define("LspDiagnosticsSignWarning", { text = "", texthl = "LspDiagnosticsSignWarning" }) vim.fn.sign_define("LspDiagnosticsSignInformation", { text = "", texthl = "LspDiagnosticsSignInformation" }) vim.fn.sign_define("LspDiagnosticsSignHint", { text = "", texthl = "LspDiagnosticsSignHint" }) vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { virtual_text = false, signs = true, underline = true, -- update_in_insert = false, }) -- symbols for autocomplete vim.lsp.protocol.CompletionItemKind = { "  (Text) ", "  (Method)", "  (Function)", "  (Constructor)", " ﴲ (Field)", "[] (Variable)", "  (Class)", " ﰮ (Interface)", "  (Module)", " 襁 (Property)", "  (Unit)", "  (Value)", " 練 (Enum)", "  (Keyword)", "  (Snippet)", "  (Color)", "  (File)", "  (Reference)", "  (Folder)", "  (EnumMember)", " ﲀ (Constant)", " ﳤ (Struct)", "  (Event)", "  (Operator)", "  (TypeParameter)", } vim.cmd "highlight default link LspCodeLens Comment" vim.cmd "highlight default link LspCodeLensSign LspCodeLens" vim.cmd "highlight default link LspCodeLensSeparator LspCodeLens" local cmp = require "cmp" cmp.setup { snippet = { expand = function(args) vim.fn["vsnip#anonymous"](args.body) end, }, mapping = { ["<C-d>"] = cmp.mapping.scroll_docs(-4), ["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-Space>"] = cmp.mapping.complete(), ["<C-e>"] = cmp.mapping.close(), ["<C-y>"] = cmp.mapping.confirm { select = true }, }, sources = { { name = "nvim_lsp" }, { name = "vsnip" }, }, formatting = { format = require("lspkind").cmp_format { with_text = false, maxwidth = 50 }, }, } vim.cmd [[ imap <expr> <C-j> vsnip#jumpable(1) ? '<Plug>(vsnip-jump-next)' : '<C-j>' smap <expr> <C-j> vsnip#jumpable(1) ? '<Plug>(vsnip-jump-next)' : '<C-j>' imap <expr> <C-k> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<C-k>' smap <expr> <C-k> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<C-k>' ]] require("nvim-autopairs.completion.cmp").setup { map_cr = true, -- map <CR> on insert mode map_complete = true, -- it will auto insert `(` (map_char) after select function or method item auto_select = true, -- automatically select the first item insert = false, -- use insert confirm behavior instead of replace map_char = { -- modifies the function or method delimiter by filetypes all = "(", clojure = "", tex = "{", }, } local null_ls = require "null-ls" local sources = { null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.eslint_d, } null_ls.setup { sources = sources, on_attach = on_attach, } end, buf_set_keymap = buf_set_keymap, buf_set_option = buf_set_option, current_file_url = function() local file = vim.api.nvim_eval [[expand('%:p')]] return string.format("file://%s", file) end, on_attach = on_attach, }
local condition = Condition(CONDITION_OUTFIT) condition:setOutfit({lookType = 267}) condition:setTicks(-1) function onStepIn(creature, item, position, fromPosition) if not creature:isPlayer() then return false end creature:addCondition(condition) return true end function onStepOut(creature, item, position, fromPosition) if not creature:isPlayer() then return false end creature:removeCondition(CONDITION_OUTFIT) return true end
local state = require("loaded_state") local device = {_enabled = true, _type = "device"} function device.filedropped(file) local filename = file:getFilename() state.loadFile(filename) end return device
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Rexx LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'rexx'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local line_comment = '--' * l.nonnewline_esc^0 local block_comment = l.nested_pair('/*', '*/') local comment = token(l.COMMENT, line_comment + block_comment) -- Strings. local sq_str = l.delimited_range("'", true, true) local dq_str = l.delimited_range('"', true, true) local string = token(l.STRING, sq_str + dq_str) -- Numbers. local number = token(l.NUMBER, l.float + l.integer) -- Preprocessor. local preproc = token(l.PREPROCESSOR, l.starts_line('#') * l.nonnewline^0) -- Keywords. local keyword = token(l.KEYWORD, word_match({ 'address', 'arg', 'by', 'call', 'class', 'do', 'drop', 'else', 'end', 'exit', 'expose', 'forever', 'forward', 'guard', 'if', 'interpret', 'iterate', 'leave', 'method', 'nop', 'numeric', 'otherwise', 'parse', 'procedure', 'pull', 'push', 'queue', 'raise', 'reply', 'requires', 'return', 'routine', 'result', 'rc', 'say', 'select', 'self', 'sigl', 'signal', 'super', 'then', 'to', 'trace', 'use', 'when', 'while', 'until' }, nil, true)) -- Functions. local func = token(l.FUNCTION, word_match({ 'abbrev', 'abs', 'address', 'arg', 'beep', 'bitand', 'bitor', 'bitxor', 'b2x', 'center', 'changestr', 'charin', 'charout', 'chars', 'compare', 'consition', 'copies', 'countstr', 'c2d', 'c2x', 'datatype', 'date', 'delstr', 'delword', 'digits', 'directory', 'd2c', 'd2x', 'errortext', 'filespec', 'form', 'format', 'fuzz', 'insert', 'lastpos', 'left', 'length', 'linein', 'lineout', 'lines', 'max', 'min', 'overlay', 'pos', 'queued', 'random', 'reverse', 'right', 'sign', 'sourceline', 'space', 'stream', 'strip', 'substr', 'subword', 'symbol', 'time', 'trace', 'translate', 'trunc', 'value', 'var', 'verify', 'word', 'wordindex', 'wordlength', 'wordpos', 'words', 'xrange', 'x2b', 'x2c', 'x2d', 'rxfuncadd', 'rxfuncdrop', 'rxfuncquery', 'rxmessagebox', 'rxwinexec', 'sysaddrexxmacro', 'sysbootdrive', 'sysclearrexxmacrospace', 'syscloseeventsem', 'sysclosemutexsem', 'syscls', 'syscreateeventsem', 'syscreatemutexsem', 'syscurpos', 'syscurstate', 'sysdriveinfo', 'sysdrivemap', 'sysdropfuncs', 'sysdroprexxmacro', 'sysdumpvariables', 'sysfiledelete', 'sysfilesearch', 'sysfilesystemtype', 'sysfiletree', 'sysfromunicode', 'systounicode', 'sysgeterrortext', 'sysgetfiledatetime', 'sysgetkey', 'sysini', 'sysloadfuncs', 'sysloadrexxmacrospace', 'sysmkdir', 'sysopeneventsem', 'sysopenmutexsem', 'sysposteventsem', 'syspulseeventsem', 'sysqueryprocess', 'sysqueryrexxmacro', 'sysreleasemutexsem', 'sysreorderrexxmacro', 'sysrequestmutexsem', 'sysreseteventsem', 'sysrmdir', 'syssaverexxmacrospace', 'syssearchpath', 'syssetfiledatetime', 'syssetpriority', 'syssleep', 'sysstemcopy', 'sysstemdelete', 'syssteminsert', 'sysstemsort', 'sysswitchsession', 'syssystemdirectory', 'systempfilename', 'systextscreenread', 'systextscreensize', 'sysutilversion', 'sysversion', 'sysvolumelabel', 'syswaiteventsem', 'syswaitnamedpipe', 'syswindecryptfile', 'syswinencryptfile', 'syswinver' }, '2', true)) -- Identifiers. local word = l.alpha * (l.alnum + S('@#$\\.!?_'))^0 local identifier = token(l.IDENTIFIER, word) -- Operators. local operator = token(l.OPERATOR, S('=!<>+-/\\*%&|^~.,:;(){}')) M._rules = { {'whitespace', ws}, {'keyword', keyword}, {'function', func}, {'identifier', identifier}, {'string', string}, {'comment', comment}, {'number', number}, {'preproc', preproc}, {'operator', operator}, } M._foldsymbols = { _patterns = {'[a-z]+', '/%*', '%*/', '%-%-', ':'}, [l.KEYWORD] = {['do'] = 1, select = 1, ['end'] = -1, ['return'] = -1}, [l.COMMENT] = { ['/*'] = 1, ['*/'] = -1, ['--'] = l.fold_line_comments('--') }, [l.OPERATOR] = {[':'] = 1} } return M
local moses = require 'moses' local say = require 'say' local Vector = require 'stuart-ml.linalg.Vector' local isInstanceOf = function(x, type) if not moses.isTable(x) or x.isInstanceOf == nil then return false end return x:isInstanceOf(type) end local registerAsserts = function(assert) ----------------------------------------------------------------------------- say:set('assertion.contains.positive', 'Expected %s to contain %s') say:set('assertion.contains.negative', 'Expected %s to not contain %s') assert:register('assertion', 'contains', function(_, arguments) local collection = arguments[1] local searchFor = arguments[2] return moses.findIndex(collection, function(_,v) return v == searchFor end) ~= nil end, 'assertion.contains.positive', 'assertion.contains.negative') ----------------------------------------------------------------------------- say:set('assertion.equal_absTol.positive', 'Expected %s to equal %s within absolute tolerance %s') say:set('assertion.equal_absTol.negative', 'Expected %s to not equal %s within absolute tolerance %s') assert:register('assertion', 'equal_absTol', function(_, arguments) local x = arguments[1] local y = arguments[2] local eps = arguments[3] if x == y then return true end if isInstanceOf(x, Vector) and isInstanceOf(y, Vector) then if x:size() ~= y:size() then return false end for _,e in ipairs(moses.zip(x:toArray(), y:toArray())) do local a = e[1] local b = e[2] if math.abs(a - b) >= eps then return false end end return true end return math.abs(x - y) < eps end, 'assertion.equal_absTol.positive', 'assertion.equal_absTol.negative') ----------------------------------------------------------------------------- say:set('assertion.equal_relTol.positive', 'Expected %s to equal %s within relative tolerance %s') say:set('assertion.equal_relTol.negative', 'Expected %s to not equal %s within relative tolerance %s') assert:register('assertion', 'equal_relTol', function(_, arguments) local x = arguments[1] local y = arguments[2] local eps = arguments[3] if x == y then return true end if isInstanceOf(x, Vector) and isInstanceOf(y, Vector) then if x:size() ~= y:size() then return false end for _,e in ipairs(moses.zip(x:toArray(), y:toArray())) do local a = e[1] local b = e[2] local absA = math.abs(a) local absB = math.abs(b) local diff = math.abs(a - b) if diff >= eps * math.min(absA, absB) then return false end end return true end local absX = math.abs(x) local absY = math.abs(y) local diff = math.abs(x - y) return diff < eps * math.min(absX, absY) end, 'assertion.equal_relTol.positive', 'assertion.equal_relTol.negative') end return registerAsserts
local D= require "diapers" D()
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- function onSourceUpdate() local nodeWin = window.getDatabaseNode(); local nType = DB.getValue(nodeWin, "type", 0); local sAttackStat = DB.getValue(nodeWin, "attackstat", ""); local nValue = calculateSources() + (modifier[1] or 0); nValue = nValue + DB.getValue(nodeWin, "...attackbonus.base", 0); if sAttackStat == "" then if nType == 2 then sAttackStat = DB.getValue(nodeWin, "...attackbonus.grapple.ability", ""); elseif nType == 1 then sAttackStat = DB.getValue(nodeWin, "...attackbonus.ranged.ability", ""); else sAttackStat = DB.getValue(nodeWin, "...attackbonus.melee.ability", ""); end end if sAttackStat == "" then if nType == 2 then sAttackStat = "strength"; elseif nType == 1 then sAttackStat = "dexterity"; else sAttackStat = "strength"; end end nValue = nValue + DB.getValue(nodeWin, "...abilities." .. sAttackStat .. ".bonus", 0); if nType == 2 then nValue = nValue + DB.getValue(nodeWin, "...attackbonus.grapple.misc", 0); nValue = nValue + DB.getValue(nodeWin, "...attackbonus.grapple.size", 0); nValue = nValue + DB.getValue(nodeWin, "...attackbonus.grapple.temporary", 0); elseif nType == 1 then nValue = nValue + DB.getValue(nodeWin, "...attackbonus.ranged.misc", 0); nValue = nValue + DB.getValue(nodeWin, "...attackbonus.ranged.size", 0); nValue = nValue + DB.getValue(nodeWin, "...attackbonus.ranged.temporary", 0); else nValue = nValue + DB.getValue(nodeWin, "...attackbonus.melee.misc", 0); nValue = nValue + DB.getValue(nodeWin, "...attackbonus.melee.size", 0); nValue = nValue + DB.getValue(nodeWin, "...attackbonus.melee.temporary", 0); end setValue(nValue); end function action(draginfo) local rActor, rAttack = CharManager.getWeaponAttackRollStructures(window.getDatabaseNode()); rAttack.modifier = getValue(); rAttack.order = tonumber(string.sub(getName(), 7)) or 1; ActionAttack.performRoll(draginfo, rActor, rAttack); return true; end function onDragStart(button, x, y, draginfo) return action(draginfo); end function onDoubleClick(x,y) return action(); end
function LmMinion.VersionMigrationAdapter.migrate() -- migration von x zu 1.2 if type(LmMinion.Options.minionAdventureLength) == "string" then -- es sollte table sein! LmMinion.Options.minionAdventureLength = LmMinion.PossibleAdventureLength[2] -- ausgabe durchfuehren print("Addon Update erfolgreich. Gespeicherte Daten uebernommen.") end end
------------------------------------------------------------------------------------------------------------------------------------------------------------- -- VEAF spawnable aircrafts editor tool for DCS World -- By Zip (2021) -- -- Features: -- --------- -- * This tool processes a mission and update flight plans. -- * The flight plans templates can be customized -- -- Prerequisite: -- ------------ -- * The mission file archive must already be exploded ; the script only works on the mission files, not directly on the .miz archive -- -- Basic Usage: -- ------------ -- Call the script by running it in a lua environment ; it needs the veafMissionEditor library, so the script working directory must contain the veafMissionEditor.lua file -- -- veafSpawnableAircraftsEditor.lua <mission folder path> <settings file> [-debug|-trace] -- -- Command line options: -- * <mission folder path> the path to the exploded mission files (no trailing backslash) -- * <settings file> the path to the settings file -- * -debug if set, the script will output some information ; useful to find out which units were edited -- * -trace if set, the script will output a lot of information : useful to understand what went wrong ------------------------------------------------------------------------------------------------------------------------------------------------------------- veafSpawnableAircraftsEditor = {} ------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Global settings. Stores the script constants ------------------------------------------------------------------------------------------------------------------------------------------------------------- --- Identifier. All output in the log will start with this. veafSpawnableAircraftsEditor.Id = "SPAWN_AC_EDITOR - " --- Version. veafSpawnableAircraftsEditor.Version = "0.0.1" -- trace level, specific to this module veafSpawnableAircraftsEditor.Trace = false veafSpawnableAircraftsEditor.Debug = false ------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Do not change anything below unless you know what you are doing! ------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Utility methods ------------------------------------------------------------------------------------------------------------------------------------------------------------- function veafSpawnableAircraftsEditor.logError(message) print(veafSpawnableAircraftsEditor.Id .. message) end function veafSpawnableAircraftsEditor.logInfo(message) print(veafSpawnableAircraftsEditor.Id .. message) end function veafSpawnableAircraftsEditor.logDebug(message) if message and veafSpawnableAircraftsEditor.Debug then print(veafSpawnableAircraftsEditor.Id .. message) end end function veafSpawnableAircraftsEditor.logTrace(message) if message and veafSpawnableAircraftsEditor.Trace then print(veafSpawnableAircraftsEditor.Id .. message) end end function ifnn(o, field) if o then if o[field] then if type(o[field]) == "function" then local sta, res = pcall(o[field],o) if sta then return res else return nil end else return o[field] end end else return nil end end function ifnns(o, fields) local result = nil if o then result = {} for _, field in pairs(fields) do if o[field] then if type(o[field]) == "function" then local sta, res = pcall(o[field],o) if sta then result[field] = res else result[field] = nil end else result[field] = o[field] end end end end return result end function p(o, level) if o and type(o) == "table" and (o.x and o.z and o.y and #o == 3) then return string.format("{x=%s, z=%s, y=%s}", p(o.x), p(o.z), p(o.y)) elseif o and type(o) == "table" and (o.x and o.y and #o == 2) then return string.format("{x=%s, y=%s}", p(o.x), p(o.y)) end return _p(o, level) end function _p(o, level) local MAX_LEVEL = 20 if level == nil then level = 0 end if level > MAX_LEVEL then logError("max depth reached in p : "..tostring(MAX_LEVEL)) return "" end local text = "" if (type(o) == "table") then text = "\n" for key,value in pairs(o) do for i=0, level do text = text .. " " end text = text .. ".".. key.."="..p(value, level+1) .. "\n" end elseif (type(o) == "function") then text = "[function]" elseif (type(o) == "boolean") then if o == true then text = "[true]" else text = "[false]" end else if o == nil then text = "[nil]" else text = tostring(o) end end return text end ------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Core methods ------------------------------------------------------------------------------------------------------------------------------------------------------------- require("veafMissionEditor") -- Save copied tables in `copies`, indexed by original table. function _deepcopy(orig, copies) copies = copies or {} local orig_type = type(orig) local copy if orig_type == 'table' then if copies[orig] then copy = copies[orig] else copy = {} copies[orig] = copy for orig_key, orig_value in next, orig, nil do copy[_deepcopy(orig_key, copies)] = _deepcopy(orig_value, copies) end setmetatable(copy, _deepcopy(getmetatable(orig), copies)) end else -- number, string, boolean, etc copy = orig end return copy end function veafSpawnableAircraftsEditor.editCategory(coa_name, country_name, category_name, category_t) local function parseTable(o, level) local MAX_LEVEL = 50 if level == nil then level = 0 end if level > MAX_LEVEL then logError("max depth reached in parseTable : "..tostring(MAX_LEVEL)) return end if (type(o) == "table") then for key,value in pairs(o) do veafSpawnableAircraftsEditor.logTrace(string.format("parseTable %s", p(key))) if tostring(key):lower() == "groupid" then veafSpawnableAircraftsEditor.maxGroupId = veafSpawnableAircraftsEditor.maxGroupId + 1 o[key] = veafSpawnableAircraftsEditor.maxGroupId veafSpawnableAircraftsEditor.logDebug(string.format("veafSpawnableAircraftsEditor.maxGroupId=[%s]", p(veafSpawnableAircraftsEditor.maxGroupId))) elseif tostring(key):lower() == "unitid" then veafSpawnableAircraftsEditor.maxUnitId = veafSpawnableAircraftsEditor.maxUnitId + 1 o[key] = veafSpawnableAircraftsEditor.maxUnitId veafSpawnableAircraftsEditor.logDebug(string.format("veafSpawnableAircraftsEditor.maxUnitId=[%s]", p(veafSpawnableAircraftsEditor.maxUnitId))) end parseTable(value, level+1) end end end if not category_t then return end veafSpawnableAircraftsEditor.logDebug("Checking in settings") for setting, setting_t in pairs(settings) do local coalition = setting_t.coalition veafSpawnableAircraftsEditor.logDebug(string.format(" coalition=%s",p(coalition))) if not(coalition) or coalition:upper() == coa_name:upper() then veafSpawnableAircraftsEditor.logDebug(" Coalition checked") local country = setting_t.country veafSpawnableAircraftsEditor.logDebug(string.format(" country=%s",p(country))) if not(country) or country:upper() == country_name:upper() then veafSpawnableAircraftsEditor.logDebug(" Country checked") local category = setting_t.category veafSpawnableAircraftsEditor.logDebug(string.format(" category=%s",p(category))) if not(category) or category:upper() == category_name:upper() then veafSpawnableAircraftsEditor.logDebug(" Category checked") for _, settingsGroup in pairs(setting_t.groups) do if settingsGroup.name then local newGroup = _deepcopy(settingsGroup) parseTable(newGroup) local groupNameUpper = settingsGroup.name:upper() veafSpawnableAircraftsEditor.logDebug(string.format(" groupNameUpper=%s",p(groupNameUpper))) -- check if the aircraft group exists local existingIndex = nil for groupIndex, group in pairs(category_t.group) do if group.name and group.name:upper() == groupNameUpper then -- found the group existingIndex = groupIndex break end end veafSpawnableAircraftsEditor.logDebug(string.format(" existingIndex=%s",p(existingIndex))) if existingIndex then -- replace an existing group category_t.group[existingIndex] = newGroup else -- append a new group table.insert(category_t.group, newGroup) end end end end end end end end function veafSpawnableAircraftsEditor.editGroups(missionTable) -- find max maxGroupId and unitId veafSpawnableAircraftsEditor.maxGroupId = 1 veafSpawnableAircraftsEditor.maxUnitId = 1 local function parseTable(o, level) local MAX_LEVEL = 50 if level == nil then level = 0 end if level > MAX_LEVEL then logError("max depth reached in parseTable : "..tostring(MAX_LEVEL)) return end if (type(o) == "table") then for key,value in pairs(o) do veafSpawnableAircraftsEditor.logTrace(string.format("parseTable %s", p(key))) if tostring(key):lower() == "groupid" then local nVal = tonumber(value or "0") veafSpawnableAircraftsEditor.logTrace(string.format("groupid=[%s]", p(value))) if nVal > veafSpawnableAircraftsEditor.maxGroupId then veafSpawnableAircraftsEditor.maxGroupId = nVal veafSpawnableAircraftsEditor.logTrace(string.format("veafSpawnableAircraftsEditor.maxGroupId=[%s]", p(veafSpawnableAircraftsEditor.maxGroupId))) end elseif tostring(key):lower() == "unitid" then local nVal = tonumber(value or "0") veafSpawnableAircraftsEditor.logTrace(string.format("unitid=[%s]", p(value))) if nVal > veafSpawnableAircraftsEditor.maxUnitId then veafSpawnableAircraftsEditor.maxUnitId = nVal veafSpawnableAircraftsEditor.logTrace(string.format("veafSpawnableAircraftsEditor.maxUnitId=[%s]", p(veafSpawnableAircraftsEditor.maxUnitId))) end end parseTable(value, level+1) end end end parseTable(missionTable) veafSpawnableAircraftsEditor.logDebug(string.format("veafSpawnableAircraftsEditor.maxGroupId=[%s]", p(veafSpawnableAircraftsEditor.maxGroupId))) veafSpawnableAircraftsEditor.logDebug(string.format("veafSpawnableAircraftsEditor.maxUnitId=[%s]", p(veafSpawnableAircraftsEditor.maxUnitId))) local coalitions_t = missionTable["coalition"] -- browse coalitions for coa, coa_t in pairs(coalitions_t) do local coa_name = coa_t["name"] veafSpawnableAircraftsEditor.logTrace(string.format("Browsing coalition [%s]",coa_name)) local countries_t = coa_t["country"] -- browse countries for country, country_t in pairs(countries_t) do local country_name = country_t["name"] veafSpawnableAircraftsEditor.logTrace(string.format("Browsing country [%s]",country_name)) -- process helicopters veafSpawnableAircraftsEditor.logTrace("Processing helicopters") local helicopters_t = country_t["helicopter"] if helicopters_t then veafSpawnableAircraftsEditor.editCategory(coa_name, country_name, "helicopter", helicopters_t) end -- process airplanes veafSpawnableAircraftsEditor.logTrace("Processing airplanes") local planes_t = country_t["plane"] if planes_t then veafSpawnableAircraftsEditor.editCategory(coa_name, country_name, "plane", planes_t) end end end return missionTable end function veafSpawnableAircraftsEditor.processMission(filePath, settingsPath) -- load the radioSettings file veafSpawnableAircraftsEditor.logDebug(string.format("Loading settings from [%s]",settingsPath)) local file = assert(loadfile(settingsPath)) if not file then veafMissionEditor.logError(string.format("Error while loading settings file [%s]",settingsPath)) return end file() veafSpawnableAircraftsEditor.logDebug("Settings loaded") -- edit the "mission" file veafSpawnableAircraftsEditor.logDebug(string.format("Processing mission at [%s]",filePath)) local _filePath = filePath .. "\\mission" local _processFunction = veafSpawnableAircraftsEditor.editGroups veafMissionEditor.editMission(_filePath, _filePath, "mission", _processFunction) veafSpawnableAircraftsEditor.logDebug("Mission edited") end veafSpawnableAircraftsEditor.logDebug(string.format("#arg=%d",#arg)) for i=0, #arg do veafSpawnableAircraftsEditor.logDebug(string.format("arg[%d]=%s",i,arg[i])) end if #arg < 2 then veafSpawnableAircraftsEditor.logError("USAGE : veafSpawnableAircraftsEditor.lua <mission folder path> <settings file> [-debug|-trace]") return end local filePath = arg[1] local settingsPath = arg[2] local debug = arg[3] and arg[3]:upper() == "-DEBUG" local trace = arg[3] and arg[3]:upper() == "-TRACE" if debug or trace then veafSpawnableAircraftsEditor.Debug = true veafMissionEditor.Debug = true if trace then veafSpawnableAircraftsEditor.Trace = true veafMissionEditor.Trace = true end else veafSpawnableAircraftsEditor.Debug = false veafMissionEditor.Debug = false veafSpawnableAircraftsEditor.Trace = false veafMissionEditor.Trace = false end veafSpawnableAircraftsEditor.processMission(filePath, settingsPath)
--------------------------------------------------------------------- -- Project: irc -- Author: MCvarial -- Contact: mcvarial@gmail.com -- Version: 1.0.0 -- Date: 31.10.2010 --------------------------------------------------------------------- local tabs = {} local edits = {} local memos = {} local messages = {} local gridlists = {} local memolines = {} local x,y = guiGetScreenSize() ------------------------------------ -- Irc client ------------------------------------ addCommandHandler("irc", function () if window then guiGridListSetSortingEnabled(gridlist,true) guiSetInputEnabled(true) guiSetVisible(window,true) guiSetVisible(exitbutton,true) showCursor(true) else triggerServerEvent("startIRCClient",getLocalPlayer()) end end,false,false ) addEvent("showIrcClient",true) addEventHandler("showIrcClient",root, function (info) window = guiCreateWindow(0.25,0.3,0.5,0.6,"Internet Relay Chat",true) exitbutton = guiCreateButton(0.95,0.03,0.2,0.03,"Close",true,window) tabpanel = guiCreateTabPanel(0,0.08,1,0.9,true,window) guiSetProperty(exitbutton,"AlwaysOnTop","True") --guiWindowSetMovable(window,false) --guiWindowSetSizable(window,false) for i,inf in ipairs (info) do local chantitle = inf[1] local tab = guiCreateTab(chantitle,tabpanel) local edit = guiCreateEdit(0.005,0.915,0.74,0.07,"",true,tab) local memo = guiCreateMemo(0.005,0.01,0.74,0.9,"",true,tab) local gridlist = guiCreateGridList(0.75,0.01,0.245,0.99,true,tab) local column = guiGridListAddColumn(gridlist,"Users",0.8) guiGridListSetSortingEnabled(gridlist,true) for i,user in ipairs (inf[2]) do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist,row,column,getIconFromLevel(user[2])..user[1],false,false) end tabs[chantitle] = tab edits[chantitle] = edit memos[chantitle] = memo gridlists[chantitle] = gridlist memolines[memo] = {} end guiBringToFront(exitbutton) guiSetInputEnabled(true) showCursor(true) end ) addEventHandler("onClientGUIAccepted",root, function (editbox) for chantitle,edit in pairs (edits) do if edit == editbox then triggerServerEvent("ircSay",getLocalPlayer(),chantitle,guiGetText(editbox)) guiSetText(editbox,"") return end end end ) addEventHandler("onClientGUIClick",root, function (btn) if btn ~= "left" then return end if source == exitbutton then guiSetInputEnabled(false) guiSetVisible(window,false) guiSetVisible(exitbutton,false) showCursor(false) end end ) addEvent("onClientIRCMessage",true) addEventHandler("onClientIRCMessage",root, function (user,chantitle,message) memoAddLine(memos[chantitle],user..": "..message) end ) addEvent("onClientIRCUserJoin",true) addEventHandler("onClientIRCUserJoin",root, function (user,chantitle,vhost) local row = guiGridListAddRow(gridlists[chantitle]) guiGridListSetItemText(gridlists[chantitle],row,1,user,false,false) memoAddLine(memos[chantitle],"* "..user.." ("..vhost..") joined") end ) addEvent("onClientIRCUserPart",true) addEventHandler("onClientIRCUserPart",root, function (user,chantitle,reason) for i=1,guiGridListGetRowCount(gridlists[chantitle]) do if guiGridListGetItemText(gridlists[chantitle],i,1) == user then guiGridListRemoveRow(gridlists[chantitle],i) break end if string.sub(guiGridListGetItemText(gridlists[chantitle],i,1),2) == user then guiGridListRemoveRow(gridlists[chantitle],i) break end end memoAddLine(memos[chantitle],"* "..user.." parted ("..(reason or "")..")") end ) addEvent("onClientIRCUserQuit",true) addEventHandler("onClientIRCUserQuit",root, function (user,reason) for i,gridlist in pairs (gridlists) do for i=1,guiGridListGetRowCount(gridlist) do if guiGridListGetItemText(gridlist,i,1) == user then guiGridListRemoveRow(gridlist,i) break end end end for i,memo in pairs (memos) do memoAddLine(memo,"* "..user.." ("..vhost..") quit ("..reason..")") end end ) addEvent("onClientIRCNotice",true) addEventHandler("onClientIRCNotice",root, function (user,chantitle,message) memoAddLine(memos[chantitle],"<notice> "..user..": "..message) end ) addEvent("onClientIRCUserMode",true) addEventHandler("onClientIRCUserMode",root, function (user,chantitle,positive,mode,setter,newlevel) if positive then memoAddLine(memos[chantitle],"* "..(setter or "Server").." sets mode: +"..mode.." "..user) else memoAddLine(memos[chantitle],"* "..(setter or "Server").." sets mode: -"..mode.." "..user) end end ) addEvent("onClientIRCChannelMode",true) addEventHandler("onClientIRCChannelMode",root, function (chantitle,positive,mode,setter) if positive then memoAddLine(memos[chantitle],"* "..(setter or "Server").." sets mode: +"..mode) else memoAddLine(memos[chantitle],"* "..(setter or "Server").." sets mode: -"..mode) end end ) addEvent("onClientIRCLevelChange",true) addEventHandler("onClientIRCLevelChange",root, function (user,chantitle,oldlevel,newlevel) for i=1,guiGridListGetRowCount(gridlists[chantitle]) do if guiGridListGetItemText(gridlists[chantitle],i,1) == user then guiGridListSetItemText(gridlists[chantitle],i,1,getIconFromLevel(newlevel)..user,false,false) break end if string.sub(guiGridListGetItemText(gridlists[chantitle],i,1),2) == user then guiGridListSetItemText(gridlists[chantitle],i,1,getIconFromLevel(newlevel)..user,false,false) break end end end ) addEvent("onClientIRCUserChangeNick",true) addEventHandler("onClientIRCUserChangeNick",root, function (oldnick,newnick) for i,gridlist in pairs (gridlists) do for i=1,guiGridListGetRowCount(gridlist) do if guiGridListGetItemText(gridlist,i,1) == oldnick then guiGridListSetItemText(gridlist,i,1,newnick,false,false) break end if string.sub(guiGridListGetItemText(gridlist,i,1),2) == oldnick then guiGridListSetItemText(gridlist,i,1,string.sub(guiGridListGetItemText(gridlist,i,1),1,1)..newnick,false,false) break end end end end ) function memoAddLine (memo,line) if #memolines[memo] > 16 then table.remove(memolines[memo],1) end table.insert(memolines[memo],line) return guiSetText(memo,table.concat(memolines[memo],"\n")) end local icons = {"+","%","@","&","~"} function getIconFromLevel (level) return icons[level] or "" end
-- Copyright 2021 SkyTheCodeMaster - All Rights Reserved. -- TODO: Add async mode. -- TODO: Replace file print with progress bar. local expect = require("cc.expect").expect -- Parse a `requirements.json` local file, or url. local requirementsFile = ... local function hread(url) local h,err = http.get(url) if not h then error("Error downloading " .. url .. ": " .. err) end local contents = h.readAll() h.close() return contents end local function fread(file) local f,err = fs.open(file,"r") if not f then error("Error opening " .. file .. ": " .. err) end local contents = f.readAll() f.close() return contents end local function fwrite(file,contents) local f,err = fs.open(file,"w") if not f then error("Error opening " .. file .. ": " .. err) end f.write(contents) f.close() end -- It's a URL. Let's download it. local encJSON = requirementsFile:match("https://") and hread(requirementsFile) or fread(requirementsFile) local requirements = textutils.unserializeJSON(encJSON) -- Decode the requirements and store it in `decRequirements` if not requirements then error("Couldn't unserialize requirements!") end --- Split a string by it's separator. -- @tparam string inputstr String to split. -- @tparam string sep Separator to split the string by. -- @treturn table Table containing the split string. local function split(inputstr, sep) expect(1,inputstr,"string") expect(1,sep,"string","nil") sep = sep or "%s" local t={} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do table.insert(t, str) end return t end -- Will get all files in a directory, with a download link and path. local function getFiles(recursive,url,filter,path) local contents if filter then local splitURL = split(url,"/") local apiURL = ("https://api.github.com/repos/%s/%s/contents/%s?ref=%s"):format(splitURL[3], splitURL[4], table.concat(splitURL, "/", 7), splitURL[6]) -- Thanks, JackMacWindows! contents = textutils.unserializeJSON(hread(apiURL)) else contents = textutils.unserializeJSON(hread(url)) end local files = {} for _,v in pairs(contents) do if v.type == "dir" and recursive then local newFiles = getFiles(true,v["_links"].self,false,fs.combine(path,v.name)) for _,file in pairs(newFiles) do table.insert(files,file) end end if v.type == "file" then local name = fs.getName(v.path) local path = fs.combine(path,name) table.insert(files,{url=v.download_url,path=path}) end end return files end -- Download the output of getFiles. local function downloadFiles(files) for _,v in pairs(files) do local content = hread(v.url) print("Downloading",v.path) fwrite(v.path,content) end end for url,data in pairs(requirements) do if not data.folder then -- Easy, just download file into specified path. print("Collecting",data.path) fwrite(data.path,hread(url)) else local folder = getFiles(data.recursive,url,true,data.path) downloadFiles(folder) end print("Collected",data.path) end
object_draft_schematic_space_reverse_engineering_droid_interface_scanner = object_draft_schematic_space_reverse_engineering_shared_droid_interface_scanner:new { } ObjectTemplates:addTemplate(object_draft_schematic_space_reverse_engineering_droid_interface_scanner, "object/draft_schematic/space/reverse_engineering/droid_interface_scanner.iff")
data:extend( { { type = "item", name = "solder-alloy", icon = "__Engineersvsenvironmentalist__/graphics/icons/metalworking/alloys/solder-plate.png", flags = {"goes-to-main-inventory"}, subgroup = "alloy-processing", order = "solder", stack_size = 200 }, { type = "recipe", name = "solder-alloy", energy_required = 7, enabled = false, category = "mixing-furnace", ingredients = { {"tin-plate", 2}, {"lead-plate", 3}, }, results = {{"solder-alloy",5}}, }, { type = "recipe", name = "solder-alloy2", energy_required = 7, enabled = false, category = "mixing-furnace", ingredients = { {"iron-gear-wheel", 50}, {"lead-plate", 3}, }, results = {{"solder-alloy",5}}, }, } )
_G.build_mirror = {} _G.minetest = { registered_nodes = {} } dofile("./rotate_node.lua") dofile("./functions.lua") local function pos_to_string(pos) return pos.x .. "/" .. pos.y .. "/" .. pos.z end describe("get_mirrored_positions", function() it("returns the proper coordinates", function() local test_set = { { pos = { x=5, y=5, z=5, param2=0 }, mirror_pos = { x=0, y=0, z=0 }, axes = { x = true, y = true }, expected = { { x=-5, y=5, z=5, param2=0 }, { x=5, y=-5, z=5, param2=0 }, { x=-5, y=-5, z=5, param2=0 } } },{ pos = { x=5, y=5, z=5, param2=0 }, mirror_pos = { x=0, y=0, z=0 }, axes = { x = true, z = true }, expected = { { x=-5, y=5, z=5, param2=0 }, { x=5, y=5, z=-5, param2=0 }, { x=-5, y=5, z=-5, param2=0 } } },{ pos = { x=5, y=5, z=5, param2=0 }, mirror_pos = { x=0, y=0, z=0 }, axes = { x = true, y = true, z = true }, expected = { { x=-5, y=5, z=5, param2=0 }, { x=5, y=5, z=-5, param2=0 }, { x=5, y=-5, z=5, param2=0 }, { x=-5, y=-5, z=5, param2=0 }, { x=5, y=-5, z=-5, param2=0 }, { x=-5, y=5, z=-5, param2=0 }, { x=-5, y=-5, z=-5, param2=0 } } } } for i, set in ipairs(test_set) do local msg = "testset #" .. i local expected_positions = {} for _, pos in ipairs(set.expected) do expected_positions[pos_to_string(pos)] = true end local list = build_mirror.get_mirrored_positions(set.pos, {}, set.mirror_pos, set.axes) assert.equal(#set.expected, #list, msg) for j, pos in ipairs(list) do assert.equal(true, expected_positions[pos_to_string(pos)], msg .. " expected#" .. j) end end end) end)
local augroup = vim.api.nvim_create_augroup local autocmd = vim.api.nvim_create_autocmd local utils = require("utils") -- Do not use smart case in command line mode, extracted from -- https://vi.stackexchange.com/a/16511/15292. -- You can dynamically toggle smartcase using autocmds, -- so when in a : command line, it is off -- and when in a <Leader> command line it is on local _id = augroup("dynamic_smartcase", {clear = true}) autocmd({"CmdLineEnter"}, { command = "set nosmartcase", group = _id, desc = "nosmartcase when entering the commandLine" }) autocmd({"CmdLineLeave"}, { command = "set smartcase", group = _id, desc = "set smartcase when leaving the commandLine" }) -- terminal settings _id = augroup("term_settings", {clear = true}) autocmd({"TermOpen"}, { pattern = {"*"}, callback = function() vim.api.nvim_command('setlocal norelativenumber nonumber') end, desc = "terminal has no line numbering in the buffer cause that looks weird", group = _id }) autocmd({"TermOpen"}, { pattern = {"*"}, command = "startinsert", group = _id, desc = "go to insert mode by default and start writing the command" }) -- More accurate syntax highlighting _id = augroup("accurate_syn_highlight", {clear = true}) autocmd({"BufEnter"}, {command = "syntax sync fromstart", group = _id}) -- TODO: Return to last cursor position when opening a file _id = augroup("auto_create_dir", {clear = true}) autocmd({"BufWritePre"}, { pattern = {"*"}, callback = require('utils').may_create_dir, group = _id }) autocmd({ "CursorMoved", "BufWinEnter", "BufFilePost", "InsertEnter", "BufWritePost" }, {callback = function() require("config.winbar").get_winbar() end}) -- FIXME: this does not work -- _id = augroup("open_neotree_after_session_load", {clear = true}) -- autocmd({"SessionLoadPost"}, { -- group = _id, -- callback = function() vim.cmd([[Neotree position=left]]) end -- })
for l, e in pairs({ (function(e, ...) local F = "This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu"; local b = e[((#{ 49; 894; 769; 433; } + 364094226))]; local U = e['MDFgDmBDv']; local C = e[(783948268)]; local V = e[((#{ (function(...) return 27, 836; end)() } + 278213929))]; local P = e["uslou"]; local Z = e[(988649518)]; local n = e[((#{} + 819263097))]; local w = e[(328397937)]; local E = e[(822910855)]; local O = e[(122607077)]; local q = e[(329368861)]; local o = e[(709284223)]; local A = e[(353521319)]; local i = e[((#{ 484; (function(...) return 298, 894; end)() } + 358174249))]; local c = e[((#{ 178; 115; 217; 74; (function(...) return 907, 219, 666, 478, ...; end)(936, 573, 569, 537) } + 547369195))]; local N = e.MjpWkGa; local X = e['vHRPpn1']; local r = e[(533994861)]; local j = e[((#{ 433; 978; (function(...) return 816, 255, ...; end)(556, 225, 983) } + 560790270))]; local v = e[((#{} + 4569100))]; local x = e[(966801928)]; local I = e[((#{ (function(...) return 684, 780, 153, 421; end)() } + 329270338))]; local u = e[((68489179 - #("concat was here")))]; local B = e[(565579311)]; local d = e.n0yDapEkwP; local k = ((getfenv) or (function(...) return (_ENV); end)); local t, f, l = ({}), (""), (k(n)); local a = ((l["" .. e[o] .. e[c] .. "\116\51\50"]) or (l["" .. e[o] .. "\105\116"]) or ({})); local t = (((a) and (a["" .. e[o] .. e["spoGJRbj"] .. "\111\114"])) or (function(e, o) local l, n = n, i; while ((e > i) and (o > i)) do local a, t = e % d, o % d; if a ~= t then n = n + l; end; e, o, l = (e - a) / d, (o - t) / d, l * d; end; if e < o then e = o; end; while e > i do local o = e % d; if o > i then n = n + l; end; e, l = (e - o) / d, l * d; end; return (n); end)); local h = (d ^ x); local s = (h - n); local y, m, g; local p = (f["" .. e[o] .. "\121\116" .. e.g6oNkxmF]); local G = (f["\99" .. e[r] .. "\97" .. e[A]]); local h = (f["\103\115" .. e[b] .. e[o]]); local h = (f["\115\117" .. e[o]]); local f = (l["\114\97\119\115\101" .. e["XOZy1j2eh"]]); local D = (l["\115" .. e.g6oNkxmF .. e[u] .. e.g6oNkxmF .. e[w] .. "\116"]); local T = ((l["" .. e[E] .. e['afXXxUq0C'] .. e["XOZy1j2eh"] .. e[r]]["\108\100\101" .. e['spoGJRbj'] .. "\112"]) or (function(e, l, ...) return ((e * d) ^ l); end)); local f = (l["" .. e.XOZy1j2eh .. e.stOSd .. "\112" .. e['g6oNkxmF']]); local Q = (l["" .. e.qs0rgbxW .. e.afXXxUq0C .. e[c] .. "\114" .. e.srbEmVTU]); local f = ((l["\117\110\112\97" .. e[w] .. "\107"]) or (l["\116\97\98\108\101"]["" .. e[b] .. "\110" .. e.qs0rgbxW .. "\97\99" .. e[X]])); local M = (l["" .. e.srbEmVTU .. "\101" .. e['XOZy1j2eh'] .. "\109" .. e["g6oNkxmF"] .. "\116" .. e["afXXxUq0C"] .. e["XOZy1j2eh"] .. e.afXXxUq0C .. e[o] .. e[u] .. e['g6oNkxmF']]); local X = (l["" .. e.XOZy1j2eh .. e.NgqHlbZ .. e["PgIyi"] .. "\117\109\98" .. e["g6oNkxmF"] .. "\114"]); local b = (l["" .. e[E] .. e.afXXxUq0C .. e["XOZy1j2eh"] .. e[r]]["\102\108" .. e.NgqHlbZ .. e['NgqHlbZ'] .. e[A]]); m = ((a["\114" .. e.srbEmVTU .. "\104" .. e[c] .. "\102\116"]) or (function(l, e, ...) if (e < i) then return (y(l, -(e))); end; return (b(l % d ^ x / d ^ e)); end)); g = (a["\98" .. e["afXXxUq0C"] .. "\110\100"]) or (function(l, e, ...) return (((l + e) - t(l, e)) / d); end); local E = (a["" .. e[o] .. e['PgIyi'] .. e['NgqHlbZ'] .. "\116"]) or (function(e, ...) return (s - e); end); y = ((a["\108" .. e.srbEmVTU .. e[r] .. "\105" .. e['xQNp8jL'] .. e['XOZy1j2eh']]) or (function(l, e, ...) if (e < i) then return (m(l, -(e))); end; return ((l * d ^ e) % d ^ x); end)); local d = (a["" .. e[o] .. e["NgqHlbZ"] .. "\114"]) or (function(l, e, ...) return (s - g(s - l, s - e)); end); if ((not(l["\98" .. e[c] .. "\116\51\50"])) and (not(l["" .. e[o] .. e[c] .. "\116"]))) then a["" .. e[o] .. "\120" .. e['NgqHlbZ'] .. "\114"] = t; a["\114\115" .. e[r] .. "\105" .. e.xQNp8jL .. "\116"] = m; a["\108\115\104" .. e[c] .. "\102" .. e.XOZy1j2eh] = y; a["" .. e[o] .. e['NgqHlbZ'] .. "\114"] = d; a["" .. e[o] .. e['PgIyi'] .. "\111\116"] = E; a["" .. e[o] .. "\97" .. e.PgIyi .. e[O]] = g; end; local x = (((l["" .. e['XOZy1j2eh'] .. "\97" .. e[o] .. e[u] .. "\101"]["\99\114" .. e["g6oNkxmF"] .. "\97\116\101"])) or ((function(e, ...) return ({ f({}, i, e); }); end))); local r = (l["" .. e.XOZy1j2eh .. e['afXXxUq0C'] .. "\98" .. e[u] .. "\101"]["\99\111\110" .. e[w] .. "\97\116"]); local o = (l["\116" .. e.afXXxUq0C .. "\98\108\101"]["" .. e[A] .. "\101\109\111\118" .. e.g6oNkxmF]); local o = (l["" .. e["XOZy1j2eh"] .. e.afXXxUq0C .. "\98\108" .. e["g6oNkxmF"]]["\105" .. e['PgIyi'] .. "\115\101\114\116"]); l["\98" .. e[c] .. "\116" .. e[q] .. e[U]] = a; local l = (N); local d = (#F + v); local a, m = ({}), ({}); for e = i, d - n do local l = G(e); a[e] = l; m[e] = l; m[l] = e; end; local u, d = (function(o) local i, t, e = p(o, n, I); if ((i + t + e) ~= j) then l = l + Z; d = d + P; end; o = h(o, V); local l, t, i = (""), (""), ({}); local e = n;local function f() local l = X(h(o, e, e), C); e = e + n; local n = X(h(o, e, e + l - n), C); e = e + l; return (n); end; l = m[f()]; i[n] = l; while (e < #o) do local e = f(); if a[e] then t = a[e]; else t = l .. h(l, n, n); end; a[d] = l .. h(t, n, n); i[#i + n], l, d = t, t, d + n; end; return (r(i)); end)("PSU|23721h101f1F1010121227927d27e1414279111l1K27E101121o21p27D1127s1c1D27R27S22G22h27m22H22h111O1p27927b27m27e131327i27k27M1127y28E28g27e151527M27g27923723727M2261E22n1V27E26022a25m23821G27e23S1E25I28U27e23K26C21021z1728C27l27E1i1D1S28b27N1129g28v2861229G1U1127928A29g1T27c1027g1122l22N29j27S28F27Z27e28728829T2a328d27e2a528H2a627d161628m27H1022m22m27e1g24425G1U2AO27d23K26q21E25k23S27E2481J25n24X26P27E26822t25h2201829D27m29M27w29g29I29O29q29s1029u1d29w27929z27P27D28K1127u27W2Ae28j28l28929j24y24y27e24G21925P29027e22821921P24c26427e25S24H21D29B2bD29F1D29n29K29V29x27B2BK2AA27o27Q2bq142bV27v27i27x2ag2aa27m2A828p27e24026821c2b527e21k25425c21x2C027j29e27D2cT2CP2cn27D27b1121T21s2bX28I2BT2C027D28n1023s2B027D1w24v25R2Ce27m22q1Y26524D27E22o162122221a2c525w21g2CK27N2Ac2dl1d29r2d12CQ2bJ2Do2aa2bh29J29z2a12A32D22d529X27W27922J22N2al22n1q1B1O22A2Al2dj2BE1E1s2bX22E22F2Du2D31019192a827M2162162CL27R21c21d2dp121121C21C2BL28A2g22g42cx23o25r22B1o27f1428k27I2g32Bl27G2Ga2gC2D127G1729C27N21C21f29x29Z1z1y29y27g2cy2gS29x2BU1Z1Z1128K28k23O25621F2d028K27G1C1C27i21B2191327B2g62102112gy2Ai2g22gT2792gP11216219162gp2Hq2102102H6152Hu2h127918182HV218172I82I52hS102I81122T22u122i82dQ2212272gQ2a42212262Aj27D1321521529J2792gA2291q2D12791p28527n2212212bl2Gh2g82gy2gA22R2142Ge1S2Fj2gR2IF2gv2gx2GZ2H02Jd2H825R22y1x2cx28k1W1w2Hh2hJ2Hl13112hn2gY2Bu2I6102hQ21621a152Ai2k72iF2hQ2iJ122AI2In2252dX2bm21521c2J327R2fL2iV2k32DV2cx2Fs27E2AI2Fw2gH2FZ2cu22T22s2bM28A2K31Y1w2K3112G62Kt2cU2kw2L727S2A92GG2eN2DK2L22g02k42132Cr2g12Lf27A2G12Lh2kK2f427E1J1J2L12GR2l32L72gA21V2Bc2lI2lD2a32GI2Cu2212202dY2Cy21Z21z2bl2bu22K22g2C02le2FM2cu2K82g621C21e2EY2H021H2AL2BU1y2132gF152jN2Gy29z2mv29j2N12121527s2bu21621b2N429z21w21x2kU112LU2G62lX162ky27D1h1H2M32G22m528A2m72M92G62MB2jC2G52K32mF2MH112Mj2mL2ND2mn2MP2K32no2k32Mt2l92lb27S2G62L52L72mU2JM2H02Mw2792N12N32hD2cY1Z1x1327G2mq2nm2lH2Gp2NS2791b1B2NW2fY2NM2md2gy2NX2dw2K41w2c02k72m52i01z1627S2hq22K22j2Iu29z2102122P0142P22LG2fO2p52lz27d2P82NW21b21a29K2mU2m529z2O72OT2Nd2J92BL2pQ2Ps2cX2k42Pw2p12oH2jd29z2162142PX2pZ2Li2P4172lJ2881a2EI2Lm28e22M22N2lP2Pb2cu2R42o82Pd2BU2qd2K92po1D1A2Iu2g623023129k2dQ2lu2DQ2Lh2nu29S2bl2gp2A92791T1T2pA2m52O42d12Hr2Ls2g22os2Li2n92Qk22k22h2FF27s21C2MZ29o1122K22n2lz2S52F12g221G2c02DQ21B21b112DQ27s2122102Sm2r729K2G72bl2DQ2Oi2sl2Qk2S8102Bu21B2172pJ2nD21C2so2792I02pI2kE2OC2MO2sG2se2AL2g622k22m2sY2s62sQ2182s42sW29J2rn2Mr2t02Lh2qy23423427d2262262RZ2BX2rd2t32Jd2op2gu2cy1S1p2PY2LC112SR2sT1229z21b2162uJ2N82s62H82562181i2qe27g2r02gH2SF2pE2TE2tc2UL2UR2OW112121Z2al2N821J2Pt2H021i2Gq2T92v82N52cY2121x2vG2G221l2M92Qc2MG2QE2G221K192Tg2pO2Pr2Vq2212242al2792bF2Cx2W82T82Nd2r92W02t12hT171623b2352Ah162ih1b1A11192M92wg111a1b2RS2G221P2hG2FP191122121s2M92r0111r2kR102x721X225192r02n82Jd2fq1121p21H1927G2HQ22x22W27D2FQ2ga122212792fQ2gp2i127i2x42M92xJ2x92xs2x221c21o2d02XC2261a2FQ2r023o24T1521827E2R02Ix2gh2Y92792yb2YD1928K2iw1p21f2ad2w42al2x721C2vs2P72Ww2YY2792hf2Wf101D1d2z81E1e2sh22B1e2z31123322S2wV1B2K72Yo2xB2Wp21C2Vf2ZI2z5102z72Z12M92ZA2X32Km2792ZD2Z82772Z81G1g2Sh2251g279310023322q27U1d2Z721p21J1B2Hf2x722X2322IU2z02JD2P82ul2102ZM2X7221310210310U310z2c02zX2zT2z92zB2pD310421b1Z1D2ZD31002vO2iU310022121w2x029z21p21i2zm2AI2iW182gX2fX21R2Zh2x12x32it2yP2wp2NK2y62NN2u02XJ2lH2Fq2fS2172172792An27923J25Y25C25w27023929127924O24L21822O24w2b627925226h23523325L2E21022c1523D22X24D2cf27924q21M25522W23Q25J27d26424j22i22S2642eC27925623G26d22q312Y2I726B21w1T26R312r27d22G1V21z21T182XW27a25w26E27023X26R2c427925k25e1X22Y313527926i24H26W23e23s313C27d21C26B262220314N313L26P22Z22P313J27D22023021l22K312k27d24426K22t3153312L1026M23k22622P314227e24o24y22j315427926O26926f2522AT27D26W25W210221313Q2792701y26z22S315X1025C22M21T24F2eh27d1y2Ix22r316323K2461s22321E28Q27d21225r24P2EB27921522E1R26227322M2CO25W25323a22c316j27d24W22026622V316w27D23426j22O257316928624t23s22U31721023t2621q26P26X313w27924S24A1X22E314927D24g23Q21O22J315X21326R1522U26u314t102481p24H22p318824823f25d316d312Z22823S27022T314Y27922G21823821t1V2Au1021O26a25n22C318u27d25U1O26822z317w2791G25j25j229314T25K23i26H26F26x318o1024226A22i22Z2182Rl2R227E24K23k216311w2j629o2lO2MS2Qb2h02M52RC2ja2W029G1029n2hu22K22i2vJ1529g191m2we2W22W9310i2m22Wb2SH2TL2Li2Og2iw21Y230319S23K21R1r2wg279277319z2s731A12x331A52wB29G1E2nv2Re2Sh2Qj2GY1X2171E142zd27g31Bf31bh1R1R31BK31BG2US1429g31bO2Vw2Od2Cu31AR21531AT31av1d2152791x2JV102JJ31b22qA2Ra31a31531bF2WW1q1q2AI29g181n2wT31aB31aD31Bf1F152i828K29g21R2jZ31bB31aj2Gy29g1d2uy31An31bW31aq2u02L831BZ31au27D319T1i21I2xX2vz102Fu31c92OH31B42qg2QE29g1A1l31Ai31BD31bp31BH2h431ds1421421427G29G1g27831D331aP28A31bF19132za2QU31D731C031Da23K22r21z2z327921j21j31dI2PF2T631CC31EM31bB31DL102gP29G21l2122i72I922k22D2M92AI31bF1c161K1K31Ci2Bo29X31aa31ac31dM1d21N21031dQ2vg29G122ry31e32oe31242KU31AS31D9279319t2372u0314z2vv31ep31Ca31En2PG2SZ2HQ31Er31ET1d132jK2iH31Ez31F11629G21k21331cM31FC31B72EQ2QH2w131dr31bs1d1Q2V631d431eA28a31D831aV21z22r2791U1u318p22G31EL2Sz2qc31b631ct1D172Gd31CX31GM31Bl14310831dV1y1Y31Dz1D1J2x02MM31E42of31d631gt31EC31fS23k3150316Q31C31022S2L62m42ku31Ce1121121131dv2fu31hJ1L2R131Hn2oe31e613311Q31hp31Fp31GU27R2LH2ll2A931c52U92AD2PD2A42K82T32If2MU2S62UP2HJ2Qn111S1u2Lc2v22AL2iN2vV2s72TF2pe2sa31J62G12212222sK2zs2iu2dQ2Gw2Lv2dq2121y2sP2G12Tn2sg31eR2mU31Ja29Z31Jc31jT31jG2s231JI2SG2h42un31Jn31JP2tM2IF2t32S62g621b2tv28a31Jn2112S431K22Lv2ii22t31k52G131kD2S42ro2Lw2Q12GQ2A931Ej31IP2FX2jD31IS31K931jr31iv2OH31Ix2cY2hI2qT2K331J22l831j52QK2rD2K731ja2qI2w32W531IQ31162N62jP2vA31K72v42V331H52Ob2SN2c031LH31Ld31lJ2t031kj2gV2H531lN31jo2c02n831LR2cy31Jf2h22td31lg31gL31lI31jD2G231LL2ox1W2uo2gz31lO31m52mY2vd31m82232nA31MB31lv31mD31lX2To2oH31mH112oy2Px29z31M42T62Oq2g22vi2vW2UQ2NI2VN31kh2T62Z22pE22T22v31N22H02Vy2Vw2kI2H72ND31nA2v931kj2bU22T31Km31NO2V731nB31nx2qK2LU29z31Il2Kn2be31D22fg31iQ2S02gr31Kz2sd31L12t52S731l52Sh2sB31K12v32Dq2Si31jh31jA2a431Jl2a42SV2vc31k12S631IS31162Sq2ss2su2vA2sX2S22Lu27i2Qw28a2A931Hh2m32yG21R31ah2g02a831fy2Qo2GJ2cy2i11131Ln2la31l82Hv312b2l831Dj2ra2jR2Nd2102Lr31NW2pd2I02I22AI2th2kd162K72Jd2hq2Ta31q42oU31NY31n131j02pD2Gv2oz31ln2pV31nj31fo2cx2Iw1b31C631h32qp31PJ2I231Pm2lB31J031L728A31lm2GZ23o26e23h29N2qN2RX2S12je26g22431cW27s27G1v29n2s331o02U031o22Fo31IM2Qz2r131o727r2wd2t02bS2sG2Rk2t02Sd2M52uc2o52Cv2O81v31h02Sg2BW2S22lH31c82dZ2L02Ge2792c32cg22825C2dC27E22a1I315r27d26824d21p29627D26O23T21l2bB2m32eX2es2Ev2lV2Et2L72dm2br2Cw31AN31S52u131Rk31o431P71024D313K27922O101W1931432792AW21E31Sl31tL25X1l2em31rO2W731Sz27s31t12cS31Gj2cU31RS2Pe31T72a431O32aK27931tD2B11v25j31tO102341821k2e727d22o1u21Q31Sh2792B825h31Ts2eo31tU2Bi2Dn2Bp31T031TZ31t231sz2ez2A231S62fo319X2yk2r12612652al22s1521h1324021d22q21M24021r22k237233234311622I2192191G21f21Q1S22l2iU2351x1v21i22722c23i1V29j2241r1k22x24826D23z23U25F24226o26g22I2342M523423e2R122v2R523J21j21W22n1r21r21223R26E2m92301F1621E1121n2131523K25Q2rS31UR27n31rQ2A431rq2Dq31RQ31FZ2V431PU31rG31BB31222Vw2t731Q32tj31Oe2AI23n26b25831362HE2X02G22V32Ih2k82XJ31XO2IG2I92v531de31N0216182Fq2xj31KJ2yF26s2302JK2R02fq2M131lc311x2K82x731Y631yf2m531YH22x2j731yl191o31hA23l23M2iz2R031Cg27I31f62BL2X721P21N172R02hL21526u31362Gh31ja2XJ1Z31YC31yE2y731N82zQ23o26S1v23331202fQ2Jy31r731yF2IF31YR2nL31Ya2SZ31yH22F31gf2zQ2fQ31I531C423E22K2Gp1731ZF31zh31IQ31nF2yf25R1622531De2YL31HX29g1o2gQ2Z031Nl31112WW21C21n2r12zX21M2P931172g2321331032zE21b1w1E2fq31042t7310621031bG277310422k2zg2Zi21C32172ZW1C2uL1Y1C2Fq2Z721221832142zx2S62z722X22R321431002t72zD31xV2162222z61C21l21L2Gh2wZ319831092y82d02rr21C320w1i1I2X321v32142M12x321z31e231z8221322w2791l1L111d1P31dP10322p1121y31Eg279322M2iF323922k22731D231082G2311V323D1h31n021e1G2nU2Rr21231nd102RR22121U2R1322M21Q31e2323921x22e1I3108323923323j1H322p2r023N26D22N322F321q22322327I31Zb31ZD1a320H31zi32381d320t31201131rQ310u322k322C2g23210310D3118321p321E321P310621b1x1f2fQ31062T7323K2102161F3108310631G631E22z731RU27s324Y321P2z721B321t321V321R321x321z321R21C1x310c321Q322R32252Zb21J31Dd2Zd2HF2Iw21s22y31iq322H323W323o22122G326232392k8322u22k22631am322m323m3238322q1z21f324C322P322Q323U29x3239323y2R1326L3242279322u21x22f1j2nu322u23323G1i2m12yf24F31wt29O2Hf22Z22Z324M31ZC31ZE122iW320I2IV2151a31cw29T31ZG324r31lU31ya31zm31Yd31yE31Ep31YH25125h31zw192d731oA2bl320029X320231232pd2Z02IF310u31Y62z02S6324y1W31bA2Z73273325331oe321e1Z31d2310622k22a325M325z1Y31Am322621129e31041y21a311d1E310022T22w310h325S325u192zX328S328W328V10321E31JA325d2103237323K22k310b328W32272Ze21Z220311W321e329o2761F2x3323z322I2G23299323n2SH22431BA31061y2191E321j2ze2sz27731ZS26M24e31B01f2za24224231b232Aq26s26j24b32Au2hF2442442GH21331pD325d2m5323k22t22Y1e3108323k31y63106324N277324q28921523r24t31Iq2S632262M52P82IW32Bq31iq21231cL32a831zs26532br32a82za24G24g32AZ1f31ZS25Z24N32B41c24i24i2gH2S632bB27d323K216210325i31e132a932Be32Am27732CB26G25j24R2D127724N32cE31i132Au31ep32Cn32cp325j32cs32Bf32CV32a932BL1f32Bn2FX21531hA310622121y311w323K21C2142J72rr2102141d323s323o22K32aH32D521C329632ac21c2172KR2Rr1Y21F323R1H32Cn2131c32bh310921B2111b32Ef2ii22Z32cQ325d2S6323K1z21932CQ32Do2M52nU31Zs24W25c323N310825825832B831PD323K322z31E22Rr31Y6310823O26g24T25d2D1310825c32eZ2j8323010323k324n310832dg327z22h316k327Z327u31ZJ2c031zl31Zn328621c21631AY31ZR26s24r263328b25L25l31zz2Y732013121320331yP320w2z03252320x3216325Y32gL328w311b1D2FQ32262S6310432dT329E310022K2282yA2WP324n327r32GN2zq310V2yr2X7325x3120327t324r2IW26B32GA327V32fv101x320D1728k27b324f22y311l1426526531R72n82if2BU31y62N831Eo31xq2po2101x1431q22PO2t72GP31xV23R26F2QE26d26D27I31rq2xj21p21G328527S324f324F2QE26G26G31B22k72S62i032I432i631oE32I926B25R24U29S28k26l26L31yO328G324v31YS2y731yU1a2h924132J232091926Q26Q32Cj29J2x72102182Xf2yr32872zR32bv320y2m52ZX2m532bu27D321E2m5325D32a732F621T31df322m2S6326l2192Jk326n326p32E331zQ32EW26s22d2i2326g323K27N2GR21831fL323E3271322Q31Y6323x22H31bA32262JD32kr2W732kt32gF32kv31Ba321E2V332L0326T1132KU326H32kw324v21C32kp32AF2k8323932lB2x332LD32a8324w2r532aF22132lM322029J323X32FL326l2S62M131xV21v1Y29S2nU1N1M2rS2r927b323231eP1m32m631Js101N1n31xm31z032La32gF32MG2xk2161m32MG32mA2T732mC2G232Lg32mf32Mh2K832mJ31y632MM21P32mo32Mq323321P2141K32322HF324F23532M6326G2hn29s2iW21T22Y2JB2g221B31S332Kh22g21532M332EB1G21321232ng21532ni32NK2t732kH21Z21i32nr31082162172rS32lF32Kq323o32LI32l22nT32LC32kX311832KZ32oB323F32oD32lQ32lM32l62al32l832LJ32l332oF32hA32nx32Nj2fx32EV1H31ZS21M22332o41g21l21k32O832MV32oQ32Ol326g32LL32oG32Mu32oA31xM32OR32oE32Pc321831y132Op32oJ32ks32mk32Pi32LR31Ba2Z032p832PN32l132PP32oM32ai1F32NH32Ow2gh32e2326G31zS21522G32p322422532p732PF32oc32px32Pb32pR32A032oi32PG32Pa2rR21X21X112NU32OO32lH32Ok32qF32l432Ou32NY2fX32KB323N31zS1r32Ow2NU310822J22I32QC32qS32po32lk32qH32152pd32p932QU323o32QN32qp1h32qR32Pb32Qe32rB32Lm32Pt32QD32qT32ro32pZ2g232A7323X32K632PW21C21a29n322U32s029N31z822k22129e32K829J322P31Zs1723A29S322P2nU23623732O832qj32Rn32OS1132Ri2Nu32Bw21522823F32nZ2S62Rr21B2121832dW32sP32qO32sR320y32rw326h32Ry32L921C31zQ32s331zQ32S632S832lH32K91I31Zs26q23N32Sg1i2NU23L23K2rs21X21y122Zd32A631ba32rX31DF326L32NM32771j32NL31S332Tf32s932ob32ti31zs26Y23v32tN2nU23t23s32tS32tu32dC32rv32Ty32t832u0322q21C1h31cw32s332Ur27932u732TH32sB32tj26s26A24332UE1H24124032UI122zA322632t72X332T9326l1G31c632S332VF32uv1K2sH32tG32rm32UA26S25w24l32V324924832m732lP32Qg32Ls325Z32sX32ob2V332392Y532rZ32Ly1j31Xv25F24I32nR24g24H32Sl2BL32Ma32W41032MA32N632n81l32nA26D25i32WD326G24K32Vr27N32rI2i8322M1J311t323921z22C31D2323921p21A1I2hF323S21o215142R032x9219320x32x921811277322M1I1z32Pw32x132x3322q32X531D032X9211182zd2NU324f23v32J62Wb24w24x32R831AN2K82Hq31Y62PK2WL2z82Ie29X2IH31Y62I52s62Ih2101Y2Ic1832Yh29j2I831Xv26625B29s2Ai25725632o81L31fG32h532wH31Za2xm2r028A324F26532YX2rE25B25A32o82V32Hq2k82Hu31y62hq2R92aI2gP1H21O2101932Zl2qx21C1K2hO31Y72O92262M92iH32Ij1828K32Zm21o21A2hk122I52m532WW21O21b2iL32yN32Zs1N31EW32zW330127s33042171628a2hU2Lu2hU2Lh31IO10319A27926F24925X22u23w314t22r26Y1k21j26z31781026822v25T32N2315l315M23n21F317e21C25a23o251272314T21v21m1E25F26t319727924026921d316P27E23t25L24925S31dF2391p161p1u31FK21z1526H25T2m921t21021D21e1N1u1M21C25V2402R122223G22d1R21I1Z21K21J1Z1723L313d23k1y21L25c24823m317Q315M23p21H31SL24W1T25l26M25n318o24421f26Q26K26w2232ei23K21S24X1825123X25g23W31dF22y21M1v1521k1l22B23h1H21732FT1023k1325F29623K1724s1j26R23U331v31th22A31tn318v1021s2Fu22K1M2r122u21c172kp323W21p1z21d235122C023c1S2AI211314t23u23826u24p268319723021526w23923t317Q2731r25626d26Y318o21M25P1g22b26t317831X926725326a23p317j21K24524h24Q26f331927921s31vq26N24n2m922e1w21y23921i21x31Vy26E26H22x27922822b22d23g21d21i21D2MV21j21H21E21h23A21e332k21e21E21U21D332k21j21f21d21J21e337421d224337k21H3372337K337H21f337O21e21f22s337K317I21e221337y337923321E21i338421g22h337922221D21K337K21y21D22g337y21D236338E337v338d21f22P338523b21d21A338T1W23322w1w23b22p22x23821y21v2c022v21j33451k21A2MR31tT32d429k1X22F23b2un31is31RX12339f2383358152T32NY13339f239132jy31XJ31BK22f2361432mg32HZ2DW339f237152Jj32yA2WE324K2RT1731fj31fL2IM2342363123337v3123325o112Hu22X2332gq2GP1X2151F1731BN2Hu21X21U2hY2wH32I72M533As22f235173232330927D2I8339F23I18322P31Y32M52Fq339F23J1927731yt27d2R0339f23g1a31gz2Z032JU339F23h1B31cg324y32jw1C339F23e1C2R032JX27D2Za31a729N310422x22u32a531b923C336u32TW2ZE21x22132gW31182m531041O1T2AL27731Sx32Fm1G29g1c326Q324C311d31BA326Y1D1B29E2M11223432SK32vJ29G31hl32311L320s2gQ32mC29G332827932MM1D1R32C131z833AM310622x22v31e227733AT171F31z0310621x22232cU32k127d33dy22f23d1f2I832cl322I339f22U1g2Za32EU32pi31RQ323922X23e32xQ33AT1Q1i2zD324422D326x322M2m5322P339f22S324733CY32up2M52M1339F22T1J2J632S32M531z831Rq323233Da23429X32Mt33ak27932mT33am32mA22X23h3237323233AT1T1l27G32MA21x22832Wl31Z82Sz33FT22F22r1l2P832mr2m532mC339F22O32m61132mT2Sz32mG339F22P32M532mP32MX2m531z0339f2321O2Fq31z02wI23629j213213319x2Hq2Q927c32mt327S2X1311731Y72T02n531pL2nd2Wh112Hy2wQ2bc2rr31yD112wO2WU2P928N2ZD2wb31eS2Qx310i31kk2bw31082ZQ320X1031z81F2zH32MG1031Z01031yN31b13232321Q10319x322P2lI2212292J731cG31S027931bN323A323C1033iI2lU33ii2lH32bw2G127933gY2LV2qE2fS2a831u827e26O25r26B324r336f31Sv319r32Ox2Lp32tT2G12UN339M29X31E522F339N31RC2cY21X21z31PO2oG2BY2wl31Tb33iX31A82co315M25R23a31Tk27d21S31Uq2ln339D2g633Jm2LC33Jh339U2cX339t2Lc2Bu21p21l339P31mK33JQ27923P23p27926126231W631W826631tE334D25P1d21F334c1022d1L26Q314A31SR227226312s336F2rx33kw27m22G1O317e31Tl25G1431Tj27M1W22o31sQ2u61e23r313d27D25c2471n33Lo29725o1C33lU2Av25n1B33Ld334T2jJ33L127M2271F2C92aV25j1731EG2GQ2r52VI2Wp1T25b33LP27D22f1n332027D21823033m533k0322p33lY27D21y1631Uc1021q23i2AZ297317M33ll27921w1433m927D21622y33N32dD23C33NA334D25q33lN33Mk27921c23433nh102281g33n621S31cG21C31wn2792R521D1b31Sk31ZD111t212334S1021J23b33nE31Tl25W1k33L92aV25M1A33Mv27921e23633mO27931sj31Uh27925c24b1R33Ms33Or2411H33M225c249332A33O722m1u33on23k2641s33oZ24a1Q33Of336f310833OB334t32mG33n623K2651T33Oq2792DH31uc33381o33PD334d25v1j33nw31Wo31Wq31wS31wu31WW1q334C21s2Nu33pT25C24C1s33pG23k25F1331uM27921222u33N61021422w33MZ27926p33L627921G23833mZ1K22c33qB25U1i33LH27e2bb33PJ31tQ33oj21s323226522z31vg31VI31vK233314g2av32eZ33nh21s31f633on25C24031vs33KX33KW33m926725C24Q1726r315g33Lq2441k33r033K01033M21021I23A33Mz21022S33PQ2461m33ov27921N23f33s0334D25y1m33S321H23933oJ33S21A33Pn21S2j633qf1029B33Qf23K25E1233sH102211933Qj21p23H33SD23K25T1H31uc23k25h1533sd102291H33oN21S31Z033PN1021V1333MZ22k1s33Pt31C72Si33jV31Ud21C33tN334T33NP21a23233Mz22B1J33pt23k2611p24931v827931vA31vc267312Z27922E33sk2r1336F32mC33PJ25l1933Np2241c33TN21o23g33tG21L23D25v23w33TX22J1r33RH2M133Tc25I1633n625C24d1t33pj2631R33Tn21T1133tg1Y22q33s321m23E33p625z1n33oz2451L33TU2251d33Qb25K1833Su21U1233sU1O22g33M223k26033gs33jz25c2431J33pJ25s1G33oN1033J326w33nl1022I1q33oz2421I33Mv1W21127321m26S315a27922L1t33Mz2231B33r531bN33SU21r23J33Su335633sO22C1K33T825D1133s31G22833mo21i2Bo26f22K33kS2iG22033S322H1P33nH23k25R1f27224l31ay339c32LO2Bg1D1Z21o2Sg31z82eW1d22v23C31aK31Ut31h72cO32zJ32vW2hU31u12iH33Am33bA31Ex2Z82Xj21X22432852Ih32IH1929g21c21B32lE328m320y3221321R31u13100323b2q431qO32O71b2392392P829g24e23l322c29G3166328W31Rq33Eu1d21V22k32au29G21627533CX3264323n29G22Y23932L131xV21Z3208310831c82GR2V331f631r121Y32z02M131F631gz31YO31z821021I1j31f631F633aT1R1J33Zh33fy21v33B8323232N532N732322fq2iW1d320831c4215340T33zh31Z821x340x340Q32Vk21P21B340p1K322826d23E2JK310831dX31yO325f21a32ej32Bh33aT1O1G33Zh32f62x532af21x33EW31cI322Q34221H2772i824k26l22O1y2P931tW1I2sr31FS26l24M26h2Aj227323I1i2G3342I24n26K27C2nU322P337e342i22U21a29s235235322p337b342I24j26i31h1322p21F2Yw10342A245313621h21H322P21G312l32sP33EW32xk32rH33Ew27g32s331Ja341b33eW2r033Fy33G0323231Z8341g341I31043426343O343M1H343R32U434262R0341B33e5341e340s340u23932WJ21527k341J33cl33EW32M9323333FZ32WL32wJ341h32323443343n1F32Qm343Q1432mR31ja32mT344A1a32Mm21x22A33GM32mt21p344j32mc344V3427344x343P34473450323331kJ3453343V345532mH3457345932M6345B1L345D344M345F344y345I33fy345N345333E532mc345M1h27B3456345832MG345a345C1M345e3445342633fX344P3461345s346c346E345g3446346H31MG2iU34652R03468345r2XK346l345w346F344z34601H2R034621e346432m634263467345P346933gl346W345U346D346y346N346g345J344634733477346334643446347932sp347b346B347E346M345Y346p33e41E323233Gg31ZQ32Mm32Dl311w33gp21533FV33ZH2J6347K1A33II1d1M2Kr32mm33zC33FM346k347U1e33fU1l33zh33Gg31nf32Mg3403340533i41o31xV1t23h348J23G23g320C21u1P22R22r341k1Q34921032mC23I23i27i3444347h344Z33gG320W348S1d2202mR32mz32ML32mH32n233gM347v345h27g33Gg31163456345N32MJ21x22B1n31z032N132n31N349u346O14346s345o32SP33E532mg349z34661234A134A334a5349r34A734A9347I34AC34a6349t347G347W34aB3477345N34aS32Mg34Ap349I34aX347234Ad349s34B034aU349v34Aw34aE347533GM31n72gQ32mJ34842j51p33at332N33zH33II345433Il1d1N32G332mj348i32MW32Mn34At34bK1M33zh32mm2ZY27931z0348T34bI31xV25O24s33DN1N24r32cz32hi23e21t1Q3496341k25p34cD32mg24t32C53446346z345I345634aF34Ag348B34A1344N12348a347y2J6348a21p2102841P34ah34CQ27G34Cs1E32mG32mj32tB2Gq348a34Bh33iO1Q33At1V1n33zH33IL34542jJ32341G2jk348A34BU32MJ21P21734a41O2ZD34dk34DM23934Dd31Nf2J634C534DI31xV24j25f34c31o25e25e320C21s1R34ci1e324F24k34eG348v25g25g349F344w34av34cW34b434CZ33e534D134Bj2151G1O34BM1q2xK2121q2J6345E27b34bn22L1p31CG33Ii34D31O31CG34B1345i34bn33e531cg31Bn33at1i1q33ZH34DQ347y2jj34Dq21q21r27d33Il22122a2Kr33il34c231C71S34e82rX31xV25426033iK1r25Z25Z320C21x1U34Ek324f24X34gh1031BN26126134Es345X345h343o2IW24124g32g31023w26424Z26B32l133zh32hS34Gt344834bB2M1327834Cx340E25623P34GZ33hZ1k2M126926934GT2r02i834gX34hI31FS24r25034hI22g22g322p26c26C34h91434hd34ai344c1e341E2ga26O34Hi340i1k32IQ34ho1A34hQ21534GY34H0342A24y26z31TL23k322p26j26j27934H224j26R32L123m23M26k26K34I234i4344B32vk347y341E347P1232ma1Z21i33G1341f341H31f62Zd34Hr34ik34hu34hi23K34iP1I26s26s34J2344933e534HC344934HE34j5344D340q34I934ib341I26x26x34if34iH34Ij27D34H22201p32tN31EJ27027034gt34D834I332U431y934hJ348b343X34JD2xk34Jf344L34Cp349h345i32s3320w31F629G349N33dg32Qf344034kq34fk34Ha347Y34ju348b343u34aI33Fy33e5340z341032wl34i434kh327834jT34Hc34L834J534cx32wJ34111L34Lg34KT34GW34ii34Hs343D34Jk31ay3432322p1p1o32Ts344Z322u31rq34Kx1D340434l022x22x2Bl33dk34m8348u32Mg31xv22532xI32wi1L31S232ts32qO31z034E71d33zY27933II22X2352J731BN34E82JJ31xv22421929s31CG32nF32wU34fD2RX31GZ339F33QM33zh31Re34Nc1U34HX2jY31Zs22K34n4329R1E31Re21432NQ1031r122634Nm2JY2M121521432ts22J1v2JY31c52Xk1s1w31C531f632ZN22g239340j1u324F21U21134n51Q21934Mk324F23D2eR323221a2ss2kO34k7342i21l23529S32qn322P2FY29s342a1022029S31ET1i337234p123K1s21l29S22E32461i337V34m334Ku34kJ34KW34LM34b432mA31y634l234421e34jI31DA26L26Q34Hi34P632p534PI34L534lJ33g231zq32ma34Dh33Gb3418344g3483311032mJ1D1K31ha32MA34bU34pQ34Jg348M34Q8341A32vk311333dg34e832mc31XV21321Y29S31f6323b29S32hj2241N34Gl26d1W2Mk34hj22031A534pt34it26421k34mC326t22Y22y22232P232wu34Et34b934J31A34i634J7347834j9344p343Y344K34kP34pr34KS34aV32S3311634L9343w34RS34KO344134qJ34rX34RL34Jv34B434Ro340Q34j834KN343Z34Je34Rw349G34Ry34S934j434bB34rP34Ln34S334sF34rv34S634SI34gv345G34R934lw34HV31Ay34OY1i2xq34Q034KI34Hb34LK34RQ34sb340e26s25N34hi31f62m123223334pi34hp1834sW342A26z24Z29s343K322P23523429S34h225N24A32tn343B32SJ34T334RM34QI34KR34sT34Aa34rz2IU34s131do34SP34Ru34S534U334RK34U534SK34rn34JX34I734Sc34Rq34SE34Ub34l334b834UF34ll34sM34SC34uC34L434t434l6341I344F340v344P34lc340Z34L134sG34Qj34Uz34oC32Vk34G6323234Qq1M31Xv26r24234qv1k24232v234cE34r034r226S34Vk31F624424534PI34kh34U834LO32Wl34Fk34lt34Ot34Sx34HI34tP1i24C24D34U034kj32GJ34i62m132Mr31Zq32Mt34DH33Gi34QL34e434m23454348a1d1l2J732MT31S227D32MA23d33yH34sQ21B21N34Lq1J33gB2171s34Bz23931H734mT349B32m622122J31am34qa2C034c434Mf34c626B25S32y432MW24t24s34QY21534BL239345333g032mc33IL21P34f731BN341k25N34xM32Mw24x24w32NW34w0319t25E26C27C348S1I24Z24Y34VT34kt34Ha31Kj34vV34Ua34u234uV343s2c034yI32sp34rT34YK34UP347I34lI1E34iC34v734LB347Z34V334fy27d322y34Xa32vJ2vr2m934vb34xf34x731xv24q25N34Vh25l25k34Qy23E34vm349734El26D24v34Zg34HJ25n25M34ye34av33g231ja3471347L32Sp229347e34VW344u34YS344z34t834PM34s234j8347T32Mc34L934vu34v934zV346I34B4345334zZ32mc35011L34uV34Yo347y34lD33At1s1K348p345s32mO350235083477350I347o32WK345V34S734aa33GG31Ja34aH2R034Ak34dz34AZ34A83503345I349x2IU35171A351934Am34bW34B7351334aQ34B3346t345p34Ct34ah27B351j1o351B34UV34AR34an34At351N34B2346q34Ca34cV34Wj34AL351w3520351m34u4351O348B34dA34Ag345P34cx351v351x351d349w351P34aD347Y352g34J8352J352a351c3522351e347M34bC34c131zq34bg32dm34bi34BY34f4348b34BP34br34Ed33IM27D352K353423934c131Nf34xE34m933iB1p31XV21S1y34Y91N1v2bp32Hj34cg34r223D2bp33gI1Z27c352V34D932Mx320w34Xe34Kz353J32QF34dW34dy31z034Uv352f34Cu345434Ev27B34D234D42j634d734Yf33A1351R34DB34dZ34BE34BI2x3353234di34E234Dn1R348B34DQ1D34ds354r34DV34M234dX34DZ34E121534dl33zh34E52M934mR353I31CG31xV22k21q27C31Z021N21l27c32HJ34EI34R222l355m348V21p21R353z352C344z34eV2r034Ex1e34ez33at34f2353534XV34f81P34FA1234FC34Fe34ff2xk34d434fj352l1434fm1E34Fo1r34FQ34FS23934FU33E534fW1s1134Z134ge2x334g3356x34g62jj34G91T31XV21D22B27C31BN22822A355n23E34GJ34r221I357b34GP1R22a228355W34UE347I34g5311634fU345N2RX32sP22g1s2RX34dQ21P2131R2jJ34UV34DO345N357Y35803582356I34DO33e531bn2jJ33AT1j1r33zH357T347Y2rx357t356W34G72X322b32G334DQ34G62Rx34E831gZ31xV1722T27c2jj22U22s357c21W1v34R231Hy358Z1S22w22Y357m34gu34AA358r31JA358I345N31gZ32sP22h33X41u357t21p1W357w1t34uv357r34B4358i33E5358K1T33at1K1s33ZH359j21P1Y359n359S345W27b359j21x359L31GZ35a4359Q31gz34UV359j34KK31rE348b2JY32sp34O12jy35al35A51u31RE35AI29r31kj35AL345435AN21x35ap1W35AR35a635aU356i35Ab345n35Ay33e531rE35aY34cX35b035B235B435aT1V35AV348b35bh35B635401435aj311635bD34B435Bf34O235B31v2xK35b535bj35b729r345435BA34no35bC34J835BU35Aq35BX35AS35Bn355X345I35b834b435c435bc35BX34rq35c835bw35by35bi35bk347Y31GZ35AL34De27935an34DH31c533aT1m1U33Zh31Hh348B31k41d311b35cU1w353a27935bm35C035CY35D023935cS31nF2jy34e831c531xv25t24z27c31rE24w24Y357C23D1y34r225y35dR33Ju24y24w359c34Kh35cs320w35di349M2mR34O431Y635An335435bv34UV35CH35C635aZ35d834RQ34O421p34O631C535bS35e235cj35Bb35bV354Q32hI1x354S311w31HH33aT353p33zh31K4345431pk1d21432z034O434Bu35Ea1Z35EC34qK35ez23935aN34G631C534E831hH31XV24T25R27c2Jy25O25Q357C23c1Z34R224q35FQ31Th1W25Q25O35E1354L35b0345n34O4347y35cX31c534NY1w35D132M221p1u1Y31c5356a35D221x22t1X31hh35D235Ek1W31HH34uv35Gi33e531hH2h433at2161Y33ZH31PK347Y2i131PK358M31k422122y311T31K434G62I134E831i531XV23m26827C2h426926B357c23H21234R223R35hK102H426b26935G1345y34Vz34Lv342a34Pw31AY342V1I26F26d359C34L5345n31f6319t25r26H27c343h31F626i26g27c31Z22iZ31f626K26M353Z33Yd34kL34uu34PS34Lu34IK32J524I2AJ2j9322p26N26l27c342A1P22D28L23H23h322P26o26Q35J226l24x26y27C281322P26p26R35i634uw35i834Ui34Sn34lA3233332J34S434Uo34tk31Ee21V27h31cg322p26X26z35JL34U634z5345434UM34yr35BO34u135jO34UK34So34yp35JT34Sh357n34m434UG350534SD34YJ34V534ud359D34yT34js34yv34T635jN35Kl34bB34Ld2Xk34lP34lR34Sj352434Kl35k635KM34SR35KO34Lh35kJ35kb34L9344o35Ke34Sq35Ir35k935l935l634Yl35lH35lF35CD35i734Sa35kn35lJ34t534Q32gQ34q5354T34q73419353E352H34B434qc34Qe34L034qh35LP34Qk35LX33g231NF34z8353i34qR26B22J21k28b31f621m21L28B34QZ34r134Zk324F22K35mj34hj21o21R28b35bO35Kk35L4350X34bb3476347D350A34Pm350c34US350N34cX35091M350B354L35mw345n347127B35N835NA34zT35la350634u935mY347y35n0345T35n235MV34V9311634ZW1a350h350034le350W35Lm14350n34v235Ne1235NW350j35NY350L356i34YO32wK35nZ35Kh345i35oB34lp350m35nk350k35OI34uS34Wc33DJ34x8354T34Wg350R355a34wj345n34WL34wn348J35d934ML35KY34VX34qk35oS344h345k31NF34mE353i34mH26b1U23h28B323223H23I35mK23E21V1O34r21R35PH34ml23j23g35mu35o034Yy35kX34543465347q352P34Cu34B61n347134kH35PU34V335Pw34b3347q35q135q3354l32mR3116351z347r346V35nP347F35BO35nU347435n034rQ346u346A348k351235pt350f34ZX35QI34uV35ql35Qr35qJ35Qt348B35N835QX35qU35nv35qZ35R435kw347E35Es3483354T34863488332734kb3454348d348f352534bu35r334Qk35RF348Q2M9349L353I31z031XV26025728B32MC25325035Pi349434r225t35s134x725525635PS35OE352m35mZ347o3454351t34Aj34WJ33E531z0354834dz346534kh351F3525354E3527351A352T351y352n354c35sg352S351L352U35O035qf35Q135Sv352e35su356I35t334ao35T835sW35T735bo35qm34Bd35CT348V35Ev353334XO34x334BN345N353734BS34m234bu353c35tL34c032mX353G1o34e82j631xv23W26n28b32mg26j26G35PI353t35MN26D23X35U732MW26L26M35SA35kp344z35Sx35lz351835ou34ai356134Ez356F34d5354K34Av35uK352634j8354h35US35LZ34kh34C13116355Z1A34Cz22K34d535SL354a356i351h34A135sJ35SK35ux35rH35v72J635V934e035VB35Ul351i35si1E35sK35Un354G35vh35v83554354935vl35Bo35uV35sr35vG34bb35UQ34Fh354J35V0354l35w034a035VS34Cy34Kb35w534d635W735Uu32MX35v335Un356035Vu35Vj35Vw355635vm35uw347Y35vR35W221x35VI34M135Wo35VA35Vz35vN35Vk354B35X135wY35vY35O035Vc35x535x334Bb34dC34m235th34DG354t31CG354V239358434B4354z3551354635532XK35vx3557355934wi34Z634bI34E8355f26B1Z21z27h31Z021U21y27H355O34EJ35UA21035Y5348V21w21S27H352V35hX35Iu35i01035j7322p22031Lj35Lg34ur34J635KC35jq35lD34uN35KG35Ui34PJ328235l335ND35l535Ll35Sb35jM35Lo35n534Pm35lC350o34v335js35lE34UO35Yp34Yh35oJ35z235Ze35O035ka35Z735kV344Q35zd35yW35l835yZ350n34YQ35M535YP345435nc35yt35Zo35Yv34sS35Z435ZL35Yr35lB34rr35yU35k835Zk34kJ343t35zH360835zV360A35yQ34JY360635K7360F360335lh360535Z8360736003609360m360h34UJ360J35ZI35ZQ354l3604360i360P35q532MA21B21m35KF360235YX34Yg360C34km360X361835zR35zx35nJ35zN35ZU35LI356I3610360v3612361d35l7360z360B34yn360d360R360l361935Z534Sl360O361I3617361q35L1361G35zm34Ul361p35LQ362536203627360e361K35Zw35ku362B35kd35za3614361635Zp361e361r35Lr34V934q4323334Q61m34V735x8323435M235p035M4361K34v735M834z733dH34z935mc35Hp27h31F626e26a35y634zI35Mm341k23k363C34HJ26G26K35yF35o034Zu2c035QY34ZY35nx35p135od361X35o234yz33fT21535p4345a350V35o935nM350z345A32n735qS35z435152c0362W34A235st35T035T531kJ364c3528352k35Te35Tc35Xb354d352I35sS351K35T435TB35t6364F364T35nN33GM353d35Vd35vq35vF32n035T7353D353f2M9353H348u35U026B23e334432MW1P1s28L353S34cH35Ua23j365G32mW1R1u28L35x02vx31df35442Mr348A31y635x235WQ35PZ364C34cx35uP34D135uR35w6365r35PZ34DD31zq35xF311w35XH355834e335xk2R035xM34DT34Kb35xP355535Va35XI355b35XW34z935xy22F21E28l31z021i21F365h23E355p35Ua228366Y348V21k21p365Q35O035V436632J6356434F323934fG34F734f935a9356B34f521X34fd34ff34F534fH356h35bo356K356m356o34Ft356U34Fv34fw356v34FZ356X34G234g4354x357134g834z934Ga26b21822128L31bn223226366z357e35uA219368G357i225220367835oE35Yh34Pu21522t28l21S21s322p229313134h12641922K28l33f01X22A22f368P35Yy362A361135KV3615362234Jh35It31Da34LX334T368x1i22i22n369a34yg34S0361U361J35ir34Sw34h21x23B2aJ322P21i21i22P31Va34rJ369b362G369D35Z3361x35k435Z034PN3628361l360n369D362c361v362e360G362536aa35Zr35ZG361c362D36aO362O369c361N3621362M362334s8360U35JP35z9369u35Zj360t36AQ35MX36ak36at362436a836Aw36aj36B4360y36bB35Z6362H35zz36BF362n362434Q2362q35lt362s35Lv362u34wH362W34QD34QF3233363035IR363234v935m9363535mb34vd26b25P24O28l31F624S24p366z34zJ341k25M36Cd34HJ24u24R369a35N4322n31df34Z8354532Mt31y635oK35Oa361H36B835n735QZ35nh34B934Sb35ON35OY34Wf1n350q350S35Xu34WK34kb34wm34wo32m634bU36cu36D734v035xV34X734E835PA24P25o28L323225k25p366Z35PK34R224U36dS34ML25M25R36CM35Qc35R535tF34Q735rF32N134dy364834aI35qP35Q0344J352b35z4354C348635XT367B34kb358M34bg22n32c1366P353j35xx1q31Xv25a263366v1O265260366z3671341k25736Ez348V26726236e134eu35xd31jA34cZ345n356c31Cg35UY367i35bo367A35rH34ey34D1367D3566367h3569367J36fe356e367q1Q34Uv33II34KK366g1A34Fu31wU2jJ34xu34xW1r36FW34F531kJ36FZ36G135811s36G41Q34XX356I35tN34b4358a1E31BN35xk27B36gb36g3354X356736gG367S367l35to36GR36g536G735l236gA367x36g236GD36GX36gf36g636Gh36GV36Gj354x347Y36gM36Hb34cX36Gp36H434f636H636GZ34BO36HB358B36gm34J836Hg36ge36gT35o036Fx311636H132sp36H336Hr36h736GU353636hM36gl36hO34rq36hq36h536HS35z436GI2r036GK36Hd36HP36H236gC36hZ36HK34FN36H635es34DQ34Dh2RX367V23935Cf2r035aL31hk29N34dQ34Bu36II34qK34fr354W36dj35723688357426B22k21m2aj31Bn21N21P2Aj32Hj368I341k22l36Jd357I31Zb2Aj35bO34g5320w36j43545357T31y6358636Gc358336I336ie34dp367x34cX359O359Q2Rx35Xk34kH36ID36gC35ES357t34dH34nB215358F34nE35cJ345n35AN1D21831cW357t34Bu36jU3588358E358G356q356U358S1t358U34Oe26b21k22M2aj2JJ22F22936je23e359434r221d36L434g722h22n36jm35o0359u2r0359W1e359Y35a035A236IR29R35as2Rx356A35aB35AD35AE2xk35Ag1u35CP33e535cr1V35dD33Zh35b033E52Jy35An358M35aL22122E31S335DG2m935E5353I35dK26b1D22z2Aj31re23022y36L535dT34R21a36Mo33ju23222W36Le368q34SV369I34HT34sy33t2221322p23623836mX36ab361s35K535Z136AS36B536N936B135yS36b3369g36Ag35ZS369T36nj35Zf361B36b836Bl36aZ34Uq34ux35Ls34l0362t362V35X4362X36bX35OZ34YR36C136dj35MA348U35Mc26Y24C2AJ31f624924f36L536Cf34ZL27336oe34hj24b24D36N8344534Kk35n6352W35sd35Ng35N334LS36mz34y526L23U25H2Aj22q22Q322p24l24j2AJ34Tl2502aJ31Gz322p24M24g2Aj34h227124r36A01i21w21w24n24H36N835Ln361Z369d21d21029E34yr34tK369K36pb1i24U24O36Pp34uW34lJ322u32EB27d2m1369W26426L25736pj31Z024Z25136q334Yu34Ic35Es35LU311w35LW34Q936Nz36BW34l021v21U34z232vK31T731F636PX36N236p2322p25a25436QI36aH36aw369V36N0343D26L24q26d2Aj2MJ322p25g25e36P723k25G26e2aJ327N322p25h25f36R533Y735k534LJ36D334x735tj32MW34V736fJ323435ox36Rx34wq34l033am360W33Zx33zZ34wE34z434BV22122L3237365834xG2542662Aj32mg25X25V36JE35tU34xq347734XS1M36iZ324f24Z36sO32mW26126736sp36e635Tw365735tY34z9365A25a26036Sl33Mn26336l535u936f236TD32Mw2672612aj34tk34Pv34HI36rF1I315O36JM2Lh36qA25226836pJ22P22P26c26A36N834ti36QZ34HI342N322p26F26936Rs36aV36B2360Q35O335JR21d36Nj36TM25026t2bc2m135J926U36p726L22U21429C2U435jI26v36uP21w1A29C21V21v322p26Q26s36Up24Y27136ob1K322P26R26t36UA36q536R636uC361335o836Q936R9319T2nc29C3491322P27026Y36VE35kS34i427B340e26e26134k131f633hr36a636U336VL36TN31aY36v1322P2P029c34Uq321o321433g2326F363q21X350z32mA161h31pD35Sp34bV22k22233DR35m536tM22E324U34Mb322P321c29c34H221X1i29C322p21p21P33eC36WB35Kq34t5360435kd35Oc34wy36u431aY36Wx1I1M1h36x935KI36Ng340r34wh344I344k356a34UM344s1J350236QA23B1W36X41i23J23J1w21336xM369B36vF34j835052H934hH31Ay34TD1J21132YL36W334ig34tj36VL369k36Uu1i21421B36Y734Q136vU360n362I36uE363T36XF36W521422u29c33dk342P21j29C342A1O22e29C22c32X234p731N834h222w21R36y1225225337636Ys36Q436yU31QL33I634s934Cq368r36N134Hi36Zc322P21L21Q36zN34m532VW34Wa36xw1l34V736e432m621h315A32mA36S7361o36s936d436sC348336SF34eD35TZ353k26B21522629c32mG21Y21T29C353D34Xr1K34xT36i836h7324f1w370t32mw222225370U3487348o35LY36Dj36SH353j31XV21B220370q1N226221370U34cF365J341K214371k32mw22822F29c36QA1922M36Y1337B22A22D370135KR34l736ub36nh360736xE36vK34Y5369K36z422i22l372236xO361O36nd34Pr36tM23l25C2Bc2182ux1i22q22t36x02642271n2bc322P2ai22R22s36y736aP36Np36NC36B936nE361F36Bc344e36xQ32n5344j361836ni35Kx3441363u35q4345k3452364M345q35qq35N135r035z435qD346r373M347s35R7356i36wH347n35px1236eB35RN35qk36e3373W374435l235qF373n347c35qw373x374536OS35q83741347A35qH346X374735Q7374f34j83742374635R1345l373U374J348L374l346J374n35Qo374I373o374C374W350G352x35QN34cX374P373p35r835ZA34812gQ35RC34851o348n348935RH36Fd34F5348e348g32mH35rM373w375H36sR36dj35rS348U35rU26b24g33mb34x725B254371l35S335UA261376234x725d25I3732354l349j31DF349l3545349p353b35tD35t232Md349y36Nz364D364r35ta364l364U366035lz351u364Q3529364V376R35sf376J3649364m364s376Z34Ay3771361x35tf352z34bf34m234DH367C36SQ36ib1a35tp353935tS365436sQ3656370k36T7370m23z26G371H26M26h371l36Tf34zL23s377v32mw26o26v376B35Wh364N366135uo36FK3562366435WE35UT34b936eG35xD366A34kb34DH366D35Xt36hW3550366J35oZ365Y366O35Xd34E61P36ER31xv33cf2bC31Z0151D2Bc35y734r222R3791348V33e02Bc36FI35Wk35v53789356334f1367E367g3568356A36fs34fg356G36Fv36h834bB367U21536J136ks34Bb356t368034g0354x3683357031NF36j4353i368923f1J2bc31Bn33eS3792357d34GK35ua327f37A735811K379935CD36zU34W131aY372o322p1w21437aI36B6373436aE372i36bM36B0372536xp35Lx36Xr373e360Q34RT36XV373i36e235YZ3749373v3759374d3748374t3751374k35r1374M364x37403758375237bH374x37Bm373R345K35qE37Be374b37bG37bQ35r2375535se3757375037bu374v37bN3754374y37C035QG37BF37c337bW375B32Md348232mh34Dh35RE371936FC34B435RJ375n35oZ35rn375r35rq34Ca34E8375w19315F34x722w22O37aA3764341K1E37CY34X722Y22q37ar377832mD349k1n34ky349o34M23653376y376K35L2364I364E377437DH37703786376u35sH32sP364j377735so3773376Q37dm377637Dg3772364U37DL37E0364X377a3539377d34F034Xp377G377i35Ti377k364v365536t4377O353I365A26w2402BC32mg24724F37Aa377X324f26P37EP32mW24924137D735v1354n352q35W134RQ36eJ366535wf366734cT366934Df378I35xG34Dj366e36J236jz34Dr378O366L35xr34qk35XT36Ep355D348u35xy25r336J348V24U24m37aa36F134ZL25k37fV348v24W25437Ey354l36S134D036Fm379F36FO379i36fr367L367n36ft379M36Ij356l36H636iq356r2fI367z358M34g1356z357i36J3368737a336J624K25o37af25f25n37AA36JG34zl24L37H0357I25H25P37G435hw36oW35hy23K26Y25y2BC229229322P25l25d37D73448344F34HX35Mw36rv323334wW344k37b535o934H223r2672bC31f6343H25s260379234wh370831R136Vz31AY35o725V26337D734TI344f34iy36411m36Xx36R9370737bY32Mc37I834hI34801M26225U37IE36YK37iG23M37iI37IK36Ox35YJ36UM1I26725z37h937Ax37393726360k36al36b6369S36aR373636BG37J836BI36Ai362I36nR362937J9360w37Av36Ns34sT36tm25I23q2vz22n22n322p27226U2BC342a22r1z2Vz33EU1I27326v37k226L33kZ2Vz22U22U33id2Fq36a634YG34W934UI34WB345k34WD35op311W34WG35lX34BG311035OW36dD1136S535P034Wt34Ml31Z837HT2m134X034x233ZH34X536Sa34x8370h37cf34qb36t637ei370m2381t2Vz32mG1h33gs32Hi36sQ370w370y36hi36GG324F23B37lN32Mq1s2vZ33AT1D1535tV371b37lf3659370m23e1J37lk1N1p1g37LZ371m34R223j37MD365N33QZ34OS37hC172162vz224224322P1t33rz37KJ36zO372434JW31zs34Tb36ye34HK1J1x2142vZ348b34K635Hy36W634NN322P21021937N636xa36Op36Nm36Ay369H36ox33mc2vZ233233322p2171Y2vZ319T23121s2vZ322e322p21821137nf360T21b21P1J3108340R2171u36D837L934Z5326I326236O6348j31Xv22f21Q2Vz31F621g21P37n637o41j35Xc32SP2Xe32Mg36Fg36FQ324f22a37oo34hj21K21D37Lz21537m134qm36o536C436o736c622L21G37ol1k21o2Xm34Vl363f34Zl22i37PH31f621q21j37O2363V36bP36nW36BS2x322K29e34XC353923622z36O131t735QB37ha2Nu36tm35yJ37nO322P22221V37Pq36yT34l72LU372934LV34h21E22F2VZ322p2u722721y37qd361Y34UH319T23b22I2VZ35ie1K22A22j2VZ35iJ36qV22c22l37n635iP360s359D34kK36xC345z34v1363x36vj36zS36ov37Q636ym36N237jx322p22N22e37pQ36Ap37Je36Nq36Nn360G37nh37JF37Jm36Nk37AY1k34yx373C36xs367j36XU32N5344T364335r131Rq3474323234wG35RF365035Wt370a376I1133am37BK37dB34mS33Zz34Bg370j354622136eN34mU33ES34z931bn31xV26D3340353J23m23v37p4356536d9345831z036k2359r341K26C37t4353J23Q23z37p436ei34kB34g635jz37sx1R31XV26j23M2vZ2J623U23n37mE21Z1S34r226K37Tv353j23w23P37RQ37RI1h36TM222182p933zj1i24024937NT26L25626x2ei35di1i2412482Vz34H225q24737QM1I22222224224b37qr36QJ34UY373b35R932MA358m34Z331AM363334Qp363636C627024537Pe24b24237mE36oG324F27137vG34hj24d2442Vz36Xg35Fx322P24F24637U535L136b7373537ry362F37jj36bd37jL37rU360T36AN373736Au36BO37s237v3323334Pp35M536O434VA37P937oh33j525137Pe25724y37VH37pJ32Z737WN34hj25925037VV36D135nS2iu36wh36WJ35o835ol36B836Yx34RQ35O637Ij37x136cV36ar36xE37X234jY363y364037In32M636Ct37x836dh35P536DJ35p834mg1N31XV25625V2vz3232261332534cE36du35ua25b37XW323226325u37WV34aA36vI37bx374O352T37q434B934512C037b9374U36e9373J37WB37Y8374z37dO35t037YB37y637br373T376s37BA37BP361X373y34Bc37Sm37C837c237Yh37b7374m37yu37yI37Z337bv37yV374E37z437z234V2375C352537CG375g3718375I348b37cl35RL33iN37Co37ZH375S34g6375U34Ed31xv23a1S2EI350j1v2ei32HJ37D034zl23737zY34x71N1t2EI376z373Z373M364p34BB35wT366m1O35SN376C376l351G376n37dS37dZ37D8376s351S37dP35sz37e2380o37Dn380t37dU37E137dW37E337dY380w380i380Y352137DM347N37e535Ti37E7353d37Ea354X34BQ35tq35oz35tt34xP377N348v370l322921s2EI32MG22121v37ZZ37mf35UA21B381R32MW22321t380835X737F0364o35m035wb37f4378c35wg378e3822378735VT37f5378D34Aa35v22IU37g635Ww365Y366735WA380D35vf37f335WM35WX35Xq35WP382L3824382n354f35wC32sP382J35X9365z380Q35wR3662379d378b354I37f6382135l2382I35vv382s35wz383a37f235ve382x35V6383d380f35xa35w1383m365z382m383p382u35uM383E35x636ef382237F9354r378J37fd378l36He35Xl356u378N355233in378q37FE35XU34G637fO37Sv31Xv26z2412Ei31z024A332r34cE37Fx324f270384m33tM246382035z437sG382o35ov375j34Ai367t36FT211356d34ev34Kh384W37G634cx34fg385331cG385537G535Vp35wt36dA34j83851385a385435UN385635xD311637Cj31Z537gd356D37Ow34UV37G636fl37Cj34fB385s36Ff35wd3838385V379b385U356i36S135wE3864382N348A35th33ii34dh34fp37g9379t3454357t32Dv31fL33iI34bU386636FN35Rg36dJ37tm353i37Sy26b2502662Ei2J625V261381s37TX34r22513872353J25X267384u361X37f435Ri36H927B36K736hz37cj34KH387D375K34J8387i384Z387K3836385Q348C387f12387H370Z387J354l387s385j387u34Do22M36h6385k367r37Aj37hb34h034H224R26P2ei322p23e23e26s272387b36Pq34UH362635KD22t23436uh37rk34Hi37Uc27026U388K37qs34m7353I323231XV22p2wV36ZR33hy32Hj2251m34r222u2Q533D9192p936Tm2291j2P92R0322p141f2p9319t21E1T2p922O22O322P151E342e36xa36Nu36Va37sO34l037X5362u34x134X332MC1h1L222226347636Ny310134xD37M534Xg2381v2p932MG1F14342E21b21k37x7386G36Ke35XJ36I331CG36KO350R37S137ZO389126d22x38Ao32mW1L1u389F36W535yj389K1i1N1S38B934W034H22352162p9322P232232378u389Y36xN35th322y354t34Q536SC34we311032mM23622s36wS2Cz36qv37VQ342f316b38Bq36A737w136Vh323321621R388R36OX23j21L2782aN322p2161X389O26L23521I2zH21K21K37NQ1W38co25O23S27v23823837nZ21338cO26A24G2p933Ca1I21921238cO23h21R2P92I8322p21a32ei2GR311637rC347x36yX37281j36QA25k24338bl1I2J621H21Q38C8388l35Zy373f360137JR36xn33ab34Z531GC33Fs323322522h32331137r937Rr34U737Ni38E437JN38Ca37JA36af37w034Sl36bA36B037vX37aU37Jg37aW36Nt36BO36QL36br36QN36Bt35LX36BV362Y34Qg33iN36o334WH37V834mL34vc358w2302p931f622u2312p935ml359638fi34Hj22W322436a636cN35nT374E36WI363s37xb37X937x337Rf364438fv35Oh38fx36nc38Fw35NR35l237wz38g135P238g6320Z2r134yY31f637zd36SD35rD37zG35P43880375l35Rk34bV37kZ32mT37l135O72uL38ar31F633GI2171t34e337oC36sd37pw37E637kV378U366r36ES26B26S24F2p931z024124a38fj384B345634zz32MG38AY341K26V38HE348V24524e38C836zT3889369J36N238D924924238E034T437oq37o737s137o937OB31AE38A234Kl37OE37v936c532w824O38ff1k24G24r38ap37o537oS2xD1937Ov386234d5341k25I38ih34Hj24K24V38hf37P634v837p838FC32hE24I38IE24o24j38fj363E34r225Q38J534HJ24q24h38bG37n924p26k2Hg34Mz1i24s24N2p934H223U25Y2HG32sc2YG24m38Hz37v037rc35z938dp35kZ37Rh37Vw37at350738EV38E538C936pr361n37wa345T37B237s634rv37b634Av37yD35oy37DN374A3743374R37bs37Ys37yg373q37Z837yk380A37y937yZ38Kl37Cb37Bo37Z737Yi374S38ko37c937Z138kG38FT38kT37YL38kK374q38kX37C537bj374G37bl38kz37zb34Yz38gg375E34eD375r38gL323438gn348H37Zm375Q37Zo37Cq32MW37CS348w26b24C26v2P932mc26z26O38J63801324f24D38M434X727126u38HR381336CO37CR35e6353937dF381234Av3708376S380c380f380h38ml37by38183531319W37E835TM36h936iC381D353837eC33In381H34x3381j371c365A23c1K2HG34Ag1r2Hg365i34r223538ND365E32WM38FQ35W8376N383I37zg37Tj2Xk3853383f3835382Z34d534d234dy36Fh35o03663366D1H1P37Ff36HN33il358M386e33Ig37sV36dj34Mz34Z934n126B2251x2Hg31CG36KK38nE23E21y1T34r22221w38oj1Q21a321T38Nl34av36fx31JA36HW21X36hy370Z36Hk36gW34Bb36HD37Gk356u359p36H4356a36HG357Y34F7358835Bo359f2c0359h34b436LS359m37TA36Lq356I358R311638pL2r038pn31Gz38PP35a838Pi36k0359v1t34Bb359Y34J838pw35a736Lv37tb38PR38Q136LH38q338pb38PQ38q035l238pU33BT35c236lt38Py359T38qc1A36lI38q534Rq38Q738qN38qB348b38qr358k38q638Ql38PO38Qe36K338pZ36lf367x356s359r35es359J34dh34nF21535A136m335eH35G435EU1d21931C6359j34BU38qv36lL358h38q334G636Pb34Z931rE31xV1N23F2Hg2Rx23A33c534cE23f1W34r21G38S32RX33NG2Hg35bo357T38MF1038rU354535al31Y635a41x359m34uV38SE311636Is1a35Ay22i35Bi38sl38SN356i38qJ35ab36lz36lU34RQ38ST38SV36lo38sM35Ah38sy38Q3345438SW38t838sd38ta359I38T638Sx38Te348b38Tc36Lx38T938Tk38tH38tD35o038qy35aJ31zq36m9354T34o3344J1t33zh35G5345N35D21D38ov35dA35Bx34bu38TL35571L38tz36LN36dj31RE34e82Jy31Xv25M24M2hG31gZ24p24L38om23e1X34R225R38uo38SG1u24r24n38SC35o038t01E35aE35c235b936Kg34ai36m41E36m635d835eb2jy35cf34KH38v136M035ES35Cv354T35cX21535cZ35GB35d32H535d532xN35fX35OZ35dB355738VN35df35bx34g636Mf348U36MH24H25P2hG31rE25c33lW34cE36MQ35UA24m38W931Re25e25q38UZ35z435bS2R038V838VA35EY1V38U035Eu21p359Z2Jy356a35G522S34O735CX2xk35fA35gG356I35G533E531c535ex2Ix1x35F02h5347Y2h431k4358m35d222122X31c635d234g62h434e82I131xV2522622hG31hH25X26138om23I21134R224Z38Xv1031Hh25Z26338WI35YX37Ak24K369k38jJ26325z38y637Qe341I2X82XA36pW36vl23k23A22n27v2Ix322p26926l38YE388Y36cw37W337Nj37rZ38ey32Wh38eg35NB37WX38a3374x38fU38gS38g5363n361u37X436cy363r38z738g238G638FY373G38ZF38Z937JF38jz38GA38zK35Yr36RW34wE35OQ36d6363Z36d836s136Dc35OY36Df37xJ38Zu36di34G637Xn34Ca31xV2361v27v32321h1S27V32hJ37Xy341K23B390c34ML1J1u27V374734kk37Yf38l338KQ37z538Ky37CA38KR38l138KJ37Yt38lG38l538KS37yx38Le37c138kw38KR37z6390U37Z537ZC36bT36T337Ym31Y637zN35Rp32Md348r37sn35rT38LX22i21J27v32mc21L21G390d23E38M6324G391r34X721n33XP38ox345h34zx37E438zt34xP383j38h5355e38H721122027v35Y3227390m37sT32C137GL31Bn357T233236359r34MH26D210392e348v21Y223390m347i34DW34D436eE361X38573865384z385Z379P3852385L35Yg38HT342I35Yj38d1322P22b22m392V36xN37S036Ax38Ek34Up37rb36yv37rD37yj38dq36nO361T37rx37w436NF393i36bE393U36OO31Ja38dn347J362j37rG38Ep388M36bJ38e338z136bH38K8373a37B037s338KC34Ua37hv34vy393936rA23Q25e27v228228322p23q23V27V342a23V25R27V22A31sJ33WU23U27v34h226u24r27V322p21R21R23s23P393g393V37JO372H38k535LQ38eT38k437vZ36am395e393J394937JI394b38eN37jQ394I37Rj372A36N2394Y322P24n24Q395c34HA34M637Km370535es38ZR37KR38zt37kt377c38H436S237Kx37kz370c2Rl27s36S838i736Sb34XB37cf37sR38N7370m26225327v32mG253256390d37Lp36SS370X36SU38P434zl25T396w32Mw257252396X391c34G6396p31Xv24g33kU32mw25b24y391s37ER26D261397I32MW25d25o27v36qa24825h3956342P21c25F25Q396137MW34Hc2yg24234LV2M125I25n395c36w4395v34HI394o37hj25g398034kV31DF34M7354534pO32GF38Yj36ox24X26t27V31hh322p25s265395226425426d397v2i125t264398G34S936Vw38b0340t34hx32MA37Sb352x2m137ks344G393135r937Kw352537Sl1M36Dl37CF38H2381k377p35HE26n396t1n26725u390m37Ht356m35qg38Ax38pA35871s341k255399w32mW26B26M390d22f33GD35Tv398334lV32mg26D26G390m345T392z398a35hy369k398S1I26h26c3994362p38Ez36ry36qo37M334Qo35tI36qR35p021m21n36QV36o439B037oG34zA26b24626Z27v31F626T26w391s37vi26d24339Bh34hj26V26Y397r36R934h222h172zH326Y1i26x26s39Au38a039aw36nX36bu36qQ38f536By38f737wE38f936c2363438J022V192zh31f62Wm2ZH38fK35ua37Cy39cg37AH162Zh37vq38CT324d31bi2Gr326f3604327A36Yf34462HF33FE32vW32MR2Zp32MT31rq32mm32m835Sh2wi2wk2D1319X390a21o1y1f35wN2wi34TS39DD28539df21c1T35wn2sh21X31HA390434Bv34rq397c26B226321B365n350l32Wu33G0367u22f2311R343H2Jj319t1131bG1039Ea31j21G39cJ2171g356P34DQ1o1r29x36KA354t34NB39e736Kr35Al22522B35BX33o438r3359r32322iW31I4311w32HI39ek39Em356U39eO39Eq38Rs31ja39et39e836kf1139Ex39ez38Py33fP34rD34G738RQ379T38pb32MA11324f33fR33i21N32592Zh382F32mx321P34bG36sC34dG22M31pD36Hu2iU33il22K21Y381F383S2Hk36Q838dr36w521f2382zH21Q21Q36ZY21j2Zh342A1M2292Zh31nu322P21M21G39gq26l323A2ZH23B23B322P21n21H39fz389z37w937v2394334V4363139Ca38iZ37VA31XV21232a434hJ21X22339cj38J735uA1z39HN34hJ21Z22139cQ39bR2641122N39BV369N22i322Z39H8393H395m36aJ36Yx38Cd38CF39Ao36N239GV1I22A22K39i538K7394637jK36bK393Y37w836zP37Qg38K134Su395U37n921322O2zH28P322p22o2322zH34H221k33cF326T338t22P23339Ii27B38jw1J32Fc25z34Hi27S2M122S32bf37mv344032n72m1345E39AN34jJ36n239iY34t122V39Ii38yF2M139je39jG112m123022q39ii39jq34k82641z23h39i1349D23322P39Jw38yU361K37vq39gm322P23823E39Kf39JC36Ya1K34K031Ay34Ic23C23a39K536yk36tm22K1q27821N21N322P23F23939gZ24P26M2zH21u21U322P23G23639j226425V23X39I131RE23H23739fZ393M35yq347037RE38zI34lf39gH398b31ay39Lb32sC23U39KN36NA36Ad395j39IN37VW37RS37vY39m5395P39ik37w239iM38yx3945395o36nt35KU38ER39mh35Z639MJ37Ng38K335NL395g37RZ39i738yW393K39Mf38yv39mD39mU36aM38EY35TH36QM348J38AE35W139B238F636QV39he35M739CB38IA37pA31XV37h439CN25g25m39ho39Bj24I39Ni34HJ25i25k39Ii35n436bj38K438Zc38ld373P36d034aa363w35Pv39Nu37x036yy37X2373536uE37xK37IZ37S939O1347e36463970395T37u738yk1x1A2782CS36TQ26n39nq362O37rW37RT39ME395l38EM37jp39Mq35zf39m738eU395k37w539ms39Mx39MG389z39p13948361W38Hs39It35YI34hi39L2372y33bM37mv37v036nV35P039C338F339C536o139B439B639hF37WG38J02371S27834Kx1t27839cK341k37li39Pu31F61R27836tm231217278231231322p1M1p278319t21L1I27821M21M322p34a427834uq38e734KL38e934l038EC38EE398N37n935yJ39q9322p1u342739Pf36VG34Sc21Z22A36Pv36Wt38YK1939dH1022l22L322p211325h39R2372g35zN36yx369f38yx37q734Hi38Ck1I21a325a39Ri393w36yW38fZ39mQ36tm23G1x27l23A23a322P21j21K39QE26L23v25u310C31ct1I332z39s826723q310c32481I21L21I39s81822627822022039GW21H39qn39h936zp34T735Nj37ip39ks341I21R21c39sw345n37N8388A2641n220278322P21Y21y21u22539t6359d2u2388839P938HU34hi39sK220323038eX39sy362G39RW39lT323235L037Ax36y9362a36XD38k035Zw39U139Tv35yt393Q39Mz39tu36BI39TW34v339U937jd38EI393T39oR39P039ot395F39Oz395d39mL37W7394a388m39MM39I639UP37Jh39tT36Qk39n138F039n339c435uw39n639c739N836C039pp36c338J026H23Q39q123S23r39Px39hP341k26M39vF34HJ23u23P39tj39Nr39Il39nt34ai38mm35qi39NX347i35Zy39Vr35nf36cz36Ou35NI38g738fT39O238z835z439NZ35q639Oa38Ze38ZN39w7360d39w637pr37xA38zJ39wD39WH39Wc39wG35mx39wf39VP34uj38Zq37Kq34CA37xk38Zw36s332MT38Zz39O335P336D832Mr35P7399L34z935pa24j25O278323225e25p39Vg390F34ZL24k39xC34ml25g25n39vO38Lh39o038lC37C7376t37Yn350F38L038kN390x38kp375a38z538L739XP390Y391837Z2390T38l437Yc37Z9390Z39Y637y837Za3910391739Y537yP35r938lj37Cf38gi38lM384Z385r38lO37cm375p37bb37cp391h35rR391J375v38lX24726W27832Mc26U26x39VG391u24039z234x726W26v39xl38Mr37C634B435sY385f35VF38mP34B3380X364H380L37DK380Z380u37Dy39xQ39dX376W364K37Dx39zD382A380R39Zs37dt381339nV38KJ380c35WS39Zg35vX38mQ34B938MM3A0234Ai399g39zH376R39zK35Wr380m38mk3A08373M383339Zr37dr39zM3815381039Zv380n380x380V39zN3a0t38113a0V3a00381732mX3530377C354T377e37e938mY377h38n0381F37ed364s37Ef37M4381L370N22H310C32MG220326J34Ce397k21A3A1L32mg22222i310c37f7354o382B382Y37g737Ow382e347I35W9382v382p382d382839G037YM37f238NU3827365r31Kj383C39Dr383s383g382m3A04392638nV3a2f37fk383T35vo382W3825382q382k383g3a0l3a2I38nu3A1Y38IO3666383A3a2D39323a2L382r3a2g383x35wR38NO35wU3830383v383n3a2I3A393a2435WV383L3a2N3A2U3a1v376n3A2X385X3A2Z383936mY39TN342i26a257310c230230322P24723r310C319T23Q24y310C2fU322p24823S3A1t39P439Ul38Ka373D35ko38Jy39RX37B437S7370537nk39qW34Hi3A3x322P24J24Z3a4B39uU395q39oU36yX388P39IB34ik23k24724J310c2FQ322P24s2583A4t34aI39jc39aF34h02m124V25b3a5927g39jm37N239jp39Kx38BA34hI39SD25024k3a5H398137az344G37y737v534qN36SC38fA39b935mc26624U310c31F625924t310C39pY34Zl2633a6834Hj25b24v3a5939P839oF36oX22734lQ1023N23N322P25f25V3A4226L236379R1023623636rg25W310C34h223721D2uY393d22b25h25X3A6h39Oo39oX39m439UJ39uo3A4v39UM39M939mK38eQ39UQ39u035KS3A5u36di39hC37Wd39n9344G3a6037wH39BA23M26Q3A651K26926p3A6939vh34zl23R3a8334hj26B26r3A7B39w231Kj38g839wB38kf37WW38zl39rx39WA37x739wz38ZG38G439wi39wM37XD37063901375S39NV37xi39Wz37XK39X22M939Dv35PA22O2nu34Ml27326n3a8439xe324f2493A9835P0323r392039yF390w39Zp39Y139ye347i37yw375636EA391438la391639y4390r39xM347E375R35Uv391e38lS391G375t39yU37ZS26B23i344x34x71t1c2NV3800349535Ua38Rz2nV32mc35bj2NV3A0e376M3A0G3A0O392z3A0w3A0r39zq3a033a0h3a0Y39ZB3a0u3A0p380U3a10364Z39zf376H35253a1C377M37eg399p37Lg355G2192Nv32Mg21N2163aAB381T36jH3ABe32Mw21P2183aAj3A3135wJ348B383K3a2m382T3a2H3A233A3f3A2X3a3b3a36361x362W3aby37EZ364N36Eh34e337F4365x3831378r36DJ384e34e926b32p12nv31Z022H2203Abf384O26D21R3ACi348v22j2223abm384v385o2iU38Ln367m385t3a3p386a385H3a2y385i3860356837f53AcZ384y3ad5386739zF377e37t6388132qF386p386H386C31NF386t348U386v1o22x2NV2J623B22U3abf387435UA1h3AdR353j23D22W3ACr387c37Tk3116381C32sp388437A8367p385B379N35Bo3aCV36IK36gI387G36HB3aE62X93aE8356D34Uv38lN21P3Ae93AeL383638o238o438AV38P736HO31y63886379n33At38O3353534G638Od353I38oF26U23R2NV31CG24523O3AbF38oO34r226r3AfB34Di24723q3AE034KH3aDd36hL36iF2xK39A336Gi3aFL36G838P03844366h36Ig36gq37ls36i036ht367L3aed3A1736gn1237Gl379v357Z36GC3AFr354l39G8356X37fG38P236iH397236I13AFN36Hc36I536Hf3afX36hh36gS3ag036IA3aG43agI3Ag136I23aFz38p536HA3agx379O347Y399Z35TH36In354T36ip379r356p38sr36Iu1j36Iw356u36Iy397236iQ34G537a137Gt348u368924Y25F2nv31bN25t25C3aBf37h2324f2533AhS357i25V25e3AFK354l387W354y38q127b38qY38py36K53ai236Jx3aGM384534j83aI8384436k63AIb38P136K139F136K43Aig3aIA35L236lG38Qq38ta357v357x39A236jv35893afV36G038R737gM359U3aI63aIS359R38Hk3AIx3aI43aFp3AIw36jN3AiY3AJ63Ajb3aJ83AG938pH35o036HW3aJG39A43AJ73AGL358R31zQ39eR311W36kC38aU38wk327X35d836kJ36kL38Q336Kn3Aiv36kp36KD36kR358r31nf358t34z9358V26b33ai2uy2jj37u72Uy32Hj36L735UA23B133AkC1S32U42Uy38qh367Y3aiq38Pl35Aa35C238t138Tl359u34kH3Ag7367z386J38TF34Ai3AKw38Q13A6I37vQ3A6y37nC21I3AKO37ng37kl34t532MA33fl37l034wu34Ru37l434WZ38A537l734X438i634x6396L37Ze37LE3a1f22B1X2uy32MG32E13akf396Y35kE37lR3aGq341k22E1y3AlX1n21G2123Am038Ix38N638aH371d26b22h2173AM821k2163AKF3AbG34Zl22M3aMM32MW21M2142Uy36Qa1p22J3A7638da21933053Alb345N39pg39973A5v350F39vZ399m31XV21122F2uY323221U394p2j8399o356131z033II23323b356d31f6324f2103ANH323221Y32X237MV37b1344L37VQ3A6O37qA34hY3A9g39MN393s39oQ39my39Uk3A7h3a4e37s4393J394H37bc390O37Bt391539Xt37yr39XV390q39xx38Lc39XZ3A9p38kv3a9r390s37c539yb39y93A9i3aAq3a9k3A9u39YC39Xy391238ku38l937bb375339223AoP35pY3aOZ35r83aOX351Q3Aor3AP637C43aP83Ap338L83APb37bc37bI3Ap9374H3apf3aoV39yF37cC35rb39yI375F39Yk37zJ38gm39yo38lR39yQ38lt39YS38mG391K31xV25j2512Uy32mc24m2503amN391u25c3aqd34X724O2563AN3380o38SF376f37dD32Qf39zT37E03A0F37F23Aat3AAX3AaP3ApE3Aar3a0b39ZY3a0S3a003a0x3AqW3ar33a0r3A0I351437Dv3aR53AAV3a1035es38MU35Tk3a163aGW381E377j38n3377l381i3Ab639dy25225g3AM825X25J3AMn397K24Z3arU32Mw25z25H3AQL3ac23aQZ383U3A3g3a3O3A253a1U37Os35xe37fB366C3842366f3AjC384635xn34du38493ac8384B37Fn392737Fp38h723x2732uy31Z026K2723AMN3AcK23U3aSw348v26M2703As2385E3AbP387r34F03adc367P36Fp379j3aD3379l34Fi3aea3agv3aH237gj3AH8367W379U37gn368137Gr379z37gr3686357331Xv22Q1h2M233Il327G34CE3aHU26d22v3atZ31bn131g2M239383a3s36RA22z21D2M222J3aMy36X334hk343d319U1t2M2324k33BG340T39rU395M22X23G39R739Kh3A5n31aY3auF322P1F3aKm39Ri38Gc36rU35Ks363y35lx38mm37Si34L037L134Wv34wX37l53ALM34X338H03ALR36sD3aLT399q26b21S21f2M232mg359S2M2370v396z3aM336gY34zl23f34yV36Rz21E2m235jV26n2602M231I5322P1Z21C3AU837rV39mO37JB39Ut39Ij35053aOB394f35yu3AOE390n373L38l237z03Ap03Aow39Xu3a9J39xW3ApM3Ap23a9o3Apa3AwU3AP735R63aPG37Bw3Apd352o3apl3Ax03a0939Y03awz3aPH3aX13A013AX93aOM3apm391A3apu36ry37CH37zI387E39yn37ZL27D391F371938Lu37Zr348V31Xv1c23J2M232mC22z23C3avS391t3AAd341K1d3aY134x723123I3awb3AQs37da37DC38Mi349q3AR239zB3AqT3a2I3AQv3aaO3AR63aQy3A2V3aR03A0N376P3Arb3a0j38143aYm3Aav3Ar43aYw3ayU3aaW3ayZ3AR935Sd38mt3A1338mV381B3AgT323438N134bT3aRl37EE3AB53a1e3AVl26z23s3AvP1N24a23t3ay2397K2703AzN32mw24c23Z3Ayb3Abz39ZW3834378835W3383735uz3As9354p3aSb36rY378k3ASF3aj8384735xO3ASk3a3c37FL34E33ASN378v26B25u24h2m231Z024X24i3aY23aCk25Z3B0O348v24Z24g3azV385N3At63B003aDB379G3ATa37Gb3AD232Sp37ge3aTe38873aGs3935386G379S3aKZ34fX3atO37gp368437Gs3aTt26B24n25w3aTx1r25I25X3Ay23AU124g3b1Q357I25K2633b0w37u639RO31ay39S3322P25O2673B1y39M639uH3aO739p33A4U39US3a7M3A7k3B2C39uW37ng3a7d39MP39Un37383a4D37v238KB3a4G37B3344r3a4K3A8h3ApS3A9T375a3AxH35Th38Lk348V3aPX3aXm375M3aXO35oY374C39YR3Aa238lw31XV24C26N3axY1M26Z26G3aY2391U24D3b3G38Ma26M3B263aZ039Zp3ayp376v3AYR376X3aR8352D38KJ3B3q37Dq376O3B3t3AAu3b3O3ar73B413AZ33Az135T135OE3API32mc34WG39253A2R3b0H23h1927L3anl34I72J837SU358n3AgL392k392M2rx392o23g3B4j31z01U34rn37MV392X35293ACz35ve386C31zq386E354T386G37t63Akr38Q3386l38Ob36qt27D348A31T7387Y34aV3b522GQ3B54311w34G138oa358N39B0357t236232386m34f531T73AgB37q53a6j37N924E25d31aH22d22d36A11y27l342a21m22V27L31hZ39S51z3B6726L1E22B27L34VB39SE21827l34h223321727l322p2JJ21l21927L39ux35Kt34i539KQ36vY34TC37N2345b3B6W345439T839to31Ay3B6K21s33Xg3AUQ39uc35Zz36YX35zc393k35jv23e22227L31dx35ym38H234uQ39633AlE32333aLg396g29K396j3ALq37lb396m2x3396O3amF365a21i21u27L32MG22B21z27l3AvT3Am239713AH0324F21h3B8A32mW22F21v3B8b37ZO3ame3A1F21o2203b871N22j2273b8b3aMo324F21p3b8v32mW22L32TG3B2031Hy33F21i22n2233b753B2b360W31bf1V3719390A38aa22635pv34LJ34mE34X6399e35OT37PV29E3acB35xy1H22T3B4H1o22Y23I3b6w37HT38hJ1s39FP34Dq21021Q340T1J357t37oq38QS359x38Qz38Qf1t34q735xT392O1C3B9y348V23622u27l39Q521d31dp22w22w39Kk22O3b6N26436Rk3b6R1I23f39L522p3b9A3awG39MW39p637JC3A7g39Mb38cb395S38yY3A7O3aN63a7Q36yx3A7S39v739nA39HG38IB39A924A27l31f623x2493B8w39BJ26j3bBS34hJ23z24b3bB439nR39O53a8K39vS350y38G93b2T39VW32vk369F310833Ft2173B9E37L83AlP33Zz34Q53a1l36dk39x537xp26B25d2513b6J1L24e23U3b9z361634MQ35RH2xE3anl3AEj356H324F26w3bCt34Ml24i2523b8M38ix3a90348J3Ana26b25J24z3bcQ24M24y3b8W3a9A26d25C3BDI34Ml24o2583BC03A9v39YH3AxJ37ZG35rF34Dg311037zk34BV39YP3B363Aq338aF3aq539YV31xv25z24J27l32mC25224i3b8W391u25S3Bed34X725424s3BDR3AYX3AaQ380Q3aB035ur392Z3B3r3B3z34DW32MO38NT39303aDA3AT83B11393533Ii358m34Dg22831HA3adh2m93ADj34GE31xV24S26027l2J625N2673b8W3ADT341K24t3bfH353J25P2613bel39iS3b5y39jR34hi3BaS322P25t25h3bb438E1361H3AWF3BG03bB83B2L3A7h3Bg439IO39Uy362R39AX38f236qp39V339c636o239C93BBK39pq39hh26b23x26X3bbp1k333P3bbT37wP26D23u26W3bgo26m33153Ao4350439mw39vy35O537XG39nw39W13a8I3a8E39W43bc639o939Wm3BC239xn39VZ38zD3A8m39wO38Z23A8j39tX3bHB3BC138Eu38ZM3BC73bh03BHK39Ue3A8q39WP31F639wr36rY35or38ZV3A3338Zx36Rx39wY38FW3A8Z35P63a9139X435P93BCM21S21H31dP323237zY31dp390e35Pl35UA23D31dO34mL1x21G31dP3Au93BfS39k725d23r31ah3aw81Z21121C3biQ3B2h3B2839m83A7f3Bg53BbA395r39oV39os3Bg6393X3bJ53Bg83b6y361z39Ud350k39TZ3B6X38jx372739U437rv3B2I3AWE3b2D3A4c3BjB39Mt3b2a3Bb53Bg739Ur3BjV3bg33bG23A5T37Ps39pI36BS39n4382m39v43bgG3A7T37p73bgJ3BBM3ay631Dp31f623023d3BiH3A85324F1a3bkI34HJ23223f3Bj139wJ39nS39MP39nU38KT39VU3bh639NY3BH13Bku3BC43bh538GB350E37yk39W53BHU3bhJ38zH340z39O7350U37X7356A37x639oc3a9l35233b3w3a3l3aYh3AYu3AYj3A233AyL3b4739ZO3bEn3BlL3a0M3B3z3AQR3BLs3ape3b3u35233blo3AS53blq35T53BlK37f13Aas3AaN3Blr3Aqx352O3B3X380S3B44352d3bM23a2P3blw39zZ3bEm3aYO3blu3bM83aYS3aZ23b3V3B3p3bMn3ayQ3BMj3blM3B453ARD35tH3ArF353J3AZ83ari3AzB35TR3Azd3aB43ArN3Azg3ab826B25325E31Dp32Mg25y25f3BkJ397k24W3BNh32Mw26025p3bKr3aZW365S377o3545365w32Gf3a2T3a373AS43bMI3A2a38383a2035uj383y378g37fa3B063ase37Ff35853asH37Fi3B0C383P3ac9384D3ASo384F26B24326E31Dp31z026Q26F3bKJ3aCK2443BOP348v26S2693Bnp3b0X3ad03A3o386Q379h38nZ38593atd367P37Gg3Ah136IK3B1B39f93AtM3b1e379x356Y3b1h3ats36J531XV33qm31ah33Ax36wm3au037Ac341K22P3bPn31bn191v31Ah3aje31KJ3b58357u3aj53Ak13ajl3aJE37Fg3AjK36jw3AEu358d3Ak338RR38q438qz358M36in358P2793aK52M93AK7353i3aK933Be31Ah2JJ389R31Ah3akg35953aaE1B3BQo1s1V31AG3BgZ345I3B1D38QP3aKs123aL43AkP38r83bpZ38Qt3AKu38v236lu21p38T71U3akx354L38PS2iU38Sz38r138PX3aiL38R535Z43BR93baC3Br438qu3bRo38qo38qx3bRv38QW3AL138q938QG38R63aTM38Se31zQ38rb354t38rd38rF35fe38rh34B434o438rk38Rm29r38Ro3BRY39fP38se31NF38rU353I38RW26b21c21y31ah2rX22722H3BQr23e38S534R22153BSw102RX22921Z3bPW38tR38tA3bRS3Al238pv38V434aI35ee35db38pl34KH38SP2IU3Aha35Cj38sU31Re38U938tn38tb3BRB38V334J838T43bTO38TP38TM38tJ3Btr2xK3Brf38so3bTB38qk3Bu138Ti3Bt838TO3BU638tQ35z438ts35Aw38tu35BX34dH38tx38UB38wq348b38u338u533jU35oZ3BtP33aT3Buj38Ud34G638uF34z938Uh26b26833Sb38UV23j22x3BSx38Uq34r21p3bV338UV23L2473BT735z438vg38t238V535C735eH36m536m638X035BV38Ve354L3bve3btl3BVH3BVl38vd3btd3AL6388s31aY3B63322p24223o3bvc3bjW39473B2q3BjD3bjY3BB6360739rM3Ao8393v39U63b7E3A4H3BHl3BJj3AO536NB39oy3A7j3bWI39m33b2J3bwL3b9b3BW83Bjq3b2G3bWQ388N35YT3bwa3bjZ39813bjL37Y739UF36nF39op3bJ43bWb3Bj638e23bw53bX63B1Z36w525226F2gd23D23D322p26025q31ah342a23e2172gd33Gy322P26125r3bxl23K1821g2Gd2Hf322P26225o3bw239jx393N35LC3Bx238eH3bwJ3a7E3bxa3bW73bwv3Bb73bK135ZL3byF35LK3Bjr3BWU3BYH34ur3byl39c139Uz3BgB3BK6382v3bK836BZ34UO37wf39V93bGk22z1S31CL31F638qQ31CL3A6A324f23038gY34hJ1C33Dq3BR03A5i3bl035O439Vt346c39VV3bHr3BH83BL63Bha39o43BHo3Bc33BHF38Z63BHh3bL839W239wN3bZT3a8I3BzV39Wl3Bhn35073bhI3bZu3A8P3BZZ3BL93A8S396639Ws36RZ3a8U39WV37kx3bI438g23BI637Xm3BI937XO31xv22N21431Cl323221Q2153bz435pj3bij341K32NP3c0N1L21s33mm3bZc394238ZB39XO3AoQ39XQ35qA39Xs39y33aOo39123A9X349r36E838kq3AWy352Q39aL3bMA38NM383b3A333A3h3AbR3bEw3As33a3E36513a2k3C1M3A353A3j3bnX383r3c1v3Bnq383O3C1y3c1p382V3Ac13C1J3C203AbS3bnx37f83BO5384037fc35Xi378m3Asi366K3bod37fK3boF378T3b0H1S22z31CL31Z023F2303C0R3ACK1T3C2r348v23h22y31Cl379A35L23AcV37Ge38663C303boz378A385y367k3B153ACx3ad83C353ad73aD134Rq36FS3C3436793ACT354r3axm3acW38613c3C3c3j3B0y3c3F3Bp43C3a3c3o38693AD93c3r3as73C3G3Ad33C3i3acs3B0y3c3w3C3D34eW1P319t23U25531cL343h2J624T25631Cl37R334bi24v2543C2z35Ip3c423Bex386B37Tk3b5334F5386F356n386h3BPz3b5a34DI1139pN35tK37t63Bf737sv34E8386V26624p31cL2J625924q3C0R3bfj3A6b3c5D353J25B24o3C2Z38O03aT73aPY387n387x387P387z3C5n3C3M34Cx3ai33AGq3B5G34b9386C3AE33aZ921X3aEh3aex3aeP3C5o3aTI3AeE387V3aEG38853BD03aTG35z43Aem3aEo356I3c6g3aEk3c6I39yl387T38nr3c6k3aEB3AeQ36g831zQ34g1354t3bq93Af02393bRl323431sK356x34bU3C6534qK3c6x36fx31nf3AF3348u38oF24426b31cl31Cg26r26c3c0R3AFd35ua2453C7h34di26t26A3C5L3b193c683c623Agn3BPc3bQ23b5w34B93AGD37gr3Agf38P33AH03AGJ38p63aGl3aG536i73c833aTH38P63aM43AH13c8b3AvW3C843AGZ3c8c3c8G38MZ3C893c7R3bp9368531zq3Ah5311w3Ah7379S3bVQ36IV3Bqh3AhE33IN36Iz3aHH36853AHj3B1J22021C2gd31bN21321r2Gd36JF3bPp34ZL21T3C99357i21521d2gD3Bir3b943BXq38DA21h3c9j3A4C399635z739t136Zr31F621D32DI36Yj3b7731Ht2362262Gd337E343J2183c9p393h36Bo1h23622e21H34J73bbj3a7u3bbF37xL39433CaA3cAC3bhl3557399822G3a5u399939ls340Z3CAK3bId3bhT38ZN39Ha3CAO36vI34h21U36wV34mL343h21y22m3C9a37I637xG2Ga102gM38Gf1M33iF3cA734b43c9z37lo340t37Ih3BLd34Qj34SW37im374f2ga1O2232gD35n22292213CBH39k634173cBL37Iy3cBn3AnZ3auW103bxG322P22F2273CBH37333aO63Bx53BWY361m394c3aN7347D3awj36003awL374r3AWn3AoL3awp3APC3Aws3AoY3Axa38lB3b4937BZ3C143AX63aXB3Aoi37B73ax438LF39y23ap13c193AWX3ApP3Ap53APR3a9m38L63APJ3axe3cCR3AXg38lI37CD375D3aPV38lL37Zo38Ln3B333be03AQ13be23Aa137Zq3AA33AxU26b25c2543Cbv1M24f23r3c9a3AY334R226x3ce434X724h2553CCC38mE3AyD38mH35tI38mj3bMf3bM13aaL3Aqu3Bm93bm53BmS3BM73bMu3bm4364w3aYy3c1I3BML34b53CEj36or3b463bM53BMY3A1236Ry3a1538mX3BN33A1A3bN635Ta3A1d397B3b83370M24v25Z2gD32Mg25q25Y3cE5397K24O3cFk32mW25s25k3Ced37853Bny3C1s3aS73a2B3A3k3ASA378H3bO73c2d3asG37fh384827D384A37FM378s355c3bOh3aCc23Q2722Gd31Z026D2713CE53ACK23n3cGI348V26f2733CFs34b9385w3c373beZ37gA3BP338503bp535uR3b18361x38513Bpa3Atl3AkQ356U37gO379y37gq3Ahi2m937A23ahl36j624b26b3c961r26y26A3CE53aU124C3CHK357i27026C3cGq34S736tm21523e2J3312A33Id319X319T23g21U2j331DZ322Q2843C1034yM3bY93bWo3bw639ma3awH3B2N3A4F36Xt394G3b2S3BHm3cD33cCT3AQy3CD03CcW3AXc3apo3cd53bli393o39YD3aWq3b2u3aoU39Y83ciX35QV3ciZ3CDD39YA3Cj239LR39yg3cDK37ZE39Yj3cdo3c6m3Bdz38lq3aXp3AA03axr3aq438Lv34z9375w22K3853391X1y2853aAc355Q3CjP34X734d32853aAk380K3aam3bmp3cEV3b423BmM3CeQ3bes3CES37753bLT3cK43B3y3cK637DH3BmH3bme3ayT3b453cEp38233CK53CEn3ceT3Ck83CkI3cKA3CkK3Ck73blz3ceY35sc3770319t2223AnO39ef21h32mg2312382853C4i32MW23323a3cJW35iP3BlX3a0T3CF2377b3cf438MW35353AFN3aRJ35TI3c513C0A3bn83CFC3A1F1u22V28532Mg23H22S3cJq3B8X26d1R3CLu32MW23j22U3CJw3AbN382h3C1l3ABX3C213c253C1x3C273C1Z3C2935xi37f436eL377c3b4L3b0g38h631xv26s23X28531z024323U3clv3ACK26T3CMR38Ho23W3cM33c4334Kk3c323C3B3C453c3Q3c36379e3aT936hi3Cgw39343C3n37gF3ATf36Gz36FY3cG33AGG3afy3c8I3agV36G93CNg3c823cnj3C7r3C8538O6384436go3aGo36iZ3C8j3a183c8L3cH136G836hv3cNm3AgH3cnY3AfS3aGw3c863cnS3Ag63CNU3agU3CNP3aGZ3CO73afo3CNH3AgP3c8f3CNk3cO13Aj83coG3CNv3c8A3cOD3CNR3cof3cNN3COI3Coc3C8K3cOE36I63CoA3cO43agc3AG237Gi34G53C8p356U36iO359z3AtK38uD35c335bX3c8V358N3Ahf3Ah03c903B1i3BpI26b24226j28531bn26p26g3CLV3Au12473CPp357I26r26I3cmY361x36Jo31Df36jq2mr36jS32Gf3ajd3AjI3aII3CNG3aik3BS11T3aI934Av36K73aJO2gq3aJQ31gY1u36kq39FH35eg323436kk2rW3AjZ33iN3aj63CQK379T36ku36kw31xv2321K2j32JJ34bq2j33bqS34R23c2N3Cr039PT1l2J33AKP357S3bt936Lj358k39fP35a435A63Bs234Cx38Q735Af31J23bty38V03bTS35Bi36m23BSb34bb38VA379W38U62X336mB3Crx38W01W35Dj1x32m021l2j331RE1Y21k3Cr323e38wB341K21W3CSa33JU3Ba53CRa35O035cs311635G33bSD35eU21x38WX31C535f935fB35bo3Aju3cst38wu356I35ee38TX35fD38x4348m38WZ358M35Cv22f29N35FF31nf35FH34z935fj3aMH1Z2J32Jy21K1y3csB35fs34r222m3CTK35Fx21M1W3Csj35z435ff31JA38u134B435gI35gK35Ex38wr35El1x34uV3cSN33bq3cSp38X535G735g938vo35gd35gF3Cu4367j3cTZ35gl35gM34O535Gp1Y35Gr32m2347y35Gu2OY21535GX35gz2I235h135H23crw35hR2H535h635h82h535ha21035hc21131XV21G2262J32h422b2213CSb35hm34r221h3cVe3CuZ22D2273CTT38Y7394j35Hz34Hi3ChY1i22H21v3cVN3Bg0319T23d21z2J337qY39GB2j33cL431f622m21W3CrA37R839R834y523K24524Q31AY22v3au31i22P23F3cVw3bwZ3by536ud38Fz3by73a7c3bj33bWK3cIc3b2E3bX83bwS38ew3Bjs3b2F3CWz3bYk3bYJ3BjW3bYN39Mi3Cx438yF39PH39n234X73Byr383u3bYt39c83bkA38iy3Bkc39nD3a8a23t2j331f624223S3CSb39bj26s3cXQ34hj24423y3CVN3bHV35Ys3bH23BZg347E3BzI35of3bZe3aN83bH33Bl338zk3bZK37bI3BL73c053C033bzO3BHe3Cy83BzR36CU3a8O3cyG39W93Bl23cyJ37X838Zg39Vq3BL13BzQ3bKw3BZh3bKy3bc83bwv3CY139w038Gb38fs3BZl3a8G3ciK3cyf38K43c123BZq3CYD3bhQ3cy539wk3CZC3bzD3cze3Cz63bZx3c043cZF35o135Kb3BHx36d539Wu3BI139Ww36dE33IN36Dg3A8u3bDA3bck3bIA31XV23u26o2j3323226H26R3CSB3Bdk23z3d0634mL26J26p3cxy3a9v36Wh39xP38333c16374l3C12392237c73d0J38Km3AOk3aWT3axf3AX73Bh43aPK3CcV3A9S3CIY3CD639y93ciV3b2W3cDj3AXI37zf3b31387m3cDq3CJe3b35346X3b373Cdv3b3926B23g33Aw34X731ay31Ay3CJr35uA348Z37iA1m1t1633Y538163cdF3Aaq3A033a393a0d3D1t3a9o3aqY38mo3a0639Zi3a0Z3d1U3D213bMU3D1X3d2338093D26352o3D2235SM3d243arC3d2C39ZE3A2q383v3a073Az33CKD3ar13bM03cEz3cKH3D2j3bMv3d2q3cKt3ceU3ceo3B433CKf3BmR3d2z3BmQ3blj3ClC37E63A143Clf367F3az93cLi3aZC37SJ3BN738n53arO3cfd31XV1623h31Ay32MG22T23I3D1k3CLw133d3o32mW22V23g3D1s3c283Bmt3As53a3n3CGT3as83CFY38233d3Z3aZz3cFx3a373A323C3R3CM73Cmb3c223AS53ABv3aZZ3c1T3bNW3c1Z3CMA3c1o3Cm93c233Cm83cft3d4K383w3d4j3d4N3D4C3C253c2935ES366b37Sv3cg23b093c2F378P3asl3CG83aca3Cgb35xY25c25731Ay31z024f23O3D3p3acK26X3D5e348V24H2563D3w3C4P3A2J3c1l3c3T3c7s3C6O385c385m3AT53D5O3c3r3c3t3aEn393739Tm3Bis393A34Hi2123aMb1i24Y24P3d5m3cx93BK33cXb39aY371a39B035M136O13b5C34Z536Qx32Vk32N839gG2yG12312B39GG25924m33Y52Nq31sc33L227026g1425T25n22L31wd31Wf31Wh22i25G23x31x031x231X431x61521x33uM27e33J11026g21v23q23021D23a31vX31VZ31w122c22W31rN31xC339F23A2wb339y3D7z27B28k3d7y2wL3D852Go33ad29H32yp183d8527S2fq39DB32k01e2v12RU2IH2rs32kn2GG2Lj2dq39GF2hQ327s2H62CY2GF311x33hd2Lu2x72Lh39s328622X327o33t22132311w34TF2381W33Dv34TF236310P22v1W23D23323936kK23123D1w21W2252371W22P23622T1w22U2393a3X21A1W21v22P2322133d9b3d9q1W23122t31cv22B22W37no3d9B3DaA3d9t1W22t23133902303cTr3dAA37NV3dap21A3d9F23437ap21U239237310p22T28p3dAJ23223523922X3D9f3Db0338V2323BKh2153D7J1026022H25D1r2372jh10237171T28L22422f1M182rx171921z37Qq1t22a2241p334X22122c1R37QP344x22g22C390c21x3bpr3Bv71Q21Y1c23729J22R1H1N25833KO27922q1B1t3ArX297113biU33Nl22821621m21C34ow27923824O313625p21p23t25723N317J24g21023921Z26V26m32jG1022Q24333qQ1o24625Q33On26022k25G33qJ33j324l24929j2382MK26M313623c23H23925O271313W3363336533Kk25J29J22x354X3AZi27e21s395822k1L31df22t2152171H1k21B2141V1j37pC33Ue25D23Y24W26221y339P3dcP35pN2py27922W32xJ247312S21823L336B26F333b334t2nu315r23K26V26221j22923U317j331W26l35GD2Ao23K26N216335n23t33Rw336f343k33Qf22o26M25q33Pg21c25725N1621w29x22P1L27033Ui22G25t25l33N62341921l33MS22k3BFY331733562Bl23321D2Au333m333O26w26M24T29x2301926L2b023K26E1T24g1T23R3dF329X22X1722n2jd22x33Q333kM21l21D1t23X33RE23d24C257335U1737131022Y354x133d7P22f21k32r727923c26D33xT33ts21Z2Po27922P25431UB27923437lY31BS1m34A2163dbS2232251K3CVU2hf1822333wR3diK37903DbV22L24G24829X2381h24i33nl22G26025C31Sq1921726021S26z23P37gx33UJ2KD32NV181u36Wl316k21P1325q21V26Q338J29X22t1t224312l24G26923z22P26m3DfH1W21U1y2623ddY27932241921M3DI635HR24r2E224v23A23D1K26t21d2252cW3AU333C622b22b1S2Il2wp1B33fz390c1o22H22P2Tv2wQ21z23921222b22f359N1s2202252I81e1C2rY32hl1422c392B33cm1Q3dKV1s2272242K31B191L22H33ES2323dGD3DKD181r3DD21022V22B33X12341421g33qF21s31gz24U26N2BL23611334C375Y21333Pt22825u25E33Of33V222W22T2671Q22M2C022t1834CY1j22C31jA3d9w1b21121n1w2382Al3DCq1t29B29123k3aN13dEB3154334i334k334M25G25z22A27923b1V1731W23dCB21y34wZ3dIv3DLU29y2zE21W21t1L22C22B3455344x133DIM22g389R22621T1F1A21w22B1i181D21w1722M1s33lg2203DCA113Dlq3cve3b892Bc1b2nk31cf39qh2203DBy394Y1n2FQ3Dil21U25l3DMi28o3BNC2Iu33Eb21N21Q1z22P32S12Av27326Z25h23p25I29x3dmK26h36OA33Uj22q1322k2vC1Q21823e279338W1W2252363Da122837no23023736Kk23822W22P2383d9s22p1w23033912382303d9W22r2302332373D9w2343dqp22P3dQU1W22s2332323D9B2383D9K22r338x3dAh3dQf22T3d9V338t3dA13DQW22T3DQY3D9w3dq73dq93DQB3D9s2213D9T3d983dR23bKH3DaJ33dV22w3d9b23d3dRg32sJ338v23038wx3DrF3DrH1W2373Dr52343DrD2j9334D25R23O325b23w2633dPV1021t1g21e121j1Q262314a1521N26X23526v3Dgu3dF82581221927314336W336y337b3dt423C332k337q21d21U337922921d2203372337q21e22e3dT722w3576337E21d21W3DtF337E22q21d22d3dT722c21d3DTI3D7o232337021D337x21F21z3DTF337521J3DtA337621D22h36L93du036ZL3Dt43dTM21t337K3Dta337h3dt73dTR22s21D22U3d7P21D23921d22121d22A21D23821E21g338h21h231338C3Dui337923b33793dHO235337i337m3Duo3DTN3dU0338h3DUX337k338R2MV21E338d3dUV3dU021J36l9337v337P22421d22V3Dv521D23D33793dtr337P22721D3dtK2263dVn3DVp3DHo3dvY3DvB338F337h22t21D3dHo332K33KW33853dto21L337K22q338M3dUx21D21g338c21D2313dvl3dw221V3dvh21E2263379337p21i3dwL3379239337922y3DtM2fY3DUw332k343H33853dx221l3DW22Mv3Dvh3dvU3dtM334q337K337B22d3379337H338b23a21D337t21e3dTC21v3DV521e338R3dVp2fY3DwQ3DUN3Dx72363DVe3dw5238337021E21t21G337B366T22p2fy3Dvk3dTA338J21D337P3dUN337e3Dwz21I228337v338422p3Dva3dXh33783Dvb3DHo3DUP3DHO33793DT73dYr21e22z3dVl22e337B22T3Dx63Dve2282CJ3DT421e21L22I3DX3337t3dvn3dGW3DuP3dvp2323DUz21X3DzG3DwZ21j3DwM21U21X3Dvb3DZ821e230337v337b337I21E21v3Dx221I338k21F3duW3dyd3dZU3dXn21e22Q22I21D338P337v21D23e3DyB3dZp21K338r23d3dwo3Dy6334q21D33843Duc3DxX21k3DzA22p3Dv73e0421E338F3dZr22r3DYd3E0421k3duw3dvM36zl3DtF3dVV21L3DXO21D22x3dV83DTl2Mv3386337v3DZ821K3DX73dXh3e0h3DUB22p3Dt737P23dTk33713dU83Dzx338r317i3e0D33793Dxp3dv422Q23e3DVB3dy9337j337C337B31713dvb337d3Dtz3D7o3dUS3dv721E3E1v3dtA3e1V3e2M337t22P337P337A3DzP21F3Dwk3dVB3dw23dZd3DvK338H22Q22R337b317I21D3dzr21u3du43dxX22s338121D227337C3DWT22S2353e1K338d21l22321d366t3duZ21e22S21w337B3Dvp3E0h3Dvm3E18337p3dx7338B3Dwk21i3e2V23721e21x3dy1337B3dXh338421t3Dy63e0m3E1i21d3dtz3dWQ3dTI3E1V3dX221e3Dgw332k21V3e383dzK3duU3DwQ3e0121i316I21g3dxx21y3duE37p23dxs3A743E2c337122w3e14338d3e3q21v3E3n33793E3t3e3e33833dU13E3E21D3a743dZP21g3DV73B8h3e0F3E033DZ83dv4326733793Dvp2343379337X337D3dV521x22x3dWo3dwT21J338K337533763dZ621K337P3dvk334Q21k3DhO337137P23379338F337e33713e3f21D3dyr35763e143DWt3dtS21e3CSF3e3R338P21F338h21v3e0R2mv21F33713dvP3e0U337X3dWr36Zl3E6g21V3dxh3E6q338F3DZd316i21i3DUH21f3DX536Ty337b337H3dvy33o9337B3DYd21E3e5V21D338f3DVP316I3e6621h22f3DXT3Dx33E0221d21t3e5i3dUZ3DxO21i3DYD22U338D22s3dup220338A3e5t3DtM337521l3dy93dTZ3Dta21I3E0136p23DXY3dzR3E7S3dYa21l337D3E2f3e2F337p22B3E5O337B3DVM3DY421e33DV3dVq3DwE3e7O337m3dV522p3dxX21t3E8Q3dvP338H32NI3DyL33793Dx22cJ3dVB3a743DuY3e983dwR3e61337j21l3E2n3E8533763duy3dWM337b338p21d3Dx7338f33753DI53e463E8d22q3dxx2213dUs3dWt3e93337v3E8D3Dve36zL3e71337a22y317121K338921l3dvK3dwW3e3j3E053dyB36zL3dU7337B3DyJ3dgW3dVA3dUW3duH21D22221e22U3Dzr21y3DVv22U3E1J3dT421W3dYt337E3E0h3eb221t337P3dww3dZp3DWy337V337t3DiQ21E223338421u3Dwk22u337j3eaU22V332K22t3dw53E5d338k21d3dWW3Dtk3DUw3dzd3DYd21G22Y3E9333733Du83DXX3DTd3E7Z21d3Dwz3E5O22v3e453E0L33793DTA3eaN21D3E5v3e3Q337h21e222338f3E0w3e12337J22u36ZL31Ef3dvN3DWZ21H3e4w3E5622r337n22Y337T21T21Y337V3E9j338b3DtR3dho37p23dwq3DXo3eAC3e9632673DT833713e1M21z33763dX5391Q3dT833893dYL21D3Dtv3d7O37P23dY62mv22U3e0m3385337B3dVG2253dtw3dvL3E833e7g3E453b853E3R3DYr22Q3dzk33713dzP3d7P337B3dZI2243E5622Q3duu3DTz3E253dZg22r33563E0233803e453eAu21f337j3BaS3dTD21E2203E3t21H317I21g3e3j3eA7337B3dxs338D3EE93Dvl37P23dWg3Dx7338121w337X3dL83DwE21d3D7O3dvP337H3DTK3E3421G3dZ821h22921e3eD733793e4E33793dWw3dvM3E1j3e1i337K3DuH21w338R3DhO3DZ636a23dUZ3e1j231366T2243Dvg33753DXj3Dx73E343DV43eFq3Dxh3dUh220337j21G317I21I338d2243E123dwD3DxH3DVv3EeP33563e6M21D23c3E003e1D366T3e0V3EbO3DZP21T3dtA21T3e3t3EDb3e0e2333ebw3e3433763E053DhO3dWQ3EB23E2m3e0k3Dua3e46337A316i3dOJ21E3EC921e3Eh63duy3EG1337b31WK3DVp3dtO338121e3DWT21U3eHP3dYJ337h3e8D338B3Efr337e3duZ36zL21H3dWz21t3duH21e3dXh3DwK234338P34R73EB331WK3Eaq3dYr2253Dv721u3dZa3DUn3e7k337b3E9N337b21l3dWm21Y33782343Dgw3DX53Dze3eI721j3E613dXh3e1H337j21t3DX5368f3e4G33793EHA3E7133793DtZ3dup3e833DwK21H3DZ621g337n3E3S337v3DWq22B3E5G3DVt3duU3dwK21J3E0W3eJr3dZ622u3DtZ3DHO3DWk310p3dw33eim21d3DV721f3dYd22v3Dx221z338D3EEw33853E343Efn3DwN338k21y3E7y3DXe3EEW3DWk21G366T21H3DtE3e1j22z3E2x338122a338p22A3EEw3dt73Dta22w3a742Mv22V337521z337j22V3e2X3EB9337t3ej33E3u33793Dy63D7o3DU83e4L3E4522Y33713DxS3e663dYD3ef233793dwZ3E06337b3dVY21Y3E0M3eB93EK93E4m3dwt21w3e6e3dvL337a3dgW3DZR3E89337b3Egn37p233713e833EHp3e7P3e3f237338922C3e703dup338d2363dxO3ecq22p3DzR3DxM21F337521w3dyD3e1G3EbO337J22Z3Ee933713Dtv337P337T21f3Dwz2333Dyr2243E2x338a3E8R3DuY2323Dz822x366T3e6D3eeX3e7X3Dwy3e8d22v3dvT3dVP37P23EJp3Dw53E7o3Duy21h3e8Y2383e583dyj3AuC3E1V3e012323dwd3dtO3DWd338B3e6Q3EDR32o233oL337T236337P3dYx3EdR3e4621e2253e3p3DtR3E293e012is3EFr21E2393Eb03EHa2363DVV3dm93e05332k21i3E1j21Z3Dun3389233337H3DW53EHu3dx22343E8D22U3dwK3EG021E3ePh3Eit3E9h3DWh21h3eJv3e3421T3E3f22S3EHS3E7Z3E25338b3E7K3E5G3dVA3E1F3DV73E583EHq21x3dwz3dur3eb33e0r3e7R3dVy21E3DVV22y3dU4338P3DyU3dWP3E5e3dZ53E933dvV3E5s22p3Dwq3e9I21d3eEw338F3Edc22D2fY337j3c943dVL3E293ecq3Dz63e9o3E363EBw3dX221F3edc21e31713dTh337b3DX5337W3eI83dV83DZ23enW3E9J338921F3E613eBd3dx43eFE21e2323dx53dv333793dVt3DvA3dvA3E613EHd338k3Dt421F3dTK337J3es1337b3e013dwR338F3E7Y3Ek93EcK33753EkR337b3E6N3dv33E293DVP337j337A3E0421d3DZa3eB13EKN3e2F3DWM3E9H3DTM3eg03ea0337v3eRo3E9j3EIs3e3F338033793EG83etH3e1d3DUY21i3dWz21f317121J3E1v2Mv2303dW23dtr3eCS3eJU3e813ehA3DxM33ol337937p22Fy337t2263DZ622t3EDc21I3DXO3E7P21z3e8Y31Ws3EKn3DVa3DWm2283e833dZp21l3DUS3eaQ3E8y3ecJ3E3r3dy63dGw3EBZ3e0F3E9j3e3P3Dvg3e2X3dZ43DWK22T338h21x3e4E3edC21D3E3n3DtV3dTt338d21I317i3etq3eqs3e452243eHA23d337n21l3DVp3E83338d21H3E1j3e2t33843eAu2273auc3e3T3E7Q3E7Q337t22C3dTA22c3Dto337J33923eTc2383E8d22c3eI33EbU3E1j21i33893e4l229316i3EU32263eA33e2x3E6q3DWk3enB3Dy63DXZ3e4l3E033dx221K33783E5O3EcG3E2m3DZX3Dx221g3Eb221h3E3f225337N22C3dwK3EHL3DXV3dZb3ehP3E563eJW3e7s3Dxv3DTt3E5Y3eMT3Epz3Dza2223E2C3dyd2343375222337D3dy93E3J21F3eC923d3E343ENd3EQY22V3DUk3eB23DWs33793Elj3E5C3e8f3e8D2363e833d7o3Dz821T3dvY3Dzk338P2253dzR2303DVv3eXt337H2Te3EP33EJ2334q2353e1H3E7y3eiC316i21V3E3D3Dtz316I22a3Dxs337D3eG022S366T3Es93Edy3eS6332k21L3DTo337b2263DYd2323dxe3e1M3dz622H3DTa3eau3E3R3DZ221D3AUc33753EPC33793e5622A3E5621Z21L3DUK3dgW3dHo3dWw3euD3EGy3dWT225338n337h3e453er02243dYR3e0d21f337d3E3Z3Ef5357g3dz53E7y2Mv2263dxx22w3Duu3eqm3e6q3E3f21Z3eYP33852373ECS3dzP2363dwK2363Dtr3eCh3dxx21F3ee3337b21Y3e7p3EM92mv3E5A3DV421I3Dvv21F3e5v3e9x3eu321y3E0H3EQA3ESG3E7m3dz82323DwM22f3elo3Dw53eiS33893e4Z337B3E9J3dwm3EPp338321E2353Eb23e0d38Ab3ep3332K225337H3dTT3edw3dZX3dwq3dtK3dXS3dwG3dWT21i3ec93Efd3DVx3DXp3eCS33813d7U3EY621I3dvY22S3Dxx2263dTR36zl2273E9r3DUn3Ek33E232mV2313E8q3eJi3E833epQ337b3Ey33DTQ3Ei23ehp3f163E183Dto338D22p366t21I3EB221G3375235316I3duK3dWw3E1V3e8Q3e6Q3Dwq3Ea33duP3e0121L3EKC3dzf337a21t3e0j3E3y3Dxt3dUT3dx63EU43F4a337H317121I3egw33843EWw3e033Er63Dww337E3DUy21g3eUb3EGU3DuH39Sm3dvb3e833EdW3E2O3E7233803DWM311j3dwr3DUH23e337t22r3E0M3ej721W337t22S337P3egW338d3E2C22C338D2373DT63dx731Wk3dZx3dTK21G3EyP3AUC3dX2233337539tF3e143e1y33852MV21H3ekD3ezN3dtA21H3e12337821h3E0M21F3DWT3CVi3EB33EaB3ET83dwt22p3EB221I3dza21g3DYR3Dal337q22I22H3eyP2mV318s3e7q33752333e8d3EHQ343B3E1K3E5622V3dw23DyD3dzA3DYB3E0R337A3e6f337V3dxH332k3dxl3EF63Ev93DuK3EIC337D3eRl3e973EKD3e1J21K3E9Z3EE33E583DWm21j3du4338F3dTt3EC93f433EdX3Dtm33763f3p2MV31WK33793E9N3dWQ3DYd21k3DtC3esg3EY03ET03AUC337b2203dUY3eRN3e6m21e22d31WK3e563ev933763e8D3EGx3e0f3DxX3eHq337Q22g3eAx3e5h33813f3Q33853E5621k3e1P337h3E5d337j23E3EHp3e0121Y3dwT3DZk317i227337t21g3dVY21H3dzr3eIK2MV22W3DUW3E5D3E3P3dUP3dus3DTv3f0b3DVK3dWM21t3DX22283ErI3dt63DtV37p23eK9337t3dQf3385332K22c22G337q3F2933yG338J337h21k3EFw3eHA21H3dz822H3Egq337833ji3E6R3DuZ3Dt93DT9337B338k22i3E1B3eqe3dTV317121f3EDI337621K337h21H22R3ecS3EPP332k2293Ecs3A743dte338h22b3dUP3EgN3dtA22Q21Y3Ecs3EE53DT6239337h21J3EHD3E4N3DuO33793eWJ3e3T21v3e0121k3fBW3DwZ21K3e5V21K3ec1337J2303dzd3EI33ESn3DYD3eFD3eAR3Dy73dtf3Eb22393f5Z3375221337j21V3F5P33703fb433703et43eC1338d3fCF3E263dXH337t2353FC43E2X3F5A337E2363DUK3DtV3E9J3eBM3f0v337I3E013eXx3Eb33fCL21V232337H21I337x3Emm3dkQ3E9k3e3F21G3EJf3dZi3Eld3Ep33e0r3DUP3DTk337H3E6Q338H21f3EY03eEi338c338H21k316I3Dut3EyP3E6f3fad220337H3EIF3eAF3ehw3dZ62203EIS3FCu3Dvl2gS3DtN3Ewj3E0u3f6F33782313eG83E8Y3ear21G23C337h22s3Dza2353Esn3dHO3dtr3E2F334q2313e5621W3e4w3f9g3E453eFd38ab3F4A316I23e3dx9337622w3fDE3e8d21v317i2343dtz3dxs3Ee9338H22T366t3eF13DWK3E6G21J3F9m3ES63e45235338H3eK622B3dt63E9j3E9J3DvM3EgN3DzD3DzP31wS337c3EGQ338h21l3F3E3e9J332K22I3dwt3DM83e903ECS3dxS3eEL3F9D3dWP3Dtk338D21g3dZp21h3Dyr2273FCZ2Fy337v3eT03e0K3epZ3e4G3EcS3DwW33843dI43DX6337h3F9V3EtI3esA3DTl3E7K3E7E33843emM3e0F3FdG2MV21Z3E2L343b338c21T3Fad3dxX22u3fbi338c317I22p3dzi3ee621E3ehd3eNe3f6W3F4a21k3duy22U337h3Ek1337j366X3E052243FbN3dwM21l3eEW3Dyj3EJV3eT0337h3FIc33723E073dXb3FCL36a421E31wJ3faD337J2283e2C3E5q3dwd3dXL3dx22243e012223EDR2223f8x337521I3ePx223337h3EBt3erp3dxH3faX338p22q3e6A3DVL3Ewr33763Ffb3Dz83eb23Eyp3F4a21c3f6P337E3feh3etQ3eYp3dUp22P337s3E9T21E3exF3Et02fY338422V3eeL234337H21V337t3fDo3eWz22Q3EDr22b3F6w3Ehp3DWM3ExG31wK3FGY33852383Fb2338K3E173379338121t3Eg022X3Eu13e342383FkA337i3E9j3dwK2283E3j22a22e3fb237P23E2x3fB83dWp316I21u3DZK3e3N3eIc3dTk3EC93e5I3EYP3E7P3e1h3dX23DuU3ezA3Dyq3e3Q21e23D3F8r3EB03edc3FCf3eC221E3ElR33793F3e22R3dw23E2F2mV22q3e5V21u334Q336p3Fb23fJi3e3q3DTM3Dwd3EdC2223e343ezd21d3FHx332k2353DZ63e2W338j337K36zl21V3fhG3AUC3EEl337G3ea0337e3E8Y21I3fk83DUt3dVt3Dvk3e7533793f0y337I3dzA3E0P3Ecs3F2b3e4523e3FDG3e3T22S338K22s23B337H22r3DVP3Dx23Ek23dWc3eLN3dzg3DtC3dY93f023flT337j3e33337C3DZa2323e8Y2253Dwt2343fag3ea63Ehp3E3D3eZy3dub337d3DWw3EAb3dZ621u3dXO22W3DWm22C31Wk3FjY337e337521h3FL022z3e0u33892283F783fnS3dTD21H3eFU3Fbm338C3f9W366x338C3F00338C3Fdy21k22s337H21Z3EiK3dUz3e8y31GW3E803dvM3Dtk3dtZ337E36ZL2mf3DXq3Fl021U2313ecs334q22D3e1v3f553ea03fB13DWE3fA83fdD332k22G3fBJ337b3Eyy316I3e3I3DXP3e463duP3dWQ21x3fBn3exY3FhX230337H2303FL03E3n3DUr3DW33e6S3e1J21G3e5V21H33843dqG3FLT3dtI2263fde3D7O2FY3dTA2is3fAD3FGe3dZp3f1g3e1436Zl3F5j3fk93e7v22D3eyP3eN03Dz63e2s3Duz3ED93Er73FPt3e0I3EdW222337h22q2fy3Dte3ehD3duP3FRK3E2D3eC833763dvv31wK337H2XD3dwC3DGW3ee93esg3Dvk31WK3E6z3EMo337q22Y3DwW3FD13Efr3EL73e5633SM3fbN3E303FN933853fi9337J3Ef9337H3eR53fCk3DYl3FIk3aUC3DU83E0m3f9133793171392L3fB23FI93F3T3fq53e0i337X3dvl3E053Dzp22R3E6n3ERT3ecd337b21z3ETH3EBJ3eCk3ekd22Z3eCs3e3423b3dwK2233Eeh3fJg3E3422X3F0A33793E1d37P23dTR332k2243DXo3dBQ21E36733E4m3F9C3f8l3eLl3EgW3fJa3ECg3FQf3eA03DzR22f3E9J3ft622T3Fcl21X33713E013eQ133893F3S33793FL73duT3dTz2MV326I3F4c23A2Fy338d3ewx33853F93338422H3duN3EHa21z3feS338c3fE73DyL338B3f4g332K21g3f2C338C3E0r3e293dZd33793ENB3E703Ftv33563fdY2293e3T338833763ec93dAA21E23e36733e4G3FuT2263fa83fVi2263DZI3Fm43fik3e2X3FLJ3FRE3dwP3e0k21i3DVt3EJ73E983EY13FLO337f3dXx2323E7e3f4A21j3DXg337v3E7e3DX521I3Dz63CvI3eZA3ENP3eH733793E1H3e3421y3eJz3eH93erX3EA421K3DyP3fGR3F0w21g3DVv3E083eU23E9H3E4M3dUZ3E0121G3E07337J31HZ3FNo3FHT22R22I3Duk3Dx5315e3dTg3Egn3e0C3E7T3fAp3dUh22t33813e0D3Fcw3Ftn3dV43f2c337v337n3EFt31vf3EMu3duq3Dwk3Ef63e973f5D3FXi3DZk366t23A337N22E3DwZ3fk6337V3E4523836zl22q3fPc3eB13Ftm3ER73Flb22r3Ef03dWm21g3DZa33713fk13E0J3E9j3DZP22q338922r2fy3ehA3e1i3FAD3dW23EOU3efy3fhN2333FcL3f5T3DX33F9h3fqk3Ffz3dZr3E6L338D2333ei33DyR22U3E013e1v3dwc3dUn3eTn3Eyh3Dvy3fUR3fv3337e3Fs1337H22X33713E6N3E033FQ021J3DWW3Fue22z3Dx222Y3feh2243E3f22P3FHT2MJ3Fik3Dy93fqj338C3DVv3FHY2fY3dwK22s3E8D21H3dvV2273fl03faY3FB23E0H3dY93fff3DXt3eB22223dzd3DZD3E1j22d3E342393DZx3fHP3EC2366t3FlE337h21y338h21j3EaQ3e0J3eaa3E7z3ema3F2521E3evW3eb33eKQ337B22b3F3e337G3EQs3eL9221337H2233esG3e183DHo3FHN3fK13Dz5338D3ePW338g337C3eT03Eu1338r338H2283fuC23a3DWq3eD33fp633aZ33793ft63DXs3ek73fAr3e3R2mV3E0H3Eqs3E3N3DvK3EGq3e0o3eB23eE93FMS21f3G2B3EDY3e563dZ23e2x3ehA3E5b21w3ETb33713E4L3dvk22b337h22F3e3t331i337H23a338D21z3fKO3dwp3F8533853f3T3dZ623E3EJ43dZk36ZL3f1U3f8h3e093g0X33793e6L317i22Q3FLo3eck338K3eDr3fJB337T2273eb23dWk3f4f3F6W3dTE3dYr3fwG3dUz334q3du83EiT3Dx03F253dX521X31713CV93f7Z3dZ73fAr3er73Fde3G04337b3Dv73egc3e05338f3AUc3DY9337B2373E833fj73e0k2233ET83Fnn3dTN3e3j21Z3E7Y3DT73Dzz3fVa23C3fVa21W3fnu3g3f3eP33Enb3Dwm23622f337S3dva3E123DZP23d3E6l3FqZ3Dwp22A3fSr317122p3FMZ21c3Dxx3eLd3DxQ337a3DTk3F8L3FWD3EM5337h22y3eu5337H22P3FuC22E3FXt3dUx3Fp63eoi3eJT3f4h3FH93eU13DT63Etb3dvM3DyR22y3dTe3fXl3FrK3fQj3Fk93DW53DTv3g6F3Efb3E8421f3DYR22a3FUc237337D3DZ63E9C3EfQ3eJP3f6h3fax3g3s33563fIl3fGY21v3dHO3dtV3F3h337H22z33812293EUD3E0m3CvI3dxq3E5D338b3DvT3a7433753G123Epb3e1v3DT73FlJ337T21k3Fht32tb337A3g5621H337N2373e123373338122t3E9n3EJV3fq0238337J21x3f3E2273ER23E9x3ek93e4O2Fy3fQR3g5R23e3DuY21j3EhA21j3DZi3e6G3e7z22T3eXa3e4l3e2V3fp621u3g3v338K22523a3FSR3E013fHp3dyb3DWq3e58337536L33G6v338K22H3fRM228338N3G412373E563EaU3FB13dvl3g7222w3Fyx3fbm3FpD3Dt63DUe3fKJ3DvM3DTO3dWq3dxx3foS33763dtA3Eoi3efu337J22P3DUu3FL733793Dyd2333dZ63DuZ3g3x3Dyd3fHH3f3o3E143EF03FlE3Duo3Dvv21U338h21I3G553Dyd3dqR21E3FY33e6S3DUY23c3fGO22d3dWt3eUo3Eil3EY0337N3Fb43E0F337t337N3FnO3DTK3eT83eGn3Dwd3E8y3E963eeA33aH3Fi7338122W3fJf3E7O316J3Dw53fS83eCs3E1J3EKE3EP23F933G1i3Fi83Fbn3ga03EFR3DvY22x3Dxs3Erm3fp13dyL3gbV3e583e2C3E7R3duu3FRM33773fE83E1V3E2V3FdY22F3fDy23b3F883FH43dVB33713FlB3Fz53DzG3dYR3DI53dZE3f6i337s3eT43G5r21u3FSf3e0i3ei2338p3FMj33853DZ821f3fw8337N3Fx73ecp3G6Y3fnA3eJQ3eZa3g2i21e3f6p3fQ73dve366t2203E0c3duj3Feh22B3ETW3EyP3Dwt3FsZ3Ekr3EF52313fUC21I3f9a3EdR22D3FP623D338d22X3DWZ2283fil2323G683Ecg23D337H2273Feh2353F0b3f8d3Eb03FKO337v3fle337v3E3t3F8U3GCc3g72322Z3G0C3EB93g5R3geD3enP3F3L3fvC3eaC39J43fAQ21h3Fsp3DuY3F822323eC33FnO3dHO3ek93E3j3fX53Et93EEL3E1J21U3Fmz337c3fE83DU43ft83E8q338p3dyc337C3g3V3fic3Eit338D2213fe23duW334Q21t3e293E3N3E753fil2273e8j3etj3f9e3gF72243Edw3dvT3DY63fcE22C3eii3fG83gf722w3dTC3dTA2373DXo3E2P3eR73fMs21W3E9n3Fn43gH13dwR3E6l3dt7338f3dtv337X21g3fVQ2263fp82213G1N3fI6337s3DWt3er53eir3E35337t3fqU3eT23Dz62393F0e3F3p3g723EWi337H22i3FCN22I3FUe22I3eBw3DYX3FLB323Y3Fbn3DxX23B3DVP3Eub3frE337k3f4e3Fq03Fly33843EnZ3EWs337h23C3edc3eWw3ENP3DTT3eKU3Gi93g2821i3fvA21f317i3Enz3FdI3e6n3EAk3fCL21G3eSN3G6f34043FLk33703gBh22g3E4W3fiL22A338H3fJO3E0l3e3T22A3E3j21W3E563gjN3dXU3Dza3fw0337H22v3EMl3FSI3FjY337k3FEs337r3E7L3EuB3gC5366T22B3f5i3dUH22b3dXX22h3fVi22G3gB93GA33e1Q3F773G2b3dVl3eg03e0D23d3dTI3dX222d3DWd3EZ63fCE3g813fz721L3fRK3eV433oL3GA23dX23gbk337c3E293DTz3F0B3duY21y3dVm3EdW3371337x3f9d3e493een337t21L3dz63gLs3E4m337H3Duw3GLv332K21k3DZR3g1831vF338H3E173f2P2263E1H3eTH3Eb22313E583dW533843f4H3dZQ3e2D3gBq3fvQ3GLb337h22b3eT033842393FrM2213E1V3f00337K3E563fH73Fv33dZG3e3F3fI63f8I338P3f6I3Ef63F613e933e2X3EeW3g603Egb3G0w22x2Fy3Gj73eEL3DX223e3DZA3DZU337h238338h22g3dX222I3E1j23E3Eol337T21c3DTe3E70332K21x3DUY3DXF337V3G4123E3Dtr3dVK3dt73FVI23c2fY22T3Fi73E2T337v338121K3fu63fAY316J3eMr3fw122p3FiL3ERE2343e863g6H3DUz2gs33793FEH22t3Fq3388P3E493FYL337Q3EGg229338922t3Fq03DtG3F4A22d3EE9338n3fdy3E8Y3G1R3dW731vF3FQp3fWW3dXu3FCL3Ff23fvZ3GNK3FQ022P3Ep13E123Dy63DUs3FVu3eIo338k3fUR2293FRM21I3E8y3ewb3Dzg3fRk2323Gq73d7O3EG021i3fHt2363fB62273egn3G3R33853G0W21t3FT622g3eS23dVq3F1m3eEX3ECt3fIk3e3421V3Ebw3dxX3E6Q3fR73FNR3fmz2353DYR2293G0w21C3g72337e3Duk3FHN2303fHt33703DuK3F5i3F0v337v3Gf73eR7337B3Frk3DTc3E003E3f23c337p3ev83eu13DvG3g2822S3G553fLb22u3gFh21t3eeL3E8d2213Gri3GHv337b3EHp3gEE3eT43fQz3Gbq3Ec73Fj7317I3GLn3FsR3G6V3Dvl3fiy3fAD337X3Eo13G5D3fET3Fp622T3DXX22V3389337R338c338P21Z3F9G3E653duH3fvM22h3ga033763ftV3FJl3dwP3gi93fy93FQU337h2333gF933763dy63dv722T3flB23B3DxH3fN422z3DtT3eL73dVy22P3DWK3FJO3Duz3fna2293DYR3Fmj3Gi93FcN22Q3gBo338F317I2303EK93G0m3e5v22i3fpH3E293G1c2233f40337b3fiL3grm37Pl3FvZ3f953FYg3E0m2213Dwq3e2V3f6Y3fAH3379338P3EsT337K3e0123d3E5D3fWq3Ehp337T22w337822I3E703Gke21W338P3gNn3ET32FY3Dti33733Etb3dXx22r3duh3Ef93duZ3fp33dxL3fMr3dvp3dx53gG0337t3EtS3dXU3DXO21J3g1N22I3FVA23e3G7221k3Dvv3Eza338g3ecP337K3EP13E293GfJ3dV03FU53DZk3FCL2203DTR3dZi22y317I22y3E56322Z3EaV3fad3E3U3ET83gCB3e0U338k21g3FMZ3dL83E2r3dWZ2303E5621y3G9i3f6l3E3j2313Ek93E6V3F4a3esg3eMa2Is33853Fp821F3gOe3duA337J2363Dt63FdD3e2m3e5v22Y3Et03G1C2213fok3e2H3gnO3DXx3e1G3FH93FnN337b3Fgo3GmO3EA03E093F743G7M3Fp83g3S3gb633ol338P3GPG3dyB3eHa3ePw3EB33DTr3Dyd23c337j3el333853FyZ22i3EC93eI3392L33792353gnx3duh23a3GEe21k3E9j3eg83f543FQ02283el73ec93FQW2213E2X2Mv22R3GsA22R3dWk21z3e0W3E5v22s3EK93G4r3e2x3EB22273g383dYe3dTH3ErO337B3eqd3fIF3g6y3G383e0i3dWS3GZs3DZr3ekV3dxu3DVm3dtt3E3422b3F553e6u337H23e3E4L3E663FJA3e463F0r337b3GB93ee93dGw3ETh3E2C3EeW3dwD3eCk3ehD3H0722V3fOP22Z3fKa3dxd3GjR3GTq3dv43eS63DUz3fmZ2393fRP338c3fHn2203ecq31wk3e0h3dW03fSu31vF3fd63151337b3F7q3EVS3e7Z3G0y21f3fDY22w338F3E453EpP3FbN3gM53fp13Ef62mV21l3egn3dvv3FeN3EEA2373h0o3gQC3efU3FU621j3EjI3fT83EEw3E703E7P3fHX3gmI33783Du33dUZ3fDV3E03338K3daA3g8r3g7m3dx52373GFc3Fgo37hh3gtB3fPn3fh83DuZ3FCN22z3eeW3e8d3eAq21h3gEz3e562253fbI3GDN3Fwe21L3DUn3GD43Gi93ER5337V3Fcn3ehj3fsK3GUr3eEy3G4W3H2U3Gc63eyP3E3P3FMz22w3e2l3E8d337S33803Dy63G283gYT3enI337t36mA3goF3gLv3G6h3Duv3e023GLb3EpA21f3ey33eaD3eDD337T3E1j3fBn3Edr2243E453ED43H443gtD33723epQ3Dtk3DZI3fbR22P337822p338H22p3E4e3fp63eYu3DX3337A3Ee621k3DwW3Ft83gKd3Fk13e5v3fKc3DzR3H4p3e253G3f3Eu73E3n3duH3FvH3fm03H3v3eK43e6h337H3g2s3es52333dtt3e6N3FuT21v3FPc3E2m3DVY22H3FYZ3Fe9337p3dYr3e2W3f4F3e3J22W3Dta2233DTO3dyj3fT83DZP3Du83eF23Enp337n2363Eaq3FB83dzg3gy3230337d3a743euD3E5m3GXu22s3edc3E7g3fjt3F5B3dWt3FkG337h38cQ3fI73gW03FY922v3EAT3Gyo3E4M3Ggp21w317I22i3fU6368n337B3e3J2293gsA21I3fcN2283Dxo2353GPZ31712353H273frK22s3E7m3DwM2373Dwk22b3Dta2253Fb62313gky21v3gFh21H337D3G6F3e5b3GVV3fKB3FVq22U3GT33f7R3gE7337k3gt521T3F8L3fiA3EVN3fQP338g3Fad337833s5337633783gRY3e5C3GII3ehD3FXT3eI43H0x2313fP622Q338422G3GYo3DU13fuT3gJE3fE83DuS3dx521E3GQM3Fg83DxX21J3DzA3Ekm3dtr3E3f21h3F5z3gkG2253GOE3EF63fP321F3EpY3fDX337h22H3GxC21G3fBm3dYb3E8d3a743dZk3dZ83DR23F8i3GEe3dz12383gVc3fAQ3ECl3f8h3g753DT63em93F1h37P23e583dXH3Ek93dvm3E2f3f163est3dWg3Em63g5d3Gfi3EEA21F3E833FoP33eo337H3db33Ex03GLT2393dZ82363E3D3E54337T3F38337T37qb3E2m334q22E3EiJ3dT73e0M22E338f3duU337D3eT03ECK31712253Eb93dVK33733dZR3Ee521Z3E452233FJS22q3Fue3fJV3DVu3fMB3GSA22q3h3v3gJg3f4b3dyX3eKZ337821K3f4j3Eg021K3e8y21k3fp33G21337t2303dTI3E7P3g7K3e7Q3GOw22V3DYj3fw13Du43ExH3EEa3erP337t31fU3fhZ338d3GuC3eyp33893gVT337T3Gv63F20337t2323e0M22h3e5D3duN338k21U3e613E833dwg3GAJ22T3Fuo3Fk83DVL3dun3e8Y3FIf3DYB3eST33752373gB521G3dUn3ebm3e0m3G3S3eOX3eCQ3E0k3E9s3Fjp3Efu3Ga63F253dxx2293DZa3DXa3dUU3Dx5232338921V337n3EG13FMm21E22A3duS3hCh3FEt337t3eB83duz3gxh3fx03F0y3GOx3DtH36ZL21G3ffF3eS63FsF3GY32903flz3FWz3Et03FyV337J21K3Eak3gE2338P23e3fo03h3V3e873dyB3Eb03g683fM03DYd23A3h903fq53ePb3F9g338D2223E013e243gFh3DxM21u3EVD3Ex23DwZ23e3e183f2D3gOf3fkS3FB23gow22u3EY53e9j3G723G4d22Y3dWd33873FwV3eLq3E8y230334q3GV33eeX21l3EB221K3eXw3fYz21t3f1D338f3G1n2223EL73GF723c3grg22e3fDb3fvc3e393E5T3h3R3eDR21K3FT63DC03eBo33753FhX3DXm3ems22w338K3DOt3eOx3fK53E423Gt53FMm3dTg3e3j21j3DUu3gWa337T22f3Ga322P3fjS3G973gLV3gxc2263eB222q3dTE337B3H5N3e573FB23fuE3B8h3fB23gKy3E6w3E6S3DV731w13duZ3H1M3h6h3EPb3Dvp3fKT3h0X2213e4l3Ha73FlZ2283dV722G3E8D3Dzu3DVu337B3etB3fi73Et93GCb3Fi63g7o3e3E3gls3Fd93F7R3f83337h2253H413h6B3es63dy93Dt73E0w3frM22Q3dvV3eFJ337E3G3I3fh13Fq021V3fVa3h2H3dyA3eg1337T2333H6821W3E3f3FsD3E813edR3eCJ337H22E3dtv3eNp3f5P3Dxz3H9e21L3ERo3Dxo3el022h3Dz82313fY9337M337s3gOw34PE3dxq3hBv3fP33hJu3duX3gej3heR337T23b3a743EyN3H6822D3dUy21w3egn3fiA3H2Y3GgG3E1I3eLQ3Ed33Fil22G3GMx3hcg21E23A337j3eKV33853GQf3fY93Eqr2263FNA21w3eao3GS63e2m3EDc3Ema21Y3dW23h4G3fsR3Ei23EBW3e2C3hFF22T3fIl23d3dVg3Fq021f316i38Ct3e0F3ESk3FN23Gf73DZg3eB33E2x31Wk3G153h1m22w3fUt3gvZ3dtB33793GoU21h3ed93H913gxu3eU63Eb33hJY3eCs3auc3h683Ge33FIB3EOx3dY93FcL2283H2y2313fvA3E5S3dzK3Dwt3he73EQs3DXo3eJ722v3DVY3FFk3EdX3DtI3ec93hBQ3gw83Enu3e7l337d3fLF33793g1g3dUZ3dxX3eto337H3e093f8q3fVN3fXi3eku3Hdf3Fp621I3gF721L3DU43E0h3DxS3GwQ3f5f3Fhn2263E6n3FRp337c3GHb3eCg3f9s3FCV3fvI21G3hel2353gLs22Q366t338O3FA33G6f22P3h9E3fV9337a3gI33dwE3fcL39sM3Gba3G8R3dTA21y3gXH3eFz3GMP3dW73gy43dVL337T23e3hH03h8M22I3DXx3hhN337B3h0o21c3enB3FCJ3Gmx21u3g353dX73E583Fu622X3EEI3F8i3H1M22d3Dy13glv3e563FkC337t357k3DZG3Hd23dxq3DW53H413GlN3ef63h8u32O23Et13ei63GhB3E053E613G3V3g813F0Q3fQK33893ftM3dVl3dw53gxU22d3duH22u3Hmh2233E583GKv3GD12223DYx3eV83e563dk03g513hjh3Gfu3F6Y3F743hli3gFJ3HNG3gV03Enp3FVC3ecZ3EpB338r3dwg3Ga32273FIa22d3eha2393e8Y3Ex333763H2y3faH3GDX3G0922y3E0m3f0F3EeW3DVA3eb03dxh3h6v2383E9z338B3eCq3GXC21u3hLP3Dua3hjM3fLo3FP33FqU337K3fEH3g5p3FU53e4522d3e4522s3fii3e003ESm3G433EE63h3W3DTM3Gxu2323fnA3gT73E6j3dUk3E0k3g2s3Dv421f3fVC2333e2F3FvA3f00337t22G3fcZ332z316j3dzI2263hly3ecH3Evs3heq33nW3fH93fqf3dZg3duB3G2g3Duk3E7W3e3U3Gcc3fJs3E943ek93GI53GTD3hIj3H2z3duY22i3eck3e9X3fP32263dVj3EKP3fh13f8m21K3eE53Fl02393EdC3DZZ3GE63g5r3GAD3gka3gST3E3421J3eBW3FlB33ce3eU73dy93e9j3FZG3dtV3dto3giX3g8X3F9E3em33exL3f4733793Gf93DTW3f4a3Ga03g3X3F5D3EpQ3dWZ3f8222w3f0P3dzR22W3f3E3esI33793E6Q3G013gHj3g5R21k3g4m3FY922Q338p21w3dUW3DTC3GF93Fa33go5343B3Esu3H2x3g513H0n3dvQ2313Eb23g1S371z3E9i337T21i3duS3ep13fva3F2T3EQr3DTc3fCl22t33893eHh3DvZ3du13hCn3FEH22I3FP621Y3Ec922X3h0x2223EC1337E337d3edr3gI33f8I3gaJ23B3g6f3g7p3f9e3H6V21u3Hfa22i3Dwk2203GsW3gxC3gkt3Gno3erC3FNo3Ho821j31Wk3gRG2213dXH3EGM3G6921e3Fa421H3H9e21W3h9e32Fs3DZg3HQL3FN422D3FQz3e713E0M3EuO337S3g2b3ema3hCY3fp63Hmc3EA03H442mv2323Fcn21J316I21y3E3d3F232333Gfj3G5022T2MV3eT43EJI3eCq3hdq3e5L3DTG3FmZ3H483gka3FvQ3G1J3fpD3FuC22D3hiu22v3f233hl13Hy73dwE3HO622g3h22337T23c3htg22g3H413gQn3fh12373g283H4d3fmm3GF723E3fJS235338922a3fCz3hW53fDE3EHd3gc23DWY3FnO3DWZ3er43HAo337E3fR73e7Z22E3gmX3dt9337t21z3g1t3Dz63HLe3g5a3E6m3fgr33892243Eu53GLU3dz53E7P3FD13DZg3GXu21U3H1M22g3e833h493EXF3fq53E2w3DZR22Y3GXh22y3E3N3FVc3FGd3eii332K2323erQ3eEi3ENd3Ebl370A3HLO337K3e7y3EY33End338d23E3FnA337C3e133HHi3Gv03DUH3e0D3E1N21H334Q21H3fq02223EG03Gz233793Fqj3eIt3Fb83EnD3GyO338o3fLj3FPy2203E8L3e0122I3GXh3dA43Dua3DtD3FeT3EBL391q3Dvl3f0y3e713f233dwd3Dxu3F6w3E9j3fP322T3fQf338O3DUH3hjU3Eit3grl3ga53eZR3DUk3e343e663fW7337T32Fs3Fde3GGP22s3FCl3Gml3G3i3Hr73fqk343B33903GM03dt43H5K23a3DuJ3fUC21j3ffs3H0721F3GT32273e453H633FmM2FY3e5v3dFo3h9k33783fo13Ezp3Fh33Dz53DV33EbX3dUp3FEH3E7S3fB23dx221j3Edc21J3gAh3f273hfK3DzT3FW13EvF3hAk3DZP3f1Z3eIt3HVt3DWg3G3g23b3ED93Ekr36zl2263EtN3FRk21l3Fsf31333H3r3EXp3H363gUE3FH93FRe3Fay338K3fHs3f8i3g1n3ExH3eMs3ge63g273EBw3E7R3F6y3H753ew13H9E21x3FUo3Fxt337h3h9o22v3gb52263F6j3h8m23d3Ee2337B3E613EY53F6Y3eW43dXi3e6q3fHn3fBi337T21X3dWK3D7U3DUz3gxu3FX53ggg3hNq3e6L3EDr3hSr3Gtv3fZH337K3Eji3flj3hMH3fVq3fI93Fvg3E5V3f993G5k3FrQ3fdK3hVq3G503f8i343B337G3hCy3dvp3epJ3FIL22Y3FLB23c3FFQ3Dw23H072293dZr22t3gRG21f3Fgo238337N3glS3DVP337v3GxU3h7Y3GYN3DYB3eHU3H1M3h1U337s3fuT3hi43gls3F0k21g3e6q3H8u3G7t3DxT3gNx3fqn343b3G0Y21z3i5M3eP13b8k3I843e0k3h9n343b3elR3i8D3FCL3FzE3i843e183FDD3du33g1Q21Z3FP13H403FB43H403efj3I8D3Fhp3dU33hvt21z3FDS3EmE3I8d3HY23Fpi3i863dUZ3h6V22R3dV73hiN3e123E4e3hW42mV3HjZ21Z3Dxh3dVT3Fe23FzU3fP622H3Fw13f603Hl83duz3fp636A43fCv3Eb222A3HZO3fHt21Y3eCH338p22g3E7P3Fp62373h5R3hqg21U3e0J3goW3g5j22v3Hrq3e453Fvh337T2393du2337D3dv33dx73e8y3Dxc3FSQ3GJg3H8u3fgY3HVT3Hq93FPD3es03eT03gXC23a338F3EBj3ga32313EST3G1Q39J83Gj53EE93gt532Tb3GIi3FcL3f1U3H8J3e0L3DWz21W3dVP3ECH3I4a3GMx3i1R3dZK3ESg3h1m23e3Gxm3E3P3h6V2333FP6338r3fLt3h993Fpc3HAk3hOw3DwZ3I5722x3GxU21K3ehd3G3x3hnK3fcv3duy3Ic23G1R3eqM3g283gnG3hvT338K23B3dx23g4P3hS9343b3Dr13G6V2gS337w3epY334q21F337n21K338122z3d7O3dUU3e1d3FE73g3221i3GE23E3J3f913Fk93gn422h3e4U3fP63FoU3Hpb3hxm3dgw37P23hm93fpY37Kf3GbQ2mv3F2C3FQk3FP822T3DuH36Ty337h3Gqn3FRQ3DU43h8U3GeV3HP03F6Y3h4J3e7Z3gCy3fQq3E7K3EII3DvY3h773GFa3HPn3F8I3eP33FhN21L3f743H0x21c3dWZ3E173fe83EF83FvQ2293F123FL73Es13Fes3Es13esT3g7C3dzG3heL22F3dXo2233E2x3dVa3e0k2313fyZ2353i642233FpY2253dz62233fvx3gXu3exz3Ek7337T23D3Fp6229366X3Hlx3I1X21g3Hy221L3EVU33813GVo3DtH3GSa33nN3DtN3Fx23h033DTc3e6v3E613fu622w31wk3G1N3dr73F6y3FQ32233gTz3dwZ3hkq3f563hEq21V3FRp3ESi3fzz36Zl22t316I3EIW3fSN3duz3edr3fMp343b2243g7222h3ev8338d2383Dvv22c3e613ENP3gmX3i5k3DWY3GH93EEU39K33dZG3igc2243h1m2283Gke21K3f0b3Ifg22Z3h9o22u3Dx223D3g3G21y3eG03FvV21i3Idi3FNn3g8R3DUk3i2H3e2Q3icQ3Dz621j3Gow22F3fKh343B2233EFf337B3f233HSx3dXQ3Gxc3EWr23D3i443gB63I6Y3ejA3hpB3FqK3Gxc3fXi3eVQ3gfh22H3dzp3hk63EB13I6Y3ECk3Dzx3DUY23a3htg3en73Hl43ejM3Ftg3dXY3F6w3h073hw53ET33fB23eP13Dza23a3IEx3fx23GLt3Giu3dzg3EI63Egf3gXu3ieL3e953Dvp3I7D3hg03hY83Dye3Hwh3E463eHA3Hfo3EKo3hiG3GVp3E0333813fpw3EwZ3Gr8337K3Em9338k3Gn73DM8343B21K3fcz21V3FW122r3G6h3FaY3eDR3Erm3H403DTt3e1m338n3E4e337D3E183g5R3hxf3ePb3FnA3DLN3i5W3eEx3FWg343B3f9a3dwp3Fil3h7q3Fbr3hGe3GLt3EXx343B2283FKA21F3Hj23ihP3H4d3ICq3fmz3eXO3gNo3h012373e8d3ey03F8I3eqi3fVi22B3eAa3erw3E963Ebl3g7p3Igc3e823HW4337j2233EdR2213E2l3FIl2343gL03i162253gjM3h9o2203Gd122w317I22x3ep13htG2293E0m3E833HGW3eA53F4l3hVT3H9H3Dto3DUE3dv33ExW3E183GEU3Hel3HJj3g1C22a3Iby3e8a3Gou23a3f4N3eMB3gBQ3a74317I3gX83Gut22R36zl3fL63gV03gt33gR4343B21x3H1M22C317i3Gi73dWo3dvy21t3DT63GT33FLt3gr83dvb3fm03gy321f3gIX22q3Due3GoW21u3dw2337N21G3GC222T3Gc23gfb3Fk93DWK22H3DUP3e0K3H903d9J3FUs33OL3Fb13f693gy336l63I323eub3G283EET2253E363DWm2233DwW3h1M21t3H413i3d3DWI3GpK3I2q22Q3i0k22d3EBf3fP33hzG3ECl2313dTE3DUE3HDc3eMA3GFj3ge7337w3dXu3Edc2343IBV3F7r3I6Y3EB93h8m3EsI3ENp3Fp321i3fCZ3I2p3eY63eqZ3eW13GaJ22i3G7b3I6Y3eDr3EGc3DyA3Et2338431SU33803E8y3e793I053gjg3fUo3iel3dw23g4F3f4L3Hay3Ev93fCZ3fF43ee73fQb3g093DWg3Gd23Dv63ebL3H8C36L93ie33hT222y3I8Q2323HgY3gaJ3iF13fdt3gT33hZi237338D22q3G963G1n3IC03f8M33863fDt3e6a3dZK3FHR3Fdv3HJz3B85343B2743dZk3ICY3hY73eSA3FyA3i6y337x2393fb63Dz53fDe3fHn2353f0v3inP3edC3h5a21H3GEe22I338h2233hvm3E3P3H5K3hl13fu53GF72323g7221z3i1621L3Gy323C3eae3gU5343B3I1Z35763f6p3Fay3i2q2273i5421k3gNz337v3gT33fzr338m3ELW3IcY2263dZ823033812303dZ62303EaG33753f3M337t2283Eb222i3h0122C3GCV2303fLb22W3HTg22w3fmz33813eyp3fJy3eSI3g683I3n3evy3ejI3gFJ3h3p2333dvM3gaL2MV3ICp3E3O3Ekd3F8X3I5422z3FFf3i7E3e8y22X31WK3Gy33iEX22V3g413BSR3dU13ftx3g0C3gsa21V3dza21U3g9V3dGw3I0T3H0Y3H5L3FK93eb03I812363hjZ3hCm3e823G363Eh83Flj3fdv3FEH21c3hY221C3ho83fN33Dz53ft621F3dW93F6Y22h3e7R3iDj3hXm337v3hO623D3GA33GS03DXU3FJa21F22f3I8O21u3hI63DZR3GWr343b22w3eHA22C3Gy63hO63EnA337t2343HXX3hdq3Fu53e3J3Hrh3EF53efT3hSx3Feh3H3D3EF23DXH3Fht3i2F3g3f3E37343B22d3Ggp3FQs3fh33DvX3DUh2273I1X39TG3Hc93Fn43EnU3h0a3Heb3Fq02273DUU3I453E3F2293fGo2283eJI3ho623433713e423FUe3ITC3F6Y3f9D337T3I1z2393i1D3fu53hEB3e3j3ie43DZG3gEl3gTd3H5K3f2T3dZk3FAX3g0g343B3fV63Erp3DUw3e0K22h3i7Q3gB53f5j3H1N3IuE3fe33e1i3dTE3eC13gOw3gEr3i1Z23D3FPt3Ei43H8m21l3Ggp3eS93duE3Dxm2303eX83id22fy3dxb3I643eiW3dxq3feh3FlJ3eG83g4123D3fq33HGn3HeG3eg03E893GNX3fRK3Do43EI43GC43gD13Hvi3EEN3gdx2313IHo22s3gow3i603Eck3ItM3G2221L3EIs3ITM21j3hQG3Euc337V3GGi3e6s3fYx334z3eqs3DW23fVI3FH23fuo3hNu3FMk337P3Dho3Fqt3I1z37qB3F5B3e0K2263FUw3g6f232337X3eMs3hm43dTf3FyZ33773Iky3f0v21G21C3h0X3J0j3ehE3DQp343b2343DTr3goU22d3hT23hOh3iI23hc93GOw2313fHv3fE73GJg3hEL22q3g5R23c337N3duj337v3h9o34RH337k3dXl3H0x3I3R22V3F2Y3fn23i8122a3Huy36MN3gZP3EI23ezW3I2q2303fE23E5v22T3FIa3g503e4F3gzW3E5g3F5a3Etq3eB23e11337B3gkG3HCm3f173g1n2233dYD310p3g893HIc3FlK3iH43dvl33783gxn3e2r3Dtt3e2C3h073f5h3Eg33i653Gaj3dcC3gqj3gI93E5Q3DXu3hv03hH43I9b3f563FL93J0z3Ebo3iOB3IrP3E4g3Fcu337T3eM533763i2Q22u3EnG3fK83FDW338B3IEn3f5p343B3GAo338j316I3ecO3i6z3G183H1e3EkQ3Fko3e0a3fIC3g3f3Gim3hXx22Q33782233E1y343B22f3Gf722U3j3w3E713esu3I8K3g5621K3E563EK622w3GSP3eT43E3j33563dwc3E9d343B21u3ISk2223DYD22D3EhD3iCY3EBO3G6V3DWm3eUF3Fvz3HVQ3H9A343B21i3eDr3eJl3GY43Ht2332k3f233egg3Ecg337T23A3fDy3h1P3Ekr3eND3fbn3dVT3HPn2203GLs3g2u3Hjv3fvG3GSa3G9L3E7l3FfZ338r3Est3e1V3Ex63e583Fa83fvU3G7221C3GAO21v3fSF3iAv3EzR3ECP3E5E3hpm3ffw3fqb3dYA22E3GEe21G3Eri3FjG3dUP3Ge53fYX3EU83j4N3eL73FUC21t3H0O3GO73Ikr3hq823d3J3k3Ear22Z3haA33793Ito21f3i8K3FM0337V3gt53hls3fM03HtG3j233ef23E1J3DwD3HfW3fay337g3F853EnP3e013fyR3fk13eii3E833HRi3I0k23933813eBw3egr3IrT3e2W3HeI3dwC3dWm37pL3IT73dUp3DTV3DWM3f64337t3guH3Ic83j523esu3j3k22x3FlD3FyX21v3j543e8D2343Gb93ewj316i37mQ3fjb3fQ022u3gI23H0o2203e4522V3IYu3g413HQs337B3g3i36733fXM3I1x21H3h0x22H3dY63EHA3g8S3DVl3dUj3grg3iBQ3gBq316i3IyK343b3GA53E023fs23DWd3f8r3hZ63i213i7x3Fe4337t2203fuc3eJ82323Fu63iAE337h2343E183dZ83iKQ3FUD3GI93DVV3J2E3gBQ3fvA2343fq02353eqR3gOe3F1i3ho63J3q3IWq337B3e7G3HpN21J3dyD22i3fWD22f3e5V3E9z33713f0B3H3O338h3fqb3is53gxs3Eqs3hfF3ht43HZ93I642393Dxo3j5G33802mV3dva343b2273Gxc3EE93eda3fNN3f5P3dWD3dZI21W3g3g3e5Y3e3C337v3IJz3I0K22v3f5a3J0M3ISK23a3h413J4g3eI23G3g3Hy23Ei83GA9343b2213h1J2203IX93GLt3HKA3e3R3hIU21K3FcL3eu633563GXH21g3Ho83h7B3dzK3gah3e3d3igC3gju343B22e3FyX3e693FU53fcL2243hX23GXu22z3eG022q3FCz3e2c22p3GbH21l3Fl021l3eNB3fL03fed3fMS3GVH3J6G3e2M3g1N3HG43FB23DW23EBJ3GBH3E6w3eqZ3Fge3H1m3Iv23fk13hyl3g7k3J683J033FJB3fNa3d9y3fAd3iFg310z3G0C338k3HY03f173fUc3i5p3E7Q3dZx3G4U3gcC3hY221G3eg02303EGN3i8q21L3ItO2393HVQ31W23f4F3f4a3gQg3isr343b22X3GsL337N3gX83j973E6O3fer3iK23Gow21C3I4q22B3g4l3Fq322y3hdc3iHh337K3dWd3dZP23C3Dx53eq93eDY343b3hgA3j9W3e4523b3EEW3DWT2363dzR2373eiK3EH83FRE343k3eDp3ekr3I713FQR3hq13DHo3dvk3f2g3gR8343B3Ekd3fvg337X3f4k3g183Dzg3fQ022z3iho3g3W3ePb3DWD3h5K2213fna2223gB52253gxh3gs33Giy3HhK3IU43HH73DWr3fax3I8O3elM3gM23jf53haz3dW13ekR3IHm31vF33793i8u3ina3DXI3hNb3fcY343b3Dba3Gt73eCT3dZr3Ebg3e6S33783emm3HAZ3HO63hFj3J3a3dzp21w3gb53G1F3J3a338k22a337p3EBJ3Gd13EBR3e0f3Dvv3EER3IJl3i5R3ESH3ei23H8m3AuC3EBm3f6Y22Z3E663gBH23a3fvc21X3FEH3HK23Hj03dwg3G8r3FwD3IHv3hjv3i5M22x3i4Q2353DTZ3H993E7z21h3gF921G21u3e233fuC21u3DuH23d3DVV3IJ922h3H993fsp3DZD3GYo21G39Sm3JCM3FhT38CT3ew13E0r3eYT3H2Y3DuS3eMt3fad3DZ83Ex33Eu73fTV3dwQ3Ebs3G2h33813IzL3IGj21F3E0W3I8O3CaC3F5B3ff33E0h3GLG3EDr3HdN3END3e0J3iL23Duj3Du13FYz3I49343b3fjH3jk83i6Z21H3iTm22Q3flw343B23b3FT63j4s3g1R3fjs3i9e3dXZ3EVQ3gN421U3I5m2363F5521g3dyg3iIa21f32453HSM3iOB3E2S337h3Epy3GXs3FxI3f3q343B3iGC3hM43DWY3e7P3JJ4338n3E0F3Gbh3g3U3g2z3jgW3fb63jl63EKY3IFS3ECR3fHt3eSL3Fm03F2d337521t3eXw3dwg3g1C3IYH3EF63Et03E7g3GaO21T3Eb222T3e613iXL3fVG3Iho3Fwo3eKr3fe13faD3iob3hb33JmA3HXX31513hhK3F683IwY3EST3E3n3EC73eg03F6Y3JcE3J443Fn42263hOq3fUc3i4T3fHN3Fq323d3fHT3el83E7q3EC13FY93C943f0A3Dw23eL73G7I2363fEh3Hpa3i813ec23Ild3dvk3hxX2283J0l22W2fy3EtP3e863f4j3i4v3FP63ikk3E9o3Fil22x33813gmF3fbn31WK3EhD3DZX3DX73fVG3Fdk3E3f3e243FYG338D22H3I1d3gOS3H913DGW3G9G3fET3e3D3Ev8337x3E5S3j0g3ffm3FWE3dze2CJ3EKR3dlf3fuS3Ecg3e9H3JIP33763f6P3GhX3dwQ3F5R337B3EaB3f2C3JOw3Hj5337B3evY3fPc3ifj3hJz3j5f3IvG3E2m3F5p3HEp3geE2383Dyj3dX222x3dWW2gS21g2203e0R3FGo21i3Dy93g683hep3dVG3dti3dzD3DTr3iHo3jD43Joo3DuB3dXO3f2321w3Fe73iFj3e0U3Hk73ESg3i1D2323fK83eC83fp62233eVf3GAj3GQg3EkR3Em53Dwo3EUB3G4v3jqB3Gum3Dt73dVV3Gvh3FSq3JP73ES633783eR53j0M3eKr2213e6Q3fL73jPl3f0b3EtH3epp3jOw3dTm3eY53E363gOe3Ec83HuM3EZr3i9o3I9o3Ekr22x3f863387338p3jIR3jqI3hMt3dKQ337633843gtA3jr6337p3DYp3E1m3dXt3eX33dtv3j5w3jRg3JQB2223DY93DtR3fqt3Jjf3EKr3Js23Dwr3GQb36Zl3hNM3ec83dTv3DHo334Q3hep3duz3jQ43JRH3ebM3Em93es03JkT3js23hXm3EG03IrX33763JsO3hO83fIr33853dZi21I3Jkt3GUM3eKr3h5K3hak3gfi3JQi3E2F3dWd3e5M337X3fOS3js73E2f338F3g1t33733jRW3JSp3eC23f2P3fgS3ein3Jt63E5W3ECl3e7F33853FLe3jSD3Etj3hem3EOw3efE3Jqi3eDE3eRX3Eey3EK73Jti3gw03ELY3GKh3jrX33793Eae3Hw43dYd3e873jRg3FCL3EQ433833Ire3jJk2223e9j3eQM3I8o3H4A3IfJ3h0J3g1r3Io33fqz3jQc3IRJ3dvB3E0H3jkt3jrH3I7N3fy83eK722y3E9N3E0u3eK13dyD343h3JS73E9n3E6l3e0j3ErQ3gHb3JQT3GW331vF3In93jUX3dwQ3eDW3hUG3iJR3jT63HeA3iY53e5q3fBm3jrx3EKr22w3hwu3JTh3dtV3DvG3eFa3Dta3Jku3jrm3eEu3hio3JKx337V3fI63ifj3jp13dAE3DWG3IFj3e7k3GO03GR83JPl3hJx3erx3jwf3Jt13ifJ3dVk3eaQ3jJ43JSK3IFJ3Fia3fZx3jqY3jbD2213J4X3Fp13ghX3E7T3f193jP43JRg3GxU3J5f31Vf3fjy3Jow3ew13du83FJS21G3fB13jqC3JrG3f8F3evF3Fbi3Jp73Jqy3dVy3f8Y3jl63JXI3eC83ENp3IcP3g6H3jp22253JSg3Ec93jxo3jx73EzR337Z3dYr392T3jQI3DuP3EuB3Eha21i3FQ53EX33aUC3iKa3E8D21i3FFF3ec83DzD3exf33843JJr3JuD3JoO3ECk3ejI3Jfo22Y3e0R3ehu3Ft83JXH3gS33Ekr22Z3EC73FqR3frP3JU73HC13H2O3Ic53jX73J6G3EVy3EaQ3fd13eX33fKo3j6G3iFn3GaW3jbp3eNK3eQZ3foH3jwT3ekR223334q21V3jqn3jPC2233e123E123Jy72243fFd21F3EXW3JXR2223hq83jYV3e6733763fqj3Gjn3g863gE133853Ga03jxx3fVz3gX93gX93ekR3gWW3eea3hod3FPG3JQy3jPc3It33Gak3Ekr2243dTC3fAG3eXL3jYJ3Ek43HOi3erm3j7G2252fy3dZi21g3H563fHP3jZ33H8P3EIN3Duz3FpT3jZ32253et83fn43e0g3jTy3EkR2313eDR3dYc3I4R3ERi3DXU3dZZ3jr12313E6n3e183E2F3K073JYt3fVH3eRt3e2V3Jp13Js23k1c3edW3egn3j7g3Eo13eKr3EcH3EI73e463jQY3JPr2263fI93evD3F003cv93e9Z3eK13dyR3fGU3K0q2323G9a3JwX3jPm3k213iNW3DX53Fdl3JV83EKr3J9T3JZi3Ftm3Cv93E9N3gHW3JW03jTS3jWK39TR3Gay3gAy3K0q3etH3hy33k1z3jpc2333fSp3Ifn3Jyy2273dwM3JIx3EKr3jB93e813Ek72273fvq3G6z3JrM3jRG3E703e3F3f1i3JT63Jrg3E9j3e7R3jXR2333GFh3j572313f0Y3jUT3i4T3gHL3Jra2343Fv033763dZi21h3fXt3F6k3Fi73Hz93JWX3eaJ3Jqy3e9n3DyJ3JtS234337D3fkJ3f9A3K15234338F3fl03jfB3JUo3Ep33eC13e2X3Jts3iC03G89317I21H3Ef83jP63JwP2223eBw3E1J3F5h3JOo3jIQ2223Ge53e9J3jPc3iLu3JQU3fh8337m366X3eX33k5j2203Fep3iK82213jJ43G6U3EX33K483GvG3EeI21g3FUc3FUc2343Jw73K5f21k3dW23FP33I8c3JxD3k5w3jtA3K2E3jr52293dtZ3Ebj3f1b3K0Q368F3DuZ3JQV3JR13jWp3JZj3J683JXr3k203K5w3E3P337A3JPk3Esg3iv631W13ekR23633713hRI3ghW3K533dyD22C3E3j3e5N21h3jyd3dS03EQn3eEf3Ird21g22a3gT522X3jrA3JuJ3K0c3f2L3hnl3jBp2363G4v3F203Ek722a3dtv33893GdM3Egx3ekr3gjx3ej83dxP3GHX3jBD2253e4L3eis3jtS3JV23k1c3Du83F6W3eY33i7x3eV83ewu3gwL3JvT3joV3Ex73jrp33763J8Z3k4F3DyL3FDV3F3t3fic3jRb3k1C3gVN3FGT3K1522b3E0W3G0E3e463K893EET3e043F2V33853JIQ3EZi3Eu43dUZ3fGR3jxC3jwk3f1s3h193ejb3jX23K2Q3G0y3fB63Fon3K1B3Cv93gE53Dzk3jRw3K6o3k2r3E5I3J8z3k4y3cV93k2N3E5v3fqS3eKR3IgV33793eT43dxh3JPK22C3E1D337Z3E2C3JWx3k1q3k383Ebo3Jw722C3JVR2zK3fM23f793ilM33703FP83jbh3Eav3e9y3ekr3dtt3fwE23b3fDD21G22d337P3For3FP822A3K5l3JOv3jWV3GTe3GTE3eKR2333ehd3dXH3ek73IXH3DvX3E0l3k3m3hXm3e9X3f743Fqf3Jz333913Kb93ETq3kaQ3K7H3GHX3jOV2203k2A3Kbk3ho63K6E3jv83EP33icp3FD83k2t3K1v3JXy3fLz3dQR3Jpz3jQi3iKa3JBM3EkR2343J9z3fj73jwx2283Jsy3FmB3FB83jSD3jYK3esv3eYP3KBE23a3iAh337V3exF3JyD3jwP3Jzz3I19370a3JYU37p23d7O3dGw3KCD3K6O22Z3JP63hU03eKR3e7y3DXz3k153K6O368F3gEr3F9D3E5l3j043eRS3Jtx3k5w3GcV3BXg3guR3jRG3JpR3DvT3G2Z33793k4A3jYT3Ebo3e7P3Dzf3eKr23B3e3f22c3GoI3Jr12203fjS3jsw3H5a3eK43k6w3ewE3Fwv3Jfo22A3EE9366T3eFB3DuZ3Kcd3Jwk2243DY63dtT3jFo3grp3DuZ3jXK3K4A22A3fag3f5Z3jPk3emJ3GP43etn3jz92743Erx3FdW3gfk3EKR23C3F3T3e0222u3joV3KBK2253FUo3E583jxC2373G0Y3FyG3k5V22B3erI3E663Enb3jxh23D2mV3F5T3k2G3e7k3em93jwx3Jzx3k2Q337j2323jWx3cVu3erw3Jw33eKr2903jGZ3jU83EzV3k213fE23F633EoF3G3s33qs3et83Egq3ecD3KBE23d3E0U3Jbp21g3jR53he53FVn33763fnr3K5j23D3DzI3g7P337v3jqB2383I1z34223hw33JPl3JY72333fKa21G2273EnB3jBD22q3Es93hnn3e033DVG3fes3JPl3Kg53HXI3duZ3eK33K02310F3jB83I2Q3f5A3fvZ3e7Y3jjK3HpM3EnD3jXW3jQZ3EdS3e053e3t21I3hNl3F2Y3Fz43f6a3g9m337d3gt53J5F3EfB3Ekd33713eG83eV83Gd12373dzx3dvM3F6y23c3dTi3go13g413fdf3Ebm3JPK3j8R3JQy3FAx3f8f3KG53K4f3ghX3JIQ2293fP1343h3dyh3JS73j9f2353Ehk3F5P343h3egN3F003h9a3dtk3eCd3gjC3h2O3Eg92313fd1370a3jz72213esG3iob3IPc3DWY3jWX2323gco3ho63IyH3E373iJ1337p3Fre3H2u3G983eOd3f8D3fK93Icd3GC23gde3IE13Hep3K403hmh3inl3j513h2U3e0K3gkM3ilP3InM3fHz3fr03ep33dvr21i3jJ42213dTk3e703FTb3jTA3Fes370a3E293Dxh3FsP3IxL3fpC3Kis3k3n3end3i8O3kH83e6H3EzQ3KIy3g0I3FqB343k3I173h413ev43KKt3fQF370A3Jr53J6a3DwH3fjV3Kge3f0H3FwE28p3end3HnV343B34rf3gt73Kgy3f6P343H3dWq3eD93gg03EvU3GfJ2223FTm370a3DtE3JPc2243Fko343h3g6h3gG03FJy3gG03eeW3DWq3fZG3f7k3end3J5r3e823goe3h2u3hnb3jr522v3EuB33813ePk3eDA3eQR3Dx222S3GN63Epp3gg0366X3gG03JVd2333jkT3kIi3gG03dV73F993Km93FXt3gG03f0Y3I1r3dVr3i3k3KM93eEI3Gg03Ghw3EXf3gTf3I1e3dXS3Hft3g3222s3FQz3F603fef21F3eVy3F3t3KCD22V3egY3F9d3i1r3GzI3fv33i1r3g2B3k7C3fB43i1R3Gc53g1Q3e7H3JOO3hri3K5J3KNp337R3KO73H1p3kDl3jWf2343ghb3i1r3K0222z3FK83f603KlU21L3fPt3f6033843h2X3EnD34oV3k0L3Fi63KNZ3dv83ixV3ftv3f603hCb3Kop3kNI21l31Wk337f3kP33I1e3k022383Kkq3hc63i1e3I8o3j773JiL3K3S3i1E3KlZ3dXc3h4d3ebo3dV33EGN3eNp3FJa3HOd3HJZ21f3i1x3Enk3kkt3dUp3E1j3i143jK13eJm3glV3KiR21H3fbi3kk43J7i3Gmp3Kl621i3F9U3E0m33G53j2W3kDR3H6i3KKY3EeW33713dzr33yg3eP33fb13h7U3fP63fW43DYa3gM43e963KN43F603KAm3f1W33763Eio3Jp12393IJz3JYb3k892273GfJ3iYh3DXu2Gs370A3h413dUs3Grj3hF721I3iT53e183dW23KpG3Duy3ELG3G2M3F173E7O3IvU3Dy93Jt83h8C3h7u3jxR3G1l3Et33j4k3DTn3Huy3IPL3i063gXc3IOE3dUa3DZd3jxh3k5B3kM93KQK3kPh3fCz3fN03f0v343H3e1V3DtV33812263GA03H7u3KKk21h3el2337H338122f3KJ13KQ13HZ93dUB3j0l22e3KqK21i3EKQ3K3P3EK93eEw3EDr3HZP3E143Fyg3F4a3ikS3JBb3H2u3fkA3kJ23J5h337G343H3FPY3h2y22p3DuH2363fP32233jxh3JKH3dut3DZe21K3FHP3fos3i1D3k493Eh93DxQ3E8D3fTp3klG3f7q3fvc3gwh3EQs3Ktb3kGE3klg3kr63k5w3klG3EBL2343f5A3h2U3FB83jKC3kk03ksa3fz73hM43FSJ3eDY3KSg3EuO3FgZ3H193End21v3I1M3Frp3k513Fq03JKe3eNd21T3k403kmW21V3jR122w3EuG3dx73klP3HOz3Gg03K2a2203E563gi3343h3FNN343H3JIq3J2c3enD3e473DXU3E2i3eND22T3HQG3gRp3F7E3dzg3ktb36a23k3F3IcY3IPL3efR3End3jhJ337t2iJ3eKR3g3y3j8X3fa33kOD3jYC3HeG3ech3GpG3E1v3itK3FQ32383KsG3Gz73Ga43E5T3eid3K2A3h7m3dXQ3E5622g3knr3kUW3g893Ero3e583K2a3k3C3G6v3GWI3kKC3FRk3E793EnD3iA53hW43e3J22I3g5V3g6v3jfO3e3E3eND3iZf3IL03KKq21Y3dz821J3frk34043Epz3k403Hh73JEn3dTR3i6f3e363jXh3kca33853Ec93F2M3eKr3gIQ3g4x3g4x3KXt3e2c3eB93KoW3dtM3F3T3eaG3KAQ2293J6J33763f5z3JRW3kwT3Eb13Dxo3HsE3kb23Jxh2273jyd22Y3fIC3h7U3j8Z3jzx3dwy3E5Q3fLb3hLX3I1e3gLS3kvZ3fB33f553b8H3GOw3KeH3I643Fp13KtB3gQv3K6w2mV3K1f316j3E9n3jHf3dVT3e8q3Gi93kmc3e5l3FIR3goW3I0Y3gMp3EE93gC53FDK3HVd3EnD39TR3KoP3kP83e3d3e2F3E8Y3Dyc3KRp33xV3KlG3KJ12203koL3El83FQp3hkS3dKq3kzM3KJ93J8E3J523ktb39Ss3Duz3el7337P3J143eYq3GGM3i6W3hHW3F8l3JPR22b3KN83g993iXF3kl63I9E3i653HIU3Dqu3Kx83gow22G3kIR3Hlk3kHM3kd83jzz3HEv3KUa32X13JsI3dUZ3eY3343H338K21T3DuW3f2L3E423Jxc3K3c3fm03f233hoX3l0T3Dvc3klU2223eVY3gpG3fMz3jBB3H91337522R337Z3FBM3F9H3dWT3gb03e5i3DzX3FZf3jvT3Jyd3kw13g1y3Iab3EUd3E013hqR3GRK3I5W3Dxz33753fdL3K0g33753kh73L0K3end22x3duS3KTB3kwO3K5W3E7P3iCY3f3B3JUT3hC13ENd3DX73eND3iGC3K5w3KUa22X3fe73kK43Izw3duK3KlP2223KN822Y3duN3FjA3hmG3kQ23KU03Dzd3J5h3k8o3k5m3js73JKt2243KlP3I4q3j6g3jUb3EPj3jpk3kWT3HMG3kPy3ek23GyO3hmg36733kq13fiJ3eDX3hVQ21x3dt63kLU22Z3kUA3gLw3H0U3ETC3epb3EEy3e1Q3hEm3JtJ3eWJ3Eab3fDd3FWY3L2v3Dtc3G2B3hmg3I2H22e3kVc3iH33Exc3FLt3eND2303E363du43j0l22H3l4k3iyM3EnD3GGp3dv23G443j9o3iI43eg53kkT3eC73Kmr2243Du83DUe3KMc3L4t3l503jyd22e3kLu3i1P3Jqi3k4a3hBE3KuO3kVc3if33J9P3E3t21j3KUr3iQQ3kr53HUX3I8D3dvr334z3kR53eY13dUW3Knw2233jp623d3kuc3kn63k763jhF3k1h33853GVn3dY93L633kmi3Fxf3Jyd3h7b33853EwE3jYy22z3Dva3FQT3GVG3K1022w3e503kZe3EkR3Eyh3H2u3fDy21J3F413hAH3dXZ3HA13dTK3KOL2253E3J3e1G3FSu3Kln33793KoS2253dTt3kOL3iZd3END38Ec3enD2323KR63etP3k5k3JyU3ed33eK13KQK2263kmR2263l7R3ktP3hyA3e6M3L7j3gON3Hs93iCi21H2323J0o3dvP337p3ftM3g7p3dxO21Y337x2343G683DV23I8K3F9x3enD2313kOH3jXt3l7J3KMp3cL13J3a3Klu3HSP3l7H3fQ521H2253E0h3Kni3dW53End3Hxx3eIP3kfn3K5j3JzJ3EnD3JYh3kq33ex53KiY3hRD3l7J3L163kJI3L8z3L392263l7f3kN33jV73l833Km13jMw3FQu3L3u2273G3s3l833fa83KMp2263kyv3dw23L7j3Kj12273GTd21k3KR63KFJ337P3FL73l833KOS2273kQK2333e833fFf3Ex53I2z337N21h3fqj3fqu3dUP3dxT3ex53laC36L93k9w3klM3gb83L8z3kOH3fIV3L953L3w3enz3EnD3JEi21H2343KMc3IxE3LAz3LAC3K453L7j3LAc39kd3end2283kIy2333Lah3Fox3lAX3Kni3huD21H2353kr63K4K3End3KU93LaX3lA53K273lB93jXH2203L4G2333kN12343KLp3F323L953kj13jM93LAz3kAq21C3H553L953fhT3K3z3ETC3F1B3J2r3erN3Kr63I643Gp23CVI3g3d3l7H3i4q3l8H3l8U3Esn3fYX3exC3fsD3HEa3JAJ3L563Fb73J273J273ehX3Eog33853FLB33803HKA3Km43I8d3dYx3kUa3kgW3F8I3kn32353HDq3eeM3h8B3i1D3eTs3I2x3G8x3l2l3hY23GJg3eNd2233eSN3HW43eio3kLU21V3gwx3dxU3G3i337p3f3t33872FY3Ek33KE83ehA3K1F3f603L1Z3KVK3Kmp3ez33k0C3L1u3I3K3Ju83EnD2363gf921H3h2h3End3ECk3KlP3dm93ev93KtT3LEF3L343e5d3DZk3Dtz3g553INw3KVC22B3kJ13KWj3E1i3EB93gsT3L2g3hHk337p3iZY3E6C3kSG3g853End3L5z3HMG3kKq3l2m3l443Eg13K6n3jbD3g8a3lEc3DV722U3DWD3Dw53knI2363kn13emJ3gZ93lEH3F6Y22A3Fsf3Ivx3ENd2383kOW3GQ53e373is63L1F3f0a3g1Q3e933lBM3g8122p3E5D3h4g3KMV3k403Kvf3L8u3KMC3K623eNd3iK83l8U3Lac2373l3U3J1N3du93eCr21h3hpQ3EnD22B3a743K2C3end2393g7U3f2Q3Gwr3kkK3gmq3F7E21h22q3e1j3ER433793klm21L3kcD2233Kpg3JZ73JyV3lb93Kir3gjx3LGt3kN33Ens3dvL3kMP3Eul3K8E3jzI3kkQ2293jxH22W3JiQ3lfh3EX53JY722w3kNI3l5U21h3iGV3kTx3L4S3fi93euB3KmC3E0g3KdG33sm3Ek73HVz3End22D3hjZ3H7y33Sm3kmR3JEz3LGX3ksA3j0W3lGX3i6421x3L303Gl53end22E3e3D3HW43gVp3KR63iox3k013e673LIF3f2c3F603k743K503kl62393i1z3GZ73EnD3iEj3lif3KoD22D3LiN3dtI3kyj3hrf33793K073kcY3l8Z3Jpc3e7Y3END3Inj3kqk3CAC3fH33FAH3J7G3jzz3H403I6J3EPZ3dvR23a3Eew3l393gAo3l1Q3LGX3Egn3kM122Y3KnR22e3Knr23a3L3922E3GMi3EIO3kyj3Fyn3LGX3L4k3IqZ3k0c3KN839s33EIm3LEF33763KOD23A3Kn13daX3lJr3kMP23B3kIy3iCf3Lgx3KyV2333jpk3k7H3J0J3i203koW23B3FL022t3lL03kL63Dtw3L503fSP3evQ3F5f3JTS2263ksA23a3KKq22r3l8E3kDs3EnD2wj3lGx3KQk2393kM323B3KLZ23B3kSg3LkH3ljr3l3U3Lj03KQ733853kM322g3e1m3fj73kiy3I9z3LLU3LAk23c3KMR2253lEe2393l8E3Gf63LiF3E0r3KOl3kSN3EnD23c3gxp3E7X3kN822F3kKQ23b3g5h3i8A337K3Kmr22G3LmR3lAh23A3kmC22F3knI3JbS3eNd22f3l3w3lKl3f643l9q3lED3kou3duv3l4K3lKD3llU3I0t3ErB33853kOh3lMb3ENd22h3Kn82243KTB3L0V3LEC3KlM3gYE3eNd3GF03Llu3Ktb22H3KTp3D9k3LiU3Lak23d3KKq3JAZ3jip3kQ23iSE3JzI3ec73FGR3kJ122E3kn822G3lNB3I4A3fLe33773laC22g3kM122E3Kyj22H3KOd22E3Lah22g3leU3f5f337F3kr63GOc3K0633853kjp3j503K2R3jip33753eQU3lNd3KiR3j7z3Eq43KJ122f3Km322I3LON3kq23cVZ3k7O3GBA3IRx3KlP23b3KLU36983lKZ3i9n3f673LIf3JTe3K7X3Lee2263LJ42253JwX3hyH3L2V3gc23kLt3klG3lOr3H0w3kaM3GNm3KMr2373kkQ21J3l3W3kCr3l2N3E713G6M3LGi3f6P3Ihm3gOE3ihM3f0v3IhM3ftv3ihm3ek3337G3IhM3dV33ftM3Ihm3KNr22G3jYd2293l883DtZ3KU73lqa3L2V3evY3FUo3J9f3ir13LgI343B3ED43KuC3HNO3hp53lB93FbM3iHM3I9c3Ec73jpc2293dX73Lj43H9l3LF82MV3HTg21l3GHB3Lrr337v3G4R3jxC3Iom3eah3FK83IhM3EZt3e8Y22I3l9f3fbw3kmP2363e123H413h8A3EJv3ihk3KOl33O93Fh33FdL3KN33gD021y3kR623A366x3E723DWs3lGI3l8e2263fd13I483Ejw3k2A22z3jus33ci3K3f3dTa3Ffc3fkB3lsv3ktB3inc3leh3L303L9J3dQF3j5B3Dx23jmV3ggp3kqi21j3KOl2233DtE3KNI3dM13lMT3JQ422z3l4G22A3E123kpR2FY3F9d3DX23Kh73jg73k6W3K373K5V3kGy3H913Kiy3b853h8C366x3G2822z3FEF3E0v3FMs3IuT3FMS3gjn3kHB3lTa3e463h2Y3lui3Esm3Lh93dyB3ifG3I363I1E3Jts3jgr3K6P3kb03KV53l3l3D7o3gue3Esm3l8z3GA3331I3lUc3j8X3DX43HW4332K3fM43KXH3E3R3KCD23B3Du43Kr63l373dyB3JRa3Egc3J493LQs3Jxo3gG03HUy3Gr23JfR3Hc03DWZ3fCA337A3GvP3kMr3G9n3iKl3j493kAq3DL43kkt3IwE3fS23L1r3i5f338m3EJb3Jon3i0i3kdR3Kjp315E3EbO3kNy3HQ53gkY3kVf3ihM3k8o34g233793ek93e833jz737No3kbH2Se3e713FOS35763Lec3eHD3DYR3IsE3E843i813IhM3F5N3lX13jyD2333Fja3KRc3AUC3f0Y3krC3f6a3Dxb3Jpk3eLG3k6W3L163EIP3Ecs3fxt36a23Jpk3hYH3ecT3fcN3HgV3G2i3Ecl3FPb3frQ3HV13k8u3LrC36A23GAj3fXm3e713IrD3e3r3eoX3GsA2333H0X3fmc33703FVi3hl3338O337V3k103J8R3ERP3EAQ3eBJ3F2C36a2337j3hBe3Epa3Fyh3E3o3kuO3kG53kHh3F8P21G3Fqf36A23gCV3hS23luu3DtS3HUZ337131WK3ksg38aB337t21U3Eei3e873GHb3inp334q3fRI3Fha3FMJ3dUq3kSG3E643HXM3EAQ3eHu3Jyd2203Eu13dUP3eJh3Kdr3JAT3i8122W3fe73F4H3KsA21T3jPr3FNm3LRe3H4d3e873dz83l2U3Li33iX03L6V3Edd3FZh3h163I173JG23Jbp3IBv3F4H3l4g3JXB3f3G3EAh3Fb43F4h3h0V3DY63H273eXW3kuC3FhY3kJp34rH3K9i2303kj922D3L9q3Lkb3Fe83L3u3HuD3gjn3kvc3iqX3k073KT63FuH3i4R3KMr3ljK3hp33foS3K2a22h3l8T22E3J7g3fU4343k3hI83ly93dTI3E0R3KLM3M1Q3fBj3Lt0337T21V3kOw3Hjl21H2383L393Ex53fSr3I5439gj3Ly93gYo3egZ3l163CSF3liu3k5V3H5K3h1m3kku3kZy3376338H3jKu3fAN3Fuo3Fg83e9J3dxh3DW53Dzz3eIc3jIy3JPc22e3GCV3JJ636A23jQb3Lv13H5k3dYb3KAl21h22G3esn334q3Igw3H9A337832673js73K893iBV3kSj3jxr3jqZ3E7121l3duW3FRE36a33DTo2gs3fJ83fA83Ewx3ECh3fqJ36a33eDd21l3FFF3E7F3Fp13M2f3FQk3kQ23e283HMD3eke3klG3I1Z3Je33IWi21G3KhH3lic3gd93e7f3i973KD83H5R3enD3LXs3fu03DZz3fHX3kYV22G3Ggp3h3S3kQ73fJY3kq73knY3Lgh3fDl3gA03E873L4G2223E6l3fLb3dwO3kod3ei13DwE3kkT3gd13h6v3E3S3Jvt3KAQ23a3fUT22Q3l3U3hL53k0l3KOl3j143El83E0R3El93EFY3KSg3J193gYN3i2B3L8e21c3M433FrR3k0L3hEo3e0M33883eND3e0g3edy3DTm3G683F4h3J3I33853jQQ3d7O3jjk3EH13E713G0I3joo3JuS23E3GVS3lzG3ebg3j3l3hfA21C3dUH3F3S3Kwz3FPC3E873E613DT63JpR3m1O3kLG3L8E3da33E7122R338F3FL73Khs3M433iGB3K0l3E2l3ia03khm3jXC23e3lRQ3K1f36A23i1z3Hpw3H4d3h2u3hT222v3lZ53M2E3hJH3Gox3kM93jXr2243kol3DyG3Jyk3jon3H9a3DYE3f003IPl3fI63kHs3i973kn82233dVa3knw32QA3lfi3m763k7g3m3U21E3kh72303m6B3FdW3Ly521v3M6b32P53j493eY33fDf3FA83M8M3lXF3il33K0c3kj93G673e713HgG3FRq3fb83EwV3iim3I7x3lak21c3KYJ2323KM33LF73fgs3kiY3J1B338B3eY43E713F8P3k1f3EX33M3U3F1E3Ie33E1M3kr63m4U3ErP3dy63lqs22r3m8t22R3E613kNw3k813J3C3hvt3kYV3E4l3H4D3KgY3FN63M763dtC3ehD3e023i9w3E7121X3LU43JPl3GII3DUn3e293edw3iMf3h773e293J523KL43iPl3edD22T3k4a3k123KgN3I7e3lTA3e7121Y3M453jZl3M2d3GRD3evE3K2A3g3Y3E7122U3Fka3e873g2b3gQc3M8721Y3m433HQm3MB03M3Z3J233GQC3ka03koP3kN8315e3Mb93G3S3gqc3lR122S3Jts23e334q3GI33iPl3fBi3F1g3m3u21y3jJK38XH3KTT3eVe3lXf21x3gf93Khs3jYY3Ma239Gj337V3Ls33gZv3gQc3LsX3e2S3JwB23E3LT33G9N3kVW3G6H3J533m873F1h3J533LxF3i8N3GlV3fIc3eVe3lT321z3m2e3hL33jId2283m453I5P3mb93M8t21Z3L163m183j533eD93gqC3lYR21Z3eSn3e703F683f553F1g3lSa3gRy3g0c3KNW3Mcn3kM93mDM3j4G3E713Du43MDw3M033dQG3E7122V3jpC3k813e7122p3L3W3JxB3mDW3M8521z3Jz73Mds3Egz3J5231503e71220338D22f3IEn3JiP3kHm3jW73kiI3m1C3JK13kmr22f3ed93ek43hi6337N3ikq343H3juS3kt63lSi3JwB3eZG3J853kur21K3kH722x3m792213m6X3gP8343b2383FQZ3EPk3g3i3etb3jkT3lY13epk3f5a21I31jf3Gr83H773dXg3M923HFk3frp3EvE3Edc3fcK337b3e5Q3kR63M9X33763eK13FlE3E7f3E8q3FGo3DTo3mB03Fbb3l293HBW3jyY2313JfO3dqI3luq3jid22F3Ess3LQP3DYr3hRJ3lX92223m3U21c3Kn33ICs33763Jv63kMR3lqn3KF43KuO3fpO3k153HZv3eZh3HZ93dxS3fVq3M3a3e713jT13kIZ3egR3m4521y3JU93jlh3G3F3M953LVo3et93KiR3enf3k143Lcx3F5z3e3U3kmr3MFp3EMt3gVG3KS63F5P3EPK3LsX22X3KQk3hlS3mh93FHP3Dx23Hq83jmW3Mfo3m4322X3Mc132233k2Q3mHw38xH3E713g2d3HP43kUr3EVN3e713j2e3cv93mHW22x36733EPk3Lt333913e7122W3LxS3k4y3Epk3DvY3Duu33763IaJ3M3r3HNB3F3O3e183eDd3G6U3F3o3Fb13f3o3K1022c3klZ3erM3E4V3m452223KOS3HAJ3Lu43G7e3e712243lsX22Y3aUC3f5Z3HKZ3E713Lkb3F2q3f3O3h8u3MG93f2M3Mbs2223LRQ22y3l8e21l3fES3F3O3lQs3lUi3mJt3M6X3fyz3DXT3e8M3LQW3HQO3LcX3Ex43M433ljN3evr3fWx3EOf3kSg3lqn3K123iAk3JPC3KR23mb93M873kXe3lV73Knl3M7V3f1g3FJ73ixL3JXr3hGQ3dz23E712223FA83k893mBx3jk13Mcb22t3mfv3iti3Liu3j7G2313jTS2203kM13ERM21g3jAl3E713H7Q337V3ecD3f4A3M403EiM3DxZ3I8Z3F4H3Mip3Epw3m0g3mB03M0t3M8R3MfO3DTC3LXS22W3K153kv13I4r3DwM3fWw3GYh3l7J3MI33eEt21V3lR13i8K3ETo3LqU3gZC3J5h3lyR3EWL3gt43gT43e712263j3w3DtN3mMT3fDD3E433jpC3mLi3kdl337H338Z3E713L7K3Fmm3k3F3KLu3Ksv3Mn53J3G3j8H3m673JfO3efH3f4b3I663K213j0l3dV33MH93Ktb3LxQ3FvH3KmR3MF23KFs3dvg3J393mfO3mC13iWZ3l6v3FQ53epk3lQy33l43e713GZH3mH93DVT3mDm2333m2e2213e6n3jrW2813Mik3M173LR43j9B3HcL3eJI3LaK3mG221I3jsY3mK63fJo3f9E3eSu3mFG3h6B3m973lmk3mL63Kn83mA63FXy3ekr22G3lYr21c3mgn3Gcb3Mhw3mD63e713k0J3KkD33853Knr3kcR3dYl3EJV3G3v3fB43KlC3E712283Jw73Ebk3fYh3I173eQY3JJK2313FWV3hcX3E7121t3Mbd3LBX3e713Dqw3Mpu3dv33E753Fj73e863LXI2343k1M3mjt3I213gbA3EGx3KiY3IK73MPj3E4E3m453Lb83IBi3hA03MJO3MbS3JbB3FN33Jw73MP13kvw3Ec73DTz3e0m3gev3Mme3GEv3E6G3L813eSK3kLn3i4R3MkD3FZc3lHQ3FVH3gM33KUC23D3Frk3H8T3mn53FNn3f1G3me33FZ43JxK3LQ43eb03dzk3edd3kV83dvL3G813I2k3E873LR422R3fwD313H3eKr3mLo3DYD3knI3e643K1c3LZG3H9d3maZ3Eto3Due3M3z3Mmk3mmQ3Mqu3idu3jxN3IL43KKD3mdF22S3kOL21i3jp12293l8t22s3mcR22a3I623ljR3K0U3M8T2313jKt3LI03I2i3Mrc3HBe3jW63e253Fe33I7X3DvV3g563CV93jvt3DUE3LQ23I813e2W3L3u3G9W3mIC3mfQ3Kb33E713IMR3jrg3MBD22B3k8b3MN53klP3dOF3E712373DWM3Mmi3mTN3mfN22b3m952273mK622S3JZ93K1d3mMT3ls322b3mNt3E713gkP3mu43jrA2313f3e3gEM3m7g3I2i3m6B3lln3Me13m453Ity33dB3heM3eTO33853Fpt3KhS3mbB3K3J3ME13Jiq3mu83e0e3epz3mub3f3O3M6X22A3gw03Eb03fcL3e393Mb03fJs3MrT31W13jBd3f1A3M733m763kj93E053Mb03Mbb36wi3m1i3mB93M613jBp3H8P3E7122s3KYJ21w3Jus3iYd3M6J3mFv21W3mnw3mUD3l3U3m563E713Ka23MEH3mG5336x337v3fDv3KKK3M9C3E713mGh3J533fop2323mnz2383JvR3mGq3MVy3MnZ3hJX3HW53jPk2j93e713J643M943e71312K3LYx3j533mqg3l8e3I3h3M1i3i1W3Fbs3K1C3GqH3dUZ3iRv3M8732453MWP3E613GRt3ILp3gq33edK3E7W3K0q3ex73kvk3FUt3M3a33763jSr3kke3MN03lrq3I033LWa3jon3fN33lQW3mM43GL53mKZ2353m9522b3JVD3Mu83E713h663ly53en13I523GQ33m6x2373lRq2313jUS3mu53gev3Jz73LK33k213MhW23a3JPR3J3E3mLg3K1c3M3Z3h7k3FGk3gQC3m453feN337v3eT43KSL3MyK3mmT3lr13hxF3mVY3JVr34Wt3Mb93MPh34WT3mFQ22u3M4522d3kV03kG53mxd3gQ33mrC3f1A3mL53Ksv3I5y3e7123B3LRq3iHf3E7121w3jVD3mZa22C3m453goC3E713EJV3HNv3msN3FWW3LQu3mzR3gQ33g813jNU3l6V3K153mo43B853jpK3mLI3mB93h7J3e033MIp3eLT3Mik3Mkd336X3Mo33Kl633YW3K1c3Kyj3lPx3E8m3JZ93H0t3I7j3HUN3mZs3m533iu73e713CVl3MjM3mKD22a3DZa3MFY3K093gt73FB33eP13fuo3frM3hGN3duo3k2Q3dVR3I053F9h3k8o2323Lr121W3kOH3mlM3MiO3IO23lVD3j7V3h0y3d7P3FlJ3JxC3MQP3mMD3h733Msz2263mg522d3m6x3IHH3G6Y3G2F3LQP3k9u3DYx3LR123D3dwK3HhI3Lef3h213Jx03FLP3Fa83eb03lR122H3m953fUc3JJk3N1e3g5K3ErS3jvT3dV13mNz3fFc3iiW3eI23e933D
slot0 = class("TaskMediator", import("..base.ContextMediator")) slot0.ON_TASK_SUBMIT = "TaskMediator:ON_TASK_SUBMIT" slot0.ON_TASK_GO = "TaskMediator:ON_TASK_GO" slot0.TASK_FILTER = "TaskMediator:TASK_FILTER" slot0.ON_SUBMIT_WEEK_PROGREE = "TaskMediator:ON_SUBMIT_WEEK_PROGREE" slot0.ON_BATCH_SUBMIT_WEEK_TASK = "TaskMediator:ON_BATCH_SUBMIT_WEEK_TASK" slot0.ON_SUBMIT_WEEK_TASK = "TaskMediator:ON_SUBMIT_WEEK_TASK" slot0.CLICK_GET_ALL = "TaskMediator:CLICK_GET_ALL" slot0.ON_DROP = "TaskMediator:ON_DROP" slot0.register = function (slot0) slot0:bind(slot0.ON_SUBMIT_WEEK_TASK, function (slot0, slot1) slot0:sendNotification(GAME.SUBMIT_WEEK_TASK, { id = slot1.id }) end) slot0.bind(slot0, slot0.ON_SUBMIT_WEEK_PROGREE, function (slot0) slot0:sendNotification(GAME.SUBMIT_WEEK_TASK_PROGRESS) end) slot0.bind(slot0, slot0.ON_BATCH_SUBMIT_WEEK_TASK, function (slot0, slot1, slot2) slot0:sendNotification(GAME.BATCH_SUBMIT_WEEK_TASK, { ids = slot1, callback = slot2 }) end) slot0.bind(slot0, slot0.ON_DROP, function (slot0, slot1, slot2) if slot1.type == DROP_TYPE_EQUIP then slot0:addSubLayers(Context.New({ mediator = EquipmentInfoMediator, viewComponent = EquipmentInfoLayer, data = { equipmentId = slot1.cfg.id, type = EquipmentInfoMediator.TYPE_DISPLAY, onRemoved = slot2, LayerWeightMgr_weight = LayerWeightConst.THIRD_LAYER } })) else pg.MsgboxMgr.GetInstance():ShowMsgBox({ type = MSGBOX_TYPE_SINGLE_ITEM, drop = slot1, onNo = slot2, onYes = slot2, weight = LayerWeightConst.THIRD_LAYER }) end end) slot0.bind(slot0, slot0.ON_TASK_SUBMIT, function (slot0, slot1) if getProxy(ActivityProxy):getActivityById(ActivityConst.JYHZ_ACTIVITY_ID) and slot1.id == _.flatten(slot4)[#_.flatten(slot4)] then pg.NewStoryMgr.GetInstance():Play("YIXIAN8", function () slot0:sendNotification(GAME.SUBMIT_TASK, slot1.id) end) return end if slot1.index then slot0.sendNotification(slot4, GAME.SUBMIT_TASK, { taskId = slot1.id, index = slot1.index }) else slot0:sendNotification(GAME.SUBMIT_TASK, slot1.id) end end) slot0.bind(slot0, slot0.ON_TASK_GO, function (slot0, slot1) slot0:sendNotification(GAME.TASK_GO, { taskVO = slot1 }) end) slot0.SetTaskVOs(slot0) slot0.viewComponent:SetWeekTaskProgressInfo(getProxy(TaskProxy):GetWeekTaskProgressInfo()) end slot0.SetTaskVOs = function (slot0) slot3 = getProxy(BagProxy) for slot7, slot8 in pairs(slot2) do if slot8:getConfig("sub_type") == TASK_SUB_TYPE_GIVE_ITEM then slot8.progress = slot3:getItemCountById(tonumber(slot8:getConfig("target_id_for_client"))) elseif slot8:getConfig("sub_type") == TASK_SUB_TYPE_GIVE_VIRTUAL_ITEM then slot8.progress = getProxy(ActivityProxy):getVirtualItemNumber(slot8:getConfig("target_id_for_client")) end end slot0.viewComponent:setTaskVOs(slot2) end slot0.enterLevel = function (slot0, slot1) if getProxy(ChapterProxy):getChapterById(slot1) then slot4 = { mapIdx = slot3:getConfig("map") } if slot3.active then slot4.chapterId = slot3.id else slot4.openChapterId = slot1 end slot0:sendNotification(GAME.GO_SCENE, SCENE.LEVEL, slot4) end end slot0.remove = function (slot0) return end slot0.listNotificationInterests = function (slot0) return { TaskProxy.TASK_ADDED, TaskProxy.TASK_UPDATED, TaskProxy.TASK_REMOVED, GAME.SUBMIT_TASK_DONE, slot0.TASK_FILTER, GAME.BEGIN_STAGE_DONE, GAME.CHAPTER_OP_DONE, TaskProxy.WEEK_TASK_UPDATED, TaskProxy.WEEK_TASKS_ADDED, TaskProxy.WEEK_TASKS_DELETED, GAME.SUBMIT_WEEK_TASK_DONE, GAME.SUBMIT_WEEK_TASK_PROGRESS_DONE, TaskProxy.WEEK_TASK_RESET, GAME.MERGE_TASK_ONE_STEP_AWARD_DONE } end slot0.handleNotification = function (slot0, slot1) slot3 = slot1:getBody() if slot1:getName() == TaskProxy.TASK_ADDED then if slot3:getConfig("sub_type") == TASK_SUB_TYPE_GIVE_ITEM then slot3.progress = getProxy(BagProxy):getItemCountById(tonumber(slot3:getConfig("target_id_for_client"))) elseif slot3:getConfig("sub_type") == TASK_SUB_TYPE_GIVE_VIRTUAL_ITEM then slot3.progress = getProxy(ActivityProxy):getVirtualItemNumber(slot3:getConfig("target_id_for_client")) end slot0.viewComponent:addTask(slot3) elseif slot2 == GAME.CHAPTER_OP_DONE then if slot0.chapterId then slot0:enterLevel(slot0.chapterId) slot0.chapterId = nil end elseif slot2 == TaskProxy.TASK_UPDATED then if slot3:getConfig("sub_type") == TASK_SUB_TYPE_GIVE_ITEM then slot3.progress = getProxy(BagProxy):getItemCountById(tonumber(slot3:getConfig("target_id_for_client"))) elseif slot3:getConfig("sub_type") == TASK_SUB_TYPE_GIVE_VIRTUAL_ITEM then slot3.progress = getProxy(ActivityProxy):getVirtualItemNumber(slot3:getConfig("target_id_for_client")) end slot0.viewComponent:updateTask(slot3) elseif slot2 == TaskProxy.TASK_REMOVED then slot0.viewComponent:removeTask(slot3) elseif slot2 == slot0.TASK_FILTER then slot0.viewComponent:GoToFilter(slot3) else if slot2 == GAME.SUBMIT_TASK_DONE then slot4 = slot1:getType() slot5 = getProxy(TaskProxy) slot0.viewComponent.onShowAwards = true slot0.viewComponent:emit(BaseUI.ON_ACHIEVE, slot3, function () slot0.viewComponent.onShowAwards = nil slot0.viewComponent:accepetActivityTask() slot0.viewComponent.accepetActivityTask.viewComponent:updateOneStepBtn() slot0 = {} for slot4, slot5 in ipairs(ipairs) do table.insert(slot0, function (slot0) slot0:PlayStoryForTaskAct(slot0.PlayStoryForTaskAct, slot0) end) end if slot0.refreshWeekTaskPageFlag then slot0.viewComponent.RefreshWeekTaskPage(slot1) slot0.refreshWeekTaskPageFlag = nil end if #slot0 > 0 then seriesAsync(slot0) end end) return end if slot2 == GAME.BEGIN_STAGE_DONE then slot0.sendNotification(slot0, GAME.GO_SCENE, SCENE.COMBATLOAD, slot3) elseif slot2 == TaskProxy.WEEK_TASKS_ADDED or slot2 == TaskProxy.WEEK_TASKS_DELETED or slot2 == TaskProxy.WEEK_TASK_UPDATED then slot0.viewComponent:RefreshWeekTaskPage() elseif slot2 == GAME.SUBMIT_WEEK_TASK_DONE then slot0.viewComponent:RefreshWeekTaskPageBefore(slot3.id) function slot4() slot0.viewComponent:RefreshWeekTaskPage() end if #slot3.awards > 0 then slot0.viewComponent.emit(slot5, BaseUI.ON_ACHIEVE, slot3.awards, slot4) else slot4() end elseif slot2 == GAME.SUBMIT_WEEK_TASK_PROGRESS_DONE then function slot4() slot0.viewComponent:RefreshWeekTaskProgress() end if #slot3.awards > 0 then slot0.viewComponent.emit(slot5, BaseUI.ON_ACHIEVE, slot3.awards, slot4) else slot4() end elseif slot2 == TaskProxy.WEEK_TASK_RESET then slot0:SetTaskVOs() slot0.viewComponent:ResetWeekTaskPage() elseif slot2 == GAME.MERGE_TASK_ONE_STEP_AWARD_DONE then slot0.refreshWeekTaskPageFlag = true slot0:sendNotification(GAME.SUBMIT_TASK_DONE, slot3.awards, slot3.taskIds) end end end slot0.accepetActivityTask = function (slot0) slot0:sendNotification(GAME.ACCEPT_ACTIVITY_TASK) end slot0.PlayStoryForTaskAct = function (slot0, slot1, slot2) slot4 = nil for slot8, slot9 in ipairs(slot3) do if slot9 and not slot9:isEnd() then slot11 = 0 slot12 = 0 for slot16, slot17 in ipairs(slot10) do for slot21, slot22 in ipairs(slot17) do if slot22 == slot1 then slot11 = slot16 slot12 = slot21 end end end if slot9:getConfig("config_client").story or {}[slot11] and slot13[slot11][slot12] and not pg.NewStoryMgr.GetInstance():IsPlayed(slot14) then slot4 = slot14 end end end if slot4 then pg.NewStoryMgr.GetInstance():Play(slot4, slot2) else slot2() end end return slot0
-- Simple example for Raspberry Pi GPIO module. -- Blinks GPIO 0 (LED + resistor to 0V) and shows input status of GPIO 6. -- Written by Mike Pall. Public domain. local gpio = require("rpi.gpio") for i=1,10 do print("GPIO 6:", gpio.pin[6]) gpio.pin[0] = 1 gpio.msleep(100) gpio.pin[0] = 0 gpio.msleep(100) end
----------------------------------- -- Area: Abyssea-Konschtat ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.ABYSSEA_KONSCHTAT] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6388, -- Obtained: <item>. GIL_OBTAINED = 6389, -- Obtained <number> gil. KEYITEM_OBTAINED = 6391, -- Obtained key item: <keyitem>. CRUOR_TOTAL = 6986, -- Obtained <number> cruor. (Total: <number>) STAGGERED = 7316, -- <name>'s attack staggers the fiend! YELLOW_STAGGER = 7317, -- The fiend is unable to cast magic. BLUE_STAGGER = 7318, -- The fiend is unable to use special attacks. RED_STAGGER = 7319, -- The fiend is frozen in its tracks. YELLOW_WEAKNESS = 7320, -- The fiend appears vulnerable to [/fire/ice/wind/earth/lightning/water/light/darkness] elemental magic! BLUE_WEAKNESS = 7321, -- The fiend appears vulnerable to [/hand-to-hand/dagger/sword/great sword/axe/great axe/scythe/polearm/katana/great katana/club/staff/archery/marksmanship] weapon skills! RED_WEAKNESS = 7322, -- The fiend appears vulnerable to [/fire/ice/wind/earth/lightning/water/light/darkness] elemental weapon skills! EXACT_TIME_REMAINING = 7323, -- Your visitant status will wear off in <number> [second/minute]. TIME_REMAINING = 7324, -- Your visitant status will wear off in <number> [seconds/minutes]. LOST_VISITANT_STATUS = 7325, -- Your visitant status has worn off. VISITANT_EXTENDED = 7326, -- Your visitant status has been extended by <number> [minute/minutes]. EXIT_WARNING_1 = 7327, -- Exiting in <number> [minute/minutes]. EXIT_WARNING_2 = 7328, -- Those without visitant status will be ejected from the area in <number> [minute/minutes]. To learn about this status, please consult a Conflux Surveyor. EXIT_WARNING_3 = 7329, -- Exiting in <number> [second/minute]. EXIT_WARNING_4 = 7330, -- Exiting in <number> [seconds/minutes]. EXITING_NOW = 7331, -- Exiting now. WARD_WARNING_1 = 7332, -- Returning to the Searing Ward in <number> [second/seconds]. WARD_WARNING_2 = 7333, -- You do not have visitant status. Returning to the Searing Ward in <number> [second/seconds]. WARD_WARNING_3 = 7334, -- Returning to the Searing Ward in <number> [second/seconds]. SEARING_WARD_TELE = 7335, -- Returning to the Searing Ward now. CRUOR_OBTAINED = 7495, -- <name> obtained <number> cruor. BOUNDLESS_RAGE = 7572, -- You sense an aura of boundless rage... INFO_KI = 7573, -- Your keen senses tell you that something may happen if only you had [this item/these items]. USE_KI = 7576, -- Use the [key item/key items]? Yes. No. }, mob = { }, npc = { QM_POPS = { -- [16839078] = { 'qm1', {2914}, {}, 16838718}, -- Ashtaerth The Gallvexed -- [16839079] = { 'qm2', {2911}, {}, 16838767}, -- Sarcophilus -- [16839080] = { 'qm3', {2909}, {}, 16838782}, -- Bombadeel -- [16839081] = { 'qm4', {2908}, {}, 16838837}, -- Hexenpilz -- [16839082] = { 'qm5', {2910}, {}, 16838871}, -- Keratyrannos -- [16839083] = { 'qm6', {2904}, {}, 16838885}, -- Lentor -- [16839084] = { 'qm7', {2903}, {}, 16838899}, -- Bloodguzzler -- [16839085] = { 'qm8', {2907}, {}, 16838946}, -- Clingy Clare -- [16839086] = { 'qm9', {2906}, {}, 16838962}, -- Siranpa-Kamuy -- [16839087] = {'qm10', {2912}, {}, 16838979}, -- Alkonost -- [16839088] = {'qm11', {2913}, {}, 16838993}, -- Arimaspi -- [16839089] = {'qm12', {2905}, {}, 16839033}, -- Fear Gorta -- [16839090] = {'qm13', {}, {tpz.ki.FRAGRANT_TREANT_PETAL,tpz.ki.FETID_RAFFLESIA_STALK,tpz.ki.DECAYING_MORBOL_TOOTH,tpz.ki.TURBID_SLIME_OIL,tpz.ki.VENOMOUS_PEISTE_CLAW}, 16839007}, -- Eccentric Eve -- [16839091] = {'qm14', {}, {tpz.ki.TATTERED_HIPPOGRYPH_WING,tpz.ki.CRACKED_WIVRE_HORN,tpz.ki.MUCID_AHRIMAN_EYEBALL}, 16838872}, -- Kukulkan -- [16839092] = {'qm15', {}, {tpz.ki.TWISTED_TONBERRY_CROWN}, 16839068}, -- Bloodeye Vileberry -- [16839093] = {'qm16', {}, {tpz.ki.FRAGRANT_TREANT_PETAL,tpz.ki.FETID_RAFFLESIA_STALK,tpz.ki.DECAYING_MORBOL_TOOTH,tpz.ki.TURBID_SLIME_OIL,tpz.ki.VENOMOUS_PEISTE_CLAW}, 16839069}, -- Eccentric Eve -- [16839094] = {'qm17', {}, {tpz.ki.TATTERED_HIPPOGRYPH_WING,tpz.ki.CRACKED_WIVRE_HORN,tpz.ki.MUCID_AHRIMAN_EYEBALL}, 16839070}, -- Kukulkan -- [16839095] = {'qm18', {}, {tpz.ki.TWISTED_TONBERRY_CROWN}, 16839071}, -- Bloodeye Vileberry -- [16839096] = {'qm19', {}, {tpz.ki.FRAGRANT_TREANT_PETAL,tpz.ki.FETID_RAFFLESIA_STALK,tpz.ki.DECAYING_MORBOL_TOOTH,tpz.ki.TURBID_SLIME_OIL,tpz.ki.VENOMOUS_PEISTE_CLAW}, 16839072}, -- Eccentric Eve -- [16839097] = {'qm20', {}, {tpz.ki.TATTERED_HIPPOGRYPH_WING,tpz.ki.CRACKED_WIVRE_HORN,tpz.ki.MUCID_AHRIMAN_EYEBALL}, 16839073}, -- Kukulkan -- [16839098] = {'qm21', {}, {tpz.ki.TWISTED_TONBERRY_CROWN}, 16839074}, -- Bloodeye Vileberry }, }, } return zones[tpz.zone.ABYSSEA_KONSCHTAT]
print("[II]", "Loading core library...") EXPR_Parser.binaryFuncs["+"] = function ( opStack, andStack ) local b = andStack:pop() local a = andStack:pop() local result = { type="COLLECTION", value={} } if( a and b ) then -- String concatination if( type(a.value) == "string" or type(b.value) == "string" ) then andStack:push( {value=tostring(a.value) .. tostring(b.value), type="VALUE"} ) return true -- Numeric addition elseif( type(a.value) == "number" and type(b.value) == "number" ) then andStack:push( {value=a.value+b.value, type="VALUE"} ) return true -- Table/vector addition elseif( type(a.value) == "table" and type(b.value) == "table" ) then local aDepth = table.maxn( a.value ) local bDepth = table.maxn( b.value ) -- Where both are 3D if( aDepth == 3 and bDepth == 3 ) then result.value[1] = { value=a.value[1].value+b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value+b.value[2].value, type="VALUE" } result.value[3] = { value=a.value[3].value+b.value[3].value, type="VALUE" } andStack:push( result ) return true -- Where both are 2D elseif( aDepth == 2 and bDepth == 2 ) then result.value[1] = { value=a.value[1].value+b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value+b.value[2].value, type="VALUE" } andStack:push( result ) return true -- Where 'b' is a 3D vector elseif( aDepth == 2 and bDepth == 3 ) then local screen = Vector( b.value[1].value, b.value[2].value, b.value[3].value ):ToScreen() b[1] = { value=screen.x, type="VALUE" } b[2] = { value=screen.y, type="VALUE" } b[3] = nil result.value[1] = { value=a.value[1].value+b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value+b.value[2].value, type="VALUE" } andStack:push( result ) return true -- Where 'a' is a 3D vector elseif( aDepth == 3 and bDepth == 2 ) then local screen = Vector( a.value[1].value, a.value[2].value, a.value[3].value ):ToScreen() a.value[1] = { value=screen.x, type="VALUE" } a.value[2] = { value=screen.y, type="VALUE" } a.value[3] = nil result.value[1] = { value=a.value[1].value+b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value+b.value[2].value, type="VALUE" } andStack:push( result ) return true end end end return false end EXPR_Parser.binaryFuncs["-"] = function ( opStack, andStack, context ) local b = andStack:pop() local a = {value=0, type="VALUE"} if( andStack:peekTop().type == "VALUE" ) then a = andStack:pop() end if( a and b ) then -- Numeric subtraction if( type(a.value) == "number" and type(b.value) == "number" ) then andStack:push( {value=a.value-b.value, type="VALUE"} ) return true -- Table/vector addition elseif( type(a.value) == "table" and type(b.value) == "table" ) then local aDepth = table.maxn( a.value ) local bDepth = table.maxn( b.value ) -- Where both are 3D if( aDepth == 3 and bDepth == 3 ) then result.value[1] = { value=a.value[1].value-b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value-b.value[2].value, type="VALUE" } result.value[3] = { value=a.value[3].value-b.value[3].value, type="VALUE" } andStack:push( result ) return true -- Where both are 2D elseif( aDepth == 2 and bDepth == 2 ) then result.value[1] = { value=a.value[1].value-b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value-b.value[2].value, type="VALUE" } andStack:push( result ) return true -- Where 'b' is a 3D vector elseif( aDepth == 2 and bDepth == 3 ) then local screen = Vector( b.value[1].value, b.value[2].value, b.value[3].value ):ToScreen() b[1] = { value=screen.x, type="VALUE" } b[2] = { value=screen.y, type="VALUE" } b[3] = nil result.value[1] = { value=a.value[1].value-b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value-b.value[2].value, type="VALUE" } andStack:push( result ) return true -- Where 'a' is a 3D vector elseif( aDepth == 3 and bDepth == 2 ) then local screen = Vector( a.value[1].value, a.value[2].value, a.value[3].value ):ToScreen() a.value[1] = { value=screen.x, type="VALUE" } a.value[2] = { value=screen.y, type="VALUE" } a.value[3] = nil result.value[1] = { value=a.value[1].value-b.value[1].value, type="VALUE" } result.value[2] = { value=a.value[2].value-b.value[2].value, type="VALUE" } andStack:push( result ) return true end end end return false end EXPR_Parser.binaryFuncs["*"] = function ( opStack, andStack ) local b = andStack:pop() local a = andStack:pop() if( a and b ) then if( type(a.value) == "string" ) then andStack:push( {value=a.value:rep(b.value), type="VALUE"} ) return true elseif( type(b.value) == "string" ) then andStack:push( {value=b.value:rep(a.value), type="VALUE"} ) return true elseif( type(a.value) == "string" and type(b.value) == "string" ) then return false elseif( type(a.value) == "number" and type(b.value) == "number" ) then andStack:push( {value=a.value*b.value, type="VALUE"} ) return true end end return false end EXPR_Parser.binaryFuncs["/"] = function ( opStack, andStack ) local b = andStack:pop("number") local a = andStack:pop("number") if( a and b ) then andStack:push( {value=a.value/b.value, type="VALUE"} ) return true end return false end EXPR_Parser.binaryFuncs["^"] = function ( opStack, andStack ) local b = andStack:pop("number") local a = andStack:pop("number") if( a and b ) then andStack:push( {value=a.value^b.value, type="VALUE"} ) return true end return false end
screen = {} screen.fadeOut = function(ms) host_fadeOutScreen(ms) sleep(ms) end screen.fadeIn= function(ms) host_fadeInScreen(ms) sleep(ms) end
require 'apc' -- For test code params = {} setParams() -- params.num_classes = 44 local allClasses, allClassesNames = getClassInfo() local allMetrics = {} for k,v in pairs(allClassesNames) do allMetrics[v] = {p={}, r={}} -- precision, recall for this class end initAPCSegmentation() loadSegmentationModel() -- print(getDatasetDir()..'/'..params.data_file..'_'..params.setting..'_test_files.txt') -- abort() local files = {} for line in io.lines(getDatasetDir()..'/'..params.data_file..'_'..params.setting..'_test_files.txt') do files[#files + 1] = line end for f = 1,#files do -- for f = 3,3 do params.im_dir = getDatasetDir()..files[f] .. '/' local rgbIm, depthIm, boxMask = readImage(params.im_dir) local instDir = getProjectRoot() .. '/predictions/'..files[f] if not lfs.attributes(instDir) then os.execute(string.format('mkdir -p %s',instDir)) end pm('Reading image from disk '..params.im_dir, 2) local rgbIm, depthIm, boxMask, dc = readImage(params.im_dir) local crpIm, crpHHA, crpInfo, dc = processInput(rgbIm, depthIm, boxMask, dc) dc = dc:float() local trimClasses = getRelevantClasses(allClassesNames) -- trimClasses = trimClasses:sub(1,-2) -- no need for unknown ----- 1 VS ALL MODE if params.num_classes == 3 then for c=1,trimClasses:nElement() do local currentClassID = trimClasses[c] local className = allClassesNames[currentClassID] -- print(className) params.obj_class = currentClassID local gtMask = image.load(getDatasetDir()..files[f]..'/mask_'..className..'.png') loadSegmentationModel() -- 1 vs all local output = test_predictor(crpIm, crpHHA, dc) local segMask = outputToMask(output):float() segMask = outputToMask(output):float() segMask = unwarpImage(segMask, crpInfo.transformInfo, crpInfo):float() segMask[segMask:ne(1)] = 0 local precision, recall = evalSegmentation(gtMask, segMask) table.insert(allMetrics[className].p,precision) table.insert(allMetrics[className].r,recall) end elseif params.num_classes >= 41 then ----- ALL VS ALL MODE loadSegmentationModel() -- all vs all -- print(crpIm:size()) -- print(crpHHA:size()) -- print(dc:size()) local output = test_predictor(crpIm, crpHHA, dc):float() output = vecToTensor(output) for xi=1,dc:size(1) do output[xi]:cmul(dc[xi]) end local outputFull = unwarpTensor(output, crpInfo) local segMask = outputToMask(output, trimClasses) local segMaskFull = outputToMask(outputFull, trimClasses) -- smf = showImage(segMaskFull, smf) -- sleep(5) for c=1,trimClasses:nElement() do local classMask = segMaskFull:clone() local currentClassID = trimClasses[c] local className = allClassesNames[currentClassID] if className ~= 'unknown' then local gtMask = image.load(getDatasetDir()..files[f]..'/mask_'..className..'.png') classMask[classMask:ne(c)] = 0 classMask[classMask:eq(c)] = 1 -- showImage(classMask, sm) -- showImage(gtMask, gm) -- sleep(5) local classPrediction = outputFull:narrow(1,currentClassID,1) -- write out binary mask and raw predictions image.save(instDir..'/segmentation_'..className..'.png', classMask) image.save(instDir..'/prediction_'..className..'.png', classPrediction) local precision, recall, f1 = evalSegmentation(gtMask, classMask) pm(string.format('%-35s Prec: %6.4f \t Recl: %6.4f \t F1: %6.4f',className..'...', precision, recall, f1)) table.insert(allMetrics[className].p,precision) table.insert(allMetrics[className].r,recall) end end image.save(instDir..'/rgb.png', rgbIm) ci = showImage(crpIm, ci) sm = showImage(segMask, sm) end end -- wipe eval file logFilename = getProjectRoot() .. '/predictions/eval_'..params.model_name..'.txt' if params.epochs~=nil and params.epochs>0 then logFilename = getProjectRoot() .. '/predictions/eval_'..params.model_name..'_ep'..params.epochs..'.txt' end local file = io.open(logFilename, 'w') file:close() for currentClassID=1,params.num_classes-1 do local className = allClassesNames[currentClassID] local prec, rec = allMetrics[className].p, allMetrics[className].r -- local logFilename = getProjectRoot()..'/predictions/eval_'..className..'.txt' -- file = io.open(logFilename, 'w') -- for inst = 1,#prec do -- file:write(string.format('%f,%f\n',prec[inst], rec[inst])) -- end -- file:close() -- print summary local p,r,f1= 0,0,0 if #prec>0 then p = torch.Tensor(prec):mean() r = torch.Tensor(rec):mean() f1 = 2 * (p*r) / (p+r) if p+r == 0 then f1 = 0 end end local oneLine = string.format('%-40s Precision : %.3f Recall : %.3f F1 : %.3f', className,p,r,f1) print(oneLine) logFilename = getProjectRoot() .. '/predictions/eval_'..params.model_name..'.txt' file = io.open(logFilename, 'a') file:write(oneLine..'\n') file:close() end os.exit() -- print(files)
local pretty = require("pl.pretty") local test = require("pl.test") local Account = require("core.Account") ---@type Account local acc = Account({ username = "test", password = "wouinibaba" }) acc:addCharacter("char1") test.asserteq(acc:getUsername(), "test") test.asserteq({ username = "test", password = "wouinibaba", banned = false, deleted = false, characters = { char1 = { username = "char1", deleted = false } }, metadata = {}, }, acc:serialize())
--[[ This file is part of script complex Properties Ribbon Copyright (c) 2020-2021 outsidepro-arts License: MIT License ]]-- -- Proposed humanbeing representations local representation = {} representation.db = setmetatable({}, {__index = function(self, key) local shouldsilencePositive = false if key < 0 then key = -key shouldsilencePositive = true end local v = 0 if key < 0.0000000298023223876953125 then key = "-inf" else v = math.log(key)*8.6858896380650365530225783783321 if v < -150 then key = "-inf" else key = utils.round(v, 2) end end if not tonumber(key)then return key end local predb = utils.splitstring(string.format("%.2f", key), ".") local udb, ddb = tonumber(predb[1]), tonumber(predb[2]) local msg = "" if tonumber(key) < 0 then msg = msg.."-" udb = -udb elseif tonumber(key) > 0 and shouldsilencePositive == false then msg = msg.."+" end msg = msg..string.format("%u", udb) if ddb > 0 then msg = msg..string.format(" %u", ddb) end msg = msg.." dB" return msg end }) representation.pan = setmetatable({}, {__index = function(self, key) if key == 0 then return "center" elseif key > 0 then return string.format("%u%% right", utils.round(key/(1/100), 1)) elseif key < 0 then return string.format("%u%% left", utils.round(-key/(1/100), 1)) end end }) representation.timesec = setmetatable({}, {__index = function(self, key) local pretime = utils.splitstring(string.format("%.3f", key), ".") local s, ms = tonumber(pretime[1]), tonumber(pretime[2]) local msg = "" if s == 0 and ms == 0 then return "0 seconds" end if s > 0 then msg = msg..string.format("%u second%s, ", s, ({[true]="s",[false]=""})[(s ~= 1)]) end if ms > 0 then msg = msg..string.format("%u millisecond%s", ms, ({[true]="s",[false]=""})[(ms ~= 1)]) else msg = msg:gsub(", ", "") end return msg end }) representation.pitch = setmetatable({}, {__index = function(self, key) local prepitch = utils.splitstring(string.format("%.2f", key), ".") local s, c = tonumber(prepitch[1]), tonumber(prepitch[2]) local msg = "" if s == 0 and c == 0 then return "original" end if s < 0 then msg = msg.."Minus " s = -s end if s > 0 then msg = msg..string.format("%u semitone%s, ", s, ({[true]="s",[false]=""})[(s ~= 1)]) end if c > 0 then msg = msg..string.format("%u cent%s", c, ({[true]="s",[false]=""})[(c ~= 1)]) else msg = msg:gsub(", ", "") end return msg end }) representation.playrate = setmetatable({}, { __index = function(self, key) if key == 1.000 then return "original" end local preproc = utils.splitstring(tostring(key), ".") local msg = tostring(preproc[1]) if tonumber(preproc[2]) ~= 0 then msg = msg..string.format(" %u", tonumber(tostring(utils.round(tonumber("0."..preproc[2]), 3)):match("^%d+[.](%d+)"))) end msg = msg.." X" return msg end }) return representation
return Def.ActorFrame { ScreenChangedMessageCommand=function(self) self:visible(SCREENMAN:GetTopScreen():GetScreenType() ~= 'ScreenType_Attract') end, loadfile(THEME:GetPathB("ScreenSystemLayer","aux"))(), Def.Sprite{ Texture=THEME:GetPathG("","credits"), InitCommand=function(self) self:xy(SCREEN_CENTER_X,SCREEN_BOTTOM):zoom(0.5):valign(1) end }, Def.BitmapText{ Font="Common Normal", InitCommand=function(self) self:xy(SCREEN_CENTER_X,SCREEN_BOTTOM-10):zoom(0.45):valign(1) end, OnCommand=function(self) if GAMESTATE:GetCoinMode() == 'CoinMode_Pay' then self:settext('CREDIT(S) '..math.floor(GAMESTATE:GetCoins()/GAMESTATE:GetCoinsNeededToJoin()) ..' ['..math.floor(GAMESTATE:GetCoins() - math.floor(GAMESTATE:GetCoins()/GAMESTATE:GetCoinsNeededToJoin())*GAMESTATE:GetCoinsNeededToJoin()) ..'/'..GAMESTATE:GetCoinsNeededToJoin()..']') else local CoinMode = { ['CoinMode_Home'] = { [true] = "HOME EVENT", [false] = "HOME MODE" }, ['CoinMode_Free'] = { [true] = "EVENT MODE", [false] = "FREE PLAY" } } self:settext(CoinMode[GAMESTATE:GetCoinMode()][GAMESTATE:IsEventMode()]) end end, RefreshCreditTextMessageCommand = function(self) self:playcommand('On') end, CoinInsertedMessageCommand = function(self) self:playcommand('On') end, CoinModeChangedMessageCommand = function(self) self:playcommand('On') end, PlayerJoinedMessageCommand = function(self) self:playcommand('On') end, ScreenChangedMessageCommand = function(self) self:playcommand('On') end, }, --Error Message Viewer. Def.Quad { Name="BG", InitCommand=function(self) self:zoomtowidth(SCREEN_WIDTH):zoomtoheight(35):horizalign(0):vertalign(0):y(SCREEN_TOP-35):diffuse(0,0,0,.5) end, OnCommand=function(self) self:finishtweening():decelerate(0.25):y(SCREEN_TOP) end, OffCommand=function(self) self:sleep(3):accelerate(0.5):y(SCREEN_TOP-35) end }, Def.BitmapText{ Font="Common Normal", Name="Text", InitCommand=function(self) self:zoom(0.8):horizalign(0):xy(SCREEN_LEFT+25,SCREEN_TOP-17.5):maxwidth(SCREEN_WIDTH*0.9) end, OnCommand=function(self) self:finishtweening():decelerate(0.25):y(SCREEN_TOP+17.5) end, OffCommand=function(self) self:sleep(3):accelerate(0.5):y(SCREEN_TOP-17.5) end }, SystemMessageMessageCommand = function(self, params) self:GetChild("Text"):settext(params.Message) self:GetChild("BG"):playcommand("On"):queuecommand("Off") if params.NoAnimate then self:GetChild("BG"):finishtweening() end end, HideSystemMessageMessageCommand = function(self) self:finishtweening() end }