diff --git a/Winium/TestApp.StoreApps/TestApp.WindowsPhone/MainPage.xaml b/Winium/TestApp.StoreApps/TestApp.WindowsPhone/MainPage.xaml index 93d93eb..86a36bd 100644 --- a/Winium/TestApp.StoreApps/TestApp.WindowsPhone/MainPage.xaml +++ b/Winium/TestApp.StoreApps/TestApp.WindowsPhone/MainPage.xaml @@ -55,6 +55,13 @@ + + + + + diff --git a/Winium/TestApp.Test/py-functional/config.py b/Winium/TestApp.Test/py-functional/config.py index 32cb980..e31164e 100644 --- a/Winium/TestApp.Test/py-functional/config.py +++ b/Winium/TestApp.Test/py-functional/config.py @@ -10,5 +10,5 @@ DESIRED_CAPABILITIES = { "app": os.path.abspath(os.path.join(BASE_DIR, APPX_PATH)), "deviceName": "Emulator 8.1", - "debugConnectToRunningApp": False + "debugConnectToRunningApp": True } diff --git a/Winium/WebViewApp/App.xaml b/Winium/WebViewApp/App.xaml new file mode 100644 index 0000000..6e48c2a --- /dev/null +++ b/Winium/WebViewApp/App.xaml @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/Winium/WebViewApp/App.xaml.cs b/Winium/WebViewApp/App.xaml.cs new file mode 100644 index 0000000..b3053c3 --- /dev/null +++ b/Winium/WebViewApp/App.xaml.cs @@ -0,0 +1,87 @@ +namespace WebViewApp +{ + #region + + using System; + + using Windows.ApplicationModel; + using Windows.ApplicationModel.Activation; + using Windows.UI.Xaml; + using Windows.UI.Xaml.Controls; + using Windows.UI.Xaml.Media.Animation; + using Windows.UI.Xaml.Navigation; + + #endregion + + public sealed partial class App + { + private TransitionCollection transitions; + + public App() + { + this.InitializeComponent(); + this.Suspending += OnSuspending; + } + + protected override void OnLaunched(LaunchActivatedEventArgs e) + { +#if DEBUG + if (System.Diagnostics.Debugger.IsAttached) + { + this.DebugSettings.EnableFrameRateCounter = true; + } + +#endif + + var rootFrame = Window.Current.Content as Frame; + + if (rootFrame == null) + { + rootFrame = new Frame + { + CacheSize = 1, + Language = Windows.Globalization.ApplicationLanguages.Languages[0] + }; + + Window.Current.Content = rootFrame; + } + + if (rootFrame.Content == null) + { + if (rootFrame.ContentTransitions != null) + { + this.transitions = new TransitionCollection(); + foreach (var c in rootFrame.ContentTransitions) + { + this.transitions.Add(c); + } + } + + rootFrame.ContentTransitions = null; + rootFrame.Navigated += this.RootFrameFirstNavigated; + + if (!rootFrame.Navigate(typeof(MainPage), e.Arguments)) + { + throw new Exception("Failed to create initial page"); + } + } + + Window.Current.Activate(); + } + + private static void OnSuspending(object sender, SuspendingEventArgs e) + { + var deferral = e.SuspendingOperation.GetDeferral(); + + deferral.Complete(); + } + + private void RootFrameFirstNavigated(object sender, NavigationEventArgs e) + { + var rootFrame = sender as Frame; + rootFrame.ContentTransitions = this.transitions + ?? new TransitionCollection() { new NavigationThemeTransition() }; + rootFrame.Navigated -= this.RootFrameFirstNavigated; + } + } +} diff --git a/Winium/WebViewApp/Assets/Logo.scale-240.png b/Winium/WebViewApp/Assets/Logo.scale-240.png new file mode 100644 index 0000000..76921ca Binary files /dev/null and b/Winium/WebViewApp/Assets/Logo.scale-240.png differ diff --git a/Winium/WebViewApp/Assets/SmallLogo.scale-240.png b/Winium/WebViewApp/Assets/SmallLogo.scale-240.png new file mode 100644 index 0000000..3166301 Binary files /dev/null and b/Winium/WebViewApp/Assets/SmallLogo.scale-240.png differ diff --git a/Winium/WebViewApp/Assets/SplashScreen.scale-240.png b/Winium/WebViewApp/Assets/SplashScreen.scale-240.png new file mode 100644 index 0000000..33f26b3 Binary files /dev/null and b/Winium/WebViewApp/Assets/SplashScreen.scale-240.png differ diff --git a/Winium/WebViewApp/Assets/Square71x71Logo.scale-240.png b/Winium/WebViewApp/Assets/Square71x71Logo.scale-240.png new file mode 100644 index 0000000..cfa54be Binary files /dev/null and b/Winium/WebViewApp/Assets/Square71x71Logo.scale-240.png differ diff --git a/Winium/WebViewApp/Assets/StoreLogo.scale-240.png b/Winium/WebViewApp/Assets/StoreLogo.scale-240.png new file mode 100644 index 0000000..47e084b Binary files /dev/null and b/Winium/WebViewApp/Assets/StoreLogo.scale-240.png differ diff --git a/Winium/WebViewApp/Assets/WideLogo.scale-240.png b/Winium/WebViewApp/Assets/WideLogo.scale-240.png new file mode 100644 index 0000000..6249d29 Binary files /dev/null and b/Winium/WebViewApp/Assets/WideLogo.scale-240.png differ diff --git a/Winium/WebViewApp/Html/css/phone.css b/Winium/WebViewApp/Html/css/phone.css new file mode 100644 index 0000000..7a659f5 --- /dev/null +++ b/Winium/WebViewApp/Html/css/phone.css @@ -0,0 +1,39 @@ +@media all and (orientation:portrait) { + @-ms-viewport { + width:device-width; + user-zoom: fixed; + max-zoom: 1; + min-zoom: 1; + } +} + +@media all and (orientation:landscape) { + @-ms-viewport { + width:device-height; + user-zoom: fixed; + max-zoom: 1; + min-zoom: 1; + } +} + +html, body { + height: 100%; + width: 100%; + margin: 0px; + padding: 0px; +} + +body { + font-size: 11pt; + font-family: "Segoe WP"; + letter-spacing: 0.02em; + background-color: #000000; + color: #ffffff; + margin-left: 24px; + margin-top: 26px; +} + +#page-title { + font-family: "Segoe WP SemiLight"; + font-size: 41pt; +} \ No newline at end of file diff --git a/Winium/WebViewApp/Html/index.html b/Winium/WebViewApp/Html/index.html new file mode 100644 index 0000000..5f86a4e --- /dev/null +++ b/Winium/WebViewApp/Html/index.html @@ -0,0 +1,16 @@ + + + + + + Windows Phone + + +
+ MY APPLICATION +
+
+ page title +
+ + \ No newline at end of file diff --git a/Winium/WebViewApp/MainPage.xaml b/Winium/WebViewApp/MainPage.xaml new file mode 100644 index 0000000..87df1d1 --- /dev/null +++ b/Winium/WebViewApp/MainPage.xaml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + diff --git a/Winium/WebViewApp/MainPage.xaml.cs b/Winium/WebViewApp/MainPage.xaml.cs new file mode 100644 index 0000000..2c91e23 --- /dev/null +++ b/Winium/WebViewApp/MainPage.xaml.cs @@ -0,0 +1,78 @@ +// The WebView Application template is documented at http://go.microsoft.com/fwlink/?LinkID=391641 +namespace WebViewApp +{ + #region + + using System; + using System.Diagnostics; + + using Windows.Phone.UI.Input; + using Windows.UI.Xaml; + using Windows.UI.Xaml.Controls; + using Windows.UI.Xaml.Navigation; + + using Winium.StoreApps.InnerServer; + + #endregion + + public sealed partial class MainPage : Page + { + private static readonly Uri HomeUri = new Uri("https://github.com/2gis/Winium.Mobile", UriKind.Absolute); + + public MainPage() + { + this.InitializeComponent(); + + this.NavigationCacheMode = NavigationCacheMode.Required; + } + + protected override void OnNavigatedFrom(NavigationEventArgs e) + { + HardwareButtons.BackPressed -= this.MainPageBackPressed; + } + + protected override void OnNavigatedTo(NavigationEventArgs e) + { + this.WebViewControl.Navigate(HomeUri); + + HardwareButtons.BackPressed += this.MainPageBackPressed; + } + + private void BrowserNavigationCompleted(WebView sender, WebViewNavigationCompletedEventArgs args) + { + if (!args.IsSuccess) + { + Debug.WriteLine("Navigation to this page failed, check your internet connection."); + } + } + + private void ForwardAppBarButtonClick(object sender, RoutedEventArgs e) + { + if (this.WebViewControl.CanGoForward) + { + this.WebViewControl.GoForward(); + } + } + + private void HomeAppBarButtonClick(object sender, RoutedEventArgs e) + { + this.WebViewControl.Navigate(HomeUri); + } + + private void MainPageBackPressed(object sender, BackPressedEventArgs e) + { + if (!this.WebViewControl.CanGoBack) + { + return; + } + + this.WebViewControl.GoBack(); + e.Handled = true; + } + + private void MainPageOnLoaded(object sender, RoutedEventArgs e) + { + AutomationServer.Instance.InitializeAndStart(); + } + } +} diff --git a/Winium/WebViewApp/Package.appxmanifest b/Winium/WebViewApp/Package.appxmanifest new file mode 100644 index 0000000..4aaa0a9 --- /dev/null +++ b/Winium/WebViewApp/Package.appxmanifest @@ -0,0 +1,44 @@ + + + + + + + + + WebViewApp + n.abalov + Assets\StoreLogo.png + + + + 6.3.1 + 6.3.1 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Winium/WebViewApp/Properties/AssemblyInfo.cs b/Winium/WebViewApp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f7f0fe9 --- /dev/null +++ b/Winium/WebViewApp/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WebViewApp")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WebViewApp")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] \ No newline at end of file diff --git a/Winium/WebViewApp/Strings/en-US/Resources.resw b/Winium/WebViewApp/Strings/en-US/Resources.resw new file mode 100644 index 0000000..f760ff5 --- /dev/null +++ b/Winium/WebViewApp/Strings/en-US/Resources.resw @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + forward + + + home + + \ No newline at end of file diff --git a/Winium/WebViewApp/WebViewApp.csproj b/Winium/WebViewApp/WebViewApp.csproj new file mode 100644 index 0000000..57870f1 --- /dev/null +++ b/Winium/WebViewApp/WebViewApp.csproj @@ -0,0 +1,143 @@ + + + + + Debug + AnyCPU + {D305A69D-1852-4CE9-B0A6-90B610A66E4A} + AppContainerExe + Properties + WebViewApp + WebViewApp + en-US + 8.1 + 12 + 512 + {76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + True + neutral + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE;NETFX_CORE;WINDOWS_PHONE_APP + prompt + 4 + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_PHONE_APP + true + ;2008 + pdbonly + ARM + false + prompt + true + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_PHONE_APP + true + ;2008 + pdbonly + x86 + false + prompt + true + + + + + {e8683025-e703-4293-aa7e-3a9a3555bc40} + Winium.StoreApps.InnerServer + + + + + App.xaml + + + MainPage.xaml + + + + + + Designer + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + + + Designer + + + + 12.0 + + + WindowsPhoneApp + + + + \ No newline at end of file diff --git a/Winium/Winium.Mobile.Common/Command.cs b/Winium/Winium.Mobile.Common/Command.cs index e472e4e..f90768f 100644 --- a/Winium/Winium.Mobile.Common/Command.cs +++ b/Winium/Winium.Mobile.Common/Command.cs @@ -31,8 +31,11 @@ public Command(string name) { this.Parameters = new JObject(); this.Name = name; + this.Context = DefaultContextNames.NativeAppContextName; } + + // ReSharper disable once UnusedMember.Global public Command() { } @@ -59,6 +62,12 @@ public Command() [JsonProperty("sessionId")] public string SessionId { get; set; } + [JsonProperty("context")] + public string Context { get; set; } + + [JsonProperty("atom")] + public string Atom { get; set; } + #endregion } } diff --git a/Winium/Winium.Mobile.Common/DefaultContextNames.cs b/Winium/Winium.Mobile.Common/DefaultContextNames.cs new file mode 100644 index 0000000..d4e7a10 --- /dev/null +++ b/Winium/Winium.Mobile.Common/DefaultContextNames.cs @@ -0,0 +1,7 @@ +namespace Winium.Mobile.Common +{ + public static class DefaultContextNames + { + public const string NativeAppContextName = "NATIVE_APP"; + } +} diff --git a/Winium/Winium.Mobile.Common/DriverCommand.cs b/Winium/Winium.Mobile.Common/DriverCommand.cs index 92b7abf..dd8a59e 100644 --- a/Winium/Winium.Mobile.Common/DriverCommand.cs +++ b/Winium/Winium.Mobile.Common/DriverCommand.cs @@ -1,6 +1,8 @@ // Copied from OpenQA namespace Winium.Mobile.Common { + using System.Collections.Generic; + /// /// Values describing the list of commands understood by a remote server using the JSON wire protocol. /// @@ -485,6 +487,12 @@ public static class DriverCommand public static readonly string PushFile = "pushFile"; + public static readonly string Contexts = "contexts"; + + public static readonly string GetContext = "getContext"; + + public static readonly string SetContext = "setContext"; + #endregion #endregion diff --git a/Winium/Winium.Mobile.Common/JsonWireClasses.cs b/Winium/Winium.Mobile.Common/JsonWireClasses.cs index cd24978..02e9717 100644 --- a/Winium/Winium.Mobile.Common/JsonWireClasses.cs +++ b/Winium/Winium.Mobile.Common/JsonWireClasses.cs @@ -45,6 +45,13 @@ private object PrepareErrorResponse(object value) { var result = new Dictionary { { "error", JsonErrorCodes.Parse(this.Status) } }; + if (value is Dictionary) + { + if (((Dictionary)value).ContainsKey("message")) + { + return value; + } + } string message; var exception = value as Exception; if (exception != null) diff --git a/Winium/Winium.Mobile.Common/ResponseStatus.cs b/Winium/Winium.Mobile.Common/ResponseStatus.cs index 520c4da..89b433a 100644 --- a/Winium/Winium.Mobile.Common/ResponseStatus.cs +++ b/Winium/Winium.Mobile.Common/ResponseStatus.cs @@ -50,6 +50,8 @@ public enum ResponseStatus SessionNotCreatedException = 33, - MoveTargetOutOfBounds = 34 + MoveTargetOutOfBounds = 34, + + MissingParameters = 400 } } diff --git a/Winium/Winium.Mobile.Common/Winium.Mobile.Common.csproj b/Winium/Winium.Mobile.Common/Winium.Mobile.Common.csproj index 0671718..15d90b9 100644 --- a/Winium/Winium.Mobile.Common/Winium.Mobile.Common.csproj +++ b/Winium/Winium.Mobile.Common/Winium.Mobile.Common.csproj @@ -44,6 +44,7 @@ + diff --git a/Winium/Winium.Mobile.Driver.Tests/Winium.Mobile.Driver.Tests.csproj b/Winium/Winium.Mobile.Driver.Tests/Winium.Mobile.Driver.Tests.csproj index f0cd4e8..ffe5070 100644 --- a/Winium/Winium.Mobile.Driver.Tests/Winium.Mobile.Driver.Tests.csproj +++ b/Winium/Winium.Mobile.Driver.Tests/Winium.Mobile.Driver.Tests.csproj @@ -55,11 +55,7 @@ - - - - - + diff --git a/Winium/Winium.Mobile.Driver/Automator/Automator.cs b/Winium/Winium.Mobile.Driver/Automator/Automator.cs index 7f95658..2384194 100644 --- a/Winium/Winium.Mobile.Driver/Automator/Automator.cs +++ b/Winium/Winium.Mobile.Driver/Automator/Automator.cs @@ -46,6 +46,8 @@ internal class Automator public string Session { get; set; } + public string CurrentContext { get; set; } + #endregion #region Public Methods and Operators @@ -214,7 +216,7 @@ private void InitializeDeployer() public Point? RequestElementLocation(JToken element) { var command = new Command( - DriverCommand.GetElementLocationOnceScrolledIntoView, + DriverCommand.GetElementLocationOnceScrolledIntoView, new Dictionary { { "ID", element } }); var responseBody = this.CommandForwarder.ForwardCommand(command); diff --git a/Winium/Winium.Mobile.Driver/CommandExecutorDispatchTable.cs b/Winium/Winium.Mobile.Driver/CommandExecutorDispatchTable.cs index e27318f..e225d7f 100644 --- a/Winium/Winium.Mobile.Driver/CommandExecutorDispatchTable.cs +++ b/Winium/Winium.Mobile.Driver/CommandExecutorDispatchTable.cs @@ -16,6 +16,18 @@ internal class CommandExecutorDispatchTable { #region Fields + private static HashSet DriverBoundCommands = new HashSet + { + DriverCommand.Status, + DriverCommand.NewSession, + DriverCommand.Close, + DriverCommand.Quit, + DriverCommand.GetOrientation, + DriverCommand.Contexts, + DriverCommand.GetContext, + DriverCommand.SetContext + }; + private Dictionary commandExecutorsRepository; #endregion @@ -31,10 +43,19 @@ public CommandExecutorDispatchTable() #region Public Methods and Operators - public CommandExecutorBase GetExecutor(string commandName) + public CommandExecutorBase GetExecutor(Command command) { + var automator = Automator.Automator.InstanceForSession(command.SessionId); + + if (automator.CurrentContext != DefaultContextNames.NativeAppContextName + && !DriverBoundCommands.Contains(command.Name)) + { + return new CommandExecutorWebContextForward(); + } + + // TODO inject dependencies into command executor Type executorType; - if (this.commandExecutorsRepository.TryGetValue(commandName, out executorType)) + if (this.commandExecutorsRepository.TryGetValue(command.Name, out executorType)) { } else diff --git a/Winium/Winium.Mobile.Driver/CommandExecutors/CommandExecutorForward.cs b/Winium/Winium.Mobile.Driver/CommandExecutors/CommandExecutorForward.cs index 289042f..066f11f 100644 --- a/Winium/Winium.Mobile.Driver/CommandExecutors/CommandExecutorForward.cs +++ b/Winium/Winium.Mobile.Driver/CommandExecutors/CommandExecutorForward.cs @@ -6,6 +6,7 @@ internal class CommandExecutorForward : CommandExecutorBase protected override string DoImpl() { + this.ExecutedCommand.Context = this.Automator.CurrentContext; return this.Automator.CommandForwarder.ForwardCommand(this.ExecutedCommand); } diff --git a/Winium/Winium.Mobile.Driver/CommandExecutors/CommandExecutorWebContextForward.cs b/Winium/Winium.Mobile.Driver/CommandExecutors/CommandExecutorWebContextForward.cs new file mode 100644 index 0000000..27262fd --- /dev/null +++ b/Winium/Winium.Mobile.Driver/CommandExecutors/CommandExecutorWebContextForward.cs @@ -0,0 +1,20 @@ +namespace Winium.Mobile.Driver.CommandExecutors +{ + using Web; + + internal class CommandExecutorWebContextForward : CommandExecutorBase + { + #region Methods + + protected override string DoImpl() + { + this.ExecutedCommand.Context = this.Automator.CurrentContext; + var atom = DriverCommandToAtomMapping.GetAtomOrDefault(this.ExecutedCommand.Name); + this.ExecutedCommand.Atom = atom; + + return this.Automator.CommandForwarder.ForwardCommand(this.ExecutedCommand); + } + + #endregion + } +} diff --git a/Winium/Winium.Mobile.Driver/CommandExecutors/GetContextExecutor.cs b/Winium/Winium.Mobile.Driver/CommandExecutors/GetContextExecutor.cs new file mode 100644 index 0000000..02e4c97 --- /dev/null +++ b/Winium/Winium.Mobile.Driver/CommandExecutors/GetContextExecutor.cs @@ -0,0 +1,18 @@ +namespace Winium.Mobile.Driver.CommandExecutors +{ + using Winium.Mobile.Common; + + #region + + + + #endregion + + internal class GetContextExecutor : CommandExecutorBase + { + protected override string DoImpl() + { + return this.JsonResponse(ResponseStatus.Success, this.Automator.CurrentContext); + } + } +} diff --git a/Winium/Winium.Mobile.Driver/CommandExecutors/NewSessionExecutor.cs b/Winium/Winium.Mobile.Driver/CommandExecutors/NewSessionExecutor.cs index da0b984..b3a55ba 100644 --- a/Winium/Winium.Mobile.Driver/CommandExecutors/NewSessionExecutor.cs +++ b/Winium/Winium.Mobile.Driver/CommandExecutors/NewSessionExecutor.cs @@ -21,6 +21,7 @@ protected override string DoImpl() try { this.Automator.Session = Guid.NewGuid().ToString(); + this.Automator.CurrentContext = DefaultContextNames.NativeAppContextName; // It is easier to reparse desired capabilities as JSON instead of re-mapping keys to attributes and calling type conversions, // so we will take possible one time performance hit by serializing Dictionary and deserializing it as Capabilities object diff --git a/Winium/Winium.Mobile.Driver/CommandExecutors/SetContextExecutor.cs b/Winium/Winium.Mobile.Driver/CommandExecutors/SetContextExecutor.cs new file mode 100644 index 0000000..f76c417 --- /dev/null +++ b/Winium/Winium.Mobile.Driver/CommandExecutors/SetContextExecutor.cs @@ -0,0 +1,26 @@ +namespace Winium.Mobile.Driver.CommandExecutors +{ + #region + + using Newtonsoft.Json; + + using Common; + + #endregion + + internal class SetContextExecutor : CommandExecutorBase + { + protected override string DoImpl() + { + var rv = this.Automator.CommandForwarder.ForwardCommand(this.ExecutedCommand); + var response = JsonConvert.DeserializeObject(rv); + + if (response.Status == ResponseStatus.Success) + { + this.Automator.CurrentContext = response.Value as string; + } + + return rv; + } + } +} diff --git a/Winium/Winium.Mobile.Driver/Listener.cs b/Winium/Winium.Mobile.Driver/Listener.cs index 2f62115..c2e9a64 100644 --- a/Winium/Winium.Mobile.Driver/Listener.cs +++ b/Winium/Winium.Mobile.Driver/Listener.cs @@ -191,7 +191,7 @@ private string HandleRequest(HttpRequest acceptedRequest) private CommandResponse ProcessCommand(Command command) { Logger.Info("COMMAND {0}\r\n{1}", command.Name, command.Parameters.ToString()); - var executor = this.executorDispatcher.GetExecutor(command.Name); + var executor = this.executorDispatcher.GetExecutor(command); executor.ExecutedCommand = command; var response = executor.Do(); Logger.Debug("RESPONSE:\r\n{0}", response); diff --git a/Winium/Winium.Mobile.Driver/UriDispatchTables.cs b/Winium/Winium.Mobile.Driver/UriDispatchTables.cs index 47a92f4..a280e79 100644 --- a/Winium/Winium.Mobile.Driver/UriDispatchTables.cs +++ b/Winium/Winium.Mobile.Driver/UriDispatchTables.cs @@ -311,6 +311,15 @@ private void InitializeAppiumCommandDictionary() this.commandDictionary.Add( DriverCommand.PushFile, new CommandInfo("POST", "/session/{sessionId}/appium/device/push_file")); + this.commandDictionary.Add( + DriverCommand.Contexts, + new CommandInfo("GET", "/session/{sessionId}/contexts")); + this.commandDictionary.Add( + DriverCommand.GetContext, + new CommandInfo("GET", "/session/{sessionId}/context")); + this.commandDictionary.Add( + DriverCommand.SetContext, + new CommandInfo("POST", "/session/{sessionId}/context")); } #endregion diff --git a/Winium/Winium.Mobile.Driver/Web/DriverCommandToAtomMapping.cs b/Winium/Winium.Mobile.Driver/Web/DriverCommandToAtomMapping.cs new file mode 100644 index 0000000..42d4e52 --- /dev/null +++ b/Winium/Winium.Mobile.Driver/Web/DriverCommandToAtomMapping.cs @@ -0,0 +1,47 @@ +namespace Winium.Mobile.Driver.Web +{ + #region + + using System.Collections.Generic; + + using WindowsPhoneDriverBrowser; + + using Winium.Mobile.Common; + + #endregion + + internal static class DriverCommandToAtomMapping + { + private static readonly Dictionary Mapping; + + static DriverCommandToAtomMapping() + { + Mapping = new Dictionary + { + { DriverCommand.ClearElement, WebDriverAtoms.Clear }, + { DriverCommand.ClickElement, WebDriverAtoms.Click }, + { DriverCommand.ExecuteAsyncScript, WebDriverAtoms.ExecuteAsyncScript }, + { DriverCommand.ExecuteScript, WebDriverAtoms.ExecuteScript }, + { DriverCommand.FindChildElement, WebDriverAtoms.FindElement }, + { DriverCommand.FindChildElements, WebDriverAtoms.FindElements }, + { DriverCommand.FindElement, WebDriverAtoms.FindElement }, + { DriverCommand.FindElements, WebDriverAtoms.FindElements }, + { DriverCommand.GetActiveElement, WebDriverAtoms.ActiveElement }, + { DriverCommand.GetElementAttribute, WebDriverAtoms.GetAttributeValue }, + { DriverCommand.GetElementLocation, WebDriverAtoms.GetTopLeftCoordinates }, + { DriverCommand.GetElementSize, WebDriverAtoms.GetSize }, + { DriverCommand.GetElementText, WebDriverAtoms.GetText }, + { DriverCommand.GetElementValueOfCssProperty, WebDriverAtoms.GetValueOfCssProperty }, + { DriverCommand.GetPageSource, WebDriverAtoms.ExecuteScript }, + { DriverCommand.SendKeysToElement, WebDriverAtoms.Type } + }; + } + + public static string GetAtomOrDefault(string commandName) + { + string atom; + Mapping.TryGetValue(commandName, out atom); + return atom; + } + } +} diff --git a/Winium/Winium.Mobile.Driver/Web/WebDriverAtoms.cs b/Winium/Winium.Mobile.Driver/Web/WebDriverAtoms.cs new file mode 100644 index 0000000..686816e --- /dev/null +++ b/Winium/Winium.Mobile.Driver/Web/WebDriverAtoms.cs @@ -0,0 +1,16442 @@ +/* + * Copyright 2011-2014 Software Freedom Conservancy + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System.CodeDom.Compiler; +using System.Collections.Generic; +using System.Text; + +namespace WindowsPhoneDriverBrowser +{ + /** + * The WebDriver atoms are used to ensure consistent behaviour cross-browser. + * + * AUTO GENERATED - DO NOT EDIT BY HAND + */ + [GeneratedCode("WebDriver", "2.43.1")] + public static class WebDriverAtoms + { + private static Dictionary atomsRepository = new Dictionary(); + + public static string ExecuteScript + { + get + { + const string atomName = "ExecuteScript"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g=this;\nfunction h(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=h(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function ba(a){var b=typeof a;return\""); + atom.Append("object\"==b&&null!=a||\"function\"==b}var k=Date.now||function(){return+new Date};"); + atom.Append("var ca=window;function l(a,b){this.code=a;this.state=m[a]||n;this.message=b||\"\";"); + atom.Append("var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().r"); + atom.Append("eplace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+="); + atom.Append("\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||"); + atom.Append("\"\"}\n(function(){var a=Error;function b(){}b.prototype=a.prototype;l.d=a.prototy"); + atom.Append("pe;l.prototype=new b;l.prototype.constructor=l;l.c=function(b,d,e){return a.protot"); + atom.Append("ype[d].apply(b,Array.prototype.slice.call(arguments,2))}})();\nvar n=\"unknown err"); + atom.Append("or\",m={15:\"element not selectable\",11:\"element not visible\",31:\"ime engine a"); + atom.Append("ctivation failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"inva"); + atom.Append("lid element coordinates\",12:\"invalid element state\",32:\"invalid selector\",51:"); + atom.Append("\"invalid selector\",52:\"invalid selector\",17:\"javascript error\",405:\"unsuppo"); + atom.Append("rted operation\",34:\"move target out of bounds\",27:\"no such alert\",7:\"no such"); + atom.Append(" element\",8:\"no such frame\",23:\"no such window\",28:\"script timeout\",33:\"se"); + atom.Append("ssion not created\",10:\"stale element reference\",\n0:\"success\",21:\"timeout\","); + atom.Append("25:\"unable to set cookie\",26:\"unexpected alert open\"};m[13]=n;m[9]=\"unknown c"); + atom.Append("ommand\";l.prototype.toString=function(){return this.name+\": \"+this.message};fun"); + atom.Append("ction p(a,b){for(var c=0,d=String(a).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").sp"); + atom.Append("lit(\".\"),e=String(b).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),f=M"); + atom.Append("ath.max(d.length,e.length),q=0;0==c&&qb?1:0};function s(a,b){for(var c=a.length,d=Array(c),"); + atom.Append("e=\"string\"==typeof a?a.split(\"\"):a,f=0;fparseFloat(a))?String(b):a}(),C={},ja=g.document,ka=ja&&z?ia()||(\"CSS1"); + atom.Append("Compat\"==ja.compatMode?parseInt(B,10):5):void 0;var E,F,G,H,I,J,K;K=J=I=H=G=F=E=!"); + atom.Append("1;var L=w;L&&(-1!=L.indexOf(\"Firefox\")?E=!0:-1!=L.indexOf(\"Camino\")?F=!0:-1!=L"); + atom.Append(".indexOf(\"iPhone\")||-1!=L.indexOf(\"iPod\")?G=!0:-1!=L.indexOf(\"iPad\")?H=!0:-1"); + atom.Append("!=L.indexOf(\"Chrome\")?J=!0:-1!=L.indexOf(\"Android\")?I=!0:-1!=L.indexOf(\"Safar"); + atom.Append("i\")&&(K=!0));var la=E,ma=F,na=G,oa=H,M=I,pa=J,sa=K;function N(a){return(a=a.exec("); + atom.Append("w))?a[1]:\"\"}var ta=function(){if(la)return N(/Firefox\\/([0-9.]+)/);if(z||y)retu"); + atom.Append("rn B;if(pa)return N(/Chrome\\/([0-9.]+)/);if(sa)return N(/Version\\/([0-9.]+)/);if"); + atom.Append("(na||oa){var a;if(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(w))return a[1]+\".\"+"); + atom.Append("a[2]}else{if(M)return(a=N(/Android\\s+([0-9.]+)/))?a:N(/Version\\/([0-9.]+)/);if(m"); + atom.Append("a)return N(/Camino\\/([0-9.]+)/)}return\"\"}();var O,ua;function P(a){Q?ua(a):M?p("); + atom.Append("va,a):p(ta,a)}var Q=function(){if(!A)return!1;var a=g.Components;if(!a)return!1;tr"); + atom.Append("y{if(!a.classes)return!1}catch(b){return!1}var c=a.classes,a=a.interfaces,d=c[\"@m"); + atom.Append("ozilla.org/xpcom/version-comparator;1\"].getService(a.nsIVersionComparator),c=c[\""); + atom.Append("@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo),e=c.platformVersion,f=c"); + atom.Append(".version;O=function(a){return 0<=d.compare(e,\"\"+a)};ua=function(a){d.compare(f,"); + atom.Append("\"\"+a)};return!0}(),R;\nif(M){var wa=/Android\\s+([0-9\\.]+)/.exec(w);R=wa?wa[1]:"); + atom.Append("\"0\"}else R=\"0\";var va=R;M&&P(2.3);M&&P(4);sa&&P(6);function xa(){this.a=void 0"); + atom.Append("}\nfunction S(a,b,c){switch(typeof b){case \"string\":ya(b,c);break;case \"number"); + atom.Append("\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b);brea"); + atom.Append("k;case \"undefined\":c.push(\"null\");break;case \"object\":if(null==b){c.push(\"n"); + atom.Append("ull\");break}if(\"array\"==h(b)){var d=b.length;c.push(\"[\");for(var e=\"\",f=0;f"); + atom.Append("b?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return T["); + atom.Append("a]=e+b.toString(16)}),'\"')};ha||y||A&&(Q?O(3.5):z?0<=p(ka,3.5):C[3.5]||(C[3.5]=0<"); + atom.Append("=p(B,3.5)))||z&&(Q?O(8):z?p(ka,8):C[8]||(C[8]=0<=p(B,8)));function U(a){switch(h(a"); + atom.Append(")){case \"string\":case \"number\":case \"boolean\":return a;case \"function\":ret"); + atom.Append("urn a.toString();case \"array\":return s(a,U);case \"object\":if(\"nodeType\"in a&"); + atom.Append("&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Aa(a);return b}if(\"document\""); + atom.Append("in a)return b={},b.WINDOW=Aa(a),b;if(aa(a))return s(a,U);a=ea(a,function(a,b){retu"); + atom.Append("rn\"number\"==typeof b||\"string\"==typeof b});return fa(a,U);default:return null}"); + atom.Append("}\nfunction V(a,b){return\"array\"==h(a)?s(a,function(a){return V(a,b)}):ba(a)?\"f"); + atom.Append("unction\"==typeof a?a:\"ELEMENT\"in a?W(a.ELEMENT,b):\"WINDOW\"in a?W(a.WINDOW,b):"); + atom.Append("fa(a,function(a){return V(a,b)}):a}function Ba(a){a=a||document;var b=a.$wdc_;b||("); + atom.Append("b=a.$wdc_={},b.b=k());b.b||(b.b=k());return b}function Aa(a){var b=Ba(a.ownerDocum"); + atom.Append("ent),c=ga(b,function(b){return b==a});c||(c=\":wdc:\"+b.b++,b[c]=a);return c}\nfun"); + atom.Append("ction W(a,b){a=decodeURIComponent(a);var c=b||document,d=Ba(c);if(!(a in d))throw "); + atom.Append("new l(10,\"Element does not exist in cache\");var e=d[a];if(\"setInterval\"in e){i"); + atom.Append("f(e.closed)throw delete d[a],new l(23,\"Window has been closed.\");return e}for(va"); + atom.Append("r f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];throw new l("); + atom.Append("10,\"Element is no longer attached to the DOM\");};function Ca(a,b,c){c=(c?W(c.WIN"); + atom.Append("DOW):window)||ca;var d;try{a:{var e=a;if(\"string\"==typeof e)try{a=new c.Function"); + atom.Append("(e);break a}catch(f){if(z&&c.execScript){c.execScript(\";\");a=new c.Function(e);b"); + atom.Append("reak a}throw f;}a=c==window?e:new c.Function(\"return (\"+e+\").apply(null,argumen"); + atom.Append("ts);\")}var q=V(b,c.document),D=a.apply(null,q);d={status:0,value:U(D)}}catch(t){d"); + atom.Append("={status:\"code\"in t?t.code:13,value:{message:t.message}}}b=[];S(new xa,d,b);retu"); + atom.Append("rn b.join(\"\")}var X=[\"_\"],Y=g;\nX[0]in Y||!Y.execScript||Y.execScript(\"var \""); + atom.Append("+X[0]);for(var Z;X.length&&(Z=X.shift());){var $;if($=!X.length)$=void 0!==Ca;$?Y["); + atom.Append("Z]=Ca:Y=Y[Z]?Y[Z]:Y[Z]={}};; return this._.apply(null,arguments);}.apply({navigato"); + atom.Append("r:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined"); + atom.Append("?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string ExecuteAsyncScript + { + get + { + const string atomName = "ExecuteAsyncScript"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g=this;\nfunction k(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=k(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function ba(a){var b=typeof a;return\""); + atom.Append("object\"==b&&null!=a||\"function\"==b}function ca(a,b){var c=Array.prototype.slice"); + atom.Append(".call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);ret"); + atom.Append("urn a.apply(this,b)}}var m=Date.now||function(){return+new Date};function p(a,b){t"); + atom.Append("his.code=a;this.state=q[a]||da;this.message=b||\"\";var c=this.state.replace(/((?:"); + atom.Append("^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")})"); + atom.Append(",d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";this.name=c;c=Error(t"); + atom.Append("his.message);c.name=this.name;this.stack=c.stack||\"\"}\n(function(){var a=Error;f"); + atom.Append("unction b(){}b.prototype=a.prototype;p.d=a.prototype;p.prototype=new b;p.prototype"); + atom.Append(".constructor=p;p.c=function(b,d,e){return a.prototype[d].apply(b,Array.prototype.s"); + atom.Append("lice.call(arguments,2))}})();\nvar da=\"unknown error\",q={15:\"element not select"); + atom.Append("able\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"ime not"); + atom.Append(" available\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",12:\""); + atom.Append("invalid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\"inval"); + atom.Append("id selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move targ"); + atom.Append("et out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\","); + atom.Append("23:\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"stale "); + atom.Append("element reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:"); + atom.Append("\"unexpected alert open\"};q[13]=da;q[9]=\"unknown command\";p.prototype.toString="); + atom.Append("function(){return this.name+\": \"+this.message};function r(a,b){for(var c=0,d=Str"); + atom.Append("ing(a).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),e=String(b).replace"); + atom.Append("(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),f=Math.max(d.length,e.length),l=0"); + atom.Append(";0==c&&lb?1:0"); + atom.Append("};function t(a,b){for(var c=a.length,d=Array(c),e=\"string\"==typeof a?a.split(\""); + atom.Append("\"):a,f=0;fparseFloat(a))?Str"); + atom.Append("ing(b):a}(),C={},la=g.document,ma=la&&x?ka()||(\"CSS1Compat\"==la.compatMode?parse"); + atom.Append("Int(z,10):5):void 0;var D,E,F,H,I,J,K;K=J=I=H=F=E=D=!1;var L=u;L&&(-1!=L.indexOf("); + atom.Append("\"Firefox\")?D=!0:-1!=L.indexOf(\"Camino\")?E=!0:-1!=L.indexOf(\"iPhone\")||-1!=L."); + atom.Append("indexOf(\"iPod\")?F=!0:-1!=L.indexOf(\"iPad\")?H=!0:-1!=L.indexOf(\"Chrome\")?J=!0"); + atom.Append(":-1!=L.indexOf(\"Android\")?I=!0:-1!=L.indexOf(\"Safari\")&&(K=!0));var na=D,oa=E,"); + atom.Append("pa=F,qa=H,M=I,ra=J,sa=K;function N(a){return(a=a.exec(u))?a[1]:\"\"}var ta=functio"); + atom.Append("n(){if(na)return N(/Firefox\\/([0-9.]+)/);if(x||w)return z;if(ra)return N(/Chrome"); + atom.Append("\\/([0-9.]+)/);if(sa)return N(/Version\\/([0-9.]+)/);if(pa||qa){var a;if(a=/Versio"); + atom.Append("n\\/(\\S+).*Mobile\\/(\\S+)/.exec(u))return a[1]+\".\"+a[2]}else{if(M)return(a=N(/"); + atom.Append("Android\\s+([0-9.]+)/))?a:N(/Version\\/([0-9.]+)/);if(oa)return N(/Camino\\/([0-9."); + atom.Append("]+)/)}return\"\"}();var O,ua;function P(a){Q?ua(a):M?r(va,a):r(ta,a)}var Q=functio"); + atom.Append("n(){if(!y)return!1;var a=g.Components;if(!a)return!1;try{if(!a.classes)return!1}ca"); + atom.Append("tch(b){return!1}var c=a.classes,a=a.interfaces,d=c[\"@mozilla.org/xpcom/version-co"); + atom.Append("mparator;1\"].getService(a.nsIVersionComparator),c=c[\"@mozilla.org/xre/app-info;1"); + atom.Append("\"].getService(a.nsIXULAppInfo),e=c.platformVersion,f=c.version;O=function(a){retu"); + atom.Append("rn 0<=d.compare(e,\"\"+a)};ua=function(a){d.compare(f,\"\"+a)};return!0}(),R;\nif("); + atom.Append("M){var wa=/Android\\s+([0-9\\.]+)/.exec(u);R=wa?wa[1]:\"0\"}else R=\"0\";var va=R;"); + atom.Append("M&&P(2.3);M&&P(4);sa&&P(6);function xa(){this.a=void 0}\nfunction S(a,b,c){switch("); + atom.Append("typeof b){case \"string\":ya(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN"); + atom.Append("(b)?b:\"null\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push("); + atom.Append("\"null\");break;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==k"); + atom.Append("(b)){var d=b.length;c.push(\"[\");for(var e=\"\",f=0;fb?"); + atom.Append("e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return T[a]=e+b.toString(16)}),'\"')"); + atom.Append("};ja||w||y&&(Q?O(3.5):x?0<=r(ma,3.5):C[3.5]||(C[3.5]=0<=r(z,3.5)))||x&&(Q?O(8):x?r"); + atom.Append("(ma,8):C[8]||(C[8]=0<=r(z,8)));function U(a){switch(k(a)){case \"string\":case \"n"); + atom.Append("umber\":case \"boolean\":return a;case \"function\":return a.toString();case \"arr"); + atom.Append("ay\":return t(a,U);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeT"); + atom.Append("ype)){var b={};b.ELEMENT=Aa(a);return b}if(\"document\"in a)return b={},b.WINDOW=A"); + atom.Append("a(a),b;if(aa(a))return t(a,U);a=ga(a,function(a,b){return\"number\"==typeof b||\"s"); + atom.Append("tring\"==typeof b});return ha(a,U);default:return null}}\nfunction V(a,b){return\""); + atom.Append("array\"==k(a)?t(a,function(a){return V(a,b)}):ba(a)?\"function\"==typeof a?a:\"ELE"); + atom.Append("MENT\"in a?W(a.ELEMENT,b):\"WINDOW\"in a?W(a.WINDOW,b):ha(a,function(a){return V(a"); + atom.Append(",b)}):a}function Ba(a,b){if(\"string\"==typeof a)try{return new b.Function(a)}catc"); + atom.Append("h(c){if(x&&b.execScript)return b.execScript(\";\"),new b.Function(a);throw c;}retu"); + atom.Append("rn b==window?a:new b.Function(\"return (\"+a+\").apply(null,arguments);\")}\nfunct"); + atom.Append("ion Ca(a,b,c,d,e){function f(a,b){if(!B){h.removeEventListener?h.removeEventListen"); + atom.Append("er(\"unload\",l,!0):h.detachEvent(\"onunload\",l);h.clearTimeout(A);if(0!=a){var c"); + atom.Append("=new p(a,b.message||b+\"\");c.stack=b.stack;b={status:\"code\"in c?c.code:13,value"); + atom.Append(":{message:c.message}}}else b={status:0,value:U(b)};c=[];S(new xa,b,c);d(c.join(\""); + atom.Append("\"));B=!0}}function l(){f(13,Error(\"Detected a page unload event; asynchronous sc"); + atom.Append("ript execution does not work across page loads.\"))}var h=e||window,A,B=!1;e=ca(f,"); + atom.Append("13);if(h.closed)e(\"Unable to execute script; the target window is closed.\");\nel"); + atom.Append("se{a=Ba(a,h);b=V(b,h.document);b.push(ca(f,0));h.addEventListener?h.addEventListen"); + atom.Append("er(\"unload\",l,!0):h.attachEvent(\"onunload\",l);var G=m();try{a.apply(h,b),A=h.s"); + atom.Append("etTimeout(function(){f(28,Error(\"Timed out waiting for asyncrhonous script result"); + atom.Append(" after \"+(m()-G)+\" ms\"))},Math.max(0,c))}catch(n){f(n.code||13,n)}}}function Da"); + atom.Append("(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.b=m());b.b||(b.b=m());return b}"); + atom.Append("\nfunction Aa(a){var b=Da(a.ownerDocument),c=ia(b,function(b){return b==a});c||(c="); + atom.Append("\":wdc:\"+b.b++,b[c]=a);return c}function W(a,b){a=decodeURIComponent(a);var c=b||"); + atom.Append("document,d=Da(c);if(!(a in d))throw new p(10,\"Element does not exist in cache\");"); + atom.Append("var e=d[a];if(\"setInterval\"in e){if(e.closed)throw delete d[a],new p(23,\"Window"); + atom.Append(" has been closed.\");return e}for(var f=e;f;){if(f==c.documentElement)return e;f=f"); + atom.Append(".parentNode}delete d[a];throw new p(10,\"Element is no longer attached to the DOM"); + atom.Append("\");};function Ea(a,b,c,d,e){Ca(a,b,c,d,e?W(e.WINDOW):window)}var X=[\"_\"],Y=g;X["); + atom.Append("0]in Y||!Y.execScript||Y.execScript(\"var \"+X[0]);for(var Z;X.length&&(Z=X.shift("); + atom.Append("));){var $;if($=!X.length)$=void 0!==Ea;$?Y[Z]=Ea:Y=Y[Z]?Y[Z]:Y[Z]={}};; return th"); + atom.Append("is._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navi"); + atom.Append("gator:null,document:typeof window!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string Type + { + get + { + const string atomName = "Type"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function m(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction n(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==aa(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ia(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ja(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ta(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var ua=Array.prototype;function q(a,b,c){for(va"); + atom.Append("r d=a.length,f=n(a)?a.split(\"\"):a,e=0;ec?null:n(a)?a.charAt(c):a[c]}\nfunction Ba(a,b){var c;a:if(n(a))c=n(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?ua.slice.call(a,b):ua.slice.call(a,b,"); + atom.Append("c)};var Fa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ga=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ha=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ia=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ja=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,Ka=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function t(a,b){this.code=a;this.state=La[a]||Ma;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}p("); + atom.Append("t,Error);\nvar Ma=\"unknown error\",La={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};La[13]=Ma;La[9]=\"unknown command\";t.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var v;a:{var Na=l.navigator;if(Na){var Oa=Na.userA"); + atom.Append("gent;if(Oa){v=Oa;break a}}v=\"\"}function Pa(a){return-1!=v.indexOf(a)};function Q"); + atom.Append("a(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}functio"); + atom.Append("n Ra(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Sa("); + atom.Append("a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a,b){for(var c in a)"); + atom.Append("if(b.call(void 0,a[c],c,a))return c};var Ua,Va,w=Pa(\"Opera\")||Pa(\"OPR\"),x=Pa("); + atom.Append("\"Trident\")||Pa(\"MSIE\"),z=Pa(\"Gecko\")&&-1==v.toLowerCase().indexOf(\"webkit\""); + atom.Append(")&&!(Pa(\"Trident\")||Pa(\"MSIE\")),A=-1!=v.toLowerCase().indexOf(\"webkit\"),Wa=A"); + atom.Append("&&Pa(\"Mobile\"),Xa,Ya=l.navigator||null;Xa=Ya&&Ya.platform||\"\";Ua=-1!=Xa.indexO"); + atom.Append("f(\"Mac\");Va=-1!=Xa.indexOf(\"Win\");var Za=-1!=Xa.indexOf(\"Linux\");function $a"); + atom.Append("(){var a=l.document;return a?a.documentMode:void 0}\nvar ab=function(){var a=\"\","); + atom.Append("b;if(w&&l.opera)return a=l.opera.version,ea(a)?a():a;z?b=/rv\\:([^\\);]+)(\\)|;)/:"); + atom.Append("x?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:A&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec"); + atom.Append("(v))?a[1]:\"\");return x&&(b=$a(),b>parseFloat(a))?String(b):a}(),eb={};function f"); + atom.Append("b(a){return eb[a]||(eb[a]=0<=ra(ab,a))}var gb=l.document,hb=gb&&x?$a()||(\"CSS1Com"); + atom.Append("pat\"==gb.compatMode?parseInt(ab,10):5):void 0;!z&&!x||x&&x&&9<=hb||z&&fb(\"1.9.1"); + atom.Append("\");x&&fb(\"9\");function ib(a,b,c){return Math.min(Math.max(a,b),c)};function jb("); + atom.Append("a,b){this.x=m(a)?a:0;this.y=m(b)?b:0}h=jb.prototype;h.clone=function(){return new "); + atom.Append("jb(this.x,this.y)};h.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"};h"); + atom.Append(".ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h."); + atom.Append("floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};"); + atom.Append("h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this"); + atom.Append("};\nh.translate=function(a,b){a instanceof jb?(this.x+=a.x,this.y+=a.y):(this.x+=a"); + atom.Append(",da(b)&&(this.y+=b));return this};h.scale=function(a,b){var c=da(b)?b:a;this.x*=a;"); + atom.Append("this.y*=c;return this};function kb(a,b){this.width=a;this.height=b}h=kb.prototype;"); + atom.Append("h.clone=function(){return new kb(this.width,this.height)};h.toString=function(){re"); + atom.Append("turn\"(\"+this.width+\" x \"+this.height+\")\"};h.ceil=function(){this.width=Math."); + atom.Append("ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function("); + atom.Append("){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return thi"); + atom.Append("s};h.round=function(){this.width=Math.round(this.width);this.height=Math.round(thi"); + atom.Append("s.height);return this};\nh.scale=function(a,b){var c=da(b)?b:a;this.width*=a;this."); + atom.Append("height*=c;return this};function lb(a){return a?new mb(C(a)):oa||(oa=new mb)}functi"); + atom.Append("on nb(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;retu"); + atom.Append("rn new kb(a.clientWidth,a.clientHeight)}function ob(a){return a?a.parentWindow||a."); + atom.Append("defaultView:window}function pb(a,b,c){function d(c){c&&b.appendChild(n(c)?a.create"); + atom.Append("TextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),Yb=/^\\s/;function D(a,b){return a.j"); + atom.Append("a[a.T+(b||0)]}Vb.prototype.next=function(){return this.ja[this.T++]};Vb.prototype."); + atom.Append("back=function(){this.T--};Vb.prototype.empty=function(){return this.ja.length<=thi"); + atom.Append("s.T};function E(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||nul"); + atom.Append("l==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Rb&&\"t"); + atom.Append("itle\"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.docum"); + atom.Append("entElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeVa"); + atom.Append("lue),Rb&&\"title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.first"); + atom.Append("Child);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunct"); + atom.Append("ion Zb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return"); + atom.Append("!1}Sb&&\"class\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAtt"); + atom.Append("ribute(b,2)==c}function $b(a,b,c,d,f){return(Rb?ac:bc).call(null,a,b,n(c)?c:null,n"); + atom.Append("(d)?d:null,f||new F)}\nfunction ac(a,b,c,d,f){if(a instanceof cc||8==a.f||c&&null="); + atom.Append("==a.f){var e=b.all;if(!e)return f;a=dc(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a"); + atom.Append("),!e))return f;if(c){for(var g=[],k=0;b=e[k++];)Zb(b,c,d)&&g.push(b);e=g}for(k=0;b"); + atom.Append("=e[k++];)\"*\"==a&&\"!\"==b.tagName||f.add(b);return f}ec(a,b,c,d,f);return f}\nfu"); + atom.Append("nction bc(a,b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!x?(b=b.getElementsByNam"); + atom.Append("e(d),q(b,function(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"clas"); + atom.Append("s\"==c?(b=b.getElementsByClassName(d),q(b,function(b){b.className==d&&a.matches(b)"); + atom.Append("&&f.add(b)})):a instanceof G?ec(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElement"); + atom.Append("sByTagName(a.getName()),q(b,function(a){Zb(a,c,d)&&f.add(a)}));return f}\nfunction"); + atom.Append(" fc(a,b,c,d,f){var e;if((a instanceof cc||8==a.f||c&&null===a.f)&&(e=b.childNodes)"); + atom.Append("){var g=dc(a);if(\"*\"!=g&&(e=va(e,function(a){return a.tagName&&a.tagName.toLower"); + atom.Append("Case()==g}),!e))return f;c&&(e=va(e,function(a){return Zb(a,c,d)}));q(e,function(a"); + atom.Append("){\"*\"==g&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}retur"); + atom.Append("n gc(a,b,c,d,f)}function gc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)Zb(b,c"); + atom.Append(",d)&&a.matches(b)&&f.add(b);return f}\nfunction ec(a,b,c,d,f){for(b=b.firstChild;b"); + atom.Append(";b=b.nextSibling)Zb(b,c,d)&&a.matches(b)&&f.add(b),ec(a,b,c,d,f)}function dc(a){if"); + atom.Append("(a instanceof G){if(8==a.f)return\"!\";if(null===a.f)return\"*\"}return a.getName("); + atom.Append(")};function F(){this.r=this.n=null;this.P=0}function hc(a){this.I=a;this.next=this"); + atom.Append(".F=null}function ic(a,b){if(!a.n)return b;if(!b.n)return a;for(var c=a.n,d=b.n,f=n"); + atom.Append("ull,e=null,g=0;c&&d;){var e=c.I,k=d.I;e==k||e instanceof Tb&&k instanceof Tb&&e.k="); + atom.Append("=k.k?(e=c,c=c.next,d=d.next):0\",4,2,function(a,b,c){return sc(function"); + atom.Append("(a,b){return a>b},a,b,c)});N(\"<=\",4,2,function(a,b,c){return sc(function(a,b){re"); + atom.Append("turn a<=b},a,b,c)});N(\">=\",4,2,function(a,b,c){return sc(function(a,b){return a>"); + atom.Append("=b},a,b,c)});var rc=N(\"=\",3,2,function(a,b,c){return sc(function(a,b){return a=="); + atom.Append("b},a,b,c,!0)});N(\"!=\",3,2,function(a,b,c){return sc(function(a,b){return a!=b},a"); + atom.Append(",b,c,!0)});N(\"and\",2,2,function(a,b,c){return pc(a,c)&&pc(b,c)});N(\"or\",1,2,fu"); + atom.Append("nction(a,b,c){return pc(a,c)||pc(b,c)});function vc(a,b){if(b.u()&&4!=a.m)throw Er"); + atom.Append("ror(\"Primary expression must evaluate to nodeset if filter has predicate(s).\");H"); + atom.Append(".call(this,a.m);this.wa=a;this.g=b;this.v=a.l();this.o=a.o}p(vc,H);vc.prototype.ev"); + atom.Append("aluate=function(a){a=this.wa.evaluate(a);return wc(this.g,a)};vc.prototype.toStrin"); + atom.Append("g=function(){var a;a=\"Filter:\"+I(this.wa);return a+=I(this.g)};function xc(a,b){"); + atom.Append("if(b.lengtha.ea)throw Error(\"Function"); + atom.Append(" \"+a.q+\" expects at most \"+a.ea+\" arguments, \"+b.length+\" given\");a.Ia&&q(b"); + atom.Append(",function(b,d){if(4!=b.m)throw Error(\"Argument \"+d+\" to function \"+a.q+\" is n"); + atom.Append("ot of type Nodeset: \"+b);});H.call(this,a.m);this.S=a;this.Z=b;nc(this,a.v||ya(b,"); + atom.Append("function(a){return a.l()}));oc(this,a.Ga&&!b.length||a.Fa&&!!b.length||ya(b,functi"); + atom.Append("on(a){return a.o}))}\np(xc,H);xc.prototype.evaluate=function(a){return this.S.t.ap"); + atom.Append("ply(null,Ca(a,this.Z))};xc.prototype.toString=function(){var a=\"Function: \"+this"); + atom.Append(".S;if(this.Z.length)var b=xa(this.Z,function(a,b){return a+I(b)},\"Arguments:\"),a"); + atom.Append("=a+I(b);return a};function yc(a,b,c,d,f,e,g,k,r){this.q=a;this.m=b;this.v=c;this.G"); + atom.Append("a=d;this.Fa=f;this.t=e;this.ta=g;this.ea=m(k)?k:g;this.Ia=!!r}yc.prototype.toStrin"); + atom.Append("g=function(){return this.q};var zc={};\nfunction O(a,b,c,d,f,e,g,k){if(zc.hasOwnPr"); + atom.Append("operty(a))throw Error(\"Function already created: \"+a+\".\");zc[a]=new yc(a,b,c,d"); + atom.Append(",!1,f,e,g,k)}O(\"boolean\",2,!1,!1,function(a,b){return pc(b,a)},1);O(\"ceiling\","); + atom.Append("1,!1,!1,function(a,b){return Math.ceil(K(b,a))},1);O(\"concat\",3,!1,!1,function(a"); + atom.Append(",b){return xa(Ea(arguments,1),function(b,d){return b+L(d,a)},\"\")},2,null);O(\"co"); + atom.Append("ntains\",2,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);return-1!=b.indexOf(a)},2);O(\""); + atom.Append("count\",1,!1,!1,function(a,b){return b.evaluate(a).u()},1,1,!0);\nO(\"false\",2,!1"); + atom.Append(",!1,function(){return!1},0);O(\"floor\",1,!1,!1,function(a,b){return Math.floor(K("); + atom.Append("b,a))},1);O(\"id\",4,!1,!1,function(a,b){function c(a){if(Rb){var b=f.all[a];if(b)"); + atom.Append("{if(b.nodeType&&a==b.id)return b;if(b.length)return Aa(b,function(b){return a==b.i"); + atom.Append("d})}return null}return f.getElementById(a)}var d=a.k,f=9==d.nodeType?d:d.ownerDocu"); + atom.Append("ment,d=L(b,a).split(/\\s+/),e=[];q(d,function(a){(a=c(a))&&!Ba(e,a)&&e.push(a)});e"); + atom.Append(".sort(tb);var g=new F;q(e,function(a){g.add(a)});return g},1);\nO(\"lang\",2,!1,!1"); + atom.Append(",function(){return!1},1);O(\"last\",1,!0,!1,function(a){if(1!=arguments.length)thr"); + atom.Append("ow Error(\"Function last expects ()\");return a.r},0);O(\"local-name\",3,!1,!0,fun"); + atom.Append("ction(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.nodeName.toLowerCase():\"\"},0"); + atom.Append(",1,!0);O(\"name\",3,!1,!0,function(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.n"); + atom.Append("odeName.toLowerCase():\"\"},0,1,!0);O(\"namespace-uri\",3,!0,!1,function(){return"); + atom.Append("\"\"},0,1,!0);\nO(\"normalize-space\",3,!1,!0,function(a,b){return(b?L(b,a):E(a.k)"); + atom.Append(").replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);O(\"not\",2,!1,"); + atom.Append("!1,function(a,b){return!pc(b,a)},1);O(\"number\",1,!1,!0,function(a,b){return b?K("); + atom.Append("b,a):+E(a.k)},0,1);O(\"position\",1,!0,!1,function(a){return a.La},0);O(\"round\","); + atom.Append("1,!1,!1,function(a,b){return Math.round(K(b,a))},1);O(\"starts-with\",2,!1,!1,func"); + atom.Append("tion(a,b,c){b=L(b,a);a=L(c,a);return 0==b.lastIndexOf(a,0)},2);O(\"string\",3,!1,!"); + atom.Append("0,function(a,b){return b?L(b,a):E(a.k)},0,1);\nO(\"string-length\",1,!1,!0,functio"); + atom.Append("n(a,b){return(b?L(b,a):E(a.k)).length},0,1);O(\"substring\",3,!1,!1,function(a,b,c"); + atom.Append(",d){c=K(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?K(d,a):Infinity"); + atom.Append(";if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.max(c,0);a=L(b"); + atom.Append(",a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a.substring(f,c+b)"); + atom.Append("},2,3);O(\"substring-after\",3,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);c=b.indexOf"); + atom.Append("(a);return-1==c?\"\":b.substring(c+a.length)},2);\nO(\"substring-before\",3,!1,!1,"); + atom.Append("function(a,b,c){b=L(b,a);a=L(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)"); + atom.Append("},2);O(\"sum\",1,!1,!1,function(a,b){for(var c=lc(b.evaluate(a)),d=0,f=c.next();f;"); + atom.Append("f=c.next())d+=+E(f);return d},1,1,!0);O(\"translate\",3,!1,!1,function(a,b,c,d){b="); + atom.Append("L(b,a);c=L(c,a);var f=L(d,a);a=[];for(d=0;da.length)throw Error"); + atom.Append("(\"Unclosed literal string\");return new Bc(a)}function $c(a){var b=a.b.next(),c=b"); + atom.Append(".indexOf(\":\");if(-1==c)return new cc(b);var d=b.substring(0,c);a=a.Ja(d);if(!a)t"); + atom.Append("hrow Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return new cc(b,"); + atom.Append("a)}\nfunction ad(a){var b,c=[],d;if(Hc(D(a.b))){b=a.b.next();d=D(a.b);if(\"/\"==b&"); + atom.Append("&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d))"); + atom.Append(")return new Fc;d=new Fc;Q(a,\"Missing next location step.\");b=bd(a,b);c.push(b)}e"); + atom.Append("lse{a:{b=D(a.b);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable referenc"); + atom.Append("e not allowed in HTML XPath\");case \"(\":a.b.next();b=Vc(a);Q(a,'unclosed \"(\"')"); + atom.Append(";Xc(a,\")\");break;case '\"':case \"'\":b=Zc(a);break;default:if(isNaN(+b))if(!Ac("); + atom.Append("b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==D(a.b,\n1)){b=a.b.next();b=zc[b]||null;a.b.ne"); + atom.Append("xt();for(d=[];\")\"!=D(a.b);){Q(a,\"Missing function argument list.\");d.push(Vc(a"); + atom.Append("));if(\",\"!=D(a.b))break;a.b.next()}Q(a,\"Unclosed function argument list.\");Yc("); + atom.Append("a);b=new xc(b,d)}else{b=null;break a}else b=new Cc(+a.b.next())}\"[\"==D(a.b)&&(d="); + atom.Append("new Kc(cd(a)),b=new vc(b,d))}if(b)if(Hc(D(a.b)))d=b;else return b;else b=bd(a,\"/"); + atom.Append("\"),d=new Gc,c.push(b)}for(;Hc(D(a.b));)b=a.b.next(),Q(a,\"Missing next location s"); + atom.Append("tep.\"),b=bd(a,b),c.push(b);return new Dc(d,c)}\nfunction bd(a,b){var c,d,f;if(\"/"); + atom.Append("\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\"==D(a.b)"); + atom.Append(")return d=new Lc(Rc,new G(\"node\")),a.b.next(),d;if(\"..\"==D(a.b))return d=new L"); + atom.Append("c(Qc,new G(\"node\")),a.b.next(),d;var e;if(\"@\"==D(a.b))e=Ec,a.b.next(),Q(a,\"Mi"); + atom.Append("ssing attribute name\");else if(\"::\"==D(a.b,1)){if(!/(?![0-9])[\\w]/.test(D(a.b)"); + atom.Append(".charAt(0)))throw Error(\"Bad token: \"+a.b.next());c=a.b.next();e=Pc[c]||null;if("); + atom.Append("!e)throw Error(\"No axis with name: \"+c);a.b.next();Q(a,\"Missing node name\")}el"); + atom.Append("se e=\nMc;c=D(a.b);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==D(a.b,1)){if(!A"); + atom.Append("c(c))throw Error(\"Invalid node type: \"+c);c=a.b.next();if(!Ac(c))throw Error(\"I"); + atom.Append("nvalid type name: \"+c);Xc(a,\"(\");Q(a,\"Bad nodetype\");f=D(a.b).charAt(0);var g"); + atom.Append("=null;if('\"'==f||\"'\"==f)g=Zc(a);Q(a,\"Bad nodetype\");Yc(a);c=new G(c,g)}else c"); + atom.Append("=$c(a);else if(\"*\"==c)c=$c(a);else throw Error(\"Bad token: \"+a.b.next());f=new"); + atom.Append(" Kc(cd(a),e.J);return d||new Lc(e,c,f,\"//\"==b)}\nfunction cd(a){for(var b=[];\"["); + atom.Append("\"==D(a.b);){a.b.next();Q(a,\"Missing predicate expression.\");var c=Vc(a);b.push("); + atom.Append("c);Q(a,\"Unclosed predicate expression.\");Xc(a,\"]\")}return b}function Wc(a){if("); + atom.Append("\"-\"==D(a.b))return a.b.next(),new Sc(Wc(a));var b=ad(a);if(\"|\"!=D(a.b))a=b;els"); + atom.Append("e{for(b=[b];\"|\"==a.b.next();)Q(a,\"Missing next union location path.\"),b.push(a"); + atom.Append("d(a));a.b.back();a=new Tc(b)}return a};function dd(a){switch(a.nodeType){case 1:re"); + atom.Append("turn la(ed,a);case 9:return dd(a.documentElement);case 2:return a.ownerElement?dd("); + atom.Append("a.ownerElement):fd;case 11:case 10:case 6:case 12:return fd;default:return a.paren"); + atom.Append("tNode?dd(a.parentNode):fd}}function fd(){return null}function ed(a,b){if(a.prefix="); + atom.Append("=b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNod"); + atom.Append("e(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode."); + atom.Append("nodeType?ed(a.parentNode,b):null};function gd(a,b){if(!a.length)throw Error(\"Empt"); + atom.Append("y XPath expression.\");var c=Wb(a);if(c.empty())throw Error(\"Invalid XPath expres"); + atom.Append("sion.\");b?ea(b)||(b=ka(b.lookupNamespaceURI,b)):b=function(){return null};var d=V"); + atom.Append("c(new Uc(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evaluate=f"); + atom.Append("unction(a,b){var c=d.evaluate(new Qb(a));return new R(c,b)}}\nfunction R(a,b){if(0"); + atom.Append("==b)if(a instanceof F)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typ"); + atom.Append("eof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluati"); + atom.Append("on result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof F))throw Error(\"value could not"); + atom.Append(" be converted to the specified type\");this.resultType=b;var c;switch(b){case 2:th"); + atom.Append("is.stringValue=a instanceof F?kc(a):\"\"+a;break;case 1:this.numberValue=a instanc"); + atom.Append("eof F?+kc(a):+a;break;case 3:this.booleanValue=a instanceof F?0="); + atom.Append("c.length?null:c[e++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"sn"); + atom.Append("apshotItem called with wrong result type\");return a>=\nc.length||0>a?null:c[a]}}R"); + atom.Append(".ANY_TYPE=0;R.NUMBER_TYPE=1;R.STRING_TYPE=2;R.BOOLEAN_TYPE=3;R.UNORDERED_NODE_ITER"); + atom.Append("ATOR_TYPE=4;R.ORDERED_NODE_ITERATOR_TYPE=5;R.UNORDERED_NODE_SNAPSHOT_TYPE=6;R.ORDE"); + atom.Append("RED_NODE_SNAPSHOT_TYPE=7;R.ANY_UNORDERED_NODE_TYPE=8;R.FIRST_ORDERED_NODE_TYPE=9;f"); + atom.Append("unction hd(a){this.lookupNamespaceURI=dd(a)}\nfunction id(a){a=a||l;var b=a.docume"); + atom.Append("nt;b.evaluate||(a.XPathResult=R,b.evaluate=function(a,b,f,e){return(new gd(a,f)).e"); + atom.Append("valuate(b,e)},b.createExpression=function(a,b){return new gd(a,b)},b.createNSResol"); + atom.Append("ver=function(a){return new hd(a)})};var S={};S.Da=function(){var a={Qa:\"http://ww"); + atom.Append("w.w3.org/2000/svg\"};return function(b){return a[b]||null}}();S.t=function(a,b,c){"); + atom.Append("var d=C(a);(x||Nb)&&id(ob(d));try{var f=d.createNSResolver?d.createNSResolver(d.do"); + atom.Append("cumentElement):S.Da;return x&&!fb(7)?d.evaluate.call(d,b,a,f,c,null):d.evaluate(b,"); + atom.Append("a,f,c,null)}catch(e){if(!z||\"NS_ERROR_ILLEGAL_VALUE\"!=e.name)throw new t(32,\"Un"); + atom.Append("able to locate an element with the xpath expression \"+b+\" because of the followi"); + atom.Append("ng error:\\n\"+e);}};\nS.$=function(a,b){if(!a||1!=a.nodeType)throw new t(32,'The "); + atom.Append("result of the xpath expression \"'+b+'\" is: '+a+\". It should be an element.\");}"); + atom.Append(";S.B=function(a,b){var c=function(){var c=S.t(b,a,9);return c?(c=c.singleNodeValue"); + atom.Append(",w?c:c||null):b.selectSingleNode?(c=C(b),c.setProperty&&c.setProperty(\"SelectionL"); + atom.Append("anguage\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||S.$(c,a);return c};"); + atom.Append("\nS.s=function(a,b){var c=function(){var c=S.t(b,a,7);if(c){var f=c.snapshotLength"); + atom.Append(";w&&!m(f)&&S.$(null,a);for(var e=[],g=0;g=this.left&&a.right<"); + atom.Append("=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.righ"); + atom.Append("t&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){fa(a)?(this.to"); + atom.Append("p-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a"); + atom.Append(",this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function(){this.to"); + atom.Append("p=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this."); + atom.Append("bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){this.top=Ma"); + atom.Append("th.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.b"); + atom.Append("ottom);this.left=Math.floor(this.left);return this};\nh.round=function(){this.top="); + atom.Append("Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this"); + atom.Append(".bottom);this.left=Math.round(this.left);return this};h.translate=function(a,b){a "); + atom.Append("instanceof jb?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(thi"); + atom.Append("s.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return this};h.scale="); + atom.Append("function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*="); + atom.Append("c;return this};function U(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height"); + atom.Append("=d}h=U.prototype;h.clone=function(){return new U(this.left,this.top,this.width,thi"); + atom.Append("s.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\" - \"+thi"); + atom.Append("s.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a instanceof U?"); + atom.Append("this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top"); + atom.Append("+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this."); + atom.Append("top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(this.left)"); + atom.Append(";this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ce"); + atom.Append("il(this.height);return this};h.floor=function(){this.left=Math.floor(this.left);th"); + atom.Append("is.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.flo"); + atom.Append("or(this.height);return this};h.round=function(){this.left=Math.round(this.left);th"); + atom.Append("is.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.rou"); + atom.Append("nd(this.height);return this};\nh.translate=function(a,b){a instanceof jb?(this.lef"); + atom.Append("t+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this};h.scale=fun"); + atom.Append("ction(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;r"); + atom.Append("eturn this};function wd(a,b){var c=C(a);return c.defaultView&&c.defaultView.getCom"); + atom.Append("putedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)"); + atom.Append("||\"\":\"\"}var xd={thin:2,medium:4,thick:6};\nfunction yd(a,b){if(\"none\"==(a.cu"); + atom.Append("rrentStyle?a.currentStyle[b+\"Style\"]:null))return 0;var c=a.currentStyle?a.curre"); + atom.Append("ntStyle[b+\"Width\"]:null,d;if(c in xd)d=xd[c];else if(/^\\d+px?$/.test(c))d=parse"); + atom.Append("Int(c,10);else{d=a.style.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.curr"); + atom.Append("entStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.lef"); + atom.Append("t=f;d=c}return d};function zd(a){var b;a:{a=C(a);try{b=a&&a.activeElement;break a}"); + atom.Append("catch(c){}b=null}return x&&b&&\"undefined\"===typeof b.nodeType?null:b}function V("); + atom.Append("a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Ad(a){var"); + atom.Append(" b;if(b=Bd(a,!0)&&Cd(a))b=!(x||w||z&&!T(\"1.9.2\")?0:\"none\"==W(a,\"pointer-event"); + atom.Append("s\"));return b}function Dd(a,b){var c;if(c=td&&\"value\"==b&&V(a,\"OPTION\"))c=nul"); + atom.Append("l===Ed(a,\"value\");c?(c=[],yb(a,c,!1),c=c.join(\"\")):c=a[b];return c}var Fd=/[;]"); + atom.Append("+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*"); + atom.Append("\\))*[^()]*$)/;\nfunction Gd(a){var b=[];q(a.split(Fd),function(a){var d=a.indexOf"); + atom.Append("(\":\");0=c&&0<=e&&255>=e&&"); + atom.Append("0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if(!c)b:{if(g=d.match(Ka))if"); + atom.Append("(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&25"); + atom.Append("5>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();\ne=Fa[c.toLowerCase()"); + atom.Append("];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e=e.replace(Ha,\"#$1$1$2$2$"); + atom.Append("3$3\")),!Ia.test(e))){c=null;break b}c=[parseInt(e.substr(1,2),16),parseInt(e.subs"); + atom.Append("tr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}ret"); + atom.Append("urn d}function Md(a,b){var c=a.currentStyle||a.style,d=c[b];!m(d)&&ea(c.getPropert"); + atom.Append("yValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d?m(d)?d:null:(c=Kd(a))?Md(c"); + atom.Append(",b):null}\nfunction Bd(a,b){function c(a){if(\"none\"==W(a,\"display\"))return!1;a"); + atom.Append("=Kd(a);return!a||c(a)}function d(a){var b=Nd(a);return 0=B.left+B.width;B=e.top>=B.top+B.height"); + atom.Append(";if(M&&\"hidden\"==s.x||B&&\"hidden\"==s.y)return Pd;if(M&&\"visible\"!=s.x||B&&\""); + atom.Append("visible\"!=s.y){if(u&&(s=f(y),e.left>=k.scrollWidth-s.x||e.right>=k.scrollHeight-s"); + atom.Append(".y))return Pd;e=Od(y);return e==Pd?Pd:\"scroll\"}}}return\"none\"}\nvar Td=/matrix"); + atom.Append("\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)("); + atom.Append("?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction Nd(a){function b(a){var c=ob(C(a)).ge"); + atom.Append("tComputedStyle(a,null).MozTransform.match(Td);if(c){var d=parseFloat(c[1]),f=parse"); + atom.Append("Float(c[2]),u=parseFloat(c[3]),y=parseFloat(c[4]),s=parseFloat(c[5]),c=parseFloat("); + atom.Append("c[6]),B=e.left+e.width,M=e.top+e.height,ba=e.left*d,d=B*d,bb=e.left*f,f=B*f,cb=e.t"); + atom.Append("op*u,u=M*u,db=e.top*y,B=M*y,M=ba+cb+s,y=bb+db+c,cb=d+cb+s,db=f+db+c,ba=ba+u+s,bb=b"); + atom.Append("b+B+c,s=d+u+s,c=f+B+c;e.left=Math.min(M,cb,ba,s);e.top=Math.min(y,db,bb,c);s=Math."); + atom.Append("max(M,cb,ba,s);c=Math.max(y,db,bb,c);e.width=\ns-e.left;e.height=c-e.top}(a=Kd(a))"); + atom.Append("&&b(a)}var c=Qd(a);if(c)return c.rect;if(V(a,\"HTML\"))return c=C(a),a=nb(ob(c)||w"); + atom.Append("indow),new U(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catch(f){"); + atom.Append("return new U(0,0,0,0)}var e=new U(d.left,d.top,d.right-d.left,d.bottom-d.top);x&&a"); + atom.Append(".ownerDocument.body&&(c=C(a),e.left-=c.documentElement.clientLeft+c.body.clientLef"); + atom.Append("t,e.top-=c.documentElement.clientTop+c.body.clientTop);w&&(0==e.width&&02*this.G&&Me(this),!0):!1};function Me(a){if(a.G!=a.i.length){for(var "); + atom.Append("b=0,c=0;b\");Y(191,\"/\",\"?\");Y(192,\"`\",\"~\");Y(219,\"[\",\"{\");Y("); + atom.Append("220,\"\\\\\",\"|\");Y(221,\"]\",\"}\");var Uf=Y({d:59,e:186,opera:59},\";\",\":\")"); + atom.Append(";Y(222,\"'\",'\"');var Vf=[$e,Ze,of,Z],Wf=new Le;Wf.set(1,Z);Wf.set(2,Ze);Wf.set(4"); + atom.Append(",$e);Wf.set(8,of);var Xf=function(a){var b=new Le;q(Ne(a),function(c){b.set(a.get("); + atom.Append("c).code,c)});return b}(Wf);function Te(a,b,c){if(Ba(Vf,b)){var d=Xf.get(b.code),f="); + atom.Append("a.Ea;f.V=c?f.V|d:f.V&~d}c?a.ia.add(b):a.ia.remove(b)}var Yf=x||w?\"\\r\\n\":\"\\n"); + atom.Append("\";Se.prototype.h=function(a){return this.ia.contains(a)};\nfunction Zf(a,b){if(Ba"); + atom.Append("(Vf,b)&&a.h(b))throw new t(13,\"Cannot press a modifier key that is already presse"); + atom.Append("d.\");var c=null!==b.code&&$f(a,ze,b);if((c||z)&&(!ag(b)||$f(a,se,b,!c))&&c&&(bg(a"); + atom.Append(",b),a.ba))if(b.C){if(!cg){var c=dg(a,b),d=He(a.c(),!0)[0]+1;eg(a.c())?(Ke(a.c(),c)"); + atom.Append(",De(a.c(),d)):a.c().value+=c;A&&a.D(ye);ud||a.D(xe);a.p=d}}else switch(b){case Ye:"); + atom.Append("cg||(A&&a.D(ye),V(a.c(),\"TEXTAREA\")&&(c=He(a.c(),!0)[0]+Yf.length,eg(a.c())?(Ke("); + atom.Append("a.c(),Yf),De(a.c(),c)):a.c().value+=Yf,x||a.D(xe),a.p=c));break;case We:case nf:cg"); + atom.Append("||\n(fg(a.c()),c=He(a.c(),!1),c[0]==c[1]&&(b==We?(De(a.c(),c[1]-1),Ie(a.c(),c[1]))"); + atom.Append(":Ie(a.c(),c[1]+1)),c=He(a.c(),!1),c=!(c[0]==a.c().value.length||0==c[1]),Ke(a.c(),"); + atom.Append("\"\"),(!x&&c||z&&b==We)&&a.D(xe),c=He(a.c(),!1),a.p=c[1]);break;case hf:case kf:fg"); + atom.Append("(a.c());var c=a.c(),f=He(c,!0)[0],e=He(c,!1)[1],g=d=0;b==hf?a.h(Z)?a.p==f?(d=Math."); + atom.Append("max(f-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1,0):f:a.h(Z)?a.p==e?(d=f,f=g="); + atom.Append("Math.min(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?Math.min(e+1,c.value.length):"); + atom.Append("e;a.h(Z)?(De(c,\nd),Ie(c,g)):Je(c,f);a.p=f;break;case gf:case ff:fg(a.c()),c=a.c()"); + atom.Append(",d=He(c,!0)[0],g=He(c,!1)[1],b==gf?(a.h(Z)?(De(c,0),Ie(c,a.p==d?g:d)):Je(c,0),a.p="); + atom.Append("0):(a.h(Z)?(a.p==d&&De(c,g),Ie(c,c.value.length)):Je(c,c.value.length),a.p=c.value"); + atom.Append(".length)}Te(a,b,!0)}function ag(a){if(a.C||a==Ye)return!0;if(A)return!1;if(x)retur"); + atom.Append("n a==bf;switch(a){case Z:case Ze:case $e:return!1;case of:case pf:case qf:return z"); + atom.Append(";default:return!0}}\nfunction bg(a,b){if(b==Ye&&!z&&V(a.c(),\"INPUT\")){var c=zb(a"); + atom.Append(".c(),le,!0);if(c){var d=c.getElementsByTagName(\"input\");(ya(d,function(a){a:{if("); + atom.Append("V(a,\"INPUT\")){var b=a.type.toLowerCase();if(\"submit\"==b||\"image\"==b){a=!0;br"); + atom.Append("eak a}}if(V(a,\"BUTTON\")&&(b=a.type.toLowerCase(),\"submit\"==b)){a=!0;break a}a="); + atom.Append("!1}return a})||1==d.length||A&&!T(534))&&me(c)}}}function gg(a,b){if(!a.h(b))throw"); + atom.Append(" new t(13,\"Cannot release a key that is not pressed. (\"+b.code+\")\");null===b.c"); + atom.Append("ode||$f(a,Ae,b);Te(a,b,!1)}\nfunction dg(a,b){if(!b.C)throw new t(13,\"not a chara"); + atom.Append("cter key\");return a.h(Z)?b.Ma:b.C}var cg=z&&!T(12);function fg(a){try{a.selection"); + atom.Append("Start}catch(b){if(-1!=b.message.indexOf(\"does not support selection.\"))throw Err"); + atom.Append("or(b.message+\" (For more information, see https://code.google.com/p/chromium/issu"); + atom.Append("es/detail?id=330456)\");throw b;}}function eg(a){try{fg(a)}catch(b){return!1}retur"); + atom.Append("n!0}\nfunction $f(a,b,c,d){if(null===c.code)throw new t(13,\"Key must have a keyco"); + atom.Append("de to be fired.\");c={altKey:a.h($e),ctrlKey:a.h(Ze),metaKey:a.h(of),shiftKey:a.h("); + atom.Append("Z),keyCode:c.code,charCode:c.C&&b==se?dg(a,c).charCodeAt(0):0,preventDefault:!!d};"); + atom.Append("return a.ca(b,c)}\nfunction hg(a,b){ie(a,b);a.ba=Ld(b);var c;c=a.ya||a.H;var d=zd("); + atom.Append("c);if(c==d)c=!1;else{if(d&&(ea(d.blur)||x&&fa(d.blur))){if(!V(d,\"BODY\"))try{d.bl"); + atom.Append("ur()}catch(f){if(!x||\"Unspecified error.\"!=f.message)throw f;}x&&!T(8)&&ob(C(c))"); + atom.Append(".focus()}ea(c.focus)||x&&fa(c.focus)?(w&&T(11)&&!Bd(c)?ne(c,we):c.focus(),c=!0):c="); + atom.Append("!1}a.ba&&c&&(Je(b,b.value.length),a.p=b.value.length)};function ig(a,b,c,d){functi"); + atom.Append("on f(a){n(a)?q(a.split(\"\"),function(a){if(1!=a.length)throw new t(13,\"Argument "); + atom.Append("not a single character: \"+a);var b=Ue[a];b||(b=a.toUpperCase(),b=Y(b.charCodeAt(0"); + atom.Append("),a.toLowerCase(),b),b={key:b,shift:a!=b.C});a=b;b=e.h(Z);a.shift&&!b&&Zf(e,Z);Zf("); + atom.Append("e,a.key);gg(e,a.key);a.shift&&!b&&gg(e,Z)}):Ba(Vf,a)?e.h(a)?gg(e,a):Zf(e,a):(Zf(e,"); + atom.Append("a),gg(e,a))}if(a!=zd(a)){if(!Ad(a))throw new t(12,\"Element is not currently inter"); + atom.Append("actable and may not be manipulated\");jg(a)}var e=c||new Se;hg(e,a);if((!Pb||\nWa)"); + atom.Append("&&A&&\"date\"==a.type){c=\"array\"==aa(b)?b=b.join(\"\"):b;var g=/\\d{4}-\\d{2}-"); + atom.Append("\\d{2}/;if(c.match(g)){Wa&&Pb&&(ne(a,Ce),ne(a,Be));ne(a,we);a.value=c.match(g)[0];"); + atom.Append("ne(a,ve);ne(a,ue);return}}\"array\"==aa(b)?q(b,f):f(b);d||q(Vf,function(a){e.h(a)&"); + atom.Append("&gg(e,a)})}\nfunction jg(a){if(\"scroll\"==Od(a,void 0)){if(a.scrollIntoView&&(a.s"); + atom.Append("crollIntoView(),\"none\"==Od(a,void 0)))return;for(var b=Sd(a,void 0),c=Kd(a);c;c="); + atom.Append("Kd(c)){var d=c,f=Nd(d),e;var g=d;if(!x||x&&9<=hb)k=wd(g,\"borderLeftWidth\"),e=wd("); + atom.Append("g,\"borderRightWidth\"),r=wd(g,\"borderTopWidth\"),g=wd(g,\"borderBottomWidth\"),e"); + atom.Append("=new vd(parseFloat(r),parseFloat(e),parseFloat(g),parseFloat(k));else{var k=yd(g,"); + atom.Append("\"borderLeft\");e=yd(g,\"borderRight\");var r=yd(g,\"borderTop\"),g=yd(g,\"borderB"); + atom.Append("ottom\");e=new vd(r,e,g,k)}k=b.left-f.left-\ne.left;f=b.top-f.top-e.top;e=d.client"); + atom.Append("Height+b.top-b.bottom;d.scrollLeft+=Math.min(k,Math.max(k-(d.clientWidth+b.left-b."); + atom.Append("right),0));d.scrollTop+=Math.min(f,Math.max(f-e,0))}Od(a,void 0)}};function $(a,b,"); + atom.Append("c,d){function f(){return{ua:e,keys:[]}}var e=!!d,g=[],k=f();g.push(k);q(b,function"); + atom.Append("(a){q(a.split(\"\"),function(a){if(\"\\ue000\"<=a&&\"\\ue03d\">=a){var b=$.a[a];if"); + atom.Append("(null===b)g.push(k=f()),e&&(k.ua=!1,g.push(k=f()));else if(m(b))k.keys.push(b);els"); + atom.Append("e throw Error(\"Unsupported WebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}"); + atom.Append("else switch(a){case \"\\n\":k.keys.push(Ye);break;case \"\\t\":k.keys.push(Xe);bre"); + atom.Append("ak;case \"\\b\":k.keys.push(We);break;default:k.keys.push(a)}})});q(g,function(b){"); + atom.Append("ig(a,b.keys,c,b.ua)})}\n$.a={};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=We;$.a[\"\\u"); + atom.Append("e004\"]=Xe;$.a[\"\\ue006\"]=Ye;$.a[\"\\ue007\"]=Ye;$.a[\"\\ue008\"]=Z;$.a[\"\\ue00"); + atom.Append("9\"]=Ze;$.a[\"\\ue00a\"]=$e;$.a[\"\\ue00b\"]=af;$.a[\"\\ue00c\"]=bf;$.a[\"\\ue00d"); + atom.Append("\"]=cf;$.a[\"\\ue00e\"]=df;$.a[\"\\ue00f\"]=ef;$.a[\"\\ue010\"]=ff;$.a[\"\\ue011\""); + atom.Append("]=gf;$.a[\"\\ue012\"]=hf;$.a[\"\\ue013\"]=jf;$.a[\"\\ue014\"]=kf;$.a[\"\\ue015\"]="); + atom.Append("lf;$.a[\"\\ue016\"]=mf;$.a[\"\\ue017\"]=nf;$.a[\"\\ue018\"]=Uf;$.a[\"\\ue019\"]=Sf"); + atom.Append(";$.a[\"\\ue01a\"]=rf;$.a[\"\\ue01b\"]=sf;$.a[\"\\ue01c\"]=tf;$.a[\"\\ue01d\"]=uf;$"); + atom.Append(".a[\"\\ue01e\"]=vf;$.a[\"\\ue01f\"]=wf;\n$.a[\"\\ue020\"]=xf;$.a[\"\\ue021\"]=yf;$"); + atom.Append(".a[\"\\ue022\"]=zf;$.a[\"\\ue023\"]=Af;$.a[\"\\ue024\"]=Bf;$.a[\"\\ue025\"]=Cf;$.a"); + atom.Append("[\"\\ue027\"]=Df;$.a[\"\\ue028\"]=Ef;$.a[\"\\ue029\"]=Ff;$.a[\"\\ue026\"]=Tf;$.a["); + atom.Append("\"\\ue031\"]=Gf;$.a[\"\\ue032\"]=Hf;$.a[\"\\ue033\"]=If;$.a[\"\\ue034\"]=Jf;$.a[\""); + atom.Append("\\ue035\"]=Kf;$.a[\"\\ue036\"]=Lf;$.a[\"\\ue037\"]=Mf;$.a[\"\\ue038\"]=Nf;$.a[\""); + atom.Append("\\ue039\"]=Of;$.a[\"\\ue03a\"]=Pf;$.a[\"\\ue03b\"]=Qf;$.a[\"\\ue03c\"]=Rf;$.a[\""); + atom.Append("\\ue03d\"]=of;function kg(){this.W=void 0}\nfunction lg(a,b,c){switch(typeof b){ca"); + atom.Append("se \"string\":mg(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null"); + atom.Append("\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");bre"); + atom.Append("ak;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==aa(b)){var d=b"); + atom.Append(".length;c.push(\"[\");for(var f=\"\",e=0;eb?f+=\"000"); + atom.Append("\":256>b?f+=\"00\":4096>b&&(f+=\"0\");return ng[a]=f+b.toString(16)}),'\"')};A||w|"); + atom.Append("|z&&T(3.5)||x&&T(8);function pg(a){switch(aa(a)){case \"string\":case \"number\":c"); + atom.Append("ase \"boolean\":return a;case \"function\":return a.toString();case \"array\":retu"); + atom.Append("rn wa(a,pg);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){v"); + atom.Append("ar b={};b.ELEMENT=qg(a);return b}if(\"document\"in a)return b={},b.WINDOW=qg(a),b;"); + atom.Append("if(ca(a))return wa(a,pg);a=Qa(a,function(a,b){return da(b)||n(b)});return Ra(a,pg)"); + atom.Append(";default:return null}}\nfunction rg(a,b){return\"array\"==aa(a)?wa(a,function(a){r"); + atom.Append("eturn rg(a,b)}):fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?sg(a.ELEMENT,b):\"W"); + atom.Append("INDOW\"in a?sg(a.WINDOW,b):Ra(a,function(a){return rg(a,b)}):a}function tg(a){a=a|"); + atom.Append("|document;var b=a.$wdc_;b||(b=a.$wdc_={},b.ga=ma());b.ga||(b.ga=ma());return b}fun"); + atom.Append("ction qg(a){var b=tg(a.ownerDocument),c=Ta(b,function(b){return b==a});c||(c=\":wd"); + atom.Append("c:\"+b.ga++,b[c]=a);return c}\nfunction sg(a,b){a=decodeURIComponent(a);var c=b||d"); + atom.Append("ocument,d=tg(c);if(!(a in d))throw new t(10,\"Element does not exist in cache\");v"); + atom.Append("ar f=d[a];if(\"setInterval\"in f){if(f.closed)throw delete d[a],new t(23,\"Window "); + atom.Append("has been closed.\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e."); + atom.Append("parentNode}delete d[a];throw new t(10,\"Element is no longer attached to the DOM\""); + atom.Append(");};function ug(a,b,c){a=[a,b];b=$;var d;try{var f=c?sg(c.WINDOW):window,e=rg(a,f."); + atom.Append("document),g=b.apply(null,e);d={status:0,value:pg(g)}}catch(k){d={status:\"code\"in"); + atom.Append(" k?k.code:13,value:{message:k.message}}}c=[];lg(new kg,d,c);return c.join(\"\")}va"); + atom.Append("r vg=[\"_\"],wg=l;vg[0]in wg||!wg.execScript||wg.execScript(\"var \"+vg[0]);for(va"); + atom.Append("r xg;vg.length&&(xg=vg.shift());)!vg.length&&m(ug)?wg[xg]=ug:wg=wg[xg]?wg[xg]:wg[x"); + atom.Append("g]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=unde"); + atom.Append("fined?window.navigator:null,document:typeof window!=undefined?window.document:null"); + atom.Append("}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string ActiveElement + { + get + { + const string atomName = "ActiveElement"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g=this;\nfunction h(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=h(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function ba(a){var b=typeof a;return\""); + atom.Append("object\"==b&&null!=a||\"function\"==b}var k=Date.now||function(){return+new Date};"); + atom.Append("var ca=window;function l(a,b){this.code=a;this.state=m[a]||da;this.message=b||\"\""); + atom.Append(";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase()."); + atom.Append("replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+="); + atom.Append("\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||"); + atom.Append("\"\"}\n(function(){var a=Error;function b(){}b.prototype=a.prototype;l.f=a.prototy"); + atom.Append("pe;l.prototype=new b;l.prototype.constructor=l;l.e=function(b,d,e){return a.protot"); + atom.Append("ype[d].apply(b,Array.prototype.slice.call(arguments,2))}})();\nvar da=\"unknown er"); + atom.Append("ror\",m={15:\"element not selectable\",11:\"element not visible\",31:\"ime engine "); + atom.Append("activation failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"inv"); + atom.Append("alid element coordinates\",12:\"invalid element state\",32:\"invalid selector\",51"); + atom.Append(":\"invalid selector\",52:\"invalid selector\",17:\"javascript error\",405:\"unsupp"); + atom.Append("orted operation\",34:\"move target out of bounds\",27:\"no such alert\",7:\"no suc"); + atom.Append("h element\",8:\"no such frame\",23:\"no such window\",28:\"script timeout\",33:\"s"); + atom.Append("ession not created\",10:\"stale element reference\",\n0:\"success\",21:\"timeout\""); + atom.Append(",25:\"unable to set cookie\",26:\"unexpected alert open\"};m[13]=da;m[9]=\"unknown"); + atom.Append(" command\";l.prototype.toString=function(){return this.name+\": \"+this.message};f"); + atom.Append("unction n(a,b){for(var c=0,d=String(a).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")."); + atom.Append("split(\".\"),e=String(b).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),f"); + atom.Append("=Math.max(d.length,e.length),s=0;0==c&&sb?1:0};function q(a,b){for(var c=a.length,d=Array(c"); + atom.Append("),e=\"string\"==typeof a?a.split(\"\"):a,f=0;fparseFloat(a))?String(b):a}(),la={};function A(a){return la[a]||(la"); + atom.Append("[a]=0<=n(z,a))}var ma=g.document,B=ma&&u?ka()||(\"CSS1Compat\"==ma.compatMode?pars"); + atom.Append("eInt(z,10):5):void 0;!v&&!u||u&&u&&9<=B||v&&A(\"1.9.1\");u&&A(\"9\");var C,D,E,F,H"); + atom.Append(",I,J;J=I=H=F=E=D=C=!1;var K=r;K&&(-1!=K.indexOf(\"Firefox\")?C=!0:-1!=K.indexOf(\""); + atom.Append("Camino\")?D=!0:-1!=K.indexOf(\"iPhone\")||-1!=K.indexOf(\"iPod\")?E=!0:-1!=K.index"); + atom.Append("Of(\"iPad\")?F=!0:-1!=K.indexOf(\"Chrome\")?I=!0:-1!=K.indexOf(\"Android\")?H=!0:-"); + atom.Append("1!=K.indexOf(\"Safari\")&&(J=!0));var na=C,oa=D,pa=E,qa=F,L=H,ra=I,sa=J;function M"); + atom.Append("(a){return(a=a.exec(r))?a[1]:\"\"}var ta=function(){if(na)return M(/Firefox\\/([0-"); + atom.Append("9.]+)/);if(u||t)return z;if(ra)return M(/Chrome\\/([0-9.]+)/);if(sa)return M(/Vers"); + atom.Append("ion\\/([0-9.]+)/);if(pa||qa){var a;if(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(r"); + atom.Append("))return a[1]+\".\"+a[2]}else{if(L)return(a=M(/Android\\s+([0-9.]+)/))?a:M(/Versio"); + atom.Append("n\\/([0-9.]+)/);if(oa)return M(/Camino\\/([0-9.]+)/)}return\"\"}();var N,ua;functi"); + atom.Append("on O(a){P?ua(a):L?n(va,a):n(ta,a)}var P=function(){if(!v)return!1;var a=g.Componen"); + atom.Append("ts;if(!a)return!1;try{if(!a.classes)return!1}catch(b){return!1}var c=a.classes,a=a"); + atom.Append(".interfaces,d=c[\"@mozilla.org/xpcom/version-comparator;1\"].getService(a.nsIVersi"); + atom.Append("onComparator),c=c[\"@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo),e=c"); + atom.Append(".platformVersion,f=c.version;N=function(a){return 0<=d.compare(e,\"\"+a)};ua=funct"); + atom.Append("ion(a){d.compare(f,\"\"+a)};return!0}(),Q;\nif(L){var wa=/Android\\s+([0-9\\.]+)/."); + atom.Append("exec(r);Q=wa?wa[1]:\"0\"}else Q=\"0\";var va=Q;L&&O(2.3);L&&O(4);sa&&O(6);function"); + atom.Append(" xa(a){this.d=a}xa.prototype.toString=function(){return this.d};var ya={};function"); + atom.Append(" R(a){if(ya.hasOwnProperty(a))throw Error(\"Binary operator already created: \"+a)"); + atom.Append(";a=new xa(a);ya[a.toString()]=a}R(\"div\");R(\"mod\");R(\"*\");R(\"+\");R(\"-\");R"); + atom.Append("(\"<\");R(\">\");R(\"<=\");R(\">=\");R(\"=\");R(\"!=\");R(\"and\");R(\"or\");funct"); + atom.Append("ion Ba(a){this.b=a}Ba.prototype.toString=function(){return this.b};var Ca={};funct"); + atom.Append("ion S(a){if(Ca.hasOwnProperty(a))throw Error(\"Function already created: \"+a+\"."); + atom.Append("\");Ca[a]=new Ba(a)}S(\"boolean\");S(\"ceiling\");S(\"concat\");S(\"contains\");S("); + atom.Append("\"count\");S(\"false\");S(\"floor\");S(\"id\");S(\"lang\");S(\"last\");S(\"local-n"); + atom.Append("ame\");S(\"name\");S(\"namespace-uri\");S(\"normalize-space\");S(\"not\");S(\"numb"); + atom.Append("er\");S(\"position\");S(\"round\");S(\"starts-with\");S(\"string\");S(\"string-len"); + atom.Append("gth\");S(\"substring\");S(\"substring-after\");S(\"substring-before\");\nS(\"sum\""); + atom.Append(");S(\"translate\");S(\"true\");function Da(a){this.b=a}Da.prototype.toString=funct"); + atom.Append("ion(){return this.b};var Ea={};function T(a){if(Ea.hasOwnProperty(a))throw Error("); + atom.Append("\"Axis already created: \"+a);Ea[a]=new Da(a)}T(\"ancestor\");T(\"ancestor-or-self"); + atom.Append("\");T(\"attribute\");T(\"child\");T(\"descendant\");T(\"descendant-or-self\");T(\""); + atom.Append("following\");T(\"following-sibling\");T(\"namespace\");T(\"parent\");T(\"preceding"); + atom.Append("\");T(\"preceding-sibling\");T(\"self\");function Fa(){return document.activeEleme"); + atom.Append("nt||document.body};function Ga(){this.a=void 0}\nfunction U(a,b,c){switch(typeof b"); + atom.Append("){case \"string\":Ha(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\""); + atom.Append("null\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\")"); + atom.Append(";break;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==h(b)){var "); + atom.Append("d=b.length;c.push(\"[\");for(var e=\"\",f=0;fb?e+=\"000\":"); + atom.Append("256>b?e+=\"00\":4096>b&&(e+=\"0\");return V[a]=e+b.toString(16)}),'\"')};ja||t||v&"); + atom.Append("&(P?N(3.5):u?0<=n(B,3.5):A(3.5))||u&&(P?N(8):u?n(B,8):A(8));function W(a){switch(h"); + atom.Append("(a)){case \"string\":case \"number\":case \"boolean\":return a;case \"function\":r"); + atom.Append("eturn a.toString();case \"array\":return q(a,W);case \"object\":if(\"nodeType\"in "); + atom.Append("a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Ja(a);return b}if(\"document"); + atom.Append("\"in a)return b={},b.WINDOW=Ja(a),b;if(aa(a))return q(a,W);a=ga(a,function(a,b){re"); + atom.Append("turn\"number\"==typeof b||\"string\"==typeof b});return ha(a,W);default:return nul"); + atom.Append("l}}\nfunction X(a,b){return\"array\"==h(a)?q(a,function(a){return X(a,b)}):ba(a)?"); + atom.Append("\"function\"==typeof a?a:\"ELEMENT\"in a?Ka(a.ELEMENT,b):\"WINDOW\"in a?Ka(a.WINDO"); + atom.Append("W,b):ha(a,function(a){return X(a,b)}):a}function La(a){a=a||document;var b=a.$wdc_"); + atom.Append(";b||(b=a.$wdc_={},b.c=k());b.c||(b.c=k());return b}function Ja(a){var b=La(a.owner"); + atom.Append("Document),c=ia(b,function(b){return b==a});c||(c=\":wdc:\"+b.c++,b[c]=a);return c}"); + atom.Append("\nfunction Ka(a,b){a=decodeURIComponent(a);var c=b||document,d=La(c);if(!(a in d))"); + atom.Append("throw new l(10,\"Element does not exist in cache\");var e=d[a];if(\"setInterval\"i"); + atom.Append("n e){if(e.closed)throw delete d[a],new l(23,\"Window has been closed.\");return e}"); + atom.Append("for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];throw "); + atom.Append("new l(10,\"Element is no longer attached to the DOM\");};function Ma(){var a=Fa,b="); + atom.Append("[],c=window||ca,d;try{a:{var e=a;if(\"string\"==typeof e)try{a=new c.Function(e);b"); + atom.Append("reak a}catch(f){if(u&&c.execScript){c.execScript(\";\");a=new c.Function(e);break "); + atom.Append("a}throw f;}a=c==window?e:new c.Function(\"return (\"+e+\").apply(null,arguments);"); + atom.Append("\")}var s=X(b,c.document),G=a.apply(null,s);d={status:0,value:W(G)}}catch(w){d={st"); + atom.Append("atus:\"code\"in w?w.code:13,value:{message:w.message}}}a=[];U(new Ga,d,a);return a"); + atom.Append(".join(\"\")}var Y=[\"_\"],Z=g;Y[0]in Z||!Z.execScript||Z.execScript(\"var \"+Y[0])"); + atom.Append(";\nfor(var $;Y.length&&($=Y.shift());)Y.length||void 0===Ma?Z=Z[$]?Z[$]:Z[$]={}:Z["); + atom.Append("$]=Ma;; return this._.apply(null,arguments);}.apply({navigator:typeof window!=unde"); + atom.Append("fined?window.navigator:null,document:typeof window!=undefined?window.document:null"); + atom.Append("}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string GetFrameWindow + { + get + { + const string atomName = "GetFrameWindow"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g=this;\nfunction h(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=h(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function ba(a){var b=typeof a;return\""); + atom.Append("object\"==b&&null!=a||\"function\"==b}var k=Date.now||function(){return+new Date};"); + atom.Append("var ca=window;function l(a,b){this.code=a;this.state=m[a]||da;this.message=b||\"\""); + atom.Append(";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase()."); + atom.Append("replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+="); + atom.Append("\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||"); + atom.Append("\"\"}\n(function(){var a=Error;function b(){}b.prototype=a.prototype;l.f=a.prototy"); + atom.Append("pe;l.prototype=new b;l.prototype.constructor=l;l.e=function(b,d,e){return a.protot"); + atom.Append("ype[d].apply(b,Array.prototype.slice.call(arguments,2))}})();\nvar da=\"unknown er"); + atom.Append("ror\",m={15:\"element not selectable\",11:\"element not visible\",31:\"ime engine "); + atom.Append("activation failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"inv"); + atom.Append("alid element coordinates\",12:\"invalid element state\",32:\"invalid selector\",51"); + atom.Append(":\"invalid selector\",52:\"invalid selector\",17:\"javascript error\",405:\"unsupp"); + atom.Append("orted operation\",34:\"move target out of bounds\",27:\"no such alert\",7:\"no suc"); + atom.Append("h element\",8:\"no such frame\",23:\"no such window\",28:\"script timeout\",33:\"s"); + atom.Append("ession not created\",10:\"stale element reference\",\n0:\"success\",21:\"timeout\""); + atom.Append(",25:\"unable to set cookie\",26:\"unexpected alert open\"};m[13]=da;m[9]=\"unknown"); + atom.Append(" command\";l.prototype.toString=function(){return this.name+\": \"+this.message};f"); + atom.Append("unction n(a,b){for(var c=0,d=String(a).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")."); + atom.Append("split(\".\"),e=String(b).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),f"); + atom.Append("=Math.max(d.length,e.length),s=0;0==c&&sb?1:0};function q(a,b){for(var c=a.length,d=Array(c"); + atom.Append("),e=\"string\"==typeof a?a.split(\"\"):a,f=0;fparseFloat(a))?String(b):a}(),la={};function A(a){return la[a]||(la"); + atom.Append("[a]=0<=n(z,a))}var ma=g.document,B=ma&&u?ka()||(\"CSS1Compat\"==ma.compatMode?pars"); + atom.Append("eInt(z,10):5):void 0;!v&&!u||u&&u&&9<=B||v&&A(\"1.9.1\");u&&A(\"9\");var C,D,E,F,H"); + atom.Append(",I,J;J=I=H=F=E=D=C=!1;var K=r;K&&(-1!=K.indexOf(\"Firefox\")?C=!0:-1!=K.indexOf(\""); + atom.Append("Camino\")?D=!0:-1!=K.indexOf(\"iPhone\")||-1!=K.indexOf(\"iPod\")?E=!0:-1!=K.index"); + atom.Append("Of(\"iPad\")?F=!0:-1!=K.indexOf(\"Chrome\")?I=!0:-1!=K.indexOf(\"Android\")?H=!0:-"); + atom.Append("1!=K.indexOf(\"Safari\")&&(J=!0));var na=C,oa=D,pa=E,qa=F,L=H,ra=I,sa=J;function M"); + atom.Append("(a){return(a=a.exec(r))?a[1]:\"\"}var ta=function(){if(na)return M(/Firefox\\/([0-"); + atom.Append("9.]+)/);if(u||t)return z;if(ra)return M(/Chrome\\/([0-9.]+)/);if(sa)return M(/Vers"); + atom.Append("ion\\/([0-9.]+)/);if(pa||qa){var a;if(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(r"); + atom.Append("))return a[1]+\".\"+a[2]}else{if(L)return(a=M(/Android\\s+([0-9.]+)/))?a:M(/Versio"); + atom.Append("n\\/([0-9.]+)/);if(oa)return M(/Camino\\/([0-9.]+)/)}return\"\"}();var N,ua;functi"); + atom.Append("on O(a){P?ua(a):L?n(va,a):n(ta,a)}var P=function(){if(!v)return!1;var a=g.Componen"); + atom.Append("ts;if(!a)return!1;try{if(!a.classes)return!1}catch(b){return!1}var c=a.classes,a=a"); + atom.Append(".interfaces,d=c[\"@mozilla.org/xpcom/version-comparator;1\"].getService(a.nsIVersi"); + atom.Append("onComparator),c=c[\"@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo),e=c"); + atom.Append(".platformVersion,f=c.version;N=function(a){return 0<=d.compare(e,\"\"+a)};ua=funct"); + atom.Append("ion(a){d.compare(f,\"\"+a)};return!0}(),Q;\nif(L){var wa=/Android\\s+([0-9\\.]+)/."); + atom.Append("exec(r);Q=wa?wa[1]:\"0\"}else Q=\"0\";var va=Q;L&&O(2.3);L&&O(4);sa&&O(6);function"); + atom.Append(" xa(a){this.d=a}xa.prototype.toString=function(){return this.d};var ya={};function"); + atom.Append(" R(a){if(ya.hasOwnProperty(a))throw Error(\"Binary operator already created: \"+a)"); + atom.Append(";a=new xa(a);ya[a.toString()]=a}R(\"div\");R(\"mod\");R(\"*\");R(\"+\");R(\"-\");R"); + atom.Append("(\"<\");R(\">\");R(\"<=\");R(\">=\");R(\"=\");R(\"!=\");R(\"and\");R(\"or\");funct"); + atom.Append("ion za(a){this.b=a}za.prototype.toString=function(){return this.b};var Ca={};funct"); + atom.Append("ion S(a){if(Ca.hasOwnProperty(a))throw Error(\"Function already created: \"+a+\"."); + atom.Append("\");Ca[a]=new za(a)}S(\"boolean\");S(\"ceiling\");S(\"concat\");S(\"contains\");S("); + atom.Append("\"count\");S(\"false\");S(\"floor\");S(\"id\");S(\"lang\");S(\"last\");S(\"local-n"); + atom.Append("ame\");S(\"name\");S(\"namespace-uri\");S(\"normalize-space\");S(\"not\");S(\"numb"); + atom.Append("er\");S(\"position\");S(\"round\");S(\"starts-with\");S(\"string\");S(\"string-len"); + atom.Append("gth\");S(\"substring\");S(\"substring-after\");S(\"substring-before\");\nS(\"sum\""); + atom.Append(");S(\"translate\");S(\"true\");function Da(a){this.b=a}Da.prototype.toString=funct"); + atom.Append("ion(){return this.b};var Ea={};function T(a){if(Ea.hasOwnProperty(a))throw Error("); + atom.Append("\"Axis already created: \"+a);Ea[a]=new Da(a)}T(\"ancestor\");T(\"ancestor-or-self"); + atom.Append("\");T(\"attribute\");T(\"child\");T(\"descendant\");T(\"descendant-or-self\");T(\""); + atom.Append("following\");T(\"following-sibling\");T(\"namespace\");T(\"parent\");T(\"preceding"); + atom.Append("\");T(\"preceding-sibling\");T(\"self\");function Fa(a,b){return!!a&&1==a.nodeType"); + atom.Append("&&(!b||a.tagName.toUpperCase()==b)};function Ga(a){if(Fa(a,\"FRAME\")||Fa(a,\"IFRA"); + atom.Append("ME\")){var b;(b=a.contentWindow)||(b=(a=a.contentDocument||a.contentWindow.documen"); + atom.Append("t)?a.parentWindow||a.defaultView:window);return b}throw new l(8,\"The given elemen"); + atom.Append("t isn't a frame or an iframe.\");};function Ha(){this.a=void 0}\nfunction U(a,b,c)"); + atom.Append("{switch(typeof b){case \"string\":Ia(b,c);break;case \"number\":c.push(isFinite(b)"); + atom.Append("&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b);break;case \"undefined\":"); + atom.Append("c.push(\"null\");break;case \"object\":if(null==b){c.push(\"null\");break}if(\"arr"); + atom.Append("ay\"==h(b)){var d=b.length;c.push(\"[\");for(var e=\"\",f=0;f"); + atom.Append("b?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return V[a]=e+b.toString(16)}),'\""); + atom.Append("')};ja||t||v&&(P?N(3.5):u?0<=n(B,3.5):A(3.5))||u&&(P?N(8):u?n(B,8):A(8));function "); + atom.Append("W(a){switch(h(a)){case \"string\":case \"number\":case \"boolean\":return a;case "); + atom.Append("\"function\":return a.toString();case \"array\":return q(a,W);case \"object\":if("); + atom.Append("\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Ka(a);return "); + atom.Append("b}if(\"document\"in a)return b={},b.WINDOW=Ka(a),b;if(aa(a))return q(a,W);a=ga(a,f"); + atom.Append("unction(a,b){return\"number\"==typeof b||\"string\"==typeof b});return ha(a,W);def"); + atom.Append("ault:return null}}\nfunction X(a,b){return\"array\"==h(a)?q(a,function(a){return X"); + atom.Append("(a,b)}):ba(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?La(a.ELEMENT,b):\"WINDOW\"i"); + atom.Append("n a?La(a.WINDOW,b):ha(a,function(a){return X(a,b)}):a}function Ma(a){a=a||document"); + atom.Append(";var b=a.$wdc_;b||(b=a.$wdc_={},b.c=k());b.c||(b.c=k());return b}function Ka(a){va"); + atom.Append("r b=Ma(a.ownerDocument),c=ia(b,function(b){return b==a});c||(c=\":wdc:\"+b.c++,b[c"); + atom.Append("]=a);return c}\nfunction La(a,b){a=decodeURIComponent(a);var c=b||document,d=Ma(c)"); + atom.Append(";if(!(a in d))throw new l(10,\"Element does not exist in cache\");var e=d[a];if(\""); + atom.Append("setInterval\"in e){if(e.closed)throw delete d[a],new l(23,\"Window has been closed"); + atom.Append(".\");return e}for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}dele"); + atom.Append("te d[a];throw new l(10,\"Element is no longer attached to the DOM\");};function Na"); + atom.Append("(a){var b=Ga;a=[a];var c=window||ca,d;try{a:{var e=b;if(\"string\"==typeof e)try{b"); + atom.Append("=new c.Function(e);break a}catch(f){if(u&&c.execScript){c.execScript(\";\");b=new "); + atom.Append("c.Function(e);break a}throw f;}b=c==window?e:new c.Function(\"return (\"+e+\").app"); + atom.Append("ly(null,arguments);\")}var s=X(a,c.document),G=b.apply(null,s);d={status:0,value:W"); + atom.Append("(G)}}catch(w){d={status:\"code\"in w?w.code:13,value:{message:w.message}}}b=[];U(n"); + atom.Append("ew Ha,d,b);return b.join(\"\")}var Y=[\"_\"],Z=g;\nY[0]in Z||!Z.execScript||Z.exec"); + atom.Append("Script(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0===Na?Z=Z"); + atom.Append("[$]?Z[$]:Z[$]={}:Z[$]=Na;; return this._.apply(null,arguments);}.apply({navigator:"); + atom.Append("typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?w"); + atom.Append("indow.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string FrameByIdOrName + { + get + { + const string atomName = "FrameByIdOrName"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,k=this;function n(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function b"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction p(a){return\"string\"==typeof a}function s(a){return\"number\"==typeof a}fu"); + atom.Append("nction ca(a){return\"function\"==aa(a)}function da(a){var b=typeof a;return\"objec"); + atom.Append("t\"==b&&null!=a||\"function\"==b}function ea(a,b,c){return a.call.apply(a.bind,arg"); + atom.Append("uments)}\nfunction fa(a,b,c){if(!a)throw Error();if(2d||c.indexOf(\"E"); + atom.Append("rror\",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this."); + atom.Append("stack=c.stack||\"\"}u(v,Error);\nvar la=\"unknown error\",ka={15:\"element not sel"); + atom.Append("ectable\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"ime "); + atom.Append("not available\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",12"); + atom.Append(":\"invalid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\"in"); + atom.Append("valid selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move t"); + atom.Append("arget out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame"); + atom.Append("\",23:\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"sta"); + atom.Append("le element reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\","); + atom.Append("26:\"unexpected alert open\"};ka[13]=la;ka[9]=\"unknown command\";v.prototype.toSt"); + atom.Append("ring=function(){return this.name+\": \"+this.message};var ma;function na(a){var b="); + atom.Append("a.length-1;return 0<=b&&a.indexOf(\" \",b)==b}function oa(a){return a.replace(/^["); + atom.Append("\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")}\nfunction pa(a,b){for(var c=0,d=oa(String(a)).spl"); + atom.Append("it(\".\"),e=oa(String(b)).split(\".\"),f=Math.max(d.length,e.length),g=0;0==c&&gb?1:0}\nfunc"); + atom.Append("tion ra(a){return String(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCa"); + atom.Append("se()})};var sa=Array.prototype;function w(a,b){for(var c=a.length,d=p(a)?a.split("); + atom.Append("\"\"):a,e=0;ec?null:p(a)?a.charAt"); + atom.Append("(c):a[c]}\nfunction za(a,b){var c;a:if(p(a))c=p(b)&&1==b.length?a.indexOf(b,0):-1;"); + atom.Append("else{for(c=0;c=arguments.length?sa.slice.call(a,b):sa.slice.call(a,b,c)};var x;a:{var Da=k.n"); + atom.Append("avigator;if(Da){var Ea=Da.userAgent;if(Ea){x=Ea;break a}}x=\"\"}function Ka(a){ret"); + atom.Append("urn-1!=x.indexOf(a)};function La(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a"); + atom.Append(")&&(c[d]=a[d]);return c}function Ma(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,"); + atom.Append("a[d],d,a);return c}function Na(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))retu"); + atom.Append("rn c};var Oa=Ka(\"Opera\")||Ka(\"OPR\"),y=Ka(\"Trident\")||Ka(\"MSIE\"),Pa=Ka(\"Ge"); + atom.Append("cko\")&&-1==x.toLowerCase().indexOf(\"webkit\")&&!(Ka(\"Trident\")||Ka(\"MSIE\")),"); + atom.Append("Qa=-1!=x.toLowerCase().indexOf(\"webkit\");function Ra(){var a=k.document;return a"); + atom.Append("?a.documentMode:void 0}var Sa=function(){var a=\"\",b;if(Oa&&k.opera)return a=k.op"); + atom.Append("era.version,ca(a)?a():a;Pa?b=/rv\\:([^\\);]+)(\\)|;)/:y?b=/\\b(?:MSIE|rv)[: ]([^"); + atom.Append("\\);]+)(\\)|;)/:Qa&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec(x))?a[1]:\"\");return y&"); + atom.Append("&(b=Ra(),b>parseFloat(a))?String(b):a}(),Ta={};\nfunction Ua(a){return Ta[a]||(Ta["); + atom.Append("a]=0<=pa(Sa,a))}var Va=k.document,Wa=Va&&y?Ra()||(\"CSS1Compat\"==Va.compatMode?pa"); + atom.Append("rseInt(Sa,10):5):void 0;!Pa&&!y||y&&y&&9<=Wa||Pa&&Ua(\"1.9.1\");y&&Ua(\"9\");funct"); + atom.Append("ion z(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}h=z.prototype;h.clone=function(){return"); + atom.Append(" new z(this.x,this.y)};h.toString=function(){return\"(\"+this.x+\", \"+this.y+\")"); + atom.Append("\"};h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return thi"); + atom.Append("s};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return t"); + atom.Append("his};h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return"); + atom.Append(" this};\nh.translate=function(a,b){a instanceof z?(this.x+=a.x,this.y+=a.y):(this."); + atom.Append("x+=a,s(b)&&(this.y+=b));return this};h.scale=function(a,b){var c=s(b)?b:a;this.x*="); + atom.Append("a;this.y*=c;return this};function Xa(a,b){this.width=a;this.height=b}h=Xa.prototyp"); + atom.Append("e;h.clone=function(){return new Xa(this.width,this.height)};h.toString=function(){"); + atom.Append("return\"(\"+this.width+\" x \"+this.height+\")\"};h.ceil=function(){this.width=Mat"); + atom.Append("h.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=functio"); + atom.Append("n(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return t"); + atom.Append("his};h.round=function(){this.width=Math.round(this.width);this.height=Math.round(t"); + atom.Append("his.height);return this};\nh.scale=function(a,b){var c=s(b)?b:a;this.width*=a;this"); + atom.Append(".height*=c;return this};function A(a){return a?new Ya(B(a)):ma||(ma=new Ya)}functi"); + atom.Append("on Za(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;retu"); + atom.Append("rn new Xa(a.clientWidth,a.clientHeight)}function $a(a){return a?a.parentWindow||a."); + atom.Append("defaultView:window}function ab(a,b,c){function d(c){c&&b.appendChild(p(c)?a.create"); + atom.Append("TextNode(c):c)}for(var e=1;e]=|\\\\s+"); + atom.Append("|.\",\"g\"),Xb=/^\\s/;function G(a,b){return a.Q[a.D+(b||0)]}Ub.prototype.next=fun"); + atom.Append("ction(){return this.Q[this.D++]};Ub.prototype.back=function(){this.D--};Ub.prototy"); + atom.Append("pe.empty=function(){return this.Q.length<=this.D};function H(a){var b=null,c=a.nod"); + atom.Append("eType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null="); + atom.Append("=b?\"\":b);if(\"string\"!=typeof b)if(F&&\"title\"==a.nodeName.toLowerCase()&&1==c"); + atom.Append(")b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d="); + atom.Append("[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),F&&\"title\"==a.nodeName.toLowerC"); + atom.Append("ase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling);"); + atom.Append(");}}else b=a.nodeValue;return\"\"+b}\nfunction I(a,b,c){if(null===b)return!0;try{i"); + atom.Append("f(!a.getAttribute)return!1}catch(d){return!1}Rb&&\"class\"==b&&(b=\"className\");r"); + atom.Append("eturn null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Yb(a,b,c,d,e){re"); + atom.Append("turn(F?Zb:$b).call(null,a,b,p(c)?c:null,p(d)?d:null,e||new J)}\nfunction Zb(a,b,c,"); + atom.Append("d,e){if(a instanceof ac||8==a.i||c&&null===a.i){var f=b.all;if(!f)return e;a=bc(a)"); + atom.Append(";if(\"*\"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],l=0;b=f"); + atom.Append("[l++];)I(b,c,d)&&g.push(b);f=g}for(l=0;b=f[l++];)\"*\"==a&&\"!\"==b.tagName||e.add"); + atom.Append("(b);return e}cc(a,b,c,d,e);return e}\nfunction $b(a,b,c,d,e){b.getElementsByName&&"); + atom.Append("d&&\"name\"==c&&!y?(b=b.getElementsByName(d),w(b,function(b){a.matches(b)&&e.add(b"); + atom.Append(")})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassName(d),w(b,"); + atom.Append("function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof K?cc(a,b,c,d,e)"); + atom.Append(":b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),w(b,function(a){I("); + atom.Append("a,c,d)&&e.add(a)}));return e}\nfunction dc(a,b,c,d,e){var f;if((a instanceof ac||8"); + atom.Append("==a.i||c&&null===a.i)&&(f=b.childNodes)){var g=bc(a);if(\"*\"!=g&&(f=ta(f,function"); + atom.Append("(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=ta(f,functio"); + atom.Append("n(a){return I(a,c,d)}));w(f,function(a){\"*\"==g&&(\"!\"==a.tagName||\"*\"==g&&1!="); + atom.Append("a.nodeType)||e.add(a)});return e}return ec(a,b,c,d,e)}function ec(a,b,c,d,e){for(b"); + atom.Append("=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.add(b);return e}\nfuncti"); + atom.Append("on cc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.ad"); + atom.Append("d(b),cc(a,b,c,d,e)}function bc(a){if(a instanceof K){if(8==a.i)return\"!\";if(null"); + atom.Append("===a.i)return\"*\"}return a.getName()};function J(){this.j=this.f=null;this.w=0}fu"); + atom.Append("nction fc(a){this.s=a;this.next=this.r=null}function gc(a,b){if(!a.f)return b;if(!"); + atom.Append("b.f)return a;for(var c=a.f,d=b.f,e=null,f=null,g=0;c&&d;){var f=c.s,l=d.s;f==l||f "); + atom.Append("instanceof Sb&&l instanceof Sb&&f.c==l.c?(f=c,c=c.next,d=d.next):0\",4,2,function(a"); + atom.Append(",b,c){return qc(function(a,b){return a>b},a,b,c)});P(\"<=\",4,2,function(a,b,c){re"); + atom.Append("turn qc(function(a,b){return a<=b},a,b,c)});P(\">=\",4,2,function(a,b,c){return qc"); + atom.Append("(function(a,b){return a>=b},a,b,c)});var pc=P(\"=\",3,2,function(a,b,c){return qc("); + atom.Append("function(a,b){return a==b},a,b,c,!0)});P(\"!=\",3,2,function(a,b,c){return qc(func"); + atom.Append("tion(a,b){return a!=b},a,b,c,!0)});P(\"and\",2,2,function(a,b,c){return nc(a,c)&&n"); + atom.Append("c(b,c)});P(\"or\",1,2,function(a,b,c){return nc(a,c)||nc(b,c)});function tc(a,b){i"); + atom.Append("f(b.m()&&4!=a.e)throw Error(\"Primary expression must evaluate to nodeset if filte"); + atom.Append("r has predicate(s).\");L.call(this,a.e);this.aa=a;this.b=b;this.n=a.d();this.g=a.g"); + atom.Append("}u(tc,L);tc.prototype.evaluate=function(a){a=this.aa.evaluate(a);return uc(this.b,"); + atom.Append("a)};tc.prototype.toString=function(){var a;a=\"Filter:\"+M(this.aa);return a+=M(th"); + atom.Append("is.b)};function vc(a,b){if(b.lengtha.M)th"); + atom.Append("row Error(\"Function \"+a.h+\" expects at most \"+a.M+\" arguments, \"+b.length+\""); + atom.Append(" given\");a.ka&&w(b,function(b,d){if(4!=b.e)throw Error(\"Argument \"+d+\" to func"); + atom.Append("tion \"+a.h+\" is not of type Nodeset: \"+b);});L.call(this,a.e);this.C=a;this.I=b"); + atom.Append(";lc(this,a.n||wa(b,function(a){return a.d()}));mc(this,a.ia&&!b.length||a.ha&&!!b."); + atom.Append("length||wa(b,function(a){return a.g}))}\nu(vc,L);vc.prototype.evaluate=function(a)"); + atom.Append("{return this.C.l.apply(null,Aa(a,this.I))};vc.prototype.toString=function(){var a="); + atom.Append("\"Function: \"+this.C;if(this.I.length)var b=va(this.I,function(a,b){return a+M(b)"); + atom.Append("},\"Arguments:\"),a=a+M(b);return a};function wc(a,b,c,d,e,f,g,l,t){this.h=a;this."); + atom.Append("e=b;this.n=c;this.ia=d;this.ha=e;this.l=f;this.Z=g;this.M=n(l)?l:g;this.ka=!!t}wc."); + atom.Append("prototype.toString=function(){return this.h};var xc={};\nfunction Q(a,b,c,d,e,f,g,"); + atom.Append("l){if(xc.hasOwnProperty(a))throw Error(\"Function already created: \"+a+\".\");xc["); + atom.Append("a]=new wc(a,b,c,d,!1,e,f,g,l)}Q(\"boolean\",2,!1,!1,function(a,b){return nc(b,a)},"); + atom.Append("1);Q(\"ceiling\",1,!1,!1,function(a,b){return Math.ceil(N(b,a))},1);Q(\"concat\",3"); + atom.Append(",!1,!1,function(a,b){return va(Ca(arguments,1),function(b,d){return b+O(d,a)},\"\""); + atom.Append(")},2,null);Q(\"contains\",2,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);return-1!=b.in"); + atom.Append("dexOf(a)},2);Q(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).m()},1,1,!0);"); + atom.Append("\nQ(\"false\",2,!1,!1,function(){return!1},0);Q(\"floor\",1,!1,!1,function(a,b){re"); + atom.Append("turn Math.floor(N(b,a))},1);Q(\"id\",4,!1,!1,function(a,b){function c(a){if(F){var"); + atom.Append(" b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return ya(b,function"); + atom.Append("(b){return a==b.id})}return null}return e.getElementById(a)}var d=a.c,e=9==d.nodeT"); + atom.Append("ype?d:d.ownerDocument,d=O(b,a).split(/\\s+/),f=[];w(d,function(a){(a=c(a))&&!za(f,"); + atom.Append("a)&&f.push(a)});f.sort(eb);var g=new J;w(f,function(a){g.add(a)});return g},1);\nQ"); + atom.Append("(\"lang\",2,!1,!1,function(){return!1},1);Q(\"last\",1,!0,!1,function(a){if(1!=arg"); + atom.Append("uments.length)throw Error(\"Function last expects ()\");return a.j},0);Q(\"local-n"); + atom.Append("ame\",3,!1,!0,function(a,b){var c=b?hc(b.evaluate(a)):a.c;return c?c.nodeName.toLo"); + atom.Append("werCase():\"\"},0,1,!0);Q(\"name\",3,!1,!0,function(a,b){var c=b?hc(b.evaluate(a))"); + atom.Append(":a.c;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);Q(\"namespace-uri\",3,!0,!1,f"); + atom.Append("unction(){return\"\"},0,1,!0);\nQ(\"normalize-space\",3,!1,!0,function(a,b){return"); + atom.Append("(b?O(b,a):H(a.c)).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1)"); + atom.Append(";Q(\"not\",2,!1,!1,function(a,b){return!nc(b,a)},1);Q(\"number\",1,!1,!0,function("); + atom.Append("a,b){return b?N(b,a):+H(a.c)},0,1);Q(\"position\",1,!0,!1,function(a){return a.na}"); + atom.Append(",0);Q(\"round\",1,!1,!1,function(a,b){return Math.round(N(b,a))},1);Q(\"starts-wit"); + atom.Append("h\",2,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);return 0==b.lastIndexOf(a,0)},2);Q("); + atom.Append("\"string\",3,!1,!0,function(a,b){return b?O(b,a):H(a.c)},0,1);\nQ(\"string-length"); + atom.Append("\",1,!1,!0,function(a,b){return(b?O(b,a):H(a.c)).length},0,1);Q(\"substring\",3,!1"); + atom.Append(",!1,function(a,b,c,d){c=N(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d"); + atom.Append("=d?N(d,a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=M"); + atom.Append("ath.max(c,0);a=O(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return "); + atom.Append("a.substring(e,c+b)},2,3);Q(\"substring-after\",3,!1,!1,function(a,b,c){b=O(b,a);a="); + atom.Append("O(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nQ(\"substring"); + atom.Append("-before\",3,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);a=b.indexOf(a);return-1==a?\""); + atom.Append("\":b.substring(0,a)},2);Q(\"sum\",1,!1,!1,function(a,b){for(var c=jc(b.evaluate(a)"); + atom.Append("),d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,!0);Q(\"translate\",3,!1,!1,f"); + atom.Append("unction(a,b,c,d){b=O(b,a);c=O(c,a);var e=O(d,a);a=[];for(d=0;da.length)throw Error(\"Unclo"); + atom.Append("sed literal string\");return new zc(a)}function Yc(a){var b=a.a.next(),c=b.indexOf"); + atom.Append("(\":\");if(-1==c)return new ac(b);var d=b.substring(0,c);a=a.la(d);if(!a)throw Err"); + atom.Append("or(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return new ac(b,a)}\nfun"); + atom.Append("ction Zc(a){var b,c=[],d;if(Fc(G(a.a))){b=a.a.next();d=G(a.a);if(\"/\"==b&&(a.a.em"); + atom.Append("pty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d)))return "); + atom.Append("new Dc;d=new Dc;T(a,\"Missing next location step.\");b=$c(a,b);c.push(b)}else{a:{b"); + atom.Append("=G(a.a);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable reference not al"); + atom.Append("lowed in HTML XPath\");case \"(\":a.a.next();b=Tc(a);T(a,'unclosed \"(\"');Vc(a,\""); + atom.Append(")\");break;case '\"':case \"'\":b=Xc(a);break;default:if(isNaN(+b))if(!yc(b)&&/(?!"); + atom.Append("[0-9])[\\w]/.test(d)&&\"(\"==G(a.a,\n1)){b=a.a.next();b=xc[b]||null;a.a.next();for"); + atom.Append("(d=[];\")\"!=G(a.a);){T(a,\"Missing function argument list.\");d.push(Tc(a));if(\""); + atom.Append(",\"!=G(a.a))break;a.a.next()}T(a,\"Unclosed function argument list.\");Wc(a);b=new"); + atom.Append(" vc(b,d)}else{b=null;break a}else b=new Ac(+a.a.next())}\"[\"==G(a.a)&&(d=new Ic(a"); + atom.Append("d(a)),b=new tc(b,d))}if(b)if(Fc(G(a.a)))d=b;else return b;else b=$c(a,\"/\"),d=new"); + atom.Append(" Ec,c.push(b)}for(;Fc(G(a.a));)b=a.a.next(),T(a,\"Missing next location step.\"),b"); + atom.Append("=$c(a,b),c.push(b);return new Bc(d,c)}\nfunction $c(a,b){var c,d,e;if(\"/\"!=b&&\""); + atom.Append("//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\"==G(a.a))return d"); + atom.Append("=new Jc(Pc,new K(\"node\")),a.a.next(),d;if(\"..\"==G(a.a))return d=new Jc(Oc,new "); + atom.Append("K(\"node\")),a.a.next(),d;var f;if(\"@\"==G(a.a))f=Cc,a.a.next(),T(a,\"Missing att"); + atom.Append("ribute name\");else if(\"::\"==G(a.a,1)){if(!/(?![0-9])[\\w]/.test(G(a.a).charAt(0"); + atom.Append(")))throw Error(\"Bad token: \"+a.a.next());c=a.a.next();f=Nc[c]||null;if(!f)throw "); + atom.Append("Error(\"No axis with name: \"+c);a.a.next();T(a,\"Missing node name\")}else f=\nKc"); + atom.Append(";c=G(a.a);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==G(a.a,1)){if(!yc(c))thro"); + atom.Append("w Error(\"Invalid node type: \"+c);c=a.a.next();if(!yc(c))throw Error(\"Invalid ty"); + atom.Append("pe name: \"+c);Vc(a,\"(\");T(a,\"Bad nodetype\");e=G(a.a).charAt(0);var g=null;if("); + atom.Append("'\"'==e||\"'\"==e)g=Xc(a);T(a,\"Bad nodetype\");Wc(a);c=new K(c,g)}else c=Yc(a);el"); + atom.Append("se if(\"*\"==c)c=Yc(a);else throw Error(\"Bad token: \"+a.a.next());e=new Ic(ad(a)"); + atom.Append(",f.t);return d||new Jc(f,c,e,\"//\"==b)}\nfunction ad(a){for(var b=[];\"[\"==G(a.a"); + atom.Append(");){a.a.next();T(a,\"Missing predicate expression.\");var c=Tc(a);b.push(c);T(a,\""); + atom.Append("Unclosed predicate expression.\");Vc(a,\"]\")}return b}function Uc(a){if(\"-\"==G("); + atom.Append("a.a))return a.a.next(),new Qc(Uc(a));var b=Zc(a);if(\"|\"!=G(a.a))a=b;else{for(b=["); + atom.Append("b];\"|\"==a.a.next();)T(a,\"Missing next union location path.\"),b.push(Zc(a));a.a"); + atom.Append(".back();a=new Rc(b)}return a};function bd(a){switch(a.nodeType){case 1:return ha(c"); + atom.Append("d,a);case 9:return bd(a.documentElement);case 2:return a.ownerElement?bd(a.ownerEl"); + atom.Append("ement):dd;case 11:case 10:case 6:case 12:return dd;default:return a.parentNode?bd("); + atom.Append("a.parentNode):dd}}function dd(){return null}function cd(a,b){if(a.prefix==b)return"); + atom.Append(" a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNode(\"xmlns"); + atom.Append(":\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?"); + atom.Append("cd(a.parentNode,b):null};function ed(a,b){if(!a.length)throw Error(\"Empty XPath e"); + atom.Append("xpression.\");var c=Vb(a);if(c.empty())throw Error(\"Invalid XPath expression.\");"); + atom.Append("b?ca(b)||(b=ga(b.lookupNamespaceURI,b)):b=function(){return null};var d=Tc(new Sc("); + atom.Append("c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evaluate=function(a"); + atom.Append(",b){var c=d.evaluate(new Qb(a));return new U(c,b)}}\nfunction U(a,b){if(0==b)if(a "); + atom.Append("instanceof J)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typeof a)b=1"); + atom.Append(";else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluation result"); + atom.Append(".\");if(2!=b&&1!=b&&3!=b&&!(a instanceof J))throw Error(\"value could not be conve"); + atom.Append("rted to the specified type\");this.resultType=b;var c;switch(b){case 2:this.string"); + atom.Append("Value=a instanceof J?ic(a):\"\"+a;break;case 1:this.numberValue=a instanceof J?+ic"); + atom.Append("(a):+a;break;case 3:this.booleanValue=a instanceof J?0=c.length?"); + atom.Append("null:c[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"snapshotIte"); + atom.Append("m called with wrong result type\");return a>=\nc.length||0>a?null:c[a]}}U.ANY_TYPE"); + atom.Append("=0;U.NUMBER_TYPE=1;U.STRING_TYPE=2;U.BOOLEAN_TYPE=3;U.UNORDERED_NODE_ITERATOR_TYPE"); + atom.Append("=4;U.ORDERED_NODE_ITERATOR_TYPE=5;U.UNORDERED_NODE_SNAPSHOT_TYPE=6;U.ORDERED_NODE_"); + atom.Append("SNAPSHOT_TYPE=7;U.ANY_UNORDERED_NODE_TYPE=8;U.FIRST_ORDERED_NODE_TYPE=9;function f"); + atom.Append("d(a){this.lookupNamespaceURI=bd(a)}\nfunction gd(a){a=a||k;var b=a.document;b.eval"); + atom.Append("uate||(a.XPathResult=U,b.evaluate=function(a,b,e,f){return(new ed(a,e)).evaluate(b"); + atom.Append(",f)},b.createExpression=function(a,b){return new ed(a,b)},b.createNSResolver=funct"); + atom.Append("ion(a){return new fd(a)})};var V={};V.ga=function(){var a={ra:\"http://www.w3.org/"); + atom.Append("2000/svg\"};return function(b){return a[b]||null}}();V.l=function(a,b,c){var d=B(a"); + atom.Append(");(y||ub)&&gd($a(d));try{var e=d.createNSResolver?d.createNSResolver(d.documentEle"); + atom.Append("ment):V.ga;return y&&!Ua(7)?d.evaluate.call(d,b,a,e,c,null):d.evaluate(b,a,e,c,nul"); + atom.Append("l)}catch(f){if(!Pa||\"NS_ERROR_ILLEGAL_VALUE\"!=f.name)throw new v(32,\"Unable to "); + atom.Append("locate an element with the xpath expression \"+b+\" because of the following error"); + atom.Append(":\\n\"+f);}};\nV.J=function(a,b){if(!a||1!=a.nodeType)throw new v(32,'The result o"); + atom.Append("f the xpath expression \"'+b+'\" is: '+a+\". It should be an element.\");};V.q=fun"); + atom.Append("ction(a,b){var c=function(){var c=V.l(b,a,9);return c?(c=c.singleNodeValue,Oa?c:c|"); + atom.Append("|null):b.selectSingleNode?(c=B(b),c.setProperty&&c.setProperty(\"SelectionLanguage"); + atom.Append("\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||V.J(c,a);return c};\nV.k=fu"); + atom.Append("nction(a,b){var c=function(){var c=V.l(b,a,7);if(c){var e=c.snapshotLength;Oa&&!n("); + atom.Append("e)&&V.J(null,a);for(var f=[],g=0;g=this.left&&a"); + atom.Append(".right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=th"); + atom.Append("is.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){da(a)?("); + atom.Append("this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this"); + atom.Append(".top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function(){"); + atom.Append("this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.cei"); + atom.Append("l(this.bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){this"); + atom.Append(".top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor"); + atom.Append("(this.bottom);this.left=Math.floor(this.left);return this};\nh.round=function(){th"); + atom.Append("is.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.rou"); + atom.Append("nd(this.bottom);this.left=Math.round(this.left);return this};h.translate=function("); + atom.Append("a,b){a instanceof z?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y"); + atom.Append("):(this.left+=a,this.right+=a,s(b)&&(this.top+=b,this.bottom+=b));return this};h.s"); + atom.Append("cale=function(a,b){var c=s(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bott"); + atom.Append("om*=c;return this};function W(a,b,c,d){this.left=a;this.top=b;this.width=c;this.he"); + atom.Append("ight=d}h=W.prototype;h.clone=function(){return new W(this.left,this.top,this.width"); + atom.Append(",this.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\" - \""); + atom.Append("+this.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a instanceo"); + atom.Append("f W?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this"); + atom.Append(".top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=t"); + atom.Append("his.top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(this.l"); + atom.Append("eft);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Mat"); + atom.Append("h.ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this.left"); + atom.Append(");this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math"); + atom.Append(".floor(this.height);return this};h.round=function(){this.left=Math.round(this.left"); + atom.Append(");this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math"); + atom.Append(".round(this.height);return this};\nh.translate=function(a,b){a instanceof z?(this."); + atom.Append("left+=a.x,this.top+=a.y):(this.left+=a,s(b)&&(this.top+=b));return this};h.scale=f"); + atom.Append("unction(a,b){var c=s(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;"); + atom.Append("return this};function X(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase("); + atom.Append(")==b)}var id=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?"); + atom.Append(":[^()]*\\([^()]*\\))*[^()]*$)/;function jd(a){var b=[];w(a.split(id),function(a){v"); + atom.Append("ar d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];"); + atom.Append("break b}}c=null}if(!c)b:{if(g=\nd.match(Pb))if(c=Number(g[1]),e=Number(g[2]),g=Num"); + atom.Append("ber(g[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if("); + atom.Append("!c)b:{c=d.toLowerCase();e=Kb[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\""); + atom.Append("+c,4==e.length&&(e=e.replace(Mb,\"#$1$1$2$2$3$3\")),!Nb.test(e))){c=null;break b}c"); + atom.Append("=[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)"); + atom.Append(",1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}return d}\nfunction md(a,b){var c=a.curre"); + atom.Append("ntStyle||a.style,d=c[b];!n(d)&&ca(c.getPropertyValue)&&(d=c.getPropertyValue(b));r"); + atom.Append("eturn\"inherit\"!=d?n(d)?d:null:(c=ld(a))?md(c,b):null}\nfunction nd(a,b){function"); + atom.Append(" c(a){if(\"none\"==Y(a,\"display\"))return!1;a=ld(a);return!a||c(a)}function d(a){"); + atom.Append("var b=od(a);return 0=q.left+q.wid"); + atom.Append("th;q=e.top>=q.top+q.height;if(r&&\"hidden\"==m.x||q&&\"hidden\"==m.y)return Z;if(r"); + atom.Append("&&\"visible\"!=m.x||q&&\"visible\"!=m.y){if(C&&(m=d(a),e.left>=g.scrollWidth-m.x||"); + atom.Append("e.right>=g.scrollHeight-m.y))return Z;e=pd(a);return e==Z?Z:\"scroll\"}}}return\"n"); + atom.Append("one\"}var td=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-"); + atom.Append("]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction od(a){function b("); + atom.Append("a){var c=$a(B(a)).getComputedStyle(a,null).MozTransform.match(td);if(c){var d=pars"); + atom.Append("eFloat(c[1]),e=parseFloat(c[2]),m=parseFloat(c[3]),q=parseFloat(c[4]),r=parseFloat"); + atom.Append("(c[5]),c=parseFloat(c[6]),R=f.left+f.width,Fa=f.top+f.height,Ga=f.left*d,d=R*d,Ia="); + atom.Append("f.left*e,e=R*e,Ha=f.top*m,m=Fa*m,Ja=f.top*q,R=Fa*q,Fa=Ga+Ha+r,q=Ia+Ja+c,Ha=d+Ha+r,"); + atom.Append("Ja=e+Ja+c,Ga=Ga+m+r,Ia=Ia+R+c,r=d+m+r,c=e+R+c;f.left=Math.min(Fa,Ha,Ga,r);f.top=Ma"); + atom.Append("th.min(q,Ja,Ia,c);r=Math.max(Fa,Ha,Ga,r);c=Math.max(q,Ja,Ia,c);f.width=\nr-f.left;"); + atom.Append("f.height=c-f.top}(a=ld(a))&&b(a)}var c=qd(a);if(c)return c.rect;if(X(a,\"HTML\"))r"); + atom.Append("eturn c=B(a),a=Za($a(c)||window),new W(0,0,a.width,a.height);var d;try{d=a.getBoun"); + atom.Append("dingClientRect()}catch(e){return new W(0,0,0,0)}var f=new W(d.left,d.top,d.right-d"); + atom.Append(".left,d.bottom-d.top);y&&a.ownerDocument.body&&(c=B(a),f.left-=c.documentElement.c"); + atom.Append("lientLeft+c.body.clientLeft,f.top-=c.documentElement.clientTop+c.body.clientTop);O"); + atom.Append("a&&(0==f.width&&0b?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return Id"); + atom.Append("[a]=e+b.toString(16)}),'\"')};Qa||Oa||Pa&&Bb(3.5)||y&&Bb(8);function Kd(a){switch("); + atom.Append("aa(a)){case \"string\":case \"number\":case \"boolean\":return a;case \"function\""); + atom.Append(":return a.toString();case \"array\":return ua(a,Kd);case \"object\":if(\"nodeType"); + atom.Append("\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Ld(a);return b}if(\"doc"); + atom.Append("ument\"in a)return b={},b.WINDOW=Ld(a),b;if(ba(a))return ua(a,Kd);a=La(a,function("); + atom.Append("a,b){return s(b)||p(b)});return Ma(a,Kd);default:return null}}\nfunction Md(a,b){r"); + atom.Append("eturn\"array\"==aa(a)?ua(a,function(a){return Md(a,b)}):da(a)?\"function\"==typeof"); + atom.Append(" a?a:\"ELEMENT\"in a?Nd(a.ELEMENT,b):\"WINDOW\"in a?Nd(a.WINDOW,b):Ma(a,function(a"); + atom.Append("){return Md(a,b)}):a}function Od(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b"); + atom.Append(".O=ia());b.O||(b.O=ia());return b}function Ld(a){var b=Od(a.ownerDocument),c=Na(b,"); + atom.Append("function(b){return b==a});c||(c=\":wdc:\"+b.O++,b[c]=a);return c}\nfunction Nd(a,b"); + atom.Append("){a=decodeURIComponent(a);var c=b||document,d=Od(c);if(!(a in d))throw new v(10,\""); + atom.Append("Element does not exist in cache\");var e=d[a];if(\"setInterval\"in e){if(e.closed)"); + atom.Append("throw delete d[a],new v(23,\"Window has been closed.\");return e}for(var f=e;f;){i"); + atom.Append("f(f==c.documentElement)return e;f=f.parentNode}delete d[a];throw new v(10,\"Elemen"); + atom.Append("t is no longer attached to the DOM\");};function Pd(a,b){var c=Ed,d=[a,b],e=window"); + atom.Append("||ja,f;try{a:{var g=c;if(p(g))try{c=new e.Function(g);break a}catch(l){if(y&&e.exe"); + atom.Append("cScript){e.execScript(\";\");c=new e.Function(g);break a}throw l;}c=e==window?g:ne"); + atom.Append("w e.Function(\"return (\"+g+\").apply(null,arguments);\")}var t=Md(d,e.document),C"); + atom.Append("=c.apply(null,t);f={status:0,value:Kd(C)}}catch(m){f={status:\"code\"in m?m.code:1"); + atom.Append("3,value:{message:m.message}}}c=[];Gd(new Fd,f,c);return c.join(\"\")}var Qd=[\"_\""); + atom.Append("],Rd=k;Qd[0]in Rd||!Rd.execScript||Rd.execScript(\"var \"+Qd[0]);\nfor(var Sd;Qd.l"); + atom.Append("ength&&(Sd=Qd.shift());)!Qd.length&&n(Pd)?Rd[Sd]=Pd:Rd=Rd[Sd]?Rd[Sd]:Rd[Sd]={};; r"); + atom.Append("eturn this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?win"); + atom.Append("dow.navigator:null,document:typeof window!=undefined?window.document:null}, argume"); + atom.Append("nts);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string FrameByIndex + { + get + { + const string atomName = "FrameByIndex"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g=this;\nfunction h(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=h(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function ba(a){var b=typeof a;return\""); + atom.Append("object\"==b&&null!=a||\"function\"==b}var ca=Date.now||function(){return+new Date}"); + atom.Append(";var da=window;function k(a,b){this.code=a;this.state=l[a]||ea;this.message=b||\""); + atom.Append("\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase("); + atom.Append(").replace(/^[\\s\\xa0]+/g,\"\")}),e=c.length-5;if(0>e||c.indexOf(\"Error\",e)!=e)c"); + atom.Append("+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack|"); + atom.Append("|\"\"}\n(function(){var a=Error;function b(){}b.prototype=a.prototype;k.f=a.protot"); + atom.Append("ype;k.prototype=new b;k.prototype.constructor=k;k.e=function(b,e,d){return a.proto"); + atom.Append("type[e].apply(b,Array.prototype.slice.call(arguments,2))}})();\nvar ea=\"unknown e"); + atom.Append("rror\",l={15:\"element not selectable\",11:\"element not visible\",31:\"ime engine"); + atom.Append(" activation failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"in"); + atom.Append("valid element coordinates\",12:\"invalid element state\",32:\"invalid selector\",5"); + atom.Append("1:\"invalid selector\",52:\"invalid selector\",17:\"javascript error\",405:\"unsup"); + atom.Append("ported operation\",34:\"move target out of bounds\",27:\"no such alert\",7:\"no su"); + atom.Append("ch element\",8:\"no such frame\",23:\"no such window\",28:\"script timeout\",33:\""); + atom.Append("session not created\",10:\"stale element reference\",\n0:\"success\",21:\"timeout"); + atom.Append("\",25:\"unable to set cookie\",26:\"unexpected alert open\"};l[13]=ea;l[9]=\"unkno"); + atom.Append("wn command\";k.prototype.toString=function(){return this.name+\": \"+this.message}"); + atom.Append(";function m(a,b){for(var c=0,e=String(a).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\""); + atom.Append(").split(\".\"),d=String(b).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\")"); + atom.Append(",f=Math.max(e.length,d.length),n=0;0==c&&nb?1:0};function q(a,b){for(var c=a.length,e=Array(c),"); + atom.Append("d=\"string\"==typeof a?a.split(\"\"):a,f=0;fparseFloat(a))?String(b):a}(),ma={};function z(a){return ma[a]||(ma[a"); + atom.Append("]=0<=m(v,a))}var na=g.document,A=na&&t?la()||(\"CSS1Compat\"==na.compatMode?parseI"); + atom.Append("nt(v,10):5):void 0;!u&&!t||t&&t&&9<=A||u&&z(\"1.9.1\");t&&z(\"9\");var B,C,D,E,F,J"); + atom.Append(",K;K=J=F=E=D=C=B=!1;var L=r;L&&(-1!=L.indexOf(\"Firefox\")?B=!0:-1!=L.indexOf(\"Ca"); + atom.Append("mino\")?C=!0:-1!=L.indexOf(\"iPhone\")||-1!=L.indexOf(\"iPod\")?D=!0:-1!=L.indexOf"); + atom.Append("(\"iPad\")?E=!0:-1!=L.indexOf(\"Chrome\")?J=!0:-1!=L.indexOf(\"Android\")?F=!0:-1!"); + atom.Append("=L.indexOf(\"Safari\")&&(K=!0));var oa=B,pa=C,qa=D,ra=E,M=F,sa=J,ta=K;function N(a"); + atom.Append("){return(a=a.exec(r))?a[1]:\"\"}var ua=function(){if(oa)return N(/Firefox\\/([0-9."); + atom.Append("]+)/);if(t||s)return v;if(sa)return N(/Chrome\\/([0-9.]+)/);if(ta)return N(/Versio"); + atom.Append("n\\/([0-9.]+)/);if(qa||ra){var a;if(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(r))"); + atom.Append("return a[1]+\".\"+a[2]}else{if(M)return(a=N(/Android\\s+([0-9.]+)/))?a:N(/Version"); + atom.Append("\\/([0-9.]+)/);if(pa)return N(/Camino\\/([0-9.]+)/)}return\"\"}();var O,va;functio"); + atom.Append("n P(a){Q?va(a):M?m(wa,a):m(ua,a)}var Q=function(){if(!u)return!1;var a=g.Component"); + atom.Append("s;if(!a)return!1;try{if(!a.classes)return!1}catch(b){return!1}var c=a.classes,a=a."); + atom.Append("interfaces,e=c[\"@mozilla.org/xpcom/version-comparator;1\"].getService(a.nsIVersio"); + atom.Append("nComparator),c=c[\"@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo),d=c."); + atom.Append("platformVersion,f=c.version;O=function(a){return 0<=e.compare(d,\"\"+a)};va=functi"); + atom.Append("on(a){e.compare(f,\"\"+a)};return!0}(),R;\nif(M){var xa=/Android\\s+([0-9\\.]+)/.e"); + atom.Append("xec(r);R=xa?xa[1]:\"0\"}else R=\"0\";var wa=R;M&&P(2.3);M&&P(4);ta&&P(6);function "); + atom.Append("ya(a){this.d=a}ya.prototype.toString=function(){return this.d};var za={};function "); + atom.Append("S(a){if(za.hasOwnProperty(a))throw Error(\"Binary operator already created: \"+a);"); + atom.Append("a=new ya(a);za[a.toString()]=a}S(\"div\");S(\"mod\");S(\"*\");S(\"+\");S(\"-\");S("); + atom.Append("\"<\");S(\">\");S(\"<=\");S(\">=\");S(\"=\");S(\"!=\");S(\"and\");S(\"or\");functi"); + atom.Append("on Aa(a){this.b=a}Aa.prototype.toString=function(){return this.b};var Ba={};functi"); + atom.Append("on T(a){if(Ba.hasOwnProperty(a))throw Error(\"Function already created: \"+a+\".\""); + atom.Append(");Ba[a]=new Aa(a)}T(\"boolean\");T(\"ceiling\");T(\"concat\");T(\"contains\");T(\""); + atom.Append("count\");T(\"false\");T(\"floor\");T(\"id\");T(\"lang\");T(\"last\");T(\"local-nam"); + atom.Append("e\");T(\"name\");T(\"namespace-uri\");T(\"normalize-space\");T(\"not\");T(\"number"); + atom.Append("\");T(\"position\");T(\"round\");T(\"starts-with\");T(\"string\");T(\"string-lengt"); + atom.Append("h\");T(\"substring\");T(\"substring-after\");T(\"substring-before\");\nT(\"sum\");"); + atom.Append("T(\"translate\");T(\"true\");function Ca(a){this.b=a}Ca.prototype.toString=functio"); + atom.Append("n(){return this.b};var Da={};function U(a){if(Da.hasOwnProperty(a))throw Error(\"A"); + atom.Append("xis already created: \"+a);Da[a]=new Ca(a)}U(\"ancestor\");U(\"ancestor-or-self\")"); + atom.Append(";U(\"attribute\");U(\"child\");U(\"descendant\");U(\"descendant-or-self\");U(\"fol"); + atom.Append("lowing\");U(\"following-sibling\");U(\"namespace\");U(\"parent\");U(\"preceding\")"); + atom.Append(";U(\"preceding-sibling\");U(\"self\");function Ea(a,b){return(b||da).frames[a]||nu"); + atom.Append("ll};function Fa(){this.a=void 0}\nfunction V(a,b,c){switch(typeof b){case \"string"); + atom.Append("\":Ga(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;c"); + atom.Append("ase \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");break;case \"o"); + atom.Append("bject\":if(null==b){c.push(\"null\");break}if(\"array\"==h(b)){var e=b.length;c.pu"); + atom.Append("sh(\"[\");for(var d=\"\",f=0;fb?d+=\"000\":256>b?d+=\"00\":"); + atom.Append("4096>b&&(d+=\"0\");return W[a]=d+b.toString(16)}),'\"')};ka||s||u&&(Q?O(3.5):t?0<="); + atom.Append("m(A,3.5):z(3.5))||t&&(Q?O(8):t?m(A,8):z(8));function X(a){switch(h(a)){case \"stri"); + atom.Append("ng\":case \"number\":case \"boolean\":return a;case \"function\":return a.toString"); + atom.Append("();case \"array\":return q(a,X);case \"object\":if(\"nodeType\"in a&&(1==a.nodeTyp"); + atom.Append("e||9==a.nodeType)){var b={};b.ELEMENT=Ia(a);return b}if(\"document\"in a)return b="); + atom.Append("{},b.WINDOW=Ia(a),b;if(aa(a))return q(a,X);a=ha(a,function(a,b){return\"number\"=="); + atom.Append("typeof b||\"string\"==typeof b});return ia(a,X);default:return null}}\nfunction Ja"); + atom.Append("(a,b){return\"array\"==h(a)?q(a,function(a){return Ja(a,b)}):ba(a)?\"function\"==t"); + atom.Append("ypeof a?a:\"ELEMENT\"in a?Ka(a.ELEMENT,b):\"WINDOW\"in a?Ka(a.WINDOW,b):ia(a,funct"); + atom.Append("ion(a){return Ja(a,b)}):a}function La(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_"); + atom.Append("={},b.c=ca());b.c||(b.c=ca());return b}function Ia(a){var b=La(a.ownerDocument),c="); + atom.Append("ja(b,function(b){return b==a});c||(c=\":wdc:\"+b.c++,b[c]=a);return c}\nfunction K"); + atom.Append("a(a,b){a=decodeURIComponent(a);var c=b||document,e=La(c);if(!(a in e))throw new k("); + atom.Append("10,\"Element does not exist in cache\");var d=e[a];if(\"setInterval\"in d){if(d.cl"); + atom.Append("osed)throw delete e[a],new k(23,\"Window has been closed.\");return d}for(var f=d;"); + atom.Append("f;){if(f==c.documentElement)return d;f=f.parentNode}delete e[a];throw new k(10,\"E"); + atom.Append("lement is no longer attached to the DOM\");};function Ma(a,b){var c=Ea,e=[a,b],d=w"); + atom.Append("indow||da,f;try{a:{var n=c;if(\"string\"==typeof n)try{c=new d.Function(n);break a"); + atom.Append("}catch(G){if(t&&d.execScript){d.execScript(\";\");c=new d.Function(n);break a}thro"); + atom.Append("w G;}c=d==window?n:new d.Function(\"return (\"+n+\").apply(null,arguments);\")}var"); + atom.Append(" H=Ja(e,d.document),I=c.apply(null,H);f={status:0,value:X(I)}}catch(w){f={status:"); + atom.Append("\"code\"in w?w.code:13,value:{message:w.message}}}c=[];V(new Fa,f,c);return c.join"); + atom.Append("(\"\")}var Y=[\"_\"],Z=g;\nY[0]in Z||!Z.execScript||Z.execScript(\"var \"+Y[0]);fo"); + atom.Append("r(var $;Y.length&&($=Y.shift());)Y.length||void 0===Ma?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=Ma"); + atom.Append(";; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined"); + atom.Append("?window.navigator:null,document:typeof window!=undefined?window.document:null}, ar"); + atom.Append("guments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string Submit + { + get + { + const string atomName = "Submit"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function m(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction n(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==aa(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ia(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ja(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ta(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var ua=Array.prototype;function q(a,b,c){for(va"); + atom.Append("r d=a.length,f=n(a)?a.split(\"\"):a,e=0;ec?null:n(a)?a.charAt(c):a[c]}\nfunction Ba(a,b){var c;a:if(n(a))c=n(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?ua.slice.call(a,b):ua.slice.call(a,b,"); + atom.Append("c)};var Fa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ga=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ha=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ia=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ja=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,Ka=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function t(a,b){this.code=a;this.state=La[a]||Ma;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}p("); + atom.Append("t,Error);\nvar Ma=\"unknown error\",La={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};La[13]=Ma;La[9]=\"unknown command\";t.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var u;a:{var Na=l.navigator;if(Na){var Oa=Na.userA"); + atom.Append("gent;if(Oa){u=Oa;break a}}u=\"\"}function Pa(a){return-1!=u.indexOf(a)};function Q"); + atom.Append("a(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}functio"); + atom.Append("n Ra(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Sa("); + atom.Append("a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a,b){for(var c in a)"); + atom.Append("if(b.call(void 0,a[c],c,a))return c};var Ua,Va,w=Pa(\"Opera\")||Pa(\"OPR\"),x=Pa("); + atom.Append("\"Trident\")||Pa(\"MSIE\"),z=Pa(\"Gecko\")&&-1==u.toLowerCase().indexOf(\"webkit\""); + atom.Append(")&&!(Pa(\"Trident\")||Pa(\"MSIE\")),A=-1!=u.toLowerCase().indexOf(\"webkit\"),Wa=A"); + atom.Append("&&Pa(\"Mobile\"),Xa,Ya=l.navigator||null;Xa=Ya&&Ya.platform||\"\";Ua=-1!=Xa.indexO"); + atom.Append("f(\"Mac\");Va=-1!=Xa.indexOf(\"Win\");var Za=-1!=Xa.indexOf(\"Linux\");function $a"); + atom.Append("(){var a=l.document;return a?a.documentMode:void 0}\nvar ab=function(){var a=\"\","); + atom.Append("b;if(w&&l.opera)return a=l.opera.version,ea(a)?a():a;z?b=/rv\\:([^\\);]+)(\\)|;)/:"); + atom.Append("x?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:A&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec"); + atom.Append("(u))?a[1]:\"\");return x&&(b=$a(),b>parseFloat(a))?String(b):a}(),bb={};function c"); + atom.Append("b(a){return bb[a]||(bb[a]=0<=ra(ab,a))}var gb=l.document,hb=gb&&x?$a()||(\"CSS1Com"); + atom.Append("pat\"==gb.compatMode?parseInt(ab,10):5):void 0;!z&&!x||x&&x&&9<=hb||z&&cb(\"1.9.1"); + atom.Append("\");x&&cb(\"9\");function ib(a,b,c){return Math.min(Math.max(a,b),c)};function jb("); + atom.Append("a,b){this.x=m(a)?a:0;this.y=m(b)?b:0}h=jb.prototype;h.clone=function(){return new "); + atom.Append("jb(this.x,this.y)};h.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"};h"); + atom.Append(".ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h."); + atom.Append("floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};"); + atom.Append("h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this"); + atom.Append("};\nh.translate=function(a,b){a instanceof jb?(this.x+=a.x,this.y+=a.y):(this.x+=a"); + atom.Append(",da(b)&&(this.y+=b));return this};h.scale=function(a,b){var c=da(b)?b:a;this.x*=a;"); + atom.Append("this.y*=c;return this};function kb(a,b){this.width=a;this.height=b}h=kb.prototype;"); + atom.Append("h.clone=function(){return new kb(this.width,this.height)};h.toString=function(){re"); + atom.Append("turn\"(\"+this.width+\" x \"+this.height+\")\"};h.ceil=function(){this.width=Math."); + atom.Append("ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function("); + atom.Append("){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return thi"); + atom.Append("s};h.round=function(){this.width=Math.round(this.width);this.height=Math.round(thi"); + atom.Append("s.height);return this};\nh.scale=function(a,b){var c=da(b)?b:a;this.width*=a;this."); + atom.Append("height*=c;return this};function lb(a){return a?new mb(C(a)):oa||(oa=new mb)}functi"); + atom.Append("on nb(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;retu"); + atom.Append("rn new kb(a.clientWidth,a.clientHeight)}function ob(a){return a?a.parentWindow||a."); + atom.Append("defaultView:window}function pb(a,b,c){function d(c){c&&b.appendChild(n(c)?a.create"); + atom.Append("TextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),Yb=/^\\s/;function D(a,b){return a.j"); + atom.Append("a[a.T+(b||0)]}Vb.prototype.next=function(){return this.ja[this.T++]};Vb.prototype."); + atom.Append("back=function(){this.T--};Vb.prototype.empty=function(){return this.ja.length<=thi"); + atom.Append("s.T};function E(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||nul"); + atom.Append("l==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Rb&&\"t"); + atom.Append("itle\"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.docum"); + atom.Append("entElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeVa"); + atom.Append("lue),Rb&&\"title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.first"); + atom.Append("Child);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunct"); + atom.Append("ion Zb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return"); + atom.Append("!1}Sb&&\"class\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAtt"); + atom.Append("ribute(b,2)==c}function $b(a,b,c,d,f){return(Rb?ac:bc).call(null,a,b,n(c)?c:null,n"); + atom.Append("(d)?d:null,f||new F)}\nfunction ac(a,b,c,d,f){if(a instanceof cc||8==a.f||c&&null="); + atom.Append("==a.f){var e=b.all;if(!e)return f;a=dc(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a"); + atom.Append("),!e))return f;if(c){for(var g=[],k=0;b=e[k++];)Zb(b,c,d)&&g.push(b);e=g}for(k=0;b"); + atom.Append("=e[k++];)\"*\"==a&&\"!\"==b.tagName||f.add(b);return f}ec(a,b,c,d,f);return f}\nfu"); + atom.Append("nction bc(a,b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!x?(b=b.getElementsByNam"); + atom.Append("e(d),q(b,function(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"clas"); + atom.Append("s\"==c?(b=b.getElementsByClassName(d),q(b,function(b){b.className==d&&a.matches(b)"); + atom.Append("&&f.add(b)})):a instanceof G?ec(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElement"); + atom.Append("sByTagName(a.getName()),q(b,function(a){Zb(a,c,d)&&f.add(a)}));return f}\nfunction"); + atom.Append(" fc(a,b,c,d,f){var e;if((a instanceof cc||8==a.f||c&&null===a.f)&&(e=b.childNodes)"); + atom.Append("){var g=dc(a);if(\"*\"!=g&&(e=va(e,function(a){return a.tagName&&a.tagName.toLower"); + atom.Append("Case()==g}),!e))return f;c&&(e=va(e,function(a){return Zb(a,c,d)}));q(e,function(a"); + atom.Append("){\"*\"==g&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}retur"); + atom.Append("n gc(a,b,c,d,f)}function gc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)Zb(b,c"); + atom.Append(",d)&&a.matches(b)&&f.add(b);return f}\nfunction ec(a,b,c,d,f){for(b=b.firstChild;b"); + atom.Append(";b=b.nextSibling)Zb(b,c,d)&&a.matches(b)&&f.add(b),ec(a,b,c,d,f)}function dc(a){if"); + atom.Append("(a instanceof G){if(8==a.f)return\"!\";if(null===a.f)return\"*\"}return a.getName("); + atom.Append(")};function F(){this.r=this.n=null;this.P=0}function hc(a){this.I=a;this.next=this"); + atom.Append(".F=null}function ic(a,b){if(!a.n)return b;if(!b.n)return a;for(var c=a.n,d=b.n,f=n"); + atom.Append("ull,e=null,g=0;c&&d;){var e=c.I,k=d.I;e==k||e instanceof Tb&&k instanceof Tb&&e.k="); + atom.Append("=k.k?(e=c,c=c.next,d=d.next):0\",4,2,function(a,b,c){return sc(function"); + atom.Append("(a,b){return a>b},a,b,c)});N(\"<=\",4,2,function(a,b,c){return sc(function(a,b){re"); + atom.Append("turn a<=b},a,b,c)});N(\">=\",4,2,function(a,b,c){return sc(function(a,b){return a>"); + atom.Append("=b},a,b,c)});var rc=N(\"=\",3,2,function(a,b,c){return sc(function(a,b){return a=="); + atom.Append("b},a,b,c,!0)});N(\"!=\",3,2,function(a,b,c){return sc(function(a,b){return a!=b},a"); + atom.Append(",b,c,!0)});N(\"and\",2,2,function(a,b,c){return pc(a,c)&&pc(b,c)});N(\"or\",1,2,fu"); + atom.Append("nction(a,b,c){return pc(a,c)||pc(b,c)});function vc(a,b){if(b.u()&&4!=a.m)throw Er"); + atom.Append("ror(\"Primary expression must evaluate to nodeset if filter has predicate(s).\");H"); + atom.Append(".call(this,a.m);this.xa=a;this.g=b;this.v=a.l();this.o=a.o}p(vc,H);vc.prototype.ev"); + atom.Append("aluate=function(a){a=this.xa.evaluate(a);return wc(this.g,a)};vc.prototype.toStrin"); + atom.Append("g=function(){var a;a=\"Filter:\"+I(this.xa);return a+=I(this.g)};function xc(a,b){"); + atom.Append("if(b.lengtha.ea)throw Error(\"Function"); + atom.Append(" \"+a.q+\" expects at most \"+a.ea+\" arguments, \"+b.length+\" given\");a.Ka&&q(b"); + atom.Append(",function(b,d){if(4!=b.m)throw Error(\"Argument \"+d+\" to function \"+a.q+\" is n"); + atom.Append("ot of type Nodeset: \"+b);});H.call(this,a.m);this.S=a;this.Z=b;nc(this,a.v||ya(b,"); + atom.Append("function(a){return a.l()}));oc(this,a.Ia&&!b.length||a.Ha&&!!b.length||ya(b,functi"); + atom.Append("on(a){return a.o}))}\np(xc,H);xc.prototype.evaluate=function(a){return this.S.t.ap"); + atom.Append("ply(null,Ca(a,this.Z))};xc.prototype.toString=function(){var a=\"Function: \"+this"); + atom.Append(".S;if(this.Z.length)var b=xa(this.Z,function(a,b){return a+I(b)},\"Arguments:\"),a"); + atom.Append("=a+I(b);return a};function yc(a,b,c,d,f,e,g,k,r){this.q=a;this.m=b;this.v=c;this.I"); + atom.Append("a=d;this.Ha=f;this.t=e;this.ua=g;this.ea=m(k)?k:g;this.Ka=!!r}yc.prototype.toStrin"); + atom.Append("g=function(){return this.q};var zc={};\nfunction O(a,b,c,d,f,e,g,k){if(zc.hasOwnPr"); + atom.Append("operty(a))throw Error(\"Function already created: \"+a+\".\");zc[a]=new yc(a,b,c,d"); + atom.Append(",!1,f,e,g,k)}O(\"boolean\",2,!1,!1,function(a,b){return pc(b,a)},1);O(\"ceiling\","); + atom.Append("1,!1,!1,function(a,b){return Math.ceil(K(b,a))},1);O(\"concat\",3,!1,!1,function(a"); + atom.Append(",b){return xa(Ea(arguments,1),function(b,d){return b+L(d,a)},\"\")},2,null);O(\"co"); + atom.Append("ntains\",2,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);return-1!=b.indexOf(a)},2);O(\""); + atom.Append("count\",1,!1,!1,function(a,b){return b.evaluate(a).u()},1,1,!0);\nO(\"false\",2,!1"); + atom.Append(",!1,function(){return!1},0);O(\"floor\",1,!1,!1,function(a,b){return Math.floor(K("); + atom.Append("b,a))},1);O(\"id\",4,!1,!1,function(a,b){function c(a){if(Rb){var b=f.all[a];if(b)"); + atom.Append("{if(b.nodeType&&a==b.id)return b;if(b.length)return Aa(b,function(b){return a==b.i"); + atom.Append("d})}return null}return f.getElementById(a)}var d=a.k,f=9==d.nodeType?d:d.ownerDocu"); + atom.Append("ment,d=L(b,a).split(/\\s+/),e=[];q(d,function(a){(a=c(a))&&!Ba(e,a)&&e.push(a)});e"); + atom.Append(".sort(tb);var g=new F;q(e,function(a){g.add(a)});return g},1);\nO(\"lang\",2,!1,!1"); + atom.Append(",function(){return!1},1);O(\"last\",1,!0,!1,function(a){if(1!=arguments.length)thr"); + atom.Append("ow Error(\"Function last expects ()\");return a.r},0);O(\"local-name\",3,!1,!0,fun"); + atom.Append("ction(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.nodeName.toLowerCase():\"\"},0"); + atom.Append(",1,!0);O(\"name\",3,!1,!0,function(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.n"); + atom.Append("odeName.toLowerCase():\"\"},0,1,!0);O(\"namespace-uri\",3,!0,!1,function(){return"); + atom.Append("\"\"},0,1,!0);\nO(\"normalize-space\",3,!1,!0,function(a,b){return(b?L(b,a):E(a.k)"); + atom.Append(").replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);O(\"not\",2,!1,"); + atom.Append("!1,function(a,b){return!pc(b,a)},1);O(\"number\",1,!1,!0,function(a,b){return b?K("); + atom.Append("b,a):+E(a.k)},0,1);O(\"position\",1,!0,!1,function(a){return a.Na},0);O(\"round\","); + atom.Append("1,!1,!1,function(a,b){return Math.round(K(b,a))},1);O(\"starts-with\",2,!1,!1,func"); + atom.Append("tion(a,b,c){b=L(b,a);a=L(c,a);return 0==b.lastIndexOf(a,0)},2);O(\"string\",3,!1,!"); + atom.Append("0,function(a,b){return b?L(b,a):E(a.k)},0,1);\nO(\"string-length\",1,!1,!0,functio"); + atom.Append("n(a,b){return(b?L(b,a):E(a.k)).length},0,1);O(\"substring\",3,!1,!1,function(a,b,c"); + atom.Append(",d){c=K(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?K(d,a):Infinity"); + atom.Append(";if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.max(c,0);a=L(b"); + atom.Append(",a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a.substring(f,c+b)"); + atom.Append("},2,3);O(\"substring-after\",3,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);c=b.indexOf"); + atom.Append("(a);return-1==c?\"\":b.substring(c+a.length)},2);\nO(\"substring-before\",3,!1,!1,"); + atom.Append("function(a,b,c){b=L(b,a);a=L(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)"); + atom.Append("},2);O(\"sum\",1,!1,!1,function(a,b){for(var c=lc(b.evaluate(a)),d=0,f=c.next();f;"); + atom.Append("f=c.next())d+=+E(f);return d},1,1,!0);O(\"translate\",3,!1,!1,function(a,b,c,d){b="); + atom.Append("L(b,a);c=L(c,a);var f=L(d,a);a=[];for(d=0;da.length)throw Error"); + atom.Append("(\"Unclosed literal string\");return new Bc(a)}function $c(a){var b=a.b.next(),c=b"); + atom.Append(".indexOf(\":\");if(-1==c)return new cc(b);var d=b.substring(0,c);a=a.La(d);if(!a)t"); + atom.Append("hrow Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return new cc(b,"); + atom.Append("a)}\nfunction ad(a){var b,c=[],d;if(Hc(D(a.b))){b=a.b.next();d=D(a.b);if(\"/\"==b&"); + atom.Append("&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d))"); + atom.Append(")return new Fc;d=new Fc;Q(a,\"Missing next location step.\");b=bd(a,b);c.push(b)}e"); + atom.Append("lse{a:{b=D(a.b);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable referenc"); + atom.Append("e not allowed in HTML XPath\");case \"(\":a.b.next();b=Vc(a);Q(a,'unclosed \"(\"')"); + atom.Append(";Xc(a,\")\");break;case '\"':case \"'\":b=Zc(a);break;default:if(isNaN(+b))if(!Ac("); + atom.Append("b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==D(a.b,\n1)){b=a.b.next();b=zc[b]||null;a.b.ne"); + atom.Append("xt();for(d=[];\")\"!=D(a.b);){Q(a,\"Missing function argument list.\");d.push(Vc(a"); + atom.Append("));if(\",\"!=D(a.b))break;a.b.next()}Q(a,\"Unclosed function argument list.\");Yc("); + atom.Append("a);b=new xc(b,d)}else{b=null;break a}else b=new Cc(+a.b.next())}\"[\"==D(a.b)&&(d="); + atom.Append("new Kc(cd(a)),b=new vc(b,d))}if(b)if(Hc(D(a.b)))d=b;else return b;else b=bd(a,\"/"); + atom.Append("\"),d=new Gc,c.push(b)}for(;Hc(D(a.b));)b=a.b.next(),Q(a,\"Missing next location s"); + atom.Append("tep.\"),b=bd(a,b),c.push(b);return new Dc(d,c)}\nfunction bd(a,b){var c,d,f;if(\"/"); + atom.Append("\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\"==D(a.b)"); + atom.Append(")return d=new Lc(Rc,new G(\"node\")),a.b.next(),d;if(\"..\"==D(a.b))return d=new L"); + atom.Append("c(Qc,new G(\"node\")),a.b.next(),d;var e;if(\"@\"==D(a.b))e=Ec,a.b.next(),Q(a,\"Mi"); + atom.Append("ssing attribute name\");else if(\"::\"==D(a.b,1)){if(!/(?![0-9])[\\w]/.test(D(a.b)"); + atom.Append(".charAt(0)))throw Error(\"Bad token: \"+a.b.next());c=a.b.next();e=Pc[c]||null;if("); + atom.Append("!e)throw Error(\"No axis with name: \"+c);a.b.next();Q(a,\"Missing node name\")}el"); + atom.Append("se e=\nMc;c=D(a.b);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==D(a.b,1)){if(!A"); + atom.Append("c(c))throw Error(\"Invalid node type: \"+c);c=a.b.next();if(!Ac(c))throw Error(\"I"); + atom.Append("nvalid type name: \"+c);Xc(a,\"(\");Q(a,\"Bad nodetype\");f=D(a.b).charAt(0);var g"); + atom.Append("=null;if('\"'==f||\"'\"==f)g=Zc(a);Q(a,\"Bad nodetype\");Yc(a);c=new G(c,g)}else c"); + atom.Append("=$c(a);else if(\"*\"==c)c=$c(a);else throw Error(\"Bad token: \"+a.b.next());f=new"); + atom.Append(" Kc(cd(a),e.J);return d||new Lc(e,c,f,\"//\"==b)}\nfunction cd(a){for(var b=[];\"["); + atom.Append("\"==D(a.b);){a.b.next();Q(a,\"Missing predicate expression.\");var c=Vc(a);b.push("); + atom.Append("c);Q(a,\"Unclosed predicate expression.\");Xc(a,\"]\")}return b}function Wc(a){if("); + atom.Append("\"-\"==D(a.b))return a.b.next(),new Sc(Wc(a));var b=ad(a);if(\"|\"!=D(a.b))a=b;els"); + atom.Append("e{for(b=[b];\"|\"==a.b.next();)Q(a,\"Missing next union location path.\"),b.push(a"); + atom.Append("d(a));a.b.back();a=new Tc(b)}return a};function dd(a){switch(a.nodeType){case 1:re"); + atom.Append("turn la(ed,a);case 9:return dd(a.documentElement);case 2:return a.ownerElement?dd("); + atom.Append("a.ownerElement):fd;case 11:case 10:case 6:case 12:return fd;default:return a.paren"); + atom.Append("tNode?dd(a.parentNode):fd}}function fd(){return null}function ed(a,b){if(a.prefix="); + atom.Append("=b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNod"); + atom.Append("e(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode."); + atom.Append("nodeType?ed(a.parentNode,b):null};function gd(a,b){if(!a.length)throw Error(\"Empt"); + atom.Append("y XPath expression.\");var c=Wb(a);if(c.empty())throw Error(\"Invalid XPath expres"); + atom.Append("sion.\");b?ea(b)||(b=ka(b.lookupNamespaceURI,b)):b=function(){return null};var d=V"); + atom.Append("c(new Uc(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evaluate=f"); + atom.Append("unction(a,b){var c=d.evaluate(new Qb(a));return new R(c,b)}}\nfunction R(a,b){if(0"); + atom.Append("==b)if(a instanceof F)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typ"); + atom.Append("eof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluati"); + atom.Append("on result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof F))throw Error(\"value could not"); + atom.Append(" be converted to the specified type\");this.resultType=b;var c;switch(b){case 2:th"); + atom.Append("is.stringValue=a instanceof F?kc(a):\"\"+a;break;case 1:this.numberValue=a instanc"); + atom.Append("eof F?+kc(a):+a;break;case 3:this.booleanValue=a instanceof F?0="); + atom.Append("c.length?null:c[e++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"sn"); + atom.Append("apshotItem called with wrong result type\");return a>=\nc.length||0>a?null:c[a]}}R"); + atom.Append(".ANY_TYPE=0;R.NUMBER_TYPE=1;R.STRING_TYPE=2;R.BOOLEAN_TYPE=3;R.UNORDERED_NODE_ITER"); + atom.Append("ATOR_TYPE=4;R.ORDERED_NODE_ITERATOR_TYPE=5;R.UNORDERED_NODE_SNAPSHOT_TYPE=6;R.ORDE"); + atom.Append("RED_NODE_SNAPSHOT_TYPE=7;R.ANY_UNORDERED_NODE_TYPE=8;R.FIRST_ORDERED_NODE_TYPE=9;f"); + atom.Append("unction hd(a){this.lookupNamespaceURI=dd(a)}\nfunction id(a){a=a||l;var b=a.docume"); + atom.Append("nt;b.evaluate||(a.XPathResult=R,b.evaluate=function(a,b,f,e){return(new gd(a,f)).e"); + atom.Append("valuate(b,e)},b.createExpression=function(a,b){return new gd(a,b)},b.createNSResol"); + atom.Append("ver=function(a){return new hd(a)})};var S={};S.Ea=function(){var a={Sa:\"http://ww"); + atom.Append("w.w3.org/2000/svg\"};return function(b){return a[b]||null}}();S.t=function(a,b,c){"); + atom.Append("var d=C(a);(x||Nb)&&id(ob(d));try{var f=d.createNSResolver?d.createNSResolver(d.do"); + atom.Append("cumentElement):S.Ea;return x&&!cb(7)?d.evaluate.call(d,b,a,f,c,null):d.evaluate(b,"); + atom.Append("a,f,c,null)}catch(e){if(!z||\"NS_ERROR_ILLEGAL_VALUE\"!=e.name)throw new t(32,\"Un"); + atom.Append("able to locate an element with the xpath expression \"+b+\" because of the followi"); + atom.Append("ng error:\\n\"+e);}};\nS.$=function(a,b){if(!a||1!=a.nodeType)throw new t(32,'The "); + atom.Append("result of the xpath expression \"'+b+'\" is: '+a+\". It should be an element.\");}"); + atom.Append(";S.B=function(a,b){var c=function(){var c=S.t(b,a,9);return c?(c=c.singleNodeValue"); + atom.Append(",w?c:c||null):b.selectSingleNode?(c=C(b),c.setProperty&&c.setProperty(\"SelectionL"); + atom.Append("anguage\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||S.$(c,a);return c};"); + atom.Append("\nS.s=function(a,b){var c=function(){var c=S.t(b,a,7);if(c){var f=c.snapshotLength"); + atom.Append(";w&&!m(f)&&S.$(null,a);for(var e=[],g=0;g=this.left&&a.right<"); + atom.Append("=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.righ"); + atom.Append("t&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){fa(a)?(this.to"); + atom.Append("p-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a"); + atom.Append(",this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function(){this.to"); + atom.Append("p=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this."); + atom.Append("bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){this.top=Ma"); + atom.Append("th.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.b"); + atom.Append("ottom);this.left=Math.floor(this.left);return this};\nh.round=function(){this.top="); + atom.Append("Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this"); + atom.Append(".bottom);this.left=Math.round(this.left);return this};h.translate=function(a,b){a "); + atom.Append("instanceof jb?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(thi"); + atom.Append("s.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return this};h.scale="); + atom.Append("function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*="); + atom.Append("c;return this};function U(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height"); + atom.Append("=d}h=U.prototype;h.clone=function(){return new U(this.left,this.top,this.width,thi"); + atom.Append("s.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\" - \"+thi"); + atom.Append("s.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a instanceof U?"); + atom.Append("this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top"); + atom.Append("+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this."); + atom.Append("top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(this.left)"); + atom.Append(";this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ce"); + atom.Append("il(this.height);return this};h.floor=function(){this.left=Math.floor(this.left);th"); + atom.Append("is.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.flo"); + atom.Append("or(this.height);return this};h.round=function(){this.left=Math.round(this.left);th"); + atom.Append("is.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.rou"); + atom.Append("nd(this.height);return this};\nh.translate=function(a,b){a instanceof jb?(this.lef"); + atom.Append("t+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this};h.scale=fun"); + atom.Append("ction(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;r"); + atom.Append("eturn this};function wd(a,b){var c=C(a);return c.defaultView&&c.defaultView.getCom"); + atom.Append("putedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)"); + atom.Append("||\"\":\"\"}var xd={thin:2,medium:4,thick:6};\nfunction yd(a,b){if(\"none\"==(a.cu"); + atom.Append("rrentStyle?a.currentStyle[b+\"Style\"]:null))return 0;var c=a.currentStyle?a.curre"); + atom.Append("ntStyle[b+\"Width\"]:null,d;if(c in xd)d=xd[c];else if(/^\\d+px?$/.test(c))d=parse"); + atom.Append("Int(c,10);else{d=a.style.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.curr"); + atom.Append("entStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.lef"); + atom.Append("t=f;d=c}return d};function zd(a){var b;a:{a=C(a);try{b=a&&a.activeElement;break a}"); + atom.Append("catch(c){}b=null}return x&&b&&\"undefined\"===typeof b.nodeType?null:b}function V("); + atom.Append("a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Ad(a){var"); + atom.Append(" b;if(b=Bd(a,!0)&&Cd(a))b=!(x||w||z&&!T(\"1.9.2\")?0:\"none\"==W(a,\"pointer-event"); + atom.Append("s\"));return b}function Dd(a,b){var c;if(c=td&&\"value\"==b&&V(a,\"OPTION\"))c=nul"); + atom.Append("l===Ed(a,\"value\");c?(c=[],yb(a,c,!1),c=c.join(\"\")):c=a[b];return c}var Fd=/[;]"); + atom.Append("+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*"); + atom.Append("\\))*[^()]*$)/;\nfunction Gd(a){var b=[];q(a.split(Fd),function(a){var d=a.indexOf"); + atom.Append("(\":\");0=c&&0<=e&&255>=e&&"); + atom.Append("0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if(!c)b:{if(g=d.match(Ka))if"); + atom.Append("(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&25"); + atom.Append("5>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();\ne=Fa[c.toLowerCase()"); + atom.Append("];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e=e.replace(Ha,\"#$1$1$2$2$"); + atom.Append("3$3\")),!Ia.test(e))){c=null;break b}c=[parseInt(e.substr(1,2),16),parseInt(e.subs"); + atom.Append("tr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}ret"); + atom.Append("urn d}function Md(a,b){var c=a.currentStyle||a.style,d=c[b];!m(d)&&ea(c.getPropert"); + atom.Append("yValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d?m(d)?d:null:(c=Kd(a))?Md(c"); + atom.Append(",b):null}\nfunction Bd(a,b){function c(a){if(\"none\"==W(a,\"display\"))return!1;a"); + atom.Append("=Kd(a);return!a||c(a)}function d(a){var b=Nd(a);return 0=B.left+B.width;B=e.top>=B.top+B.height"); + atom.Append(";if(M&&\"hidden\"==s.x||B&&\"hidden\"==s.y)return Pd;if(M&&\"visible\"!=s.x||B&&\""); + atom.Append("visible\"!=s.y){if(v&&(s=f(y),e.left>=k.scrollWidth-s.x||e.right>=k.scrollHeight-s"); + atom.Append(".y))return Pd;e=Od(y);return e==Pd?Pd:\"scroll\"}}}return\"none\"}\nvar Td=/matrix"); + atom.Append("\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)("); + atom.Append("?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction Nd(a){function b(a){var c=ob(C(a)).ge"); + atom.Append("tComputedStyle(a,null).MozTransform.match(Td);if(c){var d=parseFloat(c[1]),f=parse"); + atom.Append("Float(c[2]),v=parseFloat(c[3]),y=parseFloat(c[4]),s=parseFloat(c[5]),c=parseFloat("); + atom.Append("c[6]),B=e.left+e.width,M=e.top+e.height,ba=e.left*d,d=B*d,db=e.left*f,f=B*f,eb=e.t"); + atom.Append("op*v,v=M*v,fb=e.top*y,B=M*y,M=ba+eb+s,y=db+fb+c,eb=d+eb+s,fb=f+fb+c,ba=ba+v+s,db=d"); + atom.Append("b+B+c,s=d+v+s,c=f+B+c;e.left=Math.min(M,eb,ba,s);e.top=Math.min(y,fb,db,c);s=Math."); + atom.Append("max(M,eb,ba,s);c=Math.max(y,fb,db,c);e.width=\ns-e.left;e.height=c-e.top}(a=Kd(a))"); + atom.Append("&&b(a)}var c=Qd(a);if(c)return c.rect;if(V(a,\"HTML\"))return c=C(a),a=nb(ob(c)||w"); + atom.Append("indow),new U(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catch(f){"); + atom.Append("return new U(0,0,0,0)}var e=new U(d.left,d.top,d.right-d.left,d.bottom-d.top);x&&a"); + atom.Append(".ownerDocument.body&&(c=C(a),e.left-=c.documentElement.clientLeft+c.body.clientLef"); + atom.Append("t,e.top-=c.documentElement.clientTop+c.body.clientTop);w&&(0==e.width&&02*this.G&&Me(this),!0):!1};function Me(a){if(a.G!=a.i.length){for(var "); + atom.Append("b=0,c=0;b\");Y(191,\"/\",\"?\");Y(192,\"`\",\"~\");Y(219,\"[\",\"{\");Y("); + atom.Append("220,\"\\\\\",\"|\");Y(221,\"]\",\"}\");var Uf=Y({d:59,e:186,opera:59},\";\",\":\")"); + atom.Append(";Y(222,\"'\",'\"');var Vf=[$e,Ze,of,Z],Wf=new Le;Wf.set(1,Z);Wf.set(2,Ze);Wf.set(4"); + atom.Append(",$e);Wf.set(8,of);var Xf=function(a){var b=new Le;q(Ne(a),function(c){b.set(a.get("); + atom.Append("c).code,c)});return b}(Wf);function Te(a,b,c){if(Ba(Vf,b)){var d=Xf.get(b.code),f="); + atom.Append("a.Ga;f.V=c?f.V|d:f.V&~d}c?a.ia.add(b):a.ia.remove(b)}var Yf=x||w?\"\\r\\n\":\"\\n"); + atom.Append("\";Se.prototype.h=function(a){return this.ia.contains(a)};\nfunction Zf(a,b){if(Ba"); + atom.Append("(Vf,b)&&a.h(b))throw new t(13,\"Cannot press a modifier key that is already presse"); + atom.Append("d.\");var c=null!==b.code&&$f(a,ze,b);if((c||z)&&(!ag(b)||$f(a,se,b,!c))&&c&&(bg(a"); + atom.Append(",b),a.ba))if(b.C){if(!cg){var c=dg(a,b),d=He(a.c(),!0)[0]+1;eg(a.c())?(Ke(a.c(),c)"); + atom.Append(",De(a.c(),d)):a.c().value+=c;A&&a.D(ye);ud||a.D(xe);a.p=d}}else switch(b){case Ye:"); + atom.Append("cg||(A&&a.D(ye),V(a.c(),\"TEXTAREA\")&&(c=He(a.c(),!0)[0]+Yf.length,eg(a.c())?(Ke("); + atom.Append("a.c(),Yf),De(a.c(),c)):a.c().value+=Yf,x||a.D(xe),a.p=c));break;case We:case nf:cg"); + atom.Append("||\n(fg(a.c()),c=He(a.c(),!1),c[0]==c[1]&&(b==We?(De(a.c(),c[1]-1),Ie(a.c(),c[1]))"); + atom.Append(":Ie(a.c(),c[1]+1)),c=He(a.c(),!1),c=!(c[0]==a.c().value.length||0==c[1]),Ke(a.c(),"); + atom.Append("\"\"),(!x&&c||z&&b==We)&&a.D(xe),c=He(a.c(),!1),a.p=c[1]);break;case hf:case kf:fg"); + atom.Append("(a.c());var c=a.c(),f=He(c,!0)[0],e=He(c,!1)[1],g=d=0;b==hf?a.h(Z)?a.p==f?(d=Math."); + atom.Append("max(f-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1,0):f:a.h(Z)?a.p==e?(d=f,f=g="); + atom.Append("Math.min(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?Math.min(e+1,c.value.length):"); + atom.Append("e;a.h(Z)?(De(c,\nd),Ie(c,g)):Je(c,f);a.p=f;break;case gf:case ff:fg(a.c()),c=a.c()"); + atom.Append(",d=He(c,!0)[0],g=He(c,!1)[1],b==gf?(a.h(Z)?(De(c,0),Ie(c,a.p==d?g:d)):Je(c,0),a.p="); + atom.Append("0):(a.h(Z)?(a.p==d&&De(c,g),Ie(c,c.value.length)):Je(c,c.value.length),a.p=c.value"); + atom.Append(".length)}Te(a,b,!0)}function ag(a){if(a.C||a==Ye)return!0;if(A)return!1;if(x)retur"); + atom.Append("n a==bf;switch(a){case Z:case Ze:case $e:return!1;case of:case pf:case qf:return z"); + atom.Append(";default:return!0}}\nfunction bg(a,b){if(b==Ye&&!z&&V(a.c(),\"INPUT\")){var c=zb(a"); + atom.Append(".c(),le,!0);if(c){var d=c.getElementsByTagName(\"input\");(ya(d,function(a){a:{if("); + atom.Append("V(a,\"INPUT\")){var b=a.type.toLowerCase();if(\"submit\"==b||\"image\"==b){a=!0;br"); + atom.Append("eak a}}if(V(a,\"BUTTON\")&&(b=a.type.toLowerCase(),\"submit\"==b)){a=!0;break a}a="); + atom.Append("!1}return a})||1==d.length||A&&!T(534))&&me(c)}}}function gg(a,b){if(!a.h(b))throw"); + atom.Append(" new t(13,\"Cannot release a key that is not pressed. (\"+b.code+\")\");null===b.c"); + atom.Append("ode||$f(a,Ae,b);Te(a,b,!1)}\nfunction dg(a,b){if(!b.C)throw new t(13,\"not a chara"); + atom.Append("cter key\");return a.h(Z)?b.Oa:b.C}var cg=z&&!T(12);function fg(a){try{a.selection"); + atom.Append("Start}catch(b){if(-1!=b.message.indexOf(\"does not support selection.\"))throw Err"); + atom.Append("or(b.message+\" (For more information, see https://code.google.com/p/chromium/issu"); + atom.Append("es/detail?id=330456)\");throw b;}}function eg(a){try{fg(a)}catch(b){return!1}retur"); + atom.Append("n!0}\nfunction $f(a,b,c,d){if(null===c.code)throw new t(13,\"Key must have a keyco"); + atom.Append("de to be fired.\");c={altKey:a.h($e),ctrlKey:a.h(Ze),metaKey:a.h(of),shiftKey:a.h("); + atom.Append("Z),keyCode:c.code,charCode:c.C&&b==se?dg(a,c).charCodeAt(0):0,preventDefault:!!d};"); + atom.Append("return a.ca(b,c)}\nfunction hg(a,b){ie(a,b);a.ba=Ld(b);var c;c=a.za||a.H;var d=zd("); + atom.Append("c);if(c==d)c=!1;else{if(d&&(ea(d.blur)||x&&fa(d.blur))){if(!V(d,\"BODY\"))try{d.bl"); + atom.Append("ur()}catch(f){if(!x||\"Unspecified error.\"!=f.message)throw f;}x&&!T(8)&&ob(C(c))"); + atom.Append(".focus()}ea(c.focus)||x&&fa(c.focus)?(w&&T(11)&&!Bd(c)?ne(c,we):c.focus(),c=!0):c="); + atom.Append("!1}a.ba&&c&&(Je(b,b.value.length),a.p=b.value.length)};function ig(a,b,c,d){functi"); + atom.Append("on f(a){n(a)?q(a.split(\"\"),function(a){if(1!=a.length)throw new t(13,\"Argument "); + atom.Append("not a single character: \"+a);var b=Ue[a];b||(b=a.toUpperCase(),b=Y(b.charCodeAt(0"); + atom.Append("),a.toLowerCase(),b),b={key:b,shift:a!=b.C});a=b;b=e.h(Z);a.shift&&!b&&Zf(e,Z);Zf("); + atom.Append("e,a.key);gg(e,a.key);a.shift&&!b&&gg(e,Z)}):Ba(Vf,a)?e.h(a)?gg(e,a):Zf(e,a):(Zf(e,"); + atom.Append("a),gg(e,a))}if(a!=zd(a)){if(!Ad(a))throw new t(12,\"Element is not currently inter"); + atom.Append("actable and may not be manipulated\");jg(a)}var e=c||new Se;hg(e,a);if((!Pb||\nWa)"); + atom.Append("&&A&&\"date\"==a.type){c=\"array\"==aa(b)?b=b.join(\"\"):b;var g=/\\d{4}-\\d{2}-"); + atom.Append("\\d{2}/;if(c.match(g)){Wa&&Pb&&(ne(a,Ce),ne(a,Be));ne(a,we);a.value=c.match(g)[0];"); + atom.Append("ne(a,ve);ne(a,ue);return}}\"array\"==aa(b)?q(b,f):f(b);d||q(Vf,function(a){e.h(a)&"); + atom.Append("&gg(e,a)})}function kg(a){var b=zb(a,le,!0);if(!b)throw new t(7,\"Element was not "); + atom.Append("in a form, so could not submit.\");var c=lg.Fa();ie(c,a);me(b)}function lg(){he.ca"); + atom.Append("ll(this)}p(lg,he);(function(){var a=lg;a.Fa=function(){return a.qa?a.qa:a.qa=new a"); + atom.Append("}})();\nfunction jg(a){if(\"scroll\"==Od(a,void 0)){if(a.scrollIntoView&&(a.scroll"); + atom.Append("IntoView(),\"none\"==Od(a,void 0)))return;for(var b=Sd(a,void 0),c=Kd(a);c;c=Kd(c)"); + atom.Append("){var d=c,f=Nd(d),e;var g=d;if(!x||x&&9<=hb)k=wd(g,\"borderLeftWidth\"),e=wd(g,\"b"); + atom.Append("orderRightWidth\"),r=wd(g,\"borderTopWidth\"),g=wd(g,\"borderBottomWidth\"),e=new "); + atom.Append("vd(parseFloat(r),parseFloat(e),parseFloat(g),parseFloat(k));else{var k=yd(g,\"bord"); + atom.Append("erLeft\");e=yd(g,\"borderRight\");var r=yd(g,\"borderTop\"),g=yd(g,\"borderBottom"); + atom.Append("\");e=new vd(r,e,g,k)}k=b.left-f.left-\ne.left;f=b.top-f.top-e.top;e=d.clientHeigh"); + atom.Append("t+b.top-b.bottom;d.scrollLeft+=Math.min(k,Math.max(k-(d.clientWidth+b.left-b.right"); + atom.Append("),0));d.scrollTop+=Math.min(f,Math.max(f-e,0))}Od(a,void 0)}};function $(a,b,c,d){"); + atom.Append("function f(){return{va:e,keys:[]}}var e=!!d,g=[],k=f();g.push(k);q(b,function(a){q"); + atom.Append("(a.split(\"\"),function(a){if(\"\\ue000\"<=a&&\"\\ue03d\">=a){var b=$.a[a];if(null"); + atom.Append("===b)g.push(k=f()),e&&(k.va=!1,g.push(k=f()));else if(m(b))k.keys.push(b);else thr"); + atom.Append("ow Error(\"Unsupported WebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}else "); + atom.Append("switch(a){case \"\\n\":k.keys.push(Ye);break;case \"\\t\":k.keys.push(Xe);break;ca"); + atom.Append("se \"\\b\":k.keys.push(We);break;default:k.keys.push(a)}})});q(g,function(b){ig(a,"); + atom.Append("b.keys,c,b.va)})}\n$.a={};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=We;$.a[\"\\ue004"); + atom.Append("\"]=Xe;$.a[\"\\ue006\"]=Ye;$.a[\"\\ue007\"]=Ye;$.a[\"\\ue008\"]=Z;$.a[\"\\ue009\"]"); + atom.Append("=Ze;$.a[\"\\ue00a\"]=$e;$.a[\"\\ue00b\"]=af;$.a[\"\\ue00c\"]=bf;$.a[\"\\ue00d\"]=c"); + atom.Append("f;$.a[\"\\ue00e\"]=df;$.a[\"\\ue00f\"]=ef;$.a[\"\\ue010\"]=ff;$.a[\"\\ue011\"]=gf;"); + atom.Append("$.a[\"\\ue012\"]=hf;$.a[\"\\ue013\"]=jf;$.a[\"\\ue014\"]=kf;$.a[\"\\ue015\"]=lf;$."); + atom.Append("a[\"\\ue016\"]=mf;$.a[\"\\ue017\"]=nf;$.a[\"\\ue018\"]=Uf;$.a[\"\\ue019\"]=Sf;$.a["); + atom.Append("\"\\ue01a\"]=rf;$.a[\"\\ue01b\"]=sf;$.a[\"\\ue01c\"]=tf;$.a[\"\\ue01d\"]=uf;$.a[\""); + atom.Append("\\ue01e\"]=vf;$.a[\"\\ue01f\"]=wf;\n$.a[\"\\ue020\"]=xf;$.a[\"\\ue021\"]=yf;$.a[\""); + atom.Append("\\ue022\"]=zf;$.a[\"\\ue023\"]=Af;$.a[\"\\ue024\"]=Bf;$.a[\"\\ue025\"]=Cf;$.a[\""); + atom.Append("\\ue027\"]=Df;$.a[\"\\ue028\"]=Ef;$.a[\"\\ue029\"]=Ff;$.a[\"\\ue026\"]=Tf;$.a[\""); + atom.Append("\\ue031\"]=Gf;$.a[\"\\ue032\"]=Hf;$.a[\"\\ue033\"]=If;$.a[\"\\ue034\"]=Jf;$.a[\""); + atom.Append("\\ue035\"]=Kf;$.a[\"\\ue036\"]=Lf;$.a[\"\\ue037\"]=Mf;$.a[\"\\ue038\"]=Nf;$.a[\""); + atom.Append("\\ue039\"]=Of;$.a[\"\\ue03a\"]=Pf;$.a[\"\\ue03b\"]=Qf;$.a[\"\\ue03c\"]=Rf;$.a[\""); + atom.Append("\\ue03d\"]=of;function mg(){this.W=void 0}\nfunction ng(a,b,c){switch(typeof b){ca"); + atom.Append("se \"string\":og(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null"); + atom.Append("\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");bre"); + atom.Append("ak;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==aa(b)){var d=b"); + atom.Append(".length;c.push(\"[\");for(var f=\"\",e=0;eb?f+=\"000"); + atom.Append("\":256>b?f+=\"00\":4096>b&&(f+=\"0\");return pg[a]=f+b.toString(16)}),'\"')};A||w|"); + atom.Append("|z&&T(3.5)||x&&T(8);function rg(a){switch(aa(a)){case \"string\":case \"number\":c"); + atom.Append("ase \"boolean\":return a;case \"function\":return a.toString();case \"array\":retu"); + atom.Append("rn wa(a,rg);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){v"); + atom.Append("ar b={};b.ELEMENT=sg(a);return b}if(\"document\"in a)return b={},b.WINDOW=sg(a),b;"); + atom.Append("if(ca(a))return wa(a,rg);a=Qa(a,function(a,b){return da(b)||n(b)});return Ra(a,rg)"); + atom.Append(";default:return null}}\nfunction tg(a,b){return\"array\"==aa(a)?wa(a,function(a){r"); + atom.Append("eturn tg(a,b)}):fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?ug(a.ELEMENT,b):\"W"); + atom.Append("INDOW\"in a?ug(a.WINDOW,b):Ra(a,function(a){return tg(a,b)}):a}function vg(a){a=a|"); + atom.Append("|document;var b=a.$wdc_;b||(b=a.$wdc_={},b.ga=ma());b.ga||(b.ga=ma());return b}fun"); + atom.Append("ction sg(a){var b=vg(a.ownerDocument),c=Ta(b,function(b){return b==a});c||(c=\":wd"); + atom.Append("c:\"+b.ga++,b[c]=a);return c}\nfunction ug(a,b){a=decodeURIComponent(a);var c=b||d"); + atom.Append("ocument,d=vg(c);if(!(a in d))throw new t(10,\"Element does not exist in cache\");v"); + atom.Append("ar f=d[a];if(\"setInterval\"in f){if(f.closed)throw delete d[a],new t(23,\"Window "); + atom.Append("has been closed.\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e."); + atom.Append("parentNode}delete d[a];throw new t(10,\"Element is no longer attached to the DOM\""); + atom.Append(");};function wg(a,b){var c=[a],d;try{var f=b?ug(b.WINDOW):window,e=tg(c,f.document"); + atom.Append("),g=kg.apply(null,e);d={status:0,value:rg(g)}}catch(k){d={status:\"code\"in k?k.co"); + atom.Append("de:13,value:{message:k.message}}}c=[];ng(new mg,d,c);return c.join(\"\")}var xg=["); + atom.Append("\"_\"],yg=l;xg[0]in yg||!yg.execScript||yg.execScript(\"var \"+xg[0]);for(var zg;x"); + atom.Append("g.length&&(zg=xg.shift());)!xg.length&&m(wg)?yg[zg]=wg:yg=yg[zg]?yg[zg]:yg[zg]={};"); + atom.Append("; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?"); + atom.Append("window.navigator:null,document:typeof window!=undefined?window.document:null}, arg"); + atom.Append("uments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string Clear + { + get + { + const string atomName = "Clear"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function m(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction n(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==aa(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ia(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ja(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ta(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var ua=Array.prototype;function q(a,b,c){for(va"); + atom.Append("r d=a.length,f=n(a)?a.split(\"\"):a,e=0;ec?null:n(a)?a.charAt(c):a[c]}\nfunction Ba(a,b){var c;a:if(n(a))c=n(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?ua.slice.call(a,b):ua.slice.call(a,b,"); + atom.Append("c)};var Fa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ga=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ha=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ia=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ja=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,Ka=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function t(a,b){this.code=a;this.state=La[a]||Ma;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}p("); + atom.Append("t,Error);\nvar Ma=\"unknown error\",La={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};La[13]=Ma;La[9]=\"unknown command\";t.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var u;a:{var Na=l.navigator;if(Na){var Oa=Na.userA"); + atom.Append("gent;if(Oa){u=Oa;break a}}u=\"\"}function Pa(a){return-1!=u.indexOf(a)};function Q"); + atom.Append("a(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}functio"); + atom.Append("n Ra(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Sa("); + atom.Append("a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a,b){for(var c in a)"); + atom.Append("if(b.call(void 0,a[c],c,a))return c};var Ua,Va,w=Pa(\"Opera\")||Pa(\"OPR\"),x=Pa("); + atom.Append("\"Trident\")||Pa(\"MSIE\"),z=Pa(\"Gecko\")&&-1==u.toLowerCase().indexOf(\"webkit\""); + atom.Append(")&&!(Pa(\"Trident\")||Pa(\"MSIE\")),A=-1!=u.toLowerCase().indexOf(\"webkit\"),Wa=A"); + atom.Append("&&Pa(\"Mobile\"),Xa,Ya=l.navigator||null;Xa=Ya&&Ya.platform||\"\";Ua=-1!=Xa.indexO"); + atom.Append("f(\"Mac\");Va=-1!=Xa.indexOf(\"Win\");var Za=-1!=Xa.indexOf(\"Linux\");function $a"); + atom.Append("(){var a=l.document;return a?a.documentMode:void 0}\nvar ab=function(){var a=\"\","); + atom.Append("b;if(w&&l.opera)return a=l.opera.version,ea(a)?a():a;z?b=/rv\\:([^\\);]+)(\\)|;)/:"); + atom.Append("x?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:A&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec"); + atom.Append("(u))?a[1]:\"\");return x&&(b=$a(),b>parseFloat(a))?String(b):a}(),bb={};function f"); + atom.Append("b(a){return bb[a]||(bb[a]=0<=ra(ab,a))}var gb=l.document,hb=gb&&x?$a()||(\"CSS1Com"); + atom.Append("pat\"==gb.compatMode?parseInt(ab,10):5):void 0;!z&&!x||x&&x&&9<=hb||z&&fb(\"1.9.1"); + atom.Append("\");x&&fb(\"9\");function ib(a,b,c){return Math.min(Math.max(a,b),c)};function jb("); + atom.Append("a,b){this.x=m(a)?a:0;this.y=m(b)?b:0}h=jb.prototype;h.clone=function(){return new "); + atom.Append("jb(this.x,this.y)};h.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"};h"); + atom.Append(".ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h."); + atom.Append("floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};"); + atom.Append("h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this"); + atom.Append("};\nh.translate=function(a,b){a instanceof jb?(this.x+=a.x,this.y+=a.y):(this.x+=a"); + atom.Append(",da(b)&&(this.y+=b));return this};h.scale=function(a,b){var c=da(b)?b:a;this.x*=a;"); + atom.Append("this.y*=c;return this};function kb(a,b){this.width=a;this.height=b}h=kb.prototype;"); + atom.Append("h.clone=function(){return new kb(this.width,this.height)};h.toString=function(){re"); + atom.Append("turn\"(\"+this.width+\" x \"+this.height+\")\"};h.ceil=function(){this.width=Math."); + atom.Append("ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function("); + atom.Append("){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return thi"); + atom.Append("s};h.round=function(){this.width=Math.round(this.width);this.height=Math.round(thi"); + atom.Append("s.height);return this};\nh.scale=function(a,b){var c=da(b)?b:a;this.width*=a;this."); + atom.Append("height*=c;return this};function lb(a){return a?new mb(C(a)):oa||(oa=new mb)}functi"); + atom.Append("on nb(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;retu"); + atom.Append("rn new kb(a.clientWidth,a.clientHeight)}function ob(a){return a?a.parentWindow||a."); + atom.Append("defaultView:window}function pb(a,b,c){function d(c){c&&b.appendChild(n(c)?a.create"); + atom.Append("TextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),Yb=/^\\s/;function D(a,b){return a.j"); + atom.Append("a[a.T+(b||0)]}Vb.prototype.next=function(){return this.ja[this.T++]};Vb.prototype."); + atom.Append("back=function(){this.T--};Vb.prototype.empty=function(){return this.ja.length<=thi"); + atom.Append("s.T};function E(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||nul"); + atom.Append("l==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Rb&&\"t"); + atom.Append("itle\"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.docum"); + atom.Append("entElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeVa"); + atom.Append("lue),Rb&&\"title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.first"); + atom.Append("Child);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunct"); + atom.Append("ion Zb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return"); + atom.Append("!1}Sb&&\"class\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAtt"); + atom.Append("ribute(b,2)==c}function $b(a,b,c,d,f){return(Rb?ac:bc).call(null,a,b,n(c)?c:null,n"); + atom.Append("(d)?d:null,f||new F)}\nfunction ac(a,b,c,d,f){if(a instanceof cc||8==a.f||c&&null="); + atom.Append("==a.f){var e=b.all;if(!e)return f;a=dc(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a"); + atom.Append("),!e))return f;if(c){for(var g=[],k=0;b=e[k++];)Zb(b,c,d)&&g.push(b);e=g}for(k=0;b"); + atom.Append("=e[k++];)\"*\"==a&&\"!\"==b.tagName||f.add(b);return f}ec(a,b,c,d,f);return f}\nfu"); + atom.Append("nction bc(a,b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!x?(b=b.getElementsByNam"); + atom.Append("e(d),q(b,function(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"clas"); + atom.Append("s\"==c?(b=b.getElementsByClassName(d),q(b,function(b){b.className==d&&a.matches(b)"); + atom.Append("&&f.add(b)})):a instanceof G?ec(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElement"); + atom.Append("sByTagName(a.getName()),q(b,function(a){Zb(a,c,d)&&f.add(a)}));return f}\nfunction"); + atom.Append(" fc(a,b,c,d,f){var e;if((a instanceof cc||8==a.f||c&&null===a.f)&&(e=b.childNodes)"); + atom.Append("){var g=dc(a);if(\"*\"!=g&&(e=va(e,function(a){return a.tagName&&a.tagName.toLower"); + atom.Append("Case()==g}),!e))return f;c&&(e=va(e,function(a){return Zb(a,c,d)}));q(e,function(a"); + atom.Append("){\"*\"==g&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}retur"); + atom.Append("n gc(a,b,c,d,f)}function gc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)Zb(b,c"); + atom.Append(",d)&&a.matches(b)&&f.add(b);return f}\nfunction ec(a,b,c,d,f){for(b=b.firstChild;b"); + atom.Append(";b=b.nextSibling)Zb(b,c,d)&&a.matches(b)&&f.add(b),ec(a,b,c,d,f)}function dc(a){if"); + atom.Append("(a instanceof G){if(8==a.f)return\"!\";if(null===a.f)return\"*\"}return a.getName("); + atom.Append(")};function F(){this.r=this.n=null;this.P=0}function hc(a){this.I=a;this.next=this"); + atom.Append(".F=null}function ic(a,b){if(!a.n)return b;if(!b.n)return a;for(var c=a.n,d=b.n,f=n"); + atom.Append("ull,e=null,g=0;c&&d;){var e=c.I,k=d.I;e==k||e instanceof Tb&&k instanceof Tb&&e.k="); + atom.Append("=k.k?(e=c,c=c.next,d=d.next):0\",4,2,function(a,b,c){return sc(function"); + atom.Append("(a,b){return a>b},a,b,c)});N(\"<=\",4,2,function(a,b,c){return sc(function(a,b){re"); + atom.Append("turn a<=b},a,b,c)});N(\">=\",4,2,function(a,b,c){return sc(function(a,b){return a>"); + atom.Append("=b},a,b,c)});var rc=N(\"=\",3,2,function(a,b,c){return sc(function(a,b){return a=="); + atom.Append("b},a,b,c,!0)});N(\"!=\",3,2,function(a,b,c){return sc(function(a,b){return a!=b},a"); + atom.Append(",b,c,!0)});N(\"and\",2,2,function(a,b,c){return pc(a,c)&&pc(b,c)});N(\"or\",1,2,fu"); + atom.Append("nction(a,b,c){return pc(a,c)||pc(b,c)});function vc(a,b){if(b.u()&&4!=a.m)throw Er"); + atom.Append("ror(\"Primary expression must evaluate to nodeset if filter has predicate(s).\");H"); + atom.Append(".call(this,a.m);this.xa=a;this.g=b;this.v=a.l();this.o=a.o}p(vc,H);vc.prototype.ev"); + atom.Append("aluate=function(a){a=this.xa.evaluate(a);return wc(this.g,a)};vc.prototype.toStrin"); + atom.Append("g=function(){var a;a=\"Filter:\"+I(this.xa);return a+=I(this.g)};function xc(a,b){"); + atom.Append("if(b.lengtha.ea)throw Error(\"Function"); + atom.Append(" \"+a.q+\" expects at most \"+a.ea+\" arguments, \"+b.length+\" given\");a.Ka&&q(b"); + atom.Append(",function(b,d){if(4!=b.m)throw Error(\"Argument \"+d+\" to function \"+a.q+\" is n"); + atom.Append("ot of type Nodeset: \"+b);});H.call(this,a.m);this.S=a;this.Z=b;nc(this,a.v||ya(b,"); + atom.Append("function(a){return a.l()}));oc(this,a.Ia&&!b.length||a.Ha&&!!b.length||ya(b,functi"); + atom.Append("on(a){return a.o}))}\np(xc,H);xc.prototype.evaluate=function(a){return this.S.t.ap"); + atom.Append("ply(null,Ca(a,this.Z))};xc.prototype.toString=function(){var a=\"Function: \"+this"); + atom.Append(".S;if(this.Z.length)var b=xa(this.Z,function(a,b){return a+I(b)},\"Arguments:\"),a"); + atom.Append("=a+I(b);return a};function yc(a,b,c,d,f,e,g,k,r){this.q=a;this.m=b;this.v=c;this.I"); + atom.Append("a=d;this.Ha=f;this.t=e;this.ua=g;this.ea=m(k)?k:g;this.Ka=!!r}yc.prototype.toStrin"); + atom.Append("g=function(){return this.q};var zc={};\nfunction O(a,b,c,d,f,e,g,k){if(zc.hasOwnPr"); + atom.Append("operty(a))throw Error(\"Function already created: \"+a+\".\");zc[a]=new yc(a,b,c,d"); + atom.Append(",!1,f,e,g,k)}O(\"boolean\",2,!1,!1,function(a,b){return pc(b,a)},1);O(\"ceiling\","); + atom.Append("1,!1,!1,function(a,b){return Math.ceil(K(b,a))},1);O(\"concat\",3,!1,!1,function(a"); + atom.Append(",b){return xa(Ea(arguments,1),function(b,d){return b+L(d,a)},\"\")},2,null);O(\"co"); + atom.Append("ntains\",2,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);return-1!=b.indexOf(a)},2);O(\""); + atom.Append("count\",1,!1,!1,function(a,b){return b.evaluate(a).u()},1,1,!0);\nO(\"false\",2,!1"); + atom.Append(",!1,function(){return!1},0);O(\"floor\",1,!1,!1,function(a,b){return Math.floor(K("); + atom.Append("b,a))},1);O(\"id\",4,!1,!1,function(a,b){function c(a){if(Rb){var b=f.all[a];if(b)"); + atom.Append("{if(b.nodeType&&a==b.id)return b;if(b.length)return Aa(b,function(b){return a==b.i"); + atom.Append("d})}return null}return f.getElementById(a)}var d=a.k,f=9==d.nodeType?d:d.ownerDocu"); + atom.Append("ment,d=L(b,a).split(/\\s+/),e=[];q(d,function(a){(a=c(a))&&!Ba(e,a)&&e.push(a)});e"); + atom.Append(".sort(tb);var g=new F;q(e,function(a){g.add(a)});return g},1);\nO(\"lang\",2,!1,!1"); + atom.Append(",function(){return!1},1);O(\"last\",1,!0,!1,function(a){if(1!=arguments.length)thr"); + atom.Append("ow Error(\"Function last expects ()\");return a.r},0);O(\"local-name\",3,!1,!0,fun"); + atom.Append("ction(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.nodeName.toLowerCase():\"\"},0"); + atom.Append(",1,!0);O(\"name\",3,!1,!0,function(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.n"); + atom.Append("odeName.toLowerCase():\"\"},0,1,!0);O(\"namespace-uri\",3,!0,!1,function(){return"); + atom.Append("\"\"},0,1,!0);\nO(\"normalize-space\",3,!1,!0,function(a,b){return(b?L(b,a):E(a.k)"); + atom.Append(").replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);O(\"not\",2,!1,"); + atom.Append("!1,function(a,b){return!pc(b,a)},1);O(\"number\",1,!1,!0,function(a,b){return b?K("); + atom.Append("b,a):+E(a.k)},0,1);O(\"position\",1,!0,!1,function(a){return a.Na},0);O(\"round\","); + atom.Append("1,!1,!1,function(a,b){return Math.round(K(b,a))},1);O(\"starts-with\",2,!1,!1,func"); + atom.Append("tion(a,b,c){b=L(b,a);a=L(c,a);return 0==b.lastIndexOf(a,0)},2);O(\"string\",3,!1,!"); + atom.Append("0,function(a,b){return b?L(b,a):E(a.k)},0,1);\nO(\"string-length\",1,!1,!0,functio"); + atom.Append("n(a,b){return(b?L(b,a):E(a.k)).length},0,1);O(\"substring\",3,!1,!1,function(a,b,c"); + atom.Append(",d){c=K(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?K(d,a):Infinity"); + atom.Append(";if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.max(c,0);a=L(b"); + atom.Append(",a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a.substring(f,c+b)"); + atom.Append("},2,3);O(\"substring-after\",3,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);c=b.indexOf"); + atom.Append("(a);return-1==c?\"\":b.substring(c+a.length)},2);\nO(\"substring-before\",3,!1,!1,"); + atom.Append("function(a,b,c){b=L(b,a);a=L(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)"); + atom.Append("},2);O(\"sum\",1,!1,!1,function(a,b){for(var c=lc(b.evaluate(a)),d=0,f=c.next();f;"); + atom.Append("f=c.next())d+=+E(f);return d},1,1,!0);O(\"translate\",3,!1,!1,function(a,b,c,d){b="); + atom.Append("L(b,a);c=L(c,a);var f=L(d,a);a=[];for(d=0;da.length)throw Error"); + atom.Append("(\"Unclosed literal string\");return new Bc(a)}function $c(a){var b=a.b.next(),c=b"); + atom.Append(".indexOf(\":\");if(-1==c)return new cc(b);var d=b.substring(0,c);a=a.La(d);if(!a)t"); + atom.Append("hrow Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return new cc(b,"); + atom.Append("a)}\nfunction ad(a){var b,c=[],d;if(Hc(D(a.b))){b=a.b.next();d=D(a.b);if(\"/\"==b&"); + atom.Append("&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d))"); + atom.Append(")return new Fc;d=new Fc;Q(a,\"Missing next location step.\");b=bd(a,b);c.push(b)}e"); + atom.Append("lse{a:{b=D(a.b);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable referenc"); + atom.Append("e not allowed in HTML XPath\");case \"(\":a.b.next();b=Vc(a);Q(a,'unclosed \"(\"')"); + atom.Append(";Xc(a,\")\");break;case '\"':case \"'\":b=Zc(a);break;default:if(isNaN(+b))if(!Ac("); + atom.Append("b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==D(a.b,\n1)){b=a.b.next();b=zc[b]||null;a.b.ne"); + atom.Append("xt();for(d=[];\")\"!=D(a.b);){Q(a,\"Missing function argument list.\");d.push(Vc(a"); + atom.Append("));if(\",\"!=D(a.b))break;a.b.next()}Q(a,\"Unclosed function argument list.\");Yc("); + atom.Append("a);b=new xc(b,d)}else{b=null;break a}else b=new Cc(+a.b.next())}\"[\"==D(a.b)&&(d="); + atom.Append("new Kc(cd(a)),b=new vc(b,d))}if(b)if(Hc(D(a.b)))d=b;else return b;else b=bd(a,\"/"); + atom.Append("\"),d=new Gc,c.push(b)}for(;Hc(D(a.b));)b=a.b.next(),Q(a,\"Missing next location s"); + atom.Append("tep.\"),b=bd(a,b),c.push(b);return new Dc(d,c)}\nfunction bd(a,b){var c,d,f;if(\"/"); + atom.Append("\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\"==D(a.b)"); + atom.Append(")return d=new Lc(Rc,new G(\"node\")),a.b.next(),d;if(\"..\"==D(a.b))return d=new L"); + atom.Append("c(Qc,new G(\"node\")),a.b.next(),d;var e;if(\"@\"==D(a.b))e=Ec,a.b.next(),Q(a,\"Mi"); + atom.Append("ssing attribute name\");else if(\"::\"==D(a.b,1)){if(!/(?![0-9])[\\w]/.test(D(a.b)"); + atom.Append(".charAt(0)))throw Error(\"Bad token: \"+a.b.next());c=a.b.next();e=Pc[c]||null;if("); + atom.Append("!e)throw Error(\"No axis with name: \"+c);a.b.next();Q(a,\"Missing node name\")}el"); + atom.Append("se e=\nMc;c=D(a.b);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==D(a.b,1)){if(!A"); + atom.Append("c(c))throw Error(\"Invalid node type: \"+c);c=a.b.next();if(!Ac(c))throw Error(\"I"); + atom.Append("nvalid type name: \"+c);Xc(a,\"(\");Q(a,\"Bad nodetype\");f=D(a.b).charAt(0);var g"); + atom.Append("=null;if('\"'==f||\"'\"==f)g=Zc(a);Q(a,\"Bad nodetype\");Yc(a);c=new G(c,g)}else c"); + atom.Append("=$c(a);else if(\"*\"==c)c=$c(a);else throw Error(\"Bad token: \"+a.b.next());f=new"); + atom.Append(" Kc(cd(a),e.J);return d||new Lc(e,c,f,\"//\"==b)}\nfunction cd(a){for(var b=[];\"["); + atom.Append("\"==D(a.b);){a.b.next();Q(a,\"Missing predicate expression.\");var c=Vc(a);b.push("); + atom.Append("c);Q(a,\"Unclosed predicate expression.\");Xc(a,\"]\")}return b}function Wc(a){if("); + atom.Append("\"-\"==D(a.b))return a.b.next(),new Sc(Wc(a));var b=ad(a);if(\"|\"!=D(a.b))a=b;els"); + atom.Append("e{for(b=[b];\"|\"==a.b.next();)Q(a,\"Missing next union location path.\"),b.push(a"); + atom.Append("d(a));a.b.back();a=new Tc(b)}return a};function dd(a){switch(a.nodeType){case 1:re"); + atom.Append("turn la(ed,a);case 9:return dd(a.documentElement);case 2:return a.ownerElement?dd("); + atom.Append("a.ownerElement):fd;case 11:case 10:case 6:case 12:return fd;default:return a.paren"); + atom.Append("tNode?dd(a.parentNode):fd}}function fd(){return null}function ed(a,b){if(a.prefix="); + atom.Append("=b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNod"); + atom.Append("e(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode."); + atom.Append("nodeType?ed(a.parentNode,b):null};function gd(a,b){if(!a.length)throw Error(\"Empt"); + atom.Append("y XPath expression.\");var c=Wb(a);if(c.empty())throw Error(\"Invalid XPath expres"); + atom.Append("sion.\");b?ea(b)||(b=ka(b.lookupNamespaceURI,b)):b=function(){return null};var d=V"); + atom.Append("c(new Uc(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evaluate=f"); + atom.Append("unction(a,b){var c=d.evaluate(new Qb(a));return new R(c,b)}}\nfunction R(a,b){if(0"); + atom.Append("==b)if(a instanceof F)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typ"); + atom.Append("eof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluati"); + atom.Append("on result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof F))throw Error(\"value could not"); + atom.Append(" be converted to the specified type\");this.resultType=b;var c;switch(b){case 2:th"); + atom.Append("is.stringValue=a instanceof F?kc(a):\"\"+a;break;case 1:this.numberValue=a instanc"); + atom.Append("eof F?+kc(a):+a;break;case 3:this.booleanValue=a instanceof F?0="); + atom.Append("c.length?null:c[e++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"sn"); + atom.Append("apshotItem called with wrong result type\");return a>=\nc.length||0>a?null:c[a]}}R"); + atom.Append(".ANY_TYPE=0;R.NUMBER_TYPE=1;R.STRING_TYPE=2;R.BOOLEAN_TYPE=3;R.UNORDERED_NODE_ITER"); + atom.Append("ATOR_TYPE=4;R.ORDERED_NODE_ITERATOR_TYPE=5;R.UNORDERED_NODE_SNAPSHOT_TYPE=6;R.ORDE"); + atom.Append("RED_NODE_SNAPSHOT_TYPE=7;R.ANY_UNORDERED_NODE_TYPE=8;R.FIRST_ORDERED_NODE_TYPE=9;f"); + atom.Append("unction hd(a){this.lookupNamespaceURI=dd(a)}\nfunction id(a){a=a||l;var b=a.docume"); + atom.Append("nt;b.evaluate||(a.XPathResult=R,b.evaluate=function(a,b,f,e){return(new gd(a,f)).e"); + atom.Append("valuate(b,e)},b.createExpression=function(a,b){return new gd(a,b)},b.createNSResol"); + atom.Append("ver=function(a){return new hd(a)})};var S={};S.Ea=function(){var a={Sa:\"http://ww"); + atom.Append("w.w3.org/2000/svg\"};return function(b){return a[b]||null}}();S.t=function(a,b,c){"); + atom.Append("var d=C(a);(x||Nb)&&id(ob(d));try{var f=d.createNSResolver?d.createNSResolver(d.do"); + atom.Append("cumentElement):S.Ea;return x&&!fb(7)?d.evaluate.call(d,b,a,f,c,null):d.evaluate(b,"); + atom.Append("a,f,c,null)}catch(e){if(!z||\"NS_ERROR_ILLEGAL_VALUE\"!=e.name)throw new t(32,\"Un"); + atom.Append("able to locate an element with the xpath expression \"+b+\" because of the followi"); + atom.Append("ng error:\\n\"+e);}};\nS.$=function(a,b){if(!a||1!=a.nodeType)throw new t(32,'The "); + atom.Append("result of the xpath expression \"'+b+'\" is: '+a+\". It should be an element.\");}"); + atom.Append(";S.B=function(a,b){var c=function(){var c=S.t(b,a,9);return c?(c=c.singleNodeValue"); + atom.Append(",w?c:c||null):b.selectSingleNode?(c=C(b),c.setProperty&&c.setProperty(\"SelectionL"); + atom.Append("anguage\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||S.$(c,a);return c};"); + atom.Append("\nS.s=function(a,b){var c=function(){var c=S.t(b,a,7);if(c){var f=c.snapshotLength"); + atom.Append(";w&&!m(f)&&S.$(null,a);for(var e=[],g=0;g=this.left&&a.right<"); + atom.Append("=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.righ"); + atom.Append("t&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){fa(a)?(this.to"); + atom.Append("p-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a"); + atom.Append(",this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function(){this.to"); + atom.Append("p=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this."); + atom.Append("bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){this.top=Ma"); + atom.Append("th.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.b"); + atom.Append("ottom);this.left=Math.floor(this.left);return this};\nh.round=function(){this.top="); + atom.Append("Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this"); + atom.Append(".bottom);this.left=Math.round(this.left);return this};h.translate=function(a,b){a "); + atom.Append("instanceof jb?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(thi"); + atom.Append("s.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return this};h.scale="); + atom.Append("function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*="); + atom.Append("c;return this};function U(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height"); + atom.Append("=d}h=U.prototype;h.clone=function(){return new U(this.left,this.top,this.width,thi"); + atom.Append("s.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\" - \"+thi"); + atom.Append("s.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a instanceof U?"); + atom.Append("this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top"); + atom.Append("+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this."); + atom.Append("top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(this.left)"); + atom.Append(";this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ce"); + atom.Append("il(this.height);return this};h.floor=function(){this.left=Math.floor(this.left);th"); + atom.Append("is.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.flo"); + atom.Append("or(this.height);return this};h.round=function(){this.left=Math.round(this.left);th"); + atom.Append("is.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.rou"); + atom.Append("nd(this.height);return this};\nh.translate=function(a,b){a instanceof jb?(this.lef"); + atom.Append("t+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this};h.scale=fun"); + atom.Append("ction(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;r"); + atom.Append("eturn this};function wd(a,b){var c=C(a);return c.defaultView&&c.defaultView.getCom"); + atom.Append("putedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)"); + atom.Append("||\"\":\"\"}var xd={thin:2,medium:4,thick:6};\nfunction yd(a,b){if(\"none\"==(a.cu"); + atom.Append("rrentStyle?a.currentStyle[b+\"Style\"]:null))return 0;var c=a.currentStyle?a.curre"); + atom.Append("ntStyle[b+\"Width\"]:null,d;if(c in xd)d=xd[c];else if(/^\\d+px?$/.test(c))d=parse"); + atom.Append("Int(c,10);else{d=a.style.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.curr"); + atom.Append("entStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.lef"); + atom.Append("t=f;d=c}return d};function zd(a){var b;a:{a=C(a);try{b=a&&a.activeElement;break a}"); + atom.Append("catch(c){}b=null}return x&&b&&\"undefined\"===typeof b.nodeType?null:b}function V("); + atom.Append("a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Ad(a,b){v"); + atom.Append("ar c;if(c=td&&\"value\"==b&&V(a,\"OPTION\"))c=null===Bd(a,\"value\");c?(c=[],yb(a,"); + atom.Append("c,!1),c=c.join(\"\")):c=a[b];return c}var Cd=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)("); + atom.Append("?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction Dd(a){va"); + atom.Append("r b=[];q(a.split(Cd),function(a){var d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,"); + atom.Append("g,f];break b}}c=null}if(!c)b:{if(g=d.match(Ka))if(c=Number(g[1]),e=Number(g[2]),g="); + atom.Append("Number(g[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}"); + atom.Append("if(!c)b:{c=d.toLowerCase();\ne=Fa[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:"); + atom.Append("\"#\"+c,4==e.length&&(e=e.replace(Ha,\"#$1$1$2$2$3$3\")),!Ia.test(e))){c=null;brea"); + atom.Append("k b}c=[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2"); + atom.Append("),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}return d}function Kd(a,b){var c=a.cu"); + atom.Append("rrentStyle||a.style,d=c[b];!m(d)&&ea(c.getPropertyValue)&&(d=c.getPropertyValue(b)"); + atom.Append(");return\"inherit\"!=d?m(d)?d:null:(c=Id(a))?Kd(c,b):null}\nfunction Ld(a,b){funct"); + atom.Append("ion c(a){if(\"none\"==W(a,\"display\"))return!1;a=Id(a);return!a||c(a)}function d("); + atom.Append("a){var b=Md(a);return 0=B.left+B.width;B=e.top>=B.top+B.height;if(M&&\"hidden\"==s.x||B&&\"hi"); + atom.Append("dden\"==s.y)return Od;if(M&&\"visible\"!=s.x||B&&\"visible\"!=s.y){if(v&&(s=f(y),e"); + atom.Append(".left>=k.scrollWidth-s.x||e.right>=k.scrollHeight-s.y))return Od;e=Nd(y);return e="); + atom.Append("=Od?Od:\"scroll\"}}}return\"none\"}\nvar Sd=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]"); + atom.Append("+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?"); + atom.Append("\\)/;\nfunction Md(a){function b(a){var c=ob(C(a)).getComputedStyle(a,null).MozTra"); + atom.Append("nsform.match(Sd);if(c){var d=parseFloat(c[1]),f=parseFloat(c[2]),v=parseFloat(c[3]"); + atom.Append("),y=parseFloat(c[4]),s=parseFloat(c[5]),c=parseFloat(c[6]),B=e.left+e.width,M=e.to"); + atom.Append("p+e.height,ba=e.left*d,d=B*d,cb=e.left*f,f=B*f,db=e.top*v,v=M*v,eb=e.top*y,B=M*y,M"); + atom.Append("=ba+db+s,y=cb+eb+c,db=d+db+s,eb=f+eb+c,ba=ba+v+s,cb=cb+B+c,s=d+v+s,c=f+B+c;e.left="); + atom.Append("Math.min(M,db,ba,s);e.top=Math.min(y,eb,cb,c);s=Math.max(M,db,ba,s);c=Math.max(y,e"); + atom.Append("b,cb,c);e.width=\ns-e.left;e.height=c-e.top}(a=Id(a))&&b(a)}var c=Pd(a);if(c)retur"); + atom.Append("n c.rect;if(V(a,\"HTML\"))return c=C(a),a=nb(ob(c)||window),new U(0,0,a.width,a.he"); + atom.Append("ight);var d;try{d=a.getBoundingClientRect()}catch(f){return new U(0,0,0,0)}var e=n"); + atom.Append("ew U(d.left,d.top,d.right-d.left,d.bottom-d.top);x&&a.ownerDocument.body&&(c=C(a),"); + atom.Append("e.left-=c.documentElement.clientLeft+c.body.clientLeft,e.top-=c.documentElement.cl"); + atom.Append("ientTop+c.body.clientTop);w&&(0==e.width&&02*this.G&&Me(this),!0):!1};function Me(a){if(a.G!=a.i.le"); + atom.Append("ngth){for(var b=0,c=0;b\");Y(191,\"/\",\"?\");Y(192,\"`\",\"~\");Y(219"); + atom.Append(",\"[\",\"{\");Y(220,\"\\\\\",\"|\");Y(221,\"]\",\"}\");var Uf=Y({d:59,e:186,opera:"); + atom.Append("59},\";\",\":\");Y(222,\"'\",'\"');var Vf=[$e,Ze,of,Z],Wf=new Le;Wf.set(1,Z);Wf.se"); + atom.Append("t(2,Ze);Wf.set(4,$e);Wf.set(8,of);var Xf=function(a){var b=new Le;q(Ne(a),function"); + atom.Append("(c){b.set(a.get(c).code,c)});return b}(Wf);function Te(a,b,c){if(Ba(Vf,b)){var d=X"); + atom.Append("f.get(b.code),f=a.Ga;f.V=c?f.V|d:f.V&~d}c?a.ia.add(b):a.ia.remove(b)}var Yf=x||w?"); + atom.Append("\"\\r\\n\":\"\\n\";Se.prototype.h=function(a){return this.ia.contains(a)};\nfuncti"); + atom.Append("on Zf(a,b){if(Ba(Vf,b)&&a.h(b))throw new t(13,\"Cannot press a modifier key that i"); + atom.Append("s already pressed.\");var c=null!==b.code&&$f(a,ze,b);if((c||z)&&(!ag(b)||$f(a,te,"); + atom.Append("b,!c))&&c&&(bg(a,b),a.ba))if(b.C){if(!cg){var c=dg(a,b),d=He(a.c(),!0)[0]+1;eg(a.c"); + atom.Append("())?(Ke(a.c(),c),De(a.c(),d)):a.c().value+=c;A&&a.D(ye);ud||a.D(xe);a.p=d}}else sw"); + atom.Append("itch(b){case Ye:cg||(A&&a.D(ye),V(a.c(),\"TEXTAREA\")&&(c=He(a.c(),!0)[0]+Yf.lengt"); + atom.Append("h,eg(a.c())?(Ke(a.c(),Yf),De(a.c(),c)):a.c().value+=Yf,x||a.D(xe),a.p=c));break;ca"); + atom.Append("se We:case nf:cg||\n(fg(a.c()),c=He(a.c(),!1),c[0]==c[1]&&(b==We?(De(a.c(),c[1]-1)"); + atom.Append(",Ie(a.c(),c[1])):Ie(a.c(),c[1]+1)),c=He(a.c(),!1),c=!(c[0]==a.c().value.length||0="); + atom.Append("=c[1]),Ke(a.c(),\"\"),(!x&&c||z&&b==We)&&a.D(xe),c=He(a.c(),!1),a.p=c[1]);break;ca"); + atom.Append("se hf:case kf:fg(a.c());var c=a.c(),f=He(c,!0)[0],e=He(c,!1)[1],g=d=0;b==hf?a.h(Z)"); + atom.Append("?a.p==f?(d=Math.max(f-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1,0):f:a.h(Z)?"); + atom.Append("a.p==e?(d=f,f=g=Math.min(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?Math.min(e+1,"); + atom.Append("c.value.length):e;a.h(Z)?(De(c,\nd),Ie(c,g)):Je(c,f);a.p=f;break;case gf:case ff:f"); + atom.Append("g(a.c()),c=a.c(),d=He(c,!0)[0],g=He(c,!1)[1],b==gf?(a.h(Z)?(De(c,0),Ie(c,a.p==d?g:"); + atom.Append("d)):Je(c,0),a.p=0):(a.h(Z)?(a.p==d&&De(c,g),Ie(c,c.value.length)):Je(c,c.value.len"); + atom.Append("gth),a.p=c.value.length)}Te(a,b,!0)}function ag(a){if(a.C||a==Ye)return!0;if(A)ret"); + atom.Append("urn!1;if(x)return a==bf;switch(a){case Z:case Ze:case $e:return!1;case of:case pf:"); + atom.Append("case qf:return z;default:return!0}}\nfunction bg(a,b){if(b==Ye&&!z&&V(a.c(),\"INPU"); + atom.Append("T\")){var c=zb(a.c(),ne,!0);if(c){var d=c.getElementsByTagName(\"input\");(ya(d,fu"); + atom.Append("nction(a){a:{if(V(a,\"INPUT\")){var b=a.type.toLowerCase();if(\"submit\"==b||\"ima"); + atom.Append("ge\"==b){a=!0;break a}}if(V(a,\"BUTTON\")&&(b=a.type.toLowerCase(),\"submit\"==b))"); + atom.Append("{a=!0;break a}a=!1}return a})||1==d.length||A&&!T(534))&&oe(c)}}}function gg(a,b){"); + atom.Append("if(!a.h(b))throw new t(13,\"Cannot release a key that is not pressed. (\"+b.code+"); + atom.Append("\")\");null===b.code||$f(a,Ae,b);Te(a,b,!1)}\nfunction dg(a,b){if(!b.C)throw new t"); + atom.Append("(13,\"not a character key\");return a.h(Z)?b.Oa:b.C}var cg=z&&!T(12);function fg(a"); + atom.Append("){try{a.selectionStart}catch(b){if(-1!=b.message.indexOf(\"does not support select"); + atom.Append("ion.\"))throw Error(b.message+\" (For more information, see https://code.google.co"); + atom.Append("m/p/chromium/issues/detail?id=330456)\");throw b;}}function eg(a){try{fg(a)}catch("); + atom.Append("b){return!1}return!0}\nfunction $f(a,b,c,d){if(null===c.code)throw new t(13,\"Key "); + atom.Append("must have a keycode to be fired.\");c={altKey:a.h($e),ctrlKey:a.h(Ze),metaKey:a.h("); + atom.Append("of),shiftKey:a.h(Z),keyCode:c.code,charCode:c.C&&b==te?dg(a,c).charCodeAt(0):0,pre"); + atom.Append("ventDefault:!!d};return a.ca(b,c)}function hg(a,b){he(a,b);a.ba=Jd(b);var c=ke(a);"); + atom.Append("a.ba&&c&&(Je(b,b.value.length),a.p=b.value.length)};function ig(a){var b;if(b=Ld(a"); + atom.Append(",!0)&&Fd(a))b=!(x||w||z&&!T(\"1.9.2\")?0:\"none\"==W(a,\"pointer-events\"));if(!b)"); + atom.Append("throw new t(12,\"Element is not currently interactable and may not be manipulated"); + atom.Append("\");}function jg(a){ig(a);if(!Jd(a))throw new t(12,\"Element must be user-editable"); + atom.Append(" in order to clear it.\");var b=kg.Fa();he(b,a);ke(b);a.value&&(a.value=\"\",le(a,"); + atom.Append("we));Hd(a)&&(a.innerHTML=\" \")}\nfunction lg(a,b,c,d){function f(a){n(a)?q(a.spli"); + atom.Append("t(\"\"),function(a){if(1!=a.length)throw new t(13,\"Argument not a single characte"); + atom.Append("r: \"+a);var b=Ue[a];b||(b=a.toUpperCase(),b=Y(b.charCodeAt(0),a.toLowerCase(),b),"); + atom.Append("b={key:b,shift:a!=b.C});a=b;b=e.h(Z);a.shift&&!b&&Zf(e,Z);Zf(e,a.key);gg(e,a.key);"); + atom.Append("a.shift&&!b&&gg(e,Z)}):Ba(Vf,a)?e.h(a)?gg(e,a):Zf(e,a):(Zf(e,a),gg(e,a))}a!=zd(a)&"); + atom.Append("&(ig(a),mg(a));var e=c||new Se;hg(e,a);if((!Pb||Wa)&&A&&\"date\"==a.type){c=\"arra"); + atom.Append("y\"==aa(b)?b=b.join(\"\"):b;var g=/\\d{4}-\\d{2}-\\d{2}/;\nif(c.match(g)){Wa&&Pb&&"); + atom.Append("(le(a,Ce),le(a,Be));le(a,me);a.value=c.match(g)[0];le(a,we);le(a,ve);return}}\"arr"); + atom.Append("ay\"==aa(b)?q(b,f):f(b);d||q(Vf,function(a){e.h(a)&&gg(e,a)})}function kg(){ge.cal"); + atom.Append("l(this)}p(kg,ge);(function(){var a=kg;a.Fa=function(){return a.qa?a.qa:a.qa=new a}"); + atom.Append("})();\nfunction mg(a){if(\"scroll\"==Nd(a,void 0)){if(a.scrollIntoView&&(a.scrollI"); + atom.Append("ntoView(),\"none\"==Nd(a,void 0)))return;for(var b=Rd(a,void 0),c=Id(a);c;c=Id(c))"); + atom.Append("{var d=c,f=Md(d),e;var g=d;if(!x||x&&9<=hb)k=wd(g,\"borderLeftWidth\"),e=wd(g,\"bo"); + atom.Append("rderRightWidth\"),r=wd(g,\"borderTopWidth\"),g=wd(g,\"borderBottomWidth\"),e=new v"); + atom.Append("d(parseFloat(r),parseFloat(e),parseFloat(g),parseFloat(k));else{var k=yd(g,\"borde"); + atom.Append("rLeft\");e=yd(g,\"borderRight\");var r=yd(g,\"borderTop\"),g=yd(g,\"borderBottom\""); + atom.Append(");e=new vd(r,e,g,k)}k=b.left-f.left-\ne.left;f=b.top-f.top-e.top;e=d.clientHeight+"); + atom.Append("b.top-b.bottom;d.scrollLeft+=Math.min(k,Math.max(k-(d.clientWidth+b.left-b.right),"); + atom.Append("0));d.scrollTop+=Math.min(f,Math.max(f-e,0))}Nd(a,void 0)}};function $(a,b,c,d){fu"); + atom.Append("nction f(){return{va:e,keys:[]}}var e=!!d,g=[],k=f();g.push(k);q(b,function(a){q(a"); + atom.Append(".split(\"\"),function(a){if(\"\\ue000\"<=a&&\"\\ue03d\">=a){var b=$.a[a];if(null=="); + atom.Append("=b)g.push(k=f()),e&&(k.va=!1,g.push(k=f()));else if(m(b))k.keys.push(b);else throw"); + atom.Append(" Error(\"Unsupported WebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}else sw"); + atom.Append("itch(a){case \"\\n\":k.keys.push(Ye);break;case \"\\t\":k.keys.push(Xe);break;case"); + atom.Append(" \"\\b\":k.keys.push(We);break;default:k.keys.push(a)}})});q(g,function(b){lg(a,b."); + atom.Append("keys,c,b.va)})}\n$.a={};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=We;$.a[\"\\ue004\"]"); + atom.Append("=Xe;$.a[\"\\ue006\"]=Ye;$.a[\"\\ue007\"]=Ye;$.a[\"\\ue008\"]=Z;$.a[\"\\ue009\"]=Ze"); + atom.Append(";$.a[\"\\ue00a\"]=$e;$.a[\"\\ue00b\"]=af;$.a[\"\\ue00c\"]=bf;$.a[\"\\ue00d\"]=cf;$"); + atom.Append(".a[\"\\ue00e\"]=df;$.a[\"\\ue00f\"]=ef;$.a[\"\\ue010\"]=ff;$.a[\"\\ue011\"]=gf;$.a"); + atom.Append("[\"\\ue012\"]=hf;$.a[\"\\ue013\"]=jf;$.a[\"\\ue014\"]=kf;$.a[\"\\ue015\"]=lf;$.a["); + atom.Append("\"\\ue016\"]=mf;$.a[\"\\ue017\"]=nf;$.a[\"\\ue018\"]=Uf;$.a[\"\\ue019\"]=Sf;$.a[\""); + atom.Append("\\ue01a\"]=rf;$.a[\"\\ue01b\"]=sf;$.a[\"\\ue01c\"]=tf;$.a[\"\\ue01d\"]=uf;$.a[\""); + atom.Append("\\ue01e\"]=vf;$.a[\"\\ue01f\"]=wf;\n$.a[\"\\ue020\"]=xf;$.a[\"\\ue021\"]=yf;$.a[\""); + atom.Append("\\ue022\"]=zf;$.a[\"\\ue023\"]=Af;$.a[\"\\ue024\"]=Bf;$.a[\"\\ue025\"]=Cf;$.a[\""); + atom.Append("\\ue027\"]=Df;$.a[\"\\ue028\"]=Ef;$.a[\"\\ue029\"]=Ff;$.a[\"\\ue026\"]=Tf;$.a[\""); + atom.Append("\\ue031\"]=Gf;$.a[\"\\ue032\"]=Hf;$.a[\"\\ue033\"]=If;$.a[\"\\ue034\"]=Jf;$.a[\""); + atom.Append("\\ue035\"]=Kf;$.a[\"\\ue036\"]=Lf;$.a[\"\\ue037\"]=Mf;$.a[\"\\ue038\"]=Nf;$.a[\""); + atom.Append("\\ue039\"]=Of;$.a[\"\\ue03a\"]=Pf;$.a[\"\\ue03b\"]=Qf;$.a[\"\\ue03c\"]=Rf;$.a[\""); + atom.Append("\\ue03d\"]=of;function ng(){this.W=void 0}\nfunction og(a,b,c){switch(typeof b){ca"); + atom.Append("se \"string\":pg(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null"); + atom.Append("\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");bre"); + atom.Append("ak;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==aa(b)){var d=b"); + atom.Append(".length;c.push(\"[\");for(var f=\"\",e=0;eb?f+=\"000"); + atom.Append("\":256>b?f+=\"00\":4096>b&&(f+=\"0\");return qg[a]=f+b.toString(16)}),'\"')};A||w|"); + atom.Append("|z&&T(3.5)||x&&T(8);function sg(a){switch(aa(a)){case \"string\":case \"number\":c"); + atom.Append("ase \"boolean\":return a;case \"function\":return a.toString();case \"array\":retu"); + atom.Append("rn wa(a,sg);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){v"); + atom.Append("ar b={};b.ELEMENT=tg(a);return b}if(\"document\"in a)return b={},b.WINDOW=tg(a),b;"); + atom.Append("if(ca(a))return wa(a,sg);a=Qa(a,function(a,b){return da(b)||n(b)});return Ra(a,sg)"); + atom.Append(";default:return null}}\nfunction ug(a,b){return\"array\"==aa(a)?wa(a,function(a){r"); + atom.Append("eturn ug(a,b)}):fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?vg(a.ELEMENT,b):\"W"); + atom.Append("INDOW\"in a?vg(a.WINDOW,b):Ra(a,function(a){return ug(a,b)}):a}function wg(a){a=a|"); + atom.Append("|document;var b=a.$wdc_;b||(b=a.$wdc_={},b.ga=ma());b.ga||(b.ga=ma());return b}fun"); + atom.Append("ction tg(a){var b=wg(a.ownerDocument),c=Ta(b,function(b){return b==a});c||(c=\":wd"); + atom.Append("c:\"+b.ga++,b[c]=a);return c}\nfunction vg(a,b){a=decodeURIComponent(a);var c=b||d"); + atom.Append("ocument,d=wg(c);if(!(a in d))throw new t(10,\"Element does not exist in cache\");v"); + atom.Append("ar f=d[a];if(\"setInterval\"in f){if(f.closed)throw delete d[a],new t(23,\"Window "); + atom.Append("has been closed.\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e."); + atom.Append("parentNode}delete d[a];throw new t(10,\"Element is no longer attached to the DOM\""); + atom.Append(");};function xg(a,b){var c=[a],d;try{var f=b?vg(b.WINDOW):window,e=ug(c,f.document"); + atom.Append("),g=jg.apply(null,e);d={status:0,value:sg(g)}}catch(k){d={status:\"code\"in k?k.co"); + atom.Append("de:13,value:{message:k.message}}}c=[];og(new ng,d,c);return c.join(\"\")}var yg=["); + atom.Append("\"_\"],zg=l;yg[0]in zg||!zg.execScript||zg.execScript(\"var \"+yg[0]);for(var Ag;y"); + atom.Append("g.length&&(Ag=yg.shift());)!yg.length&&m(xg)?zg[Ag]=xg:zg=zg[Ag]?zg[Ag]:zg[Ag]={};"); + atom.Append("; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?"); + atom.Append("window.navigator:null,document:typeof window!=undefined?window.document:null}, arg"); + atom.Append("uments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string Click + { + get + { + const string atomName = "Click"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,aa=this;function l(a){return void 0!==a}\nfunct"); + atom.Append("ion ba(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"arra"); + atom.Append("y\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"["); + atom.Append("object Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof "); + atom.Append("a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumer"); + atom.Append("able&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\""); + atom.Append("==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!"); + atom.Append("a.propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=ba(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction m(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==ba(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ka(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ua(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var va=Array.prototype;function p(a,b,c){for(va"); + atom.Append("r d=a.length,f=m(a)?a.split(\"\"):a,e=0;ec?null:m(a)?a.charAt(c):a[c]}\nfunction Ca(a,b){var c;a:if(m(a))c=m(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?va.slice.call(a,b):va.slice.call(a,b,"); + atom.Append("c)};var Ga={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ha=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ia=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ja=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ka=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,La=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function r(a,b){this.code=a;this.state=Ma[a]||Na;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}n("); + atom.Append("r,Error);\nvar Na=\"unknown error\",Ma={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};Ma[13]=Na;Ma[9]=\"unknown command\";r.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var Oa;a:{var Pa=aa.navigator;if(Pa){var Qa=Pa.use"); + atom.Append("rAgent;if(Qa){Oa=Qa;break a}}Oa=\"\"}function Ra(a){return-1!=Oa.indexOf(a)};funct"); + atom.Append("ion Sa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}fu"); + atom.Append("nction Ta(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}functio"); + atom.Append("n Ua(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Va(a,b){for(var c "); + atom.Append("in a)if(b.call(void 0,a[c],c,a))return c};var Wa,Xa,s=Ra(\"Opera\")||Ra(\"OPR\"),t"); + atom.Append("=Ra(\"Trident\")||Ra(\"MSIE\"),v=Ra(\"Gecko\")&&-1==Oa.toLowerCase().indexOf(\"web"); + atom.Append("kit\")&&!(Ra(\"Trident\")||Ra(\"MSIE\")),x=-1!=Oa.toLowerCase().indexOf(\"webkit\""); + atom.Append("),Ya=x&&Ra(\"Mobile\"),Za,$a=aa.navigator||null;Za=$a&&$a.platform||\"\";Wa=-1!=Za"); + atom.Append(".indexOf(\"Mac\");Xa=-1!=Za.indexOf(\"Win\");var ab=-1!=Za.indexOf(\"Linux\");func"); + atom.Append("tion bb(){var a=aa.document;return a?a.documentMode:void 0}\nvar cb=function(){var"); + atom.Append(" a=\"\",b;if(s&&aa.opera)return a=aa.opera.version,ea(a)?a():a;v?b=/rv\\:([^\\);]+"); + atom.Append(")(\\)|;)/:t?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:x&&(b=/WebKit\\/(\\S+)/);b&&(a"); + atom.Append("=(a=b.exec(Oa))?a[1]:\"\");return t&&(b=bb(),b>parseFloat(a))?String(b):a}(),db={}"); + atom.Append(";function eb(a){return db[a]||(db[a]=0<=sa(cb,a))}function fb(a){return t&&gb>=a}v"); + atom.Append("ar hb=aa.document,gb=hb&&t?bb()||(\"CSS1Compat\"==hb.compatMode?parseInt(cb,10):5)"); + atom.Append(":void 0;!v&&!t||t&&fb(9)||v&&eb(\"1.9.1\");t&&eb(\"9\");function ib(a,b,c){return "); + atom.Append("Math.min(Math.max(a,b),c)};function y(a,b){this.x=l(a)?a:0;this.y=l(b)?b:0}h=y.pro"); + atom.Append("totype;h.clone=function(){return new y(this.x,this.y)};h.toString=function(){retur"); + atom.Append("n\"(\"+this.x+\", \"+this.y+\")\"};h.ceil=function(){this.x=Math.ceil(this.x);this"); + atom.Append(".y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);thi"); + atom.Append("s.y=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);t"); + atom.Append("his.y=Math.round(this.y);return this};\nh.translate=function(a,b){a instanceof y?("); + atom.Append("this.x+=a.x,this.y+=a.y):(this.x+=a,da(b)&&(this.y+=b));return this};h.scale=funct"); + atom.Append("ion(a,b){var c=da(b)?b:a;this.x*=a;this.y*=c;return this};function jb(a,b){this.wi"); + atom.Append("dth=a;this.height=b}h=jb.prototype;h.clone=function(){return new jb(this.width,thi"); + atom.Append("s.height)};h.toString=function(){return\"(\"+this.width+\" x \"+this.height+\")\"}"); + atom.Append(";h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.hei"); + atom.Append("ght);return this};h.floor=function(){this.width=Math.floor(this.width);this.height"); + atom.Append("=Math.floor(this.height);return this};h.round=function(){this.width=Math.round(thi"); + atom.Append("s.width);this.height=Math.round(this.height);return this};\nh.scale=function(a,b){"); + atom.Append("var c=da(b)?b:a;this.width*=a;this.height*=c;return this};function kb(a){return a?"); + atom.Append("new lb(z(a)):pa||(pa=new lb)}function mb(a){a=a.document;a=\"CSS1Compat\"==a.compa"); + atom.Append("tMode?a.documentElement:a.body;return new jb(a.clientWidth,a.clientHeight)}functio"); + atom.Append("n nb(a){return x||\"CSS1Compat\"!=a.compatMode?a.body||a.documentElement:a.documen"); + atom.Append("tElement}function A(a){return a?a.parentWindow||a.defaultView:window}\nfunction ob"); + atom.Append("(a,b,c){function d(c){c&&b.appendChild(m(c)?a.createTextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),ac=/^\\s/;function C(a,b){return a.ta[a.ba+("); + atom.Append("b||0)]}Yb.prototype.next=function(){return this.ta[this.ba++]};Yb.prototype.back=f"); + atom.Append("unction(){this.ba--};Yb.prototype.empty=function(){return this.ta.length<=this.ba}"); + atom.Append(";function bc(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null=="); + atom.Append("b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Ub&&\"titl"); + atom.Append("e\"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.document"); + atom.Append("Element:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue"); + atom.Append("),Ub&&\"title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChi"); + atom.Append("ld);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction"); + atom.Append(" cc(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}"); + atom.Append("Vb&&\"class\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAttrib"); + atom.Append("ute(b,2)==c}function dc(a,b,c,d,f){return(Ub?ec:fc).call(null,a,b,m(c)?c:null,m(d)"); + atom.Append("?d:null,f||new D)}\nfunction ec(a,b,c,d,f){if(a instanceof gc||8==a.g||c&&null===a"); + atom.Append(".g){var e=b.all;if(!e)return f;a=hc(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a),!"); + atom.Append("e))return f;if(c){for(var g=[],k=0;b=e[k++];)cc(b,c,d)&&g.push(b);e=g}for(k=0;b=e["); + atom.Append("k++];)\"*\"==a&&\"!\"==b.tagName||f.add(b);return f}ic(a,b,c,d,f);return f}\nfunct"); + atom.Append("ion fc(a,b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!t?(b=b.getElementsByName(d"); + atom.Append("),p(b,function(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"class\""); + atom.Append("==c?(b=b.getElementsByClassName(d),p(b,function(b){b.className==d&&a.matches(b)&&f"); + atom.Append(".add(b)})):a instanceof jc?ic(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElementsB"); + atom.Append("yTagName(a.getName()),p(b,function(a){cc(a,c,d)&&f.add(a)}));return f}\nfunction k"); + atom.Append("c(a,b,c,d,f){var e;if((a instanceof gc||8==a.g||c&&null===a.g)&&(e=b.childNodes)){"); + atom.Append("var g=hc(a);if(\"*\"!=g&&(e=wa(e,function(a){return a.tagName&&a.tagName.toLowerCa"); + atom.Append("se()==g}),!e))return f;c&&(e=wa(e,function(a){return cc(a,c,d)}));p(e,function(a){"); + atom.Append("\"*\"==g&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}return "); + atom.Append("lc(a,b,c,d,f)}function lc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)cc(b,c,d"); + atom.Append(")&&a.matches(b)&&f.add(b);return f}\nfunction ic(a,b,c,d,f){for(b=b.firstChild;b;b"); + atom.Append("=b.nextSibling)cc(b,c,d)&&a.matches(b)&&f.add(b),ic(a,b,c,d,f)}function hc(a){if(a"); + atom.Append(" instanceof jc){if(8==a.g)return\"!\";if(null===a.g)return\"*\"}return a.getName()"); + atom.Append("};function D(){this.u=this.o=null;this.U=0}function mc(a){this.P=a;this.next=this."); + atom.Append("N=null}function nc(a,b){if(!a.o)return b;if(!b.o)return a;for(var c=a.o,d=b.o,f=nu"); + atom.Append("ll,e=null,g=0;c&&d;){var e=c.P,k=d.P;e==k||e instanceof Wb&&k instanceof Wb&&e.l=="); + atom.Append("k.l?(e=c,c=c.next,d=d.next):0\",4,2,function(a,b,c){return xc(fu"); + atom.Append("nction(a,b){return a>b},a,b,c)});K(\"<=\",4,2,function(a,b,c){return xc(function(a"); + atom.Append(",b){return a<=b},a,b,c)});K(\">=\",4,2,function(a,b,c){return xc(function(a,b){ret"); + atom.Append("urn a>=b},a,b,c)});var wc=K(\"=\",3,2,function(a,b,c){return xc(function(a,b){retu"); + atom.Append("rn a==b},a,b,c,!0)});K(\"!=\",3,2,function(a,b,c){return xc(function(a,b){return a"); + atom.Append("!=b},a,b,c,!0)});K(\"and\",2,2,function(a,b,c){return uc(a,c)&&uc(b,c)});K(\"or\","); + atom.Append("1,2,function(a,b,c){return uc(a,c)||uc(b,c)});function Ac(a,b){if(b.A()&&4!=a.n)th"); + atom.Append("row Error(\"Primary expression must evaluate to nodeset if filter has predicate(s)"); + atom.Append(".\");E.call(this,a.n);this.Fa=a;this.i=b;this.B=a.m();this.p=a.p}n(Ac,E);Ac.protot"); + atom.Append("ype.evaluate=function(a){a=this.Fa.evaluate(a);return Bc(this.i,a)};Ac.prototype.t"); + atom.Append("oString=function(){var a;a=\"Filter:\"+G(this.Fa);return a+=G(this.i)};function Cc"); + atom.Append("(a,b){if(b.lengtha.oa)throw Error(\"Fu"); + atom.Append("nction \"+a.t+\" expects at most \"+a.oa+\" arguments, \"+b.length+\" given\");a.P"); + atom.Append("a&&p(b,function(b,d){if(4!=b.n)throw Error(\"Argument \"+d+\" to function \"+a.t+"); + atom.Append("\" is not of type Nodeset: \"+b);});E.call(this,a.n);this.aa=a;this.ha=b;sc(this,a"); + atom.Append(".B||za(b,function(a){return a.m()}));tc(this,a.Na&&!b.length||a.Ma&&!!b.length||za"); + atom.Append("(b,function(a){return a.p}))}\nn(Cc,E);Cc.prototype.evaluate=function(a){return th"); + atom.Append("is.aa.w.apply(null,Da(a,this.ha))};Cc.prototype.toString=function(){var a=\"Functi"); + atom.Append("on: \"+this.aa;if(this.ha.length)var b=ya(this.ha,function(a,b){return a+G(b)},\"A"); + atom.Append("rguments:\"),a=a+G(b);return a};function Dc(a,b,c,d,f,e,g,k,q){this.t=a;this.n=b;t"); + atom.Append("his.B=c;this.Na=d;this.Ma=f;this.w=e;this.Ca=g;this.oa=l(k)?k:g;this.Pa=!!q}Dc.pro"); + atom.Append("totype.toString=function(){return this.t};var Ec={};\nfunction L(a,b,c,d,f,e,g,k){"); + atom.Append("if(Ec.hasOwnProperty(a))throw Error(\"Function already created: \"+a+\".\");Ec[a]="); + atom.Append("new Dc(a,b,c,d,!1,f,e,g,k)}L(\"boolean\",2,!1,!1,function(a,b){return uc(b,a)},1);"); + atom.Append("L(\"ceiling\",1,!1,!1,function(a,b){return Math.ceil(I(b,a))},1);L(\"concat\",3,!1"); + atom.Append(",!1,function(a,b){return ya(Fa(arguments,1),function(b,d){return b+J(d,a)},\"\")},"); + atom.Append("2,null);L(\"contains\",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return-1!=b.index"); + atom.Append("Of(a)},2);L(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).A()},1,1,!0);\nL("); + atom.Append("\"false\",2,!1,!1,function(){return!1},0);L(\"floor\",1,!1,!1,function(a,b){return"); + atom.Append(" Math.floor(I(b,a))},1);L(\"id\",4,!1,!1,function(a,b){function c(a){if(Ub){var b="); + atom.Append("f.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return Ba(b,function(b)"); + atom.Append("{return a==b.id})}return null}return f.getElementById(a)}var d=a.l,f=9==d.nodeType"); + atom.Append("?d:d.ownerDocument,d=J(b,a).split(/\\s+/),e=[];p(d,function(a){(a=c(a))&&!Ca(e,a)&"); + atom.Append("&e.push(a)});e.sort(vb);var g=new D;p(e,function(a){g.add(a)});return g},1);\nL(\""); + atom.Append("lang\",2,!1,!1,function(){return!1},1);L(\"last\",1,!0,!1,function(a){if(1!=argume"); + atom.Append("nts.length)throw Error(\"Function last expects ()\");return a.u},0);L(\"local-name"); + atom.Append("\",3,!1,!0,function(a,b){var c=b?oc(b.evaluate(a)):a.l;return c?c.nodeName.toLower"); + atom.Append("Case():\"\"},0,1,!0);L(\"name\",3,!1,!0,function(a,b){var c=b?oc(b.evaluate(a)):a."); + atom.Append("l;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);L(\"namespace-uri\",3,!0,!1,func"); + atom.Append("tion(){return\"\"},0,1,!0);\nL(\"normalize-space\",3,!1,!0,function(a,b){return(b?"); + atom.Append("J(b,a):bc(a.l)).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);L"); + atom.Append("(\"not\",2,!1,!1,function(a,b){return!uc(b,a)},1);L(\"number\",1,!1,!0,function(a,"); + atom.Append("b){return b?I(b,a):+bc(a.l)},0,1);L(\"position\",1,!0,!1,function(a){return a.Sa},"); + atom.Append("0);L(\"round\",1,!1,!1,function(a,b){return Math.round(I(b,a))},1);L(\"starts-with"); + atom.Append("\",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return 0==b.lastIndexOf(a,0)},2);L(\""); + atom.Append("string\",3,!1,!0,function(a,b){return b?J(b,a):bc(a.l)},0,1);\nL(\"string-length\""); + atom.Append(",1,!1,!0,function(a,b){return(b?J(b,a):bc(a.l)).length},0,1);L(\"substring\",3,!1,"); + atom.Append("!1,function(a,b,c,d){c=I(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d="); + atom.Append("d?I(d,a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Ma"); + atom.Append("th.max(c,0);a=J(b,a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a"); + atom.Append(".substring(f,c+b)},2,3);L(\"substring-after\",3,!1,!1,function(a,b,c){b=J(b,a);a=J"); + atom.Append("(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nL(\"substring-"); + atom.Append("before\",3,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);a=b.indexOf(a);return-1==a?\"\""); + atom.Append(":b.substring(0,a)},2);L(\"sum\",1,!1,!1,function(a,b){for(var c=qc(b.evaluate(a)),"); + atom.Append("d=0,f=c.next();f;f=c.next())d+=+bc(f);return d},1,1,!0);L(\"translate\",3,!1,!1,fu"); + atom.Append("nction(a,b,c,d){b=J(b,a);c=J(c,a);var f=J(d,a);a=[];for(d=0;da.length)throw Error(\"Unclosed literal string\");return new Gc(a)}"); + atom.Append("function ed(a){var b=a.b.next(),c=b.indexOf(\":\");if(-1==c)return new gc(b);var d"); + atom.Append("=b.substring(0,c);a=a.Qa(d);if(!a)throw Error(\"Namespace prefix not declared: \"+"); + atom.Append("d);b=b.substr(c+1);return new gc(b,a)}\nfunction fd(a){var b,c=[],d;if(Mc(C(a.b)))"); + atom.Append("{b=a.b.next();d=C(a.b);if(\"/\"==b&&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&"); + atom.Append("\"*\"!=d&&!/(?![0-9])[\\w]/.test(d)))return new Kc;d=new Kc;N(a,\"Missing next loc"); + atom.Append("ation step.\");b=gd(a,b);c.push(b)}else{a:{b=C(a.b);d=b.charAt(0);switch(d){case "); + atom.Append("\"$\":throw Error(\"Variable reference not allowed in HTML XPath\");case \"(\":a.b"); + atom.Append(".next();b=$c(a);N(a,'unclosed \"(\"');bd(a,\")\");break;case '\"':case \"'\":b=dd("); + atom.Append("a);break;default:if(isNaN(+b))if(!Fc(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==C(a.b,\n"); + atom.Append("1)){b=a.b.next();b=Ec[b]||null;a.b.next();for(d=[];\")\"!=C(a.b);){N(a,\"Missing f"); + atom.Append("unction argument list.\");d.push($c(a));if(\",\"!=C(a.b))break;a.b.next()}N(a,\"Un"); + atom.Append("closed function argument list.\");cd(a);b=new Cc(b,d)}else{b=null;break a}else b=n"); + atom.Append("ew Hc(+a.b.next())}\"[\"==C(a.b)&&(d=new Pc(hd(a)),b=new Ac(b,d))}if(b)if(Mc(C(a.b"); + atom.Append(")))d=b;else return b;else b=gd(a,\"/\"),d=new Lc,c.push(b)}for(;Mc(C(a.b));)b=a.b."); + atom.Append("next(),N(a,\"Missing next location step.\"),b=gd(a,b),c.push(b);return new Ic(d,c)"); + atom.Append("}\nfunction gd(a,b){var c,d,f;if(\"/\"!=b&&\"//\"!=b)throw Error('Step op should b"); + atom.Append("e \"/\" or \"//\"');if(\".\"==C(a.b))return d=new Qc(Wc,new jc(\"node\")),a.b.next"); + atom.Append("(),d;if(\"..\"==C(a.b))return d=new Qc(Vc,new jc(\"node\")),a.b.next(),d;var e;if("); + atom.Append("\"@\"==C(a.b))e=Jc,a.b.next(),N(a,\"Missing attribute name\");else if(\"::\"==C(a."); + atom.Append("b,1)){if(!/(?![0-9])[\\w]/.test(C(a.b).charAt(0)))throw Error(\"Bad token: \"+a.b."); + atom.Append("next());c=a.b.next();e=Uc[c]||null;if(!e)throw Error(\"No axis with name: \"+c);a."); + atom.Append("b.next();N(a,\"Missing node name\")}else e=\nRc;c=C(a.b);if(/(?![0-9])[\\w]/.test("); + atom.Append("c.charAt(0)))if(\"(\"==C(a.b,1)){if(!Fc(c))throw Error(\"Invalid node type: \"+c);"); + atom.Append("c=a.b.next();if(!Fc(c))throw Error(\"Invalid type name: \"+c);bd(a,\"(\");N(a,\"Ba"); + atom.Append("d nodetype\");f=C(a.b).charAt(0);var g=null;if('\"'==f||\"'\"==f)g=dd(a);N(a,\"Bad"); + atom.Append(" nodetype\");cd(a);c=new jc(c,g)}else c=ed(a);else if(\"*\"==c)c=ed(a);else throw "); + atom.Append("Error(\"Bad token: \"+a.b.next());f=new Pc(hd(a),e.Q);return d||new Qc(e,c,f,\"//"); + atom.Append("\"==b)}\nfunction hd(a){for(var b=[];\"[\"==C(a.b);){a.b.next();N(a,\"Missing pred"); + atom.Append("icate expression.\");var c=$c(a);b.push(c);N(a,\"Unclosed predicate expression.\")"); + atom.Append(";bd(a,\"]\")}return b}function ad(a){if(\"-\"==C(a.b))return a.b.next(),new Xc(ad("); + atom.Append("a));var b=fd(a);if(\"|\"!=C(a.b))a=b;else{for(b=[b];\"|\"==a.b.next();)N(a,\"Missi"); + atom.Append("ng next union location path.\"),b.push(fd(a));a.b.back();a=new Yc(b)}return a};fun"); + atom.Append("ction id(a){switch(a.nodeType){case 1:return ma(jd,a);case 9:return id(a.documentE"); + atom.Append("lement);case 2:return a.ownerElement?id(a.ownerElement):kd;case 11:case 10:case 6:"); + atom.Append("case 12:return kd;default:return a.parentNode?id(a.parentNode):kd}}function kd(){r"); + atom.Append("eturn null}function jd(a,b){if(a.prefix==b)return a.namespaceURI||\"http://www.w3."); + atom.Append("org/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:\"+b);return c&&c.specified?c.va"); + atom.Append("lue||null:a.parentNode&&9!=a.parentNode.nodeType?jd(a.parentNode,b):null};function"); + atom.Append(" ld(a,b){if(!a.length)throw Error(\"Empty XPath expression.\");var c=Zb(a);if(c.em"); + atom.Append("pty())throw Error(\"Invalid XPath expression.\");b?ea(b)||(b=la(b.lookupNamespaceU"); + atom.Append("RI,b)):b=function(){return null};var d=$c(new Zc(c,b));if(!c.empty())throw Error("); + atom.Append("\"Bad token: \"+c.next());this.evaluate=function(a,b){var c=d.evaluate(new Tb(a));"); + atom.Append("return new O(c,b)}}\nfunction O(a,b){if(0==b)if(a instanceof D)b=4;else if(\"strin"); + atom.Append("g\"==typeof a)b=2;else if(\"number\"==typeof a)b=1;else if(\"boolean\"==typeof a)b"); + atom.Append("=3;else throw Error(\"Unexpected evaluation result.\");if(2!=b&&1!=b&&3!=b&&!(a in"); + atom.Append("stanceof D))throw Error(\"value could not be converted to the specified type\");th"); + atom.Append("is.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof D?pc(a):\"\"+"); + atom.Append("a;break;case 1:this.numberValue=a instanceof D?+pc(a):+a;break;case 3:this.boolean"); + atom.Append("Value=a instanceof D?0=c.length?null:c[e++]};this.snapshotItem="); + atom.Append("function(a){if(6!=b&&7!=b)throw Error(\"snapshotItem called with wrong result type"); + atom.Append("\");return a>=\nc.length||0>a?null:c[a]}}O.ANY_TYPE=0;O.NUMBER_TYPE=1;O.STRING_TYP"); + atom.Append("E=2;O.BOOLEAN_TYPE=3;O.UNORDERED_NODE_ITERATOR_TYPE=4;O.ORDERED_NODE_ITERATOR_TYPE"); + atom.Append("=5;O.UNORDERED_NODE_SNAPSHOT_TYPE=6;O.ORDERED_NODE_SNAPSHOT_TYPE=7;O.ANY_UNORDERED"); + atom.Append("_NODE_TYPE=8;O.FIRST_ORDERED_NODE_TYPE=9;function md(a){this.lookupNamespaceURI=id"); + atom.Append("(a)}\nfunction nd(a){a=a||aa;var b=a.document;b.evaluate||(a.XPathResult=O,b.evalu"); + atom.Append("ate=function(a,b,f,e){return(new ld(a,f)).evaluate(b,e)},b.createExpression=functi"); + atom.Append("on(a,b){return new ld(a,b)},b.createNSResolver=function(a){return new md(a)})};var"); + atom.Append(" P={};P.La=function(){var a={Xa:\"http://www.w3.org/2000/svg\"};return function(b)"); + atom.Append("{return a[b]||null}}();P.w=function(a,b,c){var d=z(a);(t||Qb)&&nd(A(d));try{var f="); + atom.Append("d.createNSResolver?d.createNSResolver(d.documentElement):P.La;return t&&!eb(7)?d.e"); + atom.Append("valuate.call(d,b,a,f,c,null):d.evaluate(b,a,f,c,null)}catch(e){if(!v||\"NS_ERROR_I"); + atom.Append("LLEGAL_VALUE\"!=e.name)throw new r(32,\"Unable to locate an element with the xpath"); + atom.Append(" expression \"+b+\" because of the following error:\\n\"+e);}};\nP.ia=function(a,b"); + atom.Append("){if(!a||1!=a.nodeType)throw new r(32,'The result of the xpath expression \"'+b+'"); + atom.Append("\" is: '+a+\". It should be an element.\");};P.F=function(a,b){var c=function(){va"); + atom.Append("r c=P.w(b,a,9);return c?(c=c.singleNodeValue,s?c:c||null):b.selectSingleNode?(c=z("); + atom.Append("b),c.setProperty&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSingleNod"); + atom.Append("e(a)):null}();null===c||P.ia(c,a);return c};\nP.v=function(a,b){var c=function(){v"); + atom.Append("ar c=P.w(b,a,7);if(c){var f=c.snapshotLength;s&&!l(f)&&P.ia(null,a);for(var e=[],g"); + atom.Append("=0;g=this"); + atom.Append(".left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&"); + atom.Append("&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d)"); + atom.Append("{fa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.lef"); + atom.Append("t):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=fun"); + atom.Append("ction(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom="); + atom.Append("Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};h.floor=functio"); + atom.Append("n(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Ma"); + atom.Append("th.floor(this.bottom);this.left=Math.floor(this.left);return this};\nh.round=funct"); + atom.Append("ion(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom="); + atom.Append("Math.round(this.bottom);this.left=Math.round(this.left);return this};h.translate=f"); + atom.Append("unction(a,b){a instanceof y?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bot"); + atom.Append("tom+=a.y):(this.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return "); + atom.Append("this};h.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c"); + atom.Append(";this.bottom*=c;return this};function S(a,b,c,d){this.left=a;this.top=b;this.width"); + atom.Append("=c;this.height=d}h=S.prototype;h.clone=function(){return new S(this.left,this.top,"); + atom.Append("this.width,this.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.t"); + atom.Append("op+\" - \"+this.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a"); + atom.Append(" instanceof S?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a"); + atom.Append(".top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.wid"); + atom.Append("th&&a.y>=this.top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.c"); + atom.Append("eil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this."); + atom.Append("height=Math.ceil(this.height);return this};h.floor=function(){this.left=Math.floor"); + atom.Append("(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.h"); + atom.Append("eight=Math.floor(this.height);return this};h.round=function(){this.left=Math.round"); + atom.Append("(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.h"); + atom.Append("eight=Math.round(this.height);return this};\nh.translate=function(a,b){a instanceo"); + atom.Append("f y?(this.left+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this"); + atom.Append("};h.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;thi"); + atom.Append("s.height*=c;return this};function Ed(a,b){var c=z(a);return c.defaultView&&c.defau"); + atom.Append("ltView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPro"); + atom.Append("pertyValue(b)||\"\":\"\"}function Fd(a){a=a?z(a):document;var b;(b=!t||fb(9))||(b="); + atom.Append("\"CSS1Compat\"==kb(a).K.compatMode);return b?a.documentElement:a.body}\nfunction G"); + atom.Append("d(a){var b=a.offsetWidth,c=a.offsetHeight,d=x&&!b&&!c;if((!l(b)||d)&&a.getBounding"); + atom.Append("ClientRect){var f;a:{try{f=a.getBoundingClientRect()}catch(e){f={left:0,top:0,righ"); + atom.Append("t:0,bottom:0};break a}t&&a.ownerDocument.body&&(a=a.ownerDocument,f.left-=a.docume"); + atom.Append("ntElement.clientLeft+a.body.clientLeft,f.top-=a.documentElement.clientTop+a.body.c"); + atom.Append("lientTop)}return new jb(f.right-f.left,f.bottom-f.top)}return new jb(b,c)}var Hd={"); + atom.Append("thin:2,medium:4,thick:6};\nfunction Id(a,b){if(\"none\"==(a.currentStyle?a.current"); + atom.Append("Style[b+\"Style\"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+\"Width\"]"); + atom.Append(":null,d;if(c in Hd)d=Hd[c];else if(/^\\d+px?$/.test(c))d=parseInt(c,10);else{d=a.s"); + atom.Append("tyle.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.styl"); + atom.Append("e.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=f;d=c}return d};fu"); + atom.Append("nction Jd(a){var b;a:{a=z(a);try{b=a&&a.activeElement;break a}catch(c){}b=null}ret"); + atom.Append("urn t&&b&&\"undefined\"===typeof b.nodeType?null:b}function T(a,b){return!!a&&1==a"); + atom.Append(".nodeType&&(!b||a.tagName.toUpperCase()==b)}function Kd(a){var b;if(b=Ld(a,!0)&&Md"); + atom.Append("(a))b=!(t||s||v&&!R(\"1.9.2\")?0:\"none\"==U(a,\"pointer-events\"));return b}funct"); + atom.Append("ion Nd(a){return T(a,\"OPTION\")?!0:T(a,\"INPUT\")?(a=a.type.toLowerCase(),\"check"); + atom.Append("box\"==a||\"radio\"==a):!1}\nfunction Od(a){if(!Nd(a))throw new r(15,\"Element is "); + atom.Append("not selectable\");var b=\"selected\",c=a.type&&a.type.toLowerCase();if(\"checkbox"); + atom.Append("\"==c||\"radio\"==c)b=\"checked\";return!!Pd(a,b)}function Pd(a,b){var c;if(c=yd&&"); + atom.Append("\"value\"==b&&T(a,\"OPTION\"))c=null===Qd(a,\"value\");c?(c=[],Ab(a,c,!1),c=c.join"); + atom.Append("(\"\")):c=a[b];return c}var Rd=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'"); + atom.Append("){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction Sd(a){var b=[];p(a.spl"); + atom.Append("it(Rd),function(a){var d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c"); + atom.Append("=null}if(!c)b:{if(g=d.match(La))if(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<"); + atom.Append("=c&&255>=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.to"); + atom.Append("LowerCase();\ne=Ga[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.le"); + atom.Append("ngth&&(e=e.replace(Ia,\"#$1$1$2$2$3$3\")),!Ja.test(e))){c=null;break b}c=[parseInt"); + atom.Append("(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\""); + atom.Append("rgba(\"+c.join(\", \")+\")\":d}return d}function Yd(a,b){var c=a.currentStyle||a.s"); + atom.Append("tyle,d=c[b];!l(d)&&ea(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"inher"); + atom.Append("it\"!=d?l(d)?d:null:(c=Wd(a))?Yd(c,b):null}\nfunction Ld(a,b){function c(a){if(\"n"); + atom.Append("one\"==U(a,\"display\"))return!1;a=Wd(a);return!a||c(a)}function d(a){var b=Zd(a);"); + atom.Append("return 0=F.left+F.width;F=e.top>=F.top+F.height;if(Q&&\"hidden\"==u.x||F&&\"hidden"); + atom.Append("\"==u.y)return ae;if(Q&&\"visible\"!=u.x||F&&\"visible\"!=u.y){if(w&&(u=f(B),e.lef"); + atom.Append("t>=k.scrollWidth-u.x||e.right>=k.scrollHeight-u.y))return ae;e=$d(B);return e==ae?"); + atom.Append("ae:\"scroll\"}}}return\"none\"}var ee=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), (["); + atom.Append("\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nf"); + atom.Append("unction Zd(a){function b(a){var c=A(z(a)).getComputedStyle(a,null).MozTransform.ma"); + atom.Append("tch(ee);if(c){var d=parseFloat(c[1]),f=parseFloat(c[2]),w=parseFloat(c[3]),B=parse"); + atom.Append("Float(c[4]),u=parseFloat(c[5]),c=parseFloat(c[6]),F=e.left+e.width,Q=e.top+e.heigh"); + atom.Append("t,ia=e.left*d,d=F*d,rb=e.left*f,f=F*f,sb=e.top*w,w=Q*w,tb=e.top*B,F=Q*B,Q=ia+sb+u,"); + atom.Append("B=rb+tb+c,sb=d+sb+u,tb=f+tb+c,ia=ia+w+u,rb=rb+F+c,u=d+w+u,c=f+F+c;e.left=Math.min("); + atom.Append("Q,sb,ia,u);e.top=Math.min(B,tb,rb,c);u=Math.max(Q,sb,ia,u);c=Math.max(B,tb,rb,c);e"); + atom.Append(".width=u-\ne.left;e.height=c-e.top}(a=Wd(a))&&b(a)}var c=be(a);if(c)return c.rect;"); + atom.Append("if(T(a,\"HTML\"))return c=z(a),a=mb(A(c)||window),new S(0,0,a.width,a.height);var "); + atom.Append("d;try{d=a.getBoundingClientRect()}catch(f){return new S(0,0,0,0)}var e=new S(d.lef"); + atom.Append("t,d.top,d.right-d.left,d.bottom-d.top);t&&a.ownerDocument.body&&(c=z(a),e.left-=c."); + atom.Append("documentElement.clientLeft+c.body.clientLeft,e.top-=c.documentElement.clientTop+c."); + atom.Append("body.clientTop);s&&(0==e.width&&02*this.O&&zf(this),!0):!1};function"); + atom.Append(" zf(a){if(a.O!=a.j.length){for(var b=0,c=0;b\");X(191,\"/\",\"?\");X("); + atom.Append("192,\"`\",\"~\");X(219,\"[\",\"{\");X(220,\"\\\\\",\"|\");X(221,\"]\",\"}\");var G"); + atom.Append("g=X({d:59,e:186,opera:59},\";\",\":\");X(222,\"'\",'\"');var Hg=[Nf,Mf,ag,Y],Ig=ne"); + atom.Append("w yf;Ig.set(1,Y);Ig.set(2,Mf);Ig.set(4,Nf);Ig.set(8,ag);var Jg=function(a){var b=n"); + atom.Append("ew yf;p(Af(a),function(c){b.set(a.get(c).code,c)});return b}(Ig);function Gf(a,b,c"); + atom.Append("){if(Ca(Hg,b)){var d=Jg.get(b.code),f=a.V;f.da=c?f.da|d:f.da&~d}c?a.sa.add(b):a.sa"); + atom.Append(".remove(b)}var Kg=t||s?\"\\r\\n\":\"\\n\";Ff.prototype.h=function(a){return this.s"); + atom.Append("a.contains(a)};\nfunction Lg(a,b){if(Ca(Hg,b)&&a.h(b))throw new r(13,\"Cannot pres"); + atom.Append("s a modifier key that is already pressed.\");var c=null!==b.code&&Mg(a,jf,b);if((c"); + atom.Append("||v)&&(!Ng(b)||Mg(a,af,b,!c))&&c&&(Og(a,b),a.ka))if(b.I){if(!Pg){var c=Qg(a,b),d=u"); + atom.Append("f(a.c(),!0)[0]+1;Rg(a.c())?(xf(a.c(),c),qf(a.c(),d)):a.c().value+=c;x&&a.M(gf);Ad|"); + atom.Append("|a.M(ff);a.s=d}}else switch(b){case Lf:Pg||(x&&a.M(gf),T(a.c(),\"TEXTAREA\")&&(c=u"); + atom.Append("f(a.c(),!0)[0]+Kg.length,Rg(a.c())?(xf(a.c(),Kg),qf(a.c(),c)):a.c().value+=Kg,t||a"); + atom.Append(".M(ff),a.s=c));break;case Jf:case $f:Pg||\n(Sg(a.c()),c=uf(a.c(),!1),c[0]==c[1]&&("); + atom.Append("b==Jf?(qf(a.c(),c[1]-1),vf(a.c(),c[1])):vf(a.c(),c[1]+1)),c=uf(a.c(),!1),c=!(c[0]="); + atom.Append("=a.c().value.length||0==c[1]),xf(a.c(),\"\"),(!t&&c||v&&b==Jf)&&a.M(ff),c=uf(a.c()"); + atom.Append(",!1),a.s=c[1]);break;case Vf:case Xf:Sg(a.c());var c=a.c(),f=uf(c,!0)[0],e=uf(c,!1"); + atom.Append(")[1],g=d=0;b==Vf?a.h(Y)?a.s==f?(d=Math.max(f-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Ma"); + atom.Append("th.max(f-1,0):f:a.h(Y)?a.s==e?(d=f,f=g=Math.min(e+1,c.value.length)):(d=f+1,g=e,f="); + atom.Append("d):f=f==e?Math.min(e+1,c.value.length):e;a.h(Y)?(qf(c,\nd),vf(c,g)):wf(c,f);a.s=f;"); + atom.Append("break;case Uf:case Tf:Sg(a.c()),c=a.c(),d=uf(c,!0)[0],g=uf(c,!1)[1],b==Uf?(a.h(Y)?"); + atom.Append("(qf(c,0),vf(c,a.s==d?g:d)):wf(c,0),a.s=0):(a.h(Y)?(a.s==d&&qf(c,g),vf(c,c.value.le"); + atom.Append("ngth)):wf(c,c.value.length),a.s=c.value.length)}Gf(a,b,!0)}function Ng(a){if(a.I||"); + atom.Append("a==Lf)return!0;if(x)return!1;if(t)return a==Pf;switch(a){case Y:case Mf:case Nf:re"); + atom.Append("turn!1;case ag:case bg:case cg:return v;default:return!0}}\nfunction Og(a,b){if(b="); + atom.Append("=Lf&&!v&&T(a.c(),\"INPUT\")){var c=Bb(a.c(),Qe,!0);if(c){var d=c.getElementsByTagN"); + atom.Append("ame(\"input\");(za(d,function(a){return Ne(a)})||1==d.length||x&&!R(534))&&Re(c)}}"); + atom.Append("}function Tg(a,b){if(!a.h(b))throw new r(13,\"Cannot release a key that is not pre"); + atom.Append("ssed. (\"+b.code+\")\");null===b.code||Mg(a,kf,b);Gf(a,b,!1)}function Qg(a,b){if(!"); + atom.Append("b.I)throw new r(13,\"not a character key\");return a.h(Y)?b.Ta:b.I}var Pg=v&&!R(12"); + atom.Append(");\nfunction Sg(a){try{a.selectionStart}catch(b){if(-1!=b.message.indexOf(\"does n"); + atom.Append("ot support selection.\"))throw Error(b.message+\" (For more information, see https"); + atom.Append("://code.google.com/p/chromium/issues/detail?id=330456)\");throw b;}}function Rg(a)"); + atom.Append("{try{Sg(a)}catch(b){return!1}return!0}\nfunction Mg(a,b,c,d){if(null===c.code)thro"); + atom.Append("w new r(13,\"Key must have a keycode to be fired.\");c={altKey:a.h(Nf),ctrlKey:a.h"); + atom.Append("(Mf),metaKey:a.h(ag),shiftKey:a.h(Y),keyCode:c.code,charCode:c.I&&b==af?Qg(a,c).ch"); + atom.Append("arCodeAt(0):0,preventDefault:!!d};return a.la(b,c)}function Ug(a,b){ue(a,b);a.ka=X"); + atom.Append("d(b);var c=Ke(a);a.ka&&c&&(wf(b,b.value.length),a.s=b.value.length)};function Vg(a"); + atom.Append(",b,c){te.call(this,b,c);this.L=this.r=null;this.J=new y(0,0);this.ma=this.W=!1;if("); + atom.Append("a){da(a.buttonPressed)&&(this.r=a.buttonPressed);try{T(a.elementPressed)&&(this.L="); + atom.Append("a.elementPressed)}catch(d){this.r=null}this.J=new y(a.clientXY.x,a.clientXY.y);thi"); + atom.Append("s.W=!!a.nextClickIsDoubleClick;this.ma=!!a.hasEverInteracted;try{a.element&&T(a.el"); + atom.Append("ement)&&ue(this,a.element)}catch(f){this.r=null}}}n(Vg,te);var Z={};\nAd?(Z[ze]=[0"); + atom.Append(",0,0,null],Z[Ge]=[null,null,0,null],Z[Je]=[1,4,2,null],Z[ye]=[0,0,0,0],Z[He]=[1,4,"); + atom.Append("2,0]):x||zd?(Z[ze]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1,2,null],Z[ye]="); + atom.Append("[0,1,2,0],Z[He]=[0,1,2,0]):(Z[ze]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1"); + atom.Append(",2,null],Z[ye]=[0,0,0,0],Z[He]=[0,0,0,0]);Bd&&(Z[Fe]=Z[Je],Z[pf]=Z[Je],Z[Ie]=[-1,-"); + atom.Append("1,-1,-1],Z[Ee]=Z[Ie],Z[De]=Z[Ie]);Z[hf]=Z[ze];Z[Ae]=Z[Je];Z[xe]=Z[ye];var Wg={};Wg"); + atom.Append("[Ae]=Fe;Wg[He]=Ie;Wg[ye]=Ee;Wg[xe]=De;Wg[Je]=pf;\nVg.prototype.move=function(a,b){"); + atom.Append("var c=Kd(a),d=Zd(a);this.J.x=b.x+d.left;this.J.y=b.y+d.top;d=this.c();if(a!=d){try"); + atom.Append("{A(z(d)).closed&&(d=null)}catch(f){d=null}if(d){var e=d===oa.document.documentElem"); + atom.Append("ent||d===oa.document.body,d=!this.ma&&e?null:d;Xg(this,ye,a)}ue(this,a);t||Xg(this"); + atom.Append(",xe,d,null,c)}Xg(this,He,null,null,c);t&&a!=d&&Xg(this,xe,d,null,c);this.W=!1};\nV"); + atom.Append("g.prototype.scroll=function(a){if(0==a)throw new r(13,\"Must scroll a non-zero num"); + atom.Append("ber of ticks.\");for(var b=0=a){var b=$.a[a];if(null"); + atom.Append("===b)g.push(k=f()),e&&(k.Da=!1,g.push(k=f()));else if(l(b))k.keys.push(b);else thr"); + atom.Append("ow Error(\"Unsupported WebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}else "); + atom.Append("switch(a){case \"\\n\":k.keys.push(Lf);break;case \"\\t\":k.keys.push(Kf);break;ca"); + atom.Append("se \"\\b\":k.keys.push(Jf);break;default:k.keys.push(a)}})});p(g,function(b){$g(a,"); + atom.Append("b.keys,c,b.Da)})}\n$.a={};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=Jf;$.a[\"\\ue004"); + atom.Append("\"]=Kf;$.a[\"\\ue006\"]=Lf;$.a[\"\\ue007\"]=Lf;$.a[\"\\ue008\"]=Y;$.a[\"\\ue009\"]"); + atom.Append("=Mf;$.a[\"\\ue00a\"]=Nf;$.a[\"\\ue00b\"]=Of;$.a[\"\\ue00c\"]=Pf;$.a[\"\\ue00d\"]=Q"); + atom.Append("f;$.a[\"\\ue00e\"]=Rf;$.a[\"\\ue00f\"]=Sf;$.a[\"\\ue010\"]=Tf;$.a[\"\\ue011\"]=Uf;"); + atom.Append("$.a[\"\\ue012\"]=Vf;$.a[\"\\ue013\"]=Wf;$.a[\"\\ue014\"]=Xf;$.a[\"\\ue015\"]=Yf;$."); + atom.Append("a[\"\\ue016\"]=Zf;$.a[\"\\ue017\"]=$f;$.a[\"\\ue018\"]=Gg;$.a[\"\\ue019\"]=Eg;$.a["); + atom.Append("\"\\ue01a\"]=dg;$.a[\"\\ue01b\"]=eg;$.a[\"\\ue01c\"]=fg;$.a[\"\\ue01d\"]=gg;$.a[\""); + atom.Append("\\ue01e\"]=hg;$.a[\"\\ue01f\"]=ig;\n$.a[\"\\ue020\"]=jg;$.a[\"\\ue021\"]=kg;$.a[\""); + atom.Append("\\ue022\"]=lg;$.a[\"\\ue023\"]=mg;$.a[\"\\ue024\"]=ng;$.a[\"\\ue025\"]=og;$.a[\""); + atom.Append("\\ue027\"]=pg;$.a[\"\\ue028\"]=qg;$.a[\"\\ue029\"]=rg;$.a[\"\\ue026\"]=Fg;$.a[\""); + atom.Append("\\ue031\"]=sg;$.a[\"\\ue032\"]=tg;$.a[\"\\ue033\"]=ug;$.a[\"\\ue034\"]=vg;$.a[\""); + atom.Append("\\ue035\"]=wg;$.a[\"\\ue036\"]=xg;$.a[\"\\ue037\"]=yg;$.a[\"\\ue038\"]=zg;$.a[\""); + atom.Append("\\ue039\"]=Ag;$.a[\"\\ue03a\"]=Bg;$.a[\"\\ue03b\"]=Cg;$.a[\"\\ue03c\"]=Dg;$.a[\""); + atom.Append("\\ue03d\"]=ag;function dh(){this.ea=void 0}\nfunction eh(a,b,c){switch(typeof b){c"); + atom.Append("ase \"string\":fh(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"nul"); + atom.Append("l\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");br"); + atom.Append("eak;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==ba(b)){var d="); + atom.Append("b.length;c.push(\"[\");for(var f=\"\",e=0;eb?f+=\"00"); + atom.Append("0\":256>b?f+=\"00\":4096>b&&(f+=\"0\");return gh[a]=f+b.toString(16)}),'\"')};x||s"); + atom.Append("||v&&R(3.5)||t&&R(8);function ih(a){switch(ba(a)){case \"string\":case \"number\":"); + atom.Append("case \"boolean\":return a;case \"function\":return a.toString();case \"array\":ret"); + atom.Append("urn xa(a,ih);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){"); + atom.Append("var b={};b.ELEMENT=jh(a);return b}if(\"document\"in a)return b={},b.WINDOW=jh(a),b"); + atom.Append(";if(ca(a))return xa(a,ih);a=Sa(a,function(a,b){return da(b)||m(b)});return Ta(a,ih"); + atom.Append(");default:return null}}\nfunction kh(a,b){return\"array\"==ba(a)?xa(a,function(a){"); + atom.Append("return kh(a,b)}):fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?lh(a.ELEMENT,b):\""); + atom.Append("WINDOW\"in a?lh(a.WINDOW,b):Ta(a,function(a){return kh(a,b)}):a}function mh(a){a=a"); + atom.Append("||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.qa=na());b.qa||(b.qa=na());return b}fu"); + atom.Append("nction jh(a){var b=mh(a.ownerDocument),c=Va(b,function(b){return b==a});c||(c=\":w"); + atom.Append("dc:\"+b.qa++,b[c]=a);return c}\nfunction lh(a,b){a=decodeURIComponent(a);var c=b||"); + atom.Append("document,d=mh(c);if(!(a in d))throw new r(10,\"Element does not exist in cache\");"); + atom.Append("var f=d[a];if(\"setInterval\"in f){if(f.closed)throw delete d[a],new r(23,\"Window"); + atom.Append(" has been closed.\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e"); + atom.Append(".parentNode}delete d[a];throw new r(10,\"Element is no longer attached to the DOM"); + atom.Append("\");};function nh(a,b){var c=[a],d;try{var f=b?lh(b.WINDOW):window,e=kh(c,f.docume"); + atom.Append("nt),g=bh.apply(null,e);d={status:0,value:ih(g)}}catch(k){d={status:\"code\"in k?k."); + atom.Append("code:13,value:{message:k.message}}}c=[];eh(new dh,d,c);return c.join(\"\")}var oh="); + atom.Append("[\"_\"],ph=aa;oh[0]in ph||!ph.execScript||ph.execScript(\"var \"+oh[0]);for(var qh"); + atom.Append(";oh.length&&(qh=oh.shift());)!oh.length&&l(nh)?ph[qh]=nh:ph=ph[qh]?ph[qh]:ph[qh]={"); + atom.Append("};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefine"); + atom.Append("d?window.navigator:null,document:typeof window!=undefined?window.document:null}, a"); + atom.Append("rguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string IsSelected + { + get + { + const string atomName = "IsSelected"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var d=this;\nfunction h(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=h(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function ba(a){var b=typeof a;return\""); + atom.Append("object\"==b&&null!=a||\"function\"==b}var ca=Date.now||function(){return+new Date}"); + atom.Append(";function k(a,b){for(var c=0,e=String(a).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\""); + atom.Append(").split(\".\"),f=String(b).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\")"); + atom.Append(",g=Math.max(e.length,f.length),x=0;0==c&&xb?1:0};function da(a,b){for(var c=a.length,e=\""); + atom.Append("string\"==typeof a?a.split(\"\"):a,f=0;fe||c.indexOf(\"Error\",e)!=e)c+=\"Error\";this.name=c;c=Error(thi"); + atom.Append("s.message);c.name=this.name;this.stack=c.stack||\"\"}\n(function(){var a=Error;fun"); + atom.Append("ction b(){}b.prototype=a.prototype;n.k=a.prototype;n.prototype=new b;n.prototype.c"); + atom.Append("onstructor=n;n.j=function(b,e,f){return a.prototype[e].apply(b,Array.prototype.sli"); + atom.Append("ce.call(arguments,2))}})();\nvar ea=\"unknown error\",p={15:\"element not selectab"); + atom.Append("le\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"ime not a"); + atom.Append("vailable\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",12:\"in"); + atom.Append("valid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid"); + atom.Append(" selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move target"); + atom.Append(" out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23"); + atom.Append(":\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"stale el"); + atom.Append("ement reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\""); + atom.Append("unexpected alert open\"};p[13]=ea;p[9]=\"unknown command\";n.prototype.toString=fu"); + atom.Append("nction(){return this.name+\": \"+this.message};var q;a:{var fa=d.navigator;if(fa){"); + atom.Append("var ga=fa.userAgent;if(ga){q=ga;break a}}q=\"\"}function r(a){return-1!=q.indexOf("); + atom.Append("a)};function ha(a,b){var c={},e;for(e in a)b.call(void 0,a[e],e,a)&&(c[e]=a[e]);re"); + atom.Append("turn c}function ia(a,b){var c={},e;for(e in a)c[e]=b.call(void 0,a[e],e,a);return "); + atom.Append("c}function ja(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};var s,t,u=r"); + atom.Append("(\"Opera\")||r(\"OPR\"),v=r(\"Trident\")||r(\"MSIE\"),w=r(\"Gecko\")&&-1==q.toLowe"); + atom.Append("rCase().indexOf(\"webkit\")&&!(r(\"Trident\")||r(\"MSIE\")),y=-1!=q.toLowerCase()."); + atom.Append("indexOf(\"webkit\"),z,ka=d.navigator||null;z=ka&&ka.platform||\"\";s=-1!=z.indexOf"); + atom.Append("(\"Mac\");t=-1!=z.indexOf(\"Win\");var A=-1!=z.indexOf(\"Linux\");function la(){va"); + atom.Append("r a=d.document;return a?a.documentMode:void 0}\nvar B=function(){var a=\"\",b;if(u"); + atom.Append("&&d.opera)return a=d.opera.version,\"function\"==h(a)?a():a;w?b=/rv\\:([^\\);]+)("); + atom.Append("\\)|;)/:v?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:y&&(b=/WebKit\\/(\\S+)/);b&&(a=("); + atom.Append("a=b.exec(q))?a[1]:\"\");return v&&(b=la(),b>parseFloat(a))?String(b):a}(),ma={};fu"); + atom.Append("nction F(a){return ma[a]||(ma[a]=0<=k(B,a))}var na=d.document,G=na&&v?la()||(\"CSS"); + atom.Append("1Compat\"==na.compatMode?parseInt(B,10):5):void 0;!w&&!v||v&&v&&9<=G||w&&F(\"1.9.1"); + atom.Append("\");v&&F(\"9\");var oa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},pa={IMG:\" \",B"); + atom.Append("R:\"\\n\"};function qa(a,b,c){if(!(a.nodeName in oa))if(3==a.nodeType)c?b.push(Str"); + atom.Append("ing(a.nodeValue).replace(/(\\r\\n|\\r|\\n)/g,\"\")):b.push(a.nodeValue);else if(a."); + atom.Append("nodeName in pa)b.push(pa[a.nodeName]);else for(a=a.firstChild;a;)qa(a,b,c),a=a.nex"); + atom.Append("tSibling};var H,I,J,K,ra,sa,ta;ta=sa=ra=K=J=I=H=!1;var L=q;L&&(-1!=L.indexOf(\"Fir"); + atom.Append("efox\")?H=!0:-1!=L.indexOf(\"Camino\")?I=!0:-1!=L.indexOf(\"iPhone\")||-1!=L.index"); + atom.Append("Of(\"iPod\")?J=!0:-1!=L.indexOf(\"iPad\")?K=!0:-1!=L.indexOf(\"Chrome\")?sa=!0:-1!"); + atom.Append("=L.indexOf(\"Android\")?ra=!0:-1!=L.indexOf(\"Safari\")&&(ta=!0));var ua=H,va=I,wa"); + atom.Append("=J,xa=K,M=ra,ya=sa,za=ta;function Aa(a){this.i=a}Aa.prototype.toString=function(){"); + atom.Append("return this.i};var Ba={};function N(a){if(Ba.hasOwnProperty(a))throw Error(\"Binar"); + atom.Append("y operator already created: \"+a);a=new Aa(a);Ba[a.toString()]=a}N(\"div\");N(\"mo"); + atom.Append("d\");N(\"*\");N(\"+\");N(\"-\");N(\"<\");N(\">\");N(\"<=\");N(\">=\");N(\"=\");N("); + atom.Append("\"!=\");N(\"and\");N(\"or\");function Ca(a){this.g=a}Ca.prototype.toString=functio"); + atom.Append("n(){return this.g};var Da={};function O(a){if(Da.hasOwnProperty(a))throw Error(\"F"); + atom.Append("unction already created: \"+a+\".\");Da[a]=new Ca(a)}O(\"boolean\");O(\"ceiling\")"); + atom.Append(";O(\"concat\");O(\"contains\");O(\"count\");O(\"false\");O(\"floor\");O(\"id\");O("); + atom.Append("\"lang\");O(\"last\");O(\"local-name\");O(\"name\");O(\"namespace-uri\");O(\"norma"); + atom.Append("lize-space\");O(\"not\");O(\"number\");O(\"position\");O(\"round\");O(\"starts-wit"); + atom.Append("h\");O(\"string\");O(\"string-length\");O(\"substring\");O(\"substring-after\");O("); + atom.Append("\"substring-before\");\nO(\"sum\");O(\"translate\");O(\"true\");function Ea(a){thi"); + atom.Append("s.g=a}Ea.prototype.toString=function(){return this.g};var Fa={};function P(a){if(F"); + atom.Append("a.hasOwnProperty(a))throw Error(\"Axis already created: \"+a);Fa[a]=new Ea(a)}P(\""); + atom.Append("ancestor\");P(\"ancestor-or-self\");P(\"attribute\");P(\"child\");P(\"descendant\""); + atom.Append(");P(\"descendant-or-self\");P(\"following\");P(\"following-sibling\");P(\"namespac"); + atom.Append("e\");P(\"parent\");P(\"preceding\");P(\"preceding-sibling\");P(\"self\");function "); + atom.Append("Q(a){return(a=a.exec(q))?a[1]:\"\"}var Ga=function(){if(ua)return Q(/Firefox\\/([0"); + atom.Append("-9.]+)/);if(v||u)return B;if(ya)return Q(/Chrome\\/([0-9.]+)/);if(za)return Q(/Ver"); + atom.Append("sion\\/([0-9.]+)/);if(wa||xa){var a;if(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec("); + atom.Append("q))return a[1]+\".\"+a[2]}else{if(M)return(a=Q(/Android\\s+([0-9.]+)/))?a:Q(/Versi"); + atom.Append("on\\/([0-9.]+)/);if(va)return Q(/Camino\\/([0-9.]+)/)}return\"\"}();var Ha,Ia;func"); + atom.Append("tion R(a){return Ja?Ha(a):v?0<=k(G,a):F(a)}function S(a){Ja?Ia(a):M?k(Ka,a):k(Ga,a"); + atom.Append(")}\nvar Ja=function(){if(!w)return!1;var a=d.Components;if(!a)return!1;try{if(!a.c"); + atom.Append("lasses)return!1}catch(b){return!1}var c=a.classes,a=a.interfaces,e=c[\"@mozilla.or"); + atom.Append("g/xpcom/version-comparator;1\"].getService(a.nsIVersionComparator),c=c[\"@mozilla."); + atom.Append("org/xre/app-info;1\"].getService(a.nsIXULAppInfo),f=c.platformVersion,g=c.version;"); + atom.Append("Ha=function(a){return 0<=e.compare(f,\"\"+a)};Ia=function(a){e.compare(g,\"\"+a)};"); + atom.Append("return!0}(),La;if(M){var Ma=/Android\\s+([0-9\\.]+)/.exec(q);La=Ma?Ma[1]:\"0\"}els"); + atom.Append("e La=\"0\";\nvar Ka=La,Na=v&&!(v&&8<=G),Oa=v&&!(v&&9<=G);M&&S(2.3);M&&S(4);za&&S(6"); + atom.Append(");function T(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}funct"); + atom.Append("ion Sa(a){var b;T(a,\"OPTION\")?b=!0:T(a,\"INPUT\")?(b=a.type.toLowerCase(),b=\"ch"); + atom.Append("eckbox\"==b||\"radio\"==b):b=!1;if(!b)throw new n(15,\"Element is not selectable\""); + atom.Append(");b=\"selected\";var c=a.type&&a.type.toLowerCase();if(\"checkbox\"==c||\"radio\"="); + atom.Append("=c)b=\"checked\";if(c=Na&&\"value\"==b&&T(a,\"OPTION\"))c=null===Ta(a);c?(b=[],qa("); + atom.Append("a,b,!1),a=!b.join(\"\")):a=!a[b];return!a}var Ua=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]"); + atom.Append("*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction Va(a"); + atom.Append("){var b=[];da(a.split(Ua),function(a){var e=a.indexOf(\":\");02*this.e&&Xa(this),!"); + atom.Append("0):!1};\nfunction Xa(a){if(a.e!=a.c.length){for(var b=0,c=0;b\");V(191,\""); + atom.Append("/\",\"?\");V(192,\"`\",\"~\");V(219,\"[\",\"{\");V(220,\"\\\\\",\"|\");V(221,\"]\""); + atom.Append(",\"}\");V({a:59,b:186,opera:59},\";\",\":\");V(222,\"'\",'\"');var W=new U;W.set(1"); + atom.Append(",$a);W.set(2,ab);W.set(4,bb);W.set(8,cb);\n(function(a){var b=new U;da(Wa(a),funct"); + atom.Append("ion(c){b.set(a.get(c).code,c)});return b})(W);w&&R(12);function db(){this.f=void 0"); + atom.Append("}\nfunction eb(a,b,c){switch(typeof b){case \"string\":fb(b,c);break;case \"number"); + atom.Append("\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b);brea"); + atom.Append("k;case \"undefined\":c.push(\"null\");break;case \"object\":if(null==b){c.push(\"n"); + atom.Append("ull\");break}if(\"array\"==h(b)){var e=b.length;c.push(\"[\");for(var f=\"\",g=0;g"); + atom.Append("b?f+=\"000\":256>b?f+=\"00\":4096>b&&(f+=\"0\");return "); + atom.Append("gb[a]=f+b.toString(16)}),'\"')};y||u||w&&R(3.5)||v&&R(8);function X(a){switch(h(a)"); + atom.Append("){case \"string\":case \"number\":case \"boolean\":return a;case \"function\":retu"); + atom.Append("rn a.toString();case \"array\":return m(a,X);case \"object\":if(\"nodeType\"in a&&"); + atom.Append("(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=ib(a);return b}if(\"document\"i"); + atom.Append("n a)return b={},b.WINDOW=ib(a),b;if(aa(a))return m(a,X);a=ha(a,function(a,b){retur"); + atom.Append("n\"number\"==typeof b||\"string\"==typeof b});return ia(a,X);default:return null}}"); + atom.Append("\nfunction jb(a,b){return\"array\"==h(a)?m(a,function(a){return jb(a,b)}):ba(a)?\""); + atom.Append("function\"==typeof a?a:\"ELEMENT\"in a?kb(a.ELEMENT,b):\"WINDOW\"in a?kb(a.WINDOW,"); + atom.Append("b):ia(a,function(a){return jb(a,b)}):a}function lb(a){a=a||document;var b=a.$wdc_;"); + atom.Append("b||(b=a.$wdc_={},b.h=ca());b.h||(b.h=ca());return b}function ib(a){var b=lb(a.owne"); + atom.Append("rDocument),c=ja(b,function(b){return b==a});c||(c=\":wdc:\"+b.h++,b[c]=a);return c"); + atom.Append("}\nfunction kb(a,b){a=decodeURIComponent(a);var c=b||document,e=lb(c);if(!(a in e)"); + atom.Append(")throw new n(10,\"Element does not exist in cache\");var f=e[a];if(\"setInterval\""); + atom.Append("in f){if(f.closed)throw delete e[a],new n(23,\"Window has been closed.\");return f"); + atom.Append("}for(var g=f;g;){if(g==c.documentElement)return f;g=g.parentNode}delete e[a];throw"); + atom.Append(" new n(10,\"Element is no longer attached to the DOM\");};function mb(a,b){var c=["); + atom.Append("a],e;try{var f=b?kb(b.WINDOW):window,g=jb(c,f.document),x=Sa.apply(null,g);e={stat"); + atom.Append("us:0,value:X(x)}}catch(C){e={status:\"code\"in C?C.code:13,value:{message:C.messag"); + atom.Append("e}}}c=[];eb(new db,e,c);return c.join(\"\")}var Y=[\"_\"],Z=d;Y[0]in Z||!Z.execScr"); + atom.Append("ipt||Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void"); + atom.Append(" 0===mb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=mb;; return this._.apply(null,arguments);}.apply("); + atom.Append("{navigator:typeof window!=undefined?window.navigator:null,document:typeof window!="); + atom.Append("undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string IsEnabled + { + get + { + const string atomName = "IsEnabled"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var d=this;\nfunction h(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=h(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function k(a){return\"string\"==typeof"); + atom.Append(" a}function ba(a){var b=typeof a;return\"object\"==b&&null!=a||\"function\"==b}var"); + atom.Append(" ca=Date.now||function(){return+new Date};function l(a,b){for(var c=0,e=String(a)."); + atom.Append("replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),f=String(b).replace(/^[\\s"); + atom.Append("\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),g=Math.max(e.length,f.length),w=0;0==c&&"); + atom.Append("wb?1:0};f"); + atom.Append("unction da(a){var b=ea;if(k(b))return k(a)&&1==a.length?b.indexOf(a,0):-1;for(var "); + atom.Append("c=0;ce|"); + atom.Append("|c.indexOf(\"Error\",e)!=e)c+=\"Error\";this.name=c;c=Error(this.message);c.name=t"); + atom.Append("his.name;this.stack=c.stack||\"\"}\n(function(){var a=Error;function b(){}b.protot"); + atom.Append("ype=a.prototype;p.k=a.prototype;p.prototype=new b;p.prototype.constructor=p;p.j=fu"); + atom.Append("nction(c,b,f){return a.prototype[b].apply(c,Array.prototype.slice.call(arguments,2"); + atom.Append("))}})();\nvar ga=\"unknown error\",q={15:\"element not selectable\",11:\"element n"); + atom.Append("ot visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"inv"); + atom.Append("alid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element state"); + atom.Append("\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"ja"); + atom.Append("vascript error\",405:\"unsupported operation\",34:\"move target out of bounds\",27"); + atom.Append(":\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window\""); + atom.Append(",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\","); + atom.Append("\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert o"); + atom.Append("pen\"};q[13]=ga;q[9]=\"unknown command\";p.prototype.toString=function(){return th"); + atom.Append("is.name+\": \"+this.message};var r;a:{var ha=d.navigator;if(ha){var ia=ha.userAgen"); + atom.Append("t;if(ia){r=ia;break a}}r=\"\"}function s(a){return-1!=r.indexOf(a)};function ja(a,"); + atom.Append("b){var c={},e;for(e in a)b.call(void 0,a[e],e,a)&&(c[e]=a[e]);return c}function ka"); + atom.Append("(a,b){var c={},e;for(e in a)c[e]=b.call(void 0,a[e],e,a);return c}function la(a,b)"); + atom.Append("{for(var c in a)if(b.call(void 0,a[c],c,a))return c};var t,u,v=s(\"Opera\")||s(\"O"); + atom.Append("PR\"),x=s(\"Trident\")||s(\"MSIE\"),y=s(\"Gecko\")&&-1==r.toLowerCase().indexOf(\""); + atom.Append("webkit\")&&!(s(\"Trident\")||s(\"MSIE\")),z=-1!=r.toLowerCase().indexOf(\"webkit\""); + atom.Append("),A,ma=d.navigator||null;A=ma&&ma.platform||\"\";t=-1!=A.indexOf(\"Mac\");u=-1!=A."); + atom.Append("indexOf(\"Win\");var B=-1!=A.indexOf(\"Linux\");function na(){var a=d.document;ret"); + atom.Append("urn a?a.documentMode:void 0}\nvar C=function(){var a=\"\",b;if(v&&d.opera)return a"); + atom.Append("=d.opera.version,\"function\"==h(a)?a():a;y?b=/rv\\:([^\\);]+)(\\)|;)/:x?b=/\\b(?:"); + atom.Append("MSIE|rv)[: ]([^\\);]+)(\\)|;)/:z&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec(r))?a[1]:"); + atom.Append("\"\");return x&&(b=na(),b>parseFloat(a))?String(b):a}(),oa={};function G(a){return"); + atom.Append(" oa[a]||(oa[a]=0<=l(C,a))}var pa=d.document,qa=pa&&x?na()||(\"CSS1Compat\"==pa.com"); + atom.Append("patMode?parseInt(C,10):5):void 0;!y&&!x||x&&x&&9<=qa||y&&G(\"1.9.1\");x&&G(\"9\");"); + atom.Append("function ra(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function sa(a,b"); + atom.Append("){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};var H,I,J,K,ta,"); + atom.Append("ua,va;va=ua=ta=K=J=I=H=!1;var L=r;L&&(-1!=L.indexOf(\"Firefox\")?H=!0:-1!=L.indexO"); + atom.Append("f(\"Camino\")?I=!0:-1!=L.indexOf(\"iPhone\")||-1!=L.indexOf(\"iPod\")?J=!0:-1!=L.i"); + atom.Append("ndexOf(\"iPad\")?K=!0:-1!=L.indexOf(\"Chrome\")?ua=!0:-1!=L.indexOf(\"Android\")?t"); + atom.Append("a=!0:-1!=L.indexOf(\"Safari\")&&(va=!0));var wa=H,xa=I,ya=J,za=K,M=ta,Aa=ua,Ba=va;"); + atom.Append("function Ca(a){this.i=a}Ca.prototype.toString=function(){return this.i};var Da={};"); + atom.Append("function N(a){if(Da.hasOwnProperty(a))throw Error(\"Binary operator already create"); + atom.Append("d: \"+a);a=new Ca(a);Da[a.toString()]=a}N(\"div\");N(\"mod\");N(\"*\");N(\"+\");N("); + atom.Append("\"-\");N(\"<\");N(\">\");N(\"<=\");N(\">=\");N(\"=\");N(\"!=\");N(\"and\");N(\"or"); + atom.Append("\");function Ea(a){this.g=a}Ea.prototype.toString=function(){return this.g};var Fa"); + atom.Append("={};function O(a){if(Fa.hasOwnProperty(a))throw Error(\"Function already created: "); + atom.Append("\"+a+\".\");Fa[a]=new Ea(a)}O(\"boolean\");O(\"ceiling\");O(\"concat\");O(\"contai"); + atom.Append("ns\");O(\"count\");O(\"false\");O(\"floor\");O(\"id\");O(\"lang\");O(\"last\");O("); + atom.Append("\"local-name\");O(\"name\");O(\"namespace-uri\");O(\"normalize-space\");O(\"not\")"); + atom.Append(";O(\"number\");O(\"position\");O(\"round\");O(\"starts-with\");O(\"string\");O(\"s"); + atom.Append("tring-length\");O(\"substring\");O(\"substring-after\");O(\"substring-before\");\n"); + atom.Append("O(\"sum\");O(\"translate\");O(\"true\");function Ga(a){this.g=a}Ga.prototype.toStr"); + atom.Append("ing=function(){return this.g};var Ha={};function P(a){if(Ha.hasOwnProperty(a))thro"); + atom.Append("w Error(\"Axis already created: \"+a);Ha[a]=new Ga(a)}P(\"ancestor\");P(\"ancestor"); + atom.Append("-or-self\");P(\"attribute\");P(\"child\");P(\"descendant\");P(\"descendant-or-self"); + atom.Append("\");P(\"following\");P(\"following-sibling\");P(\"namespace\");P(\"parent\");P(\"p"); + atom.Append("receding\");P(\"preceding-sibling\");P(\"self\");function R(a){return(a=a.exec(r))"); + atom.Append("?a[1]:\"\"}var Ia=function(){if(wa)return R(/Firefox\\/([0-9.]+)/);if(x||v)return "); + atom.Append("C;if(Aa)return R(/Chrome\\/([0-9.]+)/);if(Ba)return R(/Version\\/([0-9.]+)/);if(ya"); + atom.Append("||za){var a;if(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(r))return a[1]+\".\"+a[2"); + atom.Append("]}else{if(M)return(a=R(/Android\\s+([0-9.]+)/))?a:R(/Version\\/([0-9.]+)/);if(xa)r"); + atom.Append("eturn R(/Camino\\/([0-9.]+)/)}return\"\"}();var Ja,Ka;function S(a){return La?Ja(a"); + atom.Append("):x?0<=l(qa,a):G(a)}function T(a){La?Ka(a):M?l(Ma,a):l(Ia,a)}\nvar La=function(){i"); + atom.Append("f(!y)return!1;var a=d.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(b"); + atom.Append("){return!1}var c=a.classes,a=a.interfaces,e=c[\"@mozilla.org/xpcom/version-compara"); + atom.Append("tor;1\"].getService(a.nsIVersionComparator),c=c[\"@mozilla.org/xre/app-info;1\"].g"); + atom.Append("etService(a.nsIXULAppInfo),f=c.platformVersion,g=c.version;Ja=function(a){return 0"); + atom.Append("<=e.compare(f,\"\"+a)};Ka=function(a){e.compare(g,\"\"+a)};return!0}(),Na;if(M){va"); + atom.Append("r Qa=/Android\\s+([0-9\\.]+)/.exec(r);Na=Qa?Qa[1]:\"0\"}else Na=\"0\";var Ma=Na;M&"); + atom.Append("&T(2.3);\nM&&T(4);Ba&&T(6);function Ra(a,b){return!!a&&1==a.nodeType&&(!b||a.tagNa"); + atom.Append("me.toUpperCase()==b)}var ea=\"BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA\".split"); + atom.Append("(\" \");\nfunction Sa(a){var b=a.tagName.toUpperCase();return 0<=da(b)?a.disabled?"); + atom.Append("!1:a.parentNode&&1==a.parentNode.nodeType&&\"OPTGROUP\"==b||\"OPTION\"==b?Sa(a.par"); + atom.Append("entNode):!sa(a,function(a){var b=a.parentNode;if(b&&Ra(b,\"FIELDSET\")&&b.disabled"); + atom.Append("){if(!Ra(a,\"LEGEND\"))return!0;for(;a=void 0!=a.previousElementSibling?a.previous"); + atom.Append("ElementSibling:ra(a.previousSibling);)if(Ra(a,\"LEGEND\"))return!0}return!1}):!0};"); + atom.Append("z||v||La&&T(3.6);x&&S(10);M&&T(4);function U(a,b){this.d={};this.c=[];this.e=0;var"); + atom.Append(" c=arguments.length;if(12*this.e&&Ua(this),!0):!1};\nfunction Ua(a){if(a.e!=a.c.length){f"); + atom.Append("or(var b=0,c=0;b\");V(191,\"/\",\"?\");V(192,\"`\",\"~\");V(219,\"[\",\"{"); + atom.Append("\");V(220,\"\\\\\",\"|\");V(221,\"]\",\"}\");V({a:59,b:186,opera:59},\";\",\":\");"); + atom.Append("V(222,\"'\",'\"');var W=new U;W.set(1,Xa);W.set(2,Ya);W.set(4,Za);W.set(8,$a);\n(f"); + atom.Append("unction(a){var b=new U;fa(Ta(a),function(c){b.set(a.get(c).code,c)});return b})(W)"); + atom.Append(";y&&S(12);function ab(){this.f=void 0}\nfunction bb(a,b,c){switch(typeof b){case "); + atom.Append("\"string\":cb(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\")"); + atom.Append(";break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");break;"); + atom.Append("case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==h(b)){var e=b.len"); + atom.Append("gth;c.push(\"[\");for(var f=\"\",g=0;gb?f+=\"000\":"); + atom.Append("256>b?f+=\"00\":4096>b&&(f+=\"0\");return db[a]=f+b.toString(16)}),'\"')};z||v||y&"); + atom.Append("&S(3.5)||x&&S(8);function X(a){switch(h(a)){case \"string\":case \"number\":case "); + atom.Append("\"boolean\":return a;case \"function\":return a.toString();case \"array\":return n"); + atom.Append("(a,X);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={"); + atom.Append("};b.ELEMENT=fb(a);return b}if(\"document\"in a)return b={},b.WINDOW=fb(a),b;if(aa("); + atom.Append("a))return n(a,X);a=ja(a,function(a,b){return\"number\"==typeof b||k(b)});return ka"); + atom.Append("(a,X);default:return null}}\nfunction gb(a,b){return\"array\"==h(a)?n(a,function(a"); + atom.Append("){return gb(a,b)}):ba(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?hb(a.ELEMENT,b):"); + atom.Append("\"WINDOW\"in a?hb(a.WINDOW,b):ka(a,function(a){return gb(a,b)}):a}function ib(a){a"); + atom.Append("=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.h=ca());b.h||(b.h=ca());return b}fun"); + atom.Append("ction fb(a){var b=ib(a.ownerDocument),c=la(b,function(b){return b==a});c||(c=\":wd"); + atom.Append("c:\"+b.h++,b[c]=a);return c}\nfunction hb(a,b){a=decodeURIComponent(a);var c=b||do"); + atom.Append("cument,e=ib(c);if(!(a in e))throw new p(10,\"Element does not exist in cache\");va"); + atom.Append("r f=e[a];if(\"setInterval\"in f){if(f.closed)throw delete e[a],new p(23,\"Window h"); + atom.Append("as been closed.\");return f}for(var g=f;g;){if(g==c.documentElement)return f;g=g.p"); + atom.Append("arentNode}delete e[a];throw new p(10,\"Element is no longer attached to the DOM\")"); + atom.Append(";};function jb(a,b){var c=[a],e=Sa,f;try{var g=b?hb(b.WINDOW):window,w=gb(c,g.docu"); + atom.Append("ment),Q=e.apply(null,w);f={status:0,value:X(Q)}}catch(D){f={status:\"code\"in D?D."); + atom.Append("code:13,value:{message:D.message}}}c=[];bb(new ab,f,c);return c.join(\"\")}var Y=["); + atom.Append("\"_\"],Z=d;Y[0]in Z||!Z.execScript||Z.execScript(\"var \"+Y[0]);for(var $;Y.length"); + atom.Append("&&($=Y.shift());)Y.length||void 0===jb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=jb;; return this._"); + atom.Append(".apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigato"); + atom.Append("r:null,document:typeof window!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string IsDisplayed + { + get + { + const string atomName = "IsDisplayed"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g,k=this;function l(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function b"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction n(a){return\"string\"==typeof a}function r(a){return\"number\"==typeof a}fu"); + atom.Append("nction ca(a){return\"function\"==aa(a)}function da(a){var b=typeof a;return\"objec"); + atom.Append("t\"==b&&null!=a||\"function\"==b}function ea(a,b,c){return a.call.apply(a.bind,arg"); + atom.Append("uments)}\nfunction fa(a,b,c){if(!a)throw Error();if(2b?1:0}function la(a){return Stri"); + atom.Append("ng(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase()})};var ma=Array.p"); + atom.Append("rototype;function v(a,b){for(var c=a.length,d=n(a)?a.split(\"\"):a,e=0;ec?null:n(a)?a.charAt(c):a[c]}\nfunction ta("); + atom.Append("a,b){var c;a:if(n(a))c=n(b)&&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?m"); + atom.Append("a.slice.call(a,b):ma.slice.call(a,b,c)};var xa={aliceblue:\"#f0f8ff\",antiquewhite"); + atom.Append(":\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5"); + atom.Append("f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#000"); + atom.Append("0ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#"); + atom.Append("5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflower"); + atom.Append("blue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblu"); + atom.Append("e:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\","); + atom.Append("darkgreen:\"#006400\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#"); + atom.Append("8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\","); + atom.Append("darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:"); + atom.Append("\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#0"); + atom.Append("0ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgra"); + atom.Append("y:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",flo"); + atom.Append("ralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdc"); + atom.Append("dc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#80808"); + atom.Append("0\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0"); + atom.Append("\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\","); + atom.Append("khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc"); + atom.Append("00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcy"); + atom.Append("an:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:"); + atom.Append("\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\n"); + atom.Append("lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",ligh"); + atom.Append("tslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#"); + atom.Append("00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800"); + atom.Append("000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\""); + atom.Append(",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",m"); + atom.Append("ediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585"); + atom.Append("\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin"); + atom.Append(":\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\""); + atom.Append("#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\""); + atom.Append("#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee"); + atom.Append("\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#"); + atom.Append("cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080"); + atom.Append("\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b45"); + atom.Append("13\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#"); + atom.Append("fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a"); + atom.Append("5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\""); + atom.Append("#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8"); + atom.Append("\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",w"); + atom.Append("hite:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\""); + atom.Append("};var ya=\"backgroundColor borderTopColor borderRightColor borderBottomColor borde"); + atom.Append("rLeftColor color outlineColor\".split(\" \"),Ea=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a"); + atom.Append("-fA-F])/,Fa=/^#(?:[0-9a-f]{3}){1,2}$/i,Ga=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),"); + atom.Append("\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i,Ha=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|["); + atom.Append("1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})\\)$/i;function Ia(a,b){this.code=a;this.state="); + atom.Append("Ja[a]||Ka;this.message=b||\"\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,funct"); + atom.Append("ion(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d|"); + atom.Append("|c.indexOf(\"Error\",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);c.name=t"); + atom.Append("his.name;this.stack=c.stack||\"\"}s(Ia,Error);\nvar Ka=\"unknown error\",Ja={15:\""); + atom.Append("element not selectable\",11:\"element not visible\",31:\"ime engine activation fai"); + atom.Append("led\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"invalid element c"); + atom.Append("oordinates\",12:\"invalid element state\",32:\"invalid selector\",51:\"invalid sel"); + atom.Append("ector\",52:\"invalid selector\",17:\"javascript error\",405:\"unsupported operatio"); + atom.Append("n\",34:\"move target out of bounds\",27:\"no such alert\",7:\"no such element\",8:"); + atom.Append("\"no such frame\",23:\"no such window\",28:\"script timeout\",33:\"session not cre"); + atom.Append("ated\",10:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unable t"); + atom.Append("o set cookie\",26:\"unexpected alert open\"};Ja[13]=Ka;Ja[9]=\"unknown command\";I"); + atom.Append("a.prototype.toString=function(){return this.name+\": \"+this.message};var w;a:{var"); + atom.Append(" La=k.navigator;if(La){var Ma=La.userAgent;if(Ma){w=Ma;break a}}w=\"\"}function Na"); + atom.Append("(a){return-1!=w.indexOf(a)};function Oa(a,b){var c={},d;for(d in a)b.call(void 0,a"); + atom.Append("[d],d,a)&&(c[d]=a[d]);return c}function Pa(a,b){var c={},d;for(d in a)c[d]=b.call("); + atom.Append("void 0,a[d],d,a);return c}function Qa(a,b){for(var c in a)if(b.call(void 0,a[c],c,"); + atom.Append("a))return c};var Ra,Sa,x=Na(\"Opera\")||Na(\"OPR\"),y=Na(\"Trident\")||Na(\"MSIE\""); + atom.Append("),z=Na(\"Gecko\")&&-1==w.toLowerCase().indexOf(\"webkit\")&&!(Na(\"Trident\")||Na("); + atom.Append("\"MSIE\")),Ta=-1!=w.toLowerCase().indexOf(\"webkit\"),Ua,Va=k.navigator||null;Ua=V"); + atom.Append("a&&Va.platform||\"\";Ra=-1!=Ua.indexOf(\"Mac\");Sa=-1!=Ua.indexOf(\"Win\");var Wa="); + atom.Append("-1!=Ua.indexOf(\"Linux\");function Xa(){var a=k.document;return a?a.documentMode:v"); + atom.Append("oid 0}\nvar Ya=function(){var a=\"\",b;if(x&&k.opera)return a=k.opera.version,ca(a"); + atom.Append(")?a():a;z?b=/rv\\:([^\\);]+)(\\)|;)/:y?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:Ta&"); + atom.Append("&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec(w))?a[1]:\"\");return y&&(b=Xa(),b>parseFlo"); + atom.Append("at(a))?String(b):a}(),Za={};function $a(a){return Za[a]||(Za[a]=0<=ja(Ya,a))}var a"); + atom.Append("b=k.document,bb=ab&&y?Xa()||(\"CSS1Compat\"==ab.compatMode?parseInt(Ya,10):5):void"); + atom.Append(" 0;!z&&!y||y&&y&&9<=bb||z&&$a(\"1.9.1\");y&&$a(\"9\");function A(a,b){this.x=l(a)?"); + atom.Append("a:0;this.y=l(b)?b:0}g=A.prototype;g.clone=function(){return new A(this.x,this.y)};"); + atom.Append("g.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"};g.ceil=function(){th"); + atom.Append("is.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){th"); + atom.Append("is.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};g.round=function(){"); + atom.Append("this.x=Math.round(this.x);this.y=Math.round(this.y);return this};\ng.translate=fun"); + atom.Append("ction(a,b){a instanceof A?(this.x+=a.x,this.y+=a.y):(this.x+=a,r(b)&&(this.y+=b));"); + atom.Append("return this};g.scale=function(a,b){var c=r(b)?b:a;this.x*=a;this.y*=c;return this}"); + atom.Append(";function cb(a,b){this.width=a;this.height=b}g=cb.prototype;g.clone=function(){ret"); + atom.Append("urn new cb(this.width,this.height)};g.toString=function(){return\"(\"+this.width+"); + atom.Append("\" x \"+this.height+\")\"};g.ceil=function(){this.width=Math.ceil(this.width);this"); + atom.Append(".height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.flo"); + atom.Append("or(this.width);this.height=Math.floor(this.height);return this};g.round=function()"); + atom.Append("{this.width=Math.round(this.width);this.height=Math.round(this.height);return this"); + atom.Append("};\ng.scale=function(a,b){var c=r(b)?b:a;this.width*=a;this.height*=c;return this}"); + atom.Append(";function db(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.bo"); + atom.Append("dy;return new cb(a.clientWidth,a.clientHeight)}function eb(a,b,c){function d(c){c&"); + atom.Append("&b.appendChild(n(c)?a.createTextNode(c):c)}for(var e=1;e]=|\\\\s+|.\",\"g\"),Hb=/^\\s/;function E(a,b){return a.T[a.G+(b||0)]}Eb.prototy"); + atom.Append("pe.next=function(){return this.T[this.G++]};Eb.prototype.back=function(){this.G--}"); + atom.Append(";Eb.prototype.empty=function(){return this.T.length<=this.G};function F(a){var b=n"); + atom.Append("ull,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void "); + atom.Append("0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(D&&\"title\"==a.nodeName.toLowerC"); + atom.Append("ase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for"); + atom.Append("(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),D&&\"title\"==a.nodeNa"); + atom.Append("me.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].ne"); + atom.Append("xtSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction G(a,b,c){if(null===b)ret"); + atom.Append("urn!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Bb&&\"class\"==b&&(b=\"cla"); + atom.Append("ssName\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Ib(a,"); + atom.Append("b,c,d,e){return(D?Jb:Kb).call(null,a,b,n(c)?c:null,n(d)?d:null,e||new H)}\nfunctio"); + atom.Append("n Jb(a,b,c,d,e){if(a instanceof Lb||8==a.l||c&&null===a.l){var f=b.all;if(!f)retur"); + atom.Append("n e;a=Mb(a);if(\"*\"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var h"); + atom.Append("=[],m=0;b=f[m++];)G(b,c,d)&&h.push(b);f=h}for(m=0;b=f[m++];)\"*\"==a&&\"!\"==b.tag"); + atom.Append("Name||e.add(b);return e}Nb(a,b,c,d,e);return e}\nfunction Kb(a,b,c,d,e){b.getEleme"); + atom.Append("ntsByName&&d&&\"name\"==c&&!y?(b=b.getElementsByName(d),v(b,function(b){a.matches("); + atom.Append("b)&&e.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassN"); + atom.Append("ame(d),v(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof I?Nb"); + atom.Append("(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),v(b,fun"); + atom.Append("ction(a){G(a,c,d)&&e.add(a)}));return e}\nfunction Ob(a,b,c,d,e){var f;if((a insta"); + atom.Append("nceof Lb||8==a.l||c&&null===a.l)&&(f=b.childNodes)){var h=Mb(a);if(\"*\"!=h&&(f=na"); + atom.Append("(f,function(a){return a.tagName&&a.tagName.toLowerCase()==h}),!f))return e;c&&(f=n"); + atom.Append("a(f,function(a){return G(a,c,d)}));v(f,function(a){\"*\"==h&&(\"!\"==a.tagName||\""); + atom.Append("*\"==h&&1!=a.nodeType)||e.add(a)});return e}return Pb(a,b,c,d,e)}function Pb(a,b,c"); + atom.Append(",d,e){for(b=b.firstChild;b;b=b.nextSibling)G(b,c,d)&&a.matches(b)&&e.add(b);return"); + atom.Append(" e}\nfunction Nb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)G(b,c,d)&&a.match"); + atom.Append("es(b)&&e.add(b),Nb(a,b,c,d,e)}function Mb(a){if(a instanceof I){if(8==a.l)return\""); + atom.Append("!\";if(null===a.l)return\"*\"}return a.getName()};function H(){this.m=this.i=null;"); + atom.Append("this.B=0}function Qb(a){this.v=a;this.next=this.t=null}function Rb(a,b){if(!a.i)re"); + atom.Append("turn b;if(!b.i)return a;for(var c=a.i,d=b.i,e=null,f=null,h=0;c&&d;){var f=c.v,m=d"); + atom.Append(".v;f==m||f instanceof Cb&&m instanceof Cb&&f.f==m.f?(f=c,c=c.next,d=d.next):0\",4,2,funct"); + atom.Append("ion(a,b,c){return $b(function(a,b){return a>b},a,b,c)});O(\"<=\",4,2,function(a,b,"); + atom.Append("c){return $b(function(a,b){return a<=b},a,b,c)});O(\">=\",4,2,function(a,b,c){retu"); + atom.Append("rn $b(function(a,b){return a>=b},a,b,c)});var Zb=O(\"=\",3,2,function(a,b,c){retur"); + atom.Append("n $b(function(a,b){return a==b},a,b,c,!0)});O(\"!=\",3,2,function(a,b,c){return $b"); + atom.Append("(function(a,b){return a!=b},a,b,c,!0)});O(\"and\",2,2,function(a,b,c){return Xb(a,"); + atom.Append("c)&&Xb(b,c)});O(\"or\",1,2,function(a,b,c){return Xb(a,c)||Xb(b,c)});function cc(a"); + atom.Append(",b){if(b.o()&&4!=a.h)throw Error(\"Primary expression must evaluate to nodeset if "); + atom.Append("filter has predicate(s).\");K.call(this,a.h);this.ba=a;this.d=b;this.q=a.g();this."); + atom.Append("j=a.j}s(cc,K);cc.prototype.evaluate=function(a){a=this.ba.evaluate(a);return dc(th"); + atom.Append("is.d,a)};cc.prototype.toString=function(){var a;a=\"Filter:\"+L(this.ba);return a+"); + atom.Append("=L(this.d)};function ec(a,b){if(b.lengtha"); + atom.Append(".P)throw Error(\"Function \"+a.k+\" expects at most \"+a.P+\" arguments, \"+b.leng"); + atom.Append("th+\" given\");a.ka&&v(b,function(b,d){if(4!=b.h)throw Error(\"Argument \"+d+\" to"); + atom.Append(" function \"+a.k+\" is not of type Nodeset: \"+b);});K.call(this,a.h);this.F=a;thi"); + atom.Append("s.K=b;Vb(this,a.q||qa(b,function(a){return a.g()}));Wb(this,a.ia&&!b.length||a.ha&"); + atom.Append("&!!b.length||qa(b,function(a){return a.j}))}\ns(ec,K);ec.prototype.evaluate=functi"); + atom.Append("on(a){return this.F.n.apply(null,ua(a,this.K))};ec.prototype.toString=function(){v"); + atom.Append("ar a=\"Function: \"+this.F;if(this.K.length)var b=pa(this.K,function(a,b){return a"); + atom.Append("+L(b)},\"Arguments:\"),a=a+L(b);return a};function fc(a,b,c,d,e,f,h,m,t){this.k=a;"); + atom.Append("this.h=b;this.q=c;this.ia=d;this.ha=e;this.n=f;this.$=h;this.P=l(m)?m:h;this.ka=!!"); + atom.Append("t}fc.prototype.toString=function(){return this.k};var gc={};\nfunction P(a,b,c,d,e"); + atom.Append(",f,h,m){if(gc.hasOwnProperty(a))throw Error(\"Function already created: \"+a+\".\""); + atom.Append(");gc[a]=new fc(a,b,c,d,!1,e,f,h,m)}P(\"boolean\",2,!1,!1,function(a,b){return Xb(b"); + atom.Append(",a)},1);P(\"ceiling\",1,!1,!1,function(a,b){return Math.ceil(M(b,a))},1);P(\"conca"); + atom.Append("t\",3,!1,!1,function(a,b){return pa(wa(arguments,1),function(b,d){return b+N(d,a)}"); + atom.Append(",\"\")},2,null);P(\"contains\",2,!1,!1,function(a,b,c){b=N(b,a);a=N(c,a);return-1!"); + atom.Append("=b.indexOf(a)},2);P(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).o()},1,1,"); + atom.Append("!0);\nP(\"false\",2,!1,!1,function(){return!1},0);P(\"floor\",1,!1,!1,function(a,b"); + atom.Append("){return Math.floor(M(b,a))},1);P(\"id\",4,!1,!1,function(a,b){function c(a){if(D)"); + atom.Append("{var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return sa(b,func"); + atom.Append("tion(b){return a==b.id})}return null}return e.getElementById(a)}var d=a.f,e=9==d.n"); + atom.Append("odeType?d:d.ownerDocument,d=N(b,a).split(/\\s+/),f=[];v(d,function(a){(a=c(a))&&!t"); + atom.Append("a(f,a)&&f.push(a)});f.sort(hb);var h=new H;v(f,function(a){h.add(a)});return h},1)"); + atom.Append(";\nP(\"lang\",2,!1,!1,function(){return!1},1);P(\"last\",1,!0,!1,function(a){if(1!"); + atom.Append("=arguments.length)throw Error(\"Function last expects ()\");return a.m},0);P(\"loc"); + atom.Append("al-name\",3,!1,!0,function(a,b){var c=b?Sb(b.evaluate(a)):a.f;return c?c.nodeName."); + atom.Append("toLowerCase():\"\"},0,1,!0);P(\"name\",3,!1,!0,function(a,b){var c=b?Sb(b.evaluate"); + atom.Append("(a)):a.f;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);P(\"namespace-uri\",3,!0,"); + atom.Append("!1,function(){return\"\"},0,1,!0);\nP(\"normalize-space\",3,!1,!0,function(a,b){re"); + atom.Append("turn(b?N(b,a):F(a.f)).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},"); + atom.Append("0,1);P(\"not\",2,!1,!1,function(a,b){return!Xb(b,a)},1);P(\"number\",1,!1,!0,funct"); + atom.Append("ion(a,b){return b?M(b,a):+F(a.f)},0,1);P(\"position\",1,!0,!1,function(a){return a"); + atom.Append(".na},0);P(\"round\",1,!1,!1,function(a,b){return Math.round(M(b,a))},1);P(\"starts"); + atom.Append("-with\",2,!1,!1,function(a,b,c){b=N(b,a);a=N(c,a);return 0==b.lastIndexOf(a,0)},2)"); + atom.Append(";P(\"string\",3,!1,!0,function(a,b){return b?N(b,a):F(a.f)},0,1);\nP(\"string-leng"); + atom.Append("th\",1,!1,!0,function(a,b){return(b?N(b,a):F(a.f)).length},0,1);P(\"substring\",3,"); + atom.Append("!1,!1,function(a,b,c,d){c=M(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\""); + atom.Append(";d=d?M(d,a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e"); + atom.Append("=Math.max(c,0);a=N(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);retur"); + atom.Append("n a.substring(e,c+b)},2,3);P(\"substring-after\",3,!1,!1,function(a,b,c){b=N(b,a);"); + atom.Append("a=N(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nP(\"substri"); + atom.Append("ng-before\",3,!1,!1,function(a,b,c){b=N(b,a);a=N(c,a);a=b.indexOf(a);return-1==a?"); + atom.Append("\"\":b.substring(0,a)},2);P(\"sum\",1,!1,!1,function(a,b){for(var c=J(b.evaluate(a"); + atom.Append(")),d=0,e=c.next();e;e=c.next())d+=+F(e);return d},1,1,!0);P(\"translate\",3,!1,!1,"); + atom.Append("function(a,b,c,d){b=N(b,a);c=N(c,a);var e=N(d,a);a=[];for(d=0;da.length)throw Error(\"Unclos"); + atom.Append("ed literal string\");return new ic(a)}function Hc(a){var b=a.a.next(),c=b.indexOf("); + atom.Append("\":\");if(-1==c)return new Lb(b);var d=b.substring(0,c);a=a.la(d);if(!a)throw Erro"); + atom.Append("r(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return new Lb(b,a)}\nfunc"); + atom.Append("tion Ic(a){var b,c=[],d;if(oc(E(a.a))){b=a.a.next();d=E(a.a);if(\"/\"==b&&(a.a.emp"); + atom.Append("ty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d)))return n"); + atom.Append("ew mc;d=new mc;S(a,\"Missing next location step.\");b=Jc(a,b);c.push(b)}else{a:{b="); + atom.Append("E(a.a);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable reference not all"); + atom.Append("owed in HTML XPath\");case \"(\":a.a.next();b=Cc(a);S(a,'unclosed \"(\"');Ec(a,\")"); + atom.Append("\");break;case '\"':case \"'\":b=Gc(a);break;default:if(isNaN(+b))if(!hc(b)&&/(?!["); + atom.Append("0-9])[\\w]/.test(d)&&\"(\"==E(a.a,\n1)){b=a.a.next();b=gc[b]||null;a.a.next();for("); + atom.Append("d=[];\")\"!=E(a.a);){S(a,\"Missing function argument list.\");d.push(Cc(a));if(\","); + atom.Append("\"!=E(a.a))break;a.a.next()}S(a,\"Unclosed function argument list.\");Fc(a);b=new "); + atom.Append("ec(b,d)}else{b=null;break a}else b=new jc(+a.a.next())}\"[\"==E(a.a)&&(d=new rc(Kc"); + atom.Append("(a)),b=new cc(b,d))}if(b)if(oc(E(a.a)))d=b;else return b;else b=Jc(a,\"/\"),d=new "); + atom.Append("nc,c.push(b)}for(;oc(E(a.a));)b=a.a.next(),S(a,\"Missing next location step.\"),b="); + atom.Append("Jc(a,b),c.push(b);return new kc(d,c)}\nfunction Jc(a,b){var c,d,e;if(\"/\"!=b&&\"/"); + atom.Append("/\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\"==E(a.a))return d="); + atom.Append("new sc(yc,new I(\"node\")),a.a.next(),d;if(\"..\"==E(a.a))return d=new sc(xc,new I"); + atom.Append("(\"node\")),a.a.next(),d;var f;if(\"@\"==E(a.a))f=lc,a.a.next(),S(a,\"Missing attr"); + atom.Append("ibute name\");else if(\"::\"==E(a.a,1)){if(!/(?![0-9])[\\w]/.test(E(a.a).charAt(0)"); + atom.Append("))throw Error(\"Bad token: \"+a.a.next());c=a.a.next();f=wc[c]||null;if(!f)throw E"); + atom.Append("rror(\"No axis with name: \"+c);a.a.next();S(a,\"Missing node name\")}else f=\ntc;"); + atom.Append("c=E(a.a);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==E(a.a,1)){if(!hc(c))throw"); + atom.Append(" Error(\"Invalid node type: \"+c);c=a.a.next();if(!hc(c))throw Error(\"Invalid typ"); + atom.Append("e name: \"+c);Ec(a,\"(\");S(a,\"Bad nodetype\");e=E(a.a).charAt(0);var h=null;if('"); + atom.Append("\"'==e||\"'\"==e)h=Gc(a);S(a,\"Bad nodetype\");Fc(a);c=new I(c,h)}else c=Hc(a);els"); + atom.Append("e if(\"*\"==c)c=Hc(a);else throw Error(\"Bad token: \"+a.a.next());e=new rc(Kc(a),"); + atom.Append("f.w);return d||new sc(f,c,e,\"//\"==b)}\nfunction Kc(a){for(var b=[];\"[\"==E(a.a)"); + atom.Append(";){a.a.next();S(a,\"Missing predicate expression.\");var c=Cc(a);b.push(c);S(a,\"U"); + atom.Append("nclosed predicate expression.\");Ec(a,\"]\")}return b}function Dc(a){if(\"-\"==E(a"); + atom.Append(".a))return a.a.next(),new zc(Dc(a));var b=Ic(a);if(\"|\"!=E(a.a))a=b;else{for(b=[b"); + atom.Append("];\"|\"==a.a.next();)S(a,\"Missing next union location path.\"),b.push(Ic(a));a.a."); + atom.Append("back();a=new Ac(b)}return a};function Lc(a){switch(a.nodeType){case 1:return ha(Mc"); + atom.Append(",a);case 9:return Lc(a.documentElement);case 2:return a.ownerElement?Lc(a.ownerEle"); + atom.Append("ment):Nc;case 11:case 10:case 6:case 12:return Nc;default:return a.parentNode?Lc(a"); + atom.Append(".parentNode):Nc}}function Nc(){return null}function Mc(a,b){if(a.prefix==b)return "); + atom.Append("a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:"); + atom.Append("\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?M"); + atom.Append("c(a.parentNode,b):null};function Oc(a,b){if(!a.length)throw Error(\"Empty XPath ex"); + atom.Append("pression.\");var c=Fb(a);if(c.empty())throw Error(\"Invalid XPath expression.\");b"); + atom.Append("?ca(b)||(b=ga(b.lookupNamespaceURI,b)):b=function(){return null};var d=Cc(new Bc(c"); + atom.Append(",b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evaluate=function(a,"); + atom.Append("b){var c=d.evaluate(new Ab(a));return new T(c,b)}}\nfunction T(a,b){if(0==b)if(a i"); + atom.Append("nstanceof H)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typeof a)b=1;"); + atom.Append("else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluation result."); + atom.Append("\");if(2!=b&&1!=b&&3!=b&&!(a instanceof H))throw Error(\"value could not be conver"); + atom.Append("ted to the specified type\");this.resultType=b;var c;switch(b){case 2:this.stringV"); + atom.Append("alue=a instanceof H?Tb(a):\"\"+a;break;case 1:this.numberValue=a instanceof H?+Tb("); + atom.Append("a):+a;break;case 3:this.booleanValue=a instanceof H?0=c.length?nu"); + atom.Append("ll:c[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"snapshotItem "); + atom.Append("called with wrong result type\");return a>=\nc.length||0>a?null:c[a]}}T.ANY_TYPE=0"); + atom.Append(";T.NUMBER_TYPE=1;T.STRING_TYPE=2;T.BOOLEAN_TYPE=3;T.UNORDERED_NODE_ITERATOR_TYPE=4"); + atom.Append(";T.ORDERED_NODE_ITERATOR_TYPE=5;T.UNORDERED_NODE_SNAPSHOT_TYPE=6;T.ORDERED_NODE_SN"); + atom.Append("APSHOT_TYPE=7;T.ANY_UNORDERED_NODE_TYPE=8;T.FIRST_ORDERED_NODE_TYPE=9;function Pc("); + atom.Append("a){this.lookupNamespaceURI=Lc(a)}\nfunction Qc(a){a=a||k;var b=a.document;b.evalua"); + atom.Append("te||(a.XPathResult=T,b.evaluate=function(a,b,e,f){return(new Oc(a,e)).evaluate(b,f"); + atom.Append(")},b.createExpression=function(a,b){return new Oc(a,b)},b.createNSResolver=functio"); + atom.Append("n(a){return new Pc(a)})};var U={};U.ga=function(){var a={ta:\"http://www.w3.org/20"); + atom.Append("00/svg\"};return function(b){return a[b]||null}}();U.n=function(a,b,c){var d=B(a);"); + atom.Append("(y||xb)&&Qc(d?d.parentWindow||d.defaultView:window);try{var e=d.createNSResolver?d"); + atom.Append(".createNSResolver(d.documentElement):U.ga;return y&&!$a(7)?d.evaluate.call(d,b,a,e"); + atom.Append(",c,null):d.evaluate(b,a,e,c,null)}catch(f){if(!z||\"NS_ERROR_ILLEGAL_VALUE\"!=f.na"); + atom.Append("me)throw new Ia(32,\"Unable to locate an element with the xpath expression \"+b+\""); + atom.Append(" because of the following error:\\n\"+f);}};\nU.L=function(a,b){if(!a||1!=a.nodeTy"); + atom.Append("pe)throw new Ia(32,'The result of the xpath expression \"'+b+'\" is: '+a+\". It sh"); + atom.Append("ould be an element.\");};U.oa=function(a,b){var c=function(){var c=U.n(b,a,9);retu"); + atom.Append("rn c?(c=c.singleNodeValue,x?c:c||null):b.selectSingleNode?(c=B(b),c.setProperty&&c"); + atom.Append(".setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):null}();null="); + atom.Append("==c||U.L(c,a);return c};\nU.ra=function(a,b){var c=function(){var c=U.n(b,a,7);if("); + atom.Append("c){var e=c.snapshotLength;x&&!l(e)&&U.L(null,a);for(var f=[],h=0;h=this.left&&a.right<=this.right&&a.top>=this."); + atom.Append("top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=th"); + atom.Append("is.bottom:!1};\ng.expand=function(a,b,c,d){da(a)?(this.top-=a.top,this.right+=a.ri"); + atom.Append("ght,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.botto"); + atom.Append("m+=c,this.left-=d);return this};g.ceil=function(){this.top=Math.ceil(this.top);thi"); + atom.Append("s.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ce"); + atom.Append("il(this.left);return this};g.floor=function(){this.top=Math.floor(this.top);this.r"); + atom.Append("ight=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.flo"); + atom.Append("or(this.left);return this};\ng.round=function(){this.top=Math.round(this.top);this"); + atom.Append(".right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.r"); + atom.Append("ound(this.left);return this};g.translate=function(a,b){a instanceof A?(this.left+="); + atom.Append("a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,r("); + atom.Append("b)&&(this.top+=b,this.bottom+=b));return this};g.scale=function(a,b){var c=r(b)?b:"); + atom.Append("a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function V(a,"); + atom.Append("b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}g=V.prototype;g.clone=fun"); + atom.Append("ction(){return new V(this.left,this.top,this.width,this.height)};g.toString=functi"); + atom.Append("on(){return\"(\"+this.left+\", \"+this.top+\" - \"+this.width+\"w x \"+this.height"); + atom.Append("+\"h)\"};g.contains=function(a){return a instanceof V?this.left<=a.left&&this.left"); + atom.Append("+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height"); + atom.Append(":a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.heig"); + atom.Append("ht};\ng.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top"); + atom.Append(");this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}"); + atom.Append(";g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);"); + atom.Append("this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}"); + atom.Append(";g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);"); + atom.Append("this.width=Math.round(this.width);this.height=Math.round(this.height);return this}"); + atom.Append(";\ng.translate=function(a,b){a instanceof A?(this.left+=a.x,this.top+=a.y):(this.l"); + atom.Append("eft+=a,r(b)&&(this.top+=b));return this};g.scale=function(a,b){var c=r(b)?b:a;this"); + atom.Append(".left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function W(a,b){ret"); + atom.Append("urn!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function cd(a){for(a=a.par"); + atom.Append("entNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return W(a"); + atom.Append(")?a:null}\nfunction Y(a,b){var c=la(b);if(\"float\"==c||\"cssFloat\"==c||\"styleFl"); + atom.Append("oat\"==c)c=ad?\"styleFloat\":\"cssFloat\";var d;a:{d=c;var e=B(a);if(e.defaultView"); + atom.Append("&&e.defaultView.getComputedStyle&&(e=e.defaultView.getComputedStyle(a,null))){d=e["); + atom.Append("d]||e.getPropertyValue(d)||\"\";break a}d=\"\"}d=d||dd(a,c);if(null===d)d=null;els"); + atom.Append("e if(ta(ya,c)){b:{var f=d.match(Ga);if(f){var c=Number(f[1]),e=Number(f[2]),h=Numb"); + atom.Append("er(f[3]),f=Number(f[4]);if(0<=c&&255>=c&&0<=e&&255>=e&&0<=h&&255>=h&&0<=f&&1>=f){c"); + atom.Append("=[c,e,h,f];break b}}c=null}if(!c)b:{if(h=\nd.match(Ha))if(c=Number(h[1]),e=Number("); + atom.Append("h[2]),h=Number(h[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=h&&255>=h){c=[c,e,h,1];break b"); + atom.Append("}c=null}if(!c)b:{c=d.toLowerCase();e=xa[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt"); + atom.Append("(0)?c:\"#\"+c,4==e.length&&(e=e.replace(Ea,\"#$1$1$2$2$3$3\")),!Fa.test(e))){c=nul"); + atom.Append("l;break b}c=[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.subs"); + atom.Append("tr(5,2),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}return d}\nfunction dd(a,b){va"); + atom.Append("r c=a.currentStyle||a.style,d=c[b];!l(d)&&ca(c.getPropertyValue)&&(d=c.getProperty"); + atom.Append("Value(b));return\"inherit\"!=d?l(d)?d:null:(c=cd(a))?dd(c,b):null}\nfunction ed(a,"); + atom.Append("b){function c(a){if(\"none\"==Y(a,\"display\"))return!1;a=cd(a);return!a||c(a)}fun"); + atom.Append("ction d(a){var b=fd(a);return 0="); + atom.Append("q.left+q.width;q=e.top>=q.top+q.height;if(u&&\"hidden\"==p.x||q&&\"hidden\"==p.y)r"); + atom.Append("eturn Z;if(u&&\"visible\"!=p.x||q&&\"visible\"!=p.y){if(X&&(p=d(a),e.left>=h.scrol"); + atom.Append("lWidth-p.x||e.right>=h.scrollHeight-p.y))return Z;e=gd(a);return e==Z?Z:\"scroll\""); + atom.Append("}}}return\"none\"}var kd=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+),"); + atom.Append(" ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction fd(a)"); + atom.Append("{function b(a){var c=B(a),d=(c?c.parentWindow||c.defaultView:window).getComputedSt"); + atom.Append("yle(a,null).MozTransform.match(kd);if(d){var e=parseFloat(d[1]),p=parseFloat(d[2])"); + atom.Append(",q=parseFloat(d[3]),u=parseFloat(d[4]),c=parseFloat(d[5]),d=parseFloat(d[6]),Q=f.l"); + atom.Append("eft+f.width,za=f.top+f.height,Aa=f.left*e,e=Q*e,Ca=f.left*p,p=Q*p,Ba=f.top*q,q=za*"); + atom.Append("q,Da=f.top*u,Q=za*u,za=Aa+Ba+c,u=Ca+Da+d,Ba=e+Ba+c,Da=p+Da+d,Aa=Aa+q+c,Ca=Ca+Q+d,c"); + atom.Append("=e+q+c,d=p+Q+d;f.left=Math.min(za,Ba,Aa,c);f.top=Math.min(u,Da,Ca,d);c=Math.max(za"); + atom.Append(",\nBa,Aa,c);d=Math.max(u,Da,Ca,d);f.width=c-f.left;f.height=d-f.top}(a=cd(a))&&b(a"); + atom.Append(")}var c=hd(a);if(c)return c.rect;if(W(a,\"HTML\"))return c=B(a),a=db((c?c.parentWi"); + atom.Append("ndow||c.defaultView:window)||window),new V(0,0,a.width,a.height);var d;try{d=a.get"); + atom.Append("BoundingClientRect()}catch(e){return new V(0,0,0,0)}var f=new V(d.left,d.top,d.rig"); + atom.Append("ht-d.left,d.bottom-d.top);y&&a.ownerDocument.body&&(c=B(a),f.left-=c.documentEleme"); + atom.Append("nt.clientLeft+c.body.clientLeft,f.top-=c.documentElement.clientTop+c.body.clientTo"); + atom.Append("p);x&&(0==f.width&&\n02*this.u&&pd(this),!0):!1};function pd(a){if(a.u!=a.e.length){for(var b=0,c"); + atom.Append("=0;b\");$(191,\"/\""); + atom.Append(",\"?\");$(192,\"`\",\"~\");$(219,\"[\",\"{\");$(220,\"\\\\\",\"|\");$(221,\"]\",\""); + atom.Append("}\");$({b:59,c:186,opera:59},\";\",\":\");$(222,\"'\",'\"');var wd=new nd;wd.set(1"); + atom.Append(",sd);wd.set(2,td);wd.set(4,ud);wd.set(8,vd);\n(function(a){var b=new nd;v(od(a),fu"); + atom.Append("nction(c){b.set(a.get(c).code,c)});return b})(wd);z&&Vc(12);function xd(){this.I=v"); + atom.Append("oid 0}\nfunction yd(a,b,c){switch(typeof b){case \"string\":zd(b,c);break;case \"n"); + atom.Append("umber\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b)"); + atom.Append(";break;case \"undefined\":c.push(\"null\");break;case \"object\":if(null==b){c.pus"); + atom.Append("h(\"null\");break}if(\"array\"==aa(b)){var d=b.length;c.push(\"[\");for(var e=\"\""); + atom.Append(",f=0;fb?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0"); + atom.Append("\");return Ad[a]=e+b.toString(16)}),'\"')};Ta||x||z&&Vc(3.5)||y&&Vc(8);function Cd"); + atom.Append("(a){switch(aa(a)){case \"string\":case \"number\":case \"boolean\":return a;case "); + atom.Append("\"function\":return a.toString();case \"array\":return oa(a,Cd);case \"object\":if"); + atom.Append("(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Dd(a);return"); + atom.Append(" b}if(\"document\"in a)return b={},b.WINDOW=Dd(a),b;if(ba(a))return oa(a,Cd);a=Oa("); + atom.Append("a,function(a,b){return r(b)||n(b)});return Pa(a,Cd);default:return null}}\nfunctio"); + atom.Append("n Ed(a,b){return\"array\"==aa(a)?oa(a,function(a){return Ed(a,b)}):da(a)?\"functio"); + atom.Append("n\"==typeof a?a:\"ELEMENT\"in a?Fd(a.ELEMENT,b):\"WINDOW\"in a?Fd(a.WINDOW,b):Pa(a"); + atom.Append(",function(a){return Ed(a,b)}):a}function Gd(a){a=a||document;var b=a.$wdc_;b||(b=a"); + atom.Append(".$wdc_={},b.R=ia());b.R||(b.R=ia());return b}function Dd(a){var b=Gd(a.ownerDocume"); + atom.Append("nt),c=Qa(b,function(b){return b==a});c||(c=\":wdc:\"+b.R++,b[c]=a);return c}\nfunc"); + atom.Append("tion Fd(a,b){a=decodeURIComponent(a);var c=b||document,d=Gd(c);if(!(a in d))throw "); + atom.Append("new Ia(10,\"Element does not exist in cache\");var e=d[a];if(\"setInterval\"in e){"); + atom.Append("if(e.closed)throw delete d[a],new Ia(23,\"Window has been closed.\");return e}for("); + atom.Append("var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];throw new "); + atom.Append("Ia(10,\"Element is no longer attached to the DOM\");};function Hd(a,b){var c=[a,!0"); + atom.Append("],d=ed,e;try{var f=b?Fd(b.WINDOW):window,h=Ed(c,f.document),m=d.apply(null,h);e={s"); + atom.Append("tatus:0,value:Cd(m)}}catch(t){e={status:\"code\"in t?t.code:13,value:{message:t.me"); + atom.Append("ssage}}}c=[];yd(new xd,e,c);return c.join(\"\")}var Id=[\"_\"],Jd=k;Id[0]in Jd||!J"); + atom.Append("d.execScript||Jd.execScript(\"var \"+Id[0]);for(var Kd;Id.length&&(Kd=Id.shift());"); + atom.Append(")!Id.length&&l(Hd)?Jd[Kd]=Hd:Jd=Jd[Kd]?Jd[Kd]:Jd[Kd]={};; return this._.apply(null"); + atom.Append(",arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,docu"); + atom.Append("ment:typeof window!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string GetValueOfCssProperty + { + get + { + const string atomName = "GetValueOfCssProperty"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var d=this;\nfunction h(a){var c=typeof a;if(\"object"); + atom.Append("\"==c)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return c;"); + atom.Append("var b=Object.prototype.toString.call(a);if(\"[object Window]\"==b)return\"object\""); + atom.Append(";if(\"[object Array]\"==b||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==b||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nc&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return c}function aa(a){var c=h(a);return\"array\"==c|"); + atom.Append("|\"object\"==c&&\"number\"==typeof a.length}function l(a){return\"string\"==typeof"); + atom.Append(" a}function ba(a){var c=typeof a;return\"object\"==c&&null!=a||\"function\"==c}var"); + atom.Append(" ca=Date.now||function(){return+new Date};function m(a,c){for(var b=0,e=String(a)."); + atom.Append("replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),f=String(c).replace(/^[\\s"); + atom.Append("\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),g=Math.max(e.length,f.length),k=0;0==b&&"); + atom.Append("kc?1:0}"); + atom.Append("function da(a){return String(a).replace(/\\-([a-z])/g,function(a,b){return b.toUpp"); + atom.Append("erCase()})};function ea(a,c){for(var b=a.length,e=l(a)?a.split(\"\"):a,f=0;fe||b.indexOf(\"Error\",e)!=e)b+=\"Error\";t"); + atom.Append("his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||\"\"}\n(func"); + atom.Append("tion(){var a=Error;function c(){}c.prototype=a.prototype;r.k=a.prototype;r.prototy"); + atom.Append("pe=new c;r.prototype.constructor=r;r.j=function(b,c,f){return a.prototype[c].apply"); + atom.Append("(b,Array.prototype.slice.call(arguments,2))}})();\nvar ka=\"unknown error\",s={15:"); + atom.Append("\"element not selectable\",11:\"element not visible\",31:\"ime engine activation f"); + atom.Append("ailed\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"invalid element"); + atom.Append(" coordinates\",12:\"invalid element state\",32:\"invalid selector\",51:\"invalid s"); + atom.Append("elector\",52:\"invalid selector\",17:\"javascript error\",405:\"unsupported operat"); + atom.Append("ion\",34:\"move target out of bounds\",27:\"no such alert\",7:\"no such element\","); + atom.Append("8:\"no such frame\",23:\"no such window\",28:\"script timeout\",33:\"session not c"); + atom.Append("reated\",10:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unable"); + atom.Append(" to set cookie\",26:\"unexpected alert open\"};s[13]=ka;s[9]=\"unknown command\";r"); + atom.Append(".prototype.toString=function(){return this.name+\": \"+this.message};var t;a:{var "); + atom.Append("la=d.navigator;if(la){var ma=la.userAgent;if(ma){t=ma;break a}}t=\"\"}function u(a"); + atom.Append("){return-1!=t.indexOf(a)};function na(a,c){var b={},e;for(e in a)c.call(void 0,a[e"); + atom.Append("],e,a)&&(b[e]=a[e]);return b}function oa(a,c){var b={},e;for(e in a)b[e]=c.call(vo"); + atom.Append("id 0,a[e],e,a);return b}function pa(a,c){for(var b in a)if(c.call(void 0,a[b],b,a)"); + atom.Append(")return b};var v,w,x=u(\"Opera\")||u(\"OPR\"),y=u(\"Trident\")||u(\"MSIE\"),z=u(\""); + atom.Append("Gecko\")&&-1==t.toLowerCase().indexOf(\"webkit\")&&!(u(\"Trident\")||u(\"MSIE\")),"); + atom.Append("A=-1!=t.toLowerCase().indexOf(\"webkit\"),B,qa=d.navigator||null;B=qa&&qa.platform"); + atom.Append("||\"\";v=-1!=B.indexOf(\"Mac\");w=-1!=B.indexOf(\"Win\");var C=-1!=B.indexOf(\"Lin"); + atom.Append("ux\");function ra(){var a=d.document;return a?a.documentMode:void 0}\nvar G=functi"); + atom.Append("on(){var a=\"\",c;if(x&&d.opera)return a=d.opera.version,\"function\"==h(a)?a():a;"); + atom.Append("z?c=/rv\\:([^\\);]+)(\\)|;)/:y?c=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:A&&(c=/WebK"); + atom.Append("it\\/(\\S+)/);c&&(a=(a=c.exec(t))?a[1]:\"\");return y&&(c=ra(),c>parseFloat(a))?St"); + atom.Append("ring(c):a}(),sa={};function H(a){return sa[a]||(sa[a]=0<=m(G,a))}var ta=d.document"); + atom.Append(",I=ta&&y?ra()||(\"CSS1Compat\"==ta.compatMode?parseInt(G,10):5):void 0;!z&&!y||y&&"); + atom.Append("y&&9<=I||z&&H(\"1.9.1\");y&&H(\"9\");var J,K,L,ua,va,wa,xa;xa=wa=va=ua=L=K=J=!1;va"); + atom.Append("r M=t;M&&(-1!=M.indexOf(\"Firefox\")?J=!0:-1!=M.indexOf(\"Camino\")?K=!0:-1!=M.ind"); + atom.Append("exOf(\"iPhone\")||-1!=M.indexOf(\"iPod\")?L=!0:-1!=M.indexOf(\"iPad\")?ua=!0:-1!=M"); + atom.Append(".indexOf(\"Chrome\")?wa=!0:-1!=M.indexOf(\"Android\")?va=!0:-1!=M.indexOf(\"Safari"); + atom.Append("\")&&(xa=!0));var ya=J,za=K,Aa=L,Ba=ua,N=va,Ca=wa,Da=xa;function Ea(a){this.i=a}Ea"); + atom.Append(".prototype.toString=function(){return this.i};var Fa={};function O(a){if(Fa.hasOwn"); + atom.Append("Property(a))throw Error(\"Binary operator already created: \"+a);a=new Ea(a);Fa[a."); + atom.Append("toString()]=a}O(\"div\");O(\"mod\");O(\"*\");O(\"+\");O(\"-\");O(\"<\");O(\">\");O"); + atom.Append("(\"<=\");O(\">=\");O(\"=\");O(\"!=\");O(\"and\");O(\"or\");function Ga(a){this.g=a"); + atom.Append("}Ga.prototype.toString=function(){return this.g};var Ha={};function P(a){if(Ha.has"); + atom.Append("OwnProperty(a))throw Error(\"Function already created: \"+a+\".\");Ha[a]=new Ga(a)"); + atom.Append("}P(\"boolean\");P(\"ceiling\");P(\"concat\");P(\"contains\");P(\"count\");P(\"fals"); + atom.Append("e\");P(\"floor\");P(\"id\");P(\"lang\");P(\"last\");P(\"local-name\");P(\"name\");"); + atom.Append("P(\"namespace-uri\");P(\"normalize-space\");P(\"not\");P(\"number\");P(\"position"); + atom.Append("\");P(\"round\");P(\"starts-with\");P(\"string\");P(\"string-length\");P(\"substri"); + atom.Append("ng\");P(\"substring-after\");P(\"substring-before\");\nP(\"sum\");P(\"translate\")"); + atom.Append(";P(\"true\");function Ia(a){this.g=a}Ia.prototype.toString=function(){return this."); + atom.Append("g};var Ja={};function Q(a){if(Ja.hasOwnProperty(a))throw Error(\"Axis already crea"); + atom.Append("ted: \"+a);Ja[a]=new Ia(a)}Q(\"ancestor\");Q(\"ancestor-or-self\");Q(\"attribute\""); + atom.Append(");Q(\"child\");Q(\"descendant\");Q(\"descendant-or-self\");Q(\"following\");Q(\"fo"); + atom.Append("llowing-sibling\");Q(\"namespace\");Q(\"parent\");Q(\"preceding\");Q(\"preceding-s"); + atom.Append("ibling\");Q(\"self\");function R(a){return(a=a.exec(t))?a[1]:\"\"}var Ka=function("); + atom.Append("){if(ya)return R(/Firefox\\/([0-9.]+)/);if(y||x)return G;if(Ca)return R(/Chrome\\/"); + atom.Append("([0-9.]+)/);if(Da)return R(/Version\\/([0-9.]+)/);if(Aa||Ba){var a;if(a=/Version"); + atom.Append("\\/(\\S+).*Mobile\\/(\\S+)/.exec(t))return a[1]+\".\"+a[2]}else{if(N)return(a=R(/A"); + atom.Append("ndroid\\s+([0-9.]+)/))?a:R(/Version\\/([0-9.]+)/);if(za)return R(/Camino\\/([0-9.]"); + atom.Append("+)/)}return\"\"}();var La,Ma;function S(a){return Qa?La(a):y?0<=m(I,a):H(a)}functi"); + atom.Append("on T(a){Qa?Ma(a):N?m(Ra,a):m(Ka,a)}\nvar Qa=function(){if(!z)return!1;var a=d.Comp"); + atom.Append("onents;if(!a)return!1;try{if(!a.classes)return!1}catch(c){return!1}var b=a.classes"); + atom.Append(",a=a.interfaces,e=b[\"@mozilla.org/xpcom/version-comparator;1\"].getService(a.nsIV"); + atom.Append("ersionComparator),b=b[\"@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo)"); + atom.Append(",f=b.platformVersion,g=b.version;La=function(a){return 0<=e.compare(f,\"\"+a)};Ma="); + atom.Append("function(a){e.compare(g,\"\"+a)};return!0}(),Sa;if(N){var Ta=/Android\\s+([0-9\\.]"); + atom.Append("+)/.exec(t);Sa=Ta?Ta[1]:\"0\"}else Sa=\"0\";\nvar Ra=Sa,Ua=y&&!(y&&9<=I);N&&T(2.3)"); + atom.Append(";N&&T(4);Da&&T(6);function Va(a,c){var b=da(c);if(\"float\"==b||\"cssFloat\"==b||"); + atom.Append("\"styleFloat\"==b)b=Ua?\"styleFloat\":\"cssFloat\";var e;a:{e=b;var f=9==a.nodeTyp"); + atom.Append("e?a:a.ownerDocument||a.document;if(f.defaultView&&f.defaultView.getComputedStyle&&"); + atom.Append("(f=f.defaultView.getComputedStyle(a,null))){e=f[e]||f.getPropertyValue(e)||\"\";br"); + atom.Append("eak a}e=\"\"}e=e||Wa(a,b);if(null===e)e=null;else{b:if(l(q))b=l(b)&&1==b.length?q."); + atom.Append("indexOf(b,0):-1;else{for(f=0;f=b&&0<=f&&255>=f&&0<=k&&255>=k&&0<=g&&1>=g){b=[b,"); + atom.Append("f,k,g];break b}}b=null}if(!b)b:{if(k=e.match(ja))if(b=Number(k[1]),f=Number(k[2]),"); + atom.Append("k=Number(k[3]),0<=b&&255>=b&&0<=f&&255>=f&&0<=k&&255>=k){b=[b,f,k,1];break b}b=nul"); + atom.Append("l}if(!b)b:{b=e.toLowerCase();f=fa[b.toLowerCase()];if(!f&&(f=\"#\"==b.charAt(0)?b:"); + atom.Append("\"#\"+b,4==f.length&&(f=f.replace(ga,\"#$1$1$2$2$3$3\")),!ha.test(f))){b=null;brea"); + atom.Append("k b}b=[parseInt(f.substr(1,2),16),parseInt(f.substr(3,2),16),\nparseInt(f.substr(5"); + atom.Append(",2),16),1]}e=b?\"rgba(\"+b.join(\", \")+\")\":e}}return e}function Wa(a,c){var b=a"); + atom.Append(".currentStyle||a.style,e=b[c];void 0===e&&\"function\"==h(b.getPropertyValue)&&(e="); + atom.Append("b.getPropertyValue(c));if(\"inherit\"!=e)return void 0!==e?e:null;for(b=a.parentNo"); + atom.Append("de;b&&1!=b.nodeType&&9!=b.nodeType&&11!=b.nodeType;)b=b.parentNode;return(b=b&&1=="); + atom.Append("b.nodeType?b:null)?Wa(b,c):null};A||x||Qa&&T(3.6);y&&S(10);N&&T(4);function U(a,c)"); + atom.Append("{this.d={};this.c=[];this.e=0;var b=arguments.length;if(12*this.e&&Ya(this),!0):!1};\nfun"); + atom.Append("ction Ya(a){if(a.e!=a.c.length){for(var c=0,b=0;c\");V(191,\"/\",\"?\""); + atom.Append(");V(192,\"`\",\"~\");V(219,\"[\",\"{\");V(220,\"\\\\\",\"|\");V(221,\"]\",\"}\");V"); + atom.Append("({a:59,b:186,opera:59},\";\",\":\");V(222,\"'\",'\"');var W=new U;W.set(1,ab);W.se"); + atom.Append("t(2,bb);W.set(4,cb);W.set(8,db);\n(function(a){var c=new U;ea(Xa(a),function(b){c."); + atom.Append("set(a.get(b).code,b)});return c})(W);z&&S(12);function eb(){this.f=void 0}\nfuncti"); + atom.Append("on fb(a,c,b){switch(typeof c){case \"string\":gb(c,b);break;case \"number\":b.push"); + atom.Append("(isFinite(c)&&!isNaN(c)?c:\"null\");break;case \"boolean\":b.push(c);break;case \""); + atom.Append("undefined\":b.push(\"null\");break;case \"object\":if(null==c){b.push(\"null\");br"); + atom.Append("eak}if(\"array\"==h(c)){var e=c.length;b.push(\"[\");for(var f=\"\",g=0;gc?f+=\"000\":256>c?f+=\"00\":4096>c&&(f+=\"0\");return hb"); + atom.Append("[a]=f+c.toString(16)}),'\"')};A||x||z&&S(3.5)||y&&S(8);function X(a){switch(h(a)){"); + atom.Append("case \"string\":case \"number\":case \"boolean\":return a;case \"function\":return"); + atom.Append(" a.toString();case \"array\":return p(a,X);case \"object\":if(\"nodeType\"in a&&(1"); + atom.Append("==a.nodeType||9==a.nodeType)){var c={};c.ELEMENT=jb(a);return c}if(\"document\"in "); + atom.Append("a)return c={},c.WINDOW=jb(a),c;if(aa(a))return p(a,X);a=na(a,function(a,c){return"); + atom.Append("\"number\"==typeof c||l(c)});return oa(a,X);default:return null}}\nfunction kb(a,c"); + atom.Append("){return\"array\"==h(a)?p(a,function(a){return kb(a,c)}):ba(a)?\"function\"==typeo"); + atom.Append("f a?a:\"ELEMENT\"in a?lb(a.ELEMENT,c):\"WINDOW\"in a?lb(a.WINDOW,c):oa(a,function("); + atom.Append("a){return kb(a,c)}):a}function mb(a){a=a||document;var c=a.$wdc_;c||(c=a.$wdc_={},"); + atom.Append("c.h=ca());c.h||(c.h=ca());return c}function jb(a){var c=mb(a.ownerDocument),b=pa(c"); + atom.Append(",function(b){return b==a});b||(b=\":wdc:\"+c.h++,c[b]=a);return b}\nfunction lb(a,"); + atom.Append("c){a=decodeURIComponent(a);var b=c||document,e=mb(b);if(!(a in e))throw new r(10,"); + atom.Append("\"Element does not exist in cache\");var f=e[a];if(\"setInterval\"in f){if(f.close"); + atom.Append("d)throw delete e[a],new r(23,\"Window has been closed.\");return f}for(var g=f;g;)"); + atom.Append("{if(g==b.documentElement)return f;g=g.parentNode}delete e[a];throw new r(10,\"Elem"); + atom.Append("ent is no longer attached to the DOM\");};function nb(a,c,b){a=[a,c];var e;try{var"); + atom.Append(" f=b?lb(b.WINDOW):window,g=kb(a,f.document),k=Va.apply(null,g);e={status:0,value:X"); + atom.Append("(k)}}catch(D){e={status:\"code\"in D?D.code:13,value:{message:D.message}}}b=[];fb("); + atom.Append("new eb,e,b);return b.join(\"\")}var Y=[\"_\"],Z=d;Y[0]in Z||!Z.execScript||Z.execS"); + atom.Append("cript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0===nb?Z=Z["); + atom.Append("$]?Z[$]:Z[$]={}:Z[$]=nb;; return this._.apply(null,arguments);}.apply({navigator:t"); + atom.Append("ypeof window!=undefined?window.navigator:null,document:typeof window!=undefined?wi"); + atom.Append("ndow.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string GetText + { + get + { + const string atomName = "GetText"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g,k=this;function l(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function b"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction n(a){return\"string\"==typeof a}function r(a){return\"number\"==typeof a}fu"); + atom.Append("nction ca(a){return\"function\"==aa(a)}function da(a){var b=typeof a;return\"objec"); + atom.Append("t\"==b&&null!=a||\"function\"==b}function ea(a,b,c){return a.call.apply(a.bind,arg"); + atom.Append("uments)}\nfunction fa(a,b,c){if(!a)throw Error();if(2b?1:0}function ma(a){return String(a).replace("); + atom.Append("/\\-([a-z])/g,function(a,c){return c.toUpperCase()})};var na=Array.prototype;funct"); + atom.Append("ion u(a,b){for(var c=a.length,d=n(a)?a.split(\"\"):a,e=0;ec?null:n(a)?a.charAt(c):a[c]}\nfunction ua(a,b){var c;a:i"); + atom.Append("f(n(a))c=n(b)&&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?na.slice.call(a"); + atom.Append(",b):na.slice.call(a,b,c)};var ya={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",a"); + atom.Append("qua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:"); + atom.Append("\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviol"); + atom.Append("et:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chart"); + atom.Append("reuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed"); + atom.Append("\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\","); + atom.Append("darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#0"); + atom.Append("06400\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darko"); + atom.Append("livegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0"); + atom.Append("000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",da"); + atom.Append("rkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkvi"); + atom.Append("olet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\","); + atom.Append("dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#ff"); + atom.Append("faf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwh"); + atom.Append("ite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#0"); + atom.Append("08000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#f"); + atom.Append("f69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c"); + atom.Append("\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiff"); + atom.Append("on:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\","); + atom.Append("lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",ligh"); + atom.Append("tgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\""); + atom.Append("#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#77"); + atom.Append("8899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegre"); + atom.Append("en:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaqua"); + atom.Append("marine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\""); + atom.Append("#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen"); + atom.Append(":\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:"); + atom.Append("\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",nav"); + atom.Append("ajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olived"); + atom.Append("rab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palego"); + atom.Append("ldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:"); + atom.Append("\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#"); + atom.Append("ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000"); + atom.Append("\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#f"); + atom.Append("a8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:"); + atom.Append("\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray"); + atom.Append(":\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelb"); + atom.Append("lue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6"); + atom.Append("347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\""); + atom.Append(",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ea=\"backg"); + atom.Append("roundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color"); + atom.Append(" outlineColor\".split(\" \"),Fa=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ga=/^#("); + atom.Append("?:[0-9a-f]{3}){1,2}$/i,Ha=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),"); + atom.Append("\\s?(0|1|0\\.\\d*)\\)$/i,Ia=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),"); + atom.Append("\\s?(0|[1-9]\\d{0,2})\\)$/i;function Ja(a,b){this.code=a;this.state=Ka[a]||La;this"); + atom.Append(".message=b||\"\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return "); + atom.Append("a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"E"); + atom.Append("rror\",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this."); + atom.Append("stack=c.stack||\"\"}s(Ja,Error);\nvar La=\"unknown error\",Ka={15:\"element not se"); + atom.Append("lectable\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"ime"); + atom.Append(" not available\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",1"); + atom.Append("2:\"invalid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\"i"); + atom.Append("nvalid selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move "); + atom.Append("target out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such fram"); + atom.Append("e\",23:\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"st"); + atom.Append("ale element reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\""); + atom.Append(",26:\"unexpected alert open\"};Ka[13]=La;Ka[9]=\"unknown command\";Ja.prototype.to"); + atom.Append("String=function(){return this.name+\": \"+this.message};var v;a:{var Ma=k.navigato"); + atom.Append("r;if(Ma){var Na=Ma.userAgent;if(Na){v=Na;break a}}v=\"\"}function Oa(a){return-1!="); + atom.Append("v.indexOf(a)};function Pa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d"); + atom.Append("]=a[d]);return c}function Qa(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,"); + atom.Append("a);return c}function Ra(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};v"); + atom.Append("ar Sa,Ta,x=Oa(\"Opera\")||Oa(\"OPR\"),y=Oa(\"Trident\")||Oa(\"MSIE\"),z=Oa(\"Gecko"); + atom.Append("\")&&-1==v.toLowerCase().indexOf(\"webkit\")&&!(Oa(\"Trident\")||Oa(\"MSIE\")),Ua="); + atom.Append("-1!=v.toLowerCase().indexOf(\"webkit\"),Va,Wa=k.navigator||null;Va=Wa&&Wa.platform"); + atom.Append("||\"\";Sa=-1!=Va.indexOf(\"Mac\");Ta=-1!=Va.indexOf(\"Win\");var Xa=-1!=Va.indexOf"); + atom.Append("(\"Linux\");function Ya(){var a=k.document;return a?a.documentMode:void 0}\nvar Za"); + atom.Append("=function(){var a=\"\",b;if(x&&k.opera)return a=k.opera.version,ca(a)?a():a;z?b=/r"); + atom.Append("v\\:([^\\);]+)(\\)|;)/:y?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:Ua&&(b=/WebKit\\/"); + atom.Append("(\\S+)/);b&&(a=(a=b.exec(v))?a[1]:\"\");return y&&(b=Ya(),b>parseFloat(a))?String("); + atom.Append("b):a}(),$a={};function ab(a){return $a[a]||($a[a]=0<=ka(Za,a))}var bb=k.document,c"); + atom.Append("b=bb&&y?Ya()||(\"CSS1Compat\"==bb.compatMode?parseInt(Za,10):5):void 0;!z&&!y||y&&"); + atom.Append("y&&9<=cb||z&&ab(\"1.9.1\");y&&ab(\"9\");function A(a,b){this.x=l(a)?a:0;this.y=l(b"); + atom.Append(")?b:0}g=A.prototype;g.clone=function(){return new A(this.x,this.y)};g.toString=fun"); + atom.Append("ction(){return\"(\"+this.x+\", \"+this.y+\")\"};g.ceil=function(){this.x=Math.ceil"); + atom.Append("(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){this.x=Math.floo"); + atom.Append("r(this.x);this.y=Math.floor(this.y);return this};g.round=function(){this.x=Math.ro"); + atom.Append("und(this.x);this.y=Math.round(this.y);return this};\ng.translate=function(a,b){a i"); + atom.Append("nstanceof A?(this.x+=a.x,this.y+=a.y):(this.x+=a,r(b)&&(this.y+=b));return this};g"); + atom.Append(".scale=function(a,b){var c=r(b)?b:a;this.x*=a;this.y*=c;return this};function db(a"); + atom.Append(",b){this.width=a;this.height=b}g=db.prototype;g.clone=function(){return new db(thi"); + atom.Append("s.width,this.height)};g.toString=function(){return\"(\"+this.width+\" x \"+this.he"); + atom.Append("ight+\")\"};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ce"); + atom.Append("il(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);"); + atom.Append("this.height=Math.floor(this.height);return this};g.round=function(){this.width=Mat"); + atom.Append("h.round(this.width);this.height=Math.round(this.height);return this};\ng.scale=fun"); + atom.Append("ction(a,b){var c=r(b)?b:a;this.width*=a;this.height*=c;return this};function eb(a)"); + atom.Append("{a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;return new d"); + atom.Append("b(a.clientWidth,a.clientHeight)}function fb(a,b,c){function d(c){c&&b.appendChild("); + atom.Append("n(c)?a.createTextNode(c):c)}for(var e=1;e]=|\\\\s+|.\",\"g\"),Jb=/^"); + atom.Append("\\s/;function E(a,b){return a.T[a.G+(b||0)]}Gb.prototype.next=function(){return th"); + atom.Append("is.T[this.G++]};Gb.prototype.back=function(){this.G--};Gb.prototype.empty=function"); + atom.Append("(){return this.T.length<=this.G};function F(a){var b=null,c=a.nodeType;1==c&&(b=a."); + atom.Append("textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"s"); + atom.Append("tring\"!=typeof b)if(D&&\"title\"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if"); + atom.Append("(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do "); + atom.Append("1!=a.nodeType&&(b+=a.nodeValue),D&&\"title\"==a.nodeName.toLowerCase()&&(b+=a.text"); + atom.Append("),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.node"); + atom.Append("Value;return\"\"+b}\nfunction G(a,b,c){if(null===b)return!0;try{if(!a.getAttribute"); + atom.Append(")return!1}catch(d){return!1}Db&&\"class\"==b&&(b=\"className\");return null==c?!!a"); + atom.Append(".getAttribute(b):a.getAttribute(b,2)==c}function Kb(a,b,c,d,e){return(D?Lb:Mb).cal"); + atom.Append("l(null,a,b,n(c)?c:null,n(d)?d:null,e||new H)}\nfunction Lb(a,b,c,d,e){if(a instanc"); + atom.Append("eof Nb||8==a.l||c&&null===a.l){var f=b.all;if(!f)return e;a=Ob(a);if(\"*\"!=a&&(f="); + atom.Append("b.getElementsByTagName(a),!f))return e;if(c){for(var h=[],m=0;b=f[m++];)G(b,c,d)&&"); + atom.Append("h.push(b);f=h}for(m=0;b=f[m++];)\"*\"==a&&\"!\"==b.tagName||e.add(b);return e}Pb(a"); + atom.Append(",b,c,d,e);return e}\nfunction Mb(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c&&!"); + atom.Append("y?(b=b.getElementsByName(d),u(b,function(b){a.matches(b)&&e.add(b)})):b.getElement"); + atom.Append("sByClassName&&d&&\"class\"==c?(b=b.getElementsByClassName(d),u(b,function(b){b.cla"); + atom.Append("ssName==d&&a.matches(b)&&e.add(b)})):a instanceof I?Pb(a,b,c,d,e):b.getElementsByT"); + atom.Append("agName&&(b=b.getElementsByTagName(a.getName()),u(b,function(a){G(a,c,d)&&e.add(a)}"); + atom.Append("));return e}\nfunction Qb(a,b,c,d,e){var f;if((a instanceof Nb||8==a.l||c&&null==="); + atom.Append("a.l)&&(f=b.childNodes)){var h=Ob(a);if(\"*\"!=h&&(f=oa(f,function(a){return a.tagN"); + atom.Append("ame&&a.tagName.toLowerCase()==h}),!f))return e;c&&(f=oa(f,function(a){return G(a,c"); + atom.Append(",d)}));u(f,function(a){\"*\"==h&&(\"!\"==a.tagName||\"*\"==h&&1!=a.nodeType)||e.ad"); + atom.Append("d(a)});return e}return Rb(a,b,c,d,e)}function Rb(a,b,c,d,e){for(b=b.firstChild;b;b"); + atom.Append("=b.nextSibling)G(b,c,d)&&a.matches(b)&&e.add(b);return e}\nfunction Pb(a,b,c,d,e){"); + atom.Append("for(b=b.firstChild;b;b=b.nextSibling)G(b,c,d)&&a.matches(b)&&e.add(b),Pb(a,b,c,d,e"); + atom.Append(")}function Ob(a){if(a instanceof I){if(8==a.l)return\"!\";if(null===a.l)return\"*"); + atom.Append("\"}return a.getName()};function H(){this.m=this.i=null;this.B=0}function Sb(a){thi"); + atom.Append("s.v=a;this.next=this.t=null}function Tb(a,b){if(!a.i)return b;if(!b.i)return a;for"); + atom.Append("(var c=a.i,d=b.i,e=null,f=null,h=0;c&&d;){var f=c.v,m=d.v;f==m||f instanceof Eb&&m"); + atom.Append(" instanceof Eb&&f.f==m.f?(f=c,c=c.next,d=d.next):0\",4,2,function(a,b,c){return bc(funct"); + atom.Append("ion(a,b){return a>b},a,b,c)});P(\"<=\",4,2,function(a,b,c){return bc(function(a,b)"); + atom.Append("{return a<=b},a,b,c)});P(\">=\",4,2,function(a,b,c){return bc(function(a,b){return"); + atom.Append(" a>=b},a,b,c)});var ac=P(\"=\",3,2,function(a,b,c){return bc(function(a,b){return "); + atom.Append("a==b},a,b,c,!0)});P(\"!=\",3,2,function(a,b,c){return bc(function(a,b){return a!=b"); + atom.Append("},a,b,c,!0)});P(\"and\",2,2,function(a,b,c){return Zb(a,c)&&Zb(b,c)});P(\"or\",1,2"); + atom.Append(",function(a,b,c){return Zb(a,c)||Zb(b,c)});function ec(a,b){if(b.o()&&4!=a.h)throw"); + atom.Append(" Error(\"Primary expression must evaluate to nodeset if filter has predicate(s).\""); + atom.Append(");K.call(this,a.h);this.ba=a;this.d=b;this.q=a.g();this.j=a.j}s(ec,K);ec.prototype"); + atom.Append(".evaluate=function(a){a=this.ba.evaluate(a);return fc(this.d,a)};ec.prototype.toSt"); + atom.Append("ring=function(){var a;a=\"Filter:\"+M(this.ba);return a+=M(this.d)};function gc(a,"); + atom.Append("b){if(b.lengtha.P)throw Error(\"Function "); + atom.Append("\"+a.k+\" expects at most \"+a.P+\" arguments, \"+b.length+\" given\");a.ka&&u(b,f"); + atom.Append("unction(b,d){if(4!=b.h)throw Error(\"Argument \"+d+\" to function \"+a.k+\" is not"); + atom.Append(" of type Nodeset: \"+b);});K.call(this,a.h);this.F=a;this.K=b;Xb(this,a.q||ra(b,fu"); + atom.Append("nction(a){return a.g()}));Yb(this,a.ia&&!b.length||a.ha&&!!b.length||ra(b,function"); + atom.Append("(a){return a.j}))}\ns(gc,K);gc.prototype.evaluate=function(a){return this.F.n.appl"); + atom.Append("y(null,va(a,this.K))};gc.prototype.toString=function(){var a=\"Function: \"+this.F"); + atom.Append(";if(this.K.length)var b=qa(this.K,function(a,b){return a+M(b)},\"Arguments:\"),a=a"); + atom.Append("+M(b);return a};function hc(a,b,c,d,e,f,h,m,w){this.k=a;this.h=b;this.q=c;this.ia="); + atom.Append("d;this.ha=e;this.n=f;this.$=h;this.P=l(m)?m:h;this.ka=!!w}hc.prototype.toString=fu"); + atom.Append("nction(){return this.k};var ic={};\nfunction Q(a,b,c,d,e,f,h,m){if(ic.hasOwnProper"); + atom.Append("ty(a))throw Error(\"Function already created: \"+a+\".\");ic[a]=new hc(a,b,c,d,!1,"); + atom.Append("e,f,h,m)}Q(\"boolean\",2,!1,!1,function(a,b){return Zb(b,a)},1);Q(\"ceiling\",1,!1"); + atom.Append(",!1,function(a,b){return Math.ceil(N(b,a))},1);Q(\"concat\",3,!1,!1,function(a,b){"); + atom.Append("return qa(xa(arguments,1),function(b,d){return b+O(d,a)},\"\")},2,null);Q(\"contai"); + atom.Append("ns\",2,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);return-1!=b.indexOf(a)},2);Q(\"coun"); + atom.Append("t\",1,!1,!1,function(a,b){return b.evaluate(a).o()},1,1,!0);\nQ(\"false\",2,!1,!1,"); + atom.Append("function(){return!1},0);Q(\"floor\",1,!1,!1,function(a,b){return Math.floor(N(b,a)"); + atom.Append(")},1);Q(\"id\",4,!1,!1,function(a,b){function c(a){if(D){var b=e.all[a];if(b){if(b"); + atom.Append(".nodeType&&a==b.id)return b;if(b.length)return ta(b,function(b){return a==b.id})}r"); + atom.Append("eturn null}return e.getElementById(a)}var d=a.f,e=9==d.nodeType?d:d.ownerDocument,"); + atom.Append("d=O(b,a).split(/\\s+/),f=[];u(d,function(a){(a=c(a))&&!ua(f,a)&&f.push(a)});f.sort"); + atom.Append("(jb);var h=new H;u(f,function(a){h.add(a)});return h},1);\nQ(\"lang\",2,!1,!1,func"); + atom.Append("tion(){return!1},1);Q(\"last\",1,!0,!1,function(a){if(1!=arguments.length)throw Er"); + atom.Append("ror(\"Function last expects ()\");return a.m},0);Q(\"local-name\",3,!1,!0,function"); + atom.Append("(a,b){var c=b?Ub(b.evaluate(a)):a.f;return c?c.nodeName.toLowerCase():\"\"},0,1,!0"); + atom.Append(");Q(\"name\",3,!1,!0,function(a,b){var c=b?Ub(b.evaluate(a)):a.f;return c?c.nodeNa"); + atom.Append("me.toLowerCase():\"\"},0,1,!0);Q(\"namespace-uri\",3,!0,!1,function(){return\"\"},"); + atom.Append("0,1,!0);\nQ(\"normalize-space\",3,!1,!0,function(a,b){return(b?O(b,a):F(a.f)).repl"); + atom.Append("ace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);Q(\"not\",2,!1,!1,fun"); + atom.Append("ction(a,b){return!Zb(b,a)},1);Q(\"number\",1,!1,!0,function(a,b){return b?N(b,a):+"); + atom.Append("F(a.f)},0,1);Q(\"position\",1,!0,!1,function(a){return a.na},0);Q(\"round\",1,!1,!"); + atom.Append("1,function(a,b){return Math.round(N(b,a))},1);Q(\"starts-with\",2,!1,!1,function(a"); + atom.Append(",b,c){b=O(b,a);a=O(c,a);return 0==b.lastIndexOf(a,0)},2);Q(\"string\",3,!1,!0,func"); + atom.Append("tion(a,b){return b?O(b,a):F(a.f)},0,1);\nQ(\"string-length\",1,!1,!0,function(a,b)"); + atom.Append("{return(b?O(b,a):F(a.f)).length},0,1);Q(\"substring\",3,!1,!1,function(a,b,c,d){c="); + atom.Append("N(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?N(d,a):Infinity;if(is"); + atom.Append("NaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.max(c,0);a=O(b,a);if"); + atom.Append("(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3)"); + atom.Append(";Q(\"substring-after\",3,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);c=b.indexOf(a);re"); + atom.Append("turn-1==c?\"\":b.substring(c+a.length)},2);\nQ(\"substring-before\",3,!1,!1,functi"); + atom.Append("on(a,b,c){b=O(b,a);a=O(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);Q"); + atom.Append("(\"sum\",1,!1,!1,function(a,b){for(var c=J(b.evaluate(a)),d=0,e=c.next();e;e=c.nex"); + atom.Append("t())d+=+F(e);return d},1,1,!0);Q(\"translate\",3,!1,!1,function(a,b,c,d){b=O(b,a);"); + atom.Append("c=O(c,a);var e=O(d,a);a=[];for(d=0;da.length)throw Error(\"Unclosed literal string\");retur"); + atom.Append("n new kc(a)}function Jc(a){var b=a.a.next(),c=b.indexOf(\":\");if(-1==c)return new"); + atom.Append(" Nb(b);var d=b.substring(0,c);a=a.la(d);if(!a)throw Error(\"Namespace prefix not d"); + atom.Append("eclared: \"+d);b=b.substr(c+1);return new Nb(b,a)}\nfunction Kc(a){var b,c=[],d;if"); + atom.Append("(qc(E(a.a))){b=a.a.next();d=E(a.a);if(\"/\"==b&&(a.a.empty()||\".\"!=d&&\"..\"!=d&"); + atom.Append("&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d)))return new oc;d=new oc;T(a,\"Missi"); + atom.Append("ng next location step.\");b=Lc(a,b);c.push(b)}else{a:{b=E(a.a);d=b.charAt(0);switc"); + atom.Append("h(d){case \"$\":throw Error(\"Variable reference not allowed in HTML XPath\");case"); + atom.Append(" \"(\":a.a.next();b=Ec(a);T(a,'unclosed \"(\"');Gc(a,\")\");break;case '\"':case "); + atom.Append("\"'\":b=Ic(a);break;default:if(isNaN(+b))if(!jc(b)&&/(?![0-9])[\\w]/.test(d)&&\"("); + atom.Append("\"==E(a.a,\n1)){b=a.a.next();b=ic[b]||null;a.a.next();for(d=[];\")\"!=E(a.a);){T(a"); + atom.Append(",\"Missing function argument list.\");d.push(Ec(a));if(\",\"!=E(a.a))break;a.a.nex"); + atom.Append("t()}T(a,\"Unclosed function argument list.\");Hc(a);b=new gc(b,d)}else{b=null;brea"); + atom.Append("k a}else b=new lc(+a.a.next())}\"[\"==E(a.a)&&(d=new tc(Mc(a)),b=new ec(b,d))}if(b"); + atom.Append(")if(qc(E(a.a)))d=b;else return b;else b=Lc(a,\"/\"),d=new pc,c.push(b)}for(;qc(E(a"); + atom.Append(".a));)b=a.a.next(),T(a,\"Missing next location step.\"),b=Lc(a,b),c.push(b);return"); + atom.Append(" new mc(d,c)}\nfunction Lc(a,b){var c,d,e;if(\"/\"!=b&&\"//\"!=b)throw Error('Step"); + atom.Append(" op should be \"/\" or \"//\"');if(\".\"==E(a.a))return d=new uc(Ac,new I(\"node\""); + atom.Append(")),a.a.next(),d;if(\"..\"==E(a.a))return d=new uc(zc,new I(\"node\")),a.a.next(),d"); + atom.Append(";var f;if(\"@\"==E(a.a))f=nc,a.a.next(),T(a,\"Missing attribute name\");else if(\""); + atom.Append("::\"==E(a.a,1)){if(!/(?![0-9])[\\w]/.test(E(a.a).charAt(0)))throw Error(\"Bad toke"); + atom.Append("n: \"+a.a.next());c=a.a.next();f=yc[c]||null;if(!f)throw Error(\"No axis with name"); + atom.Append(": \"+c);a.a.next();T(a,\"Missing node name\")}else f=\nvc;c=E(a.a);if(/(?![0-9])["); + atom.Append("\\w]/.test(c.charAt(0)))if(\"(\"==E(a.a,1)){if(!jc(c))throw Error(\"Invalid node t"); + atom.Append("ype: \"+c);c=a.a.next();if(!jc(c))throw Error(\"Invalid type name: \"+c);Gc(a,\"("); + atom.Append("\");T(a,\"Bad nodetype\");e=E(a.a).charAt(0);var h=null;if('\"'==e||\"'\"==e)h=Ic("); + atom.Append("a);T(a,\"Bad nodetype\");Hc(a);c=new I(c,h)}else c=Jc(a);else if(\"*\"==c)c=Jc(a);"); + atom.Append("else throw Error(\"Bad token: \"+a.a.next());e=new tc(Mc(a),f.w);return d||new uc("); + atom.Append("f,c,e,\"//\"==b)}\nfunction Mc(a){for(var b=[];\"[\"==E(a.a);){a.a.next();T(a,\"Mi"); + atom.Append("ssing predicate expression.\");var c=Ec(a);b.push(c);T(a,\"Unclosed predicate expr"); + atom.Append("ession.\");Gc(a,\"]\")}return b}function Fc(a){if(\"-\"==E(a.a))return a.a.next(),"); + atom.Append("new Bc(Fc(a));var b=Kc(a);if(\"|\"!=E(a.a))a=b;else{for(b=[b];\"|\"==a.a.next();)T"); + atom.Append("(a,\"Missing next union location path.\"),b.push(Kc(a));a.a.back();a=new Cc(b)}ret"); + atom.Append("urn a};function Nc(a){switch(a.nodeType){case 1:return ha(Oc,a);case 9:return Nc(a"); + atom.Append(".documentElement);case 2:return a.ownerElement?Nc(a.ownerElement):Pc;case 11:case "); + atom.Append("10:case 6:case 12:return Pc;default:return a.parentNode?Nc(a.parentNode):Pc}}funct"); + atom.Append("ion Pc(){return null}function Oc(a,b){if(a.prefix==b)return a.namespaceURI||\"http"); + atom.Append("://www.w3.org/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:\"+b);return c&&c.spec"); + atom.Append("ified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?Oc(a.parentNode,b):null"); + atom.Append("};function Qc(a,b){if(!a.length)throw Error(\"Empty XPath expression.\");var c=Hb("); + atom.Append("a);if(c.empty())throw Error(\"Invalid XPath expression.\");b?ca(b)||(b=ga(b.lookup"); + atom.Append("NamespaceURI,b)):b=function(){return null};var d=Ec(new Dc(c,b));if(!c.empty())thr"); + atom.Append("ow Error(\"Bad token: \"+c.next());this.evaluate=function(a,b){var c=d.evaluate(ne"); + atom.Append("w Cb(a));return new U(c,b)}}\nfunction U(a,b){if(0==b)if(a instanceof H)b=4;else i"); + atom.Append("f(\"string\"==typeof a)b=2;else if(\"number\"==typeof a)b=1;else if(\"boolean\"==t"); + atom.Append("ypeof a)b=3;else throw Error(\"Unexpected evaluation result.\");if(2!=b&&1!=b&&3!="); + atom.Append("b&&!(a instanceof H))throw Error(\"value could not be converted to the specified t"); + atom.Append("ype\");this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof H?Vb"); + atom.Append("(a):\"\"+a;break;case 1:this.numberValue=a instanceof H?+Vb(a):+a;break;case 3:thi"); + atom.Append("s.booleanValue=a instanceof H?0=c.length?null:c[f++]};this.snapsh"); + atom.Append("otItem=function(a){if(6!=b&&7!=b)throw Error(\"snapshotItem called with wrong resu"); + atom.Append("lt type\");return a>=\nc.length||0>a?null:c[a]}}U.ANY_TYPE=0;U.NUMBER_TYPE=1;U.STR"); + atom.Append("ING_TYPE=2;U.BOOLEAN_TYPE=3;U.UNORDERED_NODE_ITERATOR_TYPE=4;U.ORDERED_NODE_ITERAT"); + atom.Append("OR_TYPE=5;U.UNORDERED_NODE_SNAPSHOT_TYPE=6;U.ORDERED_NODE_SNAPSHOT_TYPE=7;U.ANY_UN"); + atom.Append("ORDERED_NODE_TYPE=8;U.FIRST_ORDERED_NODE_TYPE=9;function Rc(a){this.lookupNamespac"); + atom.Append("eURI=Nc(a)}\nfunction Sc(a){a=a||k;var b=a.document;b.evaluate||(a.XPathResult=U,b"); + atom.Append(".evaluate=function(a,b,e,f){return(new Qc(a,e)).evaluate(b,f)},b.createExpression="); + atom.Append("function(a,b){return new Qc(a,b)},b.createNSResolver=function(a){return new Rc(a)}"); + atom.Append(")};var V={};V.ga=function(){var a={ta:\"http://www.w3.org/2000/svg\"};return funct"); + atom.Append("ion(b){return a[b]||null}}();V.n=function(a,b,c){var d=B(a);(y||zb)&&Sc(d?d.parent"); + atom.Append("Window||d.defaultView:window);try{var e=d.createNSResolver?d.createNSResolver(d.do"); + atom.Append("cumentElement):V.ga;return y&&!ab(7)?d.evaluate.call(d,b,a,e,c,null):d.evaluate(b,"); + atom.Append("a,e,c,null)}catch(f){if(!z||\"NS_ERROR_ILLEGAL_VALUE\"!=f.name)throw new Ja(32,\"U"); + atom.Append("nable to locate an element with the xpath expression \"+b+\" because of the follow"); + atom.Append("ing error:\\n\"+f);}};\nV.L=function(a,b){if(!a||1!=a.nodeType)throw new Ja(32,'Th"); + atom.Append("e result of the xpath expression \"'+b+'\" is: '+a+\". It should be an element.\")"); + atom.Append(";};V.oa=function(a,b){var c=function(){var c=V.n(b,a,9);return c?(c=c.singleNodeVa"); + atom.Append("lue,x?c:c||null):b.selectSingleNode?(c=B(b),c.setProperty&&c.setProperty(\"Selecti"); + atom.Append("onLanguage\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||V.L(c,a);return c"); + atom.Append("};\nV.ra=function(a,b){var c=function(){var c=V.n(b,a,7);if(c){var e=c.snapshotLen"); + atom.Append("gth;x&&!l(e)&&V.L(null,a);for(var f=[],h=0;h=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this."); + atom.Append("bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\ng.ex"); + atom.Append("pand=function(a,b,c,d){da(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.b"); + atom.Append("ottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);r"); + atom.Append("eturn this};g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(th"); + atom.Append("is.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return"); + atom.Append(" this};g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this"); + atom.Append(".right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return"); + atom.Append(" this};\ng.round=function(){this.top=Math.round(this.top);this.right=Math.round(th"); + atom.Append("is.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);retu"); + atom.Append("rn this};g.translate=function(a,b){a instanceof A?(this.left+=a.x,this.right+=a.x,"); + atom.Append("this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,r(b)&&(this.top+=b,thi"); + atom.Append("s.bottom+=b));return this};g.scale=function(a,b){var c=r(b)?b:a;this.left*=a;this."); + atom.Append("right*=a;this.top*=c;this.bottom*=c;return this};function W(a,b,c,d){this.left=a;t"); + atom.Append("his.top=b;this.width=c;this.height=d}g=W.prototype;g.clone=function(){return new W"); + atom.Append("(this.left,this.top,this.width,this.height)};g.toString=function(){return\"(\"+thi"); + atom.Append("s.left+\", \"+this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};g.contains="); + atom.Append("function(a){return a instanceof W?this.left<=a.left&&this.left+this.width>=a.left+"); + atom.Append("a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x"); + atom.Append("<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};\ng.ceil=functio"); + atom.Append("n(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ce"); + atom.Append("il(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){"); + atom.Append("this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floo"); + atom.Append("r(this.width);this.height=Math.floor(this.height);return this};g.round=function(){"); + atom.Append("this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.roun"); + atom.Append("d(this.width);this.height=Math.round(this.height);return this};\ng.translate=funct"); + atom.Append("ion(a,b){a instanceof A?(this.left+=a.x,this.top+=a.y):(this.left+=a,r(b)&&(this.t"); + atom.Append("op+=b));return this};g.scale=function(a,b){var c=r(b)?b:a;this.left*=a;this.width*"); + atom.Append("=a;this.top*=c;this.height*=c;return this};function X(a,b){return!!a&&1==a.nodeTyp"); + atom.Append("e&&(!b||a.tagName.toUpperCase()==b)}function ed(a){for(a=a.parentNode;a&&1!=a.node"); + atom.Append("Type&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return X(a)?a:null}\nfunction "); + atom.Append("Y(a,b){var c=ma(b);if(\"float\"==c||\"cssFloat\"==c||\"styleFloat\"==c)c=cd?\"styl"); + atom.Append("eFloat\":\"cssFloat\";var d;a:{d=c;var e=B(a);if(e.defaultView&&e.defaultView.getC"); + atom.Append("omputedStyle&&(e=e.defaultView.getComputedStyle(a,null))){d=e[d]||e.getPropertyVal"); + atom.Append("ue(d)||\"\";break a}d=\"\"}d=d||fd(a,c);if(null===d)d=null;else if(ua(Ea,c)){b:{va"); + atom.Append("r f=d.match(Ha);if(f){var c=Number(f[1]),e=Number(f[2]),h=Number(f[3]),f=Number(f["); + atom.Append("4]);if(0<=c&&255>=c&&0<=e&&255>=e&&0<=h&&255>=h&&0<=f&&1>=f){c=[c,e,h,f];break b}}"); + atom.Append("c=null}if(!c)b:{if(h=\nd.match(Ia))if(c=Number(h[1]),e=Number(h[2]),h=Number(h[3])"); + atom.Append(",0<=c&&255>=c&&0<=e&&255>=e&&0<=h&&255>=h){c=[c,e,h,1];break b}c=null}if(!c)b:{c=d"); + atom.Append(".toLowerCase();e=ya[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.l"); + atom.Append("ength&&(e=e.replace(Fa,\"#$1$1$2$2$3$3\")),!Ga.test(e))){c=null;break b}c=[parseIn"); + atom.Append("t(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?"); + atom.Append("\"rgba(\"+c.join(\", \")+\")\":d}return d}\nfunction fd(a,b){var c=a.currentStyle|"); + atom.Append("|a.style,d=c[b];!l(d)&&ca(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"i"); + atom.Append("nherit\"!=d?l(d)?d:null:(c=ed(a))?fd(c,b):null}\nfunction gd(a,b){function c(a){if"); + atom.Append("(\"none\"==Y(a,\"display\"))return!1;a=ed(a);return!a||c(a)}function d(a){var b=hd"); + atom.Append("(a);return 0=q.left+q.width;q=e.t"); + atom.Append("op>=q.top+q.height;if(t&&\"hidden\"==p.x||q&&\"hidden\"==p.y)return Z;if(t&&\"visi"); + atom.Append("ble\"!=p.x||q&&\"visible\"!=p.y){if(L&&(p=d(a),e.left>=h.scrollWidth-p.x||e.right>"); + atom.Append("=h.scrollHeight-p.y))return Z;e=id(a);return e==Z?Z:\"scroll\"}}}return\"none\"}va"); + atom.Append("r md=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), (["); + atom.Append("\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction hd(a){function b(a){var "); + atom.Append("c=B(a),d=(c?c.parentWindow||c.defaultView:window).getComputedStyle(a,null).MozTran"); + atom.Append("sform.match(md);if(d){var e=parseFloat(d[1]),p=parseFloat(d[2]),q=parseFloat(d[3])"); + atom.Append(",t=parseFloat(d[4]),c=parseFloat(d[5]),d=parseFloat(d[6]),R=f.left+f.width,za=f.to"); + atom.Append("p+f.height,Aa=f.left*e,e=R*e,Ca=f.left*p,p=R*p,Ba=f.top*q,q=za*q,Da=f.top*t,R=za*t"); + atom.Append(",za=Aa+Ba+c,t=Ca+Da+d,Ba=e+Ba+c,Da=p+Da+d,Aa=Aa+q+c,Ca=Ca+R+d,c=e+q+c,d=p+R+d;f.le"); + atom.Append("ft=Math.min(za,Ba,Aa,c);f.top=Math.min(t,Da,Ca,d);c=Math.max(za,\nBa,Aa,c);d=Math."); + atom.Append("max(t,Da,Ca,d);f.width=c-f.left;f.height=d-f.top}(a=ed(a))&&b(a)}var c=jd(a);if(c)"); + atom.Append("return c.rect;if(X(a,\"HTML\"))return c=B(a),a=eb((c?c.parentWindow||c.defaultView"); + atom.Append(":window)||window),new W(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect("); + atom.Append(")}catch(e){return new W(0,0,0,0)}var f=new W(d.left,d.top,d.right-d.left,d.bottom-"); + atom.Append("d.top);y&&a.ownerDocument.body&&(c=B(a),f.left-=c.documentElement.clientLeft+c.bod"); + atom.Append("y.clientLeft,f.top-=c.documentElement.clientTop+c.body.clientTop);x&&(0==f.width&&"); + atom.Append("\n02*this.u&&wd(this),"); + atom.Append("!0):!1};function wd(a){if(a.u!=a.e.length){for(var b=0,c=0;b\");$(191,\"/\",\"?\");$(192,\"`\","); + atom.Append("\"~\");$(219,\"[\",\"{\");$(220,\"\\\\\",\"|\");$(221,\"]\",\"}\");$({b:59,c:186,o"); + atom.Append("pera:59},\";\",\":\");$(222,\"'\",'\"');var Dd=new ud;Dd.set(1,zd);Dd.set(2,Ad);Dd"); + atom.Append(".set(4,Bd);Dd.set(8,Cd);\n(function(a){var b=new ud;u(vd(a),function(c){b.set(a.ge"); + atom.Append("t(c).code,c)});return b})(Dd);z&&Xc(12);function Ed(){this.I=void 0}\nfunction Fd("); + atom.Append("a,b,c){switch(typeof b){case \"string\":Gd(b,c);break;case \"number\":c.push(isFin"); + atom.Append("ite(b)&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b);break;case \"undefi"); + atom.Append("ned\":c.push(\"null\");break;case \"object\":if(null==b){c.push(\"null\");break}if"); + atom.Append("(\"array\"==aa(b)){var d=b.length;c.push(\"[\");for(var e=\"\",f=0;fb?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return Hd[a]=e+b.toSt"); + atom.Append("ring(16)}),'\"')};Ua||x||z&&Xc(3.5)||y&&Xc(8);function Jd(a){switch(aa(a)){case \""); + atom.Append("string\":case \"number\":case \"boolean\":return a;case \"function\":return a.toSt"); + atom.Append("ring();case \"array\":return pa(a,Jd);case \"object\":if(\"nodeType\"in a&&(1==a.n"); + atom.Append("odeType||9==a.nodeType)){var b={};b.ELEMENT=Kd(a);return b}if(\"document\"in a)ret"); + atom.Append("urn b={},b.WINDOW=Kd(a),b;if(ba(a))return pa(a,Jd);a=Pa(a,function(a,b){return r(b"); + atom.Append(")||n(b)});return Qa(a,Jd);default:return null}}\nfunction Ld(a,b){return\"array\"="); + atom.Append("=aa(a)?pa(a,function(a){return Ld(a,b)}):da(a)?\"function\"==typeof a?a:\"ELEMENT"); + atom.Append("\"in a?Md(a.ELEMENT,b):\"WINDOW\"in a?Md(a.WINDOW,b):Qa(a,function(a){return Ld(a,"); + atom.Append("b)}):a}function Nd(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.R=ia());b.R||"); + atom.Append("(b.R=ia());return b}function Kd(a){var b=Nd(a.ownerDocument),c=Ra(b,function(b){re"); + atom.Append("turn b==a});c||(c=\":wdc:\"+b.R++,b[c]=a);return c}\nfunction Md(a,b){a=decodeURIC"); + atom.Append("omponent(a);var c=b||document,d=Nd(c);if(!(a in d))throw new Ja(10,\"Element does "); + atom.Append("not exist in cache\");var e=d[a];if(\"setInterval\"in e){if(e.closed)throw delete "); + atom.Append("d[a],new Ja(23,\"Window has been closed.\");return e}for(var f=e;f;){if(f==c.docum"); + atom.Append("entElement)return e;f=f.parentNode}delete d[a];throw new Ja(10,\"Element is no lon"); + atom.Append("ger attached to the DOM\");};function Od(a,b){var c=[a],d;try{var e=b?Md(b.WINDOW)"); + atom.Append(":window,f=Ld(c,e.document),h=pd.apply(null,f);d={status:0,value:Jd(h)}}catch(m){d="); + atom.Append("{status:\"code\"in m?m.code:13,value:{message:m.message}}}c=[];Fd(new Ed,d,c);retu"); + atom.Append("rn c.join(\"\")}var Pd=[\"_\"],Qd=k;Pd[0]in Qd||!Qd.execScript||Qd.execScript(\"va"); + atom.Append("r \"+Pd[0]);for(var Rd;Pd.length&&(Rd=Pd.shift());)!Pd.length&&l(Od)?Qd[Rd]=Od:Qd="); + atom.Append("Qd[Rd]?Qd[Rd]:Qd[Rd]={};; return this._.apply(null,arguments);}.apply({navigator:t"); + atom.Append("ypeof window!=undefined?window.navigator:null,document:typeof window!=undefined?wi"); + atom.Append("ndow.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string GetSize + { + get + { + const string atomName = "GetSize"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g,k=this;\nfunction m(a){var b=typeof a;if(\"obje"); + atom.Append("ct\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return "); + atom.Append("b;var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object"); + atom.Append("\";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a."); + atom.Append("splice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"sp"); + atom.Append("lice\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&"); + atom.Append("&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))r"); + atom.Append("eturn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==ty"); + atom.Append("peof a.call)return\"object\";return b}function aa(a){var b=m(a);return\"array\"==b"); + atom.Append("||\"object\"==b&&\"number\"==typeof a.length}function n(a){return\"string\"==typeo"); + atom.Append("f a}function ba(a){return\"number\"==typeof a}function ca(a){var b=typeof a;return"); + atom.Append("\"object\"==b&&null!=a||\"function\"==b}function da(a,b,c){return a.call.apply(a.b"); + atom.Append("ind,arguments)}\nfunction ea(a,b,c){if(!a)throw Error();if(2b?1:0};var la=Array."); + atom.Append("prototype;function q(a,b){for(var c=a.length,d=n(a)?a.split(\"\"):a,e=0;ec?"); + atom.Append("null:n(a)?a.charAt(c):a[c]}function xa(a){return la.concat.apply(la,arguments)}fun"); + atom.Append("ction ya(a,b,c){return 2>=arguments.length?la.slice.call(a,b):la.slice.call(a,b,c)"); + atom.Append("};function r(a,b){this.code=a;this.state=za[a]||Aa;this.message=b||\"\";var c=this"); + atom.Append(".state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^["); + atom.Append("\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";t"); + atom.Append("his.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}p(r,Err"); + atom.Append("or);\nvar Aa=\"unknown error\",za={15:\"element not selectable\",11:\"element not "); + atom.Append("visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"invali"); + atom.Append("d cookie domain\",29:\"invalid element coordinates\",12:\"invalid element state\","); + atom.Append("32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"javas"); + atom.Append("cript error\",405:\"unsupported operation\",34:\"move target out of bounds\",27:\""); + atom.Append("no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window\",28"); + atom.Append(":\"script timeout\",33:\"session not created\",10:\"stale element reference\",\n0:"); + atom.Append("\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert open"); + atom.Append("\"};za[13]=Aa;za[9]=\"unknown command\";r.prototype.toString=function(){return thi"); + atom.Append("s.name+\": \"+this.message};var s;a:{var Ba=k.navigator;if(Ba){var Ca=Ba.userAgent"); + atom.Append(";if(Ca){s=Ca;break a}}s=\"\"}function t(a){return-1!=s.indexOf(a)};function Da(a,b"); + atom.Append("){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Ea("); + atom.Append("a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Fa(a,b){"); + atom.Append("for(var c in a)if(b.call(void 0,a[c],c,a))return c};var Ga,Ha,u=t(\"Opera\")||t(\""); + atom.Append("OPR\"),w=t(\"Trident\")||t(\"MSIE\"),x=t(\"Gecko\")&&-1==s.toLowerCase().indexOf("); + atom.Append("\"webkit\")&&!(t(\"Trident\")||t(\"MSIE\")),Ia=-1!=s.toLowerCase().indexOf(\"webki"); + atom.Append("t\"),Ja,Ka=k.navigator||null;Ja=Ka&&Ka.platform||\"\";Ga=-1!=Ja.indexOf(\"Mac\");H"); + atom.Append("a=-1!=Ja.indexOf(\"Win\");var La=-1!=Ja.indexOf(\"Linux\");function Ma(){var a=k.d"); + atom.Append("ocument;return a?a.documentMode:void 0}\nvar Na=function(){var a=\"\",b;if(u&&k.op"); + atom.Append("era)return a=k.opera.version,\"function\"==m(a)?a():a;x?b=/rv\\:([^\\);]+)(\\)|;)/"); + atom.Append(":w?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:Ia&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.ex"); + atom.Append("ec(s))?a[1]:\"\");return w&&(b=Ma(),b>parseFloat(a))?String(b):a}(),Oa={};function"); + atom.Append(" Pa(a){return Oa[a]||(Oa[a]=0<=ja(Na,a))}var Qa=k.document,Ra=Qa&&w?Ma()||(\"CSS1C"); + atom.Append("ompat\"==Qa.compatMode?parseInt(Na,10):5):void 0;!x&&!w||w&&w&&9<=Ra||x&&Pa(\"1.9."); + atom.Append("1\");w&&Pa(\"9\");function Sa(a,b){this.width=a;this.height=b}g=Sa.prototype;g.clo"); + atom.Append("ne=function(){return new Sa(this.width,this.height)};g.toString=function(){return"); + atom.Append("\"(\"+this.width+\" x \"+this.height+\")\"};g.ceil=function(){this.width=Math.ceil"); + atom.Append("(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){th"); + atom.Append("is.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g"); + atom.Append(".round=function(){this.width=Math.round(this.width);this.height=Math.round(this.he"); + atom.Append("ight);return this};\ng.scale=function(a,b){var c=ba(b)?b:a;this.width*=a;this.heig"); + atom.Append("ht*=c;return this};function Ta(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.do"); + atom.Append("cumentElement:a.body;return new Sa(a.clientWidth,a.clientHeight)}function Ua(a,b){"); + atom.Append("if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if(\"undefined\"!=typeof a"); + atom.Append(".compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for"); + atom.Append("(;b&&a!=b;)b=b.parentNode;return b==a}\nfunction Va(a,b){if(a==b)return 0;if(a.com"); + atom.Append("pareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(w&&!(w&&9<=Ra))"); + atom.Append("{if(9==a.nodeType)return-1;if(9==b.nodeType)return 1}if(\"sourceIndex\"in a||a.par"); + atom.Append("entNode&&\"sourceIndex\"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&"); + atom.Append("&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e=="); + atom.Append("f?Wa(a,b):!c&&Ua(e,b)?-1*Xa(a,b):!d&&Ua(f,a)?Xa(b,a):(c?a.sourceIndex:e.sourceInde"); + atom.Append("x)-(d?b.sourceIndex:f.sourceIndex)}d=y(a);c=d.createRange();\nc.selectNode(a);c.co"); + atom.Append("llapse(!0);d=d.createRange();d.selectNode(b);d.collapse(!0);return c.compareBounda"); + atom.Append("ryPoints(k.Range.START_TO_END,d)}function Xa(a,b){var c=a.parentNode;if(c==b)retur"); + atom.Append("n-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Wa(d,a)}function Wa(a,b){fo"); + atom.Append("r(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function y(a){return 9==a"); + atom.Append(".nodeType?a:a.ownerDocument||a.document};var Ya,Za,$a,ab,bb,cb,db;db=cb=bb=ab=$a=Z"); + atom.Append("a=Ya=!1;var z=s;z&&(-1!=z.indexOf(\"Firefox\")?Ya=!0:-1!=z.indexOf(\"Camino\")?Za="); + atom.Append("!0:-1!=z.indexOf(\"iPhone\")||-1!=z.indexOf(\"iPod\")?$a=!0:-1!=z.indexOf(\"iPad\""); + atom.Append(")?ab=!0:-1!=z.indexOf(\"Chrome\")?cb=!0:-1!=z.indexOf(\"Android\")?bb=!0:-1!=z.ind"); + atom.Append("exOf(\"Safari\")&&(db=!0));var eb=Ya,fb=Za,gb=$a,hb=ab,A=bb,ib=cb,jb=db;function k"); + atom.Append("b(a,b,c){this.f=a;this.la=b||1;this.m=c||1};var B=w&&!(w&&9<=Ra),lb=w&&!(w&&8<=Ra)"); + atom.Append(";function mb(a,b,c,d){this.f=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;th"); + atom.Append("is.parentNode=this.ownerElement=b}function nb(a,b){var c=lb&&\"href\"==b.nodeName?"); + atom.Append("a.getAttribute(b.nodeName,2):b.nodeValue;return new mb(b,a,b.nodeName,c)};function"); + atom.Append(" ob(a){this.S=a;this.G=0}function pb(a){a=a.match(qb);for(var b=0;b]=|\\\\s+|.\",\"g\"),rb=/^\\s/;function C"); + atom.Append("(a,b){return a.S[a.G+(b||0)]}ob.prototype.next=function(){return this.S[this.G++]}"); + atom.Append(";ob.prototype.back=function(){this.G--};ob.prototype.empty=function(){return this."); + atom.Append("S.length<=this.G};function D(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=v"); + atom.Append("oid 0==b||null==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof"); + atom.Append(" b)if(B&&\"title\"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a="); + atom.Append("9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&"); + atom.Append("(b+=a.nodeValue),B&&\"title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;whil"); + atom.Append("e(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\""); + atom.Append("\"+b}\nfunction G(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catc"); + atom.Append("h(d){return!1}lb&&\"class\"==b&&(b=\"className\");return null==c?!!a.getAttribute("); + atom.Append("b):a.getAttribute(b,2)==c}function sb(a,b,c,d,e){return(B?tb:ub).call(null,a,b,n(c"); + atom.Append(")?c:null,n(d)?d:null,e||new H)}\nfunction tb(a,b,c,d,e){if(a instanceof I||8==a.l|"); + atom.Append("|c&&null===a.l){var f=b.all;if(!f)return e;a=vb(a);if(\"*\"!=a&&(f=b.getElementsBy"); + atom.Append("TagName(a),!f))return e;if(c){for(var h=[],l=0;b=f[l++];)G(b,c,d)&&h.push(b);f=h}f"); + atom.Append("or(l=0;b=f[l++];)\"*\"==a&&\"!\"==b.tagName||e.add(b);return e}wb(a,b,c,d,e);retur"); + atom.Append("n e}\nfunction ub(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c&&!w?(b=b.getEleme"); + atom.Append("ntsByName(d),q(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d"); + atom.Append("&&\"class\"==c?(b=b.getElementsByClassName(d),q(b,function(b){b.className==d&&a.ma"); + atom.Append("tches(b)&&e.add(b)})):a instanceof J?wb(a,b,c,d,e):b.getElementsByTagName&&(b=b.ge"); + atom.Append("tElementsByTagName(a.getName()),q(b,function(a){G(a,c,d)&&e.add(a)}));return e}\nf"); + atom.Append("unction xb(a,b,c,d,e){var f;if((a instanceof I||8==a.l||c&&null===a.l)&&(f=b.child"); + atom.Append("Nodes)){var h=vb(a);if(\"*\"!=h&&(f=ma(f,function(a){return a.tagName&&a.tagName.t"); + atom.Append("oLowerCase()==h}),!f))return e;c&&(f=ma(f,function(a){return G(a,c,d)}));q(f,funct"); + atom.Append("ion(a){\"*\"==h&&(\"!\"==a.tagName||\"*\"==h&&1!=a.nodeType)||e.add(a)});return e}"); + atom.Append("return yb(a,b,c,d,e)}function yb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)G"); + atom.Append("(b,c,d)&&a.matches(b)&&e.add(b);return e}\nfunction wb(a,b,c,d,e){for(b=b.firstChi"); + atom.Append("ld;b;b=b.nextSibling)G(b,c,d)&&a.matches(b)&&e.add(b),wb(a,b,c,d,e)}function vb(a)"); + atom.Append("{if(a instanceof J){if(8==a.l)return\"!\";if(null===a.l)return\"*\"}return a.getNa"); + atom.Append("me()};function H(){this.m=this.i=null;this.B=0}function zb(a){this.v=a;this.next=t"); + atom.Append("his.t=null}function Ab(a,b){if(!a.i)return b;if(!b.i)return a;for(var c=a.i,d=b.i,"); + atom.Append("e=null,f=null,h=0;c&&d;){var f=c.v,l=d.v;f==l||f instanceof mb&&l instanceof mb&&f"); + atom.Append(".f==l.f?(f=c,c=c.next,d=d.next):0\",4,2,function(a,b,c){return Jb(function(a,b){return a>"); + atom.Append("b},a,b,c)});Q(\"<=\",4,2,function(a,b,c){return Jb(function(a,b){return a<=b},a,b,"); + atom.Append("c)});Q(\">=\",4,2,function(a,b,c){return Jb(function(a,b){return a>=b},a,b,c)});va"); + atom.Append("r Ib=Q(\"=\",3,2,function(a,b,c){return Jb(function(a,b){return a==b},a,b,c,!0)});"); + atom.Append("Q(\"!=\",3,2,function(a,b,c){return Jb(function(a,b){return a!=b},a,b,c,!0)});Q(\""); + atom.Append("and\",2,2,function(a,b,c){return Gb(a,c)&&Gb(b,c)});Q(\"or\",1,2,function(a,b,c){r"); + atom.Append("eturn Gb(a,c)||Gb(b,c)});function Mb(a,b){if(b.o()&&4!=a.h)throw Error(\"Primary e"); + atom.Append("xpression must evaluate to nodeset if filter has predicate(s).\");M.call(this,a.h)"); + atom.Append(";this.$=a;this.d=b;this.q=a.g();this.j=a.j}p(Mb,M);Mb.prototype.evaluate=function("); + atom.Append("a){a=this.$.evaluate(a);return Nb(this.d,a)};Mb.prototype.toString=function(){var "); + atom.Append("a;a=\"Filter:\"+N(this.$);return a+=N(this.d)};function Ob(a,b){if(b.lengtha.O)throw Error(\"Function \"+a.k+\" expects at "); + atom.Append("most \"+a.O+\" arguments, \"+b.length+\" given\");a.ia&&q(b,function(b,d){if(4!=b."); + atom.Append("h)throw Error(\"Argument \"+d+\" to function \"+a.k+\" is not of type Nodeset: \"+"); + atom.Append("b);});M.call(this,a.h);this.F=a;this.K=b;Eb(this,a.q||va(b,function(a){return a.g("); + atom.Append(")}));Fb(this,a.ga&&!b.length||a.fa&&!!b.length||va(b,function(a){return a.j}))}\np"); + atom.Append("(Ob,M);Ob.prototype.evaluate=function(a){return this.F.n.apply(null,xa(a,this.K))}"); + atom.Append(";Ob.prototype.toString=function(){var a=\"Function: \"+this.F;if(this.K.length)var"); + atom.Append(" b=oa(this.K,function(a,b){return a+N(b)},\"Arguments:\"),a=a+N(b);return a};funct"); + atom.Append("ion Pb(a,b,c,d,e,f,h,l,v){this.k=a;this.h=b;this.q=c;this.ga=d;this.fa=e;this.n=f;"); + atom.Append("this.Y=h;this.O=void 0!==l?l:h;this.ia=!!v}Pb.prototype.toString=function(){return"); + atom.Append(" this.k};var Qb={};\nfunction R(a,b,c,d,e,f,h,l){if(Qb.hasOwnProperty(a))throw Err"); + atom.Append("or(\"Function already created: \"+a+\".\");Qb[a]=new Pb(a,b,c,d,!1,e,f,h,l)}R(\"bo"); + atom.Append("olean\",2,!1,!1,function(a,b){return Gb(b,a)},1);R(\"ceiling\",1,!1,!1,function(a,"); + atom.Append("b){return Math.ceil(O(b,a))},1);R(\"concat\",3,!1,!1,function(a,b){return oa(ya(ar"); + atom.Append("guments,1),function(b,d){return b+P(d,a)},\"\")},2,null);R(\"contains\",2,!1,!1,fu"); + atom.Append("nction(a,b,c){b=P(b,a);a=P(c,a);return-1!=b.indexOf(a)},2);R(\"count\",1,!1,!1,fun"); + atom.Append("ction(a,b){return b.evaluate(a).o()},1,1,!0);\nR(\"false\",2,!1,!1,function(){retu"); + atom.Append("rn!1},0);R(\"floor\",1,!1,!1,function(a,b){return Math.floor(O(b,a))},1);\nR(\"id"); + atom.Append("\",4,!1,!1,function(a,b){function c(a){if(B){var b=e.all[a];if(b){if(b.nodeType&&a"); + atom.Append("==b.id)return b;if(b.length)return wa(b,function(b){return a==b.id})}return null}r"); + atom.Append("eturn e.getElementById(a)}var d=a.f,e=9==d.nodeType?d:d.ownerDocument,d=P(b,a).spl"); + atom.Append("it(/\\s+/),f=[];q(d,function(a){a=c(a);var b;if(!(b=!a)){a:if(n(f))b=n(a)&&1==a.le"); + atom.Append("ngth?f.indexOf(a,0):-1;else{for(b=0;ba.length)throw Error(\"Unclosed "); + atom.Append("literal string\");return new Sb(a)}function oc(a){var b=a.a.next(),c=b.indexOf(\":"); + atom.Append("\");if(-1==c)return new I(b);var d=b.substring(0,c);a=a.ja(d);if(!a)throw Error(\""); + atom.Append("Namespace prefix not declared: \"+d);b=b.substr(c+1);return new I(b,a)}\nfunction "); + atom.Append("pc(a){var b,c=[],d;if(Yb(C(a.a))){b=a.a.next();d=C(a.a);if(\"/\"==b&&(a.a.empty()|"); + atom.Append("|\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d)))return new Wb"); + atom.Append(";d=new Wb;V(a,\"Missing next location step.\");b=qc(a,b);c.push(b)}else{a:{b=C(a.a"); + atom.Append(");d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable reference not allowed "); + atom.Append("in HTML XPath\");case \"(\":a.a.next();b=jc(a);V(a,'unclosed \"(\"');lc(a,\")\");b"); + atom.Append("reak;case '\"':case \"'\":b=nc(a);break;default:if(isNaN(+b))if(!Rb(b)&&/(?![0-9])"); + atom.Append("[\\w]/.test(d)&&\"(\"==C(a.a,\n1)){b=a.a.next();b=Qb[b]||null;a.a.next();for(d=[];"); + atom.Append("\")\"!=C(a.a);){V(a,\"Missing function argument list.\");d.push(jc(a));if(\",\"!=C"); + atom.Append("(a.a))break;a.a.next()}V(a,\"Unclosed function argument list.\");mc(a);b=new Ob(b,"); + atom.Append("d)}else{b=null;break a}else b=new Tb(+a.a.next())}\"[\"==C(a.a)&&(d=new S(rc(a)),b"); + atom.Append("=new Mb(b,d))}if(b)if(Yb(C(a.a)))d=b;else return b;else b=qc(a,\"/\"),d=new Xb,c.p"); + atom.Append("ush(b)}for(;Yb(C(a.a));)b=a.a.next(),V(a,\"Missing next location step.\"),b=qc(a,b"); + atom.Append("),c.push(b);return new Ub(d,c)}\nfunction qc(a,b){var c,d,e;if(\"/\"!=b&&\"//\"!=b"); + atom.Append(")throw Error('Step op should be \"/\" or \"//\"');if(\".\"==C(a.a))return d=new T("); + atom.Append("fc,new J(\"node\")),a.a.next(),d;if(\"..\"==C(a.a))return d=new T(ec,new J(\"node"); + atom.Append("\")),a.a.next(),d;var f;if(\"@\"==C(a.a))f=Vb,a.a.next(),V(a,\"Missing attribute n"); + atom.Append("ame\");else if(\"::\"==C(a.a,1)){if(!/(?![0-9])[\\w]/.test(C(a.a).charAt(0)))throw"); + atom.Append(" Error(\"Bad token: \"+a.a.next());c=a.a.next();f=dc[c]||null;if(!f)throw Error(\""); + atom.Append("No axis with name: \"+c);a.a.next();V(a,\"Missing node name\")}else f=ac;\nc=C(a.a"); + atom.Append(");if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==C(a.a,1)){if(!Rb(c))throw Error("); + atom.Append("\"Invalid node type: \"+c);c=a.a.next();if(!Rb(c))throw Error(\"Invalid type name:"); + atom.Append(" \"+c);lc(a,\"(\");V(a,\"Bad nodetype\");e=C(a.a).charAt(0);var h=null;if('\"'==e|"); + atom.Append("|\"'\"==e)h=nc(a);V(a,\"Bad nodetype\");mc(a);c=new J(c,h)}else c=oc(a);else if(\""); + atom.Append("*\"==c)c=oc(a);else throw Error(\"Bad token: \"+a.a.next());e=new S(rc(a),f.w);ret"); + atom.Append("urn d||new T(f,c,e,\"//\"==b)}\nfunction rc(a){for(var b=[];\"[\"==C(a.a);){a.a.ne"); + atom.Append("xt();V(a,\"Missing predicate expression.\");var c=jc(a);b.push(c);V(a,\"Unclosed p"); + atom.Append("redicate expression.\");lc(a,\"]\")}return b}function kc(a){if(\"-\"==C(a.a))retur"); + atom.Append("n a.a.next(),new gc(kc(a));var b=pc(a);if(\"|\"!=C(a.a))a=b;else{for(b=[b];\"|\"=="); + atom.Append("a.a.next();)V(a,\"Missing next union location path.\"),b.push(pc(a));a.a.back();a="); + atom.Append("new hc(b)}return a};function sc(a){switch(a.nodeType){case 1:return ga(tc,a);case "); + atom.Append("9:return sc(a.documentElement);case 2:return a.ownerElement?sc(a.ownerElement):uc;"); + atom.Append("case 11:case 10:case 6:case 12:return uc;default:return a.parentNode?sc(a.parentNo"); + atom.Append("de):uc}}function uc(){return null}function tc(a,b){if(a.prefix==b)return a.namespa"); + atom.Append("ceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:\"+b);ret"); + atom.Append("urn c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?tc(a.paren"); + atom.Append("tNode,b):null};function vc(a,b){if(!a.length)throw Error(\"Empty XPath expression."); + atom.Append("\");var c=pb(a);if(c.empty())throw Error(\"Invalid XPath expression.\");b?\"functi"); + atom.Append("on\"==m(b)||(b=fa(b.lookupNamespaceURI,b)):b=function(){return null};var d=jc(new "); + atom.Append("ic(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evaluate=functio"); + atom.Append("n(a,b){var c=d.evaluate(new kb(a));return new W(c,b)}}\nfunction W(a,b){if(0==b)if"); + atom.Append("(a instanceof H)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typeof a)"); + atom.Append("b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluation res"); + atom.Append("ult.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof H))throw Error(\"value could not be co"); + atom.Append("nverted to the specified type\");this.resultType=b;var c;switch(b){case 2:this.str"); + atom.Append("ingValue=a instanceof H?Cb(a):\"\"+a;break;case 1:this.numberValue=a instanceof H?"); + atom.Append("+Cb(a):+a;break;case 3:this.booleanValue=a instanceof H?0=c.lengt"); + atom.Append("h?null:c[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"snapshotI"); + atom.Append("tem called with wrong result type\");return a>=\nc.length||0>a?null:c[a]}}W.ANY_TY"); + atom.Append("PE=0;W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TY"); + atom.Append("PE=4;W.ORDERED_NODE_ITERATOR_TYPE=5;W.UNORDERED_NODE_SNAPSHOT_TYPE=6;W.ORDERED_NOD"); + atom.Append("E_SNAPSHOT_TYPE=7;W.ANY_UNORDERED_NODE_TYPE=8;W.FIRST_ORDERED_NODE_TYPE=9;function"); + atom.Append(" wc(a){this.lookupNamespaceURI=sc(a)}\nfunction xc(a){a=a||k;var b=a.document;b.ev"); + atom.Append("aluate||(a.XPathResult=W,b.evaluate=function(a,b,e,f){return(new vc(a,e)).evaluate"); + atom.Append("(b,f)},b.createExpression=function(a,b){return new vc(a,b)},b.createNSResolver=fun"); + atom.Append("ction(a){return new wc(a)})};var X={};X.ea=function(){var a={sa:\"http://www.w3.or"); + atom.Append("g/2000/svg\"};return function(b){return a[b]||null}}();X.n=function(a,b,c){var d=y"); + atom.Append("(a);(w||A)&&xc(d?d.parentWindow||d.defaultView:window);try{var e=d.createNSResolve"); + atom.Append("r?d.createNSResolver(d.documentElement):X.ea;return w&&!Pa(7)?d.evaluate.call(d,b,"); + atom.Append("a,e,c,null):d.evaluate(b,a,e,c,null)}catch(f){if(!x||\"NS_ERROR_ILLEGAL_VALUE\"!=f"); + atom.Append(".name)throw new r(32,\"Unable to locate an element with the xpath expression \"+b+"); + atom.Append("\" because of the following error:\\n\"+f);}};\nX.L=function(a,b){if(!a||1!=a.node"); + atom.Append("Type)throw new r(32,'The result of the xpath expression \"'+b+'\" is: '+a+\". It s"); + atom.Append("hould be an element.\");};X.ma=function(a,b){var c=function(){var c=X.n(b,a,9);ret"); + atom.Append("urn c?(c=c.singleNodeValue,u?c:c||null):b.selectSingleNode?(c=y(b),c.setProperty&&"); + atom.Append("c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):null}();null"); + atom.Append("===c||X.L(c,a);return c};\nX.qa=function(a,b){var c=function(){var c=X.n(b,a,7);if"); + atom.Append("(c){var e=c.snapshotLength;u&&void 0===e&&X.L(null,a);for(var f=[],h=0;h=a.left+a.width&&this"); + atom.Append(".top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+t"); + atom.Append("his.width&&a.y>=this.top&&a.y<=this.top+this.height};\ng.ceil=function(){this.left"); + atom.Append("=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width"); + atom.Append(");this.height=Math.ceil(this.height);return this};g.floor=function(){this.left=Mat"); + atom.Append("h.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width)"); + atom.Append(";this.height=Math.floor(this.height);return this};g.round=function(){this.left=Mat"); + atom.Append("h.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width)"); + atom.Append(";this.height=Math.round(this.height);return this};\ng.translate=function(a,b){this"); + atom.Append(".left+=a;ba(b)&&(this.top+=b);return this};g.scale=function(a,b){var c=ba(b)?b:a;t"); + atom.Append("his.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Jc(a,b)"); + atom.Append("{return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var Kc=/matrix\\(([\\d"); + atom.Append("\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, "); + atom.Append("([\\d\\.\\-]+)(?:px)?\\)/;\nfunction Lc(a){function b(a){var c=y(a),d=(c?c.parentW"); + atom.Append("indow||c.defaultView:window).getComputedStyle(a,null).MozTransform.match(Kc);if(d)"); + atom.Append("{var e=parseFloat(d[1]),L=parseFloat(d[2]),E=parseFloat(d[3]),F=parseFloat(d[4]),c"); + atom.Append("=parseFloat(d[5]),d=parseFloat(d[6]),pa=f.left+f.width,qa=f.top+f.height,ra=f.left"); + atom.Append("*e,e=pa*e,sa=f.left*L,L=pa*L,ta=f.top*E,E=qa*E,ua=f.top*F,pa=qa*F,qa=ra+ta+c,F=sa+"); + atom.Append("ua+d,ta=e+ta+c,ua=L+ua+d,ra=ra+E+c,sa=sa+pa+d,c=e+E+c,d=L+pa+d;f.left=Math.min(qa,"); + atom.Append("ta,ra,c);f.top=Math.min(F,ua,sa,d);c=\nMath.max(qa,ta,ra,c);d=Math.max(F,ua,sa,d);"); + atom.Append("f.width=c-f.left;f.height=d-f.top}for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeTy"); + atom.Append("pe&&11!=a.nodeType;)a=a.parentNode;(a=Jc(a)?a:null)&&b(a)}var c=Mc(a);if(c)return "); + atom.Append("c.rect;if(Jc(a,\"HTML\"))return c=y(a),a=Ta((c?c.parentWindow||c.defaultView:windo"); + atom.Append("w)||window),new Y(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catc"); + atom.Append("h(e){return new Y(0,0,0,0)}var f=new Y(d.left,d.top,d.right-d.left,d.bottom-d.top)"); + atom.Append(";w&&a.ownerDocument.body&&(c=y(a),f.left-=c.documentElement.clientLeft+\nc.body.cl"); + atom.Append("ientLeft,f.top-=c.documentElement.clientTop+c.body.clientTop);u&&(0==f.width&&02*this.u&&Qc(thi"); + atom.Append("s),!0):!1};function Qc(a){if(a.u!=a.e.length){for(var b=0,c=0;b\");Z(191,\"/\",\"?\");Z(192,\"`\","); + atom.Append("\"~\");Z(219,\"[\",\"{\");Z(220,\"\\\\\",\"|\");Z(221,\"]\",\"}\");Z({b:59,c:186,o"); + atom.Append("pera:59},\";\",\":\");Z(222,\"'\",'\"');var Xc=new Oc;Xc.set(1,Tc);Xc.set(2,Uc);Xc"); + atom.Append(".set(4,Vc);Xc.set(8,Wc);\n(function(a){var b=new Oc;q(Pc(a),function(c){b.set(a.ge"); + atom.Append("t(c).code,c)});return b})(Xc);x&&Cc(12);function Yc(){this.I=void 0}\nfunction Zc("); + atom.Append("a,b,c){switch(typeof b){case \"string\":$c(b,c);break;case \"number\":c.push(isFin"); + atom.Append("ite(b)&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b);break;case \"undefi"); + atom.Append("ned\":c.push(\"null\");break;case \"object\":if(null==b){c.push(\"null\");break}if"); + atom.Append("(\"array\"==m(b)){var d=b.length;c.push(\"[\");for(var e=\"\",f=0;fb?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return ad[a]=e+b.toSt"); + atom.Append("ring(16)}),'\"')};Ia||u||x&&Cc(3.5)||w&&Cc(8);function cd(a){switch(m(a)){case \"s"); + atom.Append("tring\":case \"number\":case \"boolean\":return a;case \"function\":return a.toStr"); + atom.Append("ing();case \"array\":return na(a,cd);case \"object\":if(\"nodeType\"in a&&(1==a.no"); + atom.Append("deType||9==a.nodeType)){var b={};b.ELEMENT=dd(a);return b}if(\"document\"in a)retu"); + atom.Append("rn b={},b.WINDOW=dd(a),b;if(aa(a))return na(a,cd);a=Da(a,function(a,b){return ba(b"); + atom.Append(")||n(b)});return Ea(a,cd);default:return null}}\nfunction ed(a,b){return\"array\"="); + atom.Append("=m(a)?na(a,function(a){return ed(a,b)}):ca(a)?\"function\"==typeof a?a:\"ELEMENT\""); + atom.Append("in a?fd(a.ELEMENT,b):\"WINDOW\"in a?fd(a.WINDOW,b):Ea(a,function(a){return ed(a,b)"); + atom.Append("}):a}function gd(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.Q=ha());b.Q||(b"); + atom.Append(".Q=ha());return b}function dd(a){var b=gd(a.ownerDocument),c=Fa(b,function(b){retu"); + atom.Append("rn b==a});c||(c=\":wdc:\"+b.Q++,b[c]=a);return c}\nfunction fd(a,b){a=decodeURICom"); + atom.Append("ponent(a);var c=b||document,d=gd(c);if(!(a in d))throw new r(10,\"Element does not"); + atom.Append(" exist in cache\");var e=d[a];if(\"setInterval\"in e){if(e.closed)throw delete d[a"); + atom.Append("],new r(23,\"Window has been closed.\");return e}for(var f=e;f;){if(f==c.documentE"); + atom.Append("lement)return e;f=f.parentNode}delete d[a];throw new r(10,\"Element is no longer a"); + atom.Append("ttached to the DOM\");};function hd(a,b,c){var d;try{var e=c?fd(c.WINDOW):window,f"); + atom.Append("=ed(b,e.document),h=a.apply(null,f);d={status:0,value:cd(h)}}catch(l){d={status:\""); + atom.Append("code\"in l?l.code:13,value:{message:l.message}}}a=[];Zc(new Yc,d,a);return a.join("); + atom.Append("\"\")};function id(a,b){return hd(function(a){var b=Lc(a);a=b.height;b=b.width;Ic|"); + atom.Append("|(b=Math.floor(b),a=Math.floor(a));return{width:b,height:a}},[a],b)}var jd=[\"_\"]"); + atom.Append(",$=k;jd[0]in $||!$.execScript||$.execScript(\"var \"+jd[0]);for(var kd;jd.length&&"); + atom.Append("(kd=jd.shift());)jd.length||void 0===id?$=$[kd]?$[kd]:$[kd]={}:$[kd]=id;; return t"); + atom.Append("his._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.nav"); + atom.Append("igator:null,document:typeof window!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string GetTopLeftCoordinates + { + get + { + const string atomName = "GetTopLeftCoordinates"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var g,l=this;function m(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function b"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction p(a){return\"string\"==typeof a}function q(a){return\"number\"==typeof a}fu"); + atom.Append("nction ca(a){return\"function\"==aa(a)}function da(a){var b=typeof a;return\"objec"); + atom.Append("t\"==b&&null!=a||\"function\"==b}function ea(a,b,c){return a.call.apply(a.bind,arg"); + atom.Append("uments)}\nfunction fa(a,b,c){if(!a)throw Error();if(2b?1:0}function la(a){return Stri"); + atom.Append("ng(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase()})};var ma=Array.p"); + atom.Append("rototype;function u(a,b){for(var c=a.length,d=p(a)?a.split(\"\"):a,e=0;ec?nu"); + atom.Append("ll:p(a)?a.charAt(c):a[c]}function sa(a,b){var c;a:if(p(a))c=p(b)&&1==b.length?a.in"); + atom.Append("dexOf(b,0):-1;else{for(c=0;c=arguments.length?ma.slice.call(a,b):ma.slice.call(a,b,c)};var"); + atom.Append(" wa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\""); + atom.Append("#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\""); + atom.Append(",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2"); + atom.Append("a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:"); + atom.Append("\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crim"); + atom.Append("son:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgol"); + atom.Append("denrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\"#a9a9a9"); + atom.Append("\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkor"); + atom.Append("ange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\""); + atom.Append(",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",dark"); + atom.Append("slategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\""); + atom.Append("#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerbl"); + atom.Append("ue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22"); + atom.Append("\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd7"); + atom.Append("00\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2"); + atom.Append("f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c"); + atom.Append("\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lav"); + atom.Append("enderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\""); + atom.Append("#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#faf"); + atom.Append("ad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink"); + atom.Append(":\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskyblue:\"#8"); + atom.Append("7cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0"); + atom.Append("c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf"); + atom.Append("0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumbl"); + atom.Append("ue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\""); + atom.Append("#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquois"); + atom.Append("e:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5"); + atom.Append("fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:"); + atom.Append("\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#"); + atom.Append("ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegr"); + atom.Append("een:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#"); + atom.Append("ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\","); + atom.Append("powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",ro"); + atom.Append("yalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a46"); + atom.Append("0\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c"); + atom.Append("0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#7"); + atom.Append("08090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b4"); + atom.Append("8c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\""); + atom.Append(",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yel"); + atom.Append("low:\"#ffff00\",yellowgreen:\"#9acd32\"};var xa=\"backgroundColor borderTopColor b"); + atom.Append("orderRightColor borderBottomColor borderLeftColor color outlineColor\".split(\" \""); + atom.Append("),ya=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,za=/^#(?:[0-9a-f]{3}){1,2}$/i,Aa=/"); + atom.Append("^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i,Ba="); + atom.Append("/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})\\)$/i;f"); + atom.Append("unction Fa(a,b){this.code=a;this.state=Ga[a]||Ha;this.message=b||\"\";var c=this.s"); + atom.Append("tate.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^["); + atom.Append("\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";t"); + atom.Append("his.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}s(Fa,Er"); + atom.Append("ror);\nvar Ha=\"unknown error\",Ga={15:\"element not selectable\",11:\"element not"); + atom.Append(" visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"inval"); + atom.Append("id cookie domain\",29:\"invalid element coordinates\",12:\"invalid element state\""); + atom.Append(",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java"); + atom.Append("script error\",405:\"unsupported operation\",34:\"move target out of bounds\",27:"); + atom.Append("\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window\","); + atom.Append("28:\"script timeout\",33:\"session not created\",10:\"stale element reference\",\n"); + atom.Append("0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert ope"); + atom.Append("n\"};Ga[13]=Ha;Ga[9]=\"unknown command\";Fa.prototype.toString=function(){return t"); + atom.Append("his.name+\": \"+this.message};var w;a:{var Ia=l.navigator;if(Ia){var Ja=Ia.userAge"); + atom.Append("nt;if(Ja){w=Ja;break a}}w=\"\"}function Ka(a){return-1!=w.indexOf(a)};function La("); + atom.Append("a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function "); + atom.Append("Ma(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Na(a,"); + atom.Append("b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};var Oa,Pa,x=Ka(\"Opera\")||"); + atom.Append("Ka(\"OPR\"),y=Ka(\"Trident\")||Ka(\"MSIE\"),z=Ka(\"Gecko\")&&-1==w.toLowerCase().i"); + atom.Append("ndexOf(\"webkit\")&&!(Ka(\"Trident\")||Ka(\"MSIE\")),Qa=-1!=w.toLowerCase().indexO"); + atom.Append("f(\"webkit\"),Ra,Sa=l.navigator||null;Ra=Sa&&Sa.platform||\"\";Oa=-1!=Ra.indexOf("); + atom.Append("\"Mac\");Pa=-1!=Ra.indexOf(\"Win\");var Ta=-1!=Ra.indexOf(\"Linux\");function Ua()"); + atom.Append("{var a=l.document;return a?a.documentMode:void 0}\nvar Va=function(){var a=\"\",b;"); + atom.Append("if(x&&l.opera)return a=l.opera.version,ca(a)?a():a;z?b=/rv\\:([^\\);]+)(\\)|;)/:y?"); + atom.Append("b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:Qa&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec("); + atom.Append("w))?a[1]:\"\");return y&&(b=Ua(),b>parseFloat(a))?String(b):a}(),Wa={};function Xa"); + atom.Append("(a){return Wa[a]||(Wa[a]=0<=ja(Va,a))}var Ya=l.document,Za=Ya&&y?Ua()||(\"CSS1Comp"); + atom.Append("at\"==Ya.compatMode?parseInt(Va,10):5):void 0;!z&&!y||y&&y&&9<=Za||z&&Xa(\"1.9.1\""); + atom.Append(");y&&Xa(\"9\");function $a(a,b,c){return Math.min(Math.max(a,b),c)};function A(a,b"); + atom.Append("){this.x=m(a)?a:0;this.y=m(b)?b:0}g=A.prototype;g.clone=function(){return new A(th"); + atom.Append("is.x,this.y)};g.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"};g.ceil"); + atom.Append("=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor"); + atom.Append("=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};g.rou"); + atom.Append("nd=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};\ng"); + atom.Append(".translate=function(a,b){a instanceof A?(this.x+=a.x,this.y+=a.y):(this.x+=a,q(b)&"); + atom.Append("&(this.y+=b));return this};g.scale=function(a,b){var c=q(b)?b:a;this.x*=a;this.y*="); + atom.Append("c;return this};function ab(a,b){this.width=a;this.height=b}g=ab.prototype;g.clone="); + atom.Append("function(){return new ab(this.width,this.height)};g.toString=function(){return\"("); + atom.Append("\"+this.width+\" x \"+this.height+\")\"};g.ceil=function(){this.width=Math.ceil(th"); + atom.Append("is.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this."); + atom.Append("width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.ro"); + atom.Append("und=function(){this.width=Math.round(this.width);this.height=Math.round(this.heigh"); + atom.Append("t);return this};\ng.scale=function(a,b){var c=q(b)?b:a;this.width*=a;this.height*="); + atom.Append("c;return this};function bb(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.docume"); + atom.Append("ntElement:a.body;return new ab(a.clientWidth,a.clientHeight)}function cb(a,b,c){fu"); + atom.Append("nction d(c){c&&b.appendChild(p(c)?a.createTextNode(c):c)}for(var e=1;e]=|\\\\s+|.\",\"g\"),Eb=/^\\s/;function F(a,b){return a.T[a.G+(b||0)]}Bb.prototy"); + atom.Append("pe.next=function(){return this.T[this.G++]};Bb.prototype.back=function(){this.G--}"); + atom.Append(";Bb.prototype.empty=function(){return this.T.length<=this.G};function H(a){var b=n"); + atom.Append("ull,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void "); + atom.Append("0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(E&&\"title\"==a.nodeName.toLowerC"); + atom.Append("ase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for"); + atom.Append("(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),E&&\"title\"==a.nodeNa"); + atom.Append("me.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].ne"); + atom.Append("xtSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction I(a,b,c){if(null===b)ret"); + atom.Append("urn!0;try{if(!a.getAttribute)return!1}catch(d){return!1}yb&&\"class\"==b&&(b=\"cla"); + atom.Append("ssName\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Fb(a,"); + atom.Append("b,c,d,e){return(E?Gb:Hb).call(null,a,b,p(c)?c:null,p(d)?d:null,e||new J)}\nfunctio"); + atom.Append("n Gb(a,b,c,d,e){if(a instanceof Ib||8==a.l||c&&null===a.l){var f=b.all;if(!f)retur"); + atom.Append("n e;a=Jb(a);if(\"*\"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var h"); + atom.Append("=[],k=0;b=f[k++];)I(b,c,d)&&h.push(b);f=h}for(k=0;b=f[k++];)\"*\"==a&&\"!\"==b.tag"); + atom.Append("Name||e.add(b);return e}Kb(a,b,c,d,e);return e}\nfunction Hb(a,b,c,d,e){b.getEleme"); + atom.Append("ntsByName&&d&&\"name\"==c&&!y?(b=b.getElementsByName(d),u(b,function(b){a.matches("); + atom.Append("b)&&e.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassN"); + atom.Append("ame(d),u(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof K?Kb"); + atom.Append("(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),u(b,fun"); + atom.Append("ction(a){I(a,c,d)&&e.add(a)}));return e}\nfunction Lb(a,b,c,d,e){var f;if((a insta"); + atom.Append("nceof Ib||8==a.l||c&&null===a.l)&&(f=b.childNodes)){var h=Jb(a);if(\"*\"!=h&&(f=na"); + atom.Append("(f,function(a){return a.tagName&&a.tagName.toLowerCase()==h}),!f))return e;c&&(f=n"); + atom.Append("a(f,function(a){return I(a,c,d)}));u(f,function(a){\"*\"==h&&(\"!\"==a.tagName||\""); + atom.Append("*\"==h&&1!=a.nodeType)||e.add(a)});return e}return Mb(a,b,c,d,e)}function Mb(a,b,c"); + atom.Append(",d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.add(b);return"); + atom.Append(" e}\nfunction Kb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.match"); + atom.Append("es(b)&&e.add(b),Kb(a,b,c,d,e)}function Jb(a){if(a instanceof K){if(8==a.l)return\""); + atom.Append("!\";if(null===a.l)return\"*\"}return a.getName()};function J(){this.m=this.i=null;"); + atom.Append("this.B=0}function Nb(a){this.v=a;this.next=this.t=null}function Ob(a,b){if(!a.i)re"); + atom.Append("turn b;if(!b.i)return a;for(var c=a.i,d=b.i,e=null,f=null,h=0;c&&d;){var f=c.v,k=d"); + atom.Append(".v;f==k||f instanceof zb&&k instanceof zb&&f.f==k.f?(f=c,c=c.next,d=d.next):0\",4,2,functi"); + atom.Append("on(a,b,c){return Xb(function(a,b){return a>b},a,b,c)});S(\"<=\",4,2,function(a,b,c"); + atom.Append("){return Xb(function(a,b){return a<=b},a,b,c)});S(\">=\",4,2,function(a,b,c){retur"); + atom.Append("n Xb(function(a,b){return a>=b},a,b,c)});var Wb=S(\"=\",3,2,function(a,b,c){return"); + atom.Append(" Xb(function(a,b){return a==b},a,b,c,!0)});S(\"!=\",3,2,function(a,b,c){return Xb("); + atom.Append("function(a,b){return a!=b},a,b,c,!0)});S(\"and\",2,2,function(a,b,c){return Ub(a,c"); + atom.Append(")&&Ub(b,c)});S(\"or\",1,2,function(a,b,c){return Ub(a,c)||Ub(b,c)});function $b(a,"); + atom.Append("b){if(b.o()&&4!=a.h)throw Error(\"Primary expression must evaluate to nodeset if f"); + atom.Append("ilter has predicate(s).\");N.call(this,a.h);this.aa=a;this.d=b;this.q=a.g();this.j"); + atom.Append("=a.j}s($b,N);$b.prototype.evaluate=function(a){a=this.aa.evaluate(a);return ac(thi"); + atom.Append("s.d,a)};$b.prototype.toString=function(){var a;a=\"Filter:\"+O(this.aa);return a+="); + atom.Append("O(this.d)};function bc(a,b){if(b.lengtha."); + atom.Append("P)throw Error(\"Function \"+a.k+\" expects at most \"+a.P+\" arguments, \"+b.lengt"); + atom.Append("h+\" given\");a.ja&&u(b,function(b,d){if(4!=b.h)throw Error(\"Argument \"+d+\" to "); + atom.Append("function \"+a.k+\" is not of type Nodeset: \"+b);});N.call(this,a.h);this.F=a;this"); + atom.Append(".K=b;Sb(this,a.q||qa(b,function(a){return a.g()}));Tb(this,a.ha&&!b.length||a.ga&&"); + atom.Append("!!b.length||qa(b,function(a){return a.j}))}\ns(bc,N);bc.prototype.evaluate=functio"); + atom.Append("n(a){return this.F.n.apply(null,ta(a,this.K))};bc.prototype.toString=function(){va"); + atom.Append("r a=\"Function: \"+this.F;if(this.K.length)var b=pa(this.K,function(a,b){return a+"); + atom.Append("O(b)},\"Arguments:\"),a=a+O(b);return a};function cc(a,b,c,d,e,f,h,k,r){this.k=a;t"); + atom.Append("his.h=b;this.q=c;this.ha=d;this.ga=e;this.n=f;this.Z=h;this.P=m(k)?k:h;this.ja=!!r"); + atom.Append("}cc.prototype.toString=function(){return this.k};var dc={};\nfunction T(a,b,c,d,e,"); + atom.Append("f,h,k){if(dc.hasOwnProperty(a))throw Error(\"Function already created: \"+a+\".\")"); + atom.Append(";dc[a]=new cc(a,b,c,d,!1,e,f,h,k)}T(\"boolean\",2,!1,!1,function(a,b){return Ub(b,"); + atom.Append("a)},1);T(\"ceiling\",1,!1,!1,function(a,b){return Math.ceil(P(b,a))},1);T(\"concat"); + atom.Append("\",3,!1,!1,function(a,b){return pa(va(arguments,1),function(b,d){return b+R(d,a)},"); + atom.Append("\"\")},2,null);T(\"contains\",2,!1,!1,function(a,b,c){b=R(b,a);a=R(c,a);return-1!="); + atom.Append("b.indexOf(a)},2);T(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).o()},1,1,!"); + atom.Append("0);\nT(\"false\",2,!1,!1,function(){return!1},0);T(\"floor\",1,!1,!1,function(a,b)"); + atom.Append("{return Math.floor(P(b,a))},1);T(\"id\",4,!1,!1,function(a,b){function c(a){if(E){"); + atom.Append("var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return ra(b,funct"); + atom.Append("ion(b){return a==b.id})}return null}return e.getElementById(a)}var d=a.f,e=9==d.no"); + atom.Append("deType?d:d.ownerDocument,d=R(b,a).split(/\\s+/),f=[];u(d,function(a){(a=c(a))&&!sa"); + atom.Append("(f,a)&&f.push(a)});f.sort(fb);var h=new J;u(f,function(a){h.add(a)});return h},1);"); + atom.Append("\nT(\"lang\",2,!1,!1,function(){return!1},1);T(\"last\",1,!0,!1,function(a){if(1!="); + atom.Append("arguments.length)throw Error(\"Function last expects ()\");return a.m},0);T(\"loca"); + atom.Append("l-name\",3,!1,!0,function(a,b){var c=b?Pb(b.evaluate(a)):a.f;return c?c.nodeName.t"); + atom.Append("oLowerCase():\"\"},0,1,!0);T(\"name\",3,!1,!0,function(a,b){var c=b?Pb(b.evaluate("); + atom.Append("a)):a.f;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);T(\"namespace-uri\",3,!0,!"); + atom.Append("1,function(){return\"\"},0,1,!0);\nT(\"normalize-space\",3,!1,!0,function(a,b){ret"); + atom.Append("urn(b?R(b,a):H(a.f)).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0"); + atom.Append(",1);T(\"not\",2,!1,!1,function(a,b){return!Ub(b,a)},1);T(\"number\",1,!1,!0,functi"); + atom.Append("on(a,b){return b?P(b,a):+H(a.f)},0,1);T(\"position\",1,!0,!1,function(a){return a."); + atom.Append("ma},0);T(\"round\",1,!1,!1,function(a,b){return Math.round(P(b,a))},1);T(\"starts-"); + atom.Append("with\",2,!1,!1,function(a,b,c){b=R(b,a);a=R(c,a);return 0==b.lastIndexOf(a,0)},2);"); + atom.Append("T(\"string\",3,!1,!0,function(a,b){return b?R(b,a):H(a.f)},0,1);\nT(\"string-lengt"); + atom.Append("h\",1,!1,!0,function(a,b){return(b?R(b,a):H(a.f)).length},0,1);T(\"substring\",3,!"); + atom.Append("1,!1,function(a,b,c,d){c=P(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";"); + atom.Append("d=d?P(d,a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e="); + atom.Append("Math.max(c,0);a=R(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return"); + atom.Append(" a.substring(e,c+b)},2,3);T(\"substring-after\",3,!1,!1,function(a,b,c){b=R(b,a);a"); + atom.Append("=R(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nT(\"substrin"); + atom.Append("g-before\",3,!1,!1,function(a,b,c){b=R(b,a);a=R(c,a);a=b.indexOf(a);return-1==a?\""); + atom.Append("\":b.substring(0,a)},2);T(\"sum\",1,!1,!1,function(a,b){for(var c=M(b.evaluate(a))"); + atom.Append(",d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,!0);T(\"translate\",3,!1,!1,fu"); + atom.Append("nction(a,b,c,d){b=R(b,a);c=R(c,a);var e=R(d,a);a=[];for(d=0;da.length)throw Error(\"Unclosed literal"); + atom.Append(" string\");return new fc(a)}function Dc(a){var b=a.a.next(),c=b.indexOf(\":\");if("); + atom.Append("-1==c)return new Ib(b);var d=b.substring(0,c);a=a.ka(d);if(!a)throw Error(\"Namesp"); + atom.Append("ace prefix not declared: \"+d);b=b.substr(c+1);return new Ib(b,a)}\nfunction Ec(a)"); + atom.Append("{var b,c=[],d;if(lc(F(a.a))){b=a.a.next();d=F(a.a);if(\"/\"==b&&(a.a.empty()||\"."); + atom.Append("\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d)))return new jc;d=n"); + atom.Append("ew jc;W(a,\"Missing next location step.\");b=Fc(a,b);c.push(b)}else{a:{b=F(a.a);d="); + atom.Append("b.charAt(0);switch(d){case \"$\":throw Error(\"Variable reference not allowed in H"); + atom.Append("TML XPath\");case \"(\":a.a.next();b=yc(a);W(a,'unclosed \"(\"');Ac(a,\")\");break"); + atom.Append(";case '\"':case \"'\":b=Cc(a);break;default:if(isNaN(+b))if(!ec(b)&&/(?![0-9])[\\w"); + atom.Append("]/.test(d)&&\"(\"==F(a.a,\n1)){b=a.a.next();b=dc[b]||null;a.a.next();for(d=[];\")"); + atom.Append("\"!=F(a.a);){W(a,\"Missing function argument list.\");d.push(yc(a));if(\",\"!=F(a."); + atom.Append("a))break;a.a.next()}W(a,\"Unclosed function argument list.\");Bc(a);b=new bc(b,d)}"); + atom.Append("else{b=null;break a}else b=new gc(+a.a.next())}\"[\"==F(a.a)&&(d=new oc(Gc(a)),b=n"); + atom.Append("ew $b(b,d))}if(b)if(lc(F(a.a)))d=b;else return b;else b=Fc(a,\"/\"),d=new kc,c.pus"); + atom.Append("h(b)}for(;lc(F(a.a));)b=a.a.next(),W(a,\"Missing next location step.\"),b=Fc(a,b),"); + atom.Append("c.push(b);return new hc(d,c)}\nfunction Fc(a,b){var c,d,e;if(\"/\"!=b&&\"//\"!=b)t"); + atom.Append("hrow Error('Step op should be \"/\" or \"//\"');if(\".\"==F(a.a))return d=new U(uc"); + atom.Append(",new K(\"node\")),a.a.next(),d;if(\"..\"==F(a.a))return d=new U(tc,new K(\"node\")"); + atom.Append("),a.a.next(),d;var f;if(\"@\"==F(a.a))f=ic,a.a.next(),W(a,\"Missing attribute name"); + atom.Append("\");else if(\"::\"==F(a.a,1)){if(!/(?![0-9])[\\w]/.test(F(a.a).charAt(0)))throw Er"); + atom.Append("ror(\"Bad token: \"+a.a.next());c=a.a.next();f=sc[c]||null;if(!f)throw Error(\"No "); + atom.Append("axis with name: \"+c);a.a.next();W(a,\"Missing node name\")}else f=pc;\nc=F(a.a);i"); + atom.Append("f(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==F(a.a,1)){if(!ec(c))throw Error(\"I"); + atom.Append("nvalid node type: \"+c);c=a.a.next();if(!ec(c))throw Error(\"Invalid type name: \""); + atom.Append("+c);Ac(a,\"(\");W(a,\"Bad nodetype\");e=F(a.a).charAt(0);var h=null;if('\"'==e||\""); + atom.Append("'\"==e)h=Cc(a);W(a,\"Bad nodetype\");Bc(a);c=new K(c,h)}else c=Dc(a);else if(\"*\""); + atom.Append("==c)c=Dc(a);else throw Error(\"Bad token: \"+a.a.next());e=new oc(Gc(a),f.w);retur"); + atom.Append("n d||new U(f,c,e,\"//\"==b)}\nfunction Gc(a){for(var b=[];\"[\"==F(a.a);){a.a.next"); + atom.Append("();W(a,\"Missing predicate expression.\");var c=yc(a);b.push(c);W(a,\"Unclosed pre"); + atom.Append("dicate expression.\");Ac(a,\"]\")}return b}function zc(a){if(\"-\"==F(a.a))return "); + atom.Append("a.a.next(),new vc(zc(a));var b=Ec(a);if(\"|\"!=F(a.a))a=b;else{for(b=[b];\"|\"==a."); + atom.Append("a.next();)W(a,\"Missing next union location path.\"),b.push(Ec(a));a.a.back();a=ne"); + atom.Append("w wc(b)}return a};function Hc(a){switch(a.nodeType){case 1:return ha(Ic,a);case 9:"); + atom.Append("return Hc(a.documentElement);case 2:return a.ownerElement?Hc(a.ownerElement):Jc;ca"); + atom.Append("se 11:case 10:case 6:case 12:return Jc;default:return a.parentNode?Hc(a.parentNode"); + atom.Append("):Jc}}function Jc(){return null}function Ic(a,b){if(a.prefix==b)return a.namespace"); + atom.Append("URI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:\"+b);retur"); + atom.Append("n c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?Ic(a.parentN"); + atom.Append("ode,b):null};function Kc(a,b){if(!a.length)throw Error(\"Empty XPath expression.\""); + atom.Append(");var c=Cb(a);if(c.empty())throw Error(\"Invalid XPath expression.\");b?ca(b)||(b="); + atom.Append("ga(b.lookupNamespaceURI,b)):b=function(){return null};var d=yc(new xc(c,b));if(!c."); + atom.Append("empty())throw Error(\"Bad token: \"+c.next());this.evaluate=function(a,b){var c=d."); + atom.Append("evaluate(new xb(a));return new X(c,b)}}\nfunction X(a,b){if(0==b)if(a instanceof J"); + atom.Append(")b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typeof a)b=1;else if(\"b"); + atom.Append("oolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluation result.\");if(2!=b"); + atom.Append("&&1!=b&&3!=b&&!(a instanceof J))throw Error(\"value could not be converted to the "); + atom.Append("specified type\");this.resultType=b;var c;switch(b){case 2:this.stringValue=a inst"); + atom.Append("anceof J?Qb(a):\"\"+a;break;case 1:this.numberValue=a instanceof J?+Qb(a):+a;break"); + atom.Append(";case 3:this.booleanValue=a instanceof J?0=c.length?null:c[f++]};"); + atom.Append("this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"snapshotItem called with"); + atom.Append(" wrong result type\");return a>=\nc.length||0>a?null:c[a]}}X.ANY_TYPE=0;X.NUMBER_T"); + atom.Append("YPE=1;X.STRING_TYPE=2;X.BOOLEAN_TYPE=3;X.UNORDERED_NODE_ITERATOR_TYPE=4;X.ORDERED_"); + atom.Append("NODE_ITERATOR_TYPE=5;X.UNORDERED_NODE_SNAPSHOT_TYPE=6;X.ORDERED_NODE_SNAPSHOT_TYPE"); + atom.Append("=7;X.ANY_UNORDERED_NODE_TYPE=8;X.FIRST_ORDERED_NODE_TYPE=9;function Lc(a){this.loo"); + atom.Append("kupNamespaceURI=Hc(a)}\nfunction Mc(a){a=a||l;var b=a.document;b.evaluate||(a.XPat"); + atom.Append("hResult=X,b.evaluate=function(a,b,e,f){return(new Kc(a,e)).evaluate(b,f)},b.create"); + atom.Append("Expression=function(a,b){return new Kc(a,b)},b.createNSResolver=function(a){return"); + atom.Append(" new Lc(a)})};var Y={};Y.fa=function(){var a={ta:\"http://www.w3.org/2000/svg\"};r"); + atom.Append("eturn function(b){return a[b]||null}}();Y.n=function(a,b,c){var d=C(a);(y||ub)&&Mc"); + atom.Append("(d?d.parentWindow||d.defaultView:window);try{var e=d.createNSResolver?d.createNSRe"); + atom.Append("solver(d.documentElement):Y.fa;return y&&!Xa(7)?d.evaluate.call(d,b,a,e,c,null):d."); + atom.Append("evaluate(b,a,e,c,null)}catch(f){if(!z||\"NS_ERROR_ILLEGAL_VALUE\"!=f.name)throw ne"); + atom.Append("w Fa(32,\"Unable to locate an element with the xpath expression \"+b+\" because of"); + atom.Append(" the following error:\\n\"+f);}};\nY.L=function(a,b){if(!a||1!=a.nodeType)throw ne"); + atom.Append("w Fa(32,'The result of the xpath expression \"'+b+'\" is: '+a+\". It should be an "); + atom.Append("element.\");};Y.na=function(a,b){var c=function(){var c=Y.n(b,a,9);return c?(c=c.s"); + atom.Append("ingleNodeValue,x?c:c||null):b.selectSingleNode?(c=C(b),c.setProperty&&c.setPropert"); + atom.Append("y(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||Y.L(c,"); + atom.Append("a);return c};\nY.ra=function(a,b){var c=function(){var c=Y.n(b,a,7);if(c){var e=c."); + atom.Append("snapshotLength;x&&!m(e)&&Y.L(null,a);for(var f=[],h=0;h=this.left&&a.right<=this.right&&a.top>=this.top&&a.bott"); + atom.Append("om<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!"); + atom.Append("1};\ng.expand=function(a,b,c,d){da(a)?(this.top-=a.top,this.right+=a.right,this.bo"); + atom.Append("ttom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.l"); + atom.Append("eft-=d);return this};g.ceil=function(){this.top=Math.ceil(this.top);this.right=Mat"); + atom.Append("h.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.lef"); + atom.Append("t);return this};g.floor=function(){this.top=Math.floor(this.top);this.right=Math.f"); + atom.Append("loor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.lef"); + atom.Append("t);return this};\ng.round=function(){this.top=Math.round(this.top);this.right=Math"); + atom.Append(".round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.l"); + atom.Append("eft);return this};g.translate=function(a,b){a instanceof A?(this.left+=a.x,this.ri"); + atom.Append("ght+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,q(b)&&(this.t"); + atom.Append("op+=b,this.bottom+=b));return this};g.scale=function(a,b){var c=q(b)?b:a;this.left"); + atom.Append("*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Z(a,b,c,d){this"); + atom.Append(".left=a;this.top=b;this.width=c;this.height=d}g=Z.prototype;g.clone=function(){ret"); + atom.Append("urn new Z(this.left,this.top,this.width,this.height)};g.toString=function(){return"); + atom.Append("\"(\"+this.left+\", \"+this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};g."); + atom.Append("contains=function(a){return a instanceof Z?this.left<=a.left&&this.left+this.width"); + atom.Append(">=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this."); + atom.Append("left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};\ng.cei"); + atom.Append("l=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.widt"); + atom.Append("h=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=fu"); + atom.Append("nction(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width="); + atom.Append("Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=fu"); + atom.Append("nction(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width="); + atom.Append("Math.round(this.width);this.height=Math.round(this.height);return this};\ng.transl"); + atom.Append("ate=function(a,b){a instanceof A?(this.left+=a.x,this.top+=a.y):(this.left+=a,q(b)"); + atom.Append("&&(this.top+=b));return this};g.scale=function(a,b){var c=q(b)?b:a;this.left*=a;th"); + atom.Append("is.width*=a;this.top*=c;this.height*=c;return this};function Zc(a,b){var c=C(a);re"); + atom.Append("turn c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedSt"); + atom.Append("yle(a,null))?c[b]||c.getPropertyValue(b)||\"\":\"\"}var $c={thin:2,medium:4,thick:"); + atom.Append("6};\nfunction ad(a,b){if(\"none\"==(a.currentStyle?a.currentStyle[b+\"Style\"]:nul"); + atom.Append("l))return 0;var c=a.currentStyle?a.currentStyle[b+\"Width\"]:null,d;if(c in $c)d=$"); + atom.Append("c[c];else if(/^\\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.left;var e=a.runt"); + atom.Append("imeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pix"); + atom.Append("elLeft;a.style.left=d;a.runtimeStyle.left=e;d=c}return d};function bd(a,b){return!"); + atom.Append("!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function cd(a){for(a=a.parentN"); + atom.Append("ode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return bd(a)?a"); + atom.Append(":null}\nfunction dd(a,b){var c=la(b);if(\"float\"==c||\"cssFloat\"==c||\"styleFloa"); + atom.Append("t\"==c)c=Xc?\"styleFloat\":\"cssFloat\";var d=Zc(a,c)||ed(a,c);if(null===d)d=null;"); + atom.Append("else if(sa(xa,c)){b:{var e=d.match(Aa);if(e){var c=Number(e[1]),f=Number(e[2]),h=N"); + atom.Append("umber(e[3]),e=Number(e[4]);if(0<=c&&255>=c&&0<=f&&255>=f&&0<=h&&255>=h&&0<=e&&1>=e"); + atom.Append("){c=[c,f,h,e];break b}}c=null}if(!c)b:{if(h=d.match(Ba))if(c=Number(h[1]),f=Number"); + atom.Append("(h[2]),h=Number(h[3]),0<=c&&255>=c&&0<=f&&255>=f&&0<=h&&255>=h){c=[c,f,h,1];break "); + atom.Append("b}c=null}if(!c)b:{c=d.toLowerCase();\nf=wa[c.toLowerCase()];if(!f&&(f=\"#\"==c.cha"); + atom.Append("rAt(0)?c:\"#\"+c,4==f.length&&(f=f.replace(ya,\"#$1$1$2$2$3$3\")),!za.test(f))){c="); + atom.Append("null;break b}c=[parseInt(f.substr(1,2),16),parseInt(f.substr(3,2),16),parseInt(f.s"); + atom.Append("ubstr(5,2),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}return d}function ed(a,b){v"); + atom.Append("ar c=a.currentStyle||a.style,d=c[b];!m(d)&&ca(c.getPropertyValue)&&(d=c.getPropert"); + atom.Append("yValue(b));return\"inherit\"!=d?m(d)?d:null:(c=cd(a))?ed(c,b):null}\nfunction fd(a"); + atom.Append(",b){function c(a){function b(a){return a==k?!0:0==dd(a,\"display\").lastIndexOf(\""); + atom.Append("inline\",0)||\"absolute\"==c&&\"static\"==dd(a,\"position\")?!1:!0}var c=dd(a,\"po"); + atom.Append("sition\");if(\"fixed\"==c)return G=!0,a==k?null:k;for(a=cd(a);a&&!b(a);)a=cd(a);re"); + atom.Append("turn a}function d(a){var b=a;if(\"visible\"==L)if(a==k&&r)b=r;else if(a==r)return{"); + atom.Append("x:\"visible\",y:\"visible\"};b={x:dd(b,\"overflow-x\"),y:dd(b,\"overflow-y\")};a=="); + atom.Append("k&&(b.x=\"visible\"==b.x?\"auto\":b.x,b.y=\"visible\"==b.y?\"auto\":b.y);return b}"); + atom.Append("function e(a){if(a==k){var b=\n(new ib(h)).N;a=Qa||\"CSS1Compat\"!=b.compatMode?b."); + atom.Append("body||b.documentElement:b.documentElement;b=b.parentWindow||b.defaultView;a=y&&Xa("); + atom.Append("\"10\")&&b.pageYOffset!=a.scrollTop?new A(a.scrollLeft,a.scrollTop):new A(b.pageXO"); + atom.Append("ffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}else a=new A(a.scrollLeft,a.scroll"); + atom.Append("Top);return a}for(var f=gd(a,b),h=C(a),k=h.documentElement,r=h.body,L=dd(k,\"overf"); + atom.Append("low\"),G,t=c(a);t;t=c(t)){var n=d(t);if(\"visible\"!=n.x||\"visible\"!=n.y){var v="); + atom.Append("hd(t);if(0==v.width||0==v.height)return\"hidden\";var B=\nf.right=v.left+v.width;v=f.top>=v.top+v.height;if(B&&\"hi"); + atom.Append("dden\"==n.x||v&&\"hidden\"==n.y)return\"hidden\";if(B&&\"visible\"!=n.x||v&&\"visi"); + atom.Append("ble\"!=n.y){if(G&&(n=e(t),f.left>=k.scrollWidth-n.x||f.right>=k.scrollHeight-n.y))"); + atom.Append("return\"hidden\";f=fd(t);\nreturn\"hidden\"==f?\"hidden\":\"scroll\"}}}return\"non"); + atom.Append("e\"}var id=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+"); + atom.Append("), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction hd(a){function b(a)"); + atom.Append("{var c=C(a),d=(c?c.parentWindow||c.defaultView:window).getComputedStyle(a,null).Mo"); + atom.Append("zTransform.match(id);if(d){var e=parseFloat(d[1]),G=parseFloat(d[2]),t=parseFloat("); + atom.Append("d[3]),n=parseFloat(d[4]),c=parseFloat(d[5]),d=parseFloat(d[6]),v=f.left+f.width,B="); + atom.Append("f.top+f.height,Q=f.left*e,e=v*e,Ca=f.left*G,G=v*G,Da=f.top*t,t=B*t,Ea=f.top*n,v=B*"); + atom.Append("n,B=Q+Da+c,n=Ca+Ea+d,Da=e+Da+c,Ea=G+Ea+d,Q=Q+t+c,Ca=Ca+v+d,c=e+t+c,d=G+v+d;f.left="); + atom.Append("Math.min(B,Da,Q,c);f.top=Math.min(n,Ea,Ca,d);c=Math.max(B,Da,Q,\nc);d=Math.max(n,E"); + atom.Append("a,Ca,d);f.width=c-f.left;f.height=d-f.top}(a=cd(a))&&b(a)}var c=jd(a);if(c)return "); + atom.Append("c.rect;if(bd(a,\"HTML\"))return c=C(a),a=bb((c?c.parentWindow||c.defaultView:windo"); + atom.Append("w)||window),new Z(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catc"); + atom.Append("h(e){return new Z(0,0,0,0)}var f=new Z(d.left,d.top,d.right-d.left,d.bottom-d.top)"); + atom.Append(";y&&a.ownerDocument.body&&(c=C(a),f.left-=c.documentElement.clientLeft+c.body.clie"); + atom.Append("ntLeft,f.top-=c.documentElement.clientTop+c.body.clientTop);x&&(0==f.width&&\n02*this.u&&nd(this),!0):!1};function nd"); + atom.Append("(a){if(a.u!=a.e.length){for(var b=0,c=0;b\");$(191,\"/\",\"?\");$(192,\"`\",\"~\");$(219,\"[\","); + atom.Append("\"{\");$(220,\"\\\\\",\"|\");$(221,\"]\",\"}\");$({b:59,c:186,opera:59},\";\",\":"); + atom.Append("\");$(222,\"'\",'\"');var ud=new ld;ud.set(1,qd);ud.set(2,rd);ud.set(4,sd);ud.set("); + atom.Append("8,td);\n(function(a){var b=new ld;u(md(a),function(c){b.set(a.get(c).code,c)});ret"); + atom.Append("urn b})(ud);z&&Rc(12);function vd(a,b){a:if(\"scroll\"==fd(a,b)){if(a.scrollIntoVi"); + atom.Append("ew&&(a.scrollIntoView(),\"none\"==fd(a,b)))break a;for(var c=gd(a,b),d=cd(a);d;d=c"); + atom.Append("d(d)){var e=d,f=hd(e),h;var k=e;if(!y||y&&9<=Za)r=Zc(k,\"borderLeftWidth\"),h=Zc(k"); + atom.Append(",\"borderRightWidth\"),L=Zc(k,\"borderTopWidth\"),k=Zc(k,\"borderBottomWidth\"),h="); + atom.Append("new Yc(parseFloat(L),parseFloat(h),parseFloat(k),parseFloat(r));else{var r=ad(k,\""); + atom.Append("borderLeft\");h=ad(k,\"borderRight\");var L=ad(k,\"borderTop\"),k=ad(k,\"borderBot"); + atom.Append("tom\");h=new Yc(L,h,k,r)}r=c.left-f.left-h.left;f=c.top-\nf.top-h.top;h=e.clientHe"); + atom.Append("ight+c.top-c.bottom;e.scrollLeft+=Math.min(r,Math.max(r-(e.clientWidth+c.left-c.ri"); + atom.Append("ght),0));e.scrollTop+=Math.min(f,Math.max(f-h,0))}fd(a,b)}c=gd(a,b);return new A(c"); + atom.Append(".left,c.top)};function wd(){this.I=void 0}\nfunction xd(a,b,c){switch(typeof b){ca"); + atom.Append("se \"string\":yd(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null"); + atom.Append("\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");bre"); + atom.Append("ak;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==aa(b)){var d=b"); + atom.Append(".length;c.push(\"[\");for(var e=\"\",f=0;fb?e+=\"000"); + atom.Append("\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return zd[a]=e+b.toString(16)}),'\"')};Qa||x"); + atom.Append("||z&&Rc(3.5)||y&&Rc(8);function Bd(a){switch(aa(a)){case \"string\":case \"number"); + atom.Append("\":case \"boolean\":return a;case \"function\":return a.toString();case \"array\":"); + atom.Append("return oa(a,Bd);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType"); + atom.Append(")){var b={};b.ELEMENT=Cd(a);return b}if(\"document\"in a)return b={},b.WINDOW=Cd(a"); + atom.Append("),b;if(ba(a))return oa(a,Bd);a=La(a,function(a,b){return q(b)||p(b)});return Ma(a,"); + atom.Append("Bd);default:return null}}\nfunction Dd(a,b){return\"array\"==aa(a)?oa(a,function(a"); + atom.Append("){return Dd(a,b)}):da(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?Ed(a.ELEMENT,b):"); + atom.Append("\"WINDOW\"in a?Ed(a.WINDOW,b):Ma(a,function(a){return Dd(a,b)}):a}function Fd(a){a"); + atom.Append("=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.R=ia());b.R||(b.R=ia());return b}fun"); + atom.Append("ction Cd(a){var b=Fd(a.ownerDocument),c=Na(b,function(b){return b==a});c||(c=\":wd"); + atom.Append("c:\"+b.R++,b[c]=a);return c}\nfunction Ed(a,b){a=decodeURIComponent(a);var c=b||do"); + atom.Append("cument,d=Fd(c);if(!(a in d))throw new Fa(10,\"Element does not exist in cache\");v"); + atom.Append("ar e=d[a];if(\"setInterval\"in e){if(e.closed)throw delete d[a],new Fa(23,\"Window"); + atom.Append(" has been closed.\");return e}for(var f=e;f;){if(f==c.documentElement)return e;f=f"); + atom.Append(".parentNode}delete d[a];throw new Fa(10,\"Element is no longer attached to the DOM"); + atom.Append("\");};function Gd(a,b){var c=[a],d;try{var e=b?Ed(b.WINDOW):window,f=Dd(c,e.docume"); + atom.Append("nt),h=vd.apply(null,f);d={status:0,value:Bd(h)}}catch(k){d={status:\"code\"in k?k."); + atom.Append("code:13,value:{message:k.message}}}c=[];xd(new wd,d,c);return c.join(\"\")}var Hd="); + atom.Append("[\"_\"],Id=l;Hd[0]in Id||!Id.execScript||Id.execScript(\"var \"+Hd[0]);for(var Jd;"); + atom.Append("Hd.length&&(Jd=Hd.shift());)!Hd.length&&m(Gd)?Id[Jd]=Gd:Id=Id[Jd]?Id[Jd]:Id[Jd]={}"); + atom.Append(";; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined"); + atom.Append("?window.navigator:null,document:typeof window!=undefined?window.document:null}, ar"); + atom.Append("guments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string GetAttributeValue + { + get + { + const string atomName = "GetAttributeValue"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var d=this;\nfunction h(a){var b=typeof a;if(\"object"); + atom.Append("\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;"); + atom.Append("var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\""); + atom.Append(";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.sp"); + atom.Append("lice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"spli"); + atom.Append("ce\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&"); + atom.Append("\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))re"); + atom.Append("turn\"function\"}else return\"null\";else if(\"function\"==\nb&&\"undefined\"==typ"); + atom.Append("eof a.call)return\"object\";return b}function aa(a){var b=h(a);return\"array\"==b|"); + atom.Append("|\"object\"==b&&\"number\"==typeof a.length}function k(a){return\"string\"==typeof"); + atom.Append(" a}function l(a){var b=typeof a;return\"object\"==b&&null!=a||\"function\"==b}var "); + atom.Append("ba=Date.now||function(){return+new Date};function m(a,b){for(var c=0,e=String(a).r"); + atom.Append("eplace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),f=String(b).replace(/^[\\s"); + atom.Append("\\xa0]+|[\\s\\xa0]+$/g,\"\").split(\".\"),g=Math.max(e.length,f.length),u=0;0==c&&"); + atom.Append("ub?1:0}"); + atom.Append(";function ca(a,b){for(var c=a.length,e=k(a)?a.split(\"\"):a,f=0;fe||c.indexOf(\"Error\",e)!=e)c+=\"Error\";this.name=c;c=Er"); + atom.Append("ror(this.message);c.name=this.name;this.stack=c.stack||\"\"}\n(function(){var a=Er"); + atom.Append("ror;function b(){}b.prototype=a.prototype;q.k=a.prototype;q.prototype=new b;q.prot"); + atom.Append("otype.constructor=q;q.j=function(c,b,f){return a.prototype[b].apply(c,Array.protot"); + atom.Append("ype.slice.call(arguments,2))}})();\nvar da=\"unknown error\",r={15:\"element not s"); + atom.Append("electable\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"im"); + atom.Append("e not available\",24:\"invalid cookie domain\",29:\"invalid element coordinates\","); + atom.Append("12:\"invalid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\""); + atom.Append("invalid selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move"); + atom.Append(" target out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such fra"); + atom.Append("me\",23:\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"s"); + atom.Append("tale element reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie"); + atom.Append("\",26:\"unexpected alert open\"};r[13]=da;r[9]=\"unknown command\";q.prototype.toS"); + atom.Append("tring=function(){return this.name+\": \"+this.message};var s;a:{var ea=d.navigator"); + atom.Append(";if(ea){var fa=ea.userAgent;if(fa){s=fa;break a}}s=\"\"}function t(a){return-1!=s."); + atom.Append("indexOf(a)};function ga(a,b){var c={},e;for(e in a)b.call(void 0,a[e],e,a)&&(c[e]="); + atom.Append("a[e]);return c}function ha(a,b){var c={},e;for(e in a)c[e]=b.call(void 0,a[e],e,a)"); + atom.Append(";return c}function ia(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};var"); + atom.Append(" v,w,x=t(\"Opera\")||t(\"OPR\"),y=t(\"Trident\")||t(\"MSIE\"),z=t(\"Gecko\")&&-1=="); + atom.Append("s.toLowerCase().indexOf(\"webkit\")&&!(t(\"Trident\")||t(\"MSIE\")),A=-1!=s.toLowe"); + atom.Append("rCase().indexOf(\"webkit\"),B,ja=d.navigator||null;B=ja&&ja.platform||\"\";v=-1!=B"); + atom.Append(".indexOf(\"Mac\");w=-1!=B.indexOf(\"Win\");var C=-1!=B.indexOf(\"Linux\");function"); + atom.Append(" ka(){var a=d.document;return a?a.documentMode:void 0}\nvar D=function(){var a=\""); + atom.Append("\",b;if(x&&d.opera)return a=d.opera.version,\"function\"==h(a)?a():a;z?b=/rv\\:([^"); + atom.Append("\\);]+)(\\)|;)/:y?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:A&&(b=/WebKit\\/(\\S+)/)"); + atom.Append(";b&&(a=(a=b.exec(s))?a[1]:\"\");return y&&(b=ka(),b>parseFloat(a))?String(b):a}(),"); + atom.Append("la={};function ma(a){return la[a]||(la[a]=0<=m(D,a))}var na=d.document,H=na&&y?ka("); + atom.Append(")||(\"CSS1Compat\"==na.compatMode?parseInt(D,10):5):void 0;!z&&!y||y&&y&&9<=H||z&&"); + atom.Append("ma(\"1.9.1\");y&&ma(\"9\");var oa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},pa={"); + atom.Append("IMG:\" \",BR:\"\\n\"};function qa(a,b,c){if(!(a.nodeName in oa))if(3==a.nodeType)c"); + atom.Append("?b.push(String(a.nodeValue).replace(/(\\r\\n|\\r|\\n)/g,\"\")):b.push(a.nodeValue)"); + atom.Append(";else if(a.nodeName in pa)b.push(pa[a.nodeName]);else for(a=a.firstChild;a;)qa(a,b"); + atom.Append(",c),a=a.nextSibling};var ra,sa,ta,ua,va,wa,xa;xa=wa=va=ua=ta=sa=ra=!1;var I=s;I&&("); + atom.Append("-1!=I.indexOf(\"Firefox\")?ra=!0:-1!=I.indexOf(\"Camino\")?sa=!0:-1!=I.indexOf(\"i"); + atom.Append("Phone\")||-1!=I.indexOf(\"iPod\")?ta=!0:-1!=I.indexOf(\"iPad\")?ua=!0:-1!=I.indexO"); + atom.Append("f(\"Chrome\")?wa=!0:-1!=I.indexOf(\"Android\")?va=!0:-1!=I.indexOf(\"Safari\")&&(x"); + atom.Append("a=!0));var ya=ra,za=sa,Aa=ta,Ba=ua,J=va,Ca=wa,Da=xa;function Ea(a){this.i=a}Ea.pro"); + atom.Append("totype.toString=function(){return this.i};var Fa={};function K(a){if(Fa.hasOwnProp"); + atom.Append("erty(a))throw Error(\"Binary operator already created: \"+a);a=new Ea(a);Fa[a.toSt"); + atom.Append("ring()]=a}K(\"div\");K(\"mod\");K(\"*\");K(\"+\");K(\"-\");K(\"<\");K(\">\");K(\"<"); + atom.Append("=\");K(\">=\");K(\"=\");K(\"!=\");K(\"and\");K(\"or\");function Ga(a){this.g=a}Ga."); + atom.Append("prototype.toString=function(){return this.g};var Ha={};function L(a){if(Ha.hasOwnP"); + atom.Append("roperty(a))throw Error(\"Function already created: \"+a+\".\");Ha[a]=new Ga(a)}L("); + atom.Append("\"boolean\");L(\"ceiling\");L(\"concat\");L(\"contains\");L(\"count\");L(\"false\""); + atom.Append(");L(\"floor\");L(\"id\");L(\"lang\");L(\"last\");L(\"local-name\");L(\"name\");L("); + atom.Append("\"namespace-uri\");L(\"normalize-space\");L(\"not\");L(\"number\");L(\"position\")"); + atom.Append(";L(\"round\");L(\"starts-with\");L(\"string\");L(\"string-length\");L(\"substring"); + atom.Append("\");L(\"substring-after\");L(\"substring-before\");\nL(\"sum\");L(\"translate\");L"); + atom.Append("(\"true\");function Ia(a){this.g=a}Ia.prototype.toString=function(){return this.g}"); + atom.Append(";var Ja={};function M(a){if(Ja.hasOwnProperty(a))throw Error(\"Axis already create"); + atom.Append("d: \"+a);Ja[a]=new Ia(a)}M(\"ancestor\");M(\"ancestor-or-self\");M(\"attribute\");"); + atom.Append("M(\"child\");M(\"descendant\");M(\"descendant-or-self\");M(\"following\");M(\"foll"); + atom.Append("owing-sibling\");M(\"namespace\");M(\"parent\");M(\"preceding\");M(\"preceding-sib"); + atom.Append("ling\");M(\"self\");function N(a){return(a=a.exec(s))?a[1]:\"\"}var Ka=function(){"); + atom.Append("if(ya)return N(/Firefox\\/([0-9.]+)/);if(y||x)return D;if(Ca)return N(/Chrome\\/(["); + atom.Append("0-9.]+)/);if(Da)return N(/Version\\/([0-9.]+)/);if(Aa||Ba){var a;if(a=/Version\\/("); + atom.Append("\\S+).*Mobile\\/(\\S+)/.exec(s))return a[1]+\".\"+a[2]}else{if(J)return(a=N(/Andro"); + atom.Append("id\\s+([0-9.]+)/))?a:N(/Version\\/([0-9.]+)/);if(za)return N(/Camino\\/([0-9.]+)/)"); + atom.Append("}return\"\"}();var La,Ma;function O(a){return Na?La(a):y?0<=m(H,a):ma(a)}function "); + atom.Append("P(a){Na?Ma(a):J?m(Oa,a):m(Ka,a)}\nvar Na=function(){if(!z)return!1;var a=d.Compone"); + atom.Append("nts;if(!a)return!1;try{if(!a.classes)return!1}catch(b){return!1}var c=a.classes,a="); + atom.Append("a.interfaces,e=c[\"@mozilla.org/xpcom/version-comparator;1\"].getService(a.nsIVers"); + atom.Append("ionComparator),c=c[\"@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo),f="); + atom.Append("c.platformVersion,g=c.version;La=function(a){return 0<=e.compare(f,\"\"+a)};Ma=fun"); + atom.Append("ction(a){e.compare(g,\"\"+a)};return!0}(),Pa;if(J){var Qa=/Android\\s+([0-9\\.]+)/"); + atom.Append(".exec(s);Pa=Qa?Qa[1]:\"0\"}else Pa=\"0\";\nvar Oa=Pa,Ra=y&&!(y&&8<=H),Sa=y&&!(y&&9"); + atom.Append("<=H);J&&P(2.3);J&&P(4);Da&&P(6);function Q(a,b){return!!a&&1==a.nodeType&&(!b||a.t"); + atom.Append("agName.toUpperCase()==b)}function Ta(a){return Q(a,\"OPTION\")?!0:Q(a,\"INPUT\")?("); + atom.Append("a=a.type.toLowerCase(),\"checkbox\"==a||\"radio\"==a):!1}function R(a,b){var c;if("); + atom.Append("c=Ra&&\"value\"==b&&Q(a,\"OPTION\"))c=null===S(a,\"value\");c?(c=[],qa(a,c,!1),c=c"); + atom.Append(".join(\"\")):c=a[b];return c}var Xa=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:["); + atom.Append("^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction Ya(a){var b=[];ca"); + atom.Append("(a.split(Xa),function(a){var e=a.indexOf(\":\");02*this.e&&$a(this),!0):!1};\nfunction $a(a){if(a.e!=a.c.length){for(var b=0,c="); + atom.Append("0;b\");U(191,\"/\",\"?\");U(192,\"`\",\"~\");U(219,\"[\",\"{\");U(220,"); + atom.Append("\"\\\\\",\"|\");U(221,\"]\",\"}\");U({a:59,b:186,opera:59},\";\",\":\");U(222,\"'"); + atom.Append("\",'\"');var V=new T;V.set(1,cb);V.set(2,db);V.set(4,eb);V.set(8,fb);\n(function(a"); + atom.Append("){var b=new T;ca(Za(a),function(c){b.set(a.get(c).code,c)});return b})(V);z&&O(12)"); + atom.Append(";var gb={\"class\":\"className\",readonly:\"readOnly\"},W=\"async autofocus autopl"); + atom.Append("ay checked compact complete controls declare defaultchecked defaultselected defer "); + atom.Append("disabled draggable ended formnovalidate hidden indeterminate iscontenteditable ism"); + atom.Append("ap itemscope loop multiple muted nohref noresize noshade novalidate nowrap open pa"); + atom.Append("used pubdate readonly required reversed scoped seamless seeking selected spellchec"); + atom.Append("k truespeed willvalidate\".split(\" \");\nfunction hb(a,b){var c=null,e=b.toLowerC"); + atom.Append("ase();if(\"style\"==e)return(c=a.style)&&!k(c)&&(c=c.cssText),c;if((\"selected\"=="); + atom.Append("e||\"checked\"==e)&&Ta(a)){if(!Ta(a))throw new q(15,\"Element is not selectable\")"); + atom.Append(";var f=\"selected\",e=a.type&&a.type.toLowerCase();if(\"checkbox\"==e||\"radio\"=="); + atom.Append("e)f=\"checked\";return R(a,f)?\"true\":null}c=Q(a,\"A\");if(Q(a,\"IMG\")&&\"src\"="); + atom.Append("=e||c&&\"href\"==e)return(c=S(a,e))&&(c=R(a,e)),c;c=gb[b]||b;a:if(k(W))e=k(e)&&1=="); + atom.Append("e.length?W.indexOf(e,0):-1;else{for(var g=0;gb?f+=\"000\":256>b?f+=\"00\":4096>b&&"); + atom.Append("(f+=\"0\");return lb[a]=f+b.toString(16)}),'\"')};A||x||z&&O(3.5)||y&&O(8);functio"); + atom.Append("n X(a){switch(h(a)){case \"string\":case \"number\":case \"boolean\":return a;case"); + atom.Append(" \"function\":return a.toString();case \"array\":return p(a,X);case \"object\":if("); + atom.Append("\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=nb(a);return "); + atom.Append("b}if(\"document\"in a)return b={},b.WINDOW=nb(a),b;if(aa(a))return p(a,X);a=ga(a,f"); + atom.Append("unction(a,b){return\"number\"==typeof b||k(b)});return ha(a,X);default:return null"); + atom.Append("}}\nfunction ob(a,b){return\"array\"==h(a)?p(a,function(a){return ob(a,b)}):l(a)?"); + atom.Append("\"function\"==typeof a?a:\"ELEMENT\"in a?pb(a.ELEMENT,b):\"WINDOW\"in a?pb(a.WINDO"); + atom.Append("W,b):ha(a,function(a){return ob(a,b)}):a}function qb(a){a=a||document;var b=a.$wdc"); + atom.Append("_;b||(b=a.$wdc_={},b.h=ba());b.h||(b.h=ba());return b}function nb(a){var b=qb(a.ow"); + atom.Append("nerDocument),c=ia(b,function(b){return b==a});c||(c=\":wdc:\"+b.h++,b[c]=a);return"); + atom.Append(" c}\nfunction pb(a,b){a=decodeURIComponent(a);var c=b||document,e=qb(c);if(!(a in "); + atom.Append("e))throw new q(10,\"Element does not exist in cache\");var f=e[a];if(\"setInterval"); + atom.Append("\"in f){if(f.closed)throw delete e[a],new q(23,\"Window has been closed.\");return"); + atom.Append(" f}for(var g=f;g;){if(g==c.documentElement)return f;g=g.parentNode}delete e[a];thr"); + atom.Append("ow new q(10,\"Element is no longer attached to the DOM\");};function rb(a,b,c){a=["); + atom.Append("a,b];var e;try{var f=c?pb(c.WINDOW):window,g=ob(a,f.document),u=hb.apply(null,g);e"); + atom.Append("={status:0,value:X(u)}}catch(E){e={status:\"code\"in E?E.code:13,value:{message:E."); + atom.Append("message}}}c=[];jb(new ib,e,c);return c.join(\"\")}var Y=[\"_\"],Z=d;Y[0]in Z||!Z.e"); + atom.Append("xecScript||Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length"); + atom.Append("||void 0===rb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=rb;; return this._.apply(null,arguments);}."); + atom.Append("apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof wi"); + atom.Append("ndow!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string FindElement + { + get + { + const string atomName = "FindElement"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,k=this;function p(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function b"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction q(a){return\"string\"==typeof a}function s(a){return\"number\"==typeof a}fu"); + atom.Append("nction ca(a){return\"function\"==aa(a)}function da(a){var b=typeof a;return\"objec"); + atom.Append("t\"==b&&null!=a||\"function\"==b}function ea(a,b,c){return a.call.apply(a.bind,arg"); + atom.Append("uments)}\nfunction fa(a,b,c){if(!a)throw Error();if(2d||c.indexOf(\"E"); + atom.Append("rror\",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this."); + atom.Append("stack=c.stack||\"\"}u(v,Error);\nvar la=\"unknown error\",ka={15:\"element not sel"); + atom.Append("ectable\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"ime "); + atom.Append("not available\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",12"); + atom.Append(":\"invalid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\"in"); + atom.Append("valid selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move t"); + atom.Append("arget out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame"); + atom.Append("\",23:\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"sta"); + atom.Append("le element reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\","); + atom.Append("26:\"unexpected alert open\"};ka[13]=la;ka[9]=\"unknown command\";v.prototype.toSt"); + atom.Append("ring=function(){return this.name+\": \"+this.message};var ma;function na(a){var b="); + atom.Append("a.length-1;return 0<=b&&a.indexOf(\" \",b)==b}function oa(a){return a.replace(/^["); + atom.Append("\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")}\nfunction pa(a,b){for(var c=0,d=oa(String(a)).spl"); + atom.Append("it(\".\"),e=oa(String(b)).split(\".\"),f=Math.max(d.length,e.length),g=0;0==c&&gb?1:0}\nfunc"); + atom.Append("tion ra(a){return String(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCa"); + atom.Append("se()})};var sa=Array.prototype;function w(a,b){for(var c=a.length,d=q(a)?a.split("); + atom.Append("\"\"):a,e=0;ec?null:q(a)?a.charAt"); + atom.Append("(c):a[c]}\nfunction za(a,b){var c;a:if(q(a))c=q(b)&&1==b.length?a.indexOf(b,0):-1;"); + atom.Append("else{for(c=0;c=arguments.length?sa.slice.call(a,b):sa.slice.call(a,b,c)};var y;a:{var Ia=k.n"); + atom.Append("avigator;if(Ia){var Ja=Ia.userAgent;if(Ja){y=Ja;break a}}y=\"\"}function Ka(a){ret"); + atom.Append("urn-1!=y.indexOf(a)};function La(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a"); + atom.Append(")&&(c[d]=a[d]);return c}function Ma(a){var b=Na,c={},d;for(d in a)c[d]=b.call(void"); + atom.Append(" 0,a[d],d,a);return c}function Oa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))r"); + atom.Append("eturn c};var Pa=Ka(\"Opera\")||Ka(\"OPR\"),z=Ka(\"Trident\")||Ka(\"MSIE\"),Qa=Ka("); + atom.Append("\"Gecko\")&&-1==y.toLowerCase().indexOf(\"webkit\")&&!(Ka(\"Trident\")||Ka(\"MSIE"); + atom.Append("\")),Ra=-1!=y.toLowerCase().indexOf(\"webkit\");function Sa(){var a=k.document;ret"); + atom.Append("urn a?a.documentMode:void 0}var Ta=function(){var a=\"\",b;if(Pa&&k.opera)return a"); + atom.Append("=k.opera.version,ca(a)?a():a;Qa?b=/rv\\:([^\\);]+)(\\)|;)/:z?b=/\\b(?:MSIE|rv)[: ]"); + atom.Append("([^\\);]+)(\\)|;)/:Ra&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec(y))?a[1]:\"\");return"); + atom.Append(" z&&(b=Sa(),b>parseFloat(a))?String(b):a}(),Ua={};\nfunction Va(a){return Ua[a]||("); + atom.Append("Ua[a]=0<=pa(Ta,a))}var Wa=k.document,Xa=Wa&&z?Sa()||(\"CSS1Compat\"==Wa.compatMode"); + atom.Append("?parseInt(Ta,10):5):void 0;!Qa&&!z||z&&z&&9<=Xa||Qa&&Va(\"1.9.1\");z&&Va(\"9\");fu"); + atom.Append("nction A(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0}h=A.prototype;h.clone=function(){ret"); + atom.Append("urn new A(this.x,this.y)};h.toString=function(){return\"(\"+this.x+\", \"+this.y+"); + atom.Append("\")\"};h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return "); + atom.Append("this};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);retur"); + atom.Append("n this};h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);ret"); + atom.Append("urn this};\nh.translate=function(a,b){a instanceof A?(this.x+=a.x,this.y+=a.y):(th"); + atom.Append("is.x+=a,s(b)&&(this.y+=b));return this};h.scale=function(a,b){var c=s(b)?b:a;this."); + atom.Append("x*=a;this.y*=c;return this};function Ya(a,b){this.width=a;this.height=b}h=Ya.proto"); + atom.Append("type;h.clone=function(){return new Ya(this.width,this.height)};h.toString=function"); + atom.Append("(){return\"(\"+this.width+\" x \"+this.height+\")\"};h.ceil=function(){this.width="); + atom.Append("Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=func"); + atom.Append("tion(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);retur"); + atom.Append("n this};h.round=function(){this.width=Math.round(this.width);this.height=Math.roun"); + atom.Append("d(this.height);return this};\nh.scale=function(a,b){var c=s(b)?b:a;this.width*=a;t"); + atom.Append("his.height*=c;return this};function B(a){return a?new Za(C(a)):ma||(ma=new Za)}fun"); + atom.Append("ction $a(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;r"); + atom.Append("eturn new Ya(a.clientWidth,a.clientHeight)}function ab(a,b,c){function d(c){c&&b.a"); + atom.Append("ppendChild(q(c)?a.createTextNode(c):c)}for(var e=1;e]=|\\\\s+|.\",\"g\"),Xb=/^\\s/;function G(a,b){return a.Q[a.D+(b|"); + atom.Append("|0)]}Ub.prototype.next=function(){return this.Q[this.D++]};Ub.prototype.back=funct"); + atom.Append("ion(){this.D--};Ub.prototype.empty=function(){return this.Q.length<=this.D};functi"); + atom.Append("on H(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.inne"); + atom.Append("rText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(F&&\"title\"==a.no"); + atom.Append("deName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a"); + atom.Append(".firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),F&&\"ti"); + atom.Append("tle\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c"); + atom.Append("&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction I(a,b,c){"); + atom.Append("if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Rb&&\"class"); + atom.Append("\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c"); + atom.Append("}function Yb(a,b,c,d,e){return(F?Zb:$b).call(null,a,b,q(c)?c:null,q(d)?d:null,e||n"); + atom.Append("ew J)}\nfunction Zb(a,b,c,d,e){if(a instanceof ac||8==a.i||c&&null===a.i){var f=b."); + atom.Append("all;if(!f)return e;a=bc(a);if(\"*\"!=a&&(f=b.getElementsByTagName(a),!f))return e;"); + atom.Append("if(c){for(var g=[],l=0;b=f[l++];)I(b,c,d)&&g.push(b);f=g}for(l=0;b=f[l++];)\"*\"=="); + atom.Append("a&&\"!\"==b.tagName||e.add(b);return e}cc(a,b,c,d,e);return e}\nfunction $b(a,b,c,"); + atom.Append("d,e){b.getElementsByName&&d&&\"name\"==c&&!z?(b=b.getElementsByName(d),w(b,functio"); + atom.Append("n(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getE"); + atom.Append("lementsByClassName(d),w(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a "); + atom.Append("instanceof K?cc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.get"); + atom.Append("Name()),w(b,function(a){I(a,c,d)&&e.add(a)}));return e}\nfunction dc(a,b,c,d,e){va"); + atom.Append("r f;if((a instanceof ac||8==a.i||c&&null===a.i)&&(f=b.childNodes)){var g=bc(a);if("); + atom.Append("\"*\"!=g&&(f=ta(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))r"); + atom.Append("eturn e;c&&(f=ta(f,function(a){return I(a,c,d)}));w(f,function(a){\"*\"==g&&(\"!\""); + atom.Append("==a.tagName||\"*\"==g&&1!=a.nodeType)||e.add(a)});return e}return ec(a,b,c,d,e)}fu"); + atom.Append("nction ec(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&"); + atom.Append("e.add(b);return e}\nfunction cc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I("); + atom.Append("b,c,d)&&a.matches(b)&&e.add(b),cc(a,b,c,d,e)}function bc(a){if(a instanceof K){if("); + atom.Append("8==a.i)return\"!\";if(null===a.i)return\"*\"}return a.getName()};function J(){this"); + atom.Append(".j=this.f=null;this.w=0}function fc(a){this.s=a;this.next=this.r=null}function gc("); + atom.Append("a,b){if(!a.f)return b;if(!b.f)return a;for(var c=a.f,d=b.f,e=null,f=null,g=0;c&&d;"); + atom.Append("){var f=c.s,l=d.s;f==l||f instanceof Sb&&l instanceof Sb&&f.c==l.c?(f=c,c=c.next,d"); + atom.Append("=d.next):0\",4,2,function(a,b,c){return qc(function(a,b){return a>b},a,b,c)});P(\"<="); + atom.Append("\",4,2,function(a,b,c){return qc(function(a,b){return a<=b},a,b,c)});P(\">=\",4,2,"); + atom.Append("function(a,b,c){return qc(function(a,b){return a>=b},a,b,c)});var pc=P(\"=\",3,2,f"); + atom.Append("unction(a,b,c){return qc(function(a,b){return a==b},a,b,c,!0)});P(\"!=\",3,2,funct"); + atom.Append("ion(a,b,c){return qc(function(a,b){return a!=b},a,b,c,!0)});P(\"and\",2,2,function"); + atom.Append("(a,b,c){return nc(a,c)&&nc(b,c)});P(\"or\",1,2,function(a,b,c){return nc(a,c)||nc("); + atom.Append("b,c)});function tc(a,b){if(b.l()&&4!=a.e)throw Error(\"Primary expression must eva"); + atom.Append("luate to nodeset if filter has predicate(s).\");L.call(this,a.e);this.aa=a;this.b="); + atom.Append("b;this.o=a.d();this.g=a.g}u(tc,L);tc.prototype.evaluate=function(a){a=this.aa.eval"); + atom.Append("uate(a);return uc(this.b,a)};tc.prototype.toString=function(){var a;a=\"Filter:\"+"); + atom.Append("M(this.aa);return a+=M(this.b)};function vc(a,b){if(b.lengtha.M)throw Error(\"Function \"+a.h+\" expects at most \"+a.M+\" "); + atom.Append("arguments, \"+b.length+\" given\");a.ka&&w(b,function(b,d){if(4!=b.e)throw Error("); + atom.Append("\"Argument \"+d+\" to function \"+a.h+\" is not of type Nodeset: \"+b);});L.call(t"); + atom.Append("his,a.e);this.C=a;this.I=b;lc(this,a.o||wa(b,function(a){return a.d()}));mc(this,a"); + atom.Append(".ia&&!b.length||a.ha&&!!b.length||wa(b,function(a){return a.g}))}\nu(vc,L);vc.prot"); + atom.Append("otype.evaluate=function(a){return this.C.k.apply(null,Aa(a,this.I))};vc.prototype."); + atom.Append("toString=function(){var a=\"Function: \"+this.C;if(this.I.length)var b=va(this.I,f"); + atom.Append("unction(a,b){return a+M(b)},\"Arguments:\"),a=a+M(b);return a};function wc(a,b,c,d"); + atom.Append(",e,f,g,l,t){this.h=a;this.e=b;this.o=c;this.ia=d;this.ha=e;this.k=f;this.Z=g;this."); + atom.Append("M=p(l)?l:g;this.ka=!!t}wc.prototype.toString=function(){return this.h};var xc={};"); + atom.Append("\nfunction Q(a,b,c,d,e,f,g,l){if(xc.hasOwnProperty(a))throw Error(\"Function alrea"); + atom.Append("dy created: \"+a+\".\");xc[a]=new wc(a,b,c,d,!1,e,f,g,l)}Q(\"boolean\",2,!1,!1,fun"); + atom.Append("ction(a,b){return nc(b,a)},1);Q(\"ceiling\",1,!1,!1,function(a,b){return Math.ceil"); + atom.Append("(N(b,a))},1);Q(\"concat\",3,!1,!1,function(a,b){return va(Ca(arguments,1),function"); + atom.Append("(b,d){return b+O(d,a)},\"\")},2,null);Q(\"contains\",2,!1,!1,function(a,b,c){b=O(b"); + atom.Append(",a);a=O(c,a);return-1!=b.indexOf(a)},2);Q(\"count\",1,!1,!1,function(a,b){return b"); + atom.Append(".evaluate(a).l()},1,1,!0);\nQ(\"false\",2,!1,!1,function(){return!1},0);Q(\"floor"); + atom.Append("\",1,!1,!1,function(a,b){return Math.floor(N(b,a))},1);Q(\"id\",4,!1,!1,function(a"); + atom.Append(",b){function c(a){if(F){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b."); + atom.Append("length)return ya(b,function(b){return a==b.id})}return null}return e.getElementByI"); + atom.Append("d(a)}var d=a.c,e=9==d.nodeType?d:d.ownerDocument,d=O(b,a).split(/\\s+/),f=[];w(d,f"); + atom.Append("unction(a){(a=c(a))&&!za(f,a)&&f.push(a)});f.sort(eb);var g=new J;w(f,function(a){"); + atom.Append("g.add(a)});return g},1);\nQ(\"lang\",2,!1,!1,function(){return!1},1);Q(\"last\",1,"); + atom.Append("!0,!1,function(a){if(1!=arguments.length)throw Error(\"Function last expects ()\")"); + atom.Append(";return a.j},0);Q(\"local-name\",3,!1,!0,function(a,b){var c=b?hc(b.evaluate(a)):a"); + atom.Append(".c;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);Q(\"name\",3,!1,!0,function(a,b"); + atom.Append("){var c=b?hc(b.evaluate(a)):a.c;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);Q("); + atom.Append("\"namespace-uri\",3,!0,!1,function(){return\"\"},0,1,!0);\nQ(\"normalize-space\",3"); + atom.Append(",!1,!0,function(a,b){return(b?O(b,a):H(a.c)).replace(/[\\s\\xa0]+/g,\" \").replace"); + atom.Append("(/^\\s+|\\s+$/g,\"\")},0,1);Q(\"not\",2,!1,!1,function(a,b){return!nc(b,a)},1);Q("); + atom.Append("\"number\",1,!1,!0,function(a,b){return b?N(b,a):+H(a.c)},0,1);Q(\"position\",1,!0"); + atom.Append(",!1,function(a){return a.na},0);Q(\"round\",1,!1,!1,function(a,b){return Math.roun"); + atom.Append("d(N(b,a))},1);Q(\"starts-with\",2,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);return 0"); + atom.Append("==b.lastIndexOf(a,0)},2);Q(\"string\",3,!1,!0,function(a,b){return b?O(b,a):H(a.c)"); + atom.Append("},0,1);\nQ(\"string-length\",1,!1,!0,function(a,b){return(b?O(b,a):H(a.c)).length}"); + atom.Append(",0,1);Q(\"substring\",3,!1,!1,function(a,b,c,d){c=N(c,a);if(isNaN(c)||Infinity==c|"); + atom.Append("|-Infinity==c)return\"\";d=d?N(d,a):Infinity;if(isNaN(d)||-Infinity===d)return\"\""); + atom.Append(";c=Math.round(c)-1;var e=Math.max(c,0);a=O(b,a);if(Infinity==d)return a.substring("); + atom.Append("e);b=Math.round(d);return a.substring(e,c+b)},2,3);Q(\"substring-after\",3,!1,!1,f"); + atom.Append("unction(a,b,c){b=O(b,a);a=O(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.l"); + atom.Append("ength)},2);\nQ(\"substring-before\",3,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);a=b."); + atom.Append("indexOf(a);return-1==a?\"\":b.substring(0,a)},2);Q(\"sum\",1,!1,!1,function(a,b){f"); + atom.Append("or(var c=jc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,!0);"); + atom.Append("Q(\"translate\",3,!1,!1,function(a,b,c,d){b=O(b,a);c=O(c,a);var e=O(d,a);a=[];for("); + atom.Append("d=0;da.len"); + atom.Append("gth)throw Error(\"Unclosed literal string\");return new zc(a)}function Yc(a){var b"); + atom.Append("=a.a.next(),c=b.indexOf(\":\");if(-1==c)return new ac(b);var d=b.substring(0,c);a="); + atom.Append("a.la(d);if(!a)throw Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);r"); + atom.Append("eturn new ac(b,a)}\nfunction Zc(a){var b,c=[],d;if(Fc(G(a.a))){b=a.a.next();d=G(a."); + atom.Append("a);if(\"/\"==b&&(a.a.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])"); + atom.Append("[\\w]/.test(d)))return new Dc;d=new Dc;T(a,\"Missing next location step.\");b=$c(a"); + atom.Append(",b);c.push(b)}else{a:{b=G(a.a);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Va"); + atom.Append("riable reference not allowed in HTML XPath\");case \"(\":a.a.next();b=Tc(a);T(a,'u"); + atom.Append("nclosed \"(\"');Vc(a,\")\");break;case '\"':case \"'\":b=Xc(a);break;default:if(is"); + atom.Append("NaN(+b))if(!yc(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==G(a.a,\n1)){b=a.a.next();b=xc["); + atom.Append("b]||null;a.a.next();for(d=[];\")\"!=G(a.a);){T(a,\"Missing function argument list."); + atom.Append("\");d.push(Tc(a));if(\",\"!=G(a.a))break;a.a.next()}T(a,\"Unclosed function argume"); + atom.Append("nt list.\");Wc(a);b=new vc(b,d)}else{b=null;break a}else b=new Ac(+a.a.next())}\"["); + atom.Append("\"==G(a.a)&&(d=new Ic(ad(a)),b=new tc(b,d))}if(b)if(Fc(G(a.a)))d=b;else return b;e"); + atom.Append("lse b=$c(a,\"/\"),d=new Ec,c.push(b)}for(;Fc(G(a.a));)b=a.a.next(),T(a,\"Missing n"); + atom.Append("ext location step.\"),b=$c(a,b),c.push(b);return new Bc(d,c)}\nfunction $c(a,b){va"); + atom.Append("r c,d,e;if(\"/\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if"); + atom.Append("(\".\"==G(a.a))return d=new Jc(Pc,new K(\"node\")),a.a.next(),d;if(\"..\"==G(a.a))"); + atom.Append("return d=new Jc(Oc,new K(\"node\")),a.a.next(),d;var f;if(\"@\"==G(a.a))f=Cc,a.a.n"); + atom.Append("ext(),T(a,\"Missing attribute name\");else if(\"::\"==G(a.a,1)){if(!/(?![0-9])[\\w"); + atom.Append("]/.test(G(a.a).charAt(0)))throw Error(\"Bad token: \"+a.a.next());c=a.a.next();f=N"); + atom.Append("c[c]||null;if(!f)throw Error(\"No axis with name: \"+c);a.a.next();T(a,\"Missing n"); + atom.Append("ode name\")}else f=\nKc;c=G(a.a);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==G"); + atom.Append("(a.a,1)){if(!yc(c))throw Error(\"Invalid node type: \"+c);c=a.a.next();if(!yc(c))t"); + atom.Append("hrow Error(\"Invalid type name: \"+c);Vc(a,\"(\");T(a,\"Bad nodetype\");e=G(a.a).c"); + atom.Append("harAt(0);var g=null;if('\"'==e||\"'\"==e)g=Xc(a);T(a,\"Bad nodetype\");Wc(a);c=new"); + atom.Append(" K(c,g)}else c=Yc(a);else if(\"*\"==c)c=Yc(a);else throw Error(\"Bad token: \"+a.a"); + atom.Append(".next());e=new Ic(ad(a),f.t);return d||new Jc(f,c,e,\"//\"==b)}\nfunction ad(a){fo"); + atom.Append("r(var b=[];\"[\"==G(a.a);){a.a.next();T(a,\"Missing predicate expression.\");var c"); + atom.Append("=Tc(a);b.push(c);T(a,\"Unclosed predicate expression.\");Vc(a,\"]\")}return b}func"); + atom.Append("tion Uc(a){if(\"-\"==G(a.a))return a.a.next(),new Qc(Uc(a));var b=Zc(a);if(\"|\"!="); + atom.Append("G(a.a))a=b;else{for(b=[b];\"|\"==a.a.next();)T(a,\"Missing next union location pat"); + atom.Append("h.\"),b.push(Zc(a));a.a.back();a=new Rc(b)}return a};function bd(a){switch(a.nodeT"); + atom.Append("ype){case 1:return ha(cd,a);case 9:return bd(a.documentElement);case 2:return a.ow"); + atom.Append("nerElement?bd(a.ownerElement):dd;case 11:case 10:case 6:case 12:return dd;default:"); + atom.Append("return a.parentNode?bd(a.parentNode):dd}}function dd(){return null}function cd(a,b"); + atom.Append("){if(a.prefix==b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.g"); + atom.Append("etAttributeNode(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!"); + atom.Append("=a.parentNode.nodeType?cd(a.parentNode,b):null};function ed(a,b){if(!a.length)thro"); + atom.Append("w Error(\"Empty XPath expression.\");var c=Vb(a);if(c.empty())throw Error(\"Invali"); + atom.Append("d XPath expression.\");b?ca(b)||(b=ga(b.lookupNamespaceURI,b)):b=function(){return"); + atom.Append(" null};var d=Tc(new Sc(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());t"); + atom.Append("his.evaluate=function(a,b){var c=d.evaluate(new Qb(a));return new U(c,b)}}\nfuncti"); + atom.Append("on U(a,b){if(0==b)if(a instanceof J)b=4;else if(\"string\"==typeof a)b=2;else if("); + atom.Append("\"number\"==typeof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unex"); + atom.Append("pected evaluation result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof J))throw Error(\""); + atom.Append("value could not be converted to the specified type\");this.resultType=b;var c;swit"); + atom.Append("ch(b){case 2:this.stringValue=a instanceof J?ic(a):\"\"+a;break;case 1:this.number"); + atom.Append("Value=a instanceof J?+ic(a):+a;break;case 3:this.booleanValue=a instanceof J?0=c.length?null:c[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)t"); + atom.Append("hrow Error(\"snapshotItem called with wrong result type\");return a>=\nc.length||0"); + atom.Append(">a?null:c[a]}}U.ANY_TYPE=0;U.NUMBER_TYPE=1;U.STRING_TYPE=2;U.BOOLEAN_TYPE=3;U.UNOR"); + atom.Append("DERED_NODE_ITERATOR_TYPE=4;U.ORDERED_NODE_ITERATOR_TYPE=5;U.UNORDERED_NODE_SNAPSHO"); + atom.Append("T_TYPE=6;U.ORDERED_NODE_SNAPSHOT_TYPE=7;U.ANY_UNORDERED_NODE_TYPE=8;U.FIRST_ORDERE"); + atom.Append("D_NODE_TYPE=9;function fd(a){this.lookupNamespaceURI=bd(a)}\nfunction gd(a){a=a||k"); + atom.Append(";var b=a.document;b.evaluate||(a.XPathResult=U,b.evaluate=function(a,b,e,f){return"); + atom.Append("(new ed(a,e)).evaluate(b,f)},b.createExpression=function(a,b){return new ed(a,b)},"); + atom.Append("b.createNSResolver=function(a){return new fd(a)})};var V={};V.ga=function(){var a="); + atom.Append("{ra:\"http://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}();V.k=f"); + atom.Append("unction(a,b,c){var d=C(a);(z||ub)&&gd(d?d.parentWindow||d.defaultView:window);try{"); + atom.Append("var e=d.createNSResolver?d.createNSResolver(d.documentElement):V.ga;return z&&!Va("); + atom.Append("7)?d.evaluate.call(d,b,a,e,c,null):d.evaluate(b,a,e,c,null)}catch(f){if(!Qa||\"NS_"); + atom.Append("ERROR_ILLEGAL_VALUE\"!=f.name)throw new v(32,\"Unable to locate an element with th"); + atom.Append("e xpath expression \"+b+\" because of the following error:\\n\"+f);}};\nV.J=functi"); + atom.Append("on(a,b){if(!a||1!=a.nodeType)throw new v(32,'The result of the xpath expression \""); + atom.Append("'+b+'\" is: '+a+\". It should be an element.\");};V.m=function(a,b){var c=function"); + atom.Append("(){var c=V.k(b,a,9);return c?(c=c.singleNodeValue,Pa?c:c||null):b.selectSingleNode"); + atom.Append("?(c=C(b),c.setProperty&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSin"); + atom.Append("gleNode(a)):null}();null===c||V.J(c,a);return c};\nV.n=function(a,b){var c=functio"); + atom.Append("n(){var c=V.k(b,a,7);if(c){var e=c.snapshotLength;Pa&&!p(e)&&V.J(null,a);for(var f"); + atom.Append("=[],g=0;g=this.left&&a.right<=this.right&&a.top"); + atom.Append(">=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&"); + atom.Append("a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){da(a)?(this.top-=a.top,this.righ"); + atom.Append("t+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,thi"); + atom.Append("s.bottom+=c,this.left-=d);return this};h.ceil=function(){this.top=Math.ceil(this.t"); + atom.Append("op);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left="); + atom.Append("Math.ceil(this.left);return this};h.floor=function(){this.top=Math.floor(this.top)"); + atom.Append(";this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=M"); + atom.Append("ath.floor(this.left);return this};\nh.round=function(){this.top=Math.round(this.to"); + atom.Append("p);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left"); + atom.Append("=Math.round(this.left);return this};h.translate=function(a,b){a instanceof A?(this"); + atom.Append(".left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.righ"); + atom.Append("t+=a,s(b)&&(this.top+=b,this.bottom+=b));return this};h.scale=function(a,b){var c="); + atom.Append("s(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};functi"); + atom.Append("on W(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}h=W.prototype;h.cl"); + atom.Append("one=function(){return new W(this.left,this.top,this.width,this.height)};h.toString"); + atom.Append("=function(){return\"(\"+this.left+\", \"+this.top+\" - \"+this.width+\"w x \"+this"); + atom.Append(".height+\"h)\"};h.contains=function(a){return a instanceof W?this.left<=a.left&&th"); + atom.Append("is.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a"); + atom.Append(".height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+th"); + atom.Append("is.height};\nh.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(t"); + atom.Append("his.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);retur"); + atom.Append("n this};h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(thi"); + atom.Append("s.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);retur"); + atom.Append("n this};h.round=function(){this.left=Math.round(this.left);this.top=Math.round(thi"); + atom.Append("s.top);this.width=Math.round(this.width);this.height=Math.round(this.height);retur"); + atom.Append("n this};\nh.translate=function(a,b){a instanceof A?(this.left+=a.x,this.top+=a.y):"); + atom.Append("(this.left+=a,s(b)&&(this.top+=b));return this};h.scale=function(a,b){var c=s(b)?b"); + atom.Append(":a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function X(a"); + atom.Append(",b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var id=/[;]+(?=(?:("); + atom.Append("?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()"); + atom.Append("]*$)/;function jd(a){var b=[];w(a.split(id),function(a){var d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if(!c)b:{"); + atom.Append("if(g=\nd.match(Pb))if(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0"); + atom.Append("<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();e"); + atom.Append("=Kb[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e=e.repl"); + atom.Append("ace(Mb,\"#$1$1$2$2$3$3\")),!Nb.test(e))){c=null;break b}c=[parseInt(e.substr(1,2),"); + atom.Append("16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+c.join("); + atom.Append("\", \")+\")\":d}return d}\nfunction md(a,b){var c=a.currentStyle||a.style,d=c[b];!"); + atom.Append("p(d)&&ca(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d?p(d)?"); + atom.Append("d:null:(c=ld(a))?md(c,b):null}\nfunction nd(a,b){function c(a){if(\"none\"==Y(a,\""); + atom.Append("display\"))return!1;a=ld(a);return!a||c(a)}function d(a){var b=od(a);return 0=m.left+m.width;m=e.top>=m.top+m.heigh"); + atom.Append("t;if(r&&\"hidden\"==n.x||m&&\"hidden\"==n.y)return Z;if(r&&\"visible\"!=n.x||m&&\""); + atom.Append("visible\"!=n.y){if(x&&(n=d(a),e.left>=g.scrollWidth-n.x||e.right>=g.scrollHeight-n"); + atom.Append(".y))return Z;e=pd(a);return e==Z?Z:\"scroll\"}}}return\"none\"}var td=/matrix\\((["); + atom.Append("\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)"); + atom.Append("?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction od(a){function b(a){var c=C(a),d=(c?c.pare"); + atom.Append("ntWindow||c.defaultView:window).getComputedStyle(a,null).MozTransform.match(td);if"); + atom.Append("(d){var e=parseFloat(d[1]),n=parseFloat(d[2]),m=parseFloat(d[3]),r=parseFloat(d[4]"); + atom.Append("),c=parseFloat(d[5]),d=parseFloat(d[6]),R=f.left+f.width,Da=f.top+f.height,Ea=f.le"); + atom.Append("ft*e,e=R*e,Ga=f.left*n,n=R*n,Fa=f.top*m,m=Da*m,Ha=f.top*r,R=Da*r,Da=Ea+Fa+c,r=Ga+H"); + atom.Append("a+d,Fa=e+Fa+c,Ha=n+Ha+d,Ea=Ea+m+c,Ga=Ga+R+d,c=e+m+c,d=n+R+d;f.left=Math.min(Da,Fa,"); + atom.Append("Ea,c);f.top=Math.min(r,Ha,Ga,d);c=Math.max(Da,\nFa,Ea,c);d=Math.max(r,Ha,Ga,d);f.w"); + atom.Append("idth=c-f.left;f.height=d-f.top}(a=ld(a))&&b(a)}var c=qd(a);if(c)return c.rect;if(X"); + atom.Append("(a,\"HTML\"))return c=C(a),a=$a((c?c.parentWindow||c.defaultView:window)||window),"); + atom.Append("new W(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catch(e){return "); + atom.Append("new W(0,0,0,0)}var f=new W(d.left,d.top,d.right-d.left,d.bottom-d.top);z&&a.ownerD"); + atom.Append("ocument.body&&(c=C(a),f.left-=c.documentElement.clientLeft+c.body.clientLeft,f.top"); + atom.Append("-=c.documentElement.clientTop+c.body.clientTop);Pa&&(0==f.width&&\n0b?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return Hd[a]=e+b.toStri"); + atom.Append("ng(16)}),'\"')};Ra||Pa||Qa&&Bb(3.5)||z&&Bb(8);function Na(a){switch(aa(a)){case \""); + atom.Append("string\":case \"number\":case \"boolean\":return a;case \"function\":return a.toSt"); + atom.Append("ring();case \"array\":return ua(a,Na);case \"object\":if(\"nodeType\"in a&&(1==a.n"); + atom.Append("odeType||9==a.nodeType)){var b={};b.ELEMENT=Jd(a);return b}if(\"document\"in a)ret"); + atom.Append("urn b={},b.WINDOW=Jd(a),b;if(ba(a))return ua(a,Na);a=La(a,function(a,b){return s(b"); + atom.Append(")||q(b)});return Ma(a);default:return null}}function Kd(a){a=a||document;var b=a.$"); + atom.Append("wdc_;b||(b=a.$wdc_={},b.O=ia());b.O||(b.O=ia());return b}\nfunction Jd(a){var b=Kd"); + atom.Append("(a.ownerDocument),c=Oa(b,function(b){return b==a});c||(c=\":wdc:\"+b.O++,b[c]=a);r"); + atom.Append("eturn c}function Ld(a,b){a=decodeURIComponent(a);var c=b||document,d=Kd(c);if(!(a "); + atom.Append("in d))throw new v(10,\"Element does not exist in cache\");var e=d[a];if(\"setInter"); + atom.Append("val\"in e){if(e.closed)throw delete d[a],new v(23,\"Window has been closed.\");ret"); + atom.Append("urn e}for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];"); + atom.Append("throw new v(10,\"Element is no longer attached to the DOM\");};function Md(a,b,c,d"); + atom.Append("){var e={};e[a]=b;var f;try{var g=d?Ld(d.WINDOW):window,l;a:{var t=c?Ld(c.ELEMENT,"); + atom.Append("g.document):g.document,x;b:{for(var n in e)if(e.hasOwnProperty(n)){x=n;break b}x=n"); + atom.Append("ull}if(x){var m=Dd[x];if(m&&ca(m.m)){l=m.m(e[x],t||ja.document);break a}}throw Err"); + atom.Append("or(\"Unsupported locator strategy: \"+x);}f={status:0,value:Na(l)}}catch(r){f={sta"); + atom.Append("tus:\"code\"in r?r.code:13,value:{message:r.message}}}a=[];Fd(new Ed,f,a);return a"); + atom.Append(".join(\"\")}var Nd=[\"_\"],Od=k;\nNd[0]in Od||!Od.execScript||Od.execScript(\"var "); + atom.Append("\"+Nd[0]);for(var Pd;Nd.length&&(Pd=Nd.shift());)!Nd.length&&p(Md)?Od[Pd]=Md:Od=Od"); + atom.Append("[Pd]?Od[Pd]:Od[Pd]={};; return this._.apply(null,arguments);}.apply({navigator:typ"); + atom.Append("eof window!=undefined?window.navigator:null,document:typeof window!=undefined?wind"); + atom.Append("ow.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string FindElements + { + get + { + const string atomName = "FindElements"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,k=this;function p(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function b"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction q(a){return\"string\"==typeof a}function s(a){return\"number\"==typeof a}fu"); + atom.Append("nction ca(a){return\"function\"==aa(a)}function da(a){var b=typeof a;return\"objec"); + atom.Append("t\"==b&&null!=a||\"function\"==b}function ea(a,b,c){return a.call.apply(a.bind,arg"); + atom.Append("uments)}\nfunction fa(a,b,c){if(!a)throw Error();if(2d||c.indexOf(\"E"); + atom.Append("rror\",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this."); + atom.Append("stack=c.stack||\"\"}u(v,Error);\nvar la=\"unknown error\",ka={15:\"element not sel"); + atom.Append("ectable\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"ime "); + atom.Append("not available\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",12"); + atom.Append(":\"invalid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\"in"); + atom.Append("valid selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move t"); + atom.Append("arget out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame"); + atom.Append("\",23:\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"sta"); + atom.Append("le element reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\","); + atom.Append("26:\"unexpected alert open\"};ka[13]=la;ka[9]=\"unknown command\";v.prototype.toSt"); + atom.Append("ring=function(){return this.name+\": \"+this.message};var ma;function na(a){var b="); + atom.Append("a.length-1;return 0<=b&&a.indexOf(\" \",b)==b}function oa(a){return a.replace(/^["); + atom.Append("\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")}\nfunction pa(a,b){for(var c=0,d=oa(String(a)).spl"); + atom.Append("it(\".\"),e=oa(String(b)).split(\".\"),f=Math.max(d.length,e.length),g=0;0==c&&gb?1:0}\nfunc"); + atom.Append("tion ra(a){return String(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCa"); + atom.Append("se()})};var sa=Array.prototype;function w(a,b){for(var c=a.length,d=q(a)?a.split("); + atom.Append("\"\"):a,e=0;ec?null:q(a)?a.charAt"); + atom.Append("(c):a[c]}\nfunction za(a,b){var c;a:if(q(a))c=q(b)&&1==b.length?a.indexOf(b,0):-1;"); + atom.Append("else{for(c=0;c=arguments.length?sa.slice.call(a,b):sa.slice.call(a,b,c)};var y;a:{var Ia=k.n"); + atom.Append("avigator;if(Ia){var Ja=Ia.userAgent;if(Ja){y=Ja;break a}}y=\"\"}function Ka(a){ret"); + atom.Append("urn-1!=y.indexOf(a)};function La(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a"); + atom.Append(")&&(c[d]=a[d]);return c}function Ma(a){var b=Na,c={},d;for(d in a)c[d]=b.call(void"); + atom.Append(" 0,a[d],d,a);return c}function Oa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))r"); + atom.Append("eturn c};var Pa=Ka(\"Opera\")||Ka(\"OPR\"),z=Ka(\"Trident\")||Ka(\"MSIE\"),Qa=Ka("); + atom.Append("\"Gecko\")&&-1==y.toLowerCase().indexOf(\"webkit\")&&!(Ka(\"Trident\")||Ka(\"MSIE"); + atom.Append("\")),Ra=-1!=y.toLowerCase().indexOf(\"webkit\");function Sa(){var a=k.document;ret"); + atom.Append("urn a?a.documentMode:void 0}var Ta=function(){var a=\"\",b;if(Pa&&k.opera)return a"); + atom.Append("=k.opera.version,ca(a)?a():a;Qa?b=/rv\\:([^\\);]+)(\\)|;)/:z?b=/\\b(?:MSIE|rv)[: ]"); + atom.Append("([^\\);]+)(\\)|;)/:Ra&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec(y))?a[1]:\"\");return"); + atom.Append(" z&&(b=Sa(),b>parseFloat(a))?String(b):a}(),Ua={};\nfunction Va(a){return Ua[a]||("); + atom.Append("Ua[a]=0<=pa(Ta,a))}var Wa=k.document,Xa=Wa&&z?Sa()||(\"CSS1Compat\"==Wa.compatMode"); + atom.Append("?parseInt(Ta,10):5):void 0;!Qa&&!z||z&&z&&9<=Xa||Qa&&Va(\"1.9.1\");z&&Va(\"9\");fu"); + atom.Append("nction A(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0}h=A.prototype;h.clone=function(){ret"); + atom.Append("urn new A(this.x,this.y)};h.toString=function(){return\"(\"+this.x+\", \"+this.y+"); + atom.Append("\")\"};h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return "); + atom.Append("this};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);retur"); + atom.Append("n this};h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);ret"); + atom.Append("urn this};\nh.translate=function(a,b){a instanceof A?(this.x+=a.x,this.y+=a.y):(th"); + atom.Append("is.x+=a,s(b)&&(this.y+=b));return this};h.scale=function(a,b){var c=s(b)?b:a;this."); + atom.Append("x*=a;this.y*=c;return this};function Ya(a,b){this.width=a;this.height=b}h=Ya.proto"); + atom.Append("type;h.clone=function(){return new Ya(this.width,this.height)};h.toString=function"); + atom.Append("(){return\"(\"+this.width+\" x \"+this.height+\")\"};h.ceil=function(){this.width="); + atom.Append("Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=func"); + atom.Append("tion(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);retur"); + atom.Append("n this};h.round=function(){this.width=Math.round(this.width);this.height=Math.roun"); + atom.Append("d(this.height);return this};\nh.scale=function(a,b){var c=s(b)?b:a;this.width*=a;t"); + atom.Append("his.height*=c;return this};function B(a){return a?new Za(C(a)):ma||(ma=new Za)}fun"); + atom.Append("ction $a(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;r"); + atom.Append("eturn new Ya(a.clientWidth,a.clientHeight)}function ab(a,b,c){function d(c){c&&b.a"); + atom.Append("ppendChild(q(c)?a.createTextNode(c):c)}for(var e=1;e]=|\\\\s+|.\",\"g\"),Xb=/^\\s/;function G(a,b){return a.Q[a.D+(b|"); + atom.Append("|0)]}Ub.prototype.next=function(){return this.Q[this.D++]};Ub.prototype.back=funct"); + atom.Append("ion(){this.D--};Ub.prototype.empty=function(){return this.Q.length<=this.D};functi"); + atom.Append("on H(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.inne"); + atom.Append("rText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(F&&\"title\"==a.no"); + atom.Append("deName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a"); + atom.Append(".firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),F&&\"ti"); + atom.Append("tle\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c"); + atom.Append("&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction I(a,b,c){"); + atom.Append("if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Rb&&\"class"); + atom.Append("\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c"); + atom.Append("}function Yb(a,b,c,d,e){return(F?Zb:$b).call(null,a,b,q(c)?c:null,q(d)?d:null,e||n"); + atom.Append("ew J)}\nfunction Zb(a,b,c,d,e){if(a instanceof ac||8==a.i||c&&null===a.i){var f=b."); + atom.Append("all;if(!f)return e;a=bc(a);if(\"*\"!=a&&(f=b.getElementsByTagName(a),!f))return e;"); + atom.Append("if(c){for(var g=[],l=0;b=f[l++];)I(b,c,d)&&g.push(b);f=g}for(l=0;b=f[l++];)\"*\"=="); + atom.Append("a&&\"!\"==b.tagName||e.add(b);return e}cc(a,b,c,d,e);return e}\nfunction $b(a,b,c,"); + atom.Append("d,e){b.getElementsByName&&d&&\"name\"==c&&!z?(b=b.getElementsByName(d),w(b,functio"); + atom.Append("n(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getE"); + atom.Append("lementsByClassName(d),w(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a "); + atom.Append("instanceof K?cc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.get"); + atom.Append("Name()),w(b,function(a){I(a,c,d)&&e.add(a)}));return e}\nfunction dc(a,b,c,d,e){va"); + atom.Append("r f;if((a instanceof ac||8==a.i||c&&null===a.i)&&(f=b.childNodes)){var g=bc(a);if("); + atom.Append("\"*\"!=g&&(f=ta(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))r"); + atom.Append("eturn e;c&&(f=ta(f,function(a){return I(a,c,d)}));w(f,function(a){\"*\"==g&&(\"!\""); + atom.Append("==a.tagName||\"*\"==g&&1!=a.nodeType)||e.add(a)});return e}return ec(a,b,c,d,e)}fu"); + atom.Append("nction ec(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&"); + atom.Append("e.add(b);return e}\nfunction cc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I("); + atom.Append("b,c,d)&&a.matches(b)&&e.add(b),cc(a,b,c,d,e)}function bc(a){if(a instanceof K){if("); + atom.Append("8==a.i)return\"!\";if(null===a.i)return\"*\"}return a.getName()};function J(){this"); + atom.Append(".j=this.f=null;this.w=0}function fc(a){this.s=a;this.next=this.r=null}function gc("); + atom.Append("a,b){if(!a.f)return b;if(!b.f)return a;for(var c=a.f,d=b.f,e=null,f=null,g=0;c&&d;"); + atom.Append("){var f=c.s,l=d.s;f==l||f instanceof Sb&&l instanceof Sb&&f.c==l.c?(f=c,c=c.next,d"); + atom.Append("=d.next):0\",4,2,function(a,b,c){return qc(function(a,b){return a>b},a,b,c)});P(\"<="); + atom.Append("\",4,2,function(a,b,c){return qc(function(a,b){return a<=b},a,b,c)});P(\">=\",4,2,"); + atom.Append("function(a,b,c){return qc(function(a,b){return a>=b},a,b,c)});var pc=P(\"=\",3,2,f"); + atom.Append("unction(a,b,c){return qc(function(a,b){return a==b},a,b,c,!0)});P(\"!=\",3,2,funct"); + atom.Append("ion(a,b,c){return qc(function(a,b){return a!=b},a,b,c,!0)});P(\"and\",2,2,function"); + atom.Append("(a,b,c){return nc(a,c)&&nc(b,c)});P(\"or\",1,2,function(a,b,c){return nc(a,c)||nc("); + atom.Append("b,c)});function tc(a,b){if(b.m()&&4!=a.e)throw Error(\"Primary expression must eva"); + atom.Append("luate to nodeset if filter has predicate(s).\");L.call(this,a.e);this.aa=a;this.b="); + atom.Append("b;this.n=a.d();this.g=a.g}u(tc,L);tc.prototype.evaluate=function(a){a=this.aa.eval"); + atom.Append("uate(a);return uc(this.b,a)};tc.prototype.toString=function(){var a;a=\"Filter:\"+"); + atom.Append("M(this.aa);return a+=M(this.b)};function vc(a,b){if(b.lengtha.M)throw Error(\"Function \"+a.h+\" expects at most \"+a.M+\" "); + atom.Append("arguments, \"+b.length+\" given\");a.ka&&w(b,function(b,d){if(4!=b.e)throw Error("); + atom.Append("\"Argument \"+d+\" to function \"+a.h+\" is not of type Nodeset: \"+b);});L.call(t"); + atom.Append("his,a.e);this.C=a;this.I=b;lc(this,a.n||wa(b,function(a){return a.d()}));mc(this,a"); + atom.Append(".ia&&!b.length||a.ha&&!!b.length||wa(b,function(a){return a.g}))}\nu(vc,L);vc.prot"); + atom.Append("otype.evaluate=function(a){return this.C.l.apply(null,Aa(a,this.I))};vc.prototype."); + atom.Append("toString=function(){var a=\"Function: \"+this.C;if(this.I.length)var b=va(this.I,f"); + atom.Append("unction(a,b){return a+M(b)},\"Arguments:\"),a=a+M(b);return a};function wc(a,b,c,d"); + atom.Append(",e,f,g,l,t){this.h=a;this.e=b;this.n=c;this.ia=d;this.ha=e;this.l=f;this.Z=g;this."); + atom.Append("M=p(l)?l:g;this.ka=!!t}wc.prototype.toString=function(){return this.h};var xc={};"); + atom.Append("\nfunction Q(a,b,c,d,e,f,g,l){if(xc.hasOwnProperty(a))throw Error(\"Function alrea"); + atom.Append("dy created: \"+a+\".\");xc[a]=new wc(a,b,c,d,!1,e,f,g,l)}Q(\"boolean\",2,!1,!1,fun"); + atom.Append("ction(a,b){return nc(b,a)},1);Q(\"ceiling\",1,!1,!1,function(a,b){return Math.ceil"); + atom.Append("(N(b,a))},1);Q(\"concat\",3,!1,!1,function(a,b){return va(Ca(arguments,1),function"); + atom.Append("(b,d){return b+O(d,a)},\"\")},2,null);Q(\"contains\",2,!1,!1,function(a,b,c){b=O(b"); + atom.Append(",a);a=O(c,a);return-1!=b.indexOf(a)},2);Q(\"count\",1,!1,!1,function(a,b){return b"); + atom.Append(".evaluate(a).m()},1,1,!0);\nQ(\"false\",2,!1,!1,function(){return!1},0);Q(\"floor"); + atom.Append("\",1,!1,!1,function(a,b){return Math.floor(N(b,a))},1);Q(\"id\",4,!1,!1,function(a"); + atom.Append(",b){function c(a){if(F){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b."); + atom.Append("length)return ya(b,function(b){return a==b.id})}return null}return e.getElementByI"); + atom.Append("d(a)}var d=a.c,e=9==d.nodeType?d:d.ownerDocument,d=O(b,a).split(/\\s+/),f=[];w(d,f"); + atom.Append("unction(a){(a=c(a))&&!za(f,a)&&f.push(a)});f.sort(eb);var g=new J;w(f,function(a){"); + atom.Append("g.add(a)});return g},1);\nQ(\"lang\",2,!1,!1,function(){return!1},1);Q(\"last\",1,"); + atom.Append("!0,!1,function(a){if(1!=arguments.length)throw Error(\"Function last expects ()\")"); + atom.Append(";return a.j},0);Q(\"local-name\",3,!1,!0,function(a,b){var c=b?hc(b.evaluate(a)):a"); + atom.Append(".c;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);Q(\"name\",3,!1,!0,function(a,b"); + atom.Append("){var c=b?hc(b.evaluate(a)):a.c;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);Q("); + atom.Append("\"namespace-uri\",3,!0,!1,function(){return\"\"},0,1,!0);\nQ(\"normalize-space\",3"); + atom.Append(",!1,!0,function(a,b){return(b?O(b,a):H(a.c)).replace(/[\\s\\xa0]+/g,\" \").replace"); + atom.Append("(/^\\s+|\\s+$/g,\"\")},0,1);Q(\"not\",2,!1,!1,function(a,b){return!nc(b,a)},1);Q("); + atom.Append("\"number\",1,!1,!0,function(a,b){return b?N(b,a):+H(a.c)},0,1);Q(\"position\",1,!0"); + atom.Append(",!1,function(a){return a.na},0);Q(\"round\",1,!1,!1,function(a,b){return Math.roun"); + atom.Append("d(N(b,a))},1);Q(\"starts-with\",2,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);return 0"); + atom.Append("==b.lastIndexOf(a,0)},2);Q(\"string\",3,!1,!0,function(a,b){return b?O(b,a):H(a.c)"); + atom.Append("},0,1);\nQ(\"string-length\",1,!1,!0,function(a,b){return(b?O(b,a):H(a.c)).length}"); + atom.Append(",0,1);Q(\"substring\",3,!1,!1,function(a,b,c,d){c=N(c,a);if(isNaN(c)||Infinity==c|"); + atom.Append("|-Infinity==c)return\"\";d=d?N(d,a):Infinity;if(isNaN(d)||-Infinity===d)return\"\""); + atom.Append(";c=Math.round(c)-1;var e=Math.max(c,0);a=O(b,a);if(Infinity==d)return a.substring("); + atom.Append("e);b=Math.round(d);return a.substring(e,c+b)},2,3);Q(\"substring-after\",3,!1,!1,f"); + atom.Append("unction(a,b,c){b=O(b,a);a=O(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.l"); + atom.Append("ength)},2);\nQ(\"substring-before\",3,!1,!1,function(a,b,c){b=O(b,a);a=O(c,a);a=b."); + atom.Append("indexOf(a);return-1==a?\"\":b.substring(0,a)},2);Q(\"sum\",1,!1,!1,function(a,b){f"); + atom.Append("or(var c=jc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,!0);"); + atom.Append("Q(\"translate\",3,!1,!1,function(a,b,c,d){b=O(b,a);c=O(c,a);var e=O(d,a);a=[];for("); + atom.Append("d=0;da.len"); + atom.Append("gth)throw Error(\"Unclosed literal string\");return new zc(a)}function Yc(a){var b"); + atom.Append("=a.a.next(),c=b.indexOf(\":\");if(-1==c)return new ac(b);var d=b.substring(0,c);a="); + atom.Append("a.la(d);if(!a)throw Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);r"); + atom.Append("eturn new ac(b,a)}\nfunction Zc(a){var b,c=[],d;if(Fc(G(a.a))){b=a.a.next();d=G(a."); + atom.Append("a);if(\"/\"==b&&(a.a.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])"); + atom.Append("[\\w]/.test(d)))return new Dc;d=new Dc;T(a,\"Missing next location step.\");b=$c(a"); + atom.Append(",b);c.push(b)}else{a:{b=G(a.a);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Va"); + atom.Append("riable reference not allowed in HTML XPath\");case \"(\":a.a.next();b=Tc(a);T(a,'u"); + atom.Append("nclosed \"(\"');Vc(a,\")\");break;case '\"':case \"'\":b=Xc(a);break;default:if(is"); + atom.Append("NaN(+b))if(!yc(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==G(a.a,\n1)){b=a.a.next();b=xc["); + atom.Append("b]||null;a.a.next();for(d=[];\")\"!=G(a.a);){T(a,\"Missing function argument list."); + atom.Append("\");d.push(Tc(a));if(\",\"!=G(a.a))break;a.a.next()}T(a,\"Unclosed function argume"); + atom.Append("nt list.\");Wc(a);b=new vc(b,d)}else{b=null;break a}else b=new Ac(+a.a.next())}\"["); + atom.Append("\"==G(a.a)&&(d=new Ic(ad(a)),b=new tc(b,d))}if(b)if(Fc(G(a.a)))d=b;else return b;e"); + atom.Append("lse b=$c(a,\"/\"),d=new Ec,c.push(b)}for(;Fc(G(a.a));)b=a.a.next(),T(a,\"Missing n"); + atom.Append("ext location step.\"),b=$c(a,b),c.push(b);return new Bc(d,c)}\nfunction $c(a,b){va"); + atom.Append("r c,d,e;if(\"/\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if"); + atom.Append("(\".\"==G(a.a))return d=new Jc(Pc,new K(\"node\")),a.a.next(),d;if(\"..\"==G(a.a))"); + atom.Append("return d=new Jc(Oc,new K(\"node\")),a.a.next(),d;var f;if(\"@\"==G(a.a))f=Cc,a.a.n"); + atom.Append("ext(),T(a,\"Missing attribute name\");else if(\"::\"==G(a.a,1)){if(!/(?![0-9])[\\w"); + atom.Append("]/.test(G(a.a).charAt(0)))throw Error(\"Bad token: \"+a.a.next());c=a.a.next();f=N"); + atom.Append("c[c]||null;if(!f)throw Error(\"No axis with name: \"+c);a.a.next();T(a,\"Missing n"); + atom.Append("ode name\")}else f=\nKc;c=G(a.a);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==G"); + atom.Append("(a.a,1)){if(!yc(c))throw Error(\"Invalid node type: \"+c);c=a.a.next();if(!yc(c))t"); + atom.Append("hrow Error(\"Invalid type name: \"+c);Vc(a,\"(\");T(a,\"Bad nodetype\");e=G(a.a).c"); + atom.Append("harAt(0);var g=null;if('\"'==e||\"'\"==e)g=Xc(a);T(a,\"Bad nodetype\");Wc(a);c=new"); + atom.Append(" K(c,g)}else c=Yc(a);else if(\"*\"==c)c=Yc(a);else throw Error(\"Bad token: \"+a.a"); + atom.Append(".next());e=new Ic(ad(a),f.t);return d||new Jc(f,c,e,\"//\"==b)}\nfunction ad(a){fo"); + atom.Append("r(var b=[];\"[\"==G(a.a);){a.a.next();T(a,\"Missing predicate expression.\");var c"); + atom.Append("=Tc(a);b.push(c);T(a,\"Unclosed predicate expression.\");Vc(a,\"]\")}return b}func"); + atom.Append("tion Uc(a){if(\"-\"==G(a.a))return a.a.next(),new Qc(Uc(a));var b=Zc(a);if(\"|\"!="); + atom.Append("G(a.a))a=b;else{for(b=[b];\"|\"==a.a.next();)T(a,\"Missing next union location pat"); + atom.Append("h.\"),b.push(Zc(a));a.a.back();a=new Rc(b)}return a};function bd(a){switch(a.nodeT"); + atom.Append("ype){case 1:return ha(cd,a);case 9:return bd(a.documentElement);case 2:return a.ow"); + atom.Append("nerElement?bd(a.ownerElement):dd;case 11:case 10:case 6:case 12:return dd;default:"); + atom.Append("return a.parentNode?bd(a.parentNode):dd}}function dd(){return null}function cd(a,b"); + atom.Append("){if(a.prefix==b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.g"); + atom.Append("etAttributeNode(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!"); + atom.Append("=a.parentNode.nodeType?cd(a.parentNode,b):null};function ed(a,b){if(!a.length)thro"); + atom.Append("w Error(\"Empty XPath expression.\");var c=Vb(a);if(c.empty())throw Error(\"Invali"); + atom.Append("d XPath expression.\");b?ca(b)||(b=ga(b.lookupNamespaceURI,b)):b=function(){return"); + atom.Append(" null};var d=Tc(new Sc(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());t"); + atom.Append("his.evaluate=function(a,b){var c=d.evaluate(new Qb(a));return new U(c,b)}}\nfuncti"); + atom.Append("on U(a,b){if(0==b)if(a instanceof J)b=4;else if(\"string\"==typeof a)b=2;else if("); + atom.Append("\"number\"==typeof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unex"); + atom.Append("pected evaluation result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof J))throw Error(\""); + atom.Append("value could not be converted to the specified type\");this.resultType=b;var c;swit"); + atom.Append("ch(b){case 2:this.stringValue=a instanceof J?ic(a):\"\"+a;break;case 1:this.number"); + atom.Append("Value=a instanceof J?+ic(a):+a;break;case 3:this.booleanValue=a instanceof J?0=c.length?null:c[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)t"); + atom.Append("hrow Error(\"snapshotItem called with wrong result type\");return a>=\nc.length||0"); + atom.Append(">a?null:c[a]}}U.ANY_TYPE=0;U.NUMBER_TYPE=1;U.STRING_TYPE=2;U.BOOLEAN_TYPE=3;U.UNOR"); + atom.Append("DERED_NODE_ITERATOR_TYPE=4;U.ORDERED_NODE_ITERATOR_TYPE=5;U.UNORDERED_NODE_SNAPSHO"); + atom.Append("T_TYPE=6;U.ORDERED_NODE_SNAPSHOT_TYPE=7;U.ANY_UNORDERED_NODE_TYPE=8;U.FIRST_ORDERE"); + atom.Append("D_NODE_TYPE=9;function fd(a){this.lookupNamespaceURI=bd(a)}\nfunction gd(a){a=a||k"); + atom.Append(";var b=a.document;b.evaluate||(a.XPathResult=U,b.evaluate=function(a,b,e,f){return"); + atom.Append("(new ed(a,e)).evaluate(b,f)},b.createExpression=function(a,b){return new ed(a,b)},"); + atom.Append("b.createNSResolver=function(a){return new fd(a)})};var V={};V.ga=function(){var a="); + atom.Append("{ra:\"http://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}();V.l=f"); + atom.Append("unction(a,b,c){var d=C(a);(z||ub)&&gd(d?d.parentWindow||d.defaultView:window);try{"); + atom.Append("var e=d.createNSResolver?d.createNSResolver(d.documentElement):V.ga;return z&&!Va("); + atom.Append("7)?d.evaluate.call(d,b,a,e,c,null):d.evaluate(b,a,e,c,null)}catch(f){if(!Qa||\"NS_"); + atom.Append("ERROR_ILLEGAL_VALUE\"!=f.name)throw new v(32,\"Unable to locate an element with th"); + atom.Append("e xpath expression \"+b+\" because of the following error:\\n\"+f);}};\nV.J=functi"); + atom.Append("on(a,b){if(!a||1!=a.nodeType)throw new v(32,'The result of the xpath expression \""); + atom.Append("'+b+'\" is: '+a+\". It should be an element.\");};V.q=function(a,b){var c=function"); + atom.Append("(){var c=V.l(b,a,9);return c?(c=c.singleNodeValue,Pa?c:c||null):b.selectSingleNode"); + atom.Append("?(c=C(b),c.setProperty&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSin"); + atom.Append("gleNode(a)):null}();null===c||V.J(c,a);return c};\nV.k=function(a,b){var c=functio"); + atom.Append("n(){var c=V.l(b,a,7);if(c){var e=c.snapshotLength;Pa&&!p(e)&&V.J(null,a);for(var f"); + atom.Append("=[],g=0;g=this.left&&a.right<=this.right&&a.top"); + atom.Append(">=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&"); + atom.Append("a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){da(a)?(this.top-=a.top,this.righ"); + atom.Append("t+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,thi"); + atom.Append("s.bottom+=c,this.left-=d);return this};h.ceil=function(){this.top=Math.ceil(this.t"); + atom.Append("op);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left="); + atom.Append("Math.ceil(this.left);return this};h.floor=function(){this.top=Math.floor(this.top)"); + atom.Append(";this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=M"); + atom.Append("ath.floor(this.left);return this};\nh.round=function(){this.top=Math.round(this.to"); + atom.Append("p);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left"); + atom.Append("=Math.round(this.left);return this};h.translate=function(a,b){a instanceof A?(this"); + atom.Append(".left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.righ"); + atom.Append("t+=a,s(b)&&(this.top+=b,this.bottom+=b));return this};h.scale=function(a,b){var c="); + atom.Append("s(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};functi"); + atom.Append("on W(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}h=W.prototype;h.cl"); + atom.Append("one=function(){return new W(this.left,this.top,this.width,this.height)};h.toString"); + atom.Append("=function(){return\"(\"+this.left+\", \"+this.top+\" - \"+this.width+\"w x \"+this"); + atom.Append(".height+\"h)\"};h.contains=function(a){return a instanceof W?this.left<=a.left&&th"); + atom.Append("is.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a"); + atom.Append(".height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+th"); + atom.Append("is.height};\nh.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(t"); + atom.Append("his.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);retur"); + atom.Append("n this};h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(thi"); + atom.Append("s.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);retur"); + atom.Append("n this};h.round=function(){this.left=Math.round(this.left);this.top=Math.round(thi"); + atom.Append("s.top);this.width=Math.round(this.width);this.height=Math.round(this.height);retur"); + atom.Append("n this};\nh.translate=function(a,b){a instanceof A?(this.left+=a.x,this.top+=a.y):"); + atom.Append("(this.left+=a,s(b)&&(this.top+=b));return this};h.scale=function(a,b){var c=s(b)?b"); + atom.Append(":a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function X(a"); + atom.Append(",b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var id=/[;]+(?=(?:("); + atom.Append("?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()"); + atom.Append("]*$)/;function jd(a){var b=[];w(a.split(id),function(a){var d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if(!c)b:{"); + atom.Append("if(g=\nd.match(Pb))if(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0"); + atom.Append("<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();e"); + atom.Append("=Kb[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e=e.repl"); + atom.Append("ace(Mb,\"#$1$1$2$2$3$3\")),!Nb.test(e))){c=null;break b}c=[parseInt(e.substr(1,2),"); + atom.Append("16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+c.join("); + atom.Append("\", \")+\")\":d}return d}\nfunction md(a,b){var c=a.currentStyle||a.style,d=c[b];!"); + atom.Append("p(d)&&ca(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d?p(d)?"); + atom.Append("d:null:(c=ld(a))?md(c,b):null}\nfunction nd(a,b){function c(a){if(\"none\"==Y(a,\""); + atom.Append("display\"))return!1;a=ld(a);return!a||c(a)}function d(a){var b=od(a);return 0=m.left+m.width;m=e.top>=m.top+m.heigh"); + atom.Append("t;if(r&&\"hidden\"==n.x||m&&\"hidden\"==n.y)return Z;if(r&&\"visible\"!=n.x||m&&\""); + atom.Append("visible\"!=n.y){if(x&&(n=d(a),e.left>=g.scrollWidth-n.x||e.right>=g.scrollHeight-n"); + atom.Append(".y))return Z;e=pd(a);return e==Z?Z:\"scroll\"}}}return\"none\"}var td=/matrix\\((["); + atom.Append("\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)"); + atom.Append("?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction od(a){function b(a){var c=C(a),d=(c?c.pare"); + atom.Append("ntWindow||c.defaultView:window).getComputedStyle(a,null).MozTransform.match(td);if"); + atom.Append("(d){var e=parseFloat(d[1]),n=parseFloat(d[2]),m=parseFloat(d[3]),r=parseFloat(d[4]"); + atom.Append("),c=parseFloat(d[5]),d=parseFloat(d[6]),R=f.left+f.width,Da=f.top+f.height,Ea=f.le"); + atom.Append("ft*e,e=R*e,Ga=f.left*n,n=R*n,Fa=f.top*m,m=Da*m,Ha=f.top*r,R=Da*r,Da=Ea+Fa+c,r=Ga+H"); + atom.Append("a+d,Fa=e+Fa+c,Ha=n+Ha+d,Ea=Ea+m+c,Ga=Ga+R+d,c=e+m+c,d=n+R+d;f.left=Math.min(Da,Fa,"); + atom.Append("Ea,c);f.top=Math.min(r,Ha,Ga,d);c=Math.max(Da,\nFa,Ea,c);d=Math.max(r,Ha,Ga,d);f.w"); + atom.Append("idth=c-f.left;f.height=d-f.top}(a=ld(a))&&b(a)}var c=qd(a);if(c)return c.rect;if(X"); + atom.Append("(a,\"HTML\"))return c=C(a),a=$a((c?c.parentWindow||c.defaultView:window)||window),"); + atom.Append("new W(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catch(e){return "); + atom.Append("new W(0,0,0,0)}var f=new W(d.left,d.top,d.right-d.left,d.bottom-d.top);z&&a.ownerD"); + atom.Append("ocument.body&&(c=C(a),f.left-=c.documentElement.clientLeft+c.body.clientLeft,f.top"); + atom.Append("-=c.documentElement.clientTop+c.body.clientTop);Pa&&(0==f.width&&\n0b?e+=\"000\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return Hd[a]=e+b.toStri"); + atom.Append("ng(16)}),'\"')};Ra||Pa||Qa&&Bb(3.5)||z&&Bb(8);function Na(a){switch(aa(a)){case \""); + atom.Append("string\":case \"number\":case \"boolean\":return a;case \"function\":return a.toSt"); + atom.Append("ring();case \"array\":return ua(a,Na);case \"object\":if(\"nodeType\"in a&&(1==a.n"); + atom.Append("odeType||9==a.nodeType)){var b={};b.ELEMENT=Jd(a);return b}if(\"document\"in a)ret"); + atom.Append("urn b={},b.WINDOW=Jd(a),b;if(ba(a))return ua(a,Na);a=La(a,function(a,b){return s(b"); + atom.Append(")||q(b)});return Ma(a);default:return null}}function Kd(a){a=a||document;var b=a.$"); + atom.Append("wdc_;b||(b=a.$wdc_={},b.O=ia());b.O||(b.O=ia());return b}\nfunction Jd(a){var b=Kd"); + atom.Append("(a.ownerDocument),c=Oa(b,function(b){return b==a});c||(c=\":wdc:\"+b.O++,b[c]=a);r"); + atom.Append("eturn c}function Ld(a,b){a=decodeURIComponent(a);var c=b||document,d=Kd(c);if(!(a "); + atom.Append("in d))throw new v(10,\"Element does not exist in cache\");var e=d[a];if(\"setInter"); + atom.Append("val\"in e){if(e.closed)throw delete d[a],new v(23,\"Window has been closed.\");ret"); + atom.Append("urn e}for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];"); + atom.Append("throw new v(10,\"Element is no longer attached to the DOM\");};function Md(a,b,c,d"); + atom.Append("){var e={};e[a]=b;var f;try{var g=d?Ld(d.WINDOW):window,l;a:{var t=c?Ld(c.ELEMENT,"); + atom.Append("g.document):g.document,x;b:{for(var n in e)if(e.hasOwnProperty(n)){x=n;break b}x=n"); + atom.Append("ull}if(x){var m=Dd[x];if(m&&ca(m.k)){l=m.k(e[x],t||ja.document);break a}}throw Err"); + atom.Append("or(\"Unsupported locator strategy: \"+x);}f={status:0,value:Na(l)}}catch(r){f={sta"); + atom.Append("tus:\"code\"in r?r.code:13,value:{message:r.message}}}a=[];Fd(new Ed,f,a);return a"); + atom.Append(".join(\"\")}var Nd=[\"_\"],Od=k;\nNd[0]in Od||!Od.execScript||Od.execScript(\"var "); + atom.Append("\"+Nd[0]);for(var Pd;Nd.length&&(Pd=Nd.shift());)!Nd.length&&p(Md)?Od[Pd]=Md:Od=Od"); + atom.Append("[Pd]?Od[Pd]:Od[Pd]={};; return this._.apply(null,arguments);}.apply({navigator:typ"); + atom.Append("eof window!=undefined?window.navigator:null,document:typeof window!=undefined?wind"); + atom.Append("ow.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string MouseClick + { + get + { + const string atomName = "MouseClick"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function aa(a){return void 0!==a}\nfunct"); + atom.Append("ion ba(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"arra"); + atom.Append("y\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"["); + atom.Append("object Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof "); + atom.Append("a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumer"); + atom.Append("able&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\""); + atom.Append("==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!"); + atom.Append("a.propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=ba(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction m(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==ba(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ka(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ua(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var va=Array.prototype;function p(a,b,c){for(va"); + atom.Append("r d=a.length,f=m(a)?a.split(\"\"):a,e=0;ec?null:m(a)?a.charAt(c):a[c]}\nfunction Ca(a,b){var c;a:if(m(a))c=m(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?va.slice.call(a,b):va.slice.call(a,b,"); + atom.Append("c)};var Ga={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ha=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ia=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ja=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ka=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,La=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function r(a,b){this.code=a;this.state=Ma[a]||Na;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}n("); + atom.Append("r,Error);\nvar Na=\"unknown error\",Ma={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};Ma[13]=Na;Ma[9]=\"unknown command\";r.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var Oa;a:{var Pa=l.navigator;if(Pa){var Qa=Pa.user"); + atom.Append("Agent;if(Qa){Oa=Qa;break a}}Oa=\"\"}function Ra(a){return-1!=Oa.indexOf(a)};functi"); + atom.Append("on Sa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}fun"); + atom.Append("ction Ta(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function"); + atom.Append(" Ua(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Va(a,b){for(var c i"); + atom.Append("n a)if(b.call(void 0,a[c],c,a))return c};var Wa,Xa,s=Ra(\"Opera\")||Ra(\"OPR\"),t="); + atom.Append("Ra(\"Trident\")||Ra(\"MSIE\"),v=Ra(\"Gecko\")&&-1==Oa.toLowerCase().indexOf(\"webk"); + atom.Append("it\")&&!(Ra(\"Trident\")||Ra(\"MSIE\")),x=-1!=Oa.toLowerCase().indexOf(\"webkit\")"); + atom.Append(",Ya=x&&Ra(\"Mobile\"),Za,$a=l.navigator||null;Za=$a&&$a.platform||\"\";Wa=-1!=Za.i"); + atom.Append("ndexOf(\"Mac\");Xa=-1!=Za.indexOf(\"Win\");var ab=-1!=Za.indexOf(\"Linux\");functi"); + atom.Append("on bb(){var a=l.document;return a?a.documentMode:void 0}\nvar cb=function(){var a="); + atom.Append("\"\",b;if(s&&l.opera)return a=l.opera.version,ea(a)?a():a;v?b=/rv\\:([^\\);]+)(\\)"); + atom.Append("|;)/:t?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:x&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b"); + atom.Append(".exec(Oa))?a[1]:\"\");return t&&(b=bb(),b>parseFloat(a))?String(b):a}(),db={};func"); + atom.Append("tion eb(a){return db[a]||(db[a]=0<=sa(cb,a))}function fb(a){return t&&gb>=a}var hb"); + atom.Append("=l.document,gb=hb&&t?bb()||(\"CSS1Compat\"==hb.compatMode?parseInt(cb,10):5):void "); + atom.Append("0;!v&&!t||t&&fb(9)||v&&eb(\"1.9.1\");t&&eb(\"9\");function ib(a,b,c){return Math.m"); + atom.Append("in(Math.max(a,b),c)};function jb(a,b){this.x=aa(a)?a:0;this.y=aa(b)?b:0}h=jb.proto"); + atom.Append("type;h.clone=function(){return new jb(this.x,this.y)};h.toString=function(){return"); + atom.Append("\"(\"+this.x+\", \"+this.y+\")\"};h.ceil=function(){this.x=Math.ceil(this.x);this."); + atom.Append("y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this"); + atom.Append(".y=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);th"); + atom.Append("is.y=Math.round(this.y);return this};\nh.translate=function(a,b){a instanceof jb?("); + atom.Append("this.x+=a.x,this.y+=a.y):(this.x+=a,da(b)&&(this.y+=b));return this};h.scale=funct"); + atom.Append("ion(a,b){var c=da(b)?b:a;this.x*=a;this.y*=c;return this};function kb(a,b){this.wi"); + atom.Append("dth=a;this.height=b}h=kb.prototype;h.clone=function(){return new kb(this.width,thi"); + atom.Append("s.height)};h.toString=function(){return\"(\"+this.width+\" x \"+this.height+\")\"}"); + atom.Append(";h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.hei"); + atom.Append("ght);return this};h.floor=function(){this.width=Math.floor(this.width);this.height"); + atom.Append("=Math.floor(this.height);return this};h.round=function(){this.width=Math.round(thi"); + atom.Append("s.width);this.height=Math.round(this.height);return this};\nh.scale=function(a,b){"); + atom.Append("var c=da(b)?b:a;this.width*=a;this.height*=c;return this};function lb(a){return a?"); + atom.Append("new mb(y(a)):pa||(pa=new mb)}function nb(a){a=a.document;a=\"CSS1Compat\"==a.compa"); + atom.Append("tMode?a.documentElement:a.body;return new kb(a.clientWidth,a.clientHeight)}functio"); + atom.Append("n ob(a){return x||\"CSS1Compat\"!=a.compatMode?a.body||a.documentElement:a.documen"); + atom.Append("tElement}function z(a){return a?a.parentWindow||a.defaultView:window}\nfunction pb"); + atom.Append("(a,b,c){function d(c){c&&b.appendChild(m(c)?a.createTextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),bc=/^\\s/;function A(a,b){return a.ta[a.ca+(b||0)]}Z"); + atom.Append("b.prototype.next=function(){return this.ta[this.ca++]};Zb.prototype.back=function("); + atom.Append("){this.ca--};Zb.prototype.empty=function(){return this.ta.length<=this.ca};functio"); + atom.Append("n cc(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.inne"); + atom.Append("rText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Vb&&\"title\"==a.n"); + atom.Append("odeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:"); + atom.Append("a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Vb&&\""); + atom.Append("title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for("); + atom.Append(";c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction dc(a,b,"); + atom.Append("c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Wb&&\"cl"); + atom.Append("ass\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)"); + atom.Append("==c}function ec(a,b,c,d,f){return(Vb?fc:gc).call(null,a,b,m(c)?c:null,m(d)?d:null,"); + atom.Append("f||new C)}\nfunction fc(a,b,c,d,f){if(a instanceof hc||8==a.g||c&&null===a.g){var "); + atom.Append("e=b.all;if(!e)return f;a=ic(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a),!e))retur"); + atom.Append("n f;if(c){for(var g=[],k=0;b=e[k++];)dc(b,c,d)&&g.push(b);e=g}for(k=0;b=e[k++];)\""); + atom.Append("*\"==a&&\"!\"==b.tagName||f.add(b);return f}jc(a,b,c,d,f);return f}\nfunction gc(a"); + atom.Append(",b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!t?(b=b.getElementsByName(d),p(b,fu"); + atom.Append("nction(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b"); + atom.Append(".getElementsByClassName(d),p(b,function(b){b.className==d&&a.matches(b)&&f.add(b)}"); + atom.Append(")):a instanceof kc?jc(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElementsByTagName"); + atom.Append("(a.getName()),p(b,function(a){dc(a,c,d)&&f.add(a)}));return f}\nfunction lc(a,b,c,"); + atom.Append("d,f){var e;if((a instanceof hc||8==a.g||c&&null===a.g)&&(e=b.childNodes)){var g=ic"); + atom.Append("(a);if(\"*\"!=g&&(e=wa(e,function(a){return a.tagName&&a.tagName.toLowerCase()==g}"); + atom.Append("),!e))return f;c&&(e=wa(e,function(a){return dc(a,c,d)}));p(e,function(a){\"*\"==g"); + atom.Append("&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}return mc(a,b,c"); + atom.Append(",d,f)}function mc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)dc(b,c,d)&&a.mat"); + atom.Append("ches(b)&&f.add(b);return f}\nfunction jc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextS"); + atom.Append("ibling)dc(b,c,d)&&a.matches(b)&&f.add(b),jc(a,b,c,d,f)}function ic(a){if(a instanc"); + atom.Append("eof kc){if(8==a.g)return\"!\";if(null===a.g)return\"*\"}return a.getName()};functi"); + atom.Append("on C(){this.u=this.p=null;this.V=0}function nc(a){this.R=a;this.next=this.N=null}f"); + atom.Append("unction oc(a,b){if(!a.p)return b;if(!b.p)return a;for(var c=a.p,d=b.p,f=null,e=nul"); + atom.Append("l,g=0;c&&d;){var e=c.R,k=d.R;e==k||e instanceof Xb&&k instanceof Xb&&e.l==k.l?(e=c"); + atom.Append(",c=c.next,d=d.next):0\",4,2,function(a,b,c){return yc(function(a,"); + atom.Append("b){return a>b},a,b,c)});I(\"<=\",4,2,function(a,b,c){return yc(function(a,b){retur"); + atom.Append("n a<=b},a,b,c)});I(\">=\",4,2,function(a,b,c){return yc(function(a,b){return a>=b}"); + atom.Append(",a,b,c)});var xc=I(\"=\",3,2,function(a,b,c){return yc(function(a,b){return a==b},"); + atom.Append("a,b,c,!0)});I(\"!=\",3,2,function(a,b,c){return yc(function(a,b){return a!=b},a,b,"); + atom.Append("c,!0)});I(\"and\",2,2,function(a,b,c){return vc(a,c)&&vc(b,c)});I(\"or\",1,2,funct"); + atom.Append("ion(a,b,c){return vc(a,c)||vc(b,c)});function Bc(a,b){if(b.A()&&4!=a.o)throw Error"); + atom.Append("(\"Primary expression must evaluate to nodeset if filter has predicate(s).\");D.ca"); + atom.Append("ll(this,a.o);this.Ga=a;this.i=b;this.C=a.m();this.q=a.q}n(Bc,D);Bc.prototype.evalu"); + atom.Append("ate=function(a){a=this.Ga.evaluate(a);return Cc(this.i,a)};Bc.prototype.toString=f"); + atom.Append("unction(){var a;a=\"Filter:\"+F(this.Ga);return a+=F(this.i)};function Dc(a,b){if("); + atom.Append("b.lengtha.pa)throw Error(\"Function \""); + atom.Append("+a.t+\" expects at most \"+a.pa+\" arguments, \"+b.length+\" given\");a.Qa&&p(b,fu"); + atom.Append("nction(b,d){if(4!=b.o)throw Error(\"Argument \"+d+\" to function \"+a.t+\" is not "); + atom.Append("of type Nodeset: \"+b);});D.call(this,a.o);this.aa=a;this.ja=b;tc(this,a.C||za(b,f"); + atom.Append("unction(a){return a.m()}));uc(this,a.Oa&&!b.length||a.Na&&!!b.length||za(b,functio"); + atom.Append("n(a){return a.q}))}\nn(Dc,D);Dc.prototype.evaluate=function(a){return this.aa.w.ap"); + atom.Append("ply(null,Da(a,this.ja))};Dc.prototype.toString=function(){var a=\"Function: \"+thi"); + atom.Append("s.aa;if(this.ja.length)var b=ya(this.ja,function(a,b){return a+F(b)},\"Arguments:"); + atom.Append("\"),a=a+F(b);return a};function Ec(a,b,c,d,f,e,g,k,q){this.t=a;this.o=b;this.C=c;t"); + atom.Append("his.Oa=d;this.Na=f;this.w=e;this.Da=g;this.pa=aa(k)?k:g;this.Qa=!!q}Ec.prototype.t"); + atom.Append("oString=function(){return this.t};var Fc={};\nfunction J(a,b,c,d,f,e,g,k){if(Fc.ha"); + atom.Append("sOwnProperty(a))throw Error(\"Function already created: \"+a+\".\");Fc[a]=new Ec(a"); + atom.Append(",b,c,d,!1,f,e,g,k)}J(\"boolean\",2,!1,!1,function(a,b){return vc(b,a)},1);J(\"ceil"); + atom.Append("ing\",1,!1,!1,function(a,b){return Math.ceil(G(b,a))},1);J(\"concat\",3,!1,!1,func"); + atom.Append("tion(a,b){return ya(Fa(arguments,1),function(b,d){return b+H(d,a)},\"\")},2,null);"); + atom.Append("J(\"contains\",2,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);return-1!=b.indexOf(a)},2"); + atom.Append(");J(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).A()},1,1,!0);\nJ(\"false"); + atom.Append("\",2,!1,!1,function(){return!1},0);J(\"floor\",1,!1,!1,function(a,b){return Math.f"); + atom.Append("loor(G(b,a))},1);J(\"id\",4,!1,!1,function(a,b){function c(a){if(Vb){var b=f.all[a"); + atom.Append("];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return Ba(b,function(b){return"); + atom.Append(" a==b.id})}return null}return f.getElementById(a)}var d=a.l,f=9==d.nodeType?d:d.ow"); + atom.Append("nerDocument,d=H(b,a).split(/\\s+/),e=[];p(d,function(a){(a=c(a))&&!Ca(e,a)&&e.push"); + atom.Append("(a)});e.sort(wb);var g=new C;p(e,function(a){g.add(a)});return g},1);\nJ(\"lang\","); + atom.Append("2,!1,!1,function(){return!1},1);J(\"last\",1,!0,!1,function(a){if(1!=arguments.len"); + atom.Append("gth)throw Error(\"Function last expects ()\");return a.u},0);J(\"local-name\",3,!1"); + atom.Append(",!0,function(a,b){var c=b?pc(b.evaluate(a)):a.l;return c?c.nodeName.toLowerCase():"); + atom.Append("\"\"},0,1,!0);J(\"name\",3,!1,!0,function(a,b){var c=b?pc(b.evaluate(a)):a.l;retur"); + atom.Append("n c?c.nodeName.toLowerCase():\"\"},0,1,!0);J(\"namespace-uri\",3,!0,!1,function(){"); + atom.Append("return\"\"},0,1,!0);\nJ(\"normalize-space\",3,!1,!0,function(a,b){return(b?H(b,a):"); + atom.Append("cc(a.l)).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);J(\"not"); + atom.Append("\",2,!1,!1,function(a,b){return!vc(b,a)},1);J(\"number\",1,!1,!0,function(a,b){ret"); + atom.Append("urn b?G(b,a):+cc(a.l)},0,1);J(\"position\",1,!0,!1,function(a){return a.Ta},0);J("); + atom.Append("\"round\",1,!1,!1,function(a,b){return Math.round(G(b,a))},1);J(\"starts-with\",2,"); + atom.Append("!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);return 0==b.lastIndexOf(a,0)},2);J(\"strin"); + atom.Append("g\",3,!1,!0,function(a,b){return b?H(b,a):cc(a.l)},0,1);\nJ(\"string-length\",1,!1"); + atom.Append(",!0,function(a,b){return(b?H(b,a):cc(a.l)).length},0,1);J(\"substring\",3,!1,!1,fu"); + atom.Append("nction(a,b,c,d){c=G(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?G(d"); + atom.Append(",a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.ma"); + atom.Append("x(c,0);a=H(b,a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a.subs"); + atom.Append("tring(f,c+b)},2,3);J(\"substring-after\",3,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a)"); + atom.Append(";c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nJ(\"substring-befor"); + atom.Append("e\",3,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);a=b.indexOf(a);return-1==a?\"\":b.su"); + atom.Append("bstring(0,a)},2);J(\"sum\",1,!1,!1,function(a,b){for(var c=rc(b.evaluate(a)),d=0,f"); + atom.Append("=c.next();f;f=c.next())d+=+cc(f);return d},1,1,!0);J(\"translate\",3,!1,!1,functio"); + atom.Append("n(a,b,c,d){b=H(b,a);c=H(c,a);var f=H(d,a);a=[];for(d=0;da.length)throw Error(\"Unclosed literal string\");return new Hc(a)}fun"); + atom.Append("ction fd(a){var b=a.b.next(),c=b.indexOf(\":\");if(-1==c)return new hc(b);var d=b."); + atom.Append("substring(0,c);a=a.Ra(d);if(!a)throw Error(\"Namespace prefix not declared: \"+d);"); + atom.Append("b=b.substr(c+1);return new hc(b,a)}\nfunction gd(a){var b,c=[],d;if(Nc(A(a.b))){b="); + atom.Append("a.b.next();d=A(a.b);if(\"/\"==b&&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*"); + atom.Append("\"!=d&&!/(?![0-9])[\\w]/.test(d)))return new Lc;d=new Lc;L(a,\"Missing next locati"); + atom.Append("on step.\");b=hd(a,b);c.push(b)}else{a:{b=A(a.b);d=b.charAt(0);switch(d){case \"$"); + atom.Append("\":throw Error(\"Variable reference not allowed in HTML XPath\");case \"(\":a.b.ne"); + atom.Append("xt();b=ad(a);L(a,'unclosed \"(\"');cd(a,\")\");break;case '\"':case \"'\":b=ed(a);"); + atom.Append("break;default:if(isNaN(+b))if(!Gc(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==A(a.b,\n1))"); + atom.Append("{b=a.b.next();b=Fc[b]||null;a.b.next();for(d=[];\")\"!=A(a.b);){L(a,\"Missing func"); + atom.Append("tion argument list.\");d.push(ad(a));if(\",\"!=A(a.b))break;a.b.next()}L(a,\"Unclo"); + atom.Append("sed function argument list.\");dd(a);b=new Dc(b,d)}else{b=null;break a}else b=new "); + atom.Append("Ic(+a.b.next())}\"[\"==A(a.b)&&(d=new Qc(id(a)),b=new Bc(b,d))}if(b)if(Nc(A(a.b)))"); + atom.Append("d=b;else return b;else b=hd(a,\"/\"),d=new Mc,c.push(b)}for(;Nc(A(a.b));)b=a.b.nex"); + atom.Append("t(),L(a,\"Missing next location step.\"),b=hd(a,b),c.push(b);return new Jc(d,c)}\n"); + atom.Append("function hd(a,b){var c,d,f;if(\"/\"!=b&&\"//\"!=b)throw Error('Step op should be "); + atom.Append("\"/\" or \"//\"');if(\".\"==A(a.b))return d=new Rc(Xc,new kc(\"node\")),a.b.next()"); + atom.Append(",d;if(\"..\"==A(a.b))return d=new Rc(Wc,new kc(\"node\")),a.b.next(),d;var e;if(\""); + atom.Append("@\"==A(a.b))e=Kc,a.b.next(),L(a,\"Missing attribute name\");else if(\"::\"==A(a.b,"); + atom.Append("1)){if(!/(?![0-9])[\\w]/.test(A(a.b).charAt(0)))throw Error(\"Bad token: \"+a.b.ne"); + atom.Append("xt());c=a.b.next();e=Vc[c]||null;if(!e)throw Error(\"No axis with name: \"+c);a.b."); + atom.Append("next();L(a,\"Missing node name\")}else e=\nSc;c=A(a.b);if(/(?![0-9])[\\w]/.test(c."); + atom.Append("charAt(0)))if(\"(\"==A(a.b,1)){if(!Gc(c))throw Error(\"Invalid node type: \"+c);c="); + atom.Append("a.b.next();if(!Gc(c))throw Error(\"Invalid type name: \"+c);cd(a,\"(\");L(a,\"Bad "); + atom.Append("nodetype\");f=A(a.b).charAt(0);var g=null;if('\"'==f||\"'\"==f)g=ed(a);L(a,\"Bad n"); + atom.Append("odetype\");dd(a);c=new kc(c,g)}else c=fd(a);else if(\"*\"==c)c=fd(a);else throw Er"); + atom.Append("ror(\"Bad token: \"+a.b.next());f=new Qc(id(a),e.S);return d||new Rc(e,c,f,\"//\"="); + atom.Append("=b)}\nfunction id(a){for(var b=[];\"[\"==A(a.b);){a.b.next();L(a,\"Missing predica"); + atom.Append("te expression.\");var c=ad(a);b.push(c);L(a,\"Unclosed predicate expression.\");cd"); + atom.Append("(a,\"]\")}return b}function bd(a){if(\"-\"==A(a.b))return a.b.next(),new Yc(bd(a))"); + atom.Append(";var b=gd(a);if(\"|\"!=A(a.b))a=b;else{for(b=[b];\"|\"==a.b.next();)L(a,\"Missing "); + atom.Append("next union location path.\"),b.push(gd(a));a.b.back();a=new Zc(b)}return a};functi"); + atom.Append("on jd(a){switch(a.nodeType){case 1:return ma(kd,a);case 9:return jd(a.documentElem"); + atom.Append("ent);case 2:return a.ownerElement?jd(a.ownerElement):ld;case 11:case 10:case 6:cas"); + atom.Append("e 12:return ld;default:return a.parentNode?jd(a.parentNode):ld}}function ld(){retu"); + atom.Append("rn null}function kd(a,b){if(a.prefix==b)return a.namespaceURI||\"http://www.w3.org"); + atom.Append("/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:\"+b);return c&&c.specified?c.value"); + atom.Append("||null:a.parentNode&&9!=a.parentNode.nodeType?kd(a.parentNode,b):null};function md"); + atom.Append("(a,b){if(!a.length)throw Error(\"Empty XPath expression.\");var c=$b(a);if(c.empty"); + atom.Append("())throw Error(\"Invalid XPath expression.\");b?ea(b)||(b=la(b.lookupNamespaceURI,"); + atom.Append("b)):b=function(){return null};var d=ad(new $c(c,b));if(!c.empty())throw Error(\"Ba"); + atom.Append("d token: \"+c.next());this.evaluate=function(a,b){var c=d.evaluate(new Ub(a));retu"); + atom.Append("rn new M(c,b)}}\nfunction M(a,b){if(0==b)if(a instanceof C)b=4;else if(\"string\"="); + atom.Append("=typeof a)b=2;else if(\"number\"==typeof a)b=1;else if(\"boolean\"==typeof a)b=3;e"); + atom.Append("lse throw Error(\"Unexpected evaluation result.\");if(2!=b&&1!=b&&3!=b&&!(a instan"); + atom.Append("ceof C))throw Error(\"value could not be converted to the specified type\");this.r"); + atom.Append("esultType=b;var c;switch(b){case 2:this.stringValue=a instanceof C?qc(a):\"\"+a;br"); + atom.Append("eak;case 1:this.numberValue=a instanceof C?+qc(a):+a;break;case 3:this.booleanValu"); + atom.Append("e=a instanceof C?0=c.length?null:c[e++]};this.snapshotItem=funct"); + atom.Append("ion(a){if(6!=b&&7!=b)throw Error(\"snapshotItem called with wrong result type\");r"); + atom.Append("eturn a>=\nc.length||0>a?null:c[a]}}M.ANY_TYPE=0;M.NUMBER_TYPE=1;M.STRING_TYPE=2;M"); + atom.Append(".BOOLEAN_TYPE=3;M.UNORDERED_NODE_ITERATOR_TYPE=4;M.ORDERED_NODE_ITERATOR_TYPE=5;M."); + atom.Append("UNORDERED_NODE_SNAPSHOT_TYPE=6;M.ORDERED_NODE_SNAPSHOT_TYPE=7;M.ANY_UNORDERED_NODE"); + atom.Append("_TYPE=8;M.FIRST_ORDERED_NODE_TYPE=9;function nd(a){this.lookupNamespaceURI=jd(a)}"); + atom.Append("\nfunction od(a){a=a||l;var b=a.document;b.evaluate||(a.XPathResult=M,b.evaluate=f"); + atom.Append("unction(a,b,f,e){return(new md(a,f)).evaluate(b,e)},b.createExpression=function(a,"); + atom.Append("b){return new md(a,b)},b.createNSResolver=function(a){return new nd(a)})};var O={}"); + atom.Append(";O.Ma=function(){var a={Ya:\"http://www.w3.org/2000/svg\"};return function(b){retu"); + atom.Append("rn a[b]||null}}();O.w=function(a,b,c){var d=y(a);(t||Rb)&&od(z(d));try{var f=d.cre"); + atom.Append("ateNSResolver?d.createNSResolver(d.documentElement):O.Ma;return t&&!eb(7)?d.evalua"); + atom.Append("te.call(d,b,a,f,c,null):d.evaluate(b,a,f,c,null)}catch(e){if(!v||\"NS_ERROR_ILLEGA"); + atom.Append("L_VALUE\"!=e.name)throw new r(32,\"Unable to locate an element with the xpath expr"); + atom.Append("ession \"+b+\" because of the following error:\\n\"+e);}};\nO.ka=function(a,b){if("); + atom.Append("!a||1!=a.nodeType)throw new r(32,'The result of the xpath expression \"'+b+'\" is:"); + atom.Append(" '+a+\". It should be an element.\");};O.H=function(a,b){var c=function(){var c=O."); + atom.Append("w(b,a,9);return c?(c=c.singleNodeValue,s?c:c||null):b.selectSingleNode?(c=y(b),c.s"); + atom.Append("etProperty&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):"); + atom.Append("null}();null===c||O.ka(c,a);return c};\nO.v=function(a,b){var c=function(){var c=O"); + atom.Append(".w(b,a,7);if(c){var f=c.snapshotLength;s&&!aa(f)&&O.ka(null,a);for(var e=[],g=0;g<"); + atom.Append("f;++g)e.push(c.snapshotItem(g));return e}return b.selectNodes?(c=y(b),c.setPropert"); + atom.Append("y&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectNodes(a)):[]}();p(c,func"); + atom.Append("tion(b){O.ka(b,a)});return c};function pd(a){return(a=a.exec(Oa))?a[1]:\"\"}var qd"); + atom.Append("=function(){if(Nb)return pd(/Firefox\\/([0-9.]+)/);if(t||s)return cb;if(Sb)return "); + atom.Append("pd(/Chrome\\/([0-9.]+)/);if(Tb)return pd(/Version\\/([0-9.]+)/);if(Pb||Qb){var a;i"); + atom.Append("f(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(Oa))return a[1]+\".\"+a[2]}else{if(Rb"); + atom.Append(")return(a=pd(/Android\\s+([0-9.]+)/))?a:pd(/Version\\/([0-9.]+)/);if(Ob)return pd("); + atom.Append("/Camino\\/([0-9.]+)/)}return\"\"}();var rd,sd;function P(a){return td?rd(a):t?0<=s"); + atom.Append("a(gb,a):eb(a)}function ud(a){return td?sd(a):Rb?0<=sa(vd,a):0<=sa(qd,a)}\nvar td=f"); + atom.Append("unction(){if(!v)return!1;var a=l.Components;if(!a)return!1;try{if(!a.classes)retur"); + atom.Append("n!1}catch(b){return!1}var c=a.classes,a=a.interfaces,d=c[\"@mozilla.org/xpcom/vers"); + atom.Append("ion-comparator;1\"].getService(a.nsIVersionComparator),c=c[\"@mozilla.org/xre/app-"); + atom.Append("info;1\"].getService(a.nsIXULAppInfo),f=c.platformVersion,e=c.version;rd=function("); + atom.Append("a){return 0<=d.compare(f,\"\"+a)};sd=function(a){return 0<=d.compare(e,\"\"+a)};re"); + atom.Append("turn!0}(),wd=Qb||Pb,xd;\nif(Rb){var yd=/Android\\s+([0-9\\.]+)/.exec(Oa);xd=yd?yd["); + atom.Append("1]:\"0\"}else xd=\"0\";var vd=xd,zd=t&&!fb(8),Ad=fb(9),Bd=t&&!fb(9),Cd=fb(10);Rb&&"); + atom.Append("ud(2.3);Rb&&ud(4);Tb&&ud(6);var Dd=t&&-1!=Oa.indexOf(\"IEMobile\");function Ed(a,b"); + atom.Append(",c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}h=Ed.prototype;h.clone=fun"); + atom.Append("ction(){return new Ed(this.top,this.right,this.bottom,this.left)};h.toString=funct"); + atom.Append("ion(){return\"(\"+this.top+\"t, \"+this.right+\"r, \"+this.bottom+\"b, \"+this.lef"); + atom.Append("t+\"l)\"};h.contains=function(a){return this&&a?a instanceof Ed?a.left>=this.left&"); + atom.Append("&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<="); + atom.Append("this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){fa(a)"); + atom.Append("?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(th"); + atom.Append("is.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function("); + atom.Append("){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.c"); + atom.Append("eil(this.bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){th"); + atom.Append("is.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.flo"); + atom.Append("or(this.bottom);this.left=Math.floor(this.left);return this};\nh.round=function(){"); + atom.Append("this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.r"); + atom.Append("ound(this.bottom);this.left=Math.round(this.left);return this};h.translate=functio"); + atom.Append("n(a,b){a instanceof jb?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+="); + atom.Append("a.y):(this.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return this}"); + atom.Append(";h.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this"); + atom.Append(".bottom*=c;return this};function R(a,b,c,d){this.left=a;this.top=b;this.width=c;th"); + atom.Append("is.height=d}h=R.prototype;h.clone=function(){return new R(this.left,this.top,this."); + atom.Append("width,this.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\""); + atom.Append(" - \"+this.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a inst"); + atom.Append("anceof R?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&"); + atom.Append("&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a"); + atom.Append(".y>=this.top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(t"); + atom.Append("his.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.heigh"); + atom.Append("t=Math.ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this"); + atom.Append(".left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height"); + atom.Append("=Math.floor(this.height);return this};h.round=function(){this.left=Math.round(this"); + atom.Append(".left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height"); + atom.Append("=Math.round(this.height);return this};\nh.translate=function(a,b){a instanceof jb?"); + atom.Append("(this.left+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this};h."); + atom.Append("scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.he"); + atom.Append("ight*=c;return this};function Fd(a,b){var c=y(a);return c.defaultView&&c.defaultVi"); + atom.Append("ew.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropert"); + atom.Append("yValue(b)||\"\":\"\"}function Gd(a){a=a?y(a):document;var b;(b=!t||fb(9))||(b=\"CS"); + atom.Append("S1Compat\"==lb(a).L.compatMode);return b?a.documentElement:a.body}var Hd={thin:2,m"); + atom.Append("edium:4,thick:6};\nfunction Id(a,b){if(\"none\"==(a.currentStyle?a.currentStyle[b+"); + atom.Append("\"Style\"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+\"Width\"]:null,d;"); + atom.Append("if(c in Hd)d=Hd[c];else if(/^\\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.lef"); + atom.Append("t;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c"); + atom.Append(";c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=f;d=c}return d};function J"); + atom.Append("d(a){var b;a:{a=y(a);try{b=a&&a.activeElement;break a}catch(c){}b=null}return t&&b"); + atom.Append("&&\"undefined\"===typeof b.nodeType?null:b}function S(a,b){return!!a&&1==a.nodeTyp"); + atom.Append("e&&(!b||a.tagName.toUpperCase()==b)}function Kd(a){var b;if(b=Ld(a,!0)&&Md(a))b=!("); + atom.Append("t||s||v&&!P(\"1.9.2\")?0:\"none\"==T(a,\"pointer-events\"));return b}function Nd(a"); + atom.Append("){return S(a,\"OPTION\")?!0:S(a,\"INPUT\")?(a=a.type.toLowerCase(),\"checkbox\"==a"); + atom.Append("||\"radio\"==a):!1}\nfunction Od(a){if(!Nd(a))throw new r(15,\"Element is not sele"); + atom.Append("ctable\");var b=\"selected\",c=a.type&&a.type.toLowerCase();if(\"checkbox\"==c||\""); + atom.Append("radio\"==c)b=\"checked\";return!!Pd(a,b)}function Pd(a,b){var c;if(c=zd&&\"value\""); + atom.Append("==b&&S(a,\"OPTION\"))c=null===Qd(a,\"value\");c?(c=[],Bb(a,c,!1),c=c.join(\"\")):c"); + atom.Append("=a[b];return c}var Rd=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^'"); + atom.Append("]*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction Sd(a){var b=[];p(a.split(Rd),fu"); + atom.Append("nction(a){var d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if"); + atom.Append("(!c)b:{if(g=d.match(La))if(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>"); + atom.Append("=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCas"); + atom.Append("e();\ne=Ga[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e"); + atom.Append("=e.replace(Ia,\"#$1$1$2$2$3$3\")),!Ja.test(e))){c=null;break b}c=[parseInt(e.subst"); + atom.Append("r(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+"); + atom.Append("c.join(\", \")+\")\":d}return d}function Yd(a,b){var c=a.currentStyle||a.style,d=c"); + atom.Append("[b];!aa(d)&&ea(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d"); + atom.Append("?aa(d)?d:null:(c=Wd(a))?Yd(c,b):null}\nfunction Ld(a,b){function c(a){if(\"none\"="); + atom.Append("=T(a,\"display\"))return!1;a=Wd(a);return!a||c(a)}function d(a){var b=Zd(a);return"); + atom.Append(" 0=E.left+E.width;E=e.top>=E.top+E.height;if(Q&&\"hidden\"==u.x||E&&\"hidden\"==u"); + atom.Append(".y)return ae;if(Q&&\"visible\"!=u.x||E&&\"visible\"!=u.y){if(w&&(u=f(B),e.left>=k."); + atom.Append("scrollWidth-u.x||e.right>=k.scrollHeight-u.y))return ae;e=$d(B);return e==ae?ae:\""); + atom.Append("scroll\"}}}return\"none\"}var ee=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d"); + atom.Append("\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunc"); + atom.Append("tion Zd(a){function b(a){var c=z(y(a)).getComputedStyle(a,null).MozTransform.match"); + atom.Append("(ee);if(c){var d=parseFloat(c[1]),f=parseFloat(c[2]),w=parseFloat(c[3]),B=parseFlo"); + atom.Append("at(c[4]),u=parseFloat(c[5]),c=parseFloat(c[6]),E=e.left+e.width,Q=e.top+e.height,i"); + atom.Append("a=e.left*d,d=E*d,qb=e.left*f,f=E*f,rb=e.top*w,w=Q*w,sb=e.top*B,E=Q*B,Q=ia+rb+u,B=q"); + atom.Append("b+sb+c,rb=d+rb+u,sb=f+sb+c,ia=ia+w+u,qb=qb+E+c,u=d+w+u,c=f+E+c;e.left=Math.min(Q,r"); + atom.Append("b,ia,u);e.top=Math.min(B,sb,qb,c);u=Math.max(Q,rb,ia,u);c=Math.max(B,sb,qb,c);e.wi"); + atom.Append("dth=u-\ne.left;e.height=c-e.top}(a=Wd(a))&&b(a)}var c=be(a);if(c)return c.rect;if("); + atom.Append("S(a,\"HTML\"))return c=y(a),a=nb(z(c)||window),new R(0,0,a.width,a.height);var d;t"); + atom.Append("ry{d=a.getBoundingClientRect()}catch(f){return new R(0,0,0,0)}var e=new R(d.left,d"); + atom.Append(".top,d.right-d.left,d.bottom-d.top);t&&a.ownerDocument.body&&(c=y(a),e.left-=c.doc"); + atom.Append("umentElement.clientLeft+c.body.clientLeft,e.top-=c.documentElement.clientTop+c.bod"); + atom.Append("y.clientTop);s&&(0==e.width&&02*this.O&&yf(this),!0):!1};function yf(a){if(a.O!"); + atom.Append("=a.j.length){for(var b=0,c=0;b\");X(191,\"/\",\"?\");X(192,\"`\","); + atom.Append("\"~\");X(219,\"[\",\"{\");X(220,\"\\\\\",\"|\");X(221,\"]\",\"}\");var Fg=X({d:59,"); + atom.Append("e:186,opera:59},\";\",\":\");X(222,\"'\",'\"');var Gg=[Mf,Lf,$f,Y],Hg=new xf;Hg.se"); + atom.Append("t(1,Y);Hg.set(2,Lf);Hg.set(4,Mf);Hg.set(8,$f);var Ig=function(a){var b=new xf;p(zf"); + atom.Append("(a),function(c){b.set(a.get(c).code,c)});return b}(Hg);function Ff(a,b,c){if(Ca(Gg"); + atom.Append(",b)){var d=Ig.get(b.code),f=a.W;f.ea=c?f.ea|d:f.ea&~d}c?a.fa.add(b):a.fa.remove(b)"); + atom.Append("}var Jg=t||s?\"\\r\\n\":\"\\n\";Ef.prototype.h=function(a){return this.fa.contains"); + atom.Append("(a)};\nfunction Kg(a,b){if(Ca(Gg,b)&&a.h(b))throw new r(13,\"Cannot press a modifi"); + atom.Append("er key that is already pressed.\");var c=null!==b.code&&Lg(a,hf,b);if((c||v)&&(!Mg"); + atom.Append("(b)||Lg(a,$e,b,!c))&&c&&(Ng(a,b),a.ma))if(b.K){if(!Og){var c=Pg(a,b),d=tf(a.c(),!0"); + atom.Append(")[0]+1;Qg(a.c())?(wf(a.c(),c),pf(a.c(),d)):a.c().value+=c;x&&a.M(ff);Bd||a.M(ef);a"); + atom.Append(".s=d}}else switch(b){case Kf:Og||(x&&a.M(ff),S(a.c(),\"TEXTAREA\")&&(c=tf(a.c(),!0"); + atom.Append(")[0]+Jg.length,Qg(a.c())?(wf(a.c(),Jg),pf(a.c(),c)):a.c().value+=Jg,t||a.M(ef),a.s"); + atom.Append("=c));break;case If:case Zf:Og||\n(Rg(a.c()),c=tf(a.c(),!1),c[0]==c[1]&&(b==If?(pf("); + atom.Append("a.c(),c[1]-1),uf(a.c(),c[1])):uf(a.c(),c[1]+1)),c=tf(a.c(),!1),c=!(c[0]==a.c().val"); + atom.Append("ue.length||0==c[1]),wf(a.c(),\"\"),(!t&&c||v&&b==If)&&a.M(ef),c=tf(a.c(),!1),a.s=c"); + atom.Append("[1]);break;case Uf:case Wf:Rg(a.c());var c=a.c(),f=tf(c,!0)[0],e=tf(c,!1)[1],g=d=0"); + atom.Append(";b==Uf?a.h(Y)?a.s==f?(d=Math.max(f-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1"); + atom.Append(",0):f:a.h(Y)?a.s==e?(d=f,f=g=Math.min(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?"); + atom.Append("Math.min(e+1,c.value.length):e;a.h(Y)?(pf(c,\nd),uf(c,g)):vf(c,f);a.s=f;break;case"); + atom.Append(" Tf:case Sf:Rg(a.c()),c=a.c(),d=tf(c,!0)[0],g=tf(c,!1)[1],b==Tf?(a.h(Y)?(pf(c,0),u"); + atom.Append("f(c,a.s==d?g:d)):vf(c,0),a.s=0):(a.h(Y)?(a.s==d&&pf(c,g),uf(c,c.value.length)):vf("); + atom.Append("c,c.value.length),a.s=c.value.length)}Ff(a,b,!0)}function Mg(a){if(a.K||a==Kf)retu"); + atom.Append("rn!0;if(x)return!1;if(t)return a==Of;switch(a){case Y:case Lf:case Mf:return!1;cas"); + atom.Append("e $f:case ag:case bg:return v;default:return!0}}\nfunction Ng(a,b){if(b==Kf&&!v&&S"); + atom.Append("(a.c(),\"INPUT\")){var c=Cb(a.c(),Qe,!0);if(c){var d=c.getElementsByTagName(\"inpu"); + atom.Append("t\");(za(d,function(a){return Ne(a)})||1==d.length||x&&!P(534))&&Re(c)}}}function "); + atom.Append("Sg(a,b){if(!a.h(b))throw new r(13,\"Cannot release a key that is not pressed. (\"+"); + atom.Append("b.code+\")\");null===b.code||Lg(a,jf,b);Ff(a,b,!1)}function Pg(a,b){if(!b.K)throw "); + atom.Append("new r(13,\"not a character key\");return a.h(Y)?b.Ua:b.K}var Og=v&&!P(12);\nfuncti"); + atom.Append("on Rg(a){try{a.selectionStart}catch(b){if(-1!=b.message.indexOf(\"does not support"); + atom.Append(" selection.\"))throw Error(b.message+\" (For more information, see https://code.go"); + atom.Append("ogle.com/p/chromium/issues/detail?id=330456)\");throw b;}}function Qg(a){try{Rg(a)"); + atom.Append("}catch(b){return!1}return!0}\nfunction Lg(a,b,c,d){if(null===c.code)throw new r(13"); + atom.Append(",\"Key must have a keycode to be fired.\");c={altKey:a.h(Mf),ctrlKey:a.h(Lf),metaK"); + atom.Append("ey:a.h($f),shiftKey:a.h(Y),keyCode:c.code,charCode:c.K&&b==$e?Pg(a,c).charCodeAt(0"); + atom.Append("):0,preventDefault:!!d};return a.na(b,c)}function Tg(a,b){ue(a,b);a.ma=Xd(b);var c"); + atom.Append("=Ke(a);a.ma&&c&&(vf(b,b.value.length),a.s=b.value.length)}Ef.prototype.ya=function"); + atom.Append("(){return{pressed:this.fa.P(),currentPos:this.s}};function Ug(a,b,c){te.call(this,"); + atom.Append("b,c);this.F=this.n=null;this.B=new jb(0,0);this.ba=this.Q=!1;if(a){da(a.buttonPres"); + atom.Append("sed)&&(this.n=a.buttonPressed);try{S(a.elementPressed)&&(this.F=a.elementPressed)}"); + atom.Append("catch(d){this.n=null}this.B=new jb(a.clientXY.x,a.clientXY.y);this.Q=!!a.nextClick"); + atom.Append("IsDoubleClick;this.ba=!!a.hasEverInteracted;try{a.element&&S(a.element)&&ue(this,a"); + atom.Append(".element)}catch(f){this.n=null}}}n(Ug,te);var Z={};\nBd?(Z[ze]=[0,0,0,null],Z[Ge]="); + atom.Append("[null,null,0,null],Z[Je]=[1,4,2,null],Z[ye]=[0,0,0,0],Z[He]=[1,4,2,0]):x||Ad?(Z[ze"); + atom.Append("]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1,2,null],Z[ye]=[0,1,2,0],Z[He]=["); + atom.Append("0,1,2,0]):(Z[ze]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1,2,null],Z[ye]=[0"); + atom.Append(",0,0,0],Z[He]=[0,0,0,0]);Cd&&(Z[Fe]=Z[Je],Z[of]=Z[Je],Z[Ie]=[-1,-1,-1,-1],Z[Ee]=Z["); + atom.Append("Ie],Z[De]=Z[Ie]);Z[gf]=Z[ze];Z[Ae]=Z[Je];Z[xe]=Z[ye];var Vg={};Vg[Ae]=Fe;Vg[He]=Ie"); + atom.Append(";Vg[ye]=Ee;Vg[xe]=De;Vg[Je]=of;\nUg.prototype.move=function(a,b){var c=Kd(a),d=Zd("); + atom.Append("a);this.B.x=b.x+d.left;this.B.y=b.y+d.top;d=this.c();if(a!=d){try{z(y(d)).closed&&"); + atom.Append("(d=null)}catch(f){d=null}if(d){var e=d===oa.document.documentElement||d===oa.docum"); + atom.Append("ent.body,d=!this.ba&&e?null:d;Wg(this,ye,a)}ue(this,a);t||Wg(this,xe,d,null,c)}Wg("); + atom.Append("this,He,null,null,c);t&&a!=d&&Wg(this,xe,d,null,c);this.Q=!1};\nUg.prototype.scrol"); + atom.Append("l=function(a){if(0==a)throw new r(13,\"Must scroll a non-zero number of ticks.\");"); + atom.Append("for(var b=0=a){var b=$.a[a];if(null===b)g.push(k=f()),e&&(k."); + atom.Append("Ea=!1,g.push(k=f()));else if(aa(b))k.keys.push(b);else throw Error(\"Unsupported W"); + atom.Append("ebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}else switch(a){case \"\\n\":k"); + atom.Append(".keys.push(Kf);break;case \"\\t\":k.keys.push(Jf);break;case \"\\b\":k.keys.push(I"); + atom.Append("f);break;default:k.keys.push(a)}})});p(g,function(b){Yg(a,b.keys,c,\nb.Ea)})}$.a={"); + atom.Append("};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=If;$.a[\"\\ue004\"]=Jf;$.a[\"\\ue006\"]=K"); + atom.Append("f;$.a[\"\\ue007\"]=Kf;$.a[\"\\ue008\"]=Y;$.a[\"\\ue009\"]=Lf;$.a[\"\\ue00a\"]=Mf;$"); + atom.Append(".a[\"\\ue00b\"]=Nf;$.a[\"\\ue00c\"]=Of;$.a[\"\\ue00d\"]=Pf;$.a[\"\\ue00e\"]=Qf;$.a"); + atom.Append("[\"\\ue00f\"]=Rf;$.a[\"\\ue010\"]=Sf;$.a[\"\\ue011\"]=Tf;$.a[\"\\ue012\"]=Uf;$.a["); + atom.Append("\"\\ue013\"]=Vf;$.a[\"\\ue014\"]=Wf;$.a[\"\\ue015\"]=Xf;$.a[\"\\ue016\"]=Yf;$.a[\""); + atom.Append("\\ue017\"]=Zf;$.a[\"\\ue018\"]=Fg;$.a[\"\\ue019\"]=Dg;$.a[\"\\ue01a\"]=cg;$.a[\""); + atom.Append("\\ue01b\"]=dg;$.a[\"\\ue01c\"]=eg;$.a[\"\\ue01d\"]=fg;$.a[\"\\ue01e\"]=gg;\n$.a[\""); + atom.Append("\\ue01f\"]=hg;$.a[\"\\ue020\"]=ig;$.a[\"\\ue021\"]=jg;$.a[\"\\ue022\"]=kg;$.a[\""); + atom.Append("\\ue023\"]=lg;$.a[\"\\ue024\"]=mg;$.a[\"\\ue025\"]=ng;$.a[\"\\ue027\"]=og;$.a[\""); + atom.Append("\\ue028\"]=pg;$.a[\"\\ue029\"]=qg;$.a[\"\\ue026\"]=Eg;$.a[\"\\ue031\"]=rg;$.a[\""); + atom.Append("\\ue032\"]=sg;$.a[\"\\ue033\"]=tg;$.a[\"\\ue034\"]=ug;$.a[\"\\ue035\"]=vg;$.a[\""); + atom.Append("\\ue036\"]=wg;$.a[\"\\ue037\"]=xg;$.a[\"\\ue038\"]=yg;$.a[\"\\ue039\"]=zg;$.a[\""); + atom.Append("\\ue03a\"]=Ag;$.a[\"\\ue03b\"]=Bg;$.a[\"\\ue03c\"]=Cg;$.a[\"\\ue03d\"]=$f;function"); + atom.Append(" $g(){this.ga=void 0}\nfunction ah(a,b,c){switch(typeof b){case \"string\":bh(b,c)"); + atom.Append(";break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"bool"); + atom.Append("ean\":c.push(b);break;case \"undefined\":c.push(\"null\");break;case \"object\":if"); + atom.Append("(null==b){c.push(\"null\");break}if(\"array\"==ba(b)){var d=b.length;c.push(\"[\")"); + atom.Append(";for(var f=\"\",e=0;eb?f+=\"000\":256>b?f+=\"00"); + atom.Append("\":4096>b&&(f+=\"0\");return ch[a]=f+b.toString(16)}),'\"')};x||s||v&&P(3.5)||t&&P"); + atom.Append("(8);function eh(a){switch(ba(a)){case \"string\":case \"number\":case \"boolean\":"); + atom.Append("return a;case \"function\":return a.toString();case \"array\":return xa(a,eh);case"); + atom.Append(" \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMEN"); + atom.Append("T=fh(a);return b}if(\"document\"in a)return b={},b.WINDOW=fh(a),b;if(ca(a))return "); + atom.Append("xa(a,eh);a=Sa(a,function(a,b){return da(b)||m(b)});return Ta(a,eh);default:return "); + atom.Append("null}}\nfunction gh(a,b){return\"array\"==ba(a)?xa(a,function(a){return gh(a,b)}):"); + atom.Append("fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?hh(a.ELEMENT,b):\"WINDOW\"in a?hh(a"); + atom.Append(".WINDOW,b):Ta(a,function(a){return gh(a,b)}):a}function ih(a){a=a||document;var b="); + atom.Append("a.$wdc_;b||(b=a.$wdc_={},b.ra=na());b.ra||(b.ra=na());return b}function fh(a){var "); + atom.Append("b=ih(a.ownerDocument),c=Va(b,function(b){return b==a});c||(c=\":wdc:\"+b.ra++,b[c]"); + atom.Append("=a);return c}\nfunction hh(a,b){a=decodeURIComponent(a);var c=b||document,d=ih(c);"); + atom.Append("if(!(a in d))throw new r(10,\"Element does not exist in cache\");var f=d[a];if(\"s"); + atom.Append("etInterval\"in f){if(f.closed)throw delete d[a],new r(23,\"Window has been closed."); + atom.Append("\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e.parentNode}delet"); + atom.Append("e d[a];throw new r(10,\"Element is no longer attached to the DOM\");};function jh("); + atom.Append("a,b){b&&b.clientXY&&!b.element&&document.elementFromPoint&&(b.element=document.ele"); + atom.Append("mentFromPoint(b.clientXY.x,b.clientXY.y));var c=new Ug(b);if(null!==c.n)throw new "); + atom.Append("r(13,\"Cannot press more then one button or an already pressed button.\");c.n=a;c."); + atom.Append("F=c.c();var d;var f=v&&!ud(4);if((x||f)&&(S(c.c(),\"OPTION\")||S(c.c(),\"SELECT\")"); + atom.Append("))d=!0;else{(f=v||t)&&(d=Jd(c.c()));var e=Wg(c,Ae);d=e&&f&&d!=Jd(c.c())?!1:e}d&&(C"); + atom.Append("d&&0==c.n&&S(c.F,\"OPTION\")&&c.U(mf,c.B,0,1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,!"); + atom.Append("0),Ke(c));\nif(null===c.n)throw new r(13,\"Cannot release a button when no button "); + atom.Append("is pressed.\");c.r&&Kd(c.f)&&(d=c.r,f=Od(c.f),!f||d.multiple)&&(c.f.selected=!f,(!"); + atom.Append("x||!d.multiple||Sb&&ud(28)||Rb&&ud(4))&&U(d,df));Wg(c,Je);if(0==c.n&&c.c()==c.F){i"); + atom.Append("f(!Dd||!S(c.F,\"OPTION\"))if(d=c.B,f=Xg(c,ze),Kd(c.f)){var g=e=null;if(!Me)for(var"); + atom.Append(" k=c.f;k;k=k.parentNode)if(S(k,\"A\")){e=k;break}else if(Ne(k)){g=k;break}var q=(k"); + atom.Append("=!c.r&&Nd(c.f))&&Od(c.f);t&&g?g.click():c.$(ze,d,f,null,0,!1,void 0)&&(e&&Oe(e)?(d"); + atom.Append("=e,f=d.href,e=z(y(d)),t&&!P(8)&&\n(f=Pe(e.location,f)),d.target?e.open(f,d.target)"); + atom.Append(":e.location.href=f):!k||v||x||q&&\"radio\"==c.f.type.toLowerCase()||(c.f.checked=!"); + atom.Append("q,s&&!P(11)&&U(c.f,df)))}c.Q&&Wg(c,gf);c.Q=!c.Q;Cd&&0==c.n&&S(c.F,\"OPTION\")&&c.U"); + atom.Append("(nf,new jb(0,0),0,1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,!1)}else 2==c.n&&Wg(c,Ge);"); + atom.Append("Be={};c.n=null;c.F=null;return c.ya()};function kh(a,b,c){a=[a,b];var d;try{var f="); + atom.Append("c?hh(c.WINDOW):window,e=gh(a,f.document),g=jh.apply(null,e);d={status:0,value:eh(g"); + atom.Append(")}}catch(k){d={status:\"code\"in k?k.code:13,value:{message:k.message}}}c=[];ah(ne"); + atom.Append("w $g,d,c);return c.join(\"\")}var lh=[\"_\"],mh=l;lh[0]in mh||!mh.execScript||mh.e"); + atom.Append("xecScript(\"var \"+lh[0]);for(var nh;lh.length&&(nh=lh.shift());)!lh.length&&aa(kh"); + atom.Append(")?mh[nh]=kh:mh=mh[nh]?mh[nh]:mh[nh]={};; return this._.apply(null,arguments);}.app"); + atom.Append("ly({navigator:typeof window!=undefined?window.navigator:null,document:typeof windo"); + atom.Append("w!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string MouseDown + { + get + { + const string atomName = "MouseDown"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function m(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function b"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction n(a){return\"string\"==typeof a}function ca(a){return\"number\"==typeof a}f"); + atom.Append("unction da(a){return\"function\"==aa(a)}function ea(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var fa=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ga=0;function ha(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ja(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ta(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var ua=Array.prototype;function r(a,b,c){for(va"); + atom.Append("r d=a.length,f=n(a)?a.split(\"\"):a,e=0;ec?null:n(a)?a.charAt(c):a[c]}\nfunction Ba(a,b){var c;a:if(n(a))c=n(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?ua.slice.call(a,b):ua.slice.call(a,b,"); + atom.Append("c)};var Fa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ga=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ha=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ia=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ja=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,Ka=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function s(a,b){this.code=a;this.state=La[a]||Ma;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}p("); + atom.Append("s,Error);\nvar Ma=\"unknown error\",La={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};La[13]=Ma;La[9]=\"unknown command\";s.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var Na;a:{var Oa=l.navigator;if(Oa){var Pa=Oa.user"); + atom.Append("Agent;if(Pa){Na=Pa;break a}}Na=\"\"}function Qa(a){return-1!=Na.indexOf(a)};functi"); + atom.Append("on Ra(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}fun"); + atom.Append("ction Sa(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function"); + atom.Append(" Ta(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ua(a,b){for(var c i"); + atom.Append("n a)if(b.call(void 0,a[c],c,a))return c};var Va,Wa,t=Qa(\"Opera\")||Qa(\"OPR\"),v="); + atom.Append("Qa(\"Trident\")||Qa(\"MSIE\"),x=Qa(\"Gecko\")&&-1==Na.toLowerCase().indexOf(\"webk"); + atom.Append("it\")&&!(Qa(\"Trident\")||Qa(\"MSIE\")),y=-1!=Na.toLowerCase().indexOf(\"webkit\")"); + atom.Append(",Xa=y&&Qa(\"Mobile\"),Ya,Za=l.navigator||null;Ya=Za&&Za.platform||\"\";Va=-1!=Ya.i"); + atom.Append("ndexOf(\"Mac\");Wa=-1!=Ya.indexOf(\"Win\");var $a=-1!=Ya.indexOf(\"Linux\");functi"); + atom.Append("on ab(){var a=l.document;return a?a.documentMode:void 0}\nvar bb=function(){var a="); + atom.Append("\"\",b;if(t&&l.opera)return a=l.opera.version,da(a)?a():a;x?b=/rv\\:([^\\);]+)(\\)"); + atom.Append("|;)/:v?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:y&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b"); + atom.Append(".exec(Na))?a[1]:\"\");return v&&(b=ab(),b>parseFloat(a))?String(b):a}(),cb={};func"); + atom.Append("tion db(a){return cb[a]||(cb[a]=0<=ra(bb,a))}function eb(a){return v&&fb>=a}var gb"); + atom.Append("=l.document,fb=gb&&v?ab()||(\"CSS1Compat\"==gb.compatMode?parseInt(bb,10):5):void "); + atom.Append("0;!x&&!v||v&&eb(9)||x&&db(\"1.9.1\");v&&db(\"9\");function hb(a,b,c){return Math.m"); + atom.Append("in(Math.max(a,b),c)};function ib(a,b){this.x=m(a)?a:0;this.y=m(b)?b:0}h=ib.prototy"); + atom.Append("pe;h.clone=function(){return new ib(this.x,this.y)};h.toString=function(){return\""); + atom.Append("(\"+this.x+\", \"+this.y+\")\"};h.ceil=function(){this.x=Math.ceil(this.x);this.y="); + atom.Append("Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this.y"); + atom.Append("=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);this"); + atom.Append(".y=Math.round(this.y);return this};\nh.translate=function(a,b){a instanceof ib?(th"); + atom.Append("is.x+=a.x,this.y+=a.y):(this.x+=a,ca(b)&&(this.y+=b));return this};h.scale=functio"); + atom.Append("n(a,b){var c=ca(b)?b:a;this.x*=a;this.y*=c;return this};function jb(a,b){this.widt"); + atom.Append("h=a;this.height=b}h=jb.prototype;h.clone=function(){return new jb(this.width,this."); + atom.Append("height)};h.toString=function(){return\"(\"+this.width+\" x \"+this.height+\")\"};h"); + atom.Append(".ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.heigh"); + atom.Append("t);return this};h.floor=function(){this.width=Math.floor(this.width);this.height=M"); + atom.Append("ath.floor(this.height);return this};h.round=function(){this.width=Math.round(this."); + atom.Append("width);this.height=Math.round(this.height);return this};\nh.scale=function(a,b){va"); + atom.Append("r c=ca(b)?b:a;this.width*=a;this.height*=c;return this};function kb(a){return a?ne"); + atom.Append("w lb(z(a)):oa||(oa=new lb)}function mb(a){a=a.document;a=\"CSS1Compat\"==a.compatM"); + atom.Append("ode?a.documentElement:a.body;return new jb(a.clientWidth,a.clientHeight)}function "); + atom.Append("qb(a){return y||\"CSS1Compat\"!=a.compatMode?a.body||a.documentElement:a.documentE"); + atom.Append("lement}function rb(a){return a?a.parentWindow||a.defaultView:window}\nfunction sb("); + atom.Append("a,b,c){function d(c){c&&b.appendChild(n(c)?a.createTextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),bc=/^\\s/;function A(a,b){return a.ta[a.aa+(b||0)]}Z"); + atom.Append("b.prototype.next=function(){return this.ta[this.aa++]};Zb.prototype.back=function("); + atom.Append("){this.aa--};Zb.prototype.empty=function(){return this.ta.length<=this.aa};functio"); + atom.Append("n C(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.inner"); + atom.Append("Text:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Vb&&\"title\"==a.no"); + atom.Append("deName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a"); + atom.Append(".firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Vb&&\"t"); + atom.Append("itle\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;"); + atom.Append("c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction cc(a,b,c"); + atom.Append("){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Wb&&\"cla"); + atom.Append("ss\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)="); + atom.Append("=c}function dc(a,b,c,d,f){return(Vb?ec:fc).call(null,a,b,n(c)?c:null,n(d)?d:null,f"); + atom.Append("||new D)}\nfunction ec(a,b,c,d,f){if(a instanceof gc||8==a.f||c&&null===a.f){var e"); + atom.Append("=b.all;if(!e)return f;a=hc(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a),!e))return"); + atom.Append(" f;if(c){for(var g=[],k=0;b=e[k++];)cc(b,c,d)&&g.push(b);e=g}for(k=0;b=e[k++];)\"*"); + atom.Append("\"==a&&\"!\"==b.tagName||f.add(b);return f}ic(a,b,c,d,f);return f}\nfunction fc(a,"); + atom.Append("b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!v?(b=b.getElementsByName(d),r(b,fun"); + atom.Append("ction(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b."); + atom.Append("getElementsByClassName(d),r(b,function(b){b.className==d&&a.matches(b)&&f.add(b)})"); + atom.Append("):a instanceof jc?ic(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElementsByTagName("); + atom.Append("a.getName()),r(b,function(a){cc(a,c,d)&&f.add(a)}));return f}\nfunction kc(a,b,c,d"); + atom.Append(",f){var e;if((a instanceof gc||8==a.f||c&&null===a.f)&&(e=b.childNodes)){var g=hc("); + atom.Append("a);if(\"*\"!=g&&(e=va(e,function(a){return a.tagName&&a.tagName.toLowerCase()==g})"); + atom.Append(",!e))return f;c&&(e=va(e,function(a){return cc(a,c,d)}));r(e,function(a){\"*\"==g&"); + atom.Append("&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}return lc(a,b,c,"); + atom.Append("d,f)}function lc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)cc(b,c,d)&&a.matc"); + atom.Append("hes(b)&&f.add(b);return f}\nfunction ic(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSi"); + atom.Append("bling)cc(b,c,d)&&a.matches(b)&&f.add(b),ic(a,b,c,d,f)}function hc(a){if(a instance"); + atom.Append("of jc){if(8==a.f)return\"!\";if(null===a.f)return\"*\"}return a.getName()};functio"); + atom.Append("n D(){this.s=this.o=null;this.S=0}function mc(a){this.P=a;this.next=this.M=null}fu"); + atom.Append("nction nc(a,b){if(!a.o)return b;if(!b.o)return a;for(var c=a.o,d=b.o,f=null,e=null"); + atom.Append(",g=0;c&&d;){var e=c.P,k=d.P;e==k||e instanceof Xb&&k instanceof Xb&&e.l==k.l?(e=c,"); + atom.Append("c=c.next,d=d.next):0\",4,2,function(a,b,c){return xc(function(a,b){retu"); + atom.Append("rn a>b},a,b,c)});J(\"<=\",4,2,function(a,b,c){return xc(function(a,b){return a<=b}"); + atom.Append(",a,b,c)});J(\">=\",4,2,function(a,b,c){return xc(function(a,b){return a>=b},a,b,c)"); + atom.Append("});var wc=J(\"=\",3,2,function(a,b,c){return xc(function(a,b){return a==b},a,b,c,!"); + atom.Append("0)});J(\"!=\",3,2,function(a,b,c){return xc(function(a,b){return a!=b},a,b,c,!0)})"); + atom.Append(";J(\"and\",2,2,function(a,b,c){return uc(a,c)&&uc(b,c)});J(\"or\",1,2,function(a,b"); + atom.Append(",c){return uc(a,c)||uc(b,c)});function Ac(a,b){if(b.w()&&4!=a.n)throw Error(\"Prim"); + atom.Append("ary expression must evaluate to nodeset if filter has predicate(s).\");F.call(this"); + atom.Append(",a.n);this.Ga=a;this.h=b;this.B=a.m();this.p=a.p}p(Ac,F);Ac.prototype.evaluate=fun"); + atom.Append("ction(a){a=this.Ga.evaluate(a);return Bc(this.h,a)};Ac.prototype.toString=function"); + atom.Append("(){var a;a=\"Filter:\"+G(this.Ga);return a+=G(this.h)};function Cc(a,b){if(b.lengt"); + atom.Append("ha.oa)throw Error(\"Function \"+a.r+\""); + atom.Append(" expects at most \"+a.oa+\" arguments, \"+b.length+\" given\");a.Qa&&r(b,function("); + atom.Append("b,d){if(4!=b.n)throw Error(\"Argument \"+d+\" to function \"+a.r+\" is not of type"); + atom.Append(" Nodeset: \"+b);});F.call(this,a.n);this.Z=a;this.ha=b;sc(this,a.B||ya(b,function("); + atom.Append("a){return a.m()}));tc(this,a.Oa&&!b.length||a.Na&&!!b.length||ya(b,function(a){ret"); + atom.Append("urn a.p}))}\np(Cc,F);Cc.prototype.evaluate=function(a){return this.Z.v.apply(null,"); + atom.Append("Ca(a,this.ha))};Cc.prototype.toString=function(){var a=\"Function: \"+this.Z;if(th"); + atom.Append("is.ha.length)var b=xa(this.ha,function(a,b){return a+G(b)},\"Arguments:\"),a=a+G(b"); + atom.Append(");return a};function Dc(a,b,c,d,f,e,g,k,q){this.r=a;this.n=b;this.B=c;this.Oa=d;th"); + atom.Append("is.Na=f;this.v=e;this.Da=g;this.oa=m(k)?k:g;this.Qa=!!q}Dc.prototype.toString=func"); + atom.Append("tion(){return this.r};var Ec={};\nfunction K(a,b,c,d,f,e,g,k){if(Ec.hasOwnProperty"); + atom.Append("(a))throw Error(\"Function already created: \"+a+\".\");Ec[a]=new Dc(a,b,c,d,!1,f,"); + atom.Append("e,g,k)}K(\"boolean\",2,!1,!1,function(a,b){return uc(b,a)},1);K(\"ceiling\",1,!1,!"); + atom.Append("1,function(a,b){return Math.ceil(H(b,a))},1);K(\"concat\",3,!1,!1,function(a,b){re"); + atom.Append("turn xa(Ea(arguments,1),function(b,d){return b+I(d,a)},\"\")},2,null);K(\"contains"); + atom.Append("\",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return-1!=b.indexOf(a)},2);K(\"count"); + atom.Append("\",1,!1,!1,function(a,b){return b.evaluate(a).w()},1,1,!0);\nK(\"false\",2,!1,!1,f"); + atom.Append("unction(){return!1},0);K(\"floor\",1,!1,!1,function(a,b){return Math.floor(H(b,a))"); + atom.Append("},1);K(\"id\",4,!1,!1,function(a,b){function c(a){if(Vb){var b=f.all[a];if(b){if(b"); + atom.Append(".nodeType&&a==b.id)return b;if(b.length)return Aa(b,function(b){return a==b.id})}r"); + atom.Append("eturn null}return f.getElementById(a)}var d=a.l,f=9==d.nodeType?d:d.ownerDocument,"); + atom.Append("d=I(b,a).split(/\\s+/),e=[];r(d,function(a){(a=c(a))&&!Ba(e,a)&&e.push(a)});e.sort"); + atom.Append("(wb);var g=new D;r(e,function(a){g.add(a)});return g},1);\nK(\"lang\",2,!1,!1,func"); + atom.Append("tion(){return!1},1);K(\"last\",1,!0,!1,function(a){if(1!=arguments.length)throw Er"); + atom.Append("ror(\"Function last expects ()\");return a.s},0);K(\"local-name\",3,!1,!0,function"); + atom.Append("(a,b){var c=b?oc(b.evaluate(a)):a.l;return c?c.nodeName.toLowerCase():\"\"},0,1,!0"); + atom.Append(");K(\"name\",3,!1,!0,function(a,b){var c=b?oc(b.evaluate(a)):a.l;return c?c.nodeNa"); + atom.Append("me.toLowerCase():\"\"},0,1,!0);K(\"namespace-uri\",3,!0,!1,function(){return\"\"},"); + atom.Append("0,1,!0);\nK(\"normalize-space\",3,!1,!0,function(a,b){return(b?I(b,a):C(a.l)).repl"); + atom.Append("ace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);K(\"not\",2,!1,!1,fun"); + atom.Append("ction(a,b){return!uc(b,a)},1);K(\"number\",1,!1,!0,function(a,b){return b?H(b,a):+"); + atom.Append("C(a.l)},0,1);K(\"position\",1,!0,!1,function(a){return a.Ta},0);K(\"round\",1,!1,!"); + atom.Append("1,function(a,b){return Math.round(H(b,a))},1);K(\"starts-with\",2,!1,!1,function(a"); + atom.Append(",b,c){b=I(b,a);a=I(c,a);return 0==b.lastIndexOf(a,0)},2);K(\"string\",3,!1,!0,func"); + atom.Append("tion(a,b){return b?I(b,a):C(a.l)},0,1);\nK(\"string-length\",1,!1,!0,function(a,b)"); + atom.Append("{return(b?I(b,a):C(a.l)).length},0,1);K(\"substring\",3,!1,!1,function(a,b,c,d){c="); + atom.Append("H(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?H(d,a):Infinity;if(is"); + atom.Append("NaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.max(c,0);a=I(b,a);if"); + atom.Append("(Infinity==d)return a.substring(f);b=Math.round(d);return a.substring(f,c+b)},2,3)"); + atom.Append(";K(\"substring-after\",3,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);c=b.indexOf(a);re"); + atom.Append("turn-1==c?\"\":b.substring(c+a.length)},2);\nK(\"substring-before\",3,!1,!1,functi"); + atom.Append("on(a,b,c){b=I(b,a);a=I(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);K"); + atom.Append("(\"sum\",1,!1,!1,function(a,b){for(var c=qc(b.evaluate(a)),d=0,f=c.next();f;f=c.ne"); + atom.Append("xt())d+=+C(f);return d},1,1,!0);K(\"translate\",3,!1,!1,function(a,b,c,d){b=I(b,a)"); + atom.Append(";c=I(c,a);var f=I(d,a);a=[];for(d=0;da.length)th"); + atom.Append("row Error(\"Unclosed literal string\");return new Gc(a)}function ed(a){var b=a.b.n"); + atom.Append("ext(),c=b.indexOf(\":\");if(-1==c)return new gc(b);var d=b.substring(0,c);a=a.Ra(d"); + atom.Append(");if(!a)throw Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return "); + atom.Append("new gc(b,a)}\nfunction fd(a){var b,c=[],d;if(Mc(A(a.b))){b=a.b.next();d=A(a.b);if("); + atom.Append("\"/\"==b&&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/"); + atom.Append(".test(d)))return new Kc;d=new Kc;N(a,\"Missing next location step.\");b=gd(a,b);c."); + atom.Append("push(b)}else{a:{b=A(a.b);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable"); + atom.Append(" reference not allowed in HTML XPath\");case \"(\":a.b.next();b=$c(a);N(a,'unclose"); + atom.Append("d \"(\"');bd(a,\")\");break;case '\"':case \"'\":b=dd(a);break;default:if(isNaN(+b"); + atom.Append("))if(!Fc(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==A(a.b,\n1)){b=a.b.next();b=Ec[b]||nu"); + atom.Append("ll;a.b.next();for(d=[];\")\"!=A(a.b);){N(a,\"Missing function argument list.\");d."); + atom.Append("push($c(a));if(\",\"!=A(a.b))break;a.b.next()}N(a,\"Unclosed function argument lis"); + atom.Append("t.\");cd(a);b=new Cc(b,d)}else{b=null;break a}else b=new Hc(+a.b.next())}\"[\"==A("); + atom.Append("a.b)&&(d=new Pc(hd(a)),b=new Ac(b,d))}if(b)if(Mc(A(a.b)))d=b;else return b;else b="); + atom.Append("gd(a,\"/\"),d=new Lc,c.push(b)}for(;Mc(A(a.b));)b=a.b.next(),N(a,\"Missing next lo"); + atom.Append("cation step.\"),b=gd(a,b),c.push(b);return new Ic(d,c)}\nfunction gd(a,b){var c,d,"); + atom.Append("f;if(\"/\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\""); + atom.Append("==A(a.b))return d=new Qc(Wc,new jc(\"node\")),a.b.next(),d;if(\"..\"==A(a.b))retur"); + atom.Append("n d=new Qc(Vc,new jc(\"node\")),a.b.next(),d;var e;if(\"@\"==A(a.b))e=Jc,a.b.next("); + atom.Append("),N(a,\"Missing attribute name\");else if(\"::\"==A(a.b,1)){if(!/(?![0-9])[\\w]/.t"); + atom.Append("est(A(a.b).charAt(0)))throw Error(\"Bad token: \"+a.b.next());c=a.b.next();e=Uc[c]"); + atom.Append("||null;if(!e)throw Error(\"No axis with name: \"+c);a.b.next();N(a,\"Missing node "); + atom.Append("name\")}else e=\nRc;c=A(a.b);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==A(a.b"); + atom.Append(",1)){if(!Fc(c))throw Error(\"Invalid node type: \"+c);c=a.b.next();if(!Fc(c))throw"); + atom.Append(" Error(\"Invalid type name: \"+c);bd(a,\"(\");N(a,\"Bad nodetype\");f=A(a.b).charA"); + atom.Append("t(0);var g=null;if('\"'==f||\"'\"==f)g=dd(a);N(a,\"Bad nodetype\");cd(a);c=new jc("); + atom.Append("c,g)}else c=ed(a);else if(\"*\"==c)c=ed(a);else throw Error(\"Bad token: \"+a.b.ne"); + atom.Append("xt());f=new Pc(hd(a),e.Q);return d||new Qc(e,c,f,\"//\"==b)}\nfunction hd(a){for(v"); + atom.Append("ar b=[];\"[\"==A(a.b);){a.b.next();N(a,\"Missing predicate expression.\");var c=$c"); + atom.Append("(a);b.push(c);N(a,\"Unclosed predicate expression.\");bd(a,\"]\")}return b}functio"); + atom.Append("n ad(a){if(\"-\"==A(a.b))return a.b.next(),new Xc(ad(a));var b=fd(a);if(\"|\"!=A(a"); + atom.Append(".b))a=b;else{for(b=[b];\"|\"==a.b.next();)N(a,\"Missing next union location path."); + atom.Append("\"),b.push(fd(a));a.b.back();a=new Yc(b)}return a};function id(a){switch(a.nodeTyp"); + atom.Append("e){case 1:return la(jd,a);case 9:return id(a.documentElement);case 2:return a.owne"); + atom.Append("rElement?id(a.ownerElement):kd;case 11:case 10:case 6:case 12:return kd;default:re"); + atom.Append("turn a.parentNode?id(a.parentNode):kd}}function kd(){return null}function jd(a,b){"); + atom.Append("if(a.prefix==b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.get"); + atom.Append("AttributeNode(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a"); + atom.Append(".parentNode.nodeType?jd(a.parentNode,b):null};function ld(a,b){if(!a.length)throw "); + atom.Append("Error(\"Empty XPath expression.\");var c=$b(a);if(c.empty())throw Error(\"Invalid "); + atom.Append("XPath expression.\");b?da(b)||(b=ka(b.lookupNamespaceURI,b)):b=function(){return n"); + atom.Append("ull};var d=$c(new Zc(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());thi"); + atom.Append("s.evaluate=function(a,b){var c=d.evaluate(new Ub(a));return new O(c,b)}}\nfunction"); + atom.Append(" O(a,b){if(0==b)if(a instanceof D)b=4;else if(\"string\"==typeof a)b=2;else if(\"n"); + atom.Append("umber\"==typeof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpec"); + atom.Append("ted evaluation result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof D))throw Error(\"val"); + atom.Append("ue could not be converted to the specified type\");this.resultType=b;var c;switch("); + atom.Append("b){case 2:this.stringValue=a instanceof D?pc(a):\"\"+a;break;case 1:this.numberVal"); + atom.Append("ue=a instanceof D?+pc(a):+a;break;case 3:this.booleanValue=a instanceof D?0=c.length?null:c[e++]};this.snapshotItem=function(a){if(6!=b&&7!=b)thro"); + atom.Append("w Error(\"snapshotItem called with wrong result type\");return a>=\nc.length||0>a?"); + atom.Append("null:c[a]}}O.ANY_TYPE=0;O.NUMBER_TYPE=1;O.STRING_TYPE=2;O.BOOLEAN_TYPE=3;O.UNORDER"); + atom.Append("ED_NODE_ITERATOR_TYPE=4;O.ORDERED_NODE_ITERATOR_TYPE=5;O.UNORDERED_NODE_SNAPSHOT_T"); + atom.Append("YPE=6;O.ORDERED_NODE_SNAPSHOT_TYPE=7;O.ANY_UNORDERED_NODE_TYPE=8;O.FIRST_ORDERED_N"); + atom.Append("ODE_TYPE=9;function md(a){this.lookupNamespaceURI=id(a)}\nfunction nd(a){a=a||l;va"); + atom.Append("r b=a.document;b.evaluate||(a.XPathResult=O,b.evaluate=function(a,b,f,e){return(ne"); + atom.Append("w ld(a,f)).evaluate(b,e)},b.createExpression=function(a,b){return new ld(a,b)},b.c"); + atom.Append("reateNSResolver=function(a){return new md(a)})};var Q={};Q.Ma=function(){var a={Ya"); + atom.Append(":\"http://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}();Q.v=func"); + atom.Append("tion(a,b,c){var d=z(a);(v||Rb)&&nd(rb(d));try{var f=d.createNSResolver?d.createNSR"); + atom.Append("esolver(d.documentElement):Q.Ma;return v&&!db(7)?d.evaluate.call(d,b,a,f,c,null):d"); + atom.Append(".evaluate(b,a,f,c,null)}catch(e){if(!x||\"NS_ERROR_ILLEGAL_VALUE\"!=e.name)throw n"); + atom.Append("ew s(32,\"Unable to locate an element with the xpath expression \"+b+\" because of"); + atom.Append(" the following error:\\n\"+e);}};\nQ.ia=function(a,b){if(!a||1!=a.nodeType)throw n"); + atom.Append("ew s(32,'The result of the xpath expression \"'+b+'\" is: '+a+\". It should be an "); + atom.Append("element.\");};Q.G=function(a,b){var c=function(){var c=Q.v(b,a,9);return c?(c=c.si"); + atom.Append("ngleNodeValue,t?c:c||null):b.selectSingleNode?(c=z(b),c.setProperty&&c.setProperty"); + atom.Append("(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||Q.ia(c,"); + atom.Append("a);return c};\nQ.t=function(a,b){var c=function(){var c=Q.v(b,a,7);if(c){var f=c.s"); + atom.Append("napshotLength;t&&!m(f)&&Q.ia(null,a);for(var e=[],g=0;g=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x"); + atom.Append(">=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=funct"); + atom.Append("ion(a,b,c,d){ea(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this"); + atom.Append(".left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this"); + atom.Append("};h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);"); + atom.Append("this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};h.f"); + atom.Append("loor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);th"); + atom.Append("is.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};\nh"); + atom.Append(".round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);"); + atom.Append("this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};h"); + atom.Append(".translate=function(a,b){a instanceof ib?(this.left+=a.x,this.right+=a.x,this.top+"); + atom.Append("=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,ca(b)&&(this.top+=b,this.bottom"); + atom.Append("+=b));return this};h.scale=function(a,b){var c=ca(b)?b:a;this.left*=a;this.right*="); + atom.Append("a;this.top*=c;this.bottom*=c;return this};function S(a,b,c,d){this.left=a;this.top"); + atom.Append("=b;this.width=c;this.height=d}h=S.prototype;h.clone=function(){return new S(this.l"); + atom.Append("eft,this.top,this.width,this.height)};h.toString=function(){return\"(\"+this.left+"); + atom.Append("\", \"+this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};h.contains=functio"); + atom.Append("n(a){return a instanceof S?this.left<=a.left&&this.left+this.width>=a.left+a.width"); + atom.Append("&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this."); + atom.Append("left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};\nh.ceil=function(){thi"); + atom.Append("s.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this"); + atom.Append(".width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.le"); + atom.Append("ft=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this."); + atom.Append("width);this.height=Math.floor(this.height);return this};h.round=function(){this.le"); + atom.Append("ft=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this."); + atom.Append("width);this.height=Math.round(this.height);return this};\nh.translate=function(a,b"); + atom.Append("){a instanceof ib?(this.left+=a.x,this.top+=a.y):(this.left+=a,ca(b)&&(this.top+=b"); + atom.Append("));return this};h.scale=function(a,b){var c=ca(b)?b:a;this.left*=a;this.width*=a;t"); + atom.Append("his.top*=c;this.height*=c;return this};function Dd(a,b){var c=z(a);return c.defaul"); + atom.Append("tView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?"); + atom.Append("c[b]||c.getPropertyValue(b)||\"\":\"\"}function Ed(a){a=a?z(a):document;var b;(b=!"); + atom.Append("v||eb(9))||(b=\"CSS1Compat\"==kb(a).K.compatMode);return b?a.documentElement:a.bod"); + atom.Append("y}var Fd={thin:2,medium:4,thick:6};\nfunction Gd(a,b){if(\"none\"==(a.currentStyle"); + atom.Append("?a.currentStyle[b+\"Style\"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"); + atom.Append("\"Width\"]:null,d;if(c in Fd)d=Fd[c];else if(/^\\d+px?$/.test(c))d=parseInt(c,10);"); + atom.Append("else{d=a.style.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.l"); + atom.Append("eft;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=f;d=c}re"); + atom.Append("turn d};function Hd(a){var b;a:{a=z(a);try{b=a&&a.activeElement;break a}catch(c){}"); + atom.Append("b=null}return v&&b&&\"undefined\"===typeof b.nodeType?null:b}function T(a,b){retur"); + atom.Append("n!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Id(a){var b;if(b=Jd"); + atom.Append("(a,!0)&&Kd(a))b=!(v||t||x&&!R(\"1.9.2\")?0:\"none\"==U(a,\"pointer-events\"));retu"); + atom.Append("rn b}function Ld(a,b){var c;if(c=yd&&\"value\"==b&&T(a,\"OPTION\"))c=null===Md(a,"); + atom.Append("\"value\");c?(c=[],Bb(a,c,!1),c=c.join(\"\")):c=a[b];return c}var Nd=/[;]+(?=(?:(?"); + atom.Append(":[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]"); + atom.Append("*$)/;\nfunction Od(a){var b=[];r(a.split(Nd),function(a){var d=a.indexOf(\":\");0<"); + atom.Append("d&&(a=[a.slice(0,d),a.slice(d+1)],2==a.length&&b.push(a[0].toLowerCase(),\":\",a[1"); + atom.Append("],\";\"))});b=b.join(\"\");b=\";\"==b.charAt(b.length-1)?b:b+\";\";return t?b.repl"); + atom.Append("ace(/\\w+:;/g,\"\"):b}function Md(a,b){b=b.toLowerCase();if(\"style\"==b)return Od"); + atom.Append("(a.style.cssText);if(yd&&\"value\"==b&&T(a,\"INPUT\"))return a.value;if(Ad&&!0===a"); + atom.Append("[b])return String(a.getAttribute(b));var c=a.getAttributeNode(b);return c&&c.speci"); + atom.Append("fied?c.value:null}var Pd=\"BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA\".split(\""); + atom.Append(" \");\nfunction Kd(a){var b=a.tagName.toUpperCase();return Ba(Pd,b)?Ld(a,\"disable"); + atom.Append("d\")?!1:a.parentNode&&1==a.parentNode.nodeType&&\"OPTGROUP\"==b||\"OPTION\"==b?Kd("); + atom.Append("a.parentNode):!Cb(a,function(a){var b=a.parentNode;if(b&&T(b,\"FIELDSET\")&&Ld(b,"); + atom.Append("\"disabled\")){if(!T(a,\"LEGEND\"))return!0;for(;a=void 0!=a.previousElementSiblin"); + atom.Append("g?a.previousElementSibling:ub(a.previousSibling);)if(T(a,\"LEGEND\"))return!0}retu"); + atom.Append("rn!1},!0):!0}var Qd=\"text search tel url email password number\".split(\" \");\nf"); + atom.Append("unction Rd(a){function b(a){return\"inherit\"==a.contentEditable?(a=Sd(a))?b(a):!1"); + atom.Append(":\"true\"==a.contentEditable}return m(a.contentEditable)?!v&&m(a.isContentEditable"); + atom.Append(")?a.isContentEditable:b(a):!1}function Td(a){return(T(a,\"TEXTAREA\")?!0:T(a,\"INP"); + atom.Append("UT\")?Ba(Qd,a.type.toLowerCase()):Rd(a)?!0:!1)&&!Ld(a,\"readOnly\")}function Sd(a)"); + atom.Append("{for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNod"); + atom.Append("e;return T(a)?a:null}\nfunction U(a,b){var c=ta(b);if(\"float\"==c||\"cssFloat\"=="); + atom.Append("c||\"styleFloat\"==c)c=Ad?\"styleFloat\":\"cssFloat\";var d=Dd(a,c)||Ud(a,c);if(nu"); + atom.Append("ll===d)d=null;else if(Ba(Ga,c)){b:{var f=d.match(Ja);if(f){var c=Number(f[1]),e=Nu"); + atom.Append("mber(f[2]),g=Number(f[3]),f=Number(f[4]);if(0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&255>"); + atom.Append("=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if(!c)b:{if(g=d.match(Ka))if(c=Number("); + atom.Append("g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c"); + atom.Append(",e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();\ne=Fa[c.toLowerCase()];if(!e&&("); + atom.Append("e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e=e.replace(Ha,\"#$1$1$2$2$3$3\")),!I"); + atom.Append("a.test(e))){c=null;break b}c=[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16"); + atom.Append("),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}return d}func"); + atom.Append("tion Ud(a,b){var c=a.currentStyle||a.style,d=c[b];!m(d)&&da(c.getPropertyValue)&&("); + atom.Append("d=c.getPropertyValue(b));return\"inherit\"!=d?m(d)?d:null:(c=Sd(a))?Ud(c,b):null}"); + atom.Append("\nfunction Jd(a,b){function c(a){if(\"none\"==U(a,\"display\"))return!1;a=Sd(a);re"); + atom.Append("turn!a||c(a)}function d(a){var b=Vd(a);return 0=E.left+E.width;E=e.top>=E.top+E.he"); + atom.Append("ight;if(P&&\"hidden\"==u.x||E&&\"hidden\"==u.y)return Xd;if(P&&\"visible\"!=u.x||E"); + atom.Append("&&\"visible\"!=u.y){if(w&&(u=f(B),e.left>=k.scrollWidth-u.x||e.right>=k.scrollHeig"); + atom.Append("ht-u.y))return Xd;e=Wd(B);return e==Xd?Xd:\"scroll\"}}}return\"none\"}var ae=/matr"); + atom.Append("ix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+"); + atom.Append(")(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction Vd(a){function b(a){var c=rb(z(a))."); + atom.Append("getComputedStyle(a,null).MozTransform.match(ae);if(c){var d=parseFloat(c[1]),f=par"); + atom.Append("seFloat(c[2]),w=parseFloat(c[3]),B=parseFloat(c[4]),u=parseFloat(c[5]),c=parseFloa"); + atom.Append("t(c[6]),E=e.left+e.width,P=e.top+e.height,ia=e.left*d,d=E*d,nb=e.left*f,f=E*f,ob=e"); + atom.Append(".top*w,w=P*w,pb=e.top*B,E=P*B,P=ia+ob+u,B=nb+pb+c,ob=d+ob+u,pb=f+pb+c,ia=ia+w+u,nb"); + atom.Append("=nb+E+c,u=d+w+u,c=f+E+c;e.left=Math.min(P,ob,ia,u);e.top=Math.min(B,pb,nb,c);u=Mat"); + atom.Append("h.max(P,ob,ia,u);c=Math.max(B,pb,nb,c);e.width=\nu-e.left;e.height=c-e.top}(a=Sd(a"); + atom.Append("))&&b(a)}var c=Yd(a);if(c)return c.rect;if(T(a,\"HTML\"))return c=z(a),a=mb(rb(c)|"); + atom.Append("|window),new S(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catch(f"); + atom.Append("){return new S(0,0,0,0)}var e=new S(d.left,d.top,d.right-d.left,d.bottom-d.top);v&"); + atom.Append("&a.ownerDocument.body&&(c=z(a),e.left-=c.documentElement.clientLeft+c.body.clientL"); + atom.Append("eft,e.top-=c.documentElement.clientTop+c.body.clientTop);t&&(0==e.width&&02*th"); + atom.Append("is.N&&pf(this),!0):!1};function pf(a){if(a.N!=a.j.length){for(var b=0,c=0;b\");X(191,\"/\",\"?\");X(192,\"`\",\"~\");X(219,\"[\",\"{\");X(220,\""); + atom.Append("\\\\\",\"|\");X(221,\"]\",\"}\");var wg=X({d:59,e:186,opera:59},\";\",\":\");X(222"); + atom.Append(",\"'\",'\"');var xg=[Df,Cf,Rf,Y],yg=new of;yg.set(1,Y);yg.set(2,Cf);yg.set(4,Df);y"); + atom.Append("g.set(8,Rf);var zg=function(a){var b=new of;r(qf(a),function(c){b.set(a.get(c).cod"); + atom.Append("e,c)});return b}(yg);function wf(a,b,c){if(Ba(xg,b)){var d=zg.get(b.code),f=a.T;f."); + atom.Append("ca=c?f.ca|d:f.ca&~d}c?a.da.add(b):a.da.remove(b)}var Ag=v||t?\"\\r\\n\":\"\\n\";vf"); + atom.Append(".prototype.g=function(a){return this.da.contains(a)};\nfunction Bg(a,b){if(Ba(xg,b"); + atom.Append(")&&a.g(b))throw new s(13,\"Cannot press a modifier key that is already pressed.\")"); + atom.Append(";var c=null!==b.code&&Cg(a,$e,b);if((c||x)&&(!Dg(b)||Cg(a,Se,b,!c))&&c&&(Eg(a,b),a"); + atom.Append(".ka))if(b.J){if(!Fg){var c=Gg(a,b),d=kf(a.c(),!0)[0]+1;Hg(a.c())?(nf(a.c(),c),ff(a"); + atom.Append(".c(),d)):a.c().value+=c;y&&a.L(Ye);Ad||a.L(Xe);a.q=d}}else switch(b){case Bf:Fg||("); + atom.Append("y&&a.L(Ye),T(a.c(),\"TEXTAREA\")&&(c=kf(a.c(),!0)[0]+Ag.length,Hg(a.c())?(nf(a.c()"); + atom.Append(",Ag),ff(a.c(),c)):a.c().value+=Ag,v||a.L(Xe),a.q=c));break;case zf:case Qf:Fg||\n("); + atom.Append("Ig(a.c()),c=kf(a.c(),!1),c[0]==c[1]&&(b==zf?(ff(a.c(),c[1]-1),lf(a.c(),c[1])):lf(a"); + atom.Append(".c(),c[1]+1)),c=kf(a.c(),!1),c=!(c[0]==a.c().value.length||0==c[1]),nf(a.c(),\"\")"); + atom.Append(",(!v&&c||x&&b==zf)&&a.L(Xe),c=kf(a.c(),!1),a.q=c[1]);break;case Lf:case Nf:Ig(a.c("); + atom.Append("));var c=a.c(),f=kf(c,!0)[0],e=kf(c,!1)[1],g=d=0;b==Lf?a.g(Y)?a.q==f?(d=Math.max(f"); + atom.Append("-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1,0):f:a.g(Y)?a.q==e?(d=f,f=g=Math."); + atom.Append("min(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?Math.min(e+1,c.value.length):e;a.g"); + atom.Append("(Y)?(ff(c,\nd),lf(c,g)):mf(c,f);a.q=f;break;case Kf:case Jf:Ig(a.c()),c=a.c(),d=kf"); + atom.Append("(c,!0)[0],g=kf(c,!1)[1],b==Kf?(a.g(Y)?(ff(c,0),lf(c,a.q==d?g:d)):mf(c,0),a.q=0):(a"); + atom.Append(".g(Y)?(a.q==d&&ff(c,g),lf(c,c.value.length)):mf(c,c.value.length),a.q=c.value.leng"); + atom.Append("th)}wf(a,b,!0)}function Dg(a){if(a.J||a==Bf)return!0;if(y)return!1;if(v)return a=="); + atom.Append("Ff;switch(a){case Y:case Cf:case Df:return!1;case Rf:case Sf:case Tf:return x;defa"); + atom.Append("ult:return!0}}\nfunction Eg(a,b){if(b==Bf&&!x&&T(a.c(),\"INPUT\")){var c=Cb(a.c(),"); + atom.Append("Je,!0);if(c){var d=c.getElementsByTagName(\"input\");(ya(d,function(a){a:{if(T(a,"); + atom.Append("\"INPUT\")){var b=a.type.toLowerCase();if(\"submit\"==b||\"image\"==b){a=!0;break "); + atom.Append("a}}if(T(a,\"BUTTON\")&&(b=a.type.toLowerCase(),\"submit\"==b)){a=!0;break a}a=!1}r"); + atom.Append("eturn a})||1==d.length||y&&!R(534))&&Ke(c)}}}function Jg(a,b){if(!a.g(b))throw new"); + atom.Append(" s(13,\"Cannot release a key that is not pressed. (\"+b.code+\")\");null===b.code|"); + atom.Append("|Cg(a,af,b);wf(a,b,!1)}\nfunction Gg(a,b){if(!b.J)throw new s(13,\"not a character"); + atom.Append(" key\");return a.g(Y)?b.Ua:b.J}var Fg=x&&!R(12);function Ig(a){try{a.selectionStar"); + atom.Append("t}catch(b){if(-1!=b.message.indexOf(\"does not support selection.\"))throw Error(b"); + atom.Append(".message+\" (For more information, see https://code.google.com/p/chromium/issues/d"); + atom.Append("etail?id=330456)\");throw b;}}function Hg(a){try{Ig(a)}catch(b){return!1}return!0}"); + atom.Append("\nfunction Cg(a,b,c,d){if(null===c.code)throw new s(13,\"Key must have a keycode t"); + atom.Append("o be fired.\");c={altKey:a.g(Df),ctrlKey:a.g(Cf),metaKey:a.g(Rf),shiftKey:a.g(Y),k"); + atom.Append("eyCode:c.code,charCode:c.J&&b==Se?Gg(a,c).charCodeAt(0):0,preventDefault:!!d};retu"); + atom.Append("rn a.la(b,c)}function Kg(a,b){qe(a,b);a.ka=Td(b);var c=Ge(a);a.ka&&c&&(mf(b,b.valu"); + atom.Append("e.length),a.q=b.value.length)}vf.prototype.ya=function(){return{pressed:this.da.O("); + atom.Append("),currentPos:this.q}};function Lg(a,b,c){pe.call(this,b,c);this.W=this.A=null;this"); + atom.Append(".D=new ib(0,0);this.$=this.qa=!1;if(a){ca(a.buttonPressed)&&(this.A=a.buttonPresse"); + atom.Append("d);try{T(a.elementPressed)&&(this.W=a.elementPressed)}catch(d){this.A=null}this.D="); + atom.Append("new ib(a.clientXY.x,a.clientXY.y);this.qa=!!a.nextClickIsDoubleClick;this.$=!!a.ha"); + atom.Append("sEverInteracted;try{a.element&&T(a.element)&&qe(this,a.element)}catch(f){this.A=nu"); + atom.Append("ll}}}p(Lg,pe);var Z={};\nAd?(Z[ve]=[0,0,0,null],Z[Ce]=[null,null,0,null],Z[Fe]=[1,"); + atom.Append("4,2,null],Z[ue]=[0,0,0,0],Z[De]=[1,4,2,0]):y||zd?(Z[ve]=[0,1,2,null],Z[Ce]=[null,n"); + atom.Append("ull,2,null],Z[Fe]=[0,1,2,null],Z[ue]=[0,1,2,0],Z[De]=[0,1,2,0]):(Z[ve]=[0,1,2,null"); + atom.Append("],Z[Ce]=[null,null,2,null],Z[Fe]=[0,1,2,null],Z[ue]=[0,0,0,0],Z[De]=[0,0,0,0]);Bd&"); + atom.Append("&(Z[Be]=Z[Fe],Z[ef]=Z[Fe],Z[Ee]=[-1,-1,-1,-1],Z[Ae]=Z[Ee],Z[ze]=Z[Ee]);Z[Ze]=Z[ve]"); + atom.Append(";Z[we]=Z[Fe];Z[te]=Z[ue];var Mg={};Mg[we]=Be;Mg[De]=Ee;Mg[ue]=Ae;Mg[te]=ze;Mg[Fe]="); + atom.Append("ef;\nLg.prototype.move=function(a,b){var c=Id(a),d=Vd(a);this.D.x=b.x+d.left;this."); + atom.Append("D.y=b.y+d.top;d=this.c();if(a!=d){try{rb(z(d)).closed&&(d=null)}catch(f){d=null}if"); + atom.Append("(d){var e=d===na.document.documentElement||d===na.document.body,d=!this.$&&e?null:"); + atom.Append("d;Ng(this,ue,a)}qe(this,a);v||Ng(this,te,d,null,c)}Ng(this,De,null,null,c);v&&a!=d"); + atom.Append("&&Ng(this,te,d,null,c);this.qa=!1};\nLg.prototype.scroll=function(a){if(0==a)throw"); + atom.Append(" new s(13,\"Must scroll a non-zero number of ticks.\");for(var b=0=a){var b=$.a[a];if(null===b)g.push(k=f()),e&&(k.Ea=!1,g.push(k=f()));"); + atom.Append("else if(m(b))k.keys.push(b);else throw Error(\"Unsupported WebDriver key: \\\\u\"+"); + atom.Append("a.charCodeAt(0).toString(16));}else switch(a){case \"\\n\":k.keys.push(Bf);break;c"); + atom.Append("ase \"\\t\":k.keys.push(Af);break;case \"\\b\":k.keys.push(zf);break;default:k.key"); + atom.Append("s.push(a)}})});r(g,function(b){Pg(a,b.keys,c,b.Ea)})}\n$.a={};$.a[\"\\ue000\"]=nul"); + atom.Append("l;$.a[\"\\ue003\"]=zf;$.a[\"\\ue004\"]=Af;$.a[\"\\ue006\"]=Bf;$.a[\"\\ue007\"]=Bf;"); + atom.Append("$.a[\"\\ue008\"]=Y;$.a[\"\\ue009\"]=Cf;$.a[\"\\ue00a\"]=Df;$.a[\"\\ue00b\"]=Ef;$.a"); + atom.Append("[\"\\ue00c\"]=Ff;$.a[\"\\ue00d\"]=Gf;$.a[\"\\ue00e\"]=Hf;$.a[\"\\ue00f\"]=If;$.a["); + atom.Append("\"\\ue010\"]=Jf;$.a[\"\\ue011\"]=Kf;$.a[\"\\ue012\"]=Lf;$.a[\"\\ue013\"]=Mf;$.a[\""); + atom.Append("\\ue014\"]=Nf;$.a[\"\\ue015\"]=Of;$.a[\"\\ue016\"]=Pf;$.a[\"\\ue017\"]=Qf;$.a[\""); + atom.Append("\\ue018\"]=wg;$.a[\"\\ue019\"]=ug;$.a[\"\\ue01a\"]=Uf;$.a[\"\\ue01b\"]=Vf;$.a[\""); + atom.Append("\\ue01c\"]=Wf;$.a[\"\\ue01d\"]=Xf;$.a[\"\\ue01e\"]=Yf;$.a[\"\\ue01f\"]=Zf;\n$.a[\""); + atom.Append("\\ue020\"]=$f;$.a[\"\\ue021\"]=ag;$.a[\"\\ue022\"]=bg;$.a[\"\\ue023\"]=cg;$.a[\""); + atom.Append("\\ue024\"]=dg;$.a[\"\\ue025\"]=eg;$.a[\"\\ue027\"]=fg;$.a[\"\\ue028\"]=gg;$.a[\""); + atom.Append("\\ue029\"]=hg;$.a[\"\\ue026\"]=vg;$.a[\"\\ue031\"]=ig;$.a[\"\\ue032\"]=jg;$.a[\""); + atom.Append("\\ue033\"]=kg;$.a[\"\\ue034\"]=lg;$.a[\"\\ue035\"]=mg;$.a[\"\\ue036\"]=ng;$.a[\""); + atom.Append("\\ue037\"]=og;$.a[\"\\ue038\"]=pg;$.a[\"\\ue039\"]=qg;$.a[\"\\ue03a\"]=rg;$.a[\""); + atom.Append("\\ue03b\"]=sg;$.a[\"\\ue03c\"]=tg;$.a[\"\\ue03d\"]=Rf;function Rg(){this.ea=void 0"); + atom.Append("}\nfunction Sg(a,b,c){switch(typeof b){case \"string\":Tg(b,c);break;case \"number"); + atom.Append("\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b);brea"); + atom.Append("k;case \"undefined\":c.push(\"null\");break;case \"object\":if(null==b){c.push(\"n"); + atom.Append("ull\");break}if(\"array\"==aa(b)){var d=b.length;c.push(\"[\");for(var f=\"\",e=0;"); + atom.Append("eb?f+=\"000\":256>b?f+=\"00\":4096>b&&(f+=\"0"); + atom.Append("\");return Ug[a]=f+b.toString(16)}),'\"')};y||t||x&&R(3.5)||v&&R(8);function Wg(a)"); + atom.Append("{switch(aa(a)){case \"string\":case \"number\":case \"boolean\":return a;case \"fu"); + atom.Append("nction\":return a.toString();case \"array\":return wa(a,Wg);case \"object\":if(\"n"); + atom.Append("odeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Xg(a);return b}i"); + atom.Append("f(\"document\"in a)return b={},b.WINDOW=Xg(a),b;if(ba(a))return wa(a,Wg);a=Ra(a,fu"); + atom.Append("nction(a,b){return ca(b)||n(b)});return Sa(a,Wg);default:return null}}\nfunction Y"); + atom.Append("g(a,b){return\"array\"==aa(a)?wa(a,function(a){return Yg(a,b)}):ea(a)?\"function\""); + atom.Append("==typeof a?a:\"ELEMENT\"in a?Zg(a.ELEMENT,b):\"WINDOW\"in a?Zg(a.WINDOW,b):Sa(a,fu"); + atom.Append("nction(a){return Yg(a,b)}):a}function $g(a){a=a||document;var b=a.$wdc_;b||(b=a.$w"); + atom.Append("dc_={},b.ra=ma());b.ra||(b.ra=ma());return b}function Xg(a){var b=$g(a.ownerDocume"); + atom.Append("nt),c=Ua(b,function(b){return b==a});c||(c=\":wdc:\"+b.ra++,b[c]=a);return c}\nfun"); + atom.Append("ction Zg(a,b){a=decodeURIComponent(a);var c=b||document,d=$g(c);if(!(a in d))throw"); + atom.Append(" new s(10,\"Element does not exist in cache\");var f=d[a];if(\"setInterval\"in f){"); + atom.Append("if(f.closed)throw delete d[a],new s(23,\"Window has been closed.\");return f}for(v"); + atom.Append("ar e=f;e;){if(e==c.documentElement)return f;e=e.parentNode}delete d[a];throw new s"); + atom.Append("(10,\"Element is no longer attached to the DOM\");};function ah(a){a=new Lg(a);if("); + atom.Append("null!==a.A)throw new s(13,\"Cannot press more then one button or an already presse"); + atom.Append("d button.\");a.A=0;a.W=a.c();var b;var c=x&&!td(4);if((y||c)&&(T(a.c(),\"OPTION\")"); + atom.Append("||T(a.c(),\"SELECT\")))b=!0;else{(c=x||v)&&(b=Hd(a.c()));var d=Ng(a,we);b=d&&c&&b!"); + atom.Append("=Hd(a.c())?!1:d}b&&(Bd&&0==a.A&&T(a.W,\"OPTION\")&&a.Y(df,a.D,0,1,MSPointerEvent.M"); + atom.Append("SPOINTER_TYPE_MOUSE,!0),Ge(a));return a.ya()};function bh(a,b){var c=[a],d;try{var"); + atom.Append(" f=b?Zg(b.WINDOW):window,e=Yg(c,f.document),g=ah.apply(null,e);d={status:0,value:W"); + atom.Append("g(g)}}catch(k){d={status:\"code\"in k?k.code:13,value:{message:k.message}}}c=[];Sg"); + atom.Append("(new Rg,d,c);return c.join(\"\")}var ch=[\"_\"],dh=l;ch[0]in dh||!dh.execScript||d"); + atom.Append("h.execScript(\"var \"+ch[0]);for(var eh;ch.length&&(eh=ch.shift());)!ch.length&&m("); + atom.Append("bh)?dh[eh]=bh:dh=dh[eh]?dh[eh]:dh[eh]={};; return this._.apply(null,arguments);}.a"); + atom.Append("pply({navigator:typeof window!=undefined?window.navigator:null,document:typeof win"); + atom.Append("dow!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string MouseUp + { + get + { + const string atomName = "MouseUp"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function aa(a){return void 0!==a}\nfunct"); + atom.Append("ion ba(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"arra"); + atom.Append("y\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"["); + atom.Append("object Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof "); + atom.Append("a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumer"); + atom.Append("able&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\""); + atom.Append("==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!"); + atom.Append("a.propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=ba(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction m(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==ba(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ka(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ua(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var va=Array.prototype;function p(a,b,c){for(va"); + atom.Append("r d=a.length,f=m(a)?a.split(\"\"):a,e=0;ec?null:m(a)?a.charAt(c):a[c]}\nfunction Ca(a,b){var c;a:if(m(a))c=m(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?va.slice.call(a,b):va.slice.call(a,b,"); + atom.Append("c)};var Ga={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ha=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ia=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ja=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ka=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,La=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function r(a,b){this.code=a;this.state=Ma[a]||Na;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}n("); + atom.Append("r,Error);\nvar Na=\"unknown error\",Ma={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};Ma[13]=Na;Ma[9]=\"unknown command\";r.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var Oa;a:{var Pa=l.navigator;if(Pa){var Qa=Pa.user"); + atom.Append("Agent;if(Qa){Oa=Qa;break a}}Oa=\"\"}function Ra(a){return-1!=Oa.indexOf(a)};functi"); + atom.Append("on Sa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}fun"); + atom.Append("ction Ta(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function"); + atom.Append(" Ua(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Va(a,b){for(var c i"); + atom.Append("n a)if(b.call(void 0,a[c],c,a))return c};var Wa,Xa,s=Ra(\"Opera\")||Ra(\"OPR\"),t="); + atom.Append("Ra(\"Trident\")||Ra(\"MSIE\"),v=Ra(\"Gecko\")&&-1==Oa.toLowerCase().indexOf(\"webk"); + atom.Append("it\")&&!(Ra(\"Trident\")||Ra(\"MSIE\")),x=-1!=Oa.toLowerCase().indexOf(\"webkit\")"); + atom.Append(",Ya=x&&Ra(\"Mobile\"),Za,$a=l.navigator||null;Za=$a&&$a.platform||\"\";Wa=-1!=Za.i"); + atom.Append("ndexOf(\"Mac\");Xa=-1!=Za.indexOf(\"Win\");var ab=-1!=Za.indexOf(\"Linux\");functi"); + atom.Append("on bb(){var a=l.document;return a?a.documentMode:void 0}\nvar cb=function(){var a="); + atom.Append("\"\",b;if(s&&l.opera)return a=l.opera.version,ea(a)?a():a;v?b=/rv\\:([^\\);]+)(\\)"); + atom.Append("|;)/:t?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:x&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b"); + atom.Append(".exec(Oa))?a[1]:\"\");return t&&(b=bb(),b>parseFloat(a))?String(b):a}(),db={};func"); + atom.Append("tion eb(a){return db[a]||(db[a]=0<=sa(cb,a))}function fb(a){return t&&gb>=a}var hb"); + atom.Append("=l.document,gb=hb&&t?bb()||(\"CSS1Compat\"==hb.compatMode?parseInt(cb,10):5):void "); + atom.Append("0;!v&&!t||t&&fb(9)||v&&eb(\"1.9.1\");t&&eb(\"9\");function ib(a,b,c){return Math.m"); + atom.Append("in(Math.max(a,b),c)};function jb(a,b){this.x=aa(a)?a:0;this.y=aa(b)?b:0}h=jb.proto"); + atom.Append("type;h.clone=function(){return new jb(this.x,this.y)};h.toString=function(){return"); + atom.Append("\"(\"+this.x+\", \"+this.y+\")\"};h.ceil=function(){this.x=Math.ceil(this.x);this."); + atom.Append("y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this"); + atom.Append(".y=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);th"); + atom.Append("is.y=Math.round(this.y);return this};\nh.translate=function(a,b){a instanceof jb?("); + atom.Append("this.x+=a.x,this.y+=a.y):(this.x+=a,da(b)&&(this.y+=b));return this};h.scale=funct"); + atom.Append("ion(a,b){var c=da(b)?b:a;this.x*=a;this.y*=c;return this};function kb(a,b){this.wi"); + atom.Append("dth=a;this.height=b}h=kb.prototype;h.clone=function(){return new kb(this.width,thi"); + atom.Append("s.height)};h.toString=function(){return\"(\"+this.width+\" x \"+this.height+\")\"}"); + atom.Append(";h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.hei"); + atom.Append("ght);return this};h.floor=function(){this.width=Math.floor(this.width);this.height"); + atom.Append("=Math.floor(this.height);return this};h.round=function(){this.width=Math.round(thi"); + atom.Append("s.width);this.height=Math.round(this.height);return this};\nh.scale=function(a,b){"); + atom.Append("var c=da(b)?b:a;this.width*=a;this.height*=c;return this};function lb(a){return a?"); + atom.Append("new mb(y(a)):pa||(pa=new mb)}function nb(a){a=a.document;a=\"CSS1Compat\"==a.compa"); + atom.Append("tMode?a.documentElement:a.body;return new kb(a.clientWidth,a.clientHeight)}functio"); + atom.Append("n ob(a){return x||\"CSS1Compat\"!=a.compatMode?a.body||a.documentElement:a.documen"); + atom.Append("tElement}function z(a){return a?a.parentWindow||a.defaultView:window}\nfunction sb"); + atom.Append("(a,b,c){function d(c){c&&b.appendChild(m(c)?a.createTextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),bc=/^\\s/;function A(a,b){return a.ta[a.ca+(b||0)]}Z"); + atom.Append("b.prototype.next=function(){return this.ta[this.ca++]};Zb.prototype.back=function("); + atom.Append("){this.ca--};Zb.prototype.empty=function(){return this.ta.length<=this.ca};functio"); + atom.Append("n cc(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.inne"); + atom.Append("rText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Vb&&\"title\"==a.n"); + atom.Append("odeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:"); + atom.Append("a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Vb&&\""); + atom.Append("title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for("); + atom.Append(";c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction dc(a,b,"); + atom.Append("c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Wb&&\"cl"); + atom.Append("ass\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)"); + atom.Append("==c}function ec(a,b,c,d,f){return(Vb?fc:gc).call(null,a,b,m(c)?c:null,m(d)?d:null,"); + atom.Append("f||new C)}\nfunction fc(a,b,c,d,f){if(a instanceof hc||8==a.g||c&&null===a.g){var "); + atom.Append("e=b.all;if(!e)return f;a=ic(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a),!e))retur"); + atom.Append("n f;if(c){for(var g=[],k=0;b=e[k++];)dc(b,c,d)&&g.push(b);e=g}for(k=0;b=e[k++];)\""); + atom.Append("*\"==a&&\"!\"==b.tagName||f.add(b);return f}jc(a,b,c,d,f);return f}\nfunction gc(a"); + atom.Append(",b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!t?(b=b.getElementsByName(d),p(b,fu"); + atom.Append("nction(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b"); + atom.Append(".getElementsByClassName(d),p(b,function(b){b.className==d&&a.matches(b)&&f.add(b)}"); + atom.Append(")):a instanceof kc?jc(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElementsByTagName"); + atom.Append("(a.getName()),p(b,function(a){dc(a,c,d)&&f.add(a)}));return f}\nfunction lc(a,b,c,"); + atom.Append("d,f){var e;if((a instanceof hc||8==a.g||c&&null===a.g)&&(e=b.childNodes)){var g=ic"); + atom.Append("(a);if(\"*\"!=g&&(e=wa(e,function(a){return a.tagName&&a.tagName.toLowerCase()==g}"); + atom.Append("),!e))return f;c&&(e=wa(e,function(a){return dc(a,c,d)}));p(e,function(a){\"*\"==g"); + atom.Append("&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}return mc(a,b,c"); + atom.Append(",d,f)}function mc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)dc(b,c,d)&&a.mat"); + atom.Append("ches(b)&&f.add(b);return f}\nfunction jc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextS"); + atom.Append("ibling)dc(b,c,d)&&a.matches(b)&&f.add(b),jc(a,b,c,d,f)}function ic(a){if(a instanc"); + atom.Append("eof kc){if(8==a.g)return\"!\";if(null===a.g)return\"*\"}return a.getName()};functi"); + atom.Append("on C(){this.u=this.o=null;this.U=0}function nc(a){this.R=a;this.next=this.M=null}f"); + atom.Append("unction oc(a,b){if(!a.o)return b;if(!b.o)return a;for(var c=a.o,d=b.o,f=null,e=nul"); + atom.Append("l,g=0;c&&d;){var e=c.R,k=d.R;e==k||e instanceof Xb&&k instanceof Xb&&e.l==k.l?(e=c"); + atom.Append(",c=c.next,d=d.next):0\",4,2,function(a,b,c){return yc(function(a,"); + atom.Append("b){return a>b},a,b,c)});I(\"<=\",4,2,function(a,b,c){return yc(function(a,b){retur"); + atom.Append("n a<=b},a,b,c)});I(\">=\",4,2,function(a,b,c){return yc(function(a,b){return a>=b}"); + atom.Append(",a,b,c)});var xc=I(\"=\",3,2,function(a,b,c){return yc(function(a,b){return a==b},"); + atom.Append("a,b,c,!0)});I(\"!=\",3,2,function(a,b,c){return yc(function(a,b){return a!=b},a,b,"); + atom.Append("c,!0)});I(\"and\",2,2,function(a,b,c){return vc(a,c)&&vc(b,c)});I(\"or\",1,2,funct"); + atom.Append("ion(a,b,c){return vc(a,c)||vc(b,c)});function Bc(a,b){if(b.A()&&4!=a.n)throw Error"); + atom.Append("(\"Primary expression must evaluate to nodeset if filter has predicate(s).\");D.ca"); + atom.Append("ll(this,a.n);this.Ga=a;this.i=b;this.B=a.m();this.p=a.p}n(Bc,D);Bc.prototype.evalu"); + atom.Append("ate=function(a){a=this.Ga.evaluate(a);return Cc(this.i,a)};Bc.prototype.toString=f"); + atom.Append("unction(){var a;a=\"Filter:\"+F(this.Ga);return a+=F(this.i)};function Dc(a,b){if("); + atom.Append("b.lengtha.pa)throw Error(\"Function \""); + atom.Append("+a.s+\" expects at most \"+a.pa+\" arguments, \"+b.length+\" given\");a.Qa&&p(b,fu"); + atom.Append("nction(b,d){if(4!=b.n)throw Error(\"Argument \"+d+\" to function \"+a.s+\" is not "); + atom.Append("of type Nodeset: \"+b);});D.call(this,a.n);this.aa=a;this.ja=b;tc(this,a.B||za(b,f"); + atom.Append("unction(a){return a.m()}));uc(this,a.Oa&&!b.length||a.Na&&!!b.length||za(b,functio"); + atom.Append("n(a){return a.p}))}\nn(Dc,D);Dc.prototype.evaluate=function(a){return this.aa.w.ap"); + atom.Append("ply(null,Da(a,this.ja))};Dc.prototype.toString=function(){var a=\"Function: \"+thi"); + atom.Append("s.aa;if(this.ja.length)var b=ya(this.ja,function(a,b){return a+F(b)},\"Arguments:"); + atom.Append("\"),a=a+F(b);return a};function Ec(a,b,c,d,f,e,g,k,q){this.s=a;this.n=b;this.B=c;t"); + atom.Append("his.Oa=d;this.Na=f;this.w=e;this.Da=g;this.pa=aa(k)?k:g;this.Qa=!!q}Ec.prototype.t"); + atom.Append("oString=function(){return this.s};var Fc={};\nfunction J(a,b,c,d,f,e,g,k){if(Fc.ha"); + atom.Append("sOwnProperty(a))throw Error(\"Function already created: \"+a+\".\");Fc[a]=new Ec(a"); + atom.Append(",b,c,d,!1,f,e,g,k)}J(\"boolean\",2,!1,!1,function(a,b){return vc(b,a)},1);J(\"ceil"); + atom.Append("ing\",1,!1,!1,function(a,b){return Math.ceil(G(b,a))},1);J(\"concat\",3,!1,!1,func"); + atom.Append("tion(a,b){return ya(Fa(arguments,1),function(b,d){return b+H(d,a)},\"\")},2,null);"); + atom.Append("J(\"contains\",2,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);return-1!=b.indexOf(a)},2"); + atom.Append(");J(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).A()},1,1,!0);\nJ(\"false"); + atom.Append("\",2,!1,!1,function(){return!1},0);J(\"floor\",1,!1,!1,function(a,b){return Math.f"); + atom.Append("loor(G(b,a))},1);J(\"id\",4,!1,!1,function(a,b){function c(a){if(Vb){var b=f.all[a"); + atom.Append("];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return Ba(b,function(b){return"); + atom.Append(" a==b.id})}return null}return f.getElementById(a)}var d=a.l,f=9==d.nodeType?d:d.ow"); + atom.Append("nerDocument,d=H(b,a).split(/\\s+/),e=[];p(d,function(a){(a=c(a))&&!Ca(e,a)&&e.push"); + atom.Append("(a)});e.sort(wb);var g=new C;p(e,function(a){g.add(a)});return g},1);\nJ(\"lang\","); + atom.Append("2,!1,!1,function(){return!1},1);J(\"last\",1,!0,!1,function(a){if(1!=arguments.len"); + atom.Append("gth)throw Error(\"Function last expects ()\");return a.u},0);J(\"local-name\",3,!1"); + atom.Append(",!0,function(a,b){var c=b?pc(b.evaluate(a)):a.l;return c?c.nodeName.toLowerCase():"); + atom.Append("\"\"},0,1,!0);J(\"name\",3,!1,!0,function(a,b){var c=b?pc(b.evaluate(a)):a.l;retur"); + atom.Append("n c?c.nodeName.toLowerCase():\"\"},0,1,!0);J(\"namespace-uri\",3,!0,!1,function(){"); + atom.Append("return\"\"},0,1,!0);\nJ(\"normalize-space\",3,!1,!0,function(a,b){return(b?H(b,a):"); + atom.Append("cc(a.l)).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);J(\"not"); + atom.Append("\",2,!1,!1,function(a,b){return!vc(b,a)},1);J(\"number\",1,!1,!0,function(a,b){ret"); + atom.Append("urn b?G(b,a):+cc(a.l)},0,1);J(\"position\",1,!0,!1,function(a){return a.Ta},0);J("); + atom.Append("\"round\",1,!1,!1,function(a,b){return Math.round(G(b,a))},1);J(\"starts-with\",2,"); + atom.Append("!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);return 0==b.lastIndexOf(a,0)},2);J(\"strin"); + atom.Append("g\",3,!1,!0,function(a,b){return b?H(b,a):cc(a.l)},0,1);\nJ(\"string-length\",1,!1"); + atom.Append(",!0,function(a,b){return(b?H(b,a):cc(a.l)).length},0,1);J(\"substring\",3,!1,!1,fu"); + atom.Append("nction(a,b,c,d){c=G(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?G(d"); + atom.Append(",a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.ma"); + atom.Append("x(c,0);a=H(b,a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a.subs"); + atom.Append("tring(f,c+b)},2,3);J(\"substring-after\",3,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a)"); + atom.Append(";c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nJ(\"substring-befor"); + atom.Append("e\",3,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);a=b.indexOf(a);return-1==a?\"\":b.su"); + atom.Append("bstring(0,a)},2);J(\"sum\",1,!1,!1,function(a,b){for(var c=rc(b.evaluate(a)),d=0,f"); + atom.Append("=c.next();f;f=c.next())d+=+cc(f);return d},1,1,!0);J(\"translate\",3,!1,!1,functio"); + atom.Append("n(a,b,c,d){b=H(b,a);c=H(c,a);var f=H(d,a);a=[];for(d=0;da.length)throw Error(\"Unclosed literal string\");return new Hc(a)}fun"); + atom.Append("ction fd(a){var b=a.b.next(),c=b.indexOf(\":\");if(-1==c)return new hc(b);var d=b."); + atom.Append("substring(0,c);a=a.Ra(d);if(!a)throw Error(\"Namespace prefix not declared: \"+d);"); + atom.Append("b=b.substr(c+1);return new hc(b,a)}\nfunction gd(a){var b,c=[],d;if(Nc(A(a.b))){b="); + atom.Append("a.b.next();d=A(a.b);if(\"/\"==b&&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*"); + atom.Append("\"!=d&&!/(?![0-9])[\\w]/.test(d)))return new Lc;d=new Lc;L(a,\"Missing next locati"); + atom.Append("on step.\");b=hd(a,b);c.push(b)}else{a:{b=A(a.b);d=b.charAt(0);switch(d){case \"$"); + atom.Append("\":throw Error(\"Variable reference not allowed in HTML XPath\");case \"(\":a.b.ne"); + atom.Append("xt();b=ad(a);L(a,'unclosed \"(\"');cd(a,\")\");break;case '\"':case \"'\":b=ed(a);"); + atom.Append("break;default:if(isNaN(+b))if(!Gc(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==A(a.b,\n1))"); + atom.Append("{b=a.b.next();b=Fc[b]||null;a.b.next();for(d=[];\")\"!=A(a.b);){L(a,\"Missing func"); + atom.Append("tion argument list.\");d.push(ad(a));if(\",\"!=A(a.b))break;a.b.next()}L(a,\"Unclo"); + atom.Append("sed function argument list.\");dd(a);b=new Dc(b,d)}else{b=null;break a}else b=new "); + atom.Append("Ic(+a.b.next())}\"[\"==A(a.b)&&(d=new Qc(id(a)),b=new Bc(b,d))}if(b)if(Nc(A(a.b)))"); + atom.Append("d=b;else return b;else b=hd(a,\"/\"),d=new Mc,c.push(b)}for(;Nc(A(a.b));)b=a.b.nex"); + atom.Append("t(),L(a,\"Missing next location step.\"),b=hd(a,b),c.push(b);return new Jc(d,c)}\n"); + atom.Append("function hd(a,b){var c,d,f;if(\"/\"!=b&&\"//\"!=b)throw Error('Step op should be "); + atom.Append("\"/\" or \"//\"');if(\".\"==A(a.b))return d=new Rc(Xc,new kc(\"node\")),a.b.next()"); + atom.Append(",d;if(\"..\"==A(a.b))return d=new Rc(Wc,new kc(\"node\")),a.b.next(),d;var e;if(\""); + atom.Append("@\"==A(a.b))e=Kc,a.b.next(),L(a,\"Missing attribute name\");else if(\"::\"==A(a.b,"); + atom.Append("1)){if(!/(?![0-9])[\\w]/.test(A(a.b).charAt(0)))throw Error(\"Bad token: \"+a.b.ne"); + atom.Append("xt());c=a.b.next();e=Vc[c]||null;if(!e)throw Error(\"No axis with name: \"+c);a.b."); + atom.Append("next();L(a,\"Missing node name\")}else e=\nSc;c=A(a.b);if(/(?![0-9])[\\w]/.test(c."); + atom.Append("charAt(0)))if(\"(\"==A(a.b,1)){if(!Gc(c))throw Error(\"Invalid node type: \"+c);c="); + atom.Append("a.b.next();if(!Gc(c))throw Error(\"Invalid type name: \"+c);cd(a,\"(\");L(a,\"Bad "); + atom.Append("nodetype\");f=A(a.b).charAt(0);var g=null;if('\"'==f||\"'\"==f)g=ed(a);L(a,\"Bad n"); + atom.Append("odetype\");dd(a);c=new kc(c,g)}else c=fd(a);else if(\"*\"==c)c=fd(a);else throw Er"); + atom.Append("ror(\"Bad token: \"+a.b.next());f=new Qc(id(a),e.S);return d||new Rc(e,c,f,\"//\"="); + atom.Append("=b)}\nfunction id(a){for(var b=[];\"[\"==A(a.b);){a.b.next();L(a,\"Missing predica"); + atom.Append("te expression.\");var c=ad(a);b.push(c);L(a,\"Unclosed predicate expression.\");cd"); + atom.Append("(a,\"]\")}return b}function bd(a){if(\"-\"==A(a.b))return a.b.next(),new Yc(bd(a))"); + atom.Append(";var b=gd(a);if(\"|\"!=A(a.b))a=b;else{for(b=[b];\"|\"==a.b.next();)L(a,\"Missing "); + atom.Append("next union location path.\"),b.push(gd(a));a.b.back();a=new Zc(b)}return a};functi"); + atom.Append("on jd(a){switch(a.nodeType){case 1:return ma(kd,a);case 9:return jd(a.documentElem"); + atom.Append("ent);case 2:return a.ownerElement?jd(a.ownerElement):ld;case 11:case 10:case 6:cas"); + atom.Append("e 12:return ld;default:return a.parentNode?jd(a.parentNode):ld}}function ld(){retu"); + atom.Append("rn null}function kd(a,b){if(a.prefix==b)return a.namespaceURI||\"http://www.w3.org"); + atom.Append("/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:\"+b);return c&&c.specified?c.value"); + atom.Append("||null:a.parentNode&&9!=a.parentNode.nodeType?kd(a.parentNode,b):null};function md"); + atom.Append("(a,b){if(!a.length)throw Error(\"Empty XPath expression.\");var c=$b(a);if(c.empty"); + atom.Append("())throw Error(\"Invalid XPath expression.\");b?ea(b)||(b=la(b.lookupNamespaceURI,"); + atom.Append("b)):b=function(){return null};var d=ad(new $c(c,b));if(!c.empty())throw Error(\"Ba"); + atom.Append("d token: \"+c.next());this.evaluate=function(a,b){var c=d.evaluate(new Ub(a));retu"); + atom.Append("rn new M(c,b)}}\nfunction M(a,b){if(0==b)if(a instanceof C)b=4;else if(\"string\"="); + atom.Append("=typeof a)b=2;else if(\"number\"==typeof a)b=1;else if(\"boolean\"==typeof a)b=3;e"); + atom.Append("lse throw Error(\"Unexpected evaluation result.\");if(2!=b&&1!=b&&3!=b&&!(a instan"); + atom.Append("ceof C))throw Error(\"value could not be converted to the specified type\");this.r"); + atom.Append("esultType=b;var c;switch(b){case 2:this.stringValue=a instanceof C?qc(a):\"\"+a;br"); + atom.Append("eak;case 1:this.numberValue=a instanceof C?+qc(a):+a;break;case 3:this.booleanValu"); + atom.Append("e=a instanceof C?0=c.length?null:c[e++]};this.snapshotItem=funct"); + atom.Append("ion(a){if(6!=b&&7!=b)throw Error(\"snapshotItem called with wrong result type\");r"); + atom.Append("eturn a>=\nc.length||0>a?null:c[a]}}M.ANY_TYPE=0;M.NUMBER_TYPE=1;M.STRING_TYPE=2;M"); + atom.Append(".BOOLEAN_TYPE=3;M.UNORDERED_NODE_ITERATOR_TYPE=4;M.ORDERED_NODE_ITERATOR_TYPE=5;M."); + atom.Append("UNORDERED_NODE_SNAPSHOT_TYPE=6;M.ORDERED_NODE_SNAPSHOT_TYPE=7;M.ANY_UNORDERED_NODE"); + atom.Append("_TYPE=8;M.FIRST_ORDERED_NODE_TYPE=9;function nd(a){this.lookupNamespaceURI=jd(a)}"); + atom.Append("\nfunction od(a){a=a||l;var b=a.document;b.evaluate||(a.XPathResult=M,b.evaluate=f"); + atom.Append("unction(a,b,f,e){return(new md(a,f)).evaluate(b,e)},b.createExpression=function(a,"); + atom.Append("b){return new md(a,b)},b.createNSResolver=function(a){return new nd(a)})};var O={}"); + atom.Append(";O.Ma=function(){var a={Ya:\"http://www.w3.org/2000/svg\"};return function(b){retu"); + atom.Append("rn a[b]||null}}();O.w=function(a,b,c){var d=y(a);(t||Rb)&&od(z(d));try{var f=d.cre"); + atom.Append("ateNSResolver?d.createNSResolver(d.documentElement):O.Ma;return t&&!eb(7)?d.evalua"); + atom.Append("te.call(d,b,a,f,c,null):d.evaluate(b,a,f,c,null)}catch(e){if(!v||\"NS_ERROR_ILLEGA"); + atom.Append("L_VALUE\"!=e.name)throw new r(32,\"Unable to locate an element with the xpath expr"); + atom.Append("ession \"+b+\" because of the following error:\\n\"+e);}};\nO.ka=function(a,b){if("); + atom.Append("!a||1!=a.nodeType)throw new r(32,'The result of the xpath expression \"'+b+'\" is:"); + atom.Append(" '+a+\". It should be an element.\");};O.G=function(a,b){var c=function(){var c=O."); + atom.Append("w(b,a,9);return c?(c=c.singleNodeValue,s?c:c||null):b.selectSingleNode?(c=y(b),c.s"); + atom.Append("etProperty&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):"); + atom.Append("null}();null===c||O.ka(c,a);return c};\nO.v=function(a,b){var c=function(){var c=O"); + atom.Append(".w(b,a,7);if(c){var f=c.snapshotLength;s&&!aa(f)&&O.ka(null,a);for(var e=[],g=0;g<"); + atom.Append("f;++g)e.push(c.snapshotItem(g));return e}return b.selectNodes?(c=y(b),c.setPropert"); + atom.Append("y&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectNodes(a)):[]}();p(c,func"); + atom.Append("tion(b){O.ka(b,a)});return c};function pd(a){return(a=a.exec(Oa))?a[1]:\"\"}var qd"); + atom.Append("=function(){if(Nb)return pd(/Firefox\\/([0-9.]+)/);if(t||s)return cb;if(Sb)return "); + atom.Append("pd(/Chrome\\/([0-9.]+)/);if(Tb)return pd(/Version\\/([0-9.]+)/);if(Pb||Qb){var a;i"); + atom.Append("f(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(Oa))return a[1]+\".\"+a[2]}else{if(Rb"); + atom.Append(")return(a=pd(/Android\\s+([0-9.]+)/))?a:pd(/Version\\/([0-9.]+)/);if(Ob)return pd("); + atom.Append("/Camino\\/([0-9.]+)/)}return\"\"}();var rd,sd;function P(a){return td?rd(a):t?0<=s"); + atom.Append("a(gb,a):eb(a)}function ud(a){return td?sd(a):Rb?0<=sa(vd,a):0<=sa(qd,a)}\nvar td=f"); + atom.Append("unction(){if(!v)return!1;var a=l.Components;if(!a)return!1;try{if(!a.classes)retur"); + atom.Append("n!1}catch(b){return!1}var c=a.classes,a=a.interfaces,d=c[\"@mozilla.org/xpcom/vers"); + atom.Append("ion-comparator;1\"].getService(a.nsIVersionComparator),c=c[\"@mozilla.org/xre/app-"); + atom.Append("info;1\"].getService(a.nsIXULAppInfo),f=c.platformVersion,e=c.version;rd=function("); + atom.Append("a){return 0<=d.compare(f,\"\"+a)};sd=function(a){return 0<=d.compare(e,\"\"+a)};re"); + atom.Append("turn!0}(),wd=Qb||Pb,xd;\nif(Rb){var yd=/Android\\s+([0-9\\.]+)/.exec(Oa);xd=yd?yd["); + atom.Append("1]:\"0\"}else xd=\"0\";var vd=xd,zd=t&&!fb(8),Ad=fb(9),Bd=t&&!fb(9),Cd=fb(10);Rb&&"); + atom.Append("ud(2.3);Rb&&ud(4);Tb&&ud(6);var Dd=t&&-1!=Oa.indexOf(\"IEMobile\");function Ed(a,b"); + atom.Append(",c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}h=Ed.prototype;h.clone=fun"); + atom.Append("ction(){return new Ed(this.top,this.right,this.bottom,this.left)};h.toString=funct"); + atom.Append("ion(){return\"(\"+this.top+\"t, \"+this.right+\"r, \"+this.bottom+\"b, \"+this.lef"); + atom.Append("t+\"l)\"};h.contains=function(a){return this&&a?a instanceof Ed?a.left>=this.left&"); + atom.Append("&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<="); + atom.Append("this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){fa(a)"); + atom.Append("?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(th"); + atom.Append("is.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function("); + atom.Append("){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.c"); + atom.Append("eil(this.bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){th"); + atom.Append("is.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.flo"); + atom.Append("or(this.bottom);this.left=Math.floor(this.left);return this};\nh.round=function(){"); + atom.Append("this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.r"); + atom.Append("ound(this.bottom);this.left=Math.round(this.left);return this};h.translate=functio"); + atom.Append("n(a,b){a instanceof jb?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+="); + atom.Append("a.y):(this.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return this}"); + atom.Append(";h.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this"); + atom.Append(".bottom*=c;return this};function R(a,b,c,d){this.left=a;this.top=b;this.width=c;th"); + atom.Append("is.height=d}h=R.prototype;h.clone=function(){return new R(this.left,this.top,this."); + atom.Append("width,this.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\""); + atom.Append(" - \"+this.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a inst"); + atom.Append("anceof R?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&"); + atom.Append("&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a"); + atom.Append(".y>=this.top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(t"); + atom.Append("his.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.heigh"); + atom.Append("t=Math.ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this"); + atom.Append(".left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height"); + atom.Append("=Math.floor(this.height);return this};h.round=function(){this.left=Math.round(this"); + atom.Append(".left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height"); + atom.Append("=Math.round(this.height);return this};\nh.translate=function(a,b){a instanceof jb?"); + atom.Append("(this.left+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this};h."); + atom.Append("scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.he"); + atom.Append("ight*=c;return this};function Fd(a,b){var c=y(a);return c.defaultView&&c.defaultVi"); + atom.Append("ew.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropert"); + atom.Append("yValue(b)||\"\":\"\"}function Gd(a){a=a?y(a):document;var b;(b=!t||fb(9))||(b=\"CS"); + atom.Append("S1Compat\"==lb(a).K.compatMode);return b?a.documentElement:a.body}var Hd={thin:2,m"); + atom.Append("edium:4,thick:6};\nfunction Id(a,b){if(\"none\"==(a.currentStyle?a.currentStyle[b+"); + atom.Append("\"Style\"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+\"Width\"]:null,d;"); + atom.Append("if(c in Hd)d=Hd[c];else if(/^\\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.lef"); + atom.Append("t;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c"); + atom.Append(";c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=f;d=c}return d};function J"); + atom.Append("d(a){var b;a:{a=y(a);try{b=a&&a.activeElement;break a}catch(c){}b=null}return t&&b"); + atom.Append("&&\"undefined\"===typeof b.nodeType?null:b}function S(a,b){return!!a&&1==a.nodeTyp"); + atom.Append("e&&(!b||a.tagName.toUpperCase()==b)}function Kd(a){var b;if(b=Ld(a,!0)&&Md(a))b=!("); + atom.Append("t||s||v&&!P(\"1.9.2\")?0:\"none\"==T(a,\"pointer-events\"));return b}function Nd(a"); + atom.Append("){return S(a,\"OPTION\")?!0:S(a,\"INPUT\")?(a=a.type.toLowerCase(),\"checkbox\"==a"); + atom.Append("||\"radio\"==a):!1}\nfunction Od(a){if(!Nd(a))throw new r(15,\"Element is not sele"); + atom.Append("ctable\");var b=\"selected\",c=a.type&&a.type.toLowerCase();if(\"checkbox\"==c||\""); + atom.Append("radio\"==c)b=\"checked\";return!!Pd(a,b)}function Pd(a,b){var c;if(c=zd&&\"value\""); + atom.Append("==b&&S(a,\"OPTION\"))c=null===Qd(a,\"value\");c?(c=[],Bb(a,c,!1),c=c.join(\"\")):c"); + atom.Append("=a[b];return c}var Rd=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^'"); + atom.Append("]*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction Sd(a){var b=[];p(a.split(Rd),fu"); + atom.Append("nction(a){var d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if"); + atom.Append("(!c)b:{if(g=d.match(La))if(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>"); + atom.Append("=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCas"); + atom.Append("e();\ne=Ga[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e"); + atom.Append("=e.replace(Ia,\"#$1$1$2$2$3$3\")),!Ja.test(e))){c=null;break b}c=[parseInt(e.subst"); + atom.Append("r(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+"); + atom.Append("c.join(\", \")+\")\":d}return d}function Yd(a,b){var c=a.currentStyle||a.style,d=c"); + atom.Append("[b];!aa(d)&&ea(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d"); + atom.Append("?aa(d)?d:null:(c=Wd(a))?Yd(c,b):null}\nfunction Ld(a,b){function c(a){if(\"none\"="); + atom.Append("=T(a,\"display\"))return!1;a=Wd(a);return!a||c(a)}function d(a){var b=Zd(a);return"); + atom.Append(" 0=E.left+E.width;E=e.top>=E.top+E.height;if(Q&&\"hidden\"==u.x||E&&\"hidden\"==u"); + atom.Append(".y)return ae;if(Q&&\"visible\"!=u.x||E&&\"visible\"!=u.y){if(w&&(u=f(B),e.left>=k."); + atom.Append("scrollWidth-u.x||e.right>=k.scrollHeight-u.y))return ae;e=$d(B);return e==ae?ae:\""); + atom.Append("scroll\"}}}return\"none\"}var ee=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d"); + atom.Append("\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunc"); + atom.Append("tion Zd(a){function b(a){var c=z(y(a)).getComputedStyle(a,null).MozTransform.match"); + atom.Append("(ee);if(c){var d=parseFloat(c[1]),f=parseFloat(c[2]),w=parseFloat(c[3]),B=parseFlo"); + atom.Append("at(c[4]),u=parseFloat(c[5]),c=parseFloat(c[6]),E=e.left+e.width,Q=e.top+e.height,i"); + atom.Append("a=e.left*d,d=E*d,pb=e.left*f,f=E*f,qb=e.top*w,w=Q*w,rb=e.top*B,E=Q*B,Q=ia+qb+u,B=p"); + atom.Append("b+rb+c,qb=d+qb+u,rb=f+rb+c,ia=ia+w+u,pb=pb+E+c,u=d+w+u,c=f+E+c;e.left=Math.min(Q,q"); + atom.Append("b,ia,u);e.top=Math.min(B,rb,pb,c);u=Math.max(Q,qb,ia,u);c=Math.max(B,rb,pb,c);e.wi"); + atom.Append("dth=u-\ne.left;e.height=c-e.top}(a=Wd(a))&&b(a)}var c=be(a);if(c)return c.rect;if("); + atom.Append("S(a,\"HTML\"))return c=y(a),a=nb(z(c)||window),new R(0,0,a.width,a.height);var d;t"); + atom.Append("ry{d=a.getBoundingClientRect()}catch(f){return new R(0,0,0,0)}var e=new R(d.left,d"); + atom.Append(".top,d.right-d.left,d.bottom-d.top);t&&a.ownerDocument.body&&(c=y(a),e.left-=c.doc"); + atom.Append("umentElement.clientLeft+c.body.clientLeft,e.top-=c.documentElement.clientTop+c.bod"); + atom.Append("y.clientTop);s&&(0==e.width&&02*this.N&&wf(this),!0):!1};function wf(a){if(a"); + atom.Append(".N!=a.j.length){for(var b=0,c=0;b\");X(191,\"/\",\"?\");X(192,\"`\","); + atom.Append("\"~\");X(219,\"[\",\"{\");X(220,\"\\\\\",\"|\");X(221,\"]\",\"}\");var Dg=X({d:59,"); + atom.Append("e:186,opera:59},\";\",\":\");X(222,\"'\",'\"');var Eg=[Kf,Jf,Yf,Y],Fg=new vf;Fg.se"); + atom.Append("t(1,Y);Fg.set(2,Jf);Fg.set(4,Kf);Fg.set(8,Yf);var Gg=function(a){var b=new vf;p(xf"); + atom.Append("(a),function(c){b.set(a.get(c).code,c)});return b}(Fg);function Df(a,b,c){if(Ca(Eg"); + atom.Append(",b)){var d=Gg.get(b.code),f=a.V;f.ea=c?f.ea|d:f.ea&~d}c?a.fa.add(b):a.fa.remove(b)"); + atom.Append("}var Hg=t||s?\"\\r\\n\":\"\\n\";Cf.prototype.h=function(a){return this.fa.contains"); + atom.Append("(a)};\nfunction Ig(a,b){if(Ca(Eg,b)&&a.h(b))throw new r(13,\"Cannot press a modifi"); + atom.Append("er key that is already pressed.\");var c=null!==b.code&&Jg(a,gf,b);if((c||v)&&(!Kg"); + atom.Append("(b)||Jg(a,Ye,b,!c))&&c&&(Lg(a,b),a.ma))if(b.J){if(!Mg){var c=Ng(a,b),d=rf(a.c(),!0"); + atom.Append(")[0]+1;Og(a.c())?(uf(a.c(),c),nf(a.c(),d)):a.c().value+=c;x&&a.L(ef);Bd||a.L(df);a"); + atom.Append(".r=d}}else switch(b){case If:Mg||(x&&a.L(ef),S(a.c(),\"TEXTAREA\")&&(c=rf(a.c(),!0"); + atom.Append(")[0]+Hg.length,Og(a.c())?(uf(a.c(),Hg),nf(a.c(),c)):a.c().value+=Hg,t||a.L(df),a.r"); + atom.Append("=c));break;case Gf:case Xf:Mg||\n(Pg(a.c()),c=rf(a.c(),!1),c[0]==c[1]&&(b==Gf?(nf("); + atom.Append("a.c(),c[1]-1),sf(a.c(),c[1])):sf(a.c(),c[1]+1)),c=rf(a.c(),!1),c=!(c[0]==a.c().val"); + atom.Append("ue.length||0==c[1]),uf(a.c(),\"\"),(!t&&c||v&&b==Gf)&&a.L(df),c=rf(a.c(),!1),a.r=c"); + atom.Append("[1]);break;case Sf:case Uf:Pg(a.c());var c=a.c(),f=rf(c,!0)[0],e=rf(c,!1)[1],g=d=0"); + atom.Append(";b==Sf?a.h(Y)?a.r==f?(d=Math.max(f-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1"); + atom.Append(",0):f:a.h(Y)?a.r==e?(d=f,f=g=Math.min(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?"); + atom.Append("Math.min(e+1,c.value.length):e;a.h(Y)?(nf(c,\nd),sf(c,g)):tf(c,f);a.r=f;break;case"); + atom.Append(" Rf:case Qf:Pg(a.c()),c=a.c(),d=rf(c,!0)[0],g=rf(c,!1)[1],b==Rf?(a.h(Y)?(nf(c,0),s"); + atom.Append("f(c,a.r==d?g:d)):tf(c,0),a.r=0):(a.h(Y)?(a.r==d&&nf(c,g),sf(c,c.value.length)):tf("); + atom.Append("c,c.value.length),a.r=c.value.length)}Df(a,b,!0)}function Kg(a){if(a.J||a==If)retu"); + atom.Append("rn!0;if(x)return!1;if(t)return a==Mf;switch(a){case Y:case Jf:case Kf:return!1;cas"); + atom.Append("e Yf:case Zf:case $f:return v;default:return!0}}\nfunction Lg(a,b){if(b==If&&!v&&S"); + atom.Append("(a.c(),\"INPUT\")){var c=Cb(a.c(),Oe,!0);if(c){var d=c.getElementsByTagName(\"inpu"); + atom.Append("t\");(za(d,function(a){return Le(a)})||1==d.length||x&&!P(534))&&Pe(c)}}}function "); + atom.Append("Qg(a,b){if(!a.h(b))throw new r(13,\"Cannot release a key that is not pressed. (\"+"); + atom.Append("b.code+\")\");null===b.code||Jg(a,hf,b);Df(a,b,!1)}function Ng(a,b){if(!b.J)throw "); + atom.Append("new r(13,\"not a character key\");return a.h(Y)?b.Ua:b.J}var Mg=v&&!P(12);\nfuncti"); + atom.Append("on Pg(a){try{a.selectionStart}catch(b){if(-1!=b.message.indexOf(\"does not support"); + atom.Append(" selection.\"))throw Error(b.message+\" (For more information, see https://code.go"); + atom.Append("ogle.com/p/chromium/issues/detail?id=330456)\");throw b;}}function Og(a){try{Pg(a)"); + atom.Append("}catch(b){return!1}return!0}\nfunction Jg(a,b,c,d){if(null===c.code)throw new r(13"); + atom.Append(",\"Key must have a keycode to be fired.\");c={altKey:a.h(Kf),ctrlKey:a.h(Jf),metaK"); + atom.Append("ey:a.h(Yf),shiftKey:a.h(Y),keyCode:c.code,charCode:c.J&&b==Ye?Ng(a,c).charCodeAt(0"); + atom.Append("):0,preventDefault:!!d};return a.na(b,c)}\nfunction Rg(a,b){ue(a,b);a.ma=Xd(b);var"); + atom.Append(" c;c=a.q||a.f;var d=Jd(c);if(c==d)c=!1;else{if(d&&(ea(d.blur)||t&&fa(d.blur))){if("); + atom.Append("!S(d,\"BODY\"))try{d.blur()}catch(f){if(!t||\"Unspecified error.\"!=f.message)thro"); + atom.Append("w f;}t&&!P(8)&&z(y(c)).focus()}ea(c.focus)||t&&fa(c.focus)?(s&&P(11)&&!Ld(c)?U(c,c"); + atom.Append("f):c.focus(),c=!0):c=!1}a.ma&&c&&(tf(b,b.value.length),a.r=b.value.length)}Cf.prot"); + atom.Append("otype.ya=function(){return{pressed:this.fa.P(),currentPos:this.r}};function Sg(a,b"); + atom.Append(",c){te.call(this,b,c);this.O=this.t=null;this.D=new jb(0,0);this.ba=this.Q=!1;if(a"); + atom.Append("){da(a.buttonPressed)&&(this.t=a.buttonPressed);try{S(a.elementPressed)&&(this.O=a"); + atom.Append(".elementPressed)}catch(d){this.t=null}this.D=new jb(a.clientXY.x,a.clientXY.y);thi"); + atom.Append("s.Q=!!a.nextClickIsDoubleClick;this.ba=!!a.hasEverInteracted;try{a.element&&S(a.el"); + atom.Append("ement)&&ue(this,a.element)}catch(f){this.t=null}}}n(Sg,te);var Z={};\nBd?(Z[ze]=[0"); + atom.Append(",0,0,null],Z[Ge]=[null,null,0,null],Z[Je]=[1,4,2,null],Z[ye]=[0,0,0,0],Z[He]=[1,4,"); + atom.Append("2,0]):x||Ad?(Z[ze]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1,2,null],Z[ye]="); + atom.Append("[0,1,2,0],Z[He]=[0,1,2,0]):(Z[ze]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1"); + atom.Append(",2,null],Z[ye]=[0,0,0,0],Z[He]=[0,0,0,0]);Cd&&(Z[Fe]=Z[Je],Z[mf]=Z[Je],Z[Ie]=[-1,-"); + atom.Append("1,-1,-1],Z[Ee]=Z[Ie],Z[De]=Z[Ie]);Z[ff]=Z[ze];Z[Ae]=Z[Je];Z[xe]=Z[ye];var Tg={};Tg"); + atom.Append("[Ae]=Fe;Tg[He]=Ie;Tg[ye]=Ee;Tg[xe]=De;Tg[Je]=mf;\nSg.prototype.move=function(a,b){"); + atom.Append("var c=Kd(a),d=Zd(a);this.D.x=b.x+d.left;this.D.y=b.y+d.top;d=this.c();if(a!=d){try"); + atom.Append("{z(y(d)).closed&&(d=null)}catch(f){d=null}if(d){var e=d===oa.document.documentElem"); + atom.Append("ent||d===oa.document.body,d=!this.ba&&e?null:d;Ug(this,ye,a)}ue(this,a);t||Ug(this"); + atom.Append(",xe,d,null,c)}Ug(this,He,null,null,c);t&&a!=d&&Ug(this,xe,d,null,c);this.Q=!1};\nS"); + atom.Append("g.prototype.scroll=function(a){if(0==a)throw new r(13,\"Must scroll a non-zero num"); + atom.Append("ber of ticks.\");for(var b=0=a){var b=$.a[a];if(null===b)g.push(k=f())"); + atom.Append(",e&&(k.Ea=!1,g.push(k=f()));else if(aa(b))k.keys.push(b);else throw Error(\"Unsupp"); + atom.Append("orted WebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}else switch(a){case \""); + atom.Append("\\n\":k.keys.push(If);break;case \"\\t\":k.keys.push(Hf);break;case \"\\b\":k.keys"); + atom.Append(".push(Gf);break;default:k.keys.push(a)}})});p(g,function(b){Wg(a,b.keys,c,\nb.Ea)}"); + atom.Append(")}$.a={};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=Gf;$.a[\"\\ue004\"]=Hf;$.a[\"\\ue0"); + atom.Append("06\"]=If;$.a[\"\\ue007\"]=If;$.a[\"\\ue008\"]=Y;$.a[\"\\ue009\"]=Jf;$.a[\"\\ue00a"); + atom.Append("\"]=Kf;$.a[\"\\ue00b\"]=Lf;$.a[\"\\ue00c\"]=Mf;$.a[\"\\ue00d\"]=Nf;$.a[\"\\ue00e\""); + atom.Append("]=Of;$.a[\"\\ue00f\"]=Pf;$.a[\"\\ue010\"]=Qf;$.a[\"\\ue011\"]=Rf;$.a[\"\\ue012\"]="); + atom.Append("Sf;$.a[\"\\ue013\"]=Tf;$.a[\"\\ue014\"]=Uf;$.a[\"\\ue015\"]=Vf;$.a[\"\\ue016\"]=Wf"); + atom.Append(";$.a[\"\\ue017\"]=Xf;$.a[\"\\ue018\"]=Dg;$.a[\"\\ue019\"]=Bg;$.a[\"\\ue01a\"]=ag;$"); + atom.Append(".a[\"\\ue01b\"]=bg;$.a[\"\\ue01c\"]=cg;$.a[\"\\ue01d\"]=dg;$.a[\"\\ue01e\"]=eg;\n$"); + atom.Append(".a[\"\\ue01f\"]=fg;$.a[\"\\ue020\"]=gg;$.a[\"\\ue021\"]=hg;$.a[\"\\ue022\"]=ig;$.a"); + atom.Append("[\"\\ue023\"]=jg;$.a[\"\\ue024\"]=kg;$.a[\"\\ue025\"]=lg;$.a[\"\\ue027\"]=mg;$.a["); + atom.Append("\"\\ue028\"]=ng;$.a[\"\\ue029\"]=og;$.a[\"\\ue026\"]=Cg;$.a[\"\\ue031\"]=pg;$.a[\""); + atom.Append("\\ue032\"]=qg;$.a[\"\\ue033\"]=rg;$.a[\"\\ue034\"]=sg;$.a[\"\\ue035\"]=tg;$.a[\""); + atom.Append("\\ue036\"]=ug;$.a[\"\\ue037\"]=vg;$.a[\"\\ue038\"]=wg;$.a[\"\\ue039\"]=xg;$.a[\""); + atom.Append("\\ue03a\"]=yg;$.a[\"\\ue03b\"]=zg;$.a[\"\\ue03c\"]=Ag;$.a[\"\\ue03d\"]=Yf;function"); + atom.Append(" Yg(){this.ga=void 0}\nfunction Zg(a,b,c){switch(typeof b){case \"string\":$g(b,c)"); + atom.Append(";break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"bool"); + atom.Append("ean\":c.push(b);break;case \"undefined\":c.push(\"null\");break;case \"object\":if"); + atom.Append("(null==b){c.push(\"null\");break}if(\"array\"==ba(b)){var d=b.length;c.push(\"[\")"); + atom.Append(";for(var f=\"\",e=0;eb?f+=\"000\":256>b?f+=\"00"); + atom.Append("\":4096>b&&(f+=\"0\");return ah[a]=f+b.toString(16)}),'\"')};x||s||v&&P(3.5)||t&&P"); + atom.Append("(8);function ch(a){switch(ba(a)){case \"string\":case \"number\":case \"boolean\":"); + atom.Append("return a;case \"function\":return a.toString();case \"array\":return xa(a,ch);case"); + atom.Append(" \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMEN"); + atom.Append("T=dh(a);return b}if(\"document\"in a)return b={},b.WINDOW=dh(a),b;if(ca(a))return "); + atom.Append("xa(a,ch);a=Sa(a,function(a,b){return da(b)||m(b)});return Ta(a,ch);default:return "); + atom.Append("null}}\nfunction eh(a,b){return\"array\"==ba(a)?xa(a,function(a){return eh(a,b)}):"); + atom.Append("fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?fh(a.ELEMENT,b):\"WINDOW\"in a?fh(a"); + atom.Append(".WINDOW,b):Ta(a,function(a){return eh(a,b)}):a}function gh(a){a=a||document;var b="); + atom.Append("a.$wdc_;b||(b=a.$wdc_={},b.ra=na());b.ra||(b.ra=na());return b}function dh(a){var "); + atom.Append("b=gh(a.ownerDocument),c=Va(b,function(b){return b==a});c||(c=\":wdc:\"+b.ra++,b[c]"); + atom.Append("=a);return c}\nfunction fh(a,b){a=decodeURIComponent(a);var c=b||document,d=gh(c);"); + atom.Append("if(!(a in d))throw new r(10,\"Element does not exist in cache\");var f=d[a];if(\"s"); + atom.Append("etInterval\"in f){if(f.closed)throw delete d[a],new r(23,\"Window has been closed."); + atom.Append("\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e.parentNode}delet"); + atom.Append("e d[a];throw new r(10,\"Element is no longer attached to the DOM\");};function hh("); + atom.Append("a){a=new Sg(a);if(null===a.t)throw new r(13,\"Cannot release a button when no butt"); + atom.Append("on is pressed.\");if(a.q&&Kd(a.f)){var b=a.q,c=Od(a.f);if(!c||b.multiple)a.f.selec"); + atom.Append("ted=!c,(!x||!b.multiple||Sb&&ud(28)||Rb&&ud(4))&&U(b,bf)}Ug(a,Je);if(0==a.t&&a.c()"); + atom.Append("==a.O){if(!Dd||!S(a.O,\"OPTION\"))if(b=a.D,c=Vg(a,ze),Kd(a.f)){var d=null,f=null;i"); + atom.Append("f(!Ke)for(var e=a.f;e;e=e.parentNode)if(S(e,\"A\")){d=e;break}else if(Le(e)){f=e;b"); + atom.Append("reak}var g=(e=!a.q&&Nd(a.f))&&Od(a.f);t&&f?f.click():a.$(ze,b,c,null,0,!1,void 0)&"); + atom.Append("&(d&&\nMe(d)?(b=d,c=b.href,d=z(y(b)),t&&!P(8)&&(c=Ne(d.location,c)),b.target?d.ope"); + atom.Append("n(c,b.target):d.location.href=c):!e||v||x||g&&\"radio\"==a.f.type.toLowerCase()||("); + atom.Append("a.f.checked=!g,s&&!P(11)&&U(a.f,bf)))}a.Q&&Ug(a,ff);a.Q=!a.Q;Cd&&0==a.t&&S(a.O,\"O"); + atom.Append("PTION\")&&a.Z(lf,new jb(0,0),0,1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,!1)}else 2==a"); + atom.Append(".t&&Ug(a,Ge);Be={};a.t=null;a.O=null;return a.ya()};function ih(a,b){var c=[a],d;t"); + atom.Append("ry{var f=b?fh(b.WINDOW):window,e=eh(c,f.document),g=hh.apply(null,e);d={status:0,v"); + atom.Append("alue:ch(g)}}catch(k){d={status:\"code\"in k?k.code:13,value:{message:k.message}}}c"); + atom.Append("=[];Zg(new Yg,d,c);return c.join(\"\")}var jh=[\"_\"],kh=l;jh[0]in kh||!kh.execScr"); + atom.Append("ipt||kh.execScript(\"var \"+jh[0]);for(var lh;jh.length&&(lh=jh.shift());)!jh.leng"); + atom.Append("th&&aa(ih)?kh[lh]=ih:kh=kh[lh]?kh[lh]:kh[lh]={};; return this._.apply(null,argumen"); + atom.Append("ts);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typ"); + atom.Append("eof window!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string MouseMove + { + get + { + const string atomName = "MouseMove"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,aa=this;function l(a){return void 0!==a}\nfunct"); + atom.Append("ion ba(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"arra"); + atom.Append("y\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"["); + atom.Append("object Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof "); + atom.Append("a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumer"); + atom.Append("able&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\""); + atom.Append("==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!"); + atom.Append("a.propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=ba(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction m(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==ba(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ia(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ka(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ua(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})}function va(a){var b=m(void 0)?\"undefined\".rep"); + atom.Append("lace(/([-()\\[\\]{}+?*.$\\^|,:#c?null:m(a)?a.charAt(c):a[c]}\nfunction Da(a,b){var c;a:if(m"); + atom.Append("(a))c=m(b)&&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?wa.slice.call(a,b)"); + atom.Append(":wa.slice.call(a,b,c)};var Ha={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua"); + atom.Append(":\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#"); + atom.Append("ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:"); + atom.Append("\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreu"); + atom.Append("se:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\","); + atom.Append("cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",dar"); + atom.Append("kcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#0064"); + atom.Append("00\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkoliv"); + atom.Append("egreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000"); + atom.Append("\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darks"); + atom.Append("lategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviole"); + atom.Append("t:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dim"); + atom.Append("grey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf"); + atom.Append("0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite"); + atom.Append(":\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#0080"); + atom.Append("00\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69"); + atom.Append("b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\","); + atom.Append("lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:"); + atom.Append("\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lig"); + atom.Append("htgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgr"); + atom.Append("ey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20"); + atom.Append("b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#77889"); + atom.Append("9\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:"); + atom.Append("\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamar"); + atom.Append("ine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#93"); + atom.Append("70db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\""); + atom.Append("#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#"); + atom.Append("191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajo"); + atom.Append("white:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab"); + atom.Append(":\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegolde"); + atom.Append("nrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#"); + atom.Append("db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc"); + atom.Append("0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",r"); + atom.Append("osybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa807"); + atom.Append("2\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a"); + atom.Append("0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#"); + atom.Append("708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:"); + atom.Append("\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347"); + atom.Append("\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",wh"); + atom.Append("itesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ia=\"backgrou"); + atom.Append("ndColor borderTopColor borderRightColor borderBottomColor borderLeftColor color ou"); + atom.Append("tlineColor\".split(\" \"),Ja=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ka=/^#(?:["); + atom.Append("0-9a-f]{3}){1,2}$/i,La=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?"); + atom.Append("(0|1|0\\.\\d*)\\)$/i,Ma=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?("); + atom.Append("0|[1-9]\\d{0,2})\\)$/i;function r(a,b){this.code=a;this.state=Na[a]||Oa;this.messa"); + atom.Append("ge=b||\"\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUp"); + atom.Append("perCase().replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\""); + atom.Append(",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this.stack="); + atom.Append("c.stack||\"\"}n(r,Error);\nvar Oa=\"unknown error\",Na={15:\"element not selectabl"); + atom.Append("e\",11:\"element not visible\",31:\"ime engine activation failed\",30:\"ime not av"); + atom.Append("ailable\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",12:\"inv"); + atom.Append("alid element state\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid "); + atom.Append("selector\",17:\"javascript error\",405:\"unsupported operation\",34:\"move target "); + atom.Append("out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:"); + atom.Append("\"no such window\",28:\"script timeout\",33:\"session not created\",10:\"stale ele"); + atom.Append("ment reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"u"); + atom.Append("nexpected alert open\"};Na[13]=Oa;Na[9]=\"unknown command\";r.prototype.toString=f"); + atom.Append("unction(){return this.name+\": \"+this.message};var Pa;a:{var Qa=aa.navigator;if(Q"); + atom.Append("a){var Ra=Qa.userAgent;if(Ra){Pa=Ra;break a}}Pa=\"\"}function Sa(a){return-1!=Pa.i"); + atom.Append("ndexOf(a)};function Ta(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a"); + atom.Append("[d]);return c}function Ua(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);"); + atom.Append("return c}function Va(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Wa"); + atom.Append("(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};var Xa,Ya,s=Sa(\"Opera\""); + atom.Append(")||Sa(\"OPR\"),u=Sa(\"Trident\")||Sa(\"MSIE\"),w=Sa(\"Gecko\")&&-1==Pa.toLowerCase"); + atom.Append("().indexOf(\"webkit\")&&!(Sa(\"Trident\")||Sa(\"MSIE\")),x=-1!=Pa.toLowerCase().in"); + atom.Append("dexOf(\"webkit\"),Za=x&&Sa(\"Mobile\"),$a,ab=aa.navigator||null;$a=ab&&ab.platform"); + atom.Append("||\"\";Xa=-1!=$a.indexOf(\"Mac\");Ya=-1!=$a.indexOf(\"Win\");var bb=-1!=$a.indexOf"); + atom.Append("(\"Linux\");function cb(){var a=aa.document;return a?a.documentMode:void 0}\nvar d"); + atom.Append("b=function(){var a=\"\",b;if(s&&aa.opera)return a=aa.opera.version,ea(a)?a():a;w?b"); + atom.Append("=/rv\\:([^\\);]+)(\\)|;)/:u?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:x&&(b=/WebKit"); + atom.Append("\\/(\\S+)/);b&&(a=(a=b.exec(Pa))?a[1]:\"\");return u&&(b=cb(),b>parseFloat(a))?Str"); + atom.Append("ing(b):a}(),eb={};function fb(a){return eb[a]||(eb[a]=0<=sa(db,a))}function gb(a){"); + atom.Append("return u&&hb>=a}var ib=aa.document,hb=ib&&u?cb()||(\"CSS1Compat\"==ib.compatMode?p"); + atom.Append("arseInt(db,10):5):void 0;!w&&!u||u&&gb(9)||w&&fb(\"1.9.1\");u&&fb(\"9\");function "); + atom.Append("jb(a,b,c){return Math.min(Math.max(a,b),c)};function y(a,b){this.x=l(a)?a:0;this.y"); + atom.Append("=l(b)?b:0}h=y.prototype;h.clone=function(){return new y(this.x,this.y)};h.toString"); + atom.Append("=function(){return\"(\"+this.x+\", \"+this.y+\")\"};h.ceil=function(){this.x=Math."); + atom.Append("ceil(this.x);this.y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math."); + atom.Append("floor(this.x);this.y=Math.floor(this.y);return this};h.round=function(){this.x=Mat"); + atom.Append("h.round(this.x);this.y=Math.round(this.y);return this};\nh.translate=function(a,b)"); + atom.Append("{a instanceof y?(this.x+=a.x,this.y+=a.y):(this.x+=a,da(b)&&(this.y+=b));return th"); + atom.Append("is};h.scale=function(a,b){var c=da(b)?b:a;this.x*=a;this.y*=c;return this};functio"); + atom.Append("n kb(a,b){this.width=a;this.height=b}h=kb.prototype;h.clone=function(){return new "); + atom.Append("kb(this.width,this.height)};h.toString=function(){return\"(\"+this.width+\" x \"+t"); + atom.Append("his.height+\")\"};h.ceil=function(){this.width=Math.ceil(this.width);this.height=M"); + atom.Append("ath.ceil(this.height);return this};h.floor=function(){this.width=Math.floor(this.w"); + atom.Append("idth);this.height=Math.floor(this.height);return this};h.round=function(){this.wid"); + atom.Append("th=Math.round(this.width);this.height=Math.round(this.height);return this};\nh.sca"); + atom.Append("le=function(a,b){var c=da(b)?b:a;this.width*=a;this.height*=c;return this};functio"); + atom.Append("n A(a){return a?new lb(B(a)):pa||(pa=new lb)}function mb(a){a=a.document;a=\"CSS1C"); + atom.Append("ompat\"==a.compatMode?a.documentElement:a.body;return new kb(a.clientWidth,a.clien"); + atom.Append("tHeight)}function nb(a){return x||\"CSS1Compat\"!=a.compatMode?a.body||a.documentE"); + atom.Append("lement:a.documentElement}function rb(a){return a?a.parentWindow||a.defaultView:win"); + atom.Append("dow}\nfunction sb(a,b,c){function d(c){c&&b.appendChild(m(c)?a.createTextNode(c):c"); + atom.Append(")}for(var e=1;e]=|\\\\s+"); + atom.Append("|.\",\"g\"),cc=/^\\s/;function D(a,b){return a.ua[a.$+(b||0)]}$b.prototype.next=fu"); + atom.Append("nction(){return this.ua[this.$++]};$b.prototype.back=function(){this.$--};$b.proto"); + atom.Append("type.empty=function(){return this.ua.length<=this.$};function dc(a){var b=null,c=a"); + atom.Append(".nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||n"); + atom.Append("ull==b?\"\":b);if(\"string\"!=typeof b)if(Wb&&\"title\"==a.nodeName.toLowerCase()&"); + atom.Append("&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c"); + atom.Append("=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Wb&&\"title\"==a.nodeName.to"); + atom.Append("LowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSib"); + atom.Append("ling););}}else b=a.nodeValue;return\"\"+b}\nfunction ec(a,b,c){if(null===b)return!"); + atom.Append("0;try{if(!a.getAttribute)return!1}catch(d){return!1}Xb&&\"class\"==b&&(b=\"classNa"); + atom.Append("me\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function fc(a,b,c,"); + atom.Append("d,e){return(Wb?gc:hc).call(null,a,b,m(c)?c:null,m(d)?d:null,e||new E)}\nfunction g"); + atom.Append("c(a,b,c,d,e){if(a instanceof ic||8==a.f||c&&null===a.f){var f=b.all;if(!f)return e"); + atom.Append(";a=jc(a);if(\"*\"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[]"); + atom.Append(",k=0;b=f[k++];)ec(b,c,d)&&g.push(b);f=g}for(k=0;b=f[k++];)\"*\"==a&&\"!\"==b.tagNa"); + atom.Append("me||e.add(b);return e}kc(a,b,c,d,e);return e}\nfunction hc(a,b,c,d,e){b.getElement"); + atom.Append("sByName&&d&&\"name\"==c&&!u?(b=b.getElementsByName(d),q(b,function(b){a.matches(b)"); + atom.Append("&&e.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassNam"); + atom.Append("e(d),q(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof lc?kc("); + atom.Append("a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),q(b,func"); + atom.Append("tion(a){ec(a,c,d)&&e.add(a)}));return e}\nfunction mc(a,b,c,d,e){var f;if((a insta"); + atom.Append("nceof ic||8==a.f||c&&null===a.f)&&(f=b.childNodes)){var g=jc(a);if(\"*\"!=g&&(f=xa"); + atom.Append("(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=x"); + atom.Append("a(f,function(a){return ec(a,c,d)}));q(f,function(a){\"*\"==g&&(\"!\"==a.tagName||"); + atom.Append("\"*\"==g&&1!=a.nodeType)||e.add(a)});return e}return nc(a,b,c,d,e)}function nc(a,b"); + atom.Append(",c,d,e){for(b=b.firstChild;b;b=b.nextSibling)ec(b,c,d)&&a.matches(b)&&e.add(b);ret"); + atom.Append("urn e}\nfunction kc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)ec(b,c,d)&&a.m"); + atom.Append("atches(b)&&e.add(b),kc(a,b,c,d,e)}function jc(a){if(a instanceof lc){if(8==a.f)ret"); + atom.Append("urn\"!\";if(null===a.f)return\"*\"}return a.getName()};function E(){this.s=this.o="); + atom.Append("null;this.T=0}function oc(a){this.P=a;this.next=this.L=null}function pc(a,b){if(!a"); + atom.Append(".o)return b;if(!b.o)return a;for(var c=a.o,d=b.o,e=null,f=null,g=0;c&&d;){var f=c."); + atom.Append("P,k=d.P;f==k||f instanceof Yb&&k instanceof Yb&&f.l==k.l?(f=c,c=c.next,d=d.next):0"); + atom.Append("\",4,2,function(a,b,c){return zc(function(a,b){return a>b},a,b,c)"); + atom.Append("});K(\"<=\",4,2,function(a,b,c){return zc(function(a,b){return a<=b},a,b,c)});K(\""); + atom.Append(">=\",4,2,function(a,b,c){return zc(function(a,b){return a>=b},a,b,c)});var yc=K(\""); + atom.Append("=\",3,2,function(a,b,c){return zc(function(a,b){return a==b},a,b,c,!0)});K(\"!=\","); + atom.Append("3,2,function(a,b,c){return zc(function(a,b){return a!=b},a,b,c,!0)});K(\"and\",2,2"); + atom.Append(",function(a,b,c){return wc(a,c)&&wc(b,c)});K(\"or\",1,2,function(a,b,c){return wc("); + atom.Append("a,c)||wc(b,c)});function Cc(a,b){if(b.w()&&4!=a.n)throw Error(\"Primary expression"); + atom.Append(" must evaluate to nodeset if filter has predicate(s).\");F.call(this,a.n);this.Ha="); + atom.Append("a;this.h=b;this.A=a.m();this.p=a.p}n(Cc,F);Cc.prototype.evaluate=function(a){a=thi"); + atom.Append("s.Ha.evaluate(a);return Dc(this.h,a)};Cc.prototype.toString=function(){var a;a=\"F"); + atom.Append("ilter:\"+G(this.Ha);return a+=G(this.h)};function Ec(a,b){if(b.lengtha.pa)throw Error(\"Function \"+a.r+\" expects at mo"); + atom.Append("st \"+a.pa+\" arguments, \"+b.length+\" given\");a.Ra&&q(b,function(b,d){if(4!=b.n"); + atom.Append(")throw Error(\"Argument \"+d+\" to function \"+a.r+\" is not of type Nodeset: \"+b"); + atom.Append(");});F.call(this,a.n);this.Y=a;this.ga=b;uc(this,a.A||Aa(b,function(a){return a.m("); + atom.Append(")}));vc(this,a.Pa&&!b.length||a.Oa&&!!b.length||Aa(b,function(a){return a.p}))}\nn"); + atom.Append("(Ec,F);Ec.prototype.evaluate=function(a){return this.Y.v.apply(null,Ea(a,this.ga))"); + atom.Append("};Ec.prototype.toString=function(){var a=\"Function: \"+this.Y;if(this.ga.length)v"); + atom.Append("ar b=za(this.ga,function(a,b){return a+G(b)},\"Arguments:\"),a=a+G(b);return a};fu"); + atom.Append("nction Fc(a,b,c,d,e,f,g,k,p){this.r=a;this.n=b;this.A=c;this.Pa=d;this.Oa=e;this.v"); + atom.Append("=f;this.Ea=g;this.pa=l(k)?k:g;this.Ra=!!p}Fc.prototype.toString=function(){return "); + atom.Append("this.r};var Gc={};\nfunction L(a,b,c,d,e,f,g,k){if(Gc.hasOwnProperty(a))throw Erro"); + atom.Append("r(\"Function already created: \"+a+\".\");Gc[a]=new Fc(a,b,c,d,!1,e,f,g,k)}L(\"boo"); + atom.Append("lean\",2,!1,!1,function(a,b){return wc(b,a)},1);L(\"ceiling\",1,!1,!1,function(a,b"); + atom.Append("){return Math.ceil(H(b,a))},1);L(\"concat\",3,!1,!1,function(a,b){return za(Ga(arg"); + atom.Append("uments,1),function(b,d){return b+J(d,a)},\"\")},2,null);L(\"contains\",2,!1,!1,fun"); + atom.Append("ction(a,b,c){b=J(b,a);a=J(c,a);return-1!=b.indexOf(a)},2);L(\"count\",1,!1,!1,func"); + atom.Append("tion(a,b){return b.evaluate(a).w()},1,1,!0);\nL(\"false\",2,!1,!1,function(){retur"); + atom.Append("n!1},0);L(\"floor\",1,!1,!1,function(a,b){return Math.floor(H(b,a))},1);L(\"id\",4"); + atom.Append(",!1,!1,function(a,b){function c(a){if(Wb){var b=e.all[a];if(b){if(b.nodeType&&a==b"); + atom.Append(".id)return b;if(b.length)return Ca(b,function(b){return a==b.id})}return null}retu"); + atom.Append("rn e.getElementById(a)}var d=a.l,e=9==d.nodeType?d:d.ownerDocument,d=J(b,a).split("); + atom.Append("/\\s+/),f=[];q(d,function(a){(a=c(a))&&!Da(f,a)&&f.push(a)});f.sort(wb);var g=new "); + atom.Append("E;q(f,function(a){g.add(a)});return g},1);\nL(\"lang\",2,!1,!1,function(){return!1"); + atom.Append("},1);L(\"last\",1,!0,!1,function(a){if(1!=arguments.length)throw Error(\"Function "); + atom.Append("last expects ()\");return a.s},0);L(\"local-name\",3,!1,!0,function(a,b){var c=b?q"); + atom.Append("c(b.evaluate(a)):a.l;return c?c.nodeName.toLowerCase():\"\"},0,1,!0);L(\"name\",3,"); + atom.Append("!1,!0,function(a,b){var c=b?qc(b.evaluate(a)):a.l;return c?c.nodeName.toLowerCase("); + atom.Append("):\"\"},0,1,!0);L(\"namespace-uri\",3,!0,!1,function(){return\"\"},0,1,!0);\nL(\"n"); + atom.Append("ormalize-space\",3,!1,!0,function(a,b){return(b?J(b,a):dc(a.l)).replace(/[\\s\\xa0"); + atom.Append("]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);L(\"not\",2,!1,!1,function(a,b){ret"); + atom.Append("urn!wc(b,a)},1);L(\"number\",1,!1,!0,function(a,b){return b?H(b,a):+dc(a.l)},0,1);"); + atom.Append("L(\"position\",1,!0,!1,function(a){return a.Ua},0);L(\"round\",1,!1,!1,function(a,"); + atom.Append("b){return Math.round(H(b,a))},1);L(\"starts-with\",2,!1,!1,function(a,b,c){b=J(b,a"); + atom.Append(");a=J(c,a);return 0==b.lastIndexOf(a,0)},2);L(\"string\",3,!1,!0,function(a,b){ret"); + atom.Append("urn b?J(b,a):dc(a.l)},0,1);\nL(\"string-length\",1,!1,!0,function(a,b){return(b?J("); + atom.Append("b,a):dc(a.l)).length},0,1);L(\"substring\",3,!1,!1,function(a,b,c,d){c=H(c,a);if(i"); + atom.Append("sNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?H(d,a):Infinity;if(isNaN(d)||-In"); + atom.Append("finity===d)return\"\";c=Math.round(c)-1;var e=Math.max(c,0);a=J(b,a);if(Infinity=="); + atom.Append("d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);L(\"substr"); + atom.Append("ing-after\",3,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);c=b.indexOf(a);return-1==c?"); + atom.Append("\"\":b.substring(c+a.length)},2);\nL(\"substring-before\",3,!1,!1,function(a,b,c){"); + atom.Append("b=J(b,a);a=J(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);L(\"sum\",1"); + atom.Append(",!1,!1,function(a,b){for(var c=sc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+d"); + atom.Append("c(e);return d},1,1,!0);L(\"translate\",3,!1,!1,function(a,b,c,d){b=J(b,a);c=J(c,a)"); + atom.Append(";var e=J(d,a);a=[];for(d=0;da.length)throw Erro"); + atom.Append("r(\"Unclosed literal string\");return new Ic(a)}function gd(a){var b=a.b.next(),c="); + atom.Append("b.indexOf(\":\");if(-1==c)return new ic(b);var d=b.substring(0,c);a=a.Sa(d);if(!a)"); + atom.Append("throw Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return new ic(b"); + atom.Append(",a)}\nfunction hd(a){var b,c=[],d;if(Oc(D(a.b))){b=a.b.next();d=D(a.b);if(\"/\"==b"); + atom.Append("&&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d)"); + atom.Append("))return new Mc;d=new Mc;N(a,\"Missing next location step.\");b=id(a,b);c.push(b)}"); + atom.Append("else{a:{b=D(a.b);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable referen"); + atom.Append("ce not allowed in HTML XPath\");case \"(\":a.b.next();b=bd(a);N(a,'unclosed \"(\"'"); + atom.Append(");dd(a,\")\");break;case '\"':case \"'\":b=fd(a);break;default:if(isNaN(+b))if(!Hc"); + atom.Append("(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==D(a.b,\n1)){b=a.b.next();b=Gc[b]||null;a.b.n"); + atom.Append("ext();for(d=[];\")\"!=D(a.b);){N(a,\"Missing function argument list.\");d.push(bd("); + atom.Append("a));if(\",\"!=D(a.b))break;a.b.next()}N(a,\"Unclosed function argument list.\");ed"); + atom.Append("(a);b=new Ec(b,d)}else{b=null;break a}else b=new Jc(+a.b.next())}\"[\"==D(a.b)&&(d"); + atom.Append("=new Rc(jd(a)),b=new Cc(b,d))}if(b)if(Oc(D(a.b)))d=b;else return b;else b=id(a,\"/"); + atom.Append("\"),d=new Nc,c.push(b)}for(;Oc(D(a.b));)b=a.b.next(),N(a,\"Missing next location s"); + atom.Append("tep.\"),b=id(a,b),c.push(b);return new Kc(d,c)}\nfunction id(a,b){var c,d,e;if(\"/"); + atom.Append("\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\"==D(a.b)"); + atom.Append(")return d=new Sc(Yc,new lc(\"node\")),a.b.next(),d;if(\"..\"==D(a.b))return d=new "); + atom.Append("Sc(Xc,new lc(\"node\")),a.b.next(),d;var f;if(\"@\"==D(a.b))f=Lc,a.b.next(),N(a,\""); + atom.Append("Missing attribute name\");else if(\"::\"==D(a.b,1)){if(!/(?![0-9])[\\w]/.test(D(a."); + atom.Append("b).charAt(0)))throw Error(\"Bad token: \"+a.b.next());c=a.b.next();f=Wc[c]||null;i"); + atom.Append("f(!f)throw Error(\"No axis with name: \"+c);a.b.next();N(a,\"Missing node name\")}"); + atom.Append("else f=\nTc;c=D(a.b);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==D(a.b,1)){if("); + atom.Append("!Hc(c))throw Error(\"Invalid node type: \"+c);c=a.b.next();if(!Hc(c))throw Error("); + atom.Append("\"Invalid type name: \"+c);dd(a,\"(\");N(a,\"Bad nodetype\");e=D(a.b).charAt(0);va"); + atom.Append("r g=null;if('\"'==e||\"'\"==e)g=fd(a);N(a,\"Bad nodetype\");ed(a);c=new lc(c,g)}el"); + atom.Append("se c=gd(a);else if(\"*\"==c)c=gd(a);else throw Error(\"Bad token: \"+a.b.next());e"); + atom.Append("=new Rc(jd(a),f.Q);return d||new Sc(f,c,e,\"//\"==b)}\nfunction jd(a){for(var b=[]"); + atom.Append(";\"[\"==D(a.b);){a.b.next();N(a,\"Missing predicate expression.\");var c=bd(a);b.p"); + atom.Append("ush(c);N(a,\"Unclosed predicate expression.\");dd(a,\"]\")}return b}function cd(a)"); + atom.Append("{if(\"-\"==D(a.b))return a.b.next(),new Zc(cd(a));var b=hd(a);if(\"|\"!=D(a.b))a=b"); + atom.Append(";else{for(b=[b];\"|\"==a.b.next();)N(a,\"Missing next union location path.\"),b.pu"); + atom.Append("sh(hd(a));a.b.back();a=new $c(b)}return a};function kd(a){switch(a.nodeType){case "); + atom.Append("1:return ma(ld,a);case 9:return kd(a.documentElement);case 2:return a.ownerElement"); + atom.Append("?kd(a.ownerElement):md;case 11:case 10:case 6:case 12:return md;default:return a.p"); + atom.Append("arentNode?kd(a.parentNode):md}}function md(){return null}function ld(a,b){if(a.pre"); + atom.Append("fix==b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttribut"); + atom.Append("eNode(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentN"); + atom.Append("ode.nodeType?ld(a.parentNode,b):null};function nd(a,b){if(!a.length)throw Error(\""); + atom.Append("Empty XPath expression.\");var c=ac(a);if(c.empty())throw Error(\"Invalid XPath ex"); + atom.Append("pression.\");b?ea(b)||(b=la(b.lookupNamespaceURI,b)):b=function(){return null};var"); + atom.Append(" d=bd(new ad(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evalua"); + atom.Append("te=function(a,b){var c=d.evaluate(new Vb(a));return new O(c,b)}}\nfunction O(a,b){"); + atom.Append("if(0==b)if(a instanceof E)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"="); + atom.Append("=typeof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected eval"); + atom.Append("uation result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof E))throw Error(\"value could"); + atom.Append(" not be converted to the specified type\");this.resultType=b;var c;switch(b){case "); + atom.Append("2:this.stringValue=a instanceof E?rc(a):\"\"+a;break;case 1:this.numberValue=a ins"); + atom.Append("tanceof E?+rc(a):+a;break;case 3:this.booleanValue=a instanceof E?0=c.length?null:c[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error("); + atom.Append("\"snapshotItem called with wrong result type\");return a>=\nc.length||0>a?null:c[a"); + atom.Append("]}}O.ANY_TYPE=0;O.NUMBER_TYPE=1;O.STRING_TYPE=2;O.BOOLEAN_TYPE=3;O.UNORDERED_NODE_"); + atom.Append("ITERATOR_TYPE=4;O.ORDERED_NODE_ITERATOR_TYPE=5;O.UNORDERED_NODE_SNAPSHOT_TYPE=6;O."); + atom.Append("ORDERED_NODE_SNAPSHOT_TYPE=7;O.ANY_UNORDERED_NODE_TYPE=8;O.FIRST_ORDERED_NODE_TYPE"); + atom.Append("=9;function od(a){this.lookupNamespaceURI=kd(a)}\nfunction pd(a){a=a||aa;var b=a.d"); + atom.Append("ocument;b.evaluate||(a.XPathResult=O,b.evaluate=function(a,b,e,f){return(new nd(a,"); + atom.Append("e)).evaluate(b,f)},b.createExpression=function(a,b){return new nd(a,b)},b.createNS"); + atom.Append("Resolver=function(a){return new od(a)})};var P={};P.Na=function(){var a={Za:\"http"); + atom.Append("://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}();P.v=function(a,"); + atom.Append("b,c){var d=B(a);(u||Sb)&&pd(rb(d));try{var e=d.createNSResolver?d.createNSResolver"); + atom.Append("(d.documentElement):P.Na;return u&&!fb(7)?d.evaluate.call(d,b,a,e,c,null):d.evalua"); + atom.Append("te(b,a,e,c,null)}catch(f){if(!w||\"NS_ERROR_ILLEGAL_VALUE\"!=f.name)throw new r(32"); + atom.Append(",\"Unable to locate an element with the xpath expression \"+b+\" because of the fo"); + atom.Append("llowing error:\\n\"+f);}};\nP.ha=function(a,b){if(!a||1!=a.nodeType)throw new r(32"); + atom.Append(",'The result of the xpath expression \"'+b+'\" is: '+a+\". It should be an element"); + atom.Append(".\");};P.D=function(a,b){var c=function(){var c=P.v(b,a,9);return c?(c=c.singleNod"); + atom.Append("eValue,s?c:c||null):b.selectSingleNode?(c=B(b),c.setProperty&&c.setProperty(\"Sele"); + atom.Append("ctionLanguage\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||P.ha(c,a);retu"); + atom.Append("rn c};\nP.t=function(a,b){var c=function(){var c=P.v(b,a,7);if(c){var e=c.snapshot"); + atom.Append("Length;s&&!l(e)&&P.ha(null,a);for(var f=[],g=0;g"); + atom.Append("=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this."); + atom.Append("left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b"); + atom.Append(",c,d){fa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-="); + atom.Append("a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};h.cei"); + atom.Append("l=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bo"); + atom.Append("ttom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};h.floor=fu"); + atom.Append("nction(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bott"); + atom.Append("om=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};\nh.round="); + atom.Append("function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bo"); + atom.Append("ttom=Math.round(this.bottom);this.left=Math.round(this.left);return this};h.transl"); + atom.Append("ate=function(a,b){a instanceof y?(this.left+=a.x,this.right+=a.x,this.top+=a.y,thi"); + atom.Append("s.bottom+=a.y):(this.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));re"); + atom.Append("turn this};h.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.t"); + atom.Append("op*=c;this.bottom*=c;return this};function S(a,b,c,d){this.left=a;this.top=b;this."); + atom.Append("width=c;this.height=d}h=S.prototype;h.clone=function(){return new S(this.left,this"); + atom.Append(".top,this.width,this.height)};h.toString=function(){return\"(\"+this.left+\", \"+t"); + atom.Append("his.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){ret"); + atom.Append("urn a instanceof S?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.t"); + atom.Append("op<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+thi"); + atom.Append("s.width&&a.y>=this.top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=M"); + atom.Append("ath.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);"); + atom.Append("this.height=Math.ceil(this.height);return this};h.floor=function(){this.left=Math."); + atom.Append("floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);t"); + atom.Append("his.height=Math.floor(this.height);return this};h.round=function(){this.left=Math."); + atom.Append("round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);t"); + atom.Append("his.height=Math.round(this.height);return this};\nh.translate=function(a,b){a inst"); + atom.Append("anceof y?(this.left+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return"); + atom.Append(" this};h.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*="); + atom.Append("c;this.height*=c;return this};function Fd(a,b){var c=B(a);return c.defaultView&&c."); + atom.Append("defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.g"); + atom.Append("etPropertyValue(b)||\"\":\"\"}function Gd(a,b){return Fd(a,b)||(a.currentStyle?a.c"); + atom.Append("urrentStyle[b]:null)||a.style&&a.style[b]}function Hd(a){a=a?B(a):document;var b;("); + atom.Append("b=!u||gb(9))||(b=\"CSS1Compat\"==A(a).J.compatMode);return b?a.documentElement:a.b"); + atom.Append("ody}\nfunction Id(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,"); + atom.Append("top:0,right:0,bottom:0}}u&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.docu"); + atom.Append("mentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body"); + atom.Append(".clientTop);return b}\nfunction Jd(a){if(u&&!gb(8))return a.offsetParent;var b=B(a"); + atom.Append("),c=Gd(a,\"position\"),d=\"fixed\"==c||\"absolute\"==c;for(a=a.parentNode;a&&a!=b;"); + atom.Append("a=a.parentNode)if(c=Gd(a,\"position\"),d=d&&\"static\"==c&&a!=b.documentElement&&a"); + atom.Append("!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||\"fixed"); + atom.Append("\"==c||\"absolute\"==c||\"relative\"==c))return a;return null}\nfunction Kd(a){var"); + atom.Append(" b=a.offsetWidth,c=a.offsetHeight,d=x&&!b&&!c;return l(b)&&!d||!a.getBoundingClien"); + atom.Append("tRect?new kb(b,c):(a=Id(a),new kb(a.right-a.left,a.bottom-a.top))}var Ld={thin:2,m"); + atom.Append("edium:4,thick:6};\nfunction Md(a,b){if(\"none\"==(a.currentStyle?a.currentStyle[b+"); + atom.Append("\"Style\"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+\"Width\"]:null,d;"); + atom.Append("if(c in Ld)d=Ld[c];else if(/^\\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.lef"); + atom.Append("t;var e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c"); + atom.Append(";c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=e;d=c}return d}var Nd=/mat"); + atom.Append("rix\\([0-9\\.\\-]+, [0-9\\.\\-]+, [0-9\\.\\-]+, [0-9\\.\\-]+, ([0-9\\.\\-]+)p?x?, "); + atom.Append("([0-9\\.\\-]+)p?x?\\)/;function Od(a){var b;a:{a=B(a);try{b=a&&a.activeElement;bre"); + atom.Append("ak a}catch(c){}b=null}return u&&b&&\"undefined\"===typeof b.nodeType?null:b}functi"); + atom.Append("on T(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Pd(a"); + atom.Append("){var b;if(b=Qd(a,!0)&&Rd(a))b=!(u||s||w&&!R(\"1.9.2\")?0:\"none\"==U(a,\"pointer-"); + atom.Append("events\"));return b}function Sd(a,b){var c;if(c=Ad&&\"value\"==b&&T(a,\"OPTION\"))"); + atom.Append("c=null===Td(a,\"value\");c?(c=[],Bb(a,c,!1),c=c.join(\"\")):c=a[b];return c}var Ud"); + atom.Append("=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^"); + atom.Append("()]*\\))*[^()]*$)/;\nfunction Vd(a){var b=[];q(a.split(Ud),function(a){var d=a.ind"); + atom.Append("exOf(\":\");0=c&&0<=f&&255>"); + atom.Append("=f&&0<=g&&255>=g&&0<=e&&1>=e){c=[c,f,g,e];break b}}c=null}if(!c)b:{if(g=d.match(Ma"); + atom.Append("))if(c=Number(g[1]),f=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0<=f&&255>=f&&0<=g"); + atom.Append("&&255>=g){c=[c,f,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();\nf=Ha[c.toLowerCa"); + atom.Append("se()];if(!f&&(f=\"#\"==c.charAt(0)?c:\"#\"+c,4==f.length&&(f=f.replace(Ja,\"#$1$1$"); + atom.Append("2$2$3$3\")),!Ka.test(f))){c=null;break b}c=[parseInt(f.substr(1,2),16),parseInt(f."); + atom.Append("substr(3,2),16),parseInt(f.substr(5,2),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d"); + atom.Append("}return d}function ae(a,b){var c=a.currentStyle||a.style,d=c[b];!l(d)&&ea(c.getPro"); + atom.Append("pertyValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d?l(d)?d:null:(c=Zd(a))?"); + atom.Append("ae(c,b):null}\nfunction Qd(a,b){function c(a){if(\"none\"==U(a,\"display\"))return"); + atom.Append("!1;a=Zd(a);return!a||c(a)}function d(a){var b=be(a);return 0=I.left+I.width;\nI=f.top>=I.top+I.height;if(Q&&\"hidden\"=="); + atom.Append("t.x||I&&\"hidden\"==t.y)return de;if(Q&&\"visible\"!=t.x||I&&\"visible\"!=t.y){if("); + atom.Append("v&&(t=e(C),f.left>=k.scrollWidth-t.x||f.right>=k.scrollHeight-t.y))return de;f=ce("); + atom.Append("C);return f==de?de:\"scroll\"}}}return\"none\"}var he=/matrix\\(([\\d\\.\\-]+), (["); + atom.Append("\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+"); + atom.Append(")(?:px)?\\)/;\nfunction be(a){function b(a){var c=rb(B(a)).getComputedStyle(a,null"); + atom.Append(").MozTransform.match(he);if(c){var d=parseFloat(c[1]),e=parseFloat(c[2]),v=parseFl"); + atom.Append("oat(c[3]),C=parseFloat(c[4]),t=parseFloat(c[5]),c=parseFloat(c[6]),I=f.left+f.widt"); + atom.Append("h,Q=f.top+f.height,ja=f.left*d,d=I*d,ob=f.left*e,e=I*e,pb=f.top*v,v=Q*v,qb=f.top*C"); + atom.Append(",I=Q*C,Q=ja+pb+t,C=ob+qb+c,pb=d+pb+t,qb=e+qb+c,ja=ja+v+t,ob=ob+I+c,t=d+v+t,c=e+I+c"); + atom.Append(";f.left=Math.min(Q,pb,ja,t);f.top=Math.min(C,qb,ob,c);t=Math.max(Q,pb,ja,t);c=Math"); + atom.Append(".max(C,qb,ob,c);f.width=\nt-f.left;f.height=c-f.top}(a=Zd(a))&&b(a)}var c=ee(a);if"); + atom.Append("(c)return c.rect;if(T(a,\"HTML\"))return c=B(a),a=mb(rb(c)||window),new S(0,0,a.wi"); + atom.Append("dth,a.height);var d;try{d=a.getBoundingClientRect()}catch(e){return new S(0,0,0,0)"); + atom.Append("}var f=new S(d.left,d.top,d.right-d.left,d.bottom-d.top);u&&a.ownerDocument.body&&"); + atom.Append("(c=B(a),f.left-=c.documentElement.clientLeft+c.body.clientLeft,f.top-=c.documentEl"); + atom.Append("ement.clientTop+c.body.clientTop);s&&(0==f.width&&02*this.N&&uf(this),!0):!1};function"); + atom.Append(" uf(a){if(a.N!=a.j.length){for(var b=0,c=0;b\");X(191,\"/\",\"?\");X("); + atom.Append("192,\"`\",\"~\");X(219,\"[\",\"{\");X(220,\"\\\\\",\"|\");X(221,\"]\",\"}\");var B"); + atom.Append("g=X({d:59,e:186,opera:59},\";\",\":\");X(222,\"'\",'\"');var Cg=[If,Hf,Wf,Y],Dg=ne"); + atom.Append("w tf;Dg.set(1,Y);Dg.set(2,Hf);Dg.set(4,If);Dg.set(8,Wf);var Eg=function(a){var b=n"); + atom.Append("ew tf;q(vf(a),function(c){b.set(a.get(c).code,c)});return b}(Dg);function Bf(a,b,c"); + atom.Append("){if(Da(Cg,b)){var d=Eg.get(b.code),e=a.U;e.ba=c?e.ba|d:e.ba&~d}c?a.ca.add(b):a.ca"); + atom.Append(".remove(b)}var Fg=u||s?\"\\r\\n\":\"\\n\";Af.prototype.g=function(a){return this.c"); + atom.Append("a.contains(a)};\nfunction Gg(a,b){if(Da(Cg,b)&&a.g(b))throw new r(13,\"Cannot pres"); + atom.Append("s a modifier key that is already pressed.\");var c=null!==b.code&&Hg(a,ff,b);if((c"); + atom.Append("||w)&&(!Ig(b)||Hg(a,Xe,b,!c))&&c&&(Jg(a,b),a.ja))if(b.H){if(!Kg){var c=Lg(a,b),d=p"); + atom.Append("f(a.c(),!0)[0]+1;Mg(a.c())?(sf(a.c(),c),lf(a.c(),d)):a.c().value+=c;x&&a.K(df);Cd|"); + atom.Append("|a.K(cf);a.q=d}}else switch(b){case Gf:Kg||(x&&a.K(df),T(a.c(),\"TEXTAREA\")&&(c=p"); + atom.Append("f(a.c(),!0)[0]+Fg.length,Mg(a.c())?(sf(a.c(),Fg),lf(a.c(),c)):a.c().value+=Fg,u||a"); + atom.Append(".K(cf),a.q=c));break;case Ef:case Vf:Kg||\n(Ng(a.c()),c=pf(a.c(),!1),c[0]==c[1]&&("); + atom.Append("b==Ef?(lf(a.c(),c[1]-1),qf(a.c(),c[1])):qf(a.c(),c[1]+1)),c=pf(a.c(),!1),c=!(c[0]="); + atom.Append("=a.c().value.length||0==c[1]),sf(a.c(),\"\"),(!u&&c||w&&b==Ef)&&a.K(cf),c=pf(a.c()"); + atom.Append(",!1),a.q=c[1]);break;case Qf:case Sf:Ng(a.c());var c=a.c(),e=pf(c,!0)[0],f=pf(c,!1"); + atom.Append(")[1],g=d=0;b==Qf?a.g(Y)?a.q==e?(d=Math.max(e-1,0),g=f,e=d):(d=e,e=g=f-1):e=e==f?Ma"); + atom.Append("th.max(e-1,0):e:a.g(Y)?a.q==f?(d=e,e=g=Math.min(f+1,c.value.length)):(d=e+1,g=f,e="); + atom.Append("d):e=e==f?Math.min(f+1,c.value.length):f;a.g(Y)?(lf(c,\nd),qf(c,g)):rf(c,e);a.q=e;"); + atom.Append("break;case Pf:case Of:Ng(a.c()),c=a.c(),d=pf(c,!0)[0],g=pf(c,!1)[1],b==Pf?(a.g(Y)?"); + atom.Append("(lf(c,0),qf(c,a.q==d?g:d)):rf(c,0),a.q=0):(a.g(Y)?(a.q==d&&lf(c,g),qf(c,c.value.le"); + atom.Append("ngth)):rf(c,c.value.length),a.q=c.value.length)}Bf(a,b,!0)}function Ig(a){if(a.H||"); + atom.Append("a==Gf)return!0;if(x)return!1;if(u)return a==Kf;switch(a){case Y:case Hf:case If:re"); + atom.Append("turn!1;case Wf:case Xf:case Yf:return w;default:return!0}}\nfunction Jg(a,b){if(b="); + atom.Append("=Gf&&!w&&T(a.c(),\"INPUT\")){var c=Cb(a.c(),Ne,!0);if(c){var d=c.getElementsByTagN"); + atom.Append("ame(\"input\");(Aa(d,function(a){a:{if(T(a,\"INPUT\")){var b=a.type.toLowerCase();"); + atom.Append("if(\"submit\"==b||\"image\"==b){a=!0;break a}}if(T(a,\"BUTTON\")&&(b=a.type.toLowe"); + atom.Append("rCase(),\"submit\"==b)){a=!0;break a}a=!1}return a})||1==d.length||x&&!R(534))&&Oe"); + atom.Append("(c)}}}function Og(a,b){if(!a.g(b))throw new r(13,\"Cannot release a key that is no"); + atom.Append("t pressed. (\"+b.code+\")\");null===b.code||Hg(a,gf,b);Bf(a,b,!1)}\nfunction Lg(a,"); + atom.Append("b){if(!b.H)throw new r(13,\"not a character key\");return a.g(Y)?b.Va:b.H}var Kg=w"); + atom.Append("&&!R(12);function Ng(a){try{a.selectionStart}catch(b){if(-1!=b.message.indexOf(\"d"); + atom.Append("oes not support selection.\"))throw Error(b.message+\" (For more information, see "); + atom.Append("https://code.google.com/p/chromium/issues/detail?id=330456)\");throw b;}}function "); + atom.Append("Mg(a){try{Ng(a)}catch(b){return!1}return!0}\nfunction Hg(a,b,c,d){if(null===c.code"); + atom.Append(")throw new r(13,\"Key must have a keycode to be fired.\");c={altKey:a.g(If),ctrlKe"); + atom.Append("y:a.g(Hf),metaKey:a.g(Wf),shiftKey:a.g(Y),keyCode:c.code,charCode:c.H&&b==Xe?Lg(a,"); + atom.Append("c).charCodeAt(0):0,preventDefault:!!d};return a.ka(b,c)}\nfunction Pg(a,b){xe(a,b)"); + atom.Append(";a.ja=$d(b);var c;c=a.u||a.i;var d=Od(c);if(c==d)c=!1;else{if(d&&(ea(d.blur)||u&&f"); + atom.Append("a(d.blur))){if(!T(d,\"BODY\"))try{d.blur()}catch(e){if(!u||\"Unspecified error.\"!"); + atom.Append("=e.message)throw e;}u&&!R(8)&&rb(B(c)).focus()}ea(c.focus)||u&&fa(c.focus)?(s&&R(1"); + atom.Append("1)&&!Qd(c)?Pe(c,bf):c.focus(),c=!0):c=!1}a.ja&&c&&(rf(b,b.value.length),a.q=b.valu"); + atom.Append("e.length)}Af.prototype.S=function(){return{pressed:this.ca.O(),currentPos:this.q}}"); + atom.Append(";function Qg(a,b,c){we.call(this,b,c);this.xa=this.M=null;this.I=new y(0,0);this.Z"); + atom.Append("=this.ra=!1;if(a){da(a.buttonPressed)&&(this.M=a.buttonPressed);try{T(a.elementPre"); + atom.Append("ssed)&&(this.xa=a.elementPressed)}catch(d){this.M=null}this.I=new y(a.clientXY.x,a"); + atom.Append(".clientXY.y);this.ra=!!a.nextClickIsDoubleClick;this.Z=!!a.hasEverInteracted;try{a"); + atom.Append(".element&&T(a.element)&&xe(this,a.element)}catch(e){this.M=null}}}n(Qg,we);var Z={"); + atom.Append("};\nCd?(Z[Ce]=[0,0,0,null],Z[Je]=[null,null,0,null],Z[Me]=[1,4,2,null],Z[Be]=[0,0,"); + atom.Append("0,0],Z[Ke]=[1,4,2,0]):x||Bd?(Z[Ce]=[0,1,2,null],Z[Je]=[null,null,2,null],Z[Me]=[0,"); + atom.Append("1,2,null],Z[Be]=[0,1,2,0],Z[Ke]=[0,1,2,0]):(Z[Ce]=[0,1,2,null],Z[Je]=[null,null,2,"); + atom.Append("null],Z[Me]=[0,1,2,null],Z[Be]=[0,0,0,0],Z[Ke]=[0,0,0,0]);Dd&&(Z[Ie]=Z[Me],Z[kf]=Z"); + atom.Append("[Me],Z[Le]=[-1,-1,-1,-1],Z[He]=Z[Le],Z[Ge]=Z[Le]);Z[ef]=Z[Ce];Z[De]=Z[Me];Z[Ae]=Z["); + atom.Append("Be];var Rg={};Rg[De]=Ie;Rg[Ke]=Le;Rg[Be]=He;Rg[Ae]=Ge;Rg[Me]=kf;\nQg.prototype.mov"); + atom.Append("e=function(a,b){var c=Pd(a),d=be(a);this.I.x=b.x+d.left;this.I.y=b.y+d.top;d=this."); + atom.Append("c();if(a!=d){try{rb(B(d)).closed&&(d=null)}catch(e){d=null}if(d){var f=d===oa.docu"); + atom.Append("ment.documentElement||d===oa.document.body,d=!this.Z&&f?null:d;Sg(this,Be,a)}xe(th"); + atom.Append("is,a);u||Sg(this,Ae,d,null,c)}Sg(this,Ke,null,null,c);u&&a!=d&&Sg(this,Ae,d,null,c"); + atom.Append(");this.ra=!1};\nQg.prototype.scroll=function(a){if(0==a)throw new r(13,\"Must scro"); + atom.Append("ll a non-zero number of ticks.\");for(var b=0=a){var b=$.a[a];if(null===b)g.push(k=e()),f&&(k.Fa"); + atom.Append("=!1,g.push(k=e()));else if(l(b))k.keys.push(b);else throw Error(\"Unsupported WebD"); + atom.Append("river key: \\\\u\"+a.charCodeAt(0).toString(16));}else switch(a){case \"\\n\":k.ke"); + atom.Append("ys.push(Gf);break;case \"\\t\":k.keys.push(Ff);break;case \"\\b\":k.keys.push(Ef);"); + atom.Append("break;default:k.keys.push(a)}})});q(g,function(b){Ug(a,b.keys,c,b.Fa)})}\n$.a={};$"); + atom.Append(".a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=Ef;$.a[\"\\ue004\"]=Ff;$.a[\"\\ue006\"]=Gf;$"); + atom.Append(".a[\"\\ue007\"]=Gf;$.a[\"\\ue008\"]=Y;$.a[\"\\ue009\"]=Hf;$.a[\"\\ue00a\"]=If;$.a["); + atom.Append("\"\\ue00b\"]=Jf;$.a[\"\\ue00c\"]=Kf;$.a[\"\\ue00d\"]=Lf;$.a[\"\\ue00e\"]=Mf;$.a[\""); + atom.Append("\\ue00f\"]=Nf;$.a[\"\\ue010\"]=Of;$.a[\"\\ue011\"]=Pf;$.a[\"\\ue012\"]=Qf;$.a[\""); + atom.Append("\\ue013\"]=Rf;$.a[\"\\ue014\"]=Sf;$.a[\"\\ue015\"]=Tf;$.a[\"\\ue016\"]=Uf;$.a[\""); + atom.Append("\\ue017\"]=Vf;$.a[\"\\ue018\"]=Bg;$.a[\"\\ue019\"]=zg;$.a[\"\\ue01a\"]=Zf;$.a[\""); + atom.Append("\\ue01b\"]=$f;$.a[\"\\ue01c\"]=ag;$.a[\"\\ue01d\"]=bg;$.a[\"\\ue01e\"]=cg;$.a[\""); + atom.Append("\\ue01f\"]=dg;\n$.a[\"\\ue020\"]=eg;$.a[\"\\ue021\"]=fg;$.a[\"\\ue022\"]=gg;$.a[\""); + atom.Append("\\ue023\"]=hg;$.a[\"\\ue024\"]=ig;$.a[\"\\ue025\"]=jg;$.a[\"\\ue027\"]=kg;$.a[\""); + atom.Append("\\ue028\"]=lg;$.a[\"\\ue029\"]=mg;$.a[\"\\ue026\"]=Ag;$.a[\"\\ue031\"]=ng;$.a[\""); + atom.Append("\\ue032\"]=og;$.a[\"\\ue033\"]=pg;$.a[\"\\ue034\"]=qg;$.a[\"\\ue035\"]=rg;$.a[\""); + atom.Append("\\ue036\"]=sg;$.a[\"\\ue037\"]=tg;$.a[\"\\ue038\"]=ug;$.a[\"\\ue039\"]=vg;$.a[\""); + atom.Append("\\ue03a\"]=wg;$.a[\"\\ue03b\"]=xg;$.a[\"\\ue03c\"]=yg;$.a[\"\\ue03d\"]=Wf;function"); + atom.Append(" Xg(){this.da=void 0}\nfunction Yg(a,b,c){switch(typeof b){case \"string\":Zg(b,c)"); + atom.Append(";break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"bool"); + atom.Append("ean\":c.push(b);break;case \"undefined\":c.push(\"null\");break;case \"object\":if"); + atom.Append("(null==b){c.push(\"null\");break}if(\"array\"==ba(b)){var d=b.length;c.push(\"[\")"); + atom.Append(";for(var e=\"\",f=0;fb?e+=\"000\":256>b?e+=\"00"); + atom.Append("\":4096>b&&(e+=\"0\");return $g[a]=e+b.toString(16)}),'\"')};x||s||w&&R(3.5)||u&&R"); + atom.Append("(8);function bh(a){switch(ba(a)){case \"string\":case \"number\":case \"boolean\":"); + atom.Append("return a;case \"function\":return a.toString();case \"array\":return ya(a,bh);case"); + atom.Append(" \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMEN"); + atom.Append("T=ch(a);return b}if(\"document\"in a)return b={},b.WINDOW=ch(a),b;if(ca(a))return "); + atom.Append("ya(a,bh);a=Ta(a,function(a,b){return da(b)||m(b)});return Ua(a,bh);default:return "); + atom.Append("null}}\nfunction dh(a,b){return\"array\"==ba(a)?ya(a,function(a){return dh(a,b)}):"); + atom.Append("fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?eh(a.ELEMENT,b):\"WINDOW\"in a?eh(a"); + atom.Append(".WINDOW,b):Ua(a,function(a){return dh(a,b)}):a}function fh(a){a=a||document;var b="); + atom.Append("a.$wdc_;b||(b=a.$wdc_={},b.sa=na());b.sa||(b.sa=na());return b}function ch(a){var "); + atom.Append("b=fh(a.ownerDocument),c=Wa(b,function(b){return b==a});c||(c=\":wdc:\"+b.sa++,b[c]"); + atom.Append("=a);return c}\nfunction eh(a,b){a=decodeURIComponent(a);var c=b||document,d=fh(c);"); + atom.Append("if(!(a in d))throw new r(10,\"Element does not exist in cache\");var e=d[a];if(\"s"); + atom.Append("etInterval\"in e){if(e.closed)throw delete d[a],new r(23,\"Window has been closed."); + atom.Append("\");return e}for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delet"); + atom.Append("e d[a];throw new r(10,\"Element is no longer attached to the DOM\");};function gh("); + atom.Append("a,b,c,d){d=new Qg(d);var e=a||d.S().element,f=null!=b&&null!=c;b=b||0;c=c||0;if(a)"); + atom.Append("f||(c=Wg(a),b=Math.floor(c.width/2),c=Math.floor(c.height/2));else{var g;if(1==e.n"); + atom.Append("odeType){if(e.getBoundingClientRect)g=Id(e),g=new y(g.left,g.top);else{a=Fb(A(e));"); + atom.Append("var k=B(e),p=Gd(e,\"position\"),z=w&&k.getBoxObjectFor&&!e.getBoundingClientRect&&"); + atom.Append("\"absolute\"==p&&(g=k.getBoxObjectFor(e))&&(0>g.screenX||0>g.screenY),f=new y(0,0)"); + atom.Append(",v=Hd(k);if(e!=v)if(e.getBoundingClientRect)g=Id(e),k=Fb(A(k)),f.x=g.left+k.x,f.y="); + atom.Append("g.top+\nk.y;else if(k.getBoxObjectFor&&!z)g=k.getBoxObjectFor(e),k=k.getBoxObjectF"); + atom.Append("or(v),f.x=g.screenX-k.screenX,f.y=g.screenY-k.screenY;else{g=e;do{f.x+=g.offsetLef"); + atom.Append("t;f.y+=g.offsetTop;g!=e&&(f.x+=g.clientLeft||0,f.y+=g.clientTop||0);if(x&&\"fixed"); + atom.Append("\"==Gd(g,\"position\")){f.x+=k.body.scrollLeft;f.y+=k.body.scrollTop;break}g=g.off"); + atom.Append("setParent}while(g&&g!=e);if(s||x&&\"absolute\"==p)f.y-=k.body.offsetTop;for(g=e;(g"); + atom.Append("=Jd(g))&&g!=k.body&&g!=v;)f.x-=g.scrollLeft,s&&\"TR\"==g.tagName||(f.y-=g.scrollTo"); + atom.Append("p)}g=new y(f.x-a.x,f.y-a.y)}if(w&&\n!fb(12)){c:{a=ua(\"transform\");if(void 0===e."); + atom.Append("style[a]&&(a=(x?\"Webkit\":w?\"Moz\":u?\"ms\":s?\"O\":null)+va(a),void 0!==e.style"); + atom.Append("[a])){a=(x?\"-webkit\":w?\"-moz\":u?\"-ms\":s?\"-o\":null)+\"-transform\";break c}"); + atom.Append("a=\"transform\"}a=(a=Gd(e,a)||Gd(e,\"transform\"))?(a=a.match(Nd))?new y(parseFloa"); + atom.Append("t(a[1]),parseFloat(a[2])):new y(0,0):new y(0,0);g=new y(g.x+a.x,g.y+a.y)}}else g=e"); + atom.Append("a(e.na),a=e,e.targetTouches&&e.targetTouches.length?a=e.targetTouches[0]:g&&e.na()"); + atom.Append(".targetTouches&&e.na().targetTouches.length&&(a=e.na().targetTouches[0]),\ng=new y"); + atom.Append("(a.clientX,a.clientY);b+=d.S().clientXY.x-g.x;c+=d.S().clientXY.y-g.y}Vg(e,new y(b"); + atom.Append(",c));d.move(e,new y(b,c));return d.S()};function hh(a,b,c,d,e){a=[a,b,c,d];var f;t"); + atom.Append("ry{var g=e?eh(e.WINDOW):window,k=dh(a,g.document),p=gh.apply(null,k);f={status:0,v"); + atom.Append("alue:bh(p)}}catch(z){f={status:\"code\"in z?z.code:13,value:{message:z.message}}}e"); + atom.Append("=[];Yg(new Xg,f,e);return e.join(\"\")}var ih=[\"_\"],jh=aa;ih[0]in jh||!jh.execSc"); + atom.Append("ript||jh.execScript(\"var \"+ih[0]);for(var kh;ih.length&&(kh=ih.shift());)!ih.len"); + atom.Append("gth&&l(hh)?jh[kh]=hh:jh=jh[kh]?jh[kh]:jh[kh]={};; return this._.apply(null,argumen"); + atom.Append("ts);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typ"); + atom.Append("eof window!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string MouseDoubleClick + { + get + { + const string atomName = "MouseDoubleClick"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function aa(a){return void 0!==a}\nfunct"); + atom.Append("ion ba(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"arra"); + atom.Append("y\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"["); + atom.Append("object Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof "); + atom.Append("a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumer"); + atom.Append("able&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\""); + atom.Append("==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!"); + atom.Append("a.propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=ba(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction m(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==ba(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ka(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ua(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var va=Array.prototype;function p(a,b,c){for(va"); + atom.Append("r d=a.length,f=m(a)?a.split(\"\"):a,e=0;ec?null:m(a)?a.charAt(c):a[c]}\nfunction Ca(a,b){var c;a:if(m(a))c=m(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?va.slice.call(a,b):va.slice.call(a,b,"); + atom.Append("c)};var Ga={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ha=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ia=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ja=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ka=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,La=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function r(a,b){this.code=a;this.state=Ma[a]||Na;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}n("); + atom.Append("r,Error);\nvar Na=\"unknown error\",Ma={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};Ma[13]=Na;Ma[9]=\"unknown command\";r.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var Oa;a:{var Pa=l.navigator;if(Pa){var Qa=Pa.user"); + atom.Append("Agent;if(Qa){Oa=Qa;break a}}Oa=\"\"}function Ra(a){return-1!=Oa.indexOf(a)};functi"); + atom.Append("on Sa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}fun"); + atom.Append("ction Ta(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function"); + atom.Append(" Ua(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Va(a,b){for(var c i"); + atom.Append("n a)if(b.call(void 0,a[c],c,a))return c};var Wa,Xa,s=Ra(\"Opera\")||Ra(\"OPR\"),t="); + atom.Append("Ra(\"Trident\")||Ra(\"MSIE\"),v=Ra(\"Gecko\")&&-1==Oa.toLowerCase().indexOf(\"webk"); + atom.Append("it\")&&!(Ra(\"Trident\")||Ra(\"MSIE\")),x=-1!=Oa.toLowerCase().indexOf(\"webkit\")"); + atom.Append(",Ya=x&&Ra(\"Mobile\"),Za,$a=l.navigator||null;Za=$a&&$a.platform||\"\";Wa=-1!=Za.i"); + atom.Append("ndexOf(\"Mac\");Xa=-1!=Za.indexOf(\"Win\");var ab=-1!=Za.indexOf(\"Linux\");functi"); + atom.Append("on bb(){var a=l.document;return a?a.documentMode:void 0}\nvar cb=function(){var a="); + atom.Append("\"\",b;if(s&&l.opera)return a=l.opera.version,ea(a)?a():a;v?b=/rv\\:([^\\);]+)(\\)"); + atom.Append("|;)/:t?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:x&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b"); + atom.Append(".exec(Oa))?a[1]:\"\");return t&&(b=bb(),b>parseFloat(a))?String(b):a}(),db={};func"); + atom.Append("tion eb(a){return db[a]||(db[a]=0<=sa(cb,a))}function fb(a){return t&&gb>=a}var hb"); + atom.Append("=l.document,gb=hb&&t?bb()||(\"CSS1Compat\"==hb.compatMode?parseInt(cb,10):5):void "); + atom.Append("0;!v&&!t||t&&fb(9)||v&&eb(\"1.9.1\");t&&eb(\"9\");function ib(a,b,c){return Math.m"); + atom.Append("in(Math.max(a,b),c)};function jb(a,b){this.x=aa(a)?a:0;this.y=aa(b)?b:0}h=jb.proto"); + atom.Append("type;h.clone=function(){return new jb(this.x,this.y)};h.toString=function(){return"); + atom.Append("\"(\"+this.x+\", \"+this.y+\")\"};h.ceil=function(){this.x=Math.ceil(this.x);this."); + atom.Append("y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this"); + atom.Append(".y=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);th"); + atom.Append("is.y=Math.round(this.y);return this};\nh.translate=function(a,b){a instanceof jb?("); + atom.Append("this.x+=a.x,this.y+=a.y):(this.x+=a,da(b)&&(this.y+=b));return this};h.scale=funct"); + atom.Append("ion(a,b){var c=da(b)?b:a;this.x*=a;this.y*=c;return this};function kb(a,b){this.wi"); + atom.Append("dth=a;this.height=b}h=kb.prototype;h.clone=function(){return new kb(this.width,thi"); + atom.Append("s.height)};h.toString=function(){return\"(\"+this.width+\" x \"+this.height+\")\"}"); + atom.Append(";h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.hei"); + atom.Append("ght);return this};h.floor=function(){this.width=Math.floor(this.width);this.height"); + atom.Append("=Math.floor(this.height);return this};h.round=function(){this.width=Math.round(thi"); + atom.Append("s.width);this.height=Math.round(this.height);return this};\nh.scale=function(a,b){"); + atom.Append("var c=da(b)?b:a;this.width*=a;this.height*=c;return this};function lb(a){return a?"); + atom.Append("new mb(y(a)):pa||(pa=new mb)}function nb(a){a=a.document;a=\"CSS1Compat\"==a.compa"); + atom.Append("tMode?a.documentElement:a.body;return new kb(a.clientWidth,a.clientHeight)}functio"); + atom.Append("n ob(a){return x||\"CSS1Compat\"!=a.compatMode?a.body||a.documentElement:a.documen"); + atom.Append("tElement}function z(a){return a?a.parentWindow||a.defaultView:window}\nfunction pb"); + atom.Append("(a,b,c){function d(c){c&&b.appendChild(m(c)?a.createTextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),bc=/^\\s/;function A(a,b){return a.ta[a.ca+(b||0)]}Z"); + atom.Append("b.prototype.next=function(){return this.ta[this.ca++]};Zb.prototype.back=function("); + atom.Append("){this.ca--};Zb.prototype.empty=function(){return this.ta.length<=this.ca};functio"); + atom.Append("n cc(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.inne"); + atom.Append("rText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Vb&&\"title\"==a.n"); + atom.Append("odeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:"); + atom.Append("a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Vb&&\""); + atom.Append("title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for("); + atom.Append(";c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction dc(a,b,"); + atom.Append("c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Wb&&\"cl"); + atom.Append("ass\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)"); + atom.Append("==c}function ec(a,b,c,d,f){return(Vb?fc:gc).call(null,a,b,m(c)?c:null,m(d)?d:null,"); + atom.Append("f||new C)}\nfunction fc(a,b,c,d,f){if(a instanceof hc||8==a.g||c&&null===a.g){var "); + atom.Append("e=b.all;if(!e)return f;a=ic(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a),!e))retur"); + atom.Append("n f;if(c){for(var g=[],k=0;b=e[k++];)dc(b,c,d)&&g.push(b);e=g}for(k=0;b=e[k++];)\""); + atom.Append("*\"==a&&\"!\"==b.tagName||f.add(b);return f}jc(a,b,c,d,f);return f}\nfunction gc(a"); + atom.Append(",b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!t?(b=b.getElementsByName(d),p(b,fu"); + atom.Append("nction(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b"); + atom.Append(".getElementsByClassName(d),p(b,function(b){b.className==d&&a.matches(b)&&f.add(b)}"); + atom.Append(")):a instanceof kc?jc(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElementsByTagName"); + atom.Append("(a.getName()),p(b,function(a){dc(a,c,d)&&f.add(a)}));return f}\nfunction lc(a,b,c,"); + atom.Append("d,f){var e;if((a instanceof hc||8==a.g||c&&null===a.g)&&(e=b.childNodes)){var g=ic"); + atom.Append("(a);if(\"*\"!=g&&(e=wa(e,function(a){return a.tagName&&a.tagName.toLowerCase()==g}"); + atom.Append("),!e))return f;c&&(e=wa(e,function(a){return dc(a,c,d)}));p(e,function(a){\"*\"==g"); + atom.Append("&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}return mc(a,b,c"); + atom.Append(",d,f)}function mc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)dc(b,c,d)&&a.mat"); + atom.Append("ches(b)&&f.add(b);return f}\nfunction jc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextS"); + atom.Append("ibling)dc(b,c,d)&&a.matches(b)&&f.add(b),jc(a,b,c,d,f)}function ic(a){if(a instanc"); + atom.Append("eof kc){if(8==a.g)return\"!\";if(null===a.g)return\"*\"}return a.getName()};functi"); + atom.Append("on C(){this.u=this.p=null;this.V=0}function nc(a){this.R=a;this.next=this.N=null}f"); + atom.Append("unction oc(a,b){if(!a.p)return b;if(!b.p)return a;for(var c=a.p,d=b.p,f=null,e=nul"); + atom.Append("l,g=0;c&&d;){var e=c.R,k=d.R;e==k||e instanceof Xb&&k instanceof Xb&&e.l==k.l?(e=c"); + atom.Append(",c=c.next,d=d.next):0\",4,2,function(a,b,c){return yc(function(a,"); + atom.Append("b){return a>b},a,b,c)});I(\"<=\",4,2,function(a,b,c){return yc(function(a,b){retur"); + atom.Append("n a<=b},a,b,c)});I(\">=\",4,2,function(a,b,c){return yc(function(a,b){return a>=b}"); + atom.Append(",a,b,c)});var xc=I(\"=\",3,2,function(a,b,c){return yc(function(a,b){return a==b},"); + atom.Append("a,b,c,!0)});I(\"!=\",3,2,function(a,b,c){return yc(function(a,b){return a!=b},a,b,"); + atom.Append("c,!0)});I(\"and\",2,2,function(a,b,c){return vc(a,c)&&vc(b,c)});I(\"or\",1,2,funct"); + atom.Append("ion(a,b,c){return vc(a,c)||vc(b,c)});function Bc(a,b){if(b.A()&&4!=a.o)throw Error"); + atom.Append("(\"Primary expression must evaluate to nodeset if filter has predicate(s).\");D.ca"); + atom.Append("ll(this,a.o);this.Ga=a;this.i=b;this.C=a.m();this.q=a.q}n(Bc,D);Bc.prototype.evalu"); + atom.Append("ate=function(a){a=this.Ga.evaluate(a);return Cc(this.i,a)};Bc.prototype.toString=f"); + atom.Append("unction(){var a;a=\"Filter:\"+F(this.Ga);return a+=F(this.i)};function Dc(a,b){if("); + atom.Append("b.lengtha.pa)throw Error(\"Function \""); + atom.Append("+a.t+\" expects at most \"+a.pa+\" arguments, \"+b.length+\" given\");a.Qa&&p(b,fu"); + atom.Append("nction(b,d){if(4!=b.o)throw Error(\"Argument \"+d+\" to function \"+a.t+\" is not "); + atom.Append("of type Nodeset: \"+b);});D.call(this,a.o);this.aa=a;this.ja=b;tc(this,a.C||za(b,f"); + atom.Append("unction(a){return a.m()}));uc(this,a.Oa&&!b.length||a.Na&&!!b.length||za(b,functio"); + atom.Append("n(a){return a.q}))}\nn(Dc,D);Dc.prototype.evaluate=function(a){return this.aa.w.ap"); + atom.Append("ply(null,Da(a,this.ja))};Dc.prototype.toString=function(){var a=\"Function: \"+thi"); + atom.Append("s.aa;if(this.ja.length)var b=ya(this.ja,function(a,b){return a+F(b)},\"Arguments:"); + atom.Append("\"),a=a+F(b);return a};function Ec(a,b,c,d,f,e,g,k,q){this.t=a;this.o=b;this.C=c;t"); + atom.Append("his.Oa=d;this.Na=f;this.w=e;this.Da=g;this.pa=aa(k)?k:g;this.Qa=!!q}Ec.prototype.t"); + atom.Append("oString=function(){return this.t};var Fc={};\nfunction J(a,b,c,d,f,e,g,k){if(Fc.ha"); + atom.Append("sOwnProperty(a))throw Error(\"Function already created: \"+a+\".\");Fc[a]=new Ec(a"); + atom.Append(",b,c,d,!1,f,e,g,k)}J(\"boolean\",2,!1,!1,function(a,b){return vc(b,a)},1);J(\"ceil"); + atom.Append("ing\",1,!1,!1,function(a,b){return Math.ceil(G(b,a))},1);J(\"concat\",3,!1,!1,func"); + atom.Append("tion(a,b){return ya(Fa(arguments,1),function(b,d){return b+H(d,a)},\"\")},2,null);"); + atom.Append("J(\"contains\",2,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);return-1!=b.indexOf(a)},2"); + atom.Append(");J(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).A()},1,1,!0);\nJ(\"false"); + atom.Append("\",2,!1,!1,function(){return!1},0);J(\"floor\",1,!1,!1,function(a,b){return Math.f"); + atom.Append("loor(G(b,a))},1);J(\"id\",4,!1,!1,function(a,b){function c(a){if(Vb){var b=f.all[a"); + atom.Append("];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return Ba(b,function(b){return"); + atom.Append(" a==b.id})}return null}return f.getElementById(a)}var d=a.l,f=9==d.nodeType?d:d.ow"); + atom.Append("nerDocument,d=H(b,a).split(/\\s+/),e=[];p(d,function(a){(a=c(a))&&!Ca(e,a)&&e.push"); + atom.Append("(a)});e.sort(wb);var g=new C;p(e,function(a){g.add(a)});return g},1);\nJ(\"lang\","); + atom.Append("2,!1,!1,function(){return!1},1);J(\"last\",1,!0,!1,function(a){if(1!=arguments.len"); + atom.Append("gth)throw Error(\"Function last expects ()\");return a.u},0);J(\"local-name\",3,!1"); + atom.Append(",!0,function(a,b){var c=b?pc(b.evaluate(a)):a.l;return c?c.nodeName.toLowerCase():"); + atom.Append("\"\"},0,1,!0);J(\"name\",3,!1,!0,function(a,b){var c=b?pc(b.evaluate(a)):a.l;retur"); + atom.Append("n c?c.nodeName.toLowerCase():\"\"},0,1,!0);J(\"namespace-uri\",3,!0,!1,function(){"); + atom.Append("return\"\"},0,1,!0);\nJ(\"normalize-space\",3,!1,!0,function(a,b){return(b?H(b,a):"); + atom.Append("cc(a.l)).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);J(\"not"); + atom.Append("\",2,!1,!1,function(a,b){return!vc(b,a)},1);J(\"number\",1,!1,!0,function(a,b){ret"); + atom.Append("urn b?G(b,a):+cc(a.l)},0,1);J(\"position\",1,!0,!1,function(a){return a.Ta},0);J("); + atom.Append("\"round\",1,!1,!1,function(a,b){return Math.round(G(b,a))},1);J(\"starts-with\",2,"); + atom.Append("!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);return 0==b.lastIndexOf(a,0)},2);J(\"strin"); + atom.Append("g\",3,!1,!0,function(a,b){return b?H(b,a):cc(a.l)},0,1);\nJ(\"string-length\",1,!1"); + atom.Append(",!0,function(a,b){return(b?H(b,a):cc(a.l)).length},0,1);J(\"substring\",3,!1,!1,fu"); + atom.Append("nction(a,b,c,d){c=G(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?G(d"); + atom.Append(",a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.ma"); + atom.Append("x(c,0);a=H(b,a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a.subs"); + atom.Append("tring(f,c+b)},2,3);J(\"substring-after\",3,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a)"); + atom.Append(";c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nJ(\"substring-befor"); + atom.Append("e\",3,!1,!1,function(a,b,c){b=H(b,a);a=H(c,a);a=b.indexOf(a);return-1==a?\"\":b.su"); + atom.Append("bstring(0,a)},2);J(\"sum\",1,!1,!1,function(a,b){for(var c=rc(b.evaluate(a)),d=0,f"); + atom.Append("=c.next();f;f=c.next())d+=+cc(f);return d},1,1,!0);J(\"translate\",3,!1,!1,functio"); + atom.Append("n(a,b,c,d){b=H(b,a);c=H(c,a);var f=H(d,a);a=[];for(d=0;da.length)throw Error(\"Unclosed literal string\");return new Hc(a)}fun"); + atom.Append("ction fd(a){var b=a.b.next(),c=b.indexOf(\":\");if(-1==c)return new hc(b);var d=b."); + atom.Append("substring(0,c);a=a.Ra(d);if(!a)throw Error(\"Namespace prefix not declared: \"+d);"); + atom.Append("b=b.substr(c+1);return new hc(b,a)}\nfunction gd(a){var b,c=[],d;if(Nc(A(a.b))){b="); + atom.Append("a.b.next();d=A(a.b);if(\"/\"==b&&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*"); + atom.Append("\"!=d&&!/(?![0-9])[\\w]/.test(d)))return new Lc;d=new Lc;L(a,\"Missing next locati"); + atom.Append("on step.\");b=hd(a,b);c.push(b)}else{a:{b=A(a.b);d=b.charAt(0);switch(d){case \"$"); + atom.Append("\":throw Error(\"Variable reference not allowed in HTML XPath\");case \"(\":a.b.ne"); + atom.Append("xt();b=ad(a);L(a,'unclosed \"(\"');cd(a,\")\");break;case '\"':case \"'\":b=ed(a);"); + atom.Append("break;default:if(isNaN(+b))if(!Gc(b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==A(a.b,\n1))"); + atom.Append("{b=a.b.next();b=Fc[b]||null;a.b.next();for(d=[];\")\"!=A(a.b);){L(a,\"Missing func"); + atom.Append("tion argument list.\");d.push(ad(a));if(\",\"!=A(a.b))break;a.b.next()}L(a,\"Unclo"); + atom.Append("sed function argument list.\");dd(a);b=new Dc(b,d)}else{b=null;break a}else b=new "); + atom.Append("Ic(+a.b.next())}\"[\"==A(a.b)&&(d=new Qc(id(a)),b=new Bc(b,d))}if(b)if(Nc(A(a.b)))"); + atom.Append("d=b;else return b;else b=hd(a,\"/\"),d=new Mc,c.push(b)}for(;Nc(A(a.b));)b=a.b.nex"); + atom.Append("t(),L(a,\"Missing next location step.\"),b=hd(a,b),c.push(b);return new Jc(d,c)}\n"); + atom.Append("function hd(a,b){var c,d,f;if(\"/\"!=b&&\"//\"!=b)throw Error('Step op should be "); + atom.Append("\"/\" or \"//\"');if(\".\"==A(a.b))return d=new Rc(Xc,new kc(\"node\")),a.b.next()"); + atom.Append(",d;if(\"..\"==A(a.b))return d=new Rc(Wc,new kc(\"node\")),a.b.next(),d;var e;if(\""); + atom.Append("@\"==A(a.b))e=Kc,a.b.next(),L(a,\"Missing attribute name\");else if(\"::\"==A(a.b,"); + atom.Append("1)){if(!/(?![0-9])[\\w]/.test(A(a.b).charAt(0)))throw Error(\"Bad token: \"+a.b.ne"); + atom.Append("xt());c=a.b.next();e=Vc[c]||null;if(!e)throw Error(\"No axis with name: \"+c);a.b."); + atom.Append("next();L(a,\"Missing node name\")}else e=\nSc;c=A(a.b);if(/(?![0-9])[\\w]/.test(c."); + atom.Append("charAt(0)))if(\"(\"==A(a.b,1)){if(!Gc(c))throw Error(\"Invalid node type: \"+c);c="); + atom.Append("a.b.next();if(!Gc(c))throw Error(\"Invalid type name: \"+c);cd(a,\"(\");L(a,\"Bad "); + atom.Append("nodetype\");f=A(a.b).charAt(0);var g=null;if('\"'==f||\"'\"==f)g=ed(a);L(a,\"Bad n"); + atom.Append("odetype\");dd(a);c=new kc(c,g)}else c=fd(a);else if(\"*\"==c)c=fd(a);else throw Er"); + atom.Append("ror(\"Bad token: \"+a.b.next());f=new Qc(id(a),e.S);return d||new Rc(e,c,f,\"//\"="); + atom.Append("=b)}\nfunction id(a){for(var b=[];\"[\"==A(a.b);){a.b.next();L(a,\"Missing predica"); + atom.Append("te expression.\");var c=ad(a);b.push(c);L(a,\"Unclosed predicate expression.\");cd"); + atom.Append("(a,\"]\")}return b}function bd(a){if(\"-\"==A(a.b))return a.b.next(),new Yc(bd(a))"); + atom.Append(";var b=gd(a);if(\"|\"!=A(a.b))a=b;else{for(b=[b];\"|\"==a.b.next();)L(a,\"Missing "); + atom.Append("next union location path.\"),b.push(gd(a));a.b.back();a=new Zc(b)}return a};functi"); + atom.Append("on jd(a){switch(a.nodeType){case 1:return ma(kd,a);case 9:return jd(a.documentElem"); + atom.Append("ent);case 2:return a.ownerElement?jd(a.ownerElement):ld;case 11:case 10:case 6:cas"); + atom.Append("e 12:return ld;default:return a.parentNode?jd(a.parentNode):ld}}function ld(){retu"); + atom.Append("rn null}function kd(a,b){if(a.prefix==b)return a.namespaceURI||\"http://www.w3.org"); + atom.Append("/1999/xhtml\";var c=a.getAttributeNode(\"xmlns:\"+b);return c&&c.specified?c.value"); + atom.Append("||null:a.parentNode&&9!=a.parentNode.nodeType?kd(a.parentNode,b):null};function md"); + atom.Append("(a,b){if(!a.length)throw Error(\"Empty XPath expression.\");var c=$b(a);if(c.empty"); + atom.Append("())throw Error(\"Invalid XPath expression.\");b?ea(b)||(b=la(b.lookupNamespaceURI,"); + atom.Append("b)):b=function(){return null};var d=ad(new $c(c,b));if(!c.empty())throw Error(\"Ba"); + atom.Append("d token: \"+c.next());this.evaluate=function(a,b){var c=d.evaluate(new Ub(a));retu"); + atom.Append("rn new M(c,b)}}\nfunction M(a,b){if(0==b)if(a instanceof C)b=4;else if(\"string\"="); + atom.Append("=typeof a)b=2;else if(\"number\"==typeof a)b=1;else if(\"boolean\"==typeof a)b=3;e"); + atom.Append("lse throw Error(\"Unexpected evaluation result.\");if(2!=b&&1!=b&&3!=b&&!(a instan"); + atom.Append("ceof C))throw Error(\"value could not be converted to the specified type\");this.r"); + atom.Append("esultType=b;var c;switch(b){case 2:this.stringValue=a instanceof C?qc(a):\"\"+a;br"); + atom.Append("eak;case 1:this.numberValue=a instanceof C?+qc(a):+a;break;case 3:this.booleanValu"); + atom.Append("e=a instanceof C?0=c.length?null:c[e++]};this.snapshotItem=funct"); + atom.Append("ion(a){if(6!=b&&7!=b)throw Error(\"snapshotItem called with wrong result type\");r"); + atom.Append("eturn a>=\nc.length||0>a?null:c[a]}}M.ANY_TYPE=0;M.NUMBER_TYPE=1;M.STRING_TYPE=2;M"); + atom.Append(".BOOLEAN_TYPE=3;M.UNORDERED_NODE_ITERATOR_TYPE=4;M.ORDERED_NODE_ITERATOR_TYPE=5;M."); + atom.Append("UNORDERED_NODE_SNAPSHOT_TYPE=6;M.ORDERED_NODE_SNAPSHOT_TYPE=7;M.ANY_UNORDERED_NODE"); + atom.Append("_TYPE=8;M.FIRST_ORDERED_NODE_TYPE=9;function nd(a){this.lookupNamespaceURI=jd(a)}"); + atom.Append("\nfunction od(a){a=a||l;var b=a.document;b.evaluate||(a.XPathResult=M,b.evaluate=f"); + atom.Append("unction(a,b,f,e){return(new md(a,f)).evaluate(b,e)},b.createExpression=function(a,"); + atom.Append("b){return new md(a,b)},b.createNSResolver=function(a){return new nd(a)})};var O={}"); + atom.Append(";O.Ma=function(){var a={Ya:\"http://www.w3.org/2000/svg\"};return function(b){retu"); + atom.Append("rn a[b]||null}}();O.w=function(a,b,c){var d=y(a);(t||Rb)&&od(z(d));try{var f=d.cre"); + atom.Append("ateNSResolver?d.createNSResolver(d.documentElement):O.Ma;return t&&!eb(7)?d.evalua"); + atom.Append("te.call(d,b,a,f,c,null):d.evaluate(b,a,f,c,null)}catch(e){if(!v||\"NS_ERROR_ILLEGA"); + atom.Append("L_VALUE\"!=e.name)throw new r(32,\"Unable to locate an element with the xpath expr"); + atom.Append("ession \"+b+\" because of the following error:\\n\"+e);}};\nO.ka=function(a,b){if("); + atom.Append("!a||1!=a.nodeType)throw new r(32,'The result of the xpath expression \"'+b+'\" is:"); + atom.Append(" '+a+\". It should be an element.\");};O.H=function(a,b){var c=function(){var c=O."); + atom.Append("w(b,a,9);return c?(c=c.singleNodeValue,s?c:c||null):b.selectSingleNode?(c=y(b),c.s"); + atom.Append("etProperty&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):"); + atom.Append("null}();null===c||O.ka(c,a);return c};\nO.v=function(a,b){var c=function(){var c=O"); + atom.Append(".w(b,a,7);if(c){var f=c.snapshotLength;s&&!aa(f)&&O.ka(null,a);for(var e=[],g=0;g<"); + atom.Append("f;++g)e.push(c.snapshotItem(g));return e}return b.selectNodes?(c=y(b),c.setPropert"); + atom.Append("y&&c.setProperty(\"SelectionLanguage\",\"XPath\"),b.selectNodes(a)):[]}();p(c,func"); + atom.Append("tion(b){O.ka(b,a)});return c};function pd(a){return(a=a.exec(Oa))?a[1]:\"\"}var qd"); + atom.Append("=function(){if(Nb)return pd(/Firefox\\/([0-9.]+)/);if(t||s)return cb;if(Sb)return "); + atom.Append("pd(/Chrome\\/([0-9.]+)/);if(Tb)return pd(/Version\\/([0-9.]+)/);if(Pb||Qb){var a;i"); + atom.Append("f(a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(Oa))return a[1]+\".\"+a[2]}else{if(Rb"); + atom.Append(")return(a=pd(/Android\\s+([0-9.]+)/))?a:pd(/Version\\/([0-9.]+)/);if(Ob)return pd("); + atom.Append("/Camino\\/([0-9.]+)/)}return\"\"}();var rd,sd;function P(a){return td?rd(a):t?0<=s"); + atom.Append("a(gb,a):eb(a)}function ud(a){return td?sd(a):Rb?0<=sa(vd,a):0<=sa(qd,a)}\nvar td=f"); + atom.Append("unction(){if(!v)return!1;var a=l.Components;if(!a)return!1;try{if(!a.classes)retur"); + atom.Append("n!1}catch(b){return!1}var c=a.classes,a=a.interfaces,d=c[\"@mozilla.org/xpcom/vers"); + atom.Append("ion-comparator;1\"].getService(a.nsIVersionComparator),c=c[\"@mozilla.org/xre/app-"); + atom.Append("info;1\"].getService(a.nsIXULAppInfo),f=c.platformVersion,e=c.version;rd=function("); + atom.Append("a){return 0<=d.compare(f,\"\"+a)};sd=function(a){return 0<=d.compare(e,\"\"+a)};re"); + atom.Append("turn!0}(),wd=Qb||Pb,xd;\nif(Rb){var yd=/Android\\s+([0-9\\.]+)/.exec(Oa);xd=yd?yd["); + atom.Append("1]:\"0\"}else xd=\"0\";var vd=xd,zd=t&&!fb(8),Ad=fb(9),Bd=t&&!fb(9),Cd=fb(10);Rb&&"); + atom.Append("ud(2.3);Rb&&ud(4);Tb&&ud(6);var Dd=t&&-1!=Oa.indexOf(\"IEMobile\");function Ed(a,b"); + atom.Append(",c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}h=Ed.prototype;h.clone=fun"); + atom.Append("ction(){return new Ed(this.top,this.right,this.bottom,this.left)};h.toString=funct"); + atom.Append("ion(){return\"(\"+this.top+\"t, \"+this.right+\"r, \"+this.bottom+\"b, \"+this.lef"); + atom.Append("t+\"l)\"};h.contains=function(a){return this&&a?a instanceof Ed?a.left>=this.left&"); + atom.Append("&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<="); + atom.Append("this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){fa(a)"); + atom.Append("?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(th"); + atom.Append("is.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function("); + atom.Append("){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.c"); + atom.Append("eil(this.bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){th"); + atom.Append("is.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.flo"); + atom.Append("or(this.bottom);this.left=Math.floor(this.left);return this};\nh.round=function(){"); + atom.Append("this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.r"); + atom.Append("ound(this.bottom);this.left=Math.round(this.left);return this};h.translate=functio"); + atom.Append("n(a,b){a instanceof jb?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+="); + atom.Append("a.y):(this.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return this}"); + atom.Append(";h.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this"); + atom.Append(".bottom*=c;return this};function R(a,b,c,d){this.left=a;this.top=b;this.width=c;th"); + atom.Append("is.height=d}h=R.prototype;h.clone=function(){return new R(this.left,this.top,this."); + atom.Append("width,this.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\""); + atom.Append(" - \"+this.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a inst"); + atom.Append("anceof R?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&"); + atom.Append("&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a"); + atom.Append(".y>=this.top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(t"); + atom.Append("his.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.heigh"); + atom.Append("t=Math.ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this"); + atom.Append(".left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height"); + atom.Append("=Math.floor(this.height);return this};h.round=function(){this.left=Math.round(this"); + atom.Append(".left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height"); + atom.Append("=Math.round(this.height);return this};\nh.translate=function(a,b){a instanceof jb?"); + atom.Append("(this.left+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this};h."); + atom.Append("scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.he"); + atom.Append("ight*=c;return this};function Fd(a,b){var c=y(a);return c.defaultView&&c.defaultVi"); + atom.Append("ew.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropert"); + atom.Append("yValue(b)||\"\":\"\"}function Gd(a){a=a?y(a):document;var b;(b=!t||fb(9))||(b=\"CS"); + atom.Append("S1Compat\"==lb(a).L.compatMode);return b?a.documentElement:a.body}var Hd={thin:2,m"); + atom.Append("edium:4,thick:6};\nfunction Id(a,b){if(\"none\"==(a.currentStyle?a.currentStyle[b+"); + atom.Append("\"Style\"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+\"Width\"]:null,d;"); + atom.Append("if(c in Hd)d=Hd[c];else if(/^\\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.lef"); + atom.Append("t;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c"); + atom.Append(";c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=f;d=c}return d};function J"); + atom.Append("d(a){var b;a:{a=y(a);try{b=a&&a.activeElement;break a}catch(c){}b=null}return t&&b"); + atom.Append("&&\"undefined\"===typeof b.nodeType?null:b}function S(a,b){return!!a&&1==a.nodeTyp"); + atom.Append("e&&(!b||a.tagName.toUpperCase()==b)}function Kd(a){var b;if(b=Ld(a,!0)&&Md(a))b=!("); + atom.Append("t||s||v&&!P(\"1.9.2\")?0:\"none\"==T(a,\"pointer-events\"));return b}function Nd(a"); + atom.Append("){return S(a,\"OPTION\")?!0:S(a,\"INPUT\")?(a=a.type.toLowerCase(),\"checkbox\"==a"); + atom.Append("||\"radio\"==a):!1}\nfunction Od(a){if(!Nd(a))throw new r(15,\"Element is not sele"); + atom.Append("ctable\");var b=\"selected\",c=a.type&&a.type.toLowerCase();if(\"checkbox\"==c||\""); + atom.Append("radio\"==c)b=\"checked\";return!!Pd(a,b)}function Pd(a,b){var c;if(c=zd&&\"value\""); + atom.Append("==b&&S(a,\"OPTION\"))c=null===Qd(a,\"value\");c?(c=[],Bb(a,c,!1),c=c.join(\"\")):c"); + atom.Append("=a[b];return c}var Rd=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^'"); + atom.Append("]*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction Sd(a){var b=[];p(a.split(Rd),fu"); + atom.Append("nction(a){var d=a.indexOf(\":\");0=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if"); + atom.Append("(!c)b:{if(g=d.match(La))if(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>"); + atom.Append("=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCas"); + atom.Append("e();\ne=Ga[c.toLowerCase()];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e"); + atom.Append("=e.replace(Ia,\"#$1$1$2$2$3$3\")),!Ja.test(e))){c=null;break b}c=[parseInt(e.subst"); + atom.Append("r(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+"); + atom.Append("c.join(\", \")+\")\":d}return d}function Yd(a,b){var c=a.currentStyle||a.style,d=c"); + atom.Append("[b];!aa(d)&&ea(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d"); + atom.Append("?aa(d)?d:null:(c=Wd(a))?Yd(c,b):null}\nfunction Ld(a,b){function c(a){if(\"none\"="); + atom.Append("=T(a,\"display\"))return!1;a=Wd(a);return!a||c(a)}function d(a){var b=Zd(a);return"); + atom.Append(" 0=E.left+E.width;E=e.top>=E.top+E.height;if(Q&&\"hidden\"==u.x||E&&\"hidden\"==u"); + atom.Append(".y)return ae;if(Q&&\"visible\"!=u.x||E&&\"visible\"!=u.y){if(w&&(u=f(B),e.left>=k."); + atom.Append("scrollWidth-u.x||e.right>=k.scrollHeight-u.y))return ae;e=$d(B);return e==ae?ae:\""); + atom.Append("scroll\"}}}return\"none\"}var ee=/matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d"); + atom.Append("\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunc"); + atom.Append("tion Zd(a){function b(a){var c=z(y(a)).getComputedStyle(a,null).MozTransform.match"); + atom.Append("(ee);if(c){var d=parseFloat(c[1]),f=parseFloat(c[2]),w=parseFloat(c[3]),B=parseFlo"); + atom.Append("at(c[4]),u=parseFloat(c[5]),c=parseFloat(c[6]),E=e.left+e.width,Q=e.top+e.height,i"); + atom.Append("a=e.left*d,d=E*d,qb=e.left*f,f=E*f,rb=e.top*w,w=Q*w,sb=e.top*B,E=Q*B,Q=ia+rb+u,B=q"); + atom.Append("b+sb+c,rb=d+rb+u,sb=f+sb+c,ia=ia+w+u,qb=qb+E+c,u=d+w+u,c=f+E+c;e.left=Math.min(Q,r"); + atom.Append("b,ia,u);e.top=Math.min(B,sb,qb,c);u=Math.max(Q,rb,ia,u);c=Math.max(B,sb,qb,c);e.wi"); + atom.Append("dth=u-\ne.left;e.height=c-e.top}(a=Wd(a))&&b(a)}var c=be(a);if(c)return c.rect;if("); + atom.Append("S(a,\"HTML\"))return c=y(a),a=nb(z(c)||window),new R(0,0,a.width,a.height);var d;t"); + atom.Append("ry{d=a.getBoundingClientRect()}catch(f){return new R(0,0,0,0)}var e=new R(d.left,d"); + atom.Append(".top,d.right-d.left,d.bottom-d.top);t&&a.ownerDocument.body&&(c=y(a),e.left-=c.doc"); + atom.Append("umentElement.clientLeft+c.body.clientLeft,e.top-=c.documentElement.clientTop+c.bod"); + atom.Append("y.clientTop);s&&(0==e.width&&02*this.O&&yf(this),!0):!1};function yf(a){if(a.O!"); + atom.Append("=a.j.length){for(var b=0,c=0;b\");X(191,\"/\",\"?\");X(192,\"`\","); + atom.Append("\"~\");X(219,\"[\",\"{\");X(220,\"\\\\\",\"|\");X(221,\"]\",\"}\");var Fg=X({d:59,"); + atom.Append("e:186,opera:59},\";\",\":\");X(222,\"'\",'\"');var Gg=[Mf,Lf,$f,Y],Hg=new xf;Hg.se"); + atom.Append("t(1,Y);Hg.set(2,Lf);Hg.set(4,Mf);Hg.set(8,$f);var Ig=function(a){var b=new xf;p(zf"); + atom.Append("(a),function(c){b.set(a.get(c).code,c)});return b}(Hg);function Ff(a,b,c){if(Ca(Gg"); + atom.Append(",b)){var d=Ig.get(b.code),f=a.W;f.ea=c?f.ea|d:f.ea&~d}c?a.fa.add(b):a.fa.remove(b)"); + atom.Append("}var Jg=t||s?\"\\r\\n\":\"\\n\";Ef.prototype.h=function(a){return this.fa.contains"); + atom.Append("(a)};\nfunction Kg(a,b){if(Ca(Gg,b)&&a.h(b))throw new r(13,\"Cannot press a modifi"); + atom.Append("er key that is already pressed.\");var c=null!==b.code&&Lg(a,hf,b);if((c||v)&&(!Mg"); + atom.Append("(b)||Lg(a,$e,b,!c))&&c&&(Ng(a,b),a.ma))if(b.K){if(!Og){var c=Pg(a,b),d=tf(a.c(),!0"); + atom.Append(")[0]+1;Qg(a.c())?(wf(a.c(),c),pf(a.c(),d)):a.c().value+=c;x&&a.M(ff);Bd||a.M(ef);a"); + atom.Append(".s=d}}else switch(b){case Kf:Og||(x&&a.M(ff),S(a.c(),\"TEXTAREA\")&&(c=tf(a.c(),!0"); + atom.Append(")[0]+Jg.length,Qg(a.c())?(wf(a.c(),Jg),pf(a.c(),c)):a.c().value+=Jg,t||a.M(ef),a.s"); + atom.Append("=c));break;case If:case Zf:Og||\n(Rg(a.c()),c=tf(a.c(),!1),c[0]==c[1]&&(b==If?(pf("); + atom.Append("a.c(),c[1]-1),uf(a.c(),c[1])):uf(a.c(),c[1]+1)),c=tf(a.c(),!1),c=!(c[0]==a.c().val"); + atom.Append("ue.length||0==c[1]),wf(a.c(),\"\"),(!t&&c||v&&b==If)&&a.M(ef),c=tf(a.c(),!1),a.s=c"); + atom.Append("[1]);break;case Uf:case Wf:Rg(a.c());var c=a.c(),f=tf(c,!0)[0],e=tf(c,!1)[1],g=d=0"); + atom.Append(";b==Uf?a.h(Y)?a.s==f?(d=Math.max(f-1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1"); + atom.Append(",0):f:a.h(Y)?a.s==e?(d=f,f=g=Math.min(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?"); + atom.Append("Math.min(e+1,c.value.length):e;a.h(Y)?(pf(c,\nd),uf(c,g)):vf(c,f);a.s=f;break;case"); + atom.Append(" Tf:case Sf:Rg(a.c()),c=a.c(),d=tf(c,!0)[0],g=tf(c,!1)[1],b==Tf?(a.h(Y)?(pf(c,0),u"); + atom.Append("f(c,a.s==d?g:d)):vf(c,0),a.s=0):(a.h(Y)?(a.s==d&&pf(c,g),uf(c,c.value.length)):vf("); + atom.Append("c,c.value.length),a.s=c.value.length)}Ff(a,b,!0)}function Mg(a){if(a.K||a==Kf)retu"); + atom.Append("rn!0;if(x)return!1;if(t)return a==Of;switch(a){case Y:case Lf:case Mf:return!1;cas"); + atom.Append("e $f:case ag:case bg:return v;default:return!0}}\nfunction Ng(a,b){if(b==Kf&&!v&&S"); + atom.Append("(a.c(),\"INPUT\")){var c=Cb(a.c(),Qe,!0);if(c){var d=c.getElementsByTagName(\"inpu"); + atom.Append("t\");(za(d,function(a){return Ne(a)})||1==d.length||x&&!P(534))&&Re(c)}}}function "); + atom.Append("Sg(a,b){if(!a.h(b))throw new r(13,\"Cannot release a key that is not pressed. (\"+"); + atom.Append("b.code+\")\");null===b.code||Lg(a,jf,b);Ff(a,b,!1)}function Pg(a,b){if(!b.K)throw "); + atom.Append("new r(13,\"not a character key\");return a.h(Y)?b.Ua:b.K}var Og=v&&!P(12);\nfuncti"); + atom.Append("on Rg(a){try{a.selectionStart}catch(b){if(-1!=b.message.indexOf(\"does not support"); + atom.Append(" selection.\"))throw Error(b.message+\" (For more information, see https://code.go"); + atom.Append("ogle.com/p/chromium/issues/detail?id=330456)\");throw b;}}function Qg(a){try{Rg(a)"); + atom.Append("}catch(b){return!1}return!0}\nfunction Lg(a,b,c,d){if(null===c.code)throw new r(13"); + atom.Append(",\"Key must have a keycode to be fired.\");c={altKey:a.h(Mf),ctrlKey:a.h(Lf),metaK"); + atom.Append("ey:a.h($f),shiftKey:a.h(Y),keyCode:c.code,charCode:c.K&&b==$e?Pg(a,c).charCodeAt(0"); + atom.Append("):0,preventDefault:!!d};return a.na(b,c)}function Tg(a,b){ue(a,b);a.ma=Xd(b);var c"); + atom.Append("=Ke(a);a.ma&&c&&(vf(b,b.value.length),a.s=b.value.length)}Ef.prototype.ya=function"); + atom.Append("(){return{pressed:this.fa.P(),currentPos:this.s}};function Ug(a,b,c){te.call(this,"); + atom.Append("b,c);this.F=this.n=null;this.B=new jb(0,0);this.ba=this.Q=!1;if(a){da(a.buttonPres"); + atom.Append("sed)&&(this.n=a.buttonPressed);try{S(a.elementPressed)&&(this.F=a.elementPressed)}"); + atom.Append("catch(d){this.n=null}this.B=new jb(a.clientXY.x,a.clientXY.y);this.Q=!!a.nextClick"); + atom.Append("IsDoubleClick;this.ba=!!a.hasEverInteracted;try{a.element&&S(a.element)&&ue(this,a"); + atom.Append(".element)}catch(f){this.n=null}}}n(Ug,te);var Z={};\nBd?(Z[ze]=[0,0,0,null],Z[Ge]="); + atom.Append("[null,null,0,null],Z[Je]=[1,4,2,null],Z[ye]=[0,0,0,0],Z[He]=[1,4,2,0]):x||Ad?(Z[ze"); + atom.Append("]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1,2,null],Z[ye]=[0,1,2,0],Z[He]=["); + atom.Append("0,1,2,0]):(Z[ze]=[0,1,2,null],Z[Ge]=[null,null,2,null],Z[Je]=[0,1,2,null],Z[ye]=[0"); + atom.Append(",0,0,0],Z[He]=[0,0,0,0]);Cd&&(Z[Fe]=Z[Je],Z[of]=Z[Je],Z[Ie]=[-1,-1,-1,-1],Z[Ee]=Z["); + atom.Append("Ie],Z[De]=Z[Ie]);Z[gf]=Z[ze];Z[Ae]=Z[Je];Z[xe]=Z[ye];var Vg={};Vg[Ae]=Fe;Vg[He]=Ie"); + atom.Append(";Vg[ye]=Ee;Vg[xe]=De;Vg[Je]=of;\nfunction Wg(a){if(null!==a.n)throw new r(13,\"Can"); + atom.Append("not press more then one button or an already pressed button.\");a.n=0;a.F=a.c();va"); + atom.Append("r b;var c=v&&!ud(4);if((x||c)&&(S(a.c(),\"OPTION\")||S(a.c(),\"SELECT\")))b=!0;els"); + atom.Append("e{(c=v||t)&&(b=Jd(a.c()));var d=Xg(a,Ae);b=d&&c&&b!=Jd(a.c())?!1:d}b&&(Cd&&0==a.n&"); + atom.Append("&S(a.F,\"OPTION\")&&a.U(mf,a.B,0,1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,!0),Ke(a))}"); + atom.Append("\nfunction Yg(a){if(null===a.n)throw new r(13,\"Cannot release a button when no bu"); + atom.Append("tton is pressed.\");if(a.r&&Kd(a.f)){var b=a.r,c=Od(a.f);if(!c||b.multiple)a.f.sel"); + atom.Append("ected=!c,(!x||!b.multiple||Sb&&ud(28)||Rb&&ud(4))&&U(b,df)}Xg(a,Je);if(0==a.n&&a.c"); + atom.Append("()==a.F){if(!Dd||!S(a.F,\"OPTION\"))if(b=a.B,c=Zg(a,ze),Kd(a.f)){var d=null,f=null"); + atom.Append(";if(!Me)for(var e=a.f;e;e=e.parentNode)if(S(e,\"A\")){d=e;break}else if(Ne(e)){f=e"); + atom.Append(";break}var g=(e=!a.r&&Nd(a.f))&&Od(a.f);t&&f?f.click():a.$(ze,b,c,null,0,!1,void 0"); + atom.Append(")&&(d&&Oe(d)?(b=d,\nc=b.href,d=z(y(b)),t&&!P(8)&&(c=Pe(d.location,c)),b.target?d.o"); + atom.Append("pen(c,b.target):d.location.href=c):!e||v||x||g&&\"radio\"==a.f.type.toLowerCase()|"); + atom.Append("|(a.f.checked=!g,s&&!P(11)&&U(a.f,df)))}a.Q&&Xg(a,gf);a.Q=!a.Q;Cd&&0==a.n&&S(a.F,"); + atom.Append("\"OPTION\")&&a.U(nf,new jb(0,0),0,1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,!1)}else 2"); + atom.Append("==a.n&&Xg(a,Ge);Be={};a.n=null;a.F=null}\nUg.prototype.move=function(a,b){var c=Kd"); + atom.Append("(a),d=Zd(a);this.B.x=b.x+d.left;this.B.y=b.y+d.top;d=this.c();if(a!=d){try{z(y(d))"); + atom.Append(".closed&&(d=null)}catch(f){d=null}if(d){var e=d===oa.document.documentElement||d=="); + atom.Append("=oa.document.body,d=!this.ba&&e?null:d;Xg(this,ye,a)}ue(this,a);t||Xg(this,xe,d,nu"); + atom.Append("ll,c)}Xg(this,He,null,null,c);t&&a!=d&&Xg(this,xe,d,null,c);this.Q=!1};\nUg.protot"); + atom.Append("ype.scroll=function(a){if(0==a)throw new r(13,\"Must scroll a non-zero number of t"); + atom.Append("icks.\");for(var b=0=a){var b=$.a[a];if(null===b)g.push(k=f"); + atom.Append("()),e&&(k.Ea=!1,g.push(k=f()));else if(aa(b))k.keys.push(b);else throw Error(\"Uns"); + atom.Append("upported WebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}else switch(a){case"); + atom.Append(" \"\\n\":k.keys.push(Kf);break;case \"\\t\":k.keys.push(Jf);break;case \"\\b\":k.k"); + atom.Append("eys.push(If);break;default:k.keys.push(a)}})});p(g,function(b){$g(a,b.keys,c,\nb.E"); + atom.Append("a)})}$.a={};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=If;$.a[\"\\ue004\"]=Jf;$.a[\""); + atom.Append("\\ue006\"]=Kf;$.a[\"\\ue007\"]=Kf;$.a[\"\\ue008\"]=Y;$.a[\"\\ue009\"]=Lf;$.a[\"\\u"); + atom.Append("e00a\"]=Mf;$.a[\"\\ue00b\"]=Nf;$.a[\"\\ue00c\"]=Of;$.a[\"\\ue00d\"]=Pf;$.a[\"\\ue0"); + atom.Append("0e\"]=Qf;$.a[\"\\ue00f\"]=Rf;$.a[\"\\ue010\"]=Sf;$.a[\"\\ue011\"]=Tf;$.a[\"\\ue012"); + atom.Append("\"]=Uf;$.a[\"\\ue013\"]=Vf;$.a[\"\\ue014\"]=Wf;$.a[\"\\ue015\"]=Xf;$.a[\"\\ue016\""); + atom.Append("]=Yf;$.a[\"\\ue017\"]=Zf;$.a[\"\\ue018\"]=Fg;$.a[\"\\ue019\"]=Dg;$.a[\"\\ue01a\"]="); + atom.Append("cg;$.a[\"\\ue01b\"]=dg;$.a[\"\\ue01c\"]=eg;$.a[\"\\ue01d\"]=fg;$.a[\"\\ue01e\"]=gg"); + atom.Append(";\n$.a[\"\\ue01f\"]=hg;$.a[\"\\ue020\"]=ig;$.a[\"\\ue021\"]=jg;$.a[\"\\ue022\"]=kg"); + atom.Append(";$.a[\"\\ue023\"]=lg;$.a[\"\\ue024\"]=mg;$.a[\"\\ue025\"]=ng;$.a[\"\\ue027\"]=og;$"); + atom.Append(".a[\"\\ue028\"]=pg;$.a[\"\\ue029\"]=qg;$.a[\"\\ue026\"]=Eg;$.a[\"\\ue031\"]=rg;$.a"); + atom.Append("[\"\\ue032\"]=sg;$.a[\"\\ue033\"]=tg;$.a[\"\\ue034\"]=ug;$.a[\"\\ue035\"]=vg;$.a["); + atom.Append("\"\\ue036\"]=wg;$.a[\"\\ue037\"]=xg;$.a[\"\\ue038\"]=yg;$.a[\"\\ue039\"]=zg;$.a[\""); + atom.Append("\\ue03a\"]=Ag;$.a[\"\\ue03b\"]=Bg;$.a[\"\\ue03c\"]=Cg;$.a[\"\\ue03d\"]=$f;function"); + atom.Append(" bh(){this.ga=void 0}\nfunction ch(a,b,c){switch(typeof b){case \"string\":dh(b,c)"); + atom.Append(";break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break;case \"bool"); + atom.Append("ean\":c.push(b);break;case \"undefined\":c.push(\"null\");break;case \"object\":if"); + atom.Append("(null==b){c.push(\"null\");break}if(\"array\"==ba(b)){var d=b.length;c.push(\"[\")"); + atom.Append(";for(var f=\"\",e=0;eb?f+=\"000\":256>b?f+=\"00"); + atom.Append("\":4096>b&&(f+=\"0\");return eh[a]=f+b.toString(16)}),'\"')};x||s||v&&P(3.5)||t&&P"); + atom.Append("(8);function gh(a){switch(ba(a)){case \"string\":case \"number\":case \"boolean\":"); + atom.Append("return a;case \"function\":return a.toString();case \"array\":return xa(a,gh);case"); + atom.Append(" \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMEN"); + atom.Append("T=hh(a);return b}if(\"document\"in a)return b={},b.WINDOW=hh(a),b;if(ca(a))return "); + atom.Append("xa(a,gh);a=Sa(a,function(a,b){return da(b)||m(b)});return Ta(a,gh);default:return "); + atom.Append("null}}\nfunction ih(a,b){return\"array\"==ba(a)?xa(a,function(a){return ih(a,b)}):"); + atom.Append("fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?jh(a.ELEMENT,b):\"WINDOW\"in a?jh(a"); + atom.Append(".WINDOW,b):Ta(a,function(a){return ih(a,b)}):a}function kh(a){a=a||document;var b="); + atom.Append("a.$wdc_;b||(b=a.$wdc_={},b.ra=na());b.ra||(b.ra=na());return b}function hh(a){var "); + atom.Append("b=kh(a.ownerDocument),c=Va(b,function(b){return b==a});c||(c=\":wdc:\"+b.ra++,b[c]"); + atom.Append("=a);return c}\nfunction jh(a,b){a=decodeURIComponent(a);var c=b||document,d=kh(c);"); + atom.Append("if(!(a in d))throw new r(10,\"Element does not exist in cache\");var f=d[a];if(\"s"); + atom.Append("etInterval\"in f){if(f.closed)throw delete d[a],new r(23,\"Window has been closed."); + atom.Append("\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e.parentNode}delet"); + atom.Append("e d[a];throw new r(10,\"Element is no longer attached to the DOM\");};function lh("); + atom.Append("a){a=new Ug(a);Wg(a);Yg(a);Wg(a);Yg(a);return a.ya()};function mh(a,b){var c=[a],d"); + atom.Append(";try{var f=b?jh(b.WINDOW):window,e=ih(c,f.document),g=lh.apply(null,e);d={status:0"); + atom.Append(",value:gh(g)}}catch(k){d={status:\"code\"in k?k.code:13,value:{message:k.message}}"); + atom.Append("}c=[];ch(new bh,d,c);return c.join(\"\")}var nh=[\"_\"],oh=l;nh[0]in oh||!oh.execS"); + atom.Append("cript||oh.execScript(\"var \"+nh[0]);for(var ph;nh.length&&(ph=nh.shift());)!nh.le"); + atom.Append("ngth&&aa(mh)?oh[ph]=mh:oh=oh[ph]?oh[ph]:oh[ph]={};; return this._.apply(null,argum"); + atom.Append("ents);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:t"); + atom.Append("ypeof window!=undefined?window.document:null}, arguments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + + public static string SendKeysToActiveElement + { + get + { + const string atomName = "SendKeysToActiveElement"; + if (!atomsRepository.ContainsKey(atomName)) + { + StringBuilder atom = new StringBuilder(); + atom.Append("function(){return function(){var h,l=this;function m(a){return void 0!==a}\nfuncti"); + atom.Append("on aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array"); + atom.Append("\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[o"); + atom.Append("bject Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a"); + atom.Append(".length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumera"); + atom.Append("ble&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"="); + atom.Append("=c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a"); + atom.Append(".propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if("); + atom.Append("\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function c"); + atom.Append("a(a){var b=aa(a);return\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}fu"); + atom.Append("nction n(a){return\"string\"==typeof a}function da(a){return\"number\"==typeof a}f"); + atom.Append("unction ea(a){return\"function\"==aa(a)}function fa(a){var b=typeof a;return\"obje"); + atom.Append("ct\"==b&&null!=a||\"function\"==b}var ga=\"closure_uid_\"+(1E9*Math.random()>>>0),"); + atom.Append("ha=0;function ia(a,b,c){return a.call.apply(a.bind,arguments)}\nfunction ja(a,b,c)"); + atom.Append("{if(!a)throw Error();if(2b?1:0}\nfunction ta(a){return String(a).replace(/\\-([a-z])/g,funct"); + atom.Append("ion(a,c){return c.toUpperCase()})};var ua=Array.prototype;function q(a,b,c){for(va"); + atom.Append("r d=a.length,f=n(a)?a.split(\"\"):a,e=0;ec?null:n(a)?a.charAt(c):a[c]}\nfunction Ba(a,b){var c;a:if(n(a))c=n(b)&&1==b.le"); + atom.Append("ngth?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?ua.slice.call(a,b):ua.slice.call(a,b,"); + atom.Append("c)};var Fa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquama"); + atom.Append("rine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0"); + atom.Append("00000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:"); + atom.Append("\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho"); + atom.Append("colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc"); + atom.Append("\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\","); + atom.Append("darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\""); + atom.Append("#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\""); + atom.Append(",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e"); + atom.Append("9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f"); + atom.Append("\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deep"); + atom.Append("pink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",d"); + atom.Append("odgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\""); + atom.Append("#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:"); + atom.Append("\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:"); + atom.Append("\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\""); + atom.Append("#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6f"); + atom.Append("a\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",light"); + atom.Append("blue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow"); + atom.Append(":\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",li"); + atom.Append("ghtpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskybl"); + atom.Append("ue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblu"); + atom.Append("e:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen"); + atom.Append(":\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",m"); + atom.Append("ediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseag"); + atom.Append("reen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumt"); + atom.Append("urquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcrea"); + atom.Append("m:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\""); + atom.Append(",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",oran"); + atom.Append("ge:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\","); + atom.Append("palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawh"); + atom.Append("ip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda"); + atom.Append("0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8"); + atom.Append("f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\""); + atom.Append("#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\""); + atom.Append("#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategre"); + atom.Append("y:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:"); + atom.Append("\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#4"); + atom.Append("0e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f"); + atom.Append("5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var Ga=\"backgroundColor borderTop"); + atom.Append("Color borderRightColor borderBottomColor borderLeftColor color outlineColor\".spli"); + atom.Append("t(\" \"),Ha=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ia=/^#(?:[0-9a-f]{3}){1,2}$"); + atom.Append("/i,Ja=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)"); + atom.Append("$/i,Ka=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})"); + atom.Append("\\)$/i;function t(a,b){this.code=a;this.state=La[a]||Ma;this.message=b||\"\";var c"); + atom.Append("=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replac"); + atom.Append("e(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro"); + atom.Append("r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}p("); + atom.Append("t,Error);\nvar Ma=\"unknown error\",La={15:\"element not selectable\",11:\"element"); + atom.Append(" not visible\",31:\"ime engine activation failed\",30:\"ime not available\",24:\"i"); + atom.Append("nvalid cookie domain\",29:\"invalid element coordinates\",12:\"invalid element sta"); + atom.Append("te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17:\""); + atom.Append("javascript error\",405:\"unsupported operation\",34:\"move target out of bounds\","); + atom.Append("27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such window"); + atom.Append("\",28:\"script timeout\",33:\"session not created\",10:\"stale element reference\""); + atom.Append(",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpected alert "); + atom.Append("open\"};La[13]=Ma;La[9]=\"unknown command\";t.prototype.toString=function(){return"); + atom.Append(" this.name+\": \"+this.message};var v;a:{var Na=l.navigator;if(Na){var Oa=Na.userA"); + atom.Append("gent;if(Oa){v=Oa;break a}}v=\"\"}function Pa(a){return-1!=v.indexOf(a)};function Q"); + atom.Append("a(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}functio"); + atom.Append("n Ra(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Sa("); + atom.Append("a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a,b){for(var c in a)"); + atom.Append("if(b.call(void 0,a[c],c,a))return c};var Ua,Va,w=Pa(\"Opera\")||Pa(\"OPR\"),x=Pa("); + atom.Append("\"Trident\")||Pa(\"MSIE\"),z=Pa(\"Gecko\")&&-1==v.toLowerCase().indexOf(\"webkit\""); + atom.Append(")&&!(Pa(\"Trident\")||Pa(\"MSIE\")),A=-1!=v.toLowerCase().indexOf(\"webkit\"),Wa=A"); + atom.Append("&&Pa(\"Mobile\"),Xa,Ya=l.navigator||null;Xa=Ya&&Ya.platform||\"\";Ua=-1!=Xa.indexO"); + atom.Append("f(\"Mac\");Va=-1!=Xa.indexOf(\"Win\");var Za=-1!=Xa.indexOf(\"Linux\");function $a"); + atom.Append("(){var a=l.document;return a?a.documentMode:void 0}\nvar ab=function(){var a=\"\","); + atom.Append("b;if(w&&l.opera)return a=l.opera.version,ea(a)?a():a;z?b=/rv\\:([^\\);]+)(\\)|;)/:"); + atom.Append("x?b=/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/:A&&(b=/WebKit\\/(\\S+)/);b&&(a=(a=b.exec"); + atom.Append("(v))?a[1]:\"\");return x&&(b=$a(),b>parseFloat(a))?String(b):a}(),eb={};function f"); + atom.Append("b(a){return eb[a]||(eb[a]=0<=ra(ab,a))}var gb=l.document,hb=gb&&x?$a()||(\"CSS1Com"); + atom.Append("pat\"==gb.compatMode?parseInt(ab,10):5):void 0;!z&&!x||x&&x&&9<=hb||z&&fb(\"1.9.1"); + atom.Append("\");x&&fb(\"9\");function ib(a,b,c){return Math.min(Math.max(a,b),c)};function jb("); + atom.Append("a,b){this.x=m(a)?a:0;this.y=m(b)?b:0}h=jb.prototype;h.clone=function(){return new "); + atom.Append("jb(this.x,this.y)};h.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"};h"); + atom.Append(".ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h."); + atom.Append("floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};"); + atom.Append("h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this"); + atom.Append("};\nh.translate=function(a,b){a instanceof jb?(this.x+=a.x,this.y+=a.y):(this.x+=a"); + atom.Append(",da(b)&&(this.y+=b));return this};h.scale=function(a,b){var c=da(b)?b:a;this.x*=a;"); + atom.Append("this.y*=c;return this};function kb(a,b){this.width=a;this.height=b}h=kb.prototype;"); + atom.Append("h.clone=function(){return new kb(this.width,this.height)};h.toString=function(){re"); + atom.Append("turn\"(\"+this.width+\" x \"+this.height+\")\"};h.ceil=function(){this.width=Math."); + atom.Append("ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function("); + atom.Append("){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return thi"); + atom.Append("s};h.round=function(){this.width=Math.round(this.width);this.height=Math.round(thi"); + atom.Append("s.height);return this};\nh.scale=function(a,b){var c=da(b)?b:a;this.width*=a;this."); + atom.Append("height*=c;return this};function lb(a){return a?new mb(C(a)):oa||(oa=new mb)}functi"); + atom.Append("on nb(a){a=a.document;a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body;retu"); + atom.Append("rn new kb(a.clientWidth,a.clientHeight)}function ob(a){return a?a.parentWindow||a."); + atom.Append("defaultView:window}function pb(a,b,c){function d(c){c&&b.appendChild(n(c)?a.create"); + atom.Append("TextNode(c):c)}for(var f=1;f]=|\\\\s+|.\",\"g\"),Yb=/^\\s/;function D(a,b){return a.j"); + atom.Append("a[a.T+(b||0)]}Vb.prototype.next=function(){return this.ja[this.T++]};Vb.prototype."); + atom.Append("back=function(){this.T--};Vb.prototype.empty=function(){return this.ja.length<=thi"); + atom.Append("s.T};function E(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||nul"); + atom.Append("l==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(Rb&&\"t"); + atom.Append("itle\"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.docum"); + atom.Append("entElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeVa"); + atom.Append("lue),Rb&&\"title\"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.first"); + atom.Append("Child);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunct"); + atom.Append("ion Zb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return"); + atom.Append("!1}Sb&&\"class\"==b&&(b=\"className\");return null==c?!!a.getAttribute(b):a.getAtt"); + atom.Append("ribute(b,2)==c}function $b(a,b,c,d,f){return(Rb?ac:bc).call(null,a,b,n(c)?c:null,n"); + atom.Append("(d)?d:null,f||new F)}\nfunction ac(a,b,c,d,f){if(a instanceof cc||8==a.f||c&&null="); + atom.Append("==a.f){var e=b.all;if(!e)return f;a=dc(a);if(\"*\"!=a&&(e=b.getElementsByTagName(a"); + atom.Append("),!e))return f;if(c){for(var g=[],k=0;b=e[k++];)Zb(b,c,d)&&g.push(b);e=g}for(k=0;b"); + atom.Append("=e[k++];)\"*\"==a&&\"!\"==b.tagName||f.add(b);return f}ec(a,b,c,d,f);return f}\nfu"); + atom.Append("nction bc(a,b,c,d,f){b.getElementsByName&&d&&\"name\"==c&&!x?(b=b.getElementsByNam"); + atom.Append("e(d),q(b,function(b){a.matches(b)&&f.add(b)})):b.getElementsByClassName&&d&&\"clas"); + atom.Append("s\"==c?(b=b.getElementsByClassName(d),q(b,function(b){b.className==d&&a.matches(b)"); + atom.Append("&&f.add(b)})):a instanceof G?ec(a,b,c,d,f):b.getElementsByTagName&&(b=b.getElement"); + atom.Append("sByTagName(a.getName()),q(b,function(a){Zb(a,c,d)&&f.add(a)}));return f}\nfunction"); + atom.Append(" fc(a,b,c,d,f){var e;if((a instanceof cc||8==a.f||c&&null===a.f)&&(e=b.childNodes)"); + atom.Append("){var g=dc(a);if(\"*\"!=g&&(e=va(e,function(a){return a.tagName&&a.tagName.toLower"); + atom.Append("Case()==g}),!e))return f;c&&(e=va(e,function(a){return Zb(a,c,d)}));q(e,function(a"); + atom.Append("){\"*\"==g&&(\"!\"==a.tagName||\"*\"==g&&1!=a.nodeType)||f.add(a)});return f}retur"); + atom.Append("n gc(a,b,c,d,f)}function gc(a,b,c,d,f){for(b=b.firstChild;b;b=b.nextSibling)Zb(b,c"); + atom.Append(",d)&&a.matches(b)&&f.add(b);return f}\nfunction ec(a,b,c,d,f){for(b=b.firstChild;b"); + atom.Append(";b=b.nextSibling)Zb(b,c,d)&&a.matches(b)&&f.add(b),ec(a,b,c,d,f)}function dc(a){if"); + atom.Append("(a instanceof G){if(8==a.f)return\"!\";if(null===a.f)return\"*\"}return a.getName("); + atom.Append(")};function F(){this.r=this.n=null;this.P=0}function hc(a){this.J=a;this.next=this"); + atom.Append(".F=null}function ic(a,b){if(!a.n)return b;if(!b.n)return a;for(var c=a.n,d=b.n,f=n"); + atom.Append("ull,e=null,g=0;c&&d;){var e=c.J,k=d.J;e==k||e instanceof Tb&&k instanceof Tb&&e.k="); + atom.Append("=k.k?(e=c,c=c.next,d=d.next):0\",4,2,function(a,b,c){return sc(function"); + atom.Append("(a,b){return a>b},a,b,c)});N(\"<=\",4,2,function(a,b,c){return sc(function(a,b){re"); + atom.Append("turn a<=b},a,b,c)});N(\">=\",4,2,function(a,b,c){return sc(function(a,b){return a>"); + atom.Append("=b},a,b,c)});var rc=N(\"=\",3,2,function(a,b,c){return sc(function(a,b){return a=="); + atom.Append("b},a,b,c,!0)});N(\"!=\",3,2,function(a,b,c){return sc(function(a,b){return a!=b},a"); + atom.Append(",b,c,!0)});N(\"and\",2,2,function(a,b,c){return pc(a,c)&&pc(b,c)});N(\"or\",1,2,fu"); + atom.Append("nction(a,b,c){return pc(a,c)||pc(b,c)});function vc(a,b){if(b.u()&&4!=a.m)throw Er"); + atom.Append("ror(\"Primary expression must evaluate to nodeset if filter has predicate(s).\");H"); + atom.Append(".call(this,a.m);this.wa=a;this.g=b;this.v=a.l();this.o=a.o}p(vc,H);vc.prototype.ev"); + atom.Append("aluate=function(a){a=this.wa.evaluate(a);return wc(this.g,a)};vc.prototype.toStrin"); + atom.Append("g=function(){var a;a=\"Filter:\"+I(this.wa);return a+=I(this.g)};function xc(a,b){"); + atom.Append("if(b.lengtha.fa)throw Error(\"Function"); + atom.Append(" \"+a.q+\" expects at most \"+a.fa+\" arguments, \"+b.length+\" given\");a.Ia&&q(b"); + atom.Append(",function(b,d){if(4!=b.m)throw Error(\"Argument \"+d+\" to function \"+a.q+\" is n"); + atom.Append("ot of type Nodeset: \"+b);});H.call(this,a.m);this.S=a;this.$=b;nc(this,a.v||ya(b,"); + atom.Append("function(a){return a.l()}));oc(this,a.Ga&&!b.length||a.Fa&&!!b.length||ya(b,functi"); + atom.Append("on(a){return a.o}))}\np(xc,H);xc.prototype.evaluate=function(a){return this.S.t.ap"); + atom.Append("ply(null,Ca(a,this.$))};xc.prototype.toString=function(){var a=\"Function: \"+this"); + atom.Append(".S;if(this.$.length)var b=xa(this.$,function(a,b){return a+I(b)},\"Arguments:\"),a"); + atom.Append("=a+I(b);return a};function yc(a,b,c,d,f,e,g,k,r){this.q=a;this.m=b;this.v=c;this.G"); + atom.Append("a=d;this.Fa=f;this.t=e;this.ta=g;this.fa=m(k)?k:g;this.Ia=!!r}yc.prototype.toStrin"); + atom.Append("g=function(){return this.q};var zc={};\nfunction O(a,b,c,d,f,e,g,k){if(zc.hasOwnPr"); + atom.Append("operty(a))throw Error(\"Function already created: \"+a+\".\");zc[a]=new yc(a,b,c,d"); + atom.Append(",!1,f,e,g,k)}O(\"boolean\",2,!1,!1,function(a,b){return pc(b,a)},1);O(\"ceiling\","); + atom.Append("1,!1,!1,function(a,b){return Math.ceil(K(b,a))},1);O(\"concat\",3,!1,!1,function(a"); + atom.Append(",b){return xa(Ea(arguments,1),function(b,d){return b+L(d,a)},\"\")},2,null);O(\"co"); + atom.Append("ntains\",2,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);return-1!=b.indexOf(a)},2);O(\""); + atom.Append("count\",1,!1,!1,function(a,b){return b.evaluate(a).u()},1,1,!0);\nO(\"false\",2,!1"); + atom.Append(",!1,function(){return!1},0);O(\"floor\",1,!1,!1,function(a,b){return Math.floor(K("); + atom.Append("b,a))},1);O(\"id\",4,!1,!1,function(a,b){function c(a){if(Rb){var b=f.all[a];if(b)"); + atom.Append("{if(b.nodeType&&a==b.id)return b;if(b.length)return Aa(b,function(b){return a==b.i"); + atom.Append("d})}return null}return f.getElementById(a)}var d=a.k,f=9==d.nodeType?d:d.ownerDocu"); + atom.Append("ment,d=L(b,a).split(/\\s+/),e=[];q(d,function(a){(a=c(a))&&!Ba(e,a)&&e.push(a)});e"); + atom.Append(".sort(tb);var g=new F;q(e,function(a){g.add(a)});return g},1);\nO(\"lang\",2,!1,!1"); + atom.Append(",function(){return!1},1);O(\"last\",1,!0,!1,function(a){if(1!=arguments.length)thr"); + atom.Append("ow Error(\"Function last expects ()\");return a.r},0);O(\"local-name\",3,!1,!0,fun"); + atom.Append("ction(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.nodeName.toLowerCase():\"\"},0"); + atom.Append(",1,!0);O(\"name\",3,!1,!0,function(a,b){var c=b?jc(b.evaluate(a)):a.k;return c?c.n"); + atom.Append("odeName.toLowerCase():\"\"},0,1,!0);O(\"namespace-uri\",3,!0,!1,function(){return"); + atom.Append("\"\"},0,1,!0);\nO(\"normalize-space\",3,!1,!0,function(a,b){return(b?L(b,a):E(a.k)"); + atom.Append(").replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);O(\"not\",2,!1,"); + atom.Append("!1,function(a,b){return!pc(b,a)},1);O(\"number\",1,!1,!0,function(a,b){return b?K("); + atom.Append("b,a):+E(a.k)},0,1);O(\"position\",1,!0,!1,function(a){return a.La},0);O(\"round\","); + atom.Append("1,!1,!1,function(a,b){return Math.round(K(b,a))},1);O(\"starts-with\",2,!1,!1,func"); + atom.Append("tion(a,b,c){b=L(b,a);a=L(c,a);return 0==b.lastIndexOf(a,0)},2);O(\"string\",3,!1,!"); + atom.Append("0,function(a,b){return b?L(b,a):E(a.k)},0,1);\nO(\"string-length\",1,!1,!0,functio"); + atom.Append("n(a,b){return(b?L(b,a):E(a.k)).length},0,1);O(\"substring\",3,!1,!1,function(a,b,c"); + atom.Append(",d){c=K(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?K(d,a):Infinity"); + atom.Append(";if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.max(c,0);a=L(b"); + atom.Append(",a);if(Infinity==d)return a.substring(f);b=Math.round(d);return a.substring(f,c+b)"); + atom.Append("},2,3);O(\"substring-after\",3,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);c=b.indexOf"); + atom.Append("(a);return-1==c?\"\":b.substring(c+a.length)},2);\nO(\"substring-before\",3,!1,!1,"); + atom.Append("function(a,b,c){b=L(b,a);a=L(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)"); + atom.Append("},2);O(\"sum\",1,!1,!1,function(a,b){for(var c=lc(b.evaluate(a)),d=0,f=c.next();f;"); + atom.Append("f=c.next())d+=+E(f);return d},1,1,!0);O(\"translate\",3,!1,!1,function(a,b,c,d){b="); + atom.Append("L(b,a);c=L(c,a);var f=L(d,a);a=[];for(d=0;da.length)throw Error"); + atom.Append("(\"Unclosed literal string\");return new Bc(a)}function $c(a){var b=a.b.next(),c=b"); + atom.Append(".indexOf(\":\");if(-1==c)return new cc(b);var d=b.substring(0,c);a=a.Ja(d);if(!a)t"); + atom.Append("hrow Error(\"Namespace prefix not declared: \"+d);b=b.substr(c+1);return new cc(b,"); + atom.Append("a)}\nfunction ad(a){var b,c=[],d;if(Hc(D(a.b))){b=a.b.next();d=D(a.b);if(\"/\"==b&"); + atom.Append("&(a.b.empty()||\".\"!=d&&\"..\"!=d&&\"@\"!=d&&\"*\"!=d&&!/(?![0-9])[\\w]/.test(d))"); + atom.Append(")return new Fc;d=new Fc;Q(a,\"Missing next location step.\");b=bd(a,b);c.push(b)}e"); + atom.Append("lse{a:{b=D(a.b);d=b.charAt(0);switch(d){case \"$\":throw Error(\"Variable referenc"); + atom.Append("e not allowed in HTML XPath\");case \"(\":a.b.next();b=Vc(a);Q(a,'unclosed \"(\"')"); + atom.Append(";Xc(a,\")\");break;case '\"':case \"'\":b=Zc(a);break;default:if(isNaN(+b))if(!Ac("); + atom.Append("b)&&/(?![0-9])[\\w]/.test(d)&&\"(\"==D(a.b,\n1)){b=a.b.next();b=zc[b]||null;a.b.ne"); + atom.Append("xt();for(d=[];\")\"!=D(a.b);){Q(a,\"Missing function argument list.\");d.push(Vc(a"); + atom.Append("));if(\",\"!=D(a.b))break;a.b.next()}Q(a,\"Unclosed function argument list.\");Yc("); + atom.Append("a);b=new xc(b,d)}else{b=null;break a}else b=new Cc(+a.b.next())}\"[\"==D(a.b)&&(d="); + atom.Append("new Kc(cd(a)),b=new vc(b,d))}if(b)if(Hc(D(a.b)))d=b;else return b;else b=bd(a,\"/"); + atom.Append("\"),d=new Gc,c.push(b)}for(;Hc(D(a.b));)b=a.b.next(),Q(a,\"Missing next location s"); + atom.Append("tep.\"),b=bd(a,b),c.push(b);return new Dc(d,c)}\nfunction bd(a,b){var c,d,f;if(\"/"); + atom.Append("\"!=b&&\"//\"!=b)throw Error('Step op should be \"/\" or \"//\"');if(\".\"==D(a.b)"); + atom.Append(")return d=new Lc(Rc,new G(\"node\")),a.b.next(),d;if(\"..\"==D(a.b))return d=new L"); + atom.Append("c(Qc,new G(\"node\")),a.b.next(),d;var e;if(\"@\"==D(a.b))e=Ec,a.b.next(),Q(a,\"Mi"); + atom.Append("ssing attribute name\");else if(\"::\"==D(a.b,1)){if(!/(?![0-9])[\\w]/.test(D(a.b)"); + atom.Append(".charAt(0)))throw Error(\"Bad token: \"+a.b.next());c=a.b.next();e=Pc[c]||null;if("); + atom.Append("!e)throw Error(\"No axis with name: \"+c);a.b.next();Q(a,\"Missing node name\")}el"); + atom.Append("se e=\nMc;c=D(a.b);if(/(?![0-9])[\\w]/.test(c.charAt(0)))if(\"(\"==D(a.b,1)){if(!A"); + atom.Append("c(c))throw Error(\"Invalid node type: \"+c);c=a.b.next();if(!Ac(c))throw Error(\"I"); + atom.Append("nvalid type name: \"+c);Xc(a,\"(\");Q(a,\"Bad nodetype\");f=D(a.b).charAt(0);var g"); + atom.Append("=null;if('\"'==f||\"'\"==f)g=Zc(a);Q(a,\"Bad nodetype\");Yc(a);c=new G(c,g)}else c"); + atom.Append("=$c(a);else if(\"*\"==c)c=$c(a);else throw Error(\"Bad token: \"+a.b.next());f=new"); + atom.Append(" Kc(cd(a),e.K);return d||new Lc(e,c,f,\"//\"==b)}\nfunction cd(a){for(var b=[];\"["); + atom.Append("\"==D(a.b);){a.b.next();Q(a,\"Missing predicate expression.\");var c=Vc(a);b.push("); + atom.Append("c);Q(a,\"Unclosed predicate expression.\");Xc(a,\"]\")}return b}function Wc(a){if("); + atom.Append("\"-\"==D(a.b))return a.b.next(),new Sc(Wc(a));var b=ad(a);if(\"|\"!=D(a.b))a=b;els"); + atom.Append("e{for(b=[b];\"|\"==a.b.next();)Q(a,\"Missing next union location path.\"),b.push(a"); + atom.Append("d(a));a.b.back();a=new Tc(b)}return a};function dd(a){switch(a.nodeType){case 1:re"); + atom.Append("turn la(ed,a);case 9:return dd(a.documentElement);case 2:return a.ownerElement?dd("); + atom.Append("a.ownerElement):fd;case 11:case 10:case 6:case 12:return fd;default:return a.paren"); + atom.Append("tNode?dd(a.parentNode):fd}}function fd(){return null}function ed(a,b){if(a.prefix="); + atom.Append("=b)return a.namespaceURI||\"http://www.w3.org/1999/xhtml\";var c=a.getAttributeNod"); + atom.Append("e(\"xmlns:\"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode."); + atom.Append("nodeType?ed(a.parentNode,b):null};function gd(a,b){if(!a.length)throw Error(\"Empt"); + atom.Append("y XPath expression.\");var c=Wb(a);if(c.empty())throw Error(\"Invalid XPath expres"); + atom.Append("sion.\");b?ea(b)||(b=ka(b.lookupNamespaceURI,b)):b=function(){return null};var d=V"); + atom.Append("c(new Uc(c,b));if(!c.empty())throw Error(\"Bad token: \"+c.next());this.evaluate=f"); + atom.Append("unction(a,b){var c=d.evaluate(new Qb(a));return new R(c,b)}}\nfunction R(a,b){if(0"); + atom.Append("==b)if(a instanceof F)b=4;else if(\"string\"==typeof a)b=2;else if(\"number\"==typ"); + atom.Append("eof a)b=1;else if(\"boolean\"==typeof a)b=3;else throw Error(\"Unexpected evaluati"); + atom.Append("on result.\");if(2!=b&&1!=b&&3!=b&&!(a instanceof F))throw Error(\"value could not"); + atom.Append(" be converted to the specified type\");this.resultType=b;var c;switch(b){case 2:th"); + atom.Append("is.stringValue=a instanceof F?kc(a):\"\"+a;break;case 1:this.numberValue=a instanc"); + atom.Append("eof F?+kc(a):+a;break;case 3:this.booleanValue=a instanceof F?0="); + atom.Append("c.length?null:c[e++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error(\"sn"); + atom.Append("apshotItem called with wrong result type\");return a>=\nc.length||0>a?null:c[a]}}R"); + atom.Append(".ANY_TYPE=0;R.NUMBER_TYPE=1;R.STRING_TYPE=2;R.BOOLEAN_TYPE=3;R.UNORDERED_NODE_ITER"); + atom.Append("ATOR_TYPE=4;R.ORDERED_NODE_ITERATOR_TYPE=5;R.UNORDERED_NODE_SNAPSHOT_TYPE=6;R.ORDE"); + atom.Append("RED_NODE_SNAPSHOT_TYPE=7;R.ANY_UNORDERED_NODE_TYPE=8;R.FIRST_ORDERED_NODE_TYPE=9;f"); + atom.Append("unction hd(a){this.lookupNamespaceURI=dd(a)}\nfunction id(a){a=a||l;var b=a.docume"); + atom.Append("nt;b.evaluate||(a.XPathResult=R,b.evaluate=function(a,b,f,e){return(new gd(a,f)).e"); + atom.Append("valuate(b,e)},b.createExpression=function(a,b){return new gd(a,b)},b.createNSResol"); + atom.Append("ver=function(a){return new hd(a)})};var S={};S.Da=function(){var a={Qa:\"http://ww"); + atom.Append("w.w3.org/2000/svg\"};return function(b){return a[b]||null}}();S.t=function(a,b,c){"); + atom.Append("var d=C(a);(x||Nb)&&id(ob(d));try{var f=d.createNSResolver?d.createNSResolver(d.do"); + atom.Append("cumentElement):S.Da;return x&&!fb(7)?d.evaluate.call(d,b,a,f,c,null):d.evaluate(b,"); + atom.Append("a,f,c,null)}catch(e){if(!z||\"NS_ERROR_ILLEGAL_VALUE\"!=e.name)throw new t(32,\"Un"); + atom.Append("able to locate an element with the xpath expression \"+b+\" because of the followi"); + atom.Append("ng error:\\n\"+e);}};\nS.aa=function(a,b){if(!a||1!=a.nodeType)throw new t(32,'The"); + atom.Append(" result of the xpath expression \"'+b+'\" is: '+a+\". It should be an element.\");"); + atom.Append("};S.B=function(a,b){var c=function(){var c=S.t(b,a,9);return c?(c=c.singleNodeValu"); + atom.Append("e,w?c:c||null):b.selectSingleNode?(c=C(b),c.setProperty&&c.setProperty(\"Selection"); + atom.Append("Language\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||S.aa(c,a);return c}"); + atom.Append(";\nS.s=function(a,b){var c=function(){var c=S.t(b,a,7);if(c){var f=c.snapshotLengt"); + atom.Append("h;w&&!m(f)&&S.aa(null,a);for(var e=[],g=0;g=this.left&&a.rig"); + atom.Append("ht<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.r"); + atom.Append("ight&&a.y>=this.top&&a.y<=this.bottom:!1};\nh.expand=function(a,b,c,d){fa(a)?(this"); + atom.Append(".top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top"); + atom.Append("-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};h.ceil=function(){this"); + atom.Append(".top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(th"); + atom.Append("is.bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){this.top"); + atom.Append("=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(thi"); + atom.Append("s.bottom);this.left=Math.floor(this.left);return this};\nh.round=function(){this.t"); + atom.Append("op=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(t"); + atom.Append("his.bottom);this.left=Math.round(this.left);return this};h.translate=function(a,b)"); + atom.Append("{a instanceof jb?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):("); + atom.Append("this.left+=a,this.right+=a,da(b)&&(this.top+=b,this.bottom+=b));return this};h.sca"); + atom.Append("le=function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.botto"); + atom.Append("m*=c;return this};function U(a,b,c,d){this.left=a;this.top=b;this.width=c;this.hei"); + atom.Append("ght=d}h=U.prototype;h.clone=function(){return new U(this.left,this.top,this.width,"); + atom.Append("this.height)};h.toString=function(){return\"(\"+this.left+\", \"+this.top+\" - \"+"); + atom.Append("this.width+\"w x \"+this.height+\"h)\"};h.contains=function(a){return a instanceof"); + atom.Append(" U?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this."); + atom.Append("top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=th"); + atom.Append("is.top&&a.y<=this.top+this.height};\nh.ceil=function(){this.left=Math.ceil(this.le"); + atom.Append("ft);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math"); + atom.Append(".ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this.left)"); + atom.Append(";this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math."); + atom.Append("floor(this.height);return this};h.round=function(){this.left=Math.round(this.left)"); + atom.Append(";this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math."); + atom.Append("round(this.height);return this};\nh.translate=function(a,b){a instanceof jb?(this."); + atom.Append("left+=a.x,this.top+=a.y):(this.left+=a,da(b)&&(this.top+=b));return this};h.scale="); + atom.Append("function(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*="); + atom.Append("c;return this};function wd(a,b){var c=C(a);return c.defaultView&&c.defaultView.get"); + atom.Append("ComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue"); + atom.Append("(b)||\"\":\"\"}var xd={thin:2,medium:4,thick:6};\nfunction yd(a,b){if(\"none\"==(a"); + atom.Append(".currentStyle?a.currentStyle[b+\"Style\"]:null))return 0;var c=a.currentStyle?a.cu"); + atom.Append("rrentStyle[b+\"Width\"]:null,d;if(c in xd)d=xd[c];else if(/^\\d+px?$/.test(c))d=pa"); + atom.Append("rseInt(c,10);else{d=a.style.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.c"); + atom.Append("urrentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle."); + atom.Append("left=f;d=c}return d};function zd(a){var b;a:{a=C(a);try{b=a&&a.activeElement;break"); + atom.Append(" a}catch(c){}b=null}return x&&b&&\"undefined\"===typeof b.nodeType?null:b}function"); + atom.Append(" V(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Ad(a){"); + atom.Append("var b;if(b=Bd(a,!0)&&Cd(a))b=!(x||w||z&&!T(\"1.9.2\")?0:\"none\"==W(a,\"pointer-ev"); + atom.Append("ents\"));return b}function Dd(a,b){var c;if(c=td&&\"value\"==b&&V(a,\"OPTION\"))c="); + atom.Append("null===Ed(a,\"value\");c?(c=[],yb(a,c,!1),c=c.join(\"\")):c=a[b];return c}var Fd=/"); + atom.Append("[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()"); + atom.Append("]*\\))*[^()]*$)/;\nfunction Gd(a){var b=[];q(a.split(Fd),function(a){var d=a.index"); + atom.Append("Of(\":\");0=c&&0<=e&&255>=e&"); + atom.Append("&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if(!c)b:{if(g=d.match(Ka))i"); + atom.Append("f(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&2"); + atom.Append("55>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();\ne=Fa[c.toLowerCase("); + atom.Append(")];if(!e&&(e=\"#\"==c.charAt(0)?c:\"#\"+c,4==e.length&&(e=e.replace(Ha,\"#$1$1$2$2"); + atom.Append("$3$3\")),!Ia.test(e))){c=null;break b}c=[parseInt(e.substr(1,2),16),parseInt(e.sub"); + atom.Append("str(3,2),16),parseInt(e.substr(5,2),16),1]}d=c?\"rgba(\"+c.join(\", \")+\")\":d}re"); + atom.Append("turn d}function Md(a,b){var c=a.currentStyle||a.style,d=c[b];!m(d)&&ea(c.getProper"); + atom.Append("tyValue)&&(d=c.getPropertyValue(b));return\"inherit\"!=d?m(d)?d:null:(c=Kd(a))?Md("); + atom.Append("c,b):null}\nfunction Bd(a,b){function c(a){if(\"none\"==W(a,\"display\"))return!1;"); + atom.Append("a=Kd(a);return!a||c(a)}function d(a){var b=Nd(a);return 0=B.left+B.width;B=e.top>=B.top+B.heig"); + atom.Append("ht;if(M&&\"hidden\"==s.x||B&&\"hidden\"==s.y)return Pd;if(M&&\"visible\"!=s.x||B&&"); + atom.Append("\"visible\"!=s.y){if(u&&(s=f(y),e.left>=k.scrollWidth-s.x||e.right>=k.scrollHeight"); + atom.Append("-s.y))return Pd;e=Od(y);return e==Pd?Pd:\"scroll\"}}}return\"none\"}\nvar Td=/matr"); + atom.Append("ix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+"); + atom.Append(")(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)/;\nfunction Nd(a){function b(a){var c=ob(C(a))."); + atom.Append("getComputedStyle(a,null).MozTransform.match(Td);if(c){var d=parseFloat(c[1]),f=par"); + atom.Append("seFloat(c[2]),u=parseFloat(c[3]),y=parseFloat(c[4]),s=parseFloat(c[5]),c=parseFloa"); + atom.Append("t(c[6]),B=e.left+e.width,M=e.top+e.height,ba=e.left*d,d=B*d,bb=e.left*f,f=B*f,cb=e"); + atom.Append(".top*u,u=M*u,db=e.top*y,B=M*y,M=ba+cb+s,y=bb+db+c,cb=d+cb+s,db=f+db+c,ba=ba+u+s,bb"); + atom.Append("=bb+B+c,s=d+u+s,c=f+B+c;e.left=Math.min(M,cb,ba,s);e.top=Math.min(y,db,bb,c);s=Mat"); + atom.Append("h.max(M,cb,ba,s);c=Math.max(y,db,bb,c);e.width=\ns-e.left;e.height=c-e.top}(a=Kd(a"); + atom.Append("))&&b(a)}var c=Qd(a);if(c)return c.rect;if(V(a,\"HTML\"))return c=C(a),a=nb(ob(c)|"); + atom.Append("|window),new U(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catch(f"); + atom.Append("){return new U(0,0,0,0)}var e=new U(d.left,d.top,d.right-d.left,d.bottom-d.top);x&"); + atom.Append("&a.ownerDocument.body&&(c=C(a),e.left-=c.documentElement.clientLeft+c.body.clientL"); + atom.Append("eft,e.top-=c.documentElement.clientTop+c.body.clientTop);w&&(0==e.width&&02*this.G&&Me(this),!0):!1};function Me(a){if(a.G!=a.i.length){for(var "); + atom.Append("b=0,c=0;b\");Y(191,\"/\",\"?\");Y(192,\"`\",\"~\");Y(219,\"[\",\"{\");Y(22"); + atom.Append("0,\"\\\\\",\"|\");Y(221,\"]\",\"}\");var Uf=Y({d:59,e:186,opera:59},\";\",\":\");Y"); + atom.Append("(222,\"'\",'\"');var Vf=[$e,Ze,of,Z],Wf=new Le;Wf.set(1,Z);Wf.set(2,Ze);Wf.set(4,$"); + atom.Append("e);Wf.set(8,of);var Xf=function(a){var b=new Le;q(Ne(a),function(c){b.set(a.get(c)"); + atom.Append(".code,c)});return b}(Wf);function Te(a,b,c){if(Ba(Vf,b)){var d=Xf.get(b.code),f=a."); + atom.Append("Ea;f.V=c?f.V|d:f.V&~d}c?a.W.add(b):a.W.remove(b)}var Yf=x||w?\"\\r\\n\":\"\\n\";Se"); + atom.Append(".prototype.h=function(a){return this.W.contains(a)};\nfunction Zf(a,b){if(Ba(Vf,b)"); + atom.Append("&&a.h(b))throw new t(13,\"Cannot press a modifier key that is already pressed.\");"); + atom.Append("var c=null!==b.code&&$f(a,ze,b);if((c||z)&&(!ag(b)||$f(a,se,b,!c))&&c&&(bg(a,b),a."); + atom.Append("ca))if(b.C){if(!cg){var c=dg(a,b),d=He(a.c(),!0)[0]+1;eg(a.c())?(Ke(a.c(),c),De(a."); + atom.Append("c(),d)):a.c().value+=c;A&&a.D(ye);ud||a.D(xe);a.p=d}}else switch(b){case Ye:cg||(A"); + atom.Append("&&a.D(ye),V(a.c(),\"TEXTAREA\")&&(c=He(a.c(),!0)[0]+Yf.length,eg(a.c())?(Ke(a.c(),"); + atom.Append("Yf),De(a.c(),c)):a.c().value+=Yf,x||a.D(xe),a.p=c));break;case We:case nf:cg||\n(f"); + atom.Append("g(a.c()),c=He(a.c(),!1),c[0]==c[1]&&(b==We?(De(a.c(),c[1]-1),Ie(a.c(),c[1])):Ie(a."); + atom.Append("c(),c[1]+1)),c=He(a.c(),!1),c=!(c[0]==a.c().value.length||0==c[1]),Ke(a.c(),\"\"),"); + atom.Append("(!x&&c||z&&b==We)&&a.D(xe),c=He(a.c(),!1),a.p=c[1]);break;case hf:case kf:fg(a.c()"); + atom.Append(");var c=a.c(),f=He(c,!0)[0],e=He(c,!1)[1],g=d=0;b==hf?a.h(Z)?a.p==f?(d=Math.max(f-"); + atom.Append("1,0),g=e,f=d):(d=f,f=g=e-1):f=f==e?Math.max(f-1,0):f:a.h(Z)?a.p==e?(d=f,f=g=Math.m"); + atom.Append("in(e+1,c.value.length)):(d=f+1,g=e,f=d):f=f==e?Math.min(e+1,c.value.length):e;a.h("); + atom.Append("Z)?(De(c,\nd),Ie(c,g)):Je(c,f);a.p=f;break;case gf:case ff:fg(a.c()),c=a.c(),d=He("); + atom.Append("c,!0)[0],g=He(c,!1)[1],b==gf?(a.h(Z)?(De(c,0),Ie(c,a.p==d?g:d)):Je(c,0),a.p=0):(a."); + atom.Append("h(Z)?(a.p==d&&De(c,g),Ie(c,c.value.length)):Je(c,c.value.length),a.p=c.value.lengt"); + atom.Append("h)}Te(a,b,!0)}function ag(a){if(a.C||a==Ye)return!0;if(A)return!1;if(x)return a==b"); + atom.Append("f;switch(a){case Z:case Ze:case $e:return!1;case of:case pf:case qf:return z;defau"); + atom.Append("lt:return!0}}\nfunction bg(a,b){if(b==Ye&&!z&&V(a.c(),\"INPUT\")){var c=zb(a.c(),l"); + atom.Append("e,!0);if(c){var d=c.getElementsByTagName(\"input\");(ya(d,function(a){a:{if(V(a,\""); + atom.Append("INPUT\")){var b=a.type.toLowerCase();if(\"submit\"==b||\"image\"==b){a=!0;break a}"); + atom.Append("}if(V(a,\"BUTTON\")&&(b=a.type.toLowerCase(),\"submit\"==b)){a=!0;break a}a=!1}ret"); + atom.Append("urn a})||1==d.length||A&&!T(534))&&me(c)}}}function gg(a,b){if(!a.h(b))throw new t"); + atom.Append("(13,\"Cannot release a key that is not pressed. (\"+b.code+\")\");null===b.code||$"); + atom.Append("f(a,Ae,b);Te(a,b,!1)}\nfunction dg(a,b){if(!b.C)throw new t(13,\"not a character k"); + atom.Append("ey\");return a.h(Z)?b.Ma:b.C}var cg=z&&!T(12);function fg(a){try{a.selectionStart}"); + atom.Append("catch(b){if(-1!=b.message.indexOf(\"does not support selection.\"))throw Error(b.m"); + atom.Append("essage+\" (For more information, see https://code.google.com/p/chromium/issues/det"); + atom.Append("ail?id=330456)\");throw b;}}function eg(a){try{fg(a)}catch(b){return!1}return!0}\n"); + atom.Append("function $f(a,b,c,d){if(null===c.code)throw new t(13,\"Key must have a keycode to "); + atom.Append("be fired.\");c={altKey:a.h($e),ctrlKey:a.h(Ze),metaKey:a.h(of),shiftKey:a.h(Z),key"); + atom.Append("Code:c.code,charCode:c.C&&b==se?dg(a,c).charCodeAt(0):0,preventDefault:!!d};return"); + atom.Append(" a.da(b,c)}\nfunction hg(a,b){ie(a,b);a.ca=Ld(b);var c;c=a.ya||a.H;var d=zd(c);if("); + atom.Append("c==d)c=!1;else{if(d&&(ea(d.blur)||x&&fa(d.blur))){if(!V(d,\"BODY\"))try{d.blur()}c"); + atom.Append("atch(f){if(!x||\"Unspecified error.\"!=f.message)throw f;}x&&!T(8)&&ob(C(c)).focus"); + atom.Append("()}ea(c.focus)||x&&fa(c.focus)?(w&&T(11)&&!Bd(c)?ne(c,we):c.focus(),c=!0):c=!1}a.c"); + atom.Append("a&&c&&(Je(b,b.value.length),a.p=b.value.length)};function ig(a,b,c,d){function f(a"); + atom.Append("){n(a)?q(a.split(\"\"),function(a){if(1!=a.length)throw new t(13,\"Argument not a "); + atom.Append("single character: \"+a);var b=Ue[a];b||(b=a.toUpperCase(),b=Y(b.charCodeAt(0),a.to"); + atom.Append("LowerCase(),b),b={key:b,shift:a!=b.C});a=b;b=e.h(Z);a.shift&&!b&&Zf(e,Z);Zf(e,a.ke"); + atom.Append("y);gg(e,a.key);a.shift&&!b&&gg(e,Z)}):Ba(Vf,a)?e.h(a)?gg(e,a):Zf(e,a):(Zf(e,a),gg("); + atom.Append("e,a))}if(a!=zd(a)){if(!Ad(a))throw new t(12,\"Element is not currently interactabl"); + atom.Append("e and may not be manipulated\");jg(a)}var e=c||new Se;hg(e,a);if((!Pb||\nWa)&&A&&"); + atom.Append("\"date\"==a.type){c=\"array\"==aa(b)?b=b.join(\"\"):b;var g=/\\d{4}-\\d{2}-\\d{2}/"); + atom.Append(";if(c.match(g)){Wa&&Pb&&(ne(a,Ce),ne(a,Be));ne(a,we);a.value=c.match(g)[0];ne(a,ve"); + atom.Append(");ne(a,ue);return}}\"array\"==aa(b)?q(b,f):f(b);d||q(Vf,function(a){e.h(a)&&gg(e,a"); + atom.Append(")})}\nfunction jg(a){if(\"scroll\"==Od(a,void 0)){if(a.scrollIntoView&&(a.scrollIn"); + atom.Append("toView(),\"none\"==Od(a,void 0)))return;for(var b=Sd(a,void 0),c=Kd(a);c;c=Kd(c)){"); + atom.Append("var d=c,f=Nd(d),e;var g=d;if(!x||x&&9<=hb)k=wd(g,\"borderLeftWidth\"),e=wd(g,\"bor"); + atom.Append("derRightWidth\"),r=wd(g,\"borderTopWidth\"),g=wd(g,\"borderBottomWidth\"),e=new vd"); + atom.Append("(parseFloat(r),parseFloat(e),parseFloat(g),parseFloat(k));else{var k=yd(g,\"border"); + atom.Append("Left\");e=yd(g,\"borderRight\");var r=yd(g,\"borderTop\"),g=yd(g,\"borderBottom\")"); + atom.Append(";e=new vd(r,e,g,k)}k=b.left-f.left-\ne.left;f=b.top-f.top-e.top;e=d.clientHeight+b"); + atom.Append(".top-b.bottom;d.scrollLeft+=Math.min(k,Math.max(k-(d.clientWidth+b.left-b.right),0"); + atom.Append("));d.scrollTop+=Math.min(f,Math.max(f-e,0))}Od(a,void 0)}};function $(a,b,c,d){fun"); + atom.Append("ction f(){return{ua:e,keys:[]}}var e=!!d,g=[],k=f();g.push(k);q(b,function(a){q(a."); + atom.Append("split(\"\"),function(a){if(\"\\ue000\"<=a&&\"\\ue03d\">=a){var b=$.a[a];if(null==="); + atom.Append("b)g.push(k=f()),e&&(k.ua=!1,g.push(k=f()));else if(m(b))k.keys.push(b);else throw "); + atom.Append("Error(\"Unsupported WebDriver key: \\\\u\"+a.charCodeAt(0).toString(16));}else swi"); + atom.Append("tch(a){case \"\\n\":k.keys.push(Ye);break;case \"\\t\":k.keys.push(Xe);break;case "); + atom.Append("\"\\b\":k.keys.push(We);break;default:k.keys.push(a)}})});q(g,function(b){ig(a,b.k"); + atom.Append("eys,c,b.ua)})}\n$.a={};$.a[\"\\ue000\"]=null;$.a[\"\\ue003\"]=We;$.a[\"\\ue004\"]="); + atom.Append("Xe;$.a[\"\\ue006\"]=Ye;$.a[\"\\ue007\"]=Ye;$.a[\"\\ue008\"]=Z;$.a[\"\\ue009\"]=Ze;"); + atom.Append("$.a[\"\\ue00a\"]=$e;$.a[\"\\ue00b\"]=af;$.a[\"\\ue00c\"]=bf;$.a[\"\\ue00d\"]=cf;$."); + atom.Append("a[\"\\ue00e\"]=df;$.a[\"\\ue00f\"]=ef;$.a[\"\\ue010\"]=ff;$.a[\"\\ue011\"]=gf;$.a["); + atom.Append("\"\\ue012\"]=hf;$.a[\"\\ue013\"]=jf;$.a[\"\\ue014\"]=kf;$.a[\"\\ue015\"]=lf;$.a[\""); + atom.Append("\\ue016\"]=mf;$.a[\"\\ue017\"]=nf;$.a[\"\\ue018\"]=Uf;$.a[\"\\ue019\"]=Sf;$.a[\""); + atom.Append("\\ue01a\"]=rf;$.a[\"\\ue01b\"]=sf;$.a[\"\\ue01c\"]=tf;$.a[\"\\ue01d\"]=uf;$.a[\""); + atom.Append("\\ue01e\"]=vf;$.a[\"\\ue01f\"]=wf;\n$.a[\"\\ue020\"]=xf;$.a[\"\\ue021\"]=yf;$.a[\""); + atom.Append("\\ue022\"]=zf;$.a[\"\\ue023\"]=Af;$.a[\"\\ue024\"]=Bf;$.a[\"\\ue025\"]=Cf;$.a[\""); + atom.Append("\\ue027\"]=Df;$.a[\"\\ue028\"]=Ef;$.a[\"\\ue029\"]=Ff;$.a[\"\\ue026\"]=Tf;$.a[\""); + atom.Append("\\ue031\"]=Gf;$.a[\"\\ue032\"]=Hf;$.a[\"\\ue033\"]=If;$.a[\"\\ue034\"]=Jf;$.a[\""); + atom.Append("\\ue035\"]=Kf;$.a[\"\\ue036\"]=Lf;$.a[\"\\ue037\"]=Mf;$.a[\"\\ue038\"]=Nf;$.a[\""); + atom.Append("\\ue039\"]=Of;$.a[\"\\ue03a\"]=Pf;$.a[\"\\ue03b\"]=Qf;$.a[\"\\ue03c\"]=Rf;$.a[\""); + atom.Append("\\ue03d\"]=of;function kg(){this.X=void 0}\nfunction lg(a,b,c){switch(typeof b){ca"); + atom.Append("se \"string\":mg(b,c);break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null"); + atom.Append("\");break;case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");bre"); + atom.Append("ak;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==aa(b)){var d=b"); + atom.Append(".length;c.push(\"[\");for(var f=\"\",e=0;eb?f+=\"000"); + atom.Append("\":256>b?f+=\"00\":4096>b&&(f+=\"0\");return ng[a]=f+b.toString(16)}),'\"')};A||w|"); + atom.Append("|z&&T(3.5)||x&&T(8);function pg(a){switch(aa(a)){case \"string\":case \"number\":c"); + atom.Append("ase \"boolean\":return a;case \"function\":return a.toString();case \"array\":retu"); + atom.Append("rn wa(a,pg);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType)){v"); + atom.Append("ar b={};b.ELEMENT=qg(a);return b}if(\"document\"in a)return b={},b.WINDOW=qg(a),b;"); + atom.Append("if(ca(a))return wa(a,pg);a=Qa(a,function(a,b){return da(b)||n(b)});return Ra(a,pg)"); + atom.Append(";default:return null}}\nfunction rg(a,b){return\"array\"==aa(a)?wa(a,function(a){r"); + atom.Append("eturn rg(a,b)}):fa(a)?\"function\"==typeof a?a:\"ELEMENT\"in a?sg(a.ELEMENT,b):\"W"); + atom.Append("INDOW\"in a?sg(a.WINDOW,b):Ra(a,function(a){return rg(a,b)}):a}function tg(a){a=a|"); + atom.Append("|document;var b=a.$wdc_;b||(b=a.$wdc_={},b.ha=ma());b.ha||(b.ha=ma());return b}fun"); + atom.Append("ction qg(a){var b=tg(a.ownerDocument),c=Ta(b,function(b){return b==a});c||(c=\":wd"); + atom.Append("c:\"+b.ha++,b[c]=a);return c}\nfunction sg(a,b){a=decodeURIComponent(a);var c=b||d"); + atom.Append("ocument,d=tg(c);if(!(a in d))throw new t(10,\"Element does not exist in cache\");v"); + atom.Append("ar f=d[a];if(\"setInterval\"in f){if(f.closed)throw delete d[a],new t(23,\"Window "); + atom.Append("has been closed.\");return f}for(var e=f;e;){if(e==c.documentElement)return f;e=e."); + atom.Append("parentNode}delete d[a];throw new t(10,\"Element is no longer attached to the DOM\""); + atom.Append(");};function ug(a,b,c,d){c=new Se(c);a||(a=zd(document));if(!a)throw Error(\"No el"); + atom.Append("ement to send keys to\");$(a,b,c,d);return{pressed:c.W.I(),currentPos:c.p}};functi"); + atom.Append("on vg(a,b,c){a=[null,a,b,!0];var d;try{var f=c?sg(c.WINDOW):window,e=rg(a,f.docume"); + atom.Append("nt),g=ug.apply(null,e);d={status:0,value:pg(g)}}catch(k){d={status:\"code\"in k?k."); + atom.Append("code:13,value:{message:k.message}}}c=[];lg(new kg,d,c);return c.join(\"\")}var wg="); + atom.Append("[\"_\"],xg=l;wg[0]in xg||!xg.execScript||xg.execScript(\"var \"+wg[0]);for(var yg;"); + atom.Append("wg.length&&(yg=wg.shift());)!wg.length&&m(vg)?xg[yg]=vg:xg=xg[yg]?xg[yg]:xg[yg]={}"); + atom.Append(";; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined"); + atom.Append("?window.navigator:null,document:typeof window!=undefined?window.document:null}, ar"); + atom.Append("guments);}"); + atomsRepository[atomName] = atom.ToString(); + } + + return atomsRepository[atomName]; + } + } + } +} \ No newline at end of file diff --git a/Winium/Winium.Mobile.Driver/Winium.Mobile.Driver.csproj b/Winium/Winium.Mobile.Driver/Winium.Mobile.Driver.csproj index 1e14598..172ff0f 100644 --- a/Winium/Winium.Mobile.Driver/Winium.Mobile.Driver.csproj +++ b/Winium/Winium.Mobile.Driver/Winium.Mobile.Driver.csproj @@ -62,6 +62,9 @@ + + + @@ -104,6 +107,8 @@ + + diff --git a/Winium/Winium.StoreApps.InnerServer.Tests/Winium.StoreApps.InnerServer.Tests.csproj b/Winium/Winium.StoreApps.InnerServer.Tests/Winium.StoreApps.InnerServer.Tests.csproj index bed267c..f46ef68 100644 --- a/Winium/Winium.StoreApps.InnerServer.Tests/Winium.StoreApps.InnerServer.Tests.csproj +++ b/Winium/Winium.StoreApps.InnerServer.Tests/Winium.StoreApps.InnerServer.Tests.csproj @@ -67,11 +67,6 @@ prompt true - - - - - @@ -102,11 +97,16 @@ Winium.StoreApps.InnerServer + + + + + - - 12.0 + + 14.0 WindowsPhoneApp diff --git a/Winium/Winium.StoreApps.InnerServer/Automator.cs b/Winium/Winium.StoreApps.InnerServer/Automator.cs index 4fb3b56..74830e3 100644 --- a/Winium/Winium.StoreApps.InnerServer/Automator.cs +++ b/Winium/Winium.StoreApps.InnerServer/Automator.cs @@ -4,16 +4,20 @@ using System; using System.Collections.Generic; + using System.Diagnostics; using System.Linq; - - using Newtonsoft.Json; - using Newtonsoft.Json.Linq; + using System.Threading; + using System.Threading.Tasks; using Windows.UI.Core; using Windows.UI.Xaml; - using Winium.Mobile.Common; - using Winium.StoreApps.InnerServer.Commands; + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + + using Mobile.Common; + using Commands; + using Web.Commands; #endregion @@ -30,6 +34,8 @@ public Automator() this.UiThreadDispatcher = Window.Current.Dispatcher; this.ElementsRegistry = new ElementsRegistry(); + this.ContextsRegistry = new ContextsRegistry(); + this.CurrentContext = ContextsRegistry.NativeAppContext; this.DoAfterResponseOnce = null; } @@ -43,6 +49,10 @@ public Automator() public ElementsRegistry ElementsRegistry { get; private set; } + public ContextsRegistry ContextsRegistry { get; private set; } + + public string CurrentContext { get; set; } + #endregion #region Public Methods and Operators @@ -52,6 +62,7 @@ public string ProcessCommand(string content) var requestData = JsonConvert.DeserializeObject(content); var command = requestData.Name; var parameters = requestData.Parameters; + this.CurrentContext = requestData.Context; string elementId = null; if (parameters == null) @@ -65,15 +76,102 @@ public string ProcessCommand(string content) elementId = elementIdObject.ToString(); } - CommandBase commandToExecute; + ICommandBase commandToExecute = null; if (command.Equals("ping")) { // Service command return ""; } + if (command.Equals(DriverCommand.Contexts)) + { + commandToExecute = new GetWebContextsCommand(); + } + else if (command.Equals(DriverCommand.SetContext)) + { + commandToExecute = new SetContextCommand(); + } + // TODO: Refactor similar to CommandExecutors in OuterDriver // TODO: Refactor similar to CommandExecutors in Driver + if (commandToExecute == null) + { + commandToExecute = this.CurrentContext == ContextsRegistry.NativeAppContext + ? GetNativeAppCommandToExecute(command, elementId, parameters) + : this.GetWebCommandToExecute(requestData); + } + + JToken sessionIdObject; + commandToExecute.Session = parameters.TryGetValue("SESSIONID", out sessionIdObject) + ? sessionIdObject.ToString() + : string.Empty; + + // TODO: Replace passing Automator to command with passing some kind of configuration + commandToExecute.Automator = this; + commandToExecute.Parameters = parameters; + + var response = commandToExecute.Do(); + + return response; + } + + private ICommandBase GetWebCommandToExecute(Command request) + { + var command = request.Name; + WebCommandAdapterHandler commandToExecute; + + var context = this.ContextsRegistry.GetContext(this.CurrentContext); + + if (command.Equals(DriverCommand.Get)) + { + commandToExecute = new GoToUrlCommandHandler(); + } + else if (command.Equals(DriverCommand.GetPageSource)) + { + commandToExecute = new GetPageSourceCommandHandler(); + } + else if (command.Equals(DriverCommand.FindElement)) + { + commandToExecute = new FindElementCommandHandler(); + } + else if (command.Equals(DriverCommand.GetElementText)) + { + commandToExecute = new GetElementTextCommandHandler(); + } + else if (command.Equals(DriverCommand.GetTitle)) + { + commandToExecute = new GetTitleCommandHandler(); + } + else if (command.Equals(DriverCommand.GetActiveElement)) + { + commandToExecute = new GetActiveElementCommandHandler(); + } + else if (command.Equals(DriverCommand.ClickElement)) + { + commandToExecute = new ClickElementCommandHandler(); + } + else if (command.Equals(DriverCommand.SendKeysToElement)) + { + commandToExecute = new SendKeysCommandHandler(); + } + else + { + throw new NotImplementedException("Not implemented: " + command); + } + + commandToExecute.Atom = request.Atom; + commandToExecute.Context = context; + + return commandToExecute; + } + + private static ICommandBase GetNativeAppCommandToExecute( + string command, + string elementId, + IDictionary parameters) + { + CommandBase commandToExecute; + // TODO: Refactor similar to CommandExecutors in OuterDriver if (command.Equals(DriverCommand.GetAlertText)) { commandToExecute = new AlertTextCommand(); @@ -169,24 +267,7 @@ public string ProcessCommand(string content) { throw new NotImplementedException("Not implemented: " + command); } - - JToken sessionIdObject; - if (parameters.TryGetValue("SESSIONID", out sessionIdObject)) - { - commandToExecute.Session = sessionIdObject.ToString(); - } - else - { - commandToExecute.Session = string.Empty; - } - - // TODO: Replace passing Automator to command with passing some kind of configuration - commandToExecute.Automator = this; - commandToExecute.Parameters = parameters; - - var response = commandToExecute.Do(); - - return response; + return commandToExecute; } #endregion diff --git a/Winium/Winium.StoreApps.InnerServer/Commands/CommandBase.cs b/Winium/Winium.StoreApps.InnerServer/Commands/CommandBase.cs index 0e479ed..0d6f3f6 100644 --- a/Winium/Winium.StoreApps.InnerServer/Commands/CommandBase.cs +++ b/Winium/Winium.StoreApps.InnerServer/Commands/CommandBase.cs @@ -15,7 +15,18 @@ #endregion - internal class CommandBase + internal interface ICommandBase + { + string Do(); + + Automator Automator { get; set; } + + IDictionary Parameters { get; set; } + + string Session { get; set; } + } + + internal abstract class CommandBase : ICommandBase { #region Public Properties @@ -57,10 +68,7 @@ public string Do() #region Methods - protected virtual string DoImpl() - { - throw new NotImplementedException(); - } + protected abstract string DoImpl(); protected string JsonResponse(ResponseStatus status = ResponseStatus.Success, object value = null) { @@ -77,6 +85,7 @@ private static void InvokeSync(CoreDispatcher dispatcher, Action action) Exception exception = null; // TODO Research dispatcher.RunIdleAsync + dispatcher.RunAsync( CoreDispatcherPriority.Normal, () => diff --git a/Winium/Winium.StoreApps.InnerServer/Commands/GetContextsCommand.cs b/Winium/Winium.StoreApps.InnerServer/Commands/GetContextsCommand.cs new file mode 100644 index 0000000..b797207 --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Commands/GetContextsCommand.cs @@ -0,0 +1,19 @@ +namespace Winium.StoreApps.InnerServer.Commands +{ + using System.Collections.Generic; + using System.Linq; + + using Winium.Mobile.Common; + + class GetWebContextsCommand : CommandBase + { + private static readonly IEnumerable UnconditionalContexts = new[] { DefaultContextNames.NativeAppContextName }; + protected override string DoImpl() + + { + var contexts = this.Automator.ContextsRegistry.GetAllContexts(); + + return this.JsonResponse(ResponseStatus.Success, UnconditionalContexts.Union(contexts)); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Commands/SetContextCommand.cs b/Winium/Winium.StoreApps.InnerServer/Commands/SetContextCommand.cs new file mode 100644 index 0000000..2818bef --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Commands/SetContextCommand.cs @@ -0,0 +1,40 @@ +namespace Winium.StoreApps.InnerServer.Commands +{ + #region + + using Newtonsoft.Json.Linq; + + using Mobile.Common; + using Mobile.Common.Exceptions; + + #endregion + + internal class SetContextCommand : CommandBase + { + protected override string DoImpl() + { + JToken value; + if (!this.Parameters.TryGetValue("name", out value)) + { + throw new AutomationException("Bad argument: name", ResponseStatus.UnknownCommand); + } + + var name = value.ToObject(); + + if (string.IsNullOrWhiteSpace(name)) + { + name = DefaultContextNames.NativeAppContextName; + } + + if (!name.Equals(DefaultContextNames.NativeAppContextName)) + { + // check if context is still valid + this.Automator.ContextsRegistry.GetContext(name); + } + + this.Automator.CurrentContext = name; + + return this.JsonResponse(ResponseStatus.Success, this.Automator.CurrentContext); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/ContextsRegistry.cs b/Winium/Winium.StoreApps.InnerServer/ContextsRegistry.cs new file mode 100644 index 0000000..d77ee3d --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/ContextsRegistry.cs @@ -0,0 +1,78 @@ +using System.Collections.Generic; + +namespace Winium.StoreApps.InnerServer +{ + using System.Globalization; + using System.Linq; + using System.Threading; + + using Windows.UI.Xaml.Controls; + + using Element; + using Web; + + using Winium.Mobile.Common; + using Winium.Mobile.Common.Exceptions; + + internal class ContextsRegistry + { + private static int safeInstanceCount; + + private readonly Dictionary contexts; + + public const string NativeAppContext = "NATIVE_APP"; + + public ContextsRegistry() + { + this.contexts = new Dictionary(); + } + + public IEnumerable GetAllContexts() + { + var webViews = WiniumVirtualRoot.Current.Find(TreeScope.Descendants, x => x is WebView); + + // FIXME ToList is required here to actually register contexts, but it causes "The application called an interface that was marshalled for a different thread" later on + return webViews.Select(this.RegisterContext); + } + + private string RegisterContext(WiniumElement element) + { + var existing = this.contexts.FirstOrDefault(x => Equals(x.Value.Element, element)).Key; + + if (existing != null) + { + return existing; + } + + var id = GenerateId(element); + this.contexts.Add(id, new CommandEnvironment(element)); + + return id; + } + + public CommandEnvironment GetContext(string id) + { + this.GetAllContexts(); + CommandEnvironment context; + if (this.contexts.TryGetValue(id, out context)) + { + if (!context.Element.IsStale) + { + return context; + } + } + throw new AutomationException("Stale element reference", ResponseStatus.StaleElementReference); + } + + private static string GenerateId(WiniumElement element) + { + Interlocked.Increment(ref safeInstanceCount); + + var friendlyName = !string.IsNullOrWhiteSpace(element.AutomationId) + ? element.AutomationId + : safeInstanceCount.ToString(CultureInfo.InvariantCulture); + + return string.Format("WEBVIEW_{0}", friendlyName); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/ProtocolValueJsonConverter.cs b/Winium/Winium.StoreApps.InnerServer/ProtocolValueJsonConverter.cs new file mode 100644 index 0000000..8abb2b4 --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/ProtocolValueJsonConverter.cs @@ -0,0 +1,113 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer +{ + using System; + using System.Collections.Generic; + + using Newtonsoft.Json; + + /// + /// Converts the response to JSON + /// + internal class ProtocolValueJsonConverter : JsonConverter + { + /// + /// Checks if the object can be converted + /// + /// The object to be converted + /// True if it can be converted or false if can't be + public override bool CanConvert(Type objectType) + { + return true; + } + + /// + /// Process the reader to return an object from JSON + /// + /// A JSON reader + /// Type of the object + /// The existing value of the object + /// JSON Serializer + /// Object created from JSON + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + return this.ProcessToken(reader); + } + + /// + /// Writes objects to JSON. Currently not implemented + /// + /// JSON Writer Object + /// Value to be written + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + if (serializer != null) + { + serializer.Serialize(writer, value); + } + } + + private object ProcessToken(JsonReader reader) + { + // Recursively processes a token. This is required for elements that next other elements. + object processedObject = null; + if (reader != null) + { + if (reader.TokenType == JsonToken.StartObject) + { + Dictionary dictionaryValue = new Dictionary(); + while (reader.Read() && reader.TokenType != JsonToken.EndObject) + { + string elementKey = reader.Value.ToString(); + reader.Read(); + dictionaryValue.Add(elementKey, this.ProcessToken(reader)); + } + + processedObject = dictionaryValue; + } + else if (reader.TokenType == JsonToken.StartArray) + { + List arrayValue = new List(); + while (reader.Read() && reader.TokenType != JsonToken.EndArray) + { + arrayValue.Add(this.ProcessToken(reader)); + } + + processedObject = arrayValue.ToArray(); + } + else + { + processedObject = reader.Value; + } + } + + return processedObject; + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/CommandEnvironment.cs b/Winium/Winium.StoreApps.InnerServer/Web/CommandEnvironment.cs new file mode 100644 index 0000000..d51cd1c --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/CommandEnvironment.cs @@ -0,0 +1,186 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web +{ + using System.Collections.Generic; + + using Windows.UI.Xaml.Controls; + + using Winium.StoreApps.InnerServer.Element; + + internal class CommandEnvironment + { + /// + /// The key used to denote a window object. + /// + public const string WindowObjectKey = "WINDOW"; + + /// + /// The key used to denote an element object. + /// + public const string ElementObjectKey = "ELEMENT"; + + /// + /// The global window handle string used, since the driver only supports one window. + /// + public const string GlobalWindowHandle = "WPDriverWindowHandle"; + + private readonly WiniumElement element; + + public CommandEnvironment(WiniumElement element) + { + this.PageLoadTimeout = -1; + this.AsyncScriptTimeout = -1; + this.FocusedFrame = string.Empty; + this.AlertType = string.Empty; + this.AlertText = string.Empty; + this.MouseState = new Dictionary(); + this.KeyboardState = null; + this.element = element; + + this.Browser.ScriptNotify += this.BrowserScriptNotifyEventHandler; + this.Browser.NavigationStarting += this.BrowserNavigationStartingEventHandler; + } + + public WiniumElement Element + { + get + { + return this.element; + } + } + + public WebView Browser { + get + { + return this.element.Element as WebView; + } + } + + /// + /// Gets or sets the keyboard state of the driver. + /// + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "Values are typed correctly for JSON serialization/deserialization.")] + public Dictionary KeyboardState { get; set; } + + /// + /// Gets or sets the mouse state of the driver. + /// + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "Values are typed correctly for JSON serialization/deserialization.")] + public Dictionary MouseState { get; set; } + + /// + /// Gets the text of the active alert. + /// + public string AlertText { get; private set; } + + /// + /// Gets the type of the active alert. + /// + public string AlertType { get; private set; } + + /// + /// Gets a value indicating whether execution of the next command should be blocked. + /// + public bool IsBlocked { get; private set; } + + /// + /// Gets or sets the ID of the currently focused frame in the browser. + /// + public string FocusedFrame { get; set; } + + /// + /// Gets or sets the implicit wait timeout in milliseconds. + /// + public int ImplicitWaitTimeout { get; set; } + + /// + /// Gets or sets the asynchronous script timeout in milliseconds. + /// + public int AsyncScriptTimeout { get; set; } + + /// + /// Gets or sets the page load timeout in milliseconds. + /// + public int PageLoadTimeout { get; set; } + + /// + /// Creates a serializable object for the currently focused frame. + /// + /// A + /// Dictionary{string, object} + /// + /// representing the currently focused + /// frame that can be serialized into a format the atoms will expect. + public Dictionary CreateFrameObject() + { + if (string.IsNullOrEmpty(this.FocusedFrame)) + { + return null; + } + + var returnValue = new Dictionary(); + returnValue[WindowObjectKey] = this.FocusedFrame; + return returnValue; + } + + /// + /// Clears the alert status of the driver. + /// + public void ClearAlertStatus() + { + this.IsBlocked = false; + this.AlertType = string.Empty; + this.AlertText = string.Empty; + } + + private void BrowserNavigationStartingEventHandler(object sender, WebViewNavigationStartingEventArgs e) + { + this.MouseState.Clear(); + var clientXY = new Dictionary(); + clientXY["x"] = 0; + clientXY["y"] = 0; + this.MouseState["clientXY"] = clientXY; + this.MouseState["element"] = null; + } + + private void BrowserScriptNotifyEventHandler(object sender, NotifyEventArgs e) + { + if (!this.IsBlocked) + { + var valueParts = e.Value.Split(new[] { ':' }, 2); + this.AlertType = valueParts[0]; + this.AlertText = valueParts[1]; + this.IsBlocked = true; + } + else + { + this.ClearAlertStatus(); + } + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/ClickElementCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/ClickElementCommandHandler.cs new file mode 100644 index 0000000..7890771 --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/ClickElementCommandHandler.cs @@ -0,0 +1,59 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System; + using System.Collections.Generic; + + using Web; + + /// + /// Provides handling for the click element command. + /// + internal class ClickElementCommandHandler : WebCommandAdapterHandler + { + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + var clickAtom = this.Atom; + + object element; + if (!parameters.TryGetValue("ID", out element)) + { + return Response.CreateMissingParametersResponse("ID"); + } + + this.SetAtomExecutionTimeout(TimeSpan.FromMilliseconds(100)); + var result = this.EvaluateAtom(environment, clickAtom, element, environment.CreateFrameObject()); + if (string.IsNullOrEmpty(result)) + { + return Response.CreateSuccessResponse(); + } + + return Response.FromJson(result); + } + } +} \ No newline at end of file diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/FindElementCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/FindElementCommandHandler.cs new file mode 100644 index 0000000..33e2c9f --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/FindElementCommandHandler.cs @@ -0,0 +1,89 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System; + using System.Collections.Generic; + using System.Globalization; + + using Winium.Mobile.Common; + + /// + /// Provides handling for the find element command. + /// + internal class FindElementCommandHandler : WebCommandAdapterHandler + { + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + var findElementAtom = this.Atom; + + object mechanism; + if (!parameters.TryGetValue("using", out mechanism)) + { + return Response.CreateMissingParametersResponse("using"); + } + + object criteria; + if (!parameters.TryGetValue("value", out criteria)) + { + return Response.CreateMissingParametersResponse("value"); + } + + Response response; + DateTime timeout = DateTime.Now.AddMilliseconds(environment.ImplicitWaitTimeout); + do + { + var result = this.EvaluateAtom(environment, findElementAtom, mechanism, criteria, null, environment.CreateFrameObject()); + response = Response.FromJson(result); + if (response.Status == ResponseStatus.Success) + { + // Return early for success + var foundElement = response.Value as Dictionary; + if (foundElement != null && foundElement.ContainsKey(CommandEnvironment.ElementObjectKey)) + { + return response; + } + } + else if (response.Status != ResponseStatus.NoSuchElement) + { + if (mechanism.ToString().ToUpperInvariant() != "XPATH" && response.Status == ResponseStatus.InvalidSelector) + { + continue; + } + + // Also return early for response of not NoSuchElement. + return response; + } + } + while (DateTime.Now < timeout); + + string errorMessage = string.Format(CultureInfo.InvariantCulture, "No element found for {0} == '{1}'", mechanism.ToString(), criteria.ToString()); + response = Response.CreateErrorResponse(ResponseStatus.NoSuchElement, errorMessage); + return response; + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetActiveElementCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetActiveElementCommandHandler.cs new file mode 100644 index 0000000..9aa90c1 --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetActiveElementCommandHandler.cs @@ -0,0 +1,43 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System.Collections.Generic; + + /// + /// Provides handling for the get active element command. + /// + internal class GetActiveElementCommandHandler : WebCommandAdapterHandler + { + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + var activeElementAtom = this.Atom; + var result = this.EvaluateAtom(environment, activeElementAtom); + return Response.FromJson(result); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetElementTextCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetElementTextCommandHandler.cs new file mode 100644 index 0000000..49ed70b --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetElementTextCommandHandler.cs @@ -0,0 +1,49 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System.Collections.Generic; + + /// + /// Provides handling for the get element text command. + /// + internal class GetElementTextCommandHandler : WebCommandAdapterHandler + { + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + var getTextAtom = this.Atom; + object element; + if (!parameters.TryGetValue("ID", out element)) + { + return Response.CreateMissingParametersResponse("ID"); + } + + var result = this.EvaluateAtom(environment, getTextAtom, element, environment.CreateFrameObject()); + return Response.FromJson(result); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetPageSourceCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetPageSourceCommandHandler.cs new file mode 100644 index 0000000..33faff9 --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetPageSourceCommandHandler.cs @@ -0,0 +1,15 @@ +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System.Collections.Generic; + + internal class GetPageSourceCommandHandler : WebCommandAdapterHandler + { + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + var executeScriptAtom = this.Atom; + string script = "return document.documentElement.outerHTML;"; + string result = this.EvaluateAtom(environment, executeScriptAtom, script, new object[] { }, environment.CreateFrameObject()); + return Response.FromJson(result); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetTitleCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetTitleCommandHandler.cs new file mode 100644 index 0000000..2669f8f --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GetTitleCommandHandler.cs @@ -0,0 +1,42 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System.Collections.Generic; + + /// + /// Provides handling for the get title command. + /// + internal class GetTitleCommandHandler : WebCommandAdapterHandler + { + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + var title = this.EvaluateAtom(environment, "function() { if(window && window.top && window.top.document) { return window.top.document.title; } return ''; }"); + return Response.CreateSuccessResponse(title); + } + } +} \ No newline at end of file diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/GoToUrlCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GoToUrlCommandHandler.cs new file mode 100644 index 0000000..5c992ae --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/GoToUrlCommandHandler.cs @@ -0,0 +1,143 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + #region + + using System; + using System.Collections.Generic; + using System.Globalization; + + using Windows.UI.Core; + + using Winium.Mobile.Common; + + #endregion + + /// + /// Provides handling for the go to URL command. + /// + internal class GoToUrlCommandHandler : WebCommandAdapterHandler + { + private const string AlertHandler = @" +function() { + window.__wd_alert = window.alert; + window.alert = function(text) { + window.external.notify('alert:' + text); + window.__wd_alert(text); + window.external.notify('clear'); + }; + window.__wd_confirm = window.confirm; + window.confirm = function(text) { + window.external.notify('confirm:' + text); + var confirmValue = window.__wd_confirm(text); + window.external.notify('clear'); + return confirmValue; + }; +}"; + + private bool handleAlerts = false; + + private int retryCount = 3; + + /// + /// Executes the command. + /// + /// The to use in executing the command. + /// The containing the command parameters. + /// The JSON serialized string representing the command response. + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + object url; + if (!parameters.TryGetValue("url", out url)) + { + return Response.CreateMissingParametersResponse("url"); + } + + Uri targetUri = null; + if (!Uri.TryCreate(url.ToString(), UriKind.Absolute, out targetUri)) + { + return Response.CreateErrorResponse( + ResponseStatus.UnknownError, + string.Format(CultureInfo.InvariantCulture, "Could not create valie URL from {0}", url.ToString())); + } + + var timeoutInMilliseconds = environment.PageLoadTimeout; + if (timeoutInMilliseconds < 0) + { + timeoutInMilliseconds = 15000; + } + else + { + // If a page load timeout has been set, don't retry the page load. + this.retryCount = 1; + } + + var monitor = new WebBrowserNavigationMonitor(environment); + for (var retries = 0; retries < this.retryCount; retries++) + { + monitor.MonitorNavigation( + () => + { +#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed + + environment.Browser.Dispatcher.RunAsync( + CoreDispatcherPriority.Normal, + () => + { + environment.Browser.Navigate(targetUri); + + }); + +#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed + }); + + if ((monitor.IsSuccessfullyNavigated && monitor.IsLoadCompleted) || monitor.IsNavigationError) + { + break; + } + } + + if (monitor.IsNavigationTimedOut) + { + return Response.CreateErrorResponse(ResponseStatus.Timeout, "Timed out loading page"); + } + + if (!monitor.IsNavigationError) + { + environment.FocusedFrame = string.Empty; + } + + if (this.handleAlerts) + { + this.EvaluateAtom(environment, AlertHandler); + } + + return Response.CreateSuccessResponse(); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/SendKeysCommandHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/SendKeysCommandHandler.cs new file mode 100644 index 0000000..61ae2a9 --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/SendKeysCommandHandler.cs @@ -0,0 +1,71 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System.Collections.Generic; + using System.Linq; + + using Newtonsoft.Json.Linq; + + using Winium.StoreApps.InnerServer.Web; + + /// + /// Provides handling for the send keys to element command. + /// + internal class SendKeysCommandHandler : WebCommandAdapterHandler + { + protected override Response Execute(CommandEnvironment environment, Dictionary parameters) + { + object element; + if (!parameters.TryGetValue("ID", out element)) + { + return Response.CreateMissingParametersResponse("ID"); + } + + object keys; + if (!parameters.TryGetValue("value", out keys)) + { + return Response.CreateMissingParametersResponse("value"); + } + + var keysAsString = string.Empty; + //var keysAsArray = keys as object[]; + var keysAsArray = keys as JArray; + if (keysAsArray != null) + { + keysAsString = keysAsArray.Cast().Aggregate(keysAsString, (current, key) => current + key.ToString()); + } + + var typeAtom = this.Atom; + + // Normalize line endings to single line feed, as that's what the atom expects. + keysAsString = keysAsString.Replace("\r\n", "\n"); + string result = this.EvaluateAtom(environment, typeAtom, element, keysAsString, environment.CreateFrameObject()); + return Response.FromJson(result); + } + } +} \ No newline at end of file diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Commands/WebCommandAdapterHandler.cs b/Winium/Winium.StoreApps.InnerServer/Web/Commands/WebCommandAdapterHandler.cs new file mode 100644 index 0000000..abbc403 --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Commands/WebCommandAdapterHandler.cs @@ -0,0 +1,172 @@ +namespace Winium.StoreApps.InnerServer.Web.Commands +{ + using System; + using System.Collections.Generic; + using System.Linq; + using System.Text; + using System.Threading; + + using Windows.UI.Core; + + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + + using Mobile.Common; + using global::Winium.Mobile.Common.Exceptions; + using InnerServer.Commands; + using global::Winium.StoreApps.InnerServer.Web; + + internal abstract class WebCommandAdapterHandler : ICommandBase + { + private TimeSpan atomExecutionTimeout = TimeSpan.FromMilliseconds(-1); + + public CommandEnvironment Context { get; set; } + + public string Atom { get; set; } + + public Automator Automator { get; set; } + + public IDictionary Parameters { get; set; } + + public string Session { get; set; } + + protected abstract Response Execute(CommandEnvironment enviroment, Dictionary parameters); + + private string DoImpl() + { + var parameters = this.Parameters.ToDictionary(x => x.Key, x => x.Value as object); + if (this.Parameters.ContainsKey("ID")) + { + parameters["ID"] = new Dictionary { { "ELEMENT", this.Parameters["ID"].ToObject() } }; + } + var rv = this.Execute(this.Context, parameters); + + return this.JsonResponse(rv.Status, rv.Value); + } + + public string Do() + { + if (this.Automator == null) + { + throw new InvalidOperationException("Automator must be set before Do() is called"); + } + + string response; + try + { + response = this.DoImpl(); + } + catch (AutomationException exception) + { + response = this.JsonResponse(exception.Status, exception); + } + catch (Exception exception) + { + response = this.JsonResponse(ResponseStatus.UnknownError, exception); + } + + return response; + } + + private static string CreateArgumentString(IEnumerable args) + { + var builder = new StringBuilder(); + foreach (var arg in args) + { + if (builder.Length > 0) + { + builder.Append(","); + } + + var argAsString = JsonConvert.SerializeObject(arg); + builder.Append(argAsString); + } + + return builder.ToString(); + } + + protected string EvaluateAtom(CommandEnvironment environment, string executedAtom, params object[] args) + { + var browser = environment.Browser; + var argumentString = CreateArgumentString(args); + + var script = "(" + executedAtom + ")(" + argumentString + ");"; + + string result = null; + + var sync = new ManualResetEvent(false); + + environment.Browser.Dispatcher.RunAsync( + CoreDispatcherPriority.Normal, + () => + { + var op = browser.InvokeScriptAsync("eval", new[] { script }); + op.Completed = (info, status) => + { + try + { + result = op.GetResults(); + } + finally + { + sync.Set(); + } + }; + }); + + if (!sync.WaitOne(this.atomExecutionTimeout)) + { + throw new TimeoutException(); + } + + return result; + + // TODO why https://github.com/forcedotcom/windowsphonedriver used to separate invokes? + //var script = "window.top.__wd_fn_result = (" + executedAtom + ")(" + argumentString + ");"; + //var result = string.Empty; + //var synchronizer = new ManualResetEvent(false); + //browser.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, + // () => + // { + // try + // { + // browser.InvokeScriptAsync("eval", new []{script}).AsTask().Wait(); + // result = browser.InvokeScriptAsync("eval", new []{"window.top.__wd_fn_result"}).AsTask().Result; + // } + // catch (Exception ex) + // { + // throw new AutomationException(string.Format( + // CultureInfo.InvariantCulture, + // "Unexpected exception {0}: {1}", + // ex.GetType(), + // ex.Message), ResponseStatus.UnknownError); + // } + // finally + // { + // synchronizer.Set(); + // } + // }).AsTask().Wait(this.atomExecutionTimeout); + + //return result; + } + + /// + /// Sets the timeout for execution of an atom. + /// + /// The representing the timeout for the atom execution. + protected void SetAtomExecutionTimeout(TimeSpan timeout) + { + this.atomExecutionTimeout = timeout; + } + + private string JsonResponse(ResponseStatus status = ResponseStatus.Success, object value = null) + { + if (status != ResponseStatus.Success && value == null) + { + value = string.Format("WebDriverException {0}", Enum.GetName(typeof(ResponseStatus), status)); + } + + return JsonConvert.SerializeObject(new JsonResponse(this.Session, status, value), Formatting.Indented); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/Response.cs b/Winium/Winium.StoreApps.InnerServer/Web/Response.cs new file mode 100644 index 0000000..0b210df --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/Response.cs @@ -0,0 +1,129 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web +{ + using System.Collections.Generic; + + using Newtonsoft.Json; + + using Winium.Mobile.Common; + using Winium.StoreApps.InnerServer; + + /// + /// Represents a command response. + /// + public class Response + { + /// + /// Gets or sets the status of the response. + /// + [JsonProperty(PropertyName = "status")] + public ResponseStatus Status { get; set; } + + /// + /// Gets or sets the session ID of the command. + /// + [JsonProperty("sessionId", NullValueHandling = NullValueHandling.Ignore)] + public string SessionId { get; set; } + + /// + /// Gets or sets the value of the response. + /// + [JsonProperty(PropertyName = "value", NullValueHandling = NullValueHandling.Include)] + [JsonConverter(typeof(ProtocolValueJsonConverter))] + public object Value { get; set; } + + /// + /// Creates a response from a serialized JSON string. + /// + /// The serialized JSON string containing the response. + /// The response object. + public static Response FromJson(string jsonResponse) + { + Response response = JsonConvert.DeserializeObject(jsonResponse); + return response; + } + + /// + /// Creates a success response. + /// + /// The value contained by the response. + /// The response indicating a successful command execution. + public static Response CreateSuccessResponse(object responseValue = null) + { + Response response = new Response(); + if (responseValue == null) + { + responseValue = new Dictionary(); + } + else + { + response.Value = responseValue; + } + + return response; + } + + /// + /// Creates an error response with the specified error code and message. + /// + /// The error code of the response. + /// The error message containing information about the error. + /// The response indicating an unsuccessful command execution. + public static Response CreateErrorResponse(ResponseStatus errorCode, string errorMessage) + { + Response response = new Response(); + response.Status = errorCode; + Dictionary errorDetails = new Dictionary(); + errorDetails["message"] = errorMessage; + response.Value = errorDetails; + return response; + } + + /// + /// Creates an error response when a command is missing values for its parameters. + /// + /// The list of missing parameters. + /// The response indicating an unsuccessful command execution. + public static Response CreateMissingParametersResponse(string missingParameters) + { + Response response = new Response(); + response.Status = ResponseStatus.MissingParameters; + response.Value = missingParameters; + return response; + } + + /// + /// Serializes this to JSON. + /// + /// The JSON-serialized response. + public string ToJson() + { + return JsonConvert.SerializeObject(this); + } + } +} diff --git a/Winium/Winium.StoreApps.InnerServer/Web/WebBrowserNavigationMonitor.cs b/Winium/Winium.StoreApps.InnerServer/Web/WebBrowserNavigationMonitor.cs new file mode 100644 index 0000000..92a03da --- /dev/null +++ b/Winium/Winium.StoreApps.InnerServer/Web/WebBrowserNavigationMonitor.cs @@ -0,0 +1,130 @@ +// +// +// Copyright (c) 2014 Salesforce.com, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the +// following disclaimer in the documentation and/or other materials provided with the distribution. +// +// Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +namespace Winium.StoreApps.InnerServer.Web +{ + using System; + using System.Threading.Tasks; + + using Windows.UI.Core; + using Windows.UI.Xaml.Controls; + using Windows.UI.Xaml.Navigation; + + /// + /// Monitors navigation within the driver's browser. + /// + internal class WebBrowserNavigationMonitor + { + private readonly CommandEnvironment environment; + + /// + /// Initializes a new instance of the class. + /// + /// The in which the navigation should be monitored. + public WebBrowserNavigationMonitor(CommandEnvironment environment) + { + this.environment = environment; + } + + /// + /// Gets a value indicating whether the navigation was successfully completed. + /// + public bool IsSuccessfullyNavigated { get; private set; } = false; + + /// + /// Gets a value indicating whether the page load was successfully completed. + /// + public bool IsLoadCompleted { get; private set; } = false; + + /// + /// Gets a value indicating whether an error was encountered during the navigation. + /// + public bool IsNavigationError { get; private set; } = false; + + /// + /// Gets a value indicating whether an the navigation timed out. + /// + public bool IsNavigationTimedOut { get; private set; } = false; + + /// + /// Monitors a navigation event. + /// + /// The causing the navigation. + public void MonitorNavigation(Action navigationAction) + { + var ignoreTimeout = this.environment.PageLoadTimeout < 0; + var timedOut = true; + var timeout = TimeSpan.FromMilliseconds(this.environment.PageLoadTimeout); + var endTime = DateTime.Now.Add(timeout); + this.IsLoadCompleted = false; + this.IsSuccessfullyNavigated = false; + this.IsNavigationError = false; + + this.environment.Browser.Dispatcher.RunAsync( + CoreDispatcherPriority.Normal, + () => + { + this.environment.Browser.NavigationCompleted += this.BrowserOnNavigationCompleted; + }).AsTask().Wait(); + + navigationAction(); + + while (ignoreTimeout || DateTime.Now < endTime) + { + if ((this.IsSuccessfullyNavigated && this.IsLoadCompleted) || this.IsNavigationError) + { + timedOut = false; + break; + } + + Task.Delay(100).Wait(); + } + + this.environment.Browser.Dispatcher.RunAsync( + CoreDispatcherPriority.Normal, + () => + { + this.environment.Browser.NavigationCompleted -= this.BrowserOnNavigationCompleted; + }).AsTask().Wait(); + + this.IsNavigationTimedOut = timedOut; + } + + private void BrowserOnNavigationCompleted(WebView sender, WebViewNavigationCompletedEventArgs args) + { + if (args.IsSuccess) + { + this.IsSuccessfullyNavigated = true; + this.IsLoadCompleted = true; + this.IsNavigationError = false; + } + else + { + this.IsNavigationError = true; + } + } + } +} \ No newline at end of file diff --git a/Winium/Winium.StoreApps.InnerServer/Winium.StoreApps.InnerServer.csproj b/Winium/Winium.StoreApps.InnerServer/Winium.StoreApps.InnerServer.csproj index f0f0aef..3eb2134 100644 --- a/Winium/Winium.StoreApps.InnerServer/Winium.StoreApps.InnerServer.csproj +++ b/Winium/Winium.StoreApps.InnerServer/Winium.StoreApps.InnerServer.csproj @@ -42,13 +42,17 @@ + + + + @@ -81,6 +85,18 @@ + + + + + + + + + + + + diff --git a/Winium/Winium.sln b/Winium/Winium.sln index 061654d..878e06c 100644 --- a/Winium/Winium.sln +++ b/Winium/Winium.sln @@ -54,6 +54,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestApp.Silverlight", "Test EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp", "TestApp.Silverlight\TestApp.csproj", "{8A202F60-6343-4FEF-B838-FB7C668BA29D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebViewApp", "WebViewApp\WebViewApp.csproj", "{D305A69D-1852-4CE9-B0A6-90B610A66E4A}" +EndProject Global GlobalSection(SharedMSBuildProjectFiles) = preSolution TestApp.StoreApps\TestApp.Shared\TestApp.Shared.projitems*{10a0b15d-ca68-4a4f-83bc-639a62b5ef1e}*SharedItemsImports = 4 @@ -123,6 +125,12 @@ Global {8A202F60-6343-4FEF-B838-FB7C668BA29D}.Release|Any CPU.ActiveCfg = Release|Any CPU {8A202F60-6343-4FEF-B838-FB7C668BA29D}.Release|Any CPU.Build.0 = Release|Any CPU {8A202F60-6343-4FEF-B838-FB7C668BA29D}.Release|Any CPU.Deploy.0 = Release|Any CPU + {D305A69D-1852-4CE9-B0A6-90B610A66E4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D305A69D-1852-4CE9-B0A6-90B610A66E4A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D305A69D-1852-4CE9-B0A6-90B610A66E4A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {D305A69D-1852-4CE9-B0A6-90B610A66E4A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D305A69D-1852-4CE9-B0A6-90B610A66E4A}.Release|Any CPU.Build.0 = Release|Any CPU + {D305A69D-1852-4CE9-B0A6-90B610A66E4A}.Release|Any CPU.Deploy.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE