selenium-webdriver 4.32.0 → 4.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES +63 -5
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/NOTICE +1 -1
- data/README.md +1 -1
- data/bin/linux/selenium-manager +0 -0
- data/bin/macos/selenium-manager +0 -0
- data/bin/windows/selenium-manager.exe +0 -0
- data/lib/selenium/server.rb +29 -4
- data/lib/selenium/webdriver/atoms/findElements.js +63 -49
- data/lib/selenium/webdriver/atoms/getAttribute.js +17 -6
- data/lib/selenium/webdriver/atoms/isDisplayed.js +34 -23
- data/lib/selenium/webdriver/atoms.rb +2 -2
- data/lib/selenium/webdriver/bidi/browser.rb +71 -0
- data/lib/selenium/webdriver/bidi/browsing_context.rb +3 -2
- data/lib/selenium/webdriver/bidi/log_handler.rb +5 -0
- data/lib/selenium/webdriver/bidi/network/cookies.rb +9 -8
- data/lib/selenium/webdriver/bidi/network/credentials.rb +4 -0
- data/lib/selenium/webdriver/bidi/network/headers.rb +4 -0
- data/lib/selenium/webdriver/bidi/network/intercepted_auth.rb +4 -0
- data/lib/selenium/webdriver/bidi/network/intercepted_item.rb +4 -0
- data/lib/selenium/webdriver/bidi/network/intercepted_request.rb +20 -4
- data/lib/selenium/webdriver/bidi/network/intercepted_response.rb +24 -6
- data/lib/selenium/webdriver/bidi/network/url_pattern.rb +5 -1
- data/lib/selenium/webdriver/bidi/network.rb +18 -9
- data/lib/selenium/webdriver/bidi/session.rb +4 -0
- data/lib/selenium/webdriver/bidi.rb +1 -1
- data/lib/selenium/webdriver/chrome/driver.rb +4 -3
- data/lib/selenium/webdriver/chromium/options.rb +2 -2
- data/lib/selenium/webdriver/common/child_process.rb +4 -0
- data/lib/selenium/webdriver/common/driver.rb +8 -13
- data/lib/selenium/webdriver/common/driver_extensions/has_file_downloads.rb +7 -1
- data/lib/selenium/webdriver/common/error.rb +10 -3
- data/lib/selenium/webdriver/common/interactions/key_actions.rb +4 -4
- data/lib/selenium/webdriver/common/interactions/pointer_actions.rb +10 -10
- data/lib/selenium/webdriver/common/interactions/pointer_input.rb +6 -6
- data/lib/selenium/webdriver/common/keys.rb +9 -0
- data/lib/selenium/webdriver/common/local_driver.rb +11 -1
- data/lib/selenium/webdriver/common/manager.rb +2 -0
- data/lib/selenium/webdriver/common/options.rb +30 -11
- data/lib/selenium/webdriver/common/platform.rb +1 -3
- data/lib/selenium/webdriver/common/proxy.rb +1 -0
- data/lib/selenium/webdriver/common/service.rb +10 -10
- data/lib/selenium/webdriver/common/service_manager.rb +29 -3
- data/lib/selenium/webdriver/common/socket_poller.rb +1 -1
- data/lib/selenium/webdriver/common/virtual_authenticator/credential.rb +4 -4
- data/lib/selenium/webdriver/common/wait.rb +5 -2
- data/lib/selenium/webdriver/common/websocket_connection.rb +73 -37
- data/lib/selenium/webdriver/common/zipper.rb +12 -2
- data/lib/selenium/webdriver/devtools.rb +1 -1
- data/lib/selenium/webdriver/edge/driver.rb +4 -3
- data/lib/selenium/webdriver/firefox/driver.rb +4 -3
- data/lib/selenium/webdriver/firefox/service.rb +2 -2
- data/lib/selenium/webdriver/ie/driver.rb +4 -3
- data/lib/selenium/webdriver/remote/bidi_bridge.rb +4 -2
- data/lib/selenium/webdriver/remote/bridge.rb +12 -4
- data/lib/selenium/webdriver/remote/driver.rb +2 -2
- data/lib/selenium/webdriver/remote/http/common.rb +32 -0
- data/lib/selenium/webdriver/safari/driver.rb +4 -3
- data/lib/selenium/webdriver/support/block_event_listener.rb +2 -2
- data/lib/selenium/webdriver/support/event_firing_bridge.rb +3 -3
- data/lib/selenium/webdriver/version.rb +1 -1
- data/lib/selenium/webdriver.rb +5 -6
- data/selenium-webdriver.gemspec +2 -2
- metadata +7 -12
- data/lib/selenium/webdriver/bidi/log/base_log_entry.rb +0 -35
- data/lib/selenium/webdriver/bidi/log/console_log_entry.rb +0 -35
- data/lib/selenium/webdriver/bidi/log/filter_by.rb +0 -40
- data/lib/selenium/webdriver/bidi/log/generic_log_entry.rb +0 -33
- data/lib/selenium/webdriver/bidi/log/javascript_log_entry.rb +0 -33
- data/lib/selenium/webdriver/bidi/log_inspector.rb +0 -147
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ba40ae3f831d1c9a379d4799c59226f2edf5a0c6429b8cb55a8e95daed84231
|
|
4
|
+
data.tar.gz: b03c61460a257c5d028575607a59e41819b17e2baf47308e19086cd7194b70d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ac2c28f5f6c9006fee5bd5f59f8099596cb9773c42f40498ffa03bf9ede46bc1255cd1cdbdbb72ed6af9721c3e68987feb39859732ade34bed6f3dd94251d4c
|
|
7
|
+
data.tar.gz: f98a8768f75757c2b35a296b5c4f2e4dd4e64d864c4e05b1399695246919047c2cd5cfb8baf4f668efae584afafeda948db17743f9c6baecf5b9959bb6ff6df7
|
data/CHANGES
CHANGED
|
@@ -1,3 +1,61 @@
|
|
|
1
|
+
4.40.0 (2026-01-18)
|
|
2
|
+
=========================
|
|
3
|
+
* add synchronization and error handling for socket interactions (#16487)
|
|
4
|
+
* mark low level bidi implementation as private api (#16475)
|
|
5
|
+
* ensure driver process is always stopped (#15635)
|
|
6
|
+
* create user-friendly method for enabling bidi (#14284)
|
|
7
|
+
* Add force encoding to remove warnings caused by json 3.0 (#16728)
|
|
8
|
+
* use SE_DEBUG to enable debugging (#16816)
|
|
9
|
+
* ensure the grid is properly restarted in tests when there is a problem (#16842)
|
|
10
|
+
* wait for grid to be ready when starting server (#16896)
|
|
11
|
+
* check driver status endpoint rather than socket connection (#16877)
|
|
12
|
+
* [build] update ruby gems with bazel (#16924)
|
|
13
|
+
|
|
14
|
+
4.39.0 (2025-12-06)
|
|
15
|
+
=========================
|
|
16
|
+
* Add CDP for Chrome 143 and remove 140
|
|
17
|
+
|
|
18
|
+
4.38.0 (2025-10-24)
|
|
19
|
+
=========================
|
|
20
|
+
* Add CDP for Chrome 142 and remove 139
|
|
21
|
+
* Fix BiDi Network issue by removing nil values on network requests (#16442)
|
|
22
|
+
* Remove cruft from old CI environment (#16473)
|
|
23
|
+
* [bidi] remove deprecated classes for log inspector (#16474)
|
|
24
|
+
|
|
25
|
+
4.37.0 (2025-10-16)
|
|
26
|
+
=========================
|
|
27
|
+
* Add CDP for Chrome 141 and remove 138
|
|
28
|
+
* Update Chrome/Edge args for test environment (#16376)
|
|
29
|
+
* Remove `prism` dependency (#16437)
|
|
30
|
+
* Remove `json` version constraint (#16436)
|
|
31
|
+
|
|
32
|
+
4.36.0 (2025-09-18)
|
|
33
|
+
=========================
|
|
34
|
+
* Add CDP for Chrome 140 and remove 137
|
|
35
|
+
* [BiDi] Create browser module, added user context related methods (#15371)
|
|
36
|
+
* BiDi get client windows (#16211)
|
|
37
|
+
* Fix links to exception documentation on website (#16305)
|
|
38
|
+
* Update `unhandled_prompt_behavior` capability to support hash syntax (#16289)
|
|
39
|
+
|
|
40
|
+
4.35.0 (2025-08-12)
|
|
41
|
+
=========================
|
|
42
|
+
* Add CDP for Chrome 139 and remove 136
|
|
43
|
+
* Fix typos in javascript & rb (#16019)
|
|
44
|
+
* Allow to use `rubyzip` v3 (#16108)
|
|
45
|
+
|
|
46
|
+
4.34.0 (2025-06-29)
|
|
47
|
+
=========================
|
|
48
|
+
* Add CDP for Chrome 138 and remove 135
|
|
49
|
+
* Fix child process terminate method when a process is already terminated (#15789)
|
|
50
|
+
* Deprecate ftp proxy (#15926)
|
|
51
|
+
* Add macOS key mappings for Options and Function keys (#15959)
|
|
52
|
+
|
|
53
|
+
4.33.0 (2025-05-23)
|
|
54
|
+
=========================
|
|
55
|
+
* Add CDP for Chrome 137 and remove 134
|
|
56
|
+
* Let firefox choose the bidi port by default (#15727)
|
|
57
|
+
* Upgrade to Ruby 3.2
|
|
58
|
+
|
|
1
59
|
4.32.0 (2025-05-02)
|
|
2
60
|
=========================
|
|
3
61
|
* Add CDP for Chrome 136 and remove 133
|
|
@@ -1842,7 +1900,7 @@ Safari:
|
|
|
1842
1900
|
* Replace 'libwebsocket' with 'websocket' gem. This should ensure
|
|
1843
1901
|
support with recent Safari.
|
|
1844
1902
|
Other:
|
|
1845
|
-
* Fix Cygwin issue in PortProber/Firefox::
|
|
1903
|
+
* Fix Cygwin issue in PortProber/Firefox::Binary (#4963)
|
|
1846
1904
|
|
|
1847
1905
|
2.27.2 (2012-12-11)
|
|
1848
1906
|
===================
|
|
@@ -1932,7 +1990,7 @@ IE:
|
|
|
1932
1990
|
* Fix conflict with ActiveSupport's Object#load (#3819)
|
|
1933
1991
|
* IE:
|
|
1934
1992
|
* Default to standalone server executable, fall back to bundled DLLs.
|
|
1935
|
-
* The 'nativeEvents'
|
|
1993
|
+
* The 'nativeEvents' capability is exposed as :native_events in the Ruby client (mode still experimental).
|
|
1936
1994
|
* Firefox:
|
|
1937
1995
|
* Native events for Firefox 12.
|
|
1938
1996
|
* Native events retained for Firefox 3.x, 10 and 11.
|
|
@@ -2072,7 +2130,7 @@ IE:
|
|
|
2072
2130
|
===================
|
|
2073
2131
|
|
|
2074
2132
|
* Firefox:
|
|
2075
|
-
* Now supports up to Firefox 11 (for
|
|
2133
|
+
* Now supports up to Firefox 11 (for synthesized events)
|
|
2076
2134
|
* Implicit waits now change how long we wait for alerts. This
|
|
2077
2135
|
functionality will change in 2.16
|
|
2078
2136
|
* Fix scrolling issue (#2700)
|
|
@@ -2266,7 +2324,7 @@ IE:
|
|
|
2266
2324
|
2.1.0 (2011-07-18)
|
|
2267
2325
|
==================
|
|
2268
2326
|
|
|
2269
|
-
* Various
|
|
2327
|
+
* Various improvements to the IE driver (#2049, #1870)
|
|
2270
2328
|
* Atoms fixes (#1776, #1972).
|
|
2271
2329
|
* Synthetic mouse clicks do not propagate errors in onmouseover.
|
|
2272
2330
|
|
|
@@ -2416,7 +2474,7 @@ IE:
|
|
|
2416
2474
|
* Cookie expiration dates are now handled correctly (#730)
|
|
2417
2475
|
* Make Driver#bridge private, since this seems to be a common cause of confusion.
|
|
2418
2476
|
* Add {Element,Remote::Capabilities}#as_json for Rails 3 (http://jonathanjulian.com/2010/04/rails-to_json-or-as_json/)
|
|
2419
|
-
* User can configure path to
|
|
2477
|
+
* User can configure path to executables with {Firefox,Chrome}.path = "/some/path"
|
|
2420
2478
|
* Added "chromium" as a possible name for the Chrome binary (#769)
|
|
2421
2479
|
* Correctly set the HTTP client timeout (#768)
|
|
2422
2480
|
* switch_to.window with block now handles exceptions and non-local returns.
|
data/Gemfile
CHANGED
|
@@ -9,4 +9,4 @@ end
|
|
|
9
9
|
gem 'activesupport', '~> 7.0', require: false, platforms: %i[mri mingw x64_mingw]
|
|
10
10
|
gem 'curb', '~> 1.0.5', require: false, platforms: %i[mri mingw x64_mingw]
|
|
11
11
|
gem 'debug', '~> 1.7', require: false, platforms: %i[mri mingw x64_mingw]
|
|
12
|
-
gem 'steep', '~> 1.
|
|
12
|
+
gem 'steep', '~> 1.10.0', require: false, platforms: %i[mri mingw x64_mingw]
|
data/LICENSE
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
same "printed page" as the copyright notice for easier
|
|
188
188
|
identification within third-party archives.
|
|
189
189
|
|
|
190
|
-
Copyright
|
|
190
|
+
Copyright 2026 Software Freedom Conservancy (SFC)
|
|
191
191
|
|
|
192
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
193
|
you may not use this file except in compliance with the License.
|
data/NOTICE
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Copyright 2011-
|
|
1
|
+
Copyright 2011-2026 Software Freedom Conservancy
|
|
2
2
|
Copyright 2004-2011 Selenium committers
|
data/README.md
CHANGED
data/bin/linux/selenium-manager
CHANGED
|
Binary file
|
data/bin/macos/selenium-manager
CHANGED
|
Binary file
|
|
Binary file
|
data/lib/selenium/server.rb
CHANGED
|
@@ -21,6 +21,7 @@ require 'selenium/webdriver/common/child_process'
|
|
|
21
21
|
require 'selenium/webdriver/common/port_prober'
|
|
22
22
|
require 'selenium/webdriver/common/socket_poller'
|
|
23
23
|
require 'net/http'
|
|
24
|
+
require 'json'
|
|
24
25
|
|
|
25
26
|
module Selenium
|
|
26
27
|
#
|
|
@@ -203,7 +204,7 @@ module Selenium
|
|
|
203
204
|
|
|
204
205
|
def start
|
|
205
206
|
process.start
|
|
206
|
-
|
|
207
|
+
poll_for_ready
|
|
207
208
|
|
|
208
209
|
process.wait unless @background
|
|
209
210
|
end
|
|
@@ -219,6 +220,20 @@ module Selenium
|
|
|
219
220
|
"http://#{@host}:#{@port}/wd/hub"
|
|
220
221
|
end
|
|
221
222
|
|
|
223
|
+
def status_ok?
|
|
224
|
+
return false unless @process&.alive? && socket_connected?
|
|
225
|
+
|
|
226
|
+
Net::HTTP.start(@host, @port, open_timeout: 2, read_timeout: 2) do |http|
|
|
227
|
+
response = http.get('/status')
|
|
228
|
+
return false unless response.is_a?(Net::HTTPSuccess)
|
|
229
|
+
|
|
230
|
+
status = JSON.parse(response.body)
|
|
231
|
+
status.dig('value', 'ready') == true
|
|
232
|
+
end
|
|
233
|
+
rescue StandardError
|
|
234
|
+
false
|
|
235
|
+
end
|
|
236
|
+
|
|
222
237
|
def <<(arg)
|
|
223
238
|
if arg.is_a?(Array)
|
|
224
239
|
@additional_args += arg
|
|
@@ -257,10 +272,20 @@ module Selenium
|
|
|
257
272
|
end
|
|
258
273
|
end
|
|
259
274
|
|
|
260
|
-
def
|
|
261
|
-
|
|
275
|
+
def poll_for_ready
|
|
276
|
+
start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
277
|
+
loop do
|
|
278
|
+
return if status_ok?
|
|
279
|
+
|
|
280
|
+
elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time
|
|
281
|
+
raise Error, "remote server not ready in #{@timeout} seconds" if elapsed > @timeout
|
|
282
|
+
|
|
283
|
+
sleep 0.5
|
|
284
|
+
end
|
|
285
|
+
end
|
|
262
286
|
|
|
263
|
-
|
|
287
|
+
def socket_connected?
|
|
288
|
+
@socket_connected ||= socket.connected?
|
|
264
289
|
end
|
|
265
290
|
|
|
266
291
|
def poll_for_shutdown
|
|
@@ -1,54 +1,68 @@
|
|
|
1
|
-
function(){return (function(){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
function(){return (function(){/*
|
|
2
|
+
|
|
3
|
+
Copyright The Closure Library Authors.
|
|
4
|
+
Copyright The Closure Compiler Authors.
|
|
5
|
+
SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
var aa=aa||{},h=this||self;try{var ba=window}catch(a){ba=h};/*
|
|
8
|
+
|
|
9
|
+
Copyright The Closure Library Authors.
|
|
10
|
+
SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
*/
|
|
12
|
+
function k(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}
|
|
13
|
+
function ca(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
14
|
+
else if(b=="function"&&typeof a.call=="undefined")return"object";return b};function n(a,b){this.code=a;this.g=q[a]||r;this.message=b||"";a=this.g.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(b<0||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}(function(){function a(){}a.prototype=Error.prototype;n.prototype=new a;n.prototype.constructor=n})();var r="unknown error",q={15:"element not selectable",11:"element not visible"};q[31]=r;q[30]=r;q[24]="invalid cookie domain";
|
|
15
|
+
q[29]="invalid element coordinates";q[12]="invalid element state";q[32]="invalid selector";q[51]="invalid selector";q[52]="invalid selector";q[17]="javascript error";q[405]="unsupported operation";q[34]="move target out of bounds";q[27]="no such alert";q[7]="no such element";q[8]="no such frame";q[23]="no such window";q[28]="script timeout";q[33]="session not created";q[10]="stale element reference";q[21]="timeout";q[25]="unable to set cookie";q[26]="unexpected alert open";q[13]=r;q[9]="unknown command";var da;var ea=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},t=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},fa=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,
|
|
16
|
+
b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=typeof a==="string"?a.split(""):a,g=0;g<c;g++)if(g in f){var m=f[g];b.call(void 0,m,g,a)&&(d[e++]=m)}return d},ha=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=typeof a==="string"?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},ia=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,
|
|
17
|
+
d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},ja=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};
|
|
18
|
+
function ka(a,b){a:{for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return b<0?null:typeof a==="string"?a.charAt(b):a[b]}function la(a,b){a.sort(b||ma)}function ma(a,b){return a>b?1:a<b?-1:0};function na(a){var b=a.length-1;return b>=0&&a.indexOf(" ",b)==b}var y=aa.S&&String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
|
|
19
|
+
function oa(a,b){var c=0;a=y(String(a)).split(".");b=y(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(f[0].length==0&&g[0].length==0)break;c=pa(f[1].length==0?0:parseInt(f[1],10),g[1].length==0?0:parseInt(g[1],10))||pa(f[2].length==0,g[2].length==0)||pa(f[2],g[2]);f=f[3];g=g[3]}while(c==0)}return c}function pa(a,b){return a<b?-1:a>b?1:0};function z(){var a=h.navigator;return a&&(a=a.userAgent)?a:""}function A(a){return z().indexOf(a)!=-1};function qa(){return A("Firefox")||A("FxiOS")}function ra(){return(A("Chrome")||A("CriOS"))&&!A("Edge")||A("Silk")};function C(){return A("iPhone")&&!A("iPod")&&!A("iPad")};function sa(a,b){var c=ta;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var ua=A("Opera"),D=A("Trident")||A("MSIE"),va=A("Edge"),wa=A("Gecko")&&!(z().toLowerCase().indexOf("webkit")!=-1&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),ya=z().toLowerCase().indexOf("webkit")!=-1&&!A("Edge");function za(){var a=h.document;return a?a.documentMode:void 0}var E;
|
|
20
|
+
a:{var Aa="",Ba=function(){var a=z();if(wa)return/rv:([^\);]+)(\)|;)/.exec(a);if(va)return/Edge\/([\d\.]+)/.exec(a);if(D)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ya)return/WebKit\/(\S+)/.exec(a);if(ua)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ba&&(Aa=Ba?Ba[1]:"");if(D){var Ca=za();if(Ca!=null&&Ca>parseFloat(Aa)){E=String(Ca);break a}}E=Aa}var ta={};function Da(a){return sa(a,function(){return oa(E,a)>=0})}var Ea;if(h.document&&D){var Fa=za();Ea=Fa?Fa:parseInt(E,10)||void 0}else Ea=void 0;
|
|
21
|
+
var F=Ea;function G(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}G.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};G.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};G.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function H(a,b){this.width=a;this.height=b}H.prototype.aspectRatio=function(){return this.width/this.height};H.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};H.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};H.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ga(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function I(a){return a?new Ha(K(a)):da||(da=new Ha)}function Ia(a,b){return typeof b==="string"?a.getElementById(b):b}function Ja(a){for(;a&&a.nodeType!=1;)a=a.previousSibling;return a}function Ka(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function K(a){return a.nodeType==9?a:a.ownerDocument||a.document}
|
|
22
|
+
function La(a,b){a&&(a=a.parentNode);for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function Ha(a){this.g=a||h.document||document}
|
|
23
|
+
function L(a,b,c,d){a=a.g;d=d||a;var e=b&&b!="*"?String(b).toUpperCase():"";if(d.querySelectorAll&&d.querySelector&&(e||c))c=d.querySelectorAll(e+(c?"."+c:""));else if(c&&d.getElementsByClassName)if(b=d.getElementsByClassName(c),e){d={};for(var f=a=0,g;g=b[f];f++)e==g.nodeName&&(d[a++]=g);d.length=a;c=d}else c=b;else if(b=d.getElementsByTagName(e||"*"),c){d={};for(f=a=0;g=b[f];f++){e=g.className;var m;if(m=typeof e.split=="function")m=ea(e.split(/\s+/),c)>=0;m&&(d[a++]=g)}d.length=a;c=d}else c=b;
|
|
24
|
+
return c};var Ma={o:function(a){return!(!a.querySelectorAll||!a.querySelector)},j:function(a,b){if(!a)throw new n(32,"No class name specified");a=y(a);if(a.indexOf(" ")!==-1)throw new n(32,"Compound class names not permitted");if(Ma.o(b))try{return b.querySelector("."+a.replace(/\./g,"\\."))||null}catch(c){throw new n(32,"An invalid or illegal class name was specified");}a=L(I(b),"*",a,b);return a.length?a[0]:null},h:function(a,b){if(!a)throw new n(32,"No class name specified");a=y(a);if(a.indexOf(" ")!==-1)throw new n(32,
|
|
25
|
+
"Compound class names not permitted");if(Ma.o(b))try{return b.querySelectorAll("."+a.replace(/\./g,"\\."))}catch(c){throw new n(32,"An invalid or illegal class name was specified");}return L(I(b),"*",a,b)}};var Na=qa(),Qa=C()||A("iPod"),Ra=A("iPad"),Sa=A("Android")&&!(ra()||qa()||A("Opera")||A("Silk")),Ta=ra(),Ua=A("Safari")&&!(ra()||A("Coast")||A("Opera")||A("Edge")||A("Edg/")||A("OPR")||qa()||A("Silk")||A("Android"))&&!(C()||A("iPad")||A("iPod"));function M(a){return(a=a.exec(z()))?a[1]:""}(function(){if(Na)return M(/Firefox\/([0-9.]+)/);if(D||va||ua)return E;if(Ta){if(C()||A("iPad")||A("iPod")||A("Macintosh")){var a=M(/CriOS\/([0-9.]+)/);if(a)return a}return M(/Chrome\/([0-9.]+)/)}if(Ua&&!(C()||A("iPad")||A("iPod")))return M(/Version\/([0-9.]+)/);if(Qa||Ra){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(z()))return a[1]+"."+a[2]}else if(Sa)return(a=M(/Android\s+([0-9.]+)/))?a:M(/Version\/([0-9.]+)/);return""})();var Va=D&&!(Number(F)>=8),Wa=D&&!(Number(F)>=9);var N={j:function(a,b){if(typeof b.querySelector!=="function"&&D&&(D?oa(F,8)>=0:Da(8))&&!k(b.querySelector))throw Error("CSS selection is not supported");if(!a)throw new n(32,"No selector specified");a=y(a);try{var c=b.querySelector(a)}catch(d){throw new n(32,"An invalid or illegal selector was specified");}return c&&c.nodeType==1?c:null},h:function(a,b){if(typeof b.querySelectorAll!=="function"&&D&&(D?oa(F,8)>=0:Da(8))&&!k(b.querySelector))throw Error("CSS selection is not supported");if(!a)throw new n(32,
|
|
26
|
+
"No selector specified");a=y(a);try{return b.querySelectorAll(a)}catch(c){throw new n(32,"An invalid or illegal selector was specified");}}};var Xa={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
|
|
15
27
|
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
|
|
16
28
|
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
|
|
17
29
|
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
|
|
18
30
|
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
|
|
19
|
-
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Ya="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Za=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,$a=/^#(?:[0-9a-f]{3}){1,2}$/i,ab=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,bb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function O(a,b){b=b.toLowerCase();return"style"
|
|
20
|
-
function cb(a){var b=[];
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
b)
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
function
|
|
31
|
+
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Ya="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Za=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,$a=/^#(?:[0-9a-f]{3}){1,2}$/i,ab=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,bb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function O(a,b){b=b.toLowerCase();return b=="style"?cb(a.style.cssText):Va&&b=="value"&&P(a,"INPUT")?a.value:Wa&&a[b]===!0?String(a.getAttribute(b)):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var db=RegExp("[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)");
|
|
32
|
+
function cb(a){var b=[];t(a.split(db),function(c){var d=c.indexOf(":");d>0&&(c=[c.slice(0,d),c.slice(d+1)],c.length==2&&b.push(c[0].toLowerCase(),":",c[1],";"))});b=b.join("");return b=b.charAt(b.length-1)==";"?b:b+";"}function P(a,b){b&&typeof b!=="string"&&(b=b.toString());return a instanceof HTMLFormElement?!!a&&a.nodeType==1&&(!b||"FORM"==b):!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)};function eb(a,b,c,d){this.top=a;this.g=b;this.l=c;this.left=d}eb.prototype.ceil=function(){this.top=Math.ceil(this.top);this.g=Math.ceil(this.g);this.l=Math.ceil(this.l);this.left=Math.ceil(this.left);return this};eb.prototype.floor=function(){this.top=Math.floor(this.top);this.g=Math.floor(this.g);this.l=Math.floor(this.l);this.left=Math.floor(this.left);return this};
|
|
33
|
+
eb.prototype.round=function(){this.top=Math.round(this.top);this.g=Math.round(this.g);this.l=Math.round(this.l);this.left=Math.round(this.left);return this};function Q(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Q.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Q.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
|
|
34
|
+
Q.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var fb=typeof ShadowRoot==="function";function gb(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.nodeType!=9&&a.nodeType!=11;)a=a.parentNode;return P(a)?a:null}
|
|
35
|
+
function R(a,b){b=Ga(b);if(b=="float"||b=="cssFloat"||b=="styleFloat")b=Wa?"styleFloat":"cssFloat";a:{var c=b;var d=K(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||hb(a,b);if(a===null)a=null;else if(ea(Ya,b)>=0){b:{var e=a.match(ab);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),b>=0&&b<=255&&c>=0&&c<=255&&d>=0&&d<=255&&e>=0&&e<=1)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(bb))if(b=
|
|
36
|
+
Number(d[1]),c=Number(d[2]),d=Number(d[3]),b>=0&&b<=255&&c>=0&&c<=255&&d>=0&&d<=255){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=Xa[b.toLowerCase()];if(!c&&(c=b.charAt(0)=="#"?b:"#"+b,c.length==4&&(c=c.replace(Za,"#$1$1$2$2$3$3")),!$a.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}
|
|
37
|
+
function hb(a,b){var c=a.currentStyle||a.style,d=c[b];d===void 0&&typeof c.getPropertyValue==="function"&&(d=c.getPropertyValue(b));return d!="inherit"?d!==void 0?d:null:(a=gb(a))?hb(a,b):null}
|
|
38
|
+
function ib(a,b,c){function d(g){var m=S(g);if(m.height>0&&m.width>0)return!0;if(P(g,"PATH")&&(m.height>0||m.width>0))return g=R(g,"stroke-width"),!!g&&parseInt(g,10)>0;m=R(g,"visibility");return m!="collapse"&&m!="hidden"&&c(g)?R(g,"overflow")!="hidden"&&ia(g.childNodes,function(x){return x.nodeType==3?(x=x.nodeValue,/^[\s]*$/.test(x)&&/[\n\r\t]/.test(x)?!1:!0):P(x)&&d(x)}):!1}function e(g){return jb(g)==T&&ja(g.childNodes,function(m){return!P(m)||e(m)||!d(m)})}if(!P(a))throw Error("Argument to isShown must be of type Element");
|
|
39
|
+
if(P(a,"BODY"))return!0;if(P(a,"OPTION")||P(a,"OPTGROUP"))return a=La(a,function(g){return P(g,"SELECT")}),!!a&&ib(a,!0,c);var f=kb(a);if(f)return!!f.image&&f.rect.width>0&&f.rect.height>0&&ib(f.image,b,c);if(P(a,"INPUT")&&a.type.toLowerCase()=="hidden"||P(a,"NOSCRIPT"))return!1;f=R(a,"visibility");return f!="collapse"&&f!="hidden"&&c(a)&&(b||lb(a)!=0)&&d(a)?!e(a):!1}
|
|
40
|
+
function mb(a){function b(c){if(P(c)&&(R(c,"display")=="none"||R(c,"content-visibility")=="hidden"))return!1;var d;if((d=c.parentNode)&&d.shadowRoot&&c.assignedSlot!==void 0)d=c.assignedSlot?c.assignedSlot.parentNode:null;else if(c.getDestinationInsertionPoints){var e=c.getDestinationInsertionPoints();e.length>0&&(d=e[e.length-1])}if(fb&&d instanceof ShadowRoot){if(d.host.shadowRoot&&d.host.shadowRoot!==d)return!1;d=d.host}return!d||d.nodeType!=9&&d.nodeType!=11?d&&P(d,"DETAILS")&&!d.open&&!P(c,"SUMMARY")?
|
|
41
|
+
!1:!!d&&b(d):!0}return ib(a,!1,b)}var T="hidden";
|
|
42
|
+
function jb(a){function b(l){function p(xa){if(xa==g)return!0;var Oa=R(xa,"display");return Oa.lastIndexOf("inline",0)==0||Oa=="contents"||Pa=="absolute"&&R(xa,"position")=="static"?!1:!0}var Pa=R(l,"position");if(Pa=="fixed")return v=!0,l==g?null:g;for(l=gb(l);l&&!p(l);)l=gb(l);return l}function c(l){var p=l;if(x=="visible")if(l==g&&m)p=m;else if(l==m)return{x:"visible",y:"visible"};p={x:R(p,"overflow-x"),y:R(p,"overflow-y")};l==g&&(p.x=p.x=="visible"?"auto":p.x,p.y=p.y=="visible"?"auto":p.y);return p}
|
|
43
|
+
function d(l){if(l==g){var p=(new Ha(f)).g;l=p.scrollingElement?p.scrollingElement:ya||p.compatMode!="CSS1Compat"?p.body||p.documentElement:p.documentElement;p=p.parentWindow||p.defaultView;l=D&&p.pageYOffset!=l.scrollTop?new G(l.scrollLeft,l.scrollTop):new G(p.pageXOffset||l.scrollLeft,p.pageYOffset||l.scrollTop)}else l=new G(l.scrollLeft,l.scrollTop);return l}var e=nb(a),f=K(a),g=f.documentElement,m=f.body,x=R(g,"overflow"),v;for(a=b(a);a;a=b(a)){var u=c(a);if(u.x!="visible"||u.y!="visible"){var w=
|
|
44
|
+
S(a);if(w.width==0||w.height==0)return T;var B=e.g<w.left,J=e.l<w.top;if(B&&u.x=="hidden"||J&&u.y=="hidden")return T;if(B&&u.x!="visible"||J&&u.y!="visible"){B=d(a);J=e.l<w.top-B.y;if(e.g<w.left-B.x&&u.x!="visible"||J&&u.x!="visible")return T;e=jb(a);return e==T?T:"scroll"}B=e.left>=w.left+w.width;w=e.top>=w.top+w.height;if(B&&u.x=="hidden"||w&&u.y=="hidden")return T;if(B&&u.x!="visible"||w&&u.y!="visible"){if(v&&(u=d(a),e.left>=g.scrollWidth-u.x||e.g>=g.scrollHeight-u.y))return T;e=jb(a);return e==
|
|
45
|
+
T?T:"scroll"}}}return"none"}
|
|
46
|
+
function S(a){var b=kb(a);if(b)return b.rect;if(P(a,"HTML"))return a=K(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a=a.compatMode=="CSS1Compat"?a.documentElement:a.body,a=new H(a.clientWidth,a.clientHeight),new Q(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new Q(0,0,0,0)}b=new Q(c.left,c.top,c.right-c.left,c.bottom-c.top);D&&a.ownerDocument.body&&(a=K(a),b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);
|
|
47
|
+
return b}function kb(a){var b=P(a,"MAP");if(!b&&!P(a,"AREA"))return null;var c=b?a:P(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=N.j('*[usemap="#'+c.name+'"]',K(c)))&&(e=S(d),b||a.shape.toLowerCase()=="default"||(a=ob(a),b=Math.min(Math.max(a.left,0),e.width),c=Math.min(Math.max(a.top,0),e.height),e=new Q(b+e.left,c+e.top,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new Q(0,0,0,0)}}
|
|
48
|
+
function ob(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if(b=="rect"&&a.length==4){b=a[0];var c=a[1];return new Q(b,c,a[2]-b,a[3]-c)}if(b=="circle"&&a.length==3)return b=a[2],new Q(a[0]-b,a[1]-b,2*b,2*b);if(b=="poly"&&a.length>2){b=a[0];c=a[1];for(var d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return new Q(b,c,d-b,e-c)}return new Q(0,0,0,0)}function nb(a){a=S(a);return new eb(a.top,a.left+a.width,a.top+a.height,a.left)}
|
|
35
49
|
function pb(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function qb(a){var b=[];fb?rb(a,b):sb(a,b);a=ha(b,pb);return pb(a.join("\n")).replace(/\xa0/g," ")}
|
|
36
|
-
function tb(a,b,c){if(P(a,"BR"))b.push("");else{var d=P(a,"TD"),e=R(a,"display"),f=!d&&!(
|
|
37
|
-
na(a)||(b[b.length-1]+=" ");f&&"run-in"
|
|
38
|
-
function vb(a,b,c,d){a=a.nodeValue.replace(/[\u200b\u200e\u200f]/g,"");a=a.replace(/(\r\n|\r|\n)/g,"\n");if("normal"==
|
|
39
|
-
|
|
40
|
-
function
|
|
41
|
-
function
|
|
42
|
-
"\\$1")}};var U={},zb={};U.
|
|
43
|
-
zb.
|
|
44
|
-
c){return c.
|
|
45
|
-
e.
|
|
46
|
-
V.
|
|
47
|
-
V.
|
|
48
|
-
V.
|
|
49
|
-
V.
|
|
50
|
-
W.
|
|
51
|
-
|
|
52
|
-
W.
|
|
53
|
-
W.
|
|
54
|
-
function Cb(a,b){var c=Ab(a);if(c){var d=Bb[c];if(d&&
|
|
50
|
+
function tb(a,b,c){if(P(a,"BR"))b.push("");else{var d=P(a,"TD"),e=R(a,"display"),f=!d&&!(ea(ub,e)>=0),g=a.previousElementSibling!==void 0?a.previousElementSibling:Ja(a.previousSibling);g=g?R(g,"display"):"";var m=R(a,"float")||R(a,"cssFloat")||R(a,"styleFloat");!f||g=="run-in"&&m=="none"||/^[\s\xa0]*$/.test(b[b.length-1]||"")||b.push("");var x=mb(a),v=null,u=null;x&&(v=R(a,"white-space"),u=R(a,"text-transform"));t(a.childNodes,function(w){c(w,b,x,v,u)});a=b[b.length-1]||"";!d&&e!="table-cell"||!a||
|
|
51
|
+
na(a)||(b[b.length-1]+=" ");f&&e!="run-in"&&!/^[\s\xa0]*$/.test(a)&&b.push("")}}function sb(a,b){tb(a,b,function(c,d,e,f,g){c.nodeType==3&&e?vb(c,d,f,g):P(c)&&sb(c,d)})}var ub="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");
|
|
52
|
+
function vb(a,b,c,d){a=a.nodeValue.replace(/[\u200b\u200e\u200f]/g,"");a=a.replace(/(\r\n|\r|\n)/g,"\n");if(c=="normal"||c=="nowrap")a=a.replace(/\n/g," ");a=c=="pre"||c=="pre-wrap"?a.replace(/[ \f\t\v\u2028\u2029]/g,"\u00a0"):a.replace(/[ \f\t\v\u2028\u2029]+/g," ");d=="capitalize"?(c=/(^|[^'_0-9A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24B6-\u24E9\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF])([A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24B6-\u24E9])/g,a=a.replace(c,function(){return arguments[1]+arguments[2].toUpperCase()}),
|
|
53
|
+
c=/(^|[^'_0-9A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24B6-\u24E9])([_*])([A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24D0-\u24E9])/g,a=a.replace(c,function(){return arguments[1]+arguments[2]+arguments[3].toUpperCase()})):d=="uppercase"?a=a.toUpperCase():d=="lowercase"&&(a=a.toLowerCase());c=b.pop()||"";na(c)&&a.lastIndexOf(" ",0)==0&&(a=a.substr(1));b.push(c+a)}
|
|
54
|
+
function lb(a){if(Wa){if(R(a,"position")=="relative")return 1;a=R(a,"filter");return(a=a.match(/^alpha\(opacity=(\d*)\)/)||a.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(a[1])/100:1}return wb(a)}function wb(a){var b=1,c=R(a,"opacity");c&&(b=Number(c));(a=gb(a))&&(b*=wb(a));return b}
|
|
55
|
+
function xb(a,b,c,d,e){if(a.nodeType==3&&c)vb(a,b,d,e);else if(P(a))if(P(a,"CONTENT")||P(a,"SLOT")){for(var f=a;f.parentNode;)f=f.parentNode;f instanceof ShadowRoot?(f=P(a,"CONTENT")?a.getDistributedNodes():a.assignedNodes(),t(f.length>0?f:a.childNodes,function(g){xb(g,b,c,d,e)})):rb(a,b)}else if(P(a,"SHADOW")){for(f=a;f.parentNode;)f=f.parentNode;if(f instanceof ShadowRoot&&(a=f))for(a=a.olderShadowRoot;a;)t(a.childNodes,function(g){xb(g,b,c,d,e)}),a=a.olderShadowRoot}else rb(a,b)}
|
|
56
|
+
function rb(a,b){if(a.shadowRoot){var c=R(a,"white-space"),d=R(a,"text-transform");t(a.shadowRoot.childNodes,function(e){xb(e,b,!0,c,d)})}tb(a,b,function(e,f,g,m,x){var v=null;e.nodeType==1?v=e:e.nodeType==3&&(v=e);v!=null&&(v.assignedSlot!=null||v.getDestinationInsertionPoints&&v.getDestinationInsertionPoints().length>0)||xb(e,f,g,m,x)})};var yb={o:function(a,b){return!(!a.querySelectorAll||!a.querySelector)&&!/^\d.*/.test(b)},j:function(a,b){var c=I(b),d=Ia(c.g,a);return d?O(d,"id")==a&&b!=d&&Ka(b,d)?d:ka(L(c,"*"),function(e){return O(e,"id")==a&&b!=e&&Ka(b,e)}):null},h:function(a,b){if(!a)return[];if(yb.o(b,a))try{return b.querySelectorAll("#"+yb.H(a))}catch(c){return[]}b=L(I(b),"*",null,b);return fa(b,function(c){return O(c,"id")==a})},H:function(a){return a.replace(/([\s'"\\#.:;,!?+<>=~*^$|%&@`{}\-\/\[\]\(\)])/g,"\\$1")}};var U={},zb={};U.B=function(a,b,c){try{var d=N.h("a",b)}catch(e){d=L(I(b),"A",null,b)}return ka(d,function(e){e=qb(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&e.indexOf(a)!=-1||e==a})};U.A=function(a,b,c){try{var d=N.h("a",b)}catch(e){d=L(I(b),"A",null,b)}return fa(d,function(e){e=qb(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&e.indexOf(a)!=-1||e==a})};U.j=function(a,b){return U.B(a,b,!1)};U.h=function(a,b){return U.A(a,b,!1)};zb.j=function(a,b){return U.B(a,b,!0)};
|
|
57
|
+
zb.h=function(a,b){return U.A(a,b,!0)};var V={m:function(a,b){return function(c){var d=V.i(a);d=S(d);c=S(c);return b.call(null,d,c)}},F:function(a){return V.m(a,function(b,c){return c.top+c.height<=b.top})},G:function(a){return V.m(a,function(b,c){return c.top>=b.top+b.height})},J:function(a){return V.m(a,function(b,c){return c.left+c.width<=b.left})},L:function(a){return V.m(a,function(b,c){return c.left>=b.left+b.width})},N:function(a){return V.m(a,function(b,c){return c.left<b.left+b.width&&c.left+c.width>b.left&&c.top+c.height<=b.top})},
|
|
58
|
+
O:function(a){return V.m(a,function(b,c){return c.left<b.left+b.width&&c.left+c.width>b.left&&c.top>=b.top+b.height})},P:function(a){return V.m(a,function(b,c){return c.top<b.top+b.height&&c.top+c.height>b.top&&c.left+c.width<=b.left})},R:function(a){return V.m(a,function(b,c){return c.top<b.top+b.height&&c.top+c.height>b.top&&c.left>=b.left+b.width})},K:function(a,b){var c;b?c=b:typeof a.distance==="number"&&(c=a.distance);c||(c=50);return function(d){var e=V.i(a);if(e===d)return!1;e=S(e);d=S(d);
|
|
59
|
+
e=new Q(e.left-c,e.top-c,e.width+c*2,e.height+c*2);return e.left<=d.left+d.width&&d.left<=e.left+e.width&&e.top<=d.top+d.height&&d.top<=e.top+e.height}},i:function(a){if(k(a)&&a.nodeType==1)return a;if(typeof a==="function")return V.i(a.call(null));if(k(a)){var b;a:{if(b=Ab(a)){var c=Bb[b];if(c&&typeof c.j==="function"){b=c.j(a[b],ba.document);break a}}throw new n(61,"Unsupported locator strategy: "+b);}if(!b)throw new n(7,"No element has been found by "+JSON.stringify(a));return b}throw new n(61,
|
|
60
|
+
"Selector is of wrong type: "+JSON.stringify(a));}};V.D={above:V.F,below:V.G,left:V.J,near:V.K,right:V.L,straightAbove:V.N,straightBelow:V.O,straightLeft:V.P,straightRight:V.R};V.C={above:V.i,below:V.i,left:V.i,near:V.i,right:V.i,straightAbove:V.i,straightBelow:V.i,straightLeft:V.i,straightRight:V.i};
|
|
61
|
+
V.I=function(a,b){var c=[];t(a,function(e){e&&ja(b,function(f){var g=f.kind,m=V.D[g];if(!m)throw new n(61,"Cannot find filter suitable for "+g);return m.apply(null,f.args)(e)},null)&&c.push(e)},null);a=b[b.length-1];var d=V.C[a?a.kind:"unknown"];return d?(a=d.apply(null,a.args))?V.M(a,c):c:c};
|
|
62
|
+
V.M=function(a,b){function c(f){f=S(f);return Math.sqrt(Math.pow(d-(f.left+Math.max(1,f.width)/2),2)+Math.pow(e-(f.top+Math.max(1,f.height)/2),2))}a=S(a);var d=a.left+Math.max(1,a.width)/2,e=a.top+Math.max(1,a.height)/2;la(b,function(f,g){return c(f)-c(g)});return b};V.j=function(a,b){a=V.h(a,b);return a.length==0?null:a[0]};
|
|
63
|
+
V.h=function(a,b){if(!a.hasOwnProperty("root")||!a.hasOwnProperty("filters"))throw new n(61,"Locator not suitable for relative locators: "+JSON.stringify(a));var c=a.filters,d=ca(c);if(d!="array"&&(d!="object"||typeof c.length!="number"))throw new n(61,"Targets should be an array: "+JSON.stringify(a));var e;P(a.root)?e=[a.root]:e=Cb(a.root,b);return e.length==0?[]:V.I(e,a.filters)};var Db={j:function(a,b){if(a==="")throw new n(32,'Unable to locate an element with the tagName ""');return b.getElementsByTagName(a)[0]||null},h:function(a,b){if(a==="")throw new n(32,'Unable to locate an element with the tagName ""');return b.getElementsByTagName(a)}};var W={};W.s=function(){var a={T:"http://www.w3.org/2000/svg"};return function(b){return a[b]||null}}();
|
|
64
|
+
W.v=function(a,b,c){var d=K(a);if(!d.documentElement)return null;try{var e=d.createNSResolver?d.createNSResolver(d.documentElement):W.s;if(D&&!Da(7))return d.evaluate.call(d,b,a,e,c,null);if(!D||Number(F)>=9){for(var f={},g=d.getElementsByTagName("*"),m=0;m<g.length;++m){var x=g[m],v=x.namespaceURI;if(v&&!f[v]){var u=x.lookupPrefix(v);if(!u){var w=v.match(".*/(\\w+)/?$");u=w?w[1]:"xhtml"}f[v]=u}}var B={},J;for(J in f)B[f[J]]=J;e=function(l){return B[l]||null}}try{return d.evaluate(b,a,e,c,null)}catch(l){if(l.name===
|
|
65
|
+
"TypeError")return e=d.createNSResolver?d.createNSResolver(d.documentElement):W.s,d.evaluate(b,a,e,c,null);throw l;}}catch(l){if(!wa||l.name!="NS_ERROR_ILLEGAL_VALUE")throw new n(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+l);}};W.u=function(a,b){if(!a||a.nodeType!=1)throw new n(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");};
|
|
66
|
+
W.j=function(a,b){var c=function(){var d=W.v(b,a,9);return d?d.singleNodeValue||null:b.selectSingleNode?(d=K(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();c!==null&&W.u(c,a);return c};
|
|
67
|
+
W.h=function(a,b){var c=function(){var d=W.v(b,a,7);if(d){for(var e=d.snapshotLength,f=[],g=0;g<e;++g)f.push(d.snapshotItem(g));return f}return b.selectNodes?(d=K(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();t(c,function(d){W.u(d,a)});return c};var Bb={className:Ma,"class name":Ma,css:N,"css selector":N,relative:V,id:yb,linkText:U,"link text":U,name:{j:function(a,b){b=L(I(b),"*",null,b);return ka(b,function(c){return O(c,"name")==a})},h:function(a,b){b=L(I(b),"*",null,b);return fa(b,function(c){return O(c,"name")==a})}},partialLinkText:zb,"partial link text":zb,tagName:Db,"tag name":Db,xpath:W};function Ab(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null}
|
|
68
|
+
function Cb(a,b){var c=Ab(a);if(c){var d=Bb[c];if(d&&typeof d.h==="function")return d.h(a[c],b||ba.document)}throw new n(61,"Unsupported locator strategy: "+c);};var Eb=Cb,X=["se_exportedFunctionSymbol"],Y=h;X[0]in Y||typeof Y.execScript=="undefined"||Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());)X.length||Eb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=Eb;; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
function(){return (function(){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
function(){return (function(){/*
|
|
2
|
+
|
|
3
|
+
Copyright The Closure Library Authors.
|
|
4
|
+
Copyright The Closure Compiler Authors.
|
|
5
|
+
SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
var d=this||self;/*
|
|
8
|
+
|
|
9
|
+
Copyright The Closure Library Authors.
|
|
10
|
+
SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
*/
|
|
12
|
+
var f=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},h=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,e=typeof a==="string"?a.split(""):a,g=0;g<c;g++)g in e&&b.call(void 0,e[g],g,a)};function k(a,b){this.code=a;this.g=l[a]||m;this.message=b||"";a=this.g.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(b<0||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}(function(){function a(){}a.prototype=Error.prototype;k.prototype=new a;k.prototype.constructor=k})();var m="unknown error",l={15:"element not selectable",11:"element not visible"};l[31]=m;l[30]=m;l[24]="invalid cookie domain";
|
|
13
|
+
l[29]="invalid element coordinates";l[12]="invalid element state";l[32]="invalid selector";l[51]="invalid selector";l[52]="invalid selector";l[17]="javascript error";l[405]="unsupported operation";l[34]="move target out of bounds";l[27]="no such alert";l[7]="no such element";l[8]="no such frame";l[23]="no such window";l[28]="script timeout";l[33]="session not created";l[10]="stale element reference";l[21]="timeout";l[25]="unable to set cookie";l[26]="unexpected alert open";l[13]=m;l[9]="unknown command";function n(){var a=d.navigator;return a&&(a=a.userAgent)?a:""}function p(a){return n().indexOf(a)!=-1};function q(){return p("Firefox")||p("FxiOS")}function r(){return(p("Chrome")||p("CriOS"))&&!p("Edge")||p("Silk")};function t(){return p("iPhone")&&!p("iPod")&&!p("iPad")};var u=p("Opera"),v=p("Trident")||p("MSIE"),w=p("Edge"),x=p("Gecko")&&!(n().toLowerCase().indexOf("webkit")!=-1&&!p("Edge"))&&!(p("Trident")||p("MSIE"))&&!p("Edge"),y=n().toLowerCase().indexOf("webkit")!=-1&&!p("Edge");function A(){var a=d.document;return a?a.documentMode:void 0}var B;
|
|
14
|
+
a:{var C="",D=function(){var a=n();if(x)return/rv:([^\);]+)(\)|;)/.exec(a);if(w)return/Edge\/([\d\.]+)/.exec(a);if(v)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(y)return/WebKit\/(\S+)/.exec(a);if(u)return/(?:Version)[ \/]?(\S+)/.exec(a)}();D&&(C=D?D[1]:"");if(v){var E=A();if(E!=null&&E>parseFloat(C)){B=String(E);break a}}B=C}var F;if(d.document&&v){var G=A();F=G?G:parseInt(B,10)||void 0}else F=void 0;var H=F;var I=q(),J=t()||p("iPod"),K=p("iPad"),L=p("Android")&&!(r()||q()||p("Opera")||p("Silk")),M=r(),N=p("Safari")&&!(r()||p("Coast")||p("Opera")||p("Edge")||p("Edg/")||p("OPR")||q()||p("Silk")||p("Android"))&&!(t()||p("iPad")||p("iPod"));function O(a){return(a=a.exec(n()))?a[1]:""}(function(){if(I)return O(/Firefox\/([0-9.]+)/);if(v||w||u)return B;if(M){if(t()||p("iPad")||p("iPod")||p("Macintosh")){var a=O(/CriOS\/([0-9.]+)/);if(a)return a}return O(/Chrome\/([0-9.]+)/)}if(N&&!(t()||p("iPad")||p("iPod")))return O(/Version\/([0-9.]+)/);if(J||K){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(n()))return a[1]+"."+a[2]}else if(L)return(a=O(/Android\s+([0-9.]+)/))?a:O(/Version\/([0-9.]+)/);return""})();var P=v&&!(Number(H)>=8),aa=v&&!(Number(H)>=9);var ba={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Q={IMG:" ",BR:"\n"};function R(a,b,c){if(!(a.nodeName in ba))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Q)b.push(Q[a.nodeName]);else for(a=a.firstChild;a;)R(a,b,c),a=a.nextSibling};function S(a,b){b=b.toLowerCase();return b=="style"?ca(a.style.cssText):P&&b=="value"&&T(a,"INPUT")?a.value:aa&&a[b]===!0?String(a.getAttribute(b)):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var da=RegExp("[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)");
|
|
15
|
+
function ca(a){var b=[];h(a.split(da),function(c){var e=c.indexOf(":");e>0&&(c=[c.slice(0,e),c.slice(e+1)],c.length==2&&b.push(c[0].toLowerCase(),":",c[1],";"))});b=b.join("");return b=b.charAt(b.length-1)==";"?b:b+";"}function U(a,b){P&&b=="value"&&T(a,"OPTION")&&S(a,"value")===null?(b=[],R(a,b,!1),a=b.join("")):a=a[b];return a}
|
|
16
|
+
function T(a,b){b&&typeof b!=="string"&&(b=b.toString());return a instanceof HTMLFormElement?!!a&&a.nodeType==1&&(!b||"FORM"==b):!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)}function V(a){return T(a,"OPTION")?!0:T(a,"INPUT")?(a=a.type.toLowerCase(),a=="checkbox"||a=="radio"):!1};var ea={"class":"className",readonly:"readOnly"},fa="allowfullscreen allowpaymentrequest allowusermedia async autofocus autoplay checked compact complete controls declare default defaultchecked defaultselected defer disabled ended formnovalidate hidden indeterminate iscontenteditable ismap itemscope loop multiple muted nohref nomodule noresize noshade novalidate nowrap open paused playsinline pubdate readonly required reversed scoped seamless seeking selected truespeed typemustmatch willvalidate".split(" ");function W(a,b){var c=null,e=b.toLowerCase();if("style"==e)return(c=a.style)&&typeof c!=="string"&&(c=c.cssText),c;if(("selected"==e||"checked"==e)&&V(a)){if(!V(a))throw new k(15,"Element is not selectable");b="selected";c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";return U(a,b)?"true":null}var g=T(a,"A");if(T(a,"IMG")&&e=="src"||g&&e=="href")return(c=S(a,e))&&(c=U(a,e)),c;if("spellcheck"==e){c=S(a,e);if(c!==null){if(c.toLowerCase()=="false")return"false";if(c.toLowerCase()==
|
|
17
|
+
"true")return"true"}return U(a,e)+""}g=ea[b]||b;if(f(fa,e)>=0)return(c=S(a,b)!==null||U(a,g))?"true":null;try{var z=U(a,g)}catch(ha){}(e=z==null)||(e=typeof z,e=e=="object"&&z!=null||e=="function");e?c=S(a,b):c=z;return c!=null?c.toString():null}var X=["se_exportedFunctionSymbol"],Y=d;X[0]in Y||typeof Y.execScript=="undefined"||Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());)X.length||W===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=W;; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|