From 5a2e55b822d4d728a051daa378a961b2b2dc68f1 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:21:37 -0700 Subject: [PATCH 01/30] CSHARP-4805: Use Ubuntu 20.04 for MongoDB 7.0+ on Evergreen (#1197) --- evergreen/evergreen.yml | 224 +++++++++--------- .../prose-tests/ClientEncryptionProseTests.cs | 21 +- 2 files changed, 128 insertions(+), 117 deletions(-) diff --git a/evergreen/evergreen.yml b/evergreen/evergreen.yml index 213cfe2ffe1..a69d78219ef 100644 --- a/evergreen/evergreen.yml +++ b/evergreen/evergreen.yml @@ -1844,6 +1844,12 @@ axes: OS: "ubuntu-1804" python3_binary: "/opt/python/3.8/bin/python3" run_on: ubuntu1804-test + - id: "ubuntu-2004" + display_name: "Ubuntu 20.04" + variables: + OS: "ubuntu-2004" + python3_binary: "/opt/python/3.8/bin/python3" + run_on: ubuntu2004-small - id: "macos-1100" display_name: "macOS 11.00" variables: @@ -2021,120 +2027,121 @@ task_groups: - packages-push buildvariants: +- matrix_name: stable-api-tests + matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", auth: "auth", ssl: "nossl", os: "windows-64" } + display_name: "Stable API ${version} ${topology} ${auth} ${ssl} ${os}" + run_on: + - windows-64-vs2017-test + tasks: + - name: stable-api-tests-net472 + - name: stable-api-tests-netstandard20 + - name: stable-api-tests-netstandard21 -- matrix_name: "secure-tests" +# Secure tests +- matrix_name: "secure-tests-windows" matrix_spec: { version: "*", topology: "*", auth: "auth", ssl: "ssl", os: "windows-64" } display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-net472 - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-net472 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "unsecure-tests" - matrix_spec: { version: "*", topology: "*", auth: "noauth", ssl: "nossl", os: "windows-64" } +- matrix_name: "secure-tests-macOS" + matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "auth", ssl: "ssl", os: ["macos-1100", "macos-1100-arm64"] } display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-net472 - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-netstandard21 -- matrix_name: "tests-zlib-compression" - matrix_spec: { compressor : "zlib", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" } - display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " +- matrix_name: "secure-tests-linux-1804" + matrix_spec: { version: ["4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-1804" } + display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-net472 - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "tests-snappy-compression" - matrix_spec: { compressor : "snappy", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" } - display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " +- matrix_name: "secure-tests-linux-2004" + matrix_spec: { version: ["7.0", "rapid", "latest"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-2004" } + display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-net472 - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "tests-snappy-compression-linux" - matrix_spec: { compressor : "snappy", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "ubuntu-1804" } - display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " +# Unsecure tests +- matrix_name: "unsecure-tests-windows" + matrix_spec: { version: "*", topology: "*", auth: "noauth", ssl: "nossl", os: "windows-64" } + display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-net472 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "tests-snappy-compression-macOS" - matrix_spec: { compressor : "snappy", auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: ["macos-1100", "macos-1100-arm64"] } - display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " +- matrix_name: "unsecure-tests-macOS" + matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "noauth", ssl: "nossl", os: ["macos-1100", "macos-1100-arm64"] } + display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-netstandard21 + - name: test-netstandard21 -- matrix_name: "tests-zstandard-compression" - matrix_spec: { compressor : "zstandard", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" } - display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " +- matrix_name: "unsecure-tests-linux-1804" + matrix_spec: { version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" } + display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-net472 - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "tests-zstandard-compression-linux" - matrix_spec: { compressor : "zstandard", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "ubuntu-1804" } - display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " +- matrix_name: "unsecure-tests-linux-2004" + matrix_spec: { version: ["7.0", "rapid", "latest"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-2004" } + display_name: "${version} ${topology} ${auth} ${ssl} ${os}" tags: ["tests-variant"] tasks: - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "tests-zstandard-compression-macOS" - matrix_spec: { compressor : "zstandard", auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: ["macos-1100", "macos-1100-arm64"] } +# Compression tests +- matrix_name: "tests-compression-windows" + matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" } display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " tags: ["tests-variant"] tasks: - - name: test-netstandard21 - - # ubuntu 18 does not support SSL until 4.0 -- matrix_name: "secure-tests-linux" - matrix_spec: { version: ["4.0", "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-1804" } - display_name: "${version} ${topology} ${auth} ${ssl} ${os}" - tags: ["tests-variant"] - tasks: - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-net472 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "unsecure-tests-linux" - matrix_spec: { version: "*", topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" } - display_name: "${version} ${topology} ${auth} ${ssl} ${os}" +- matrix_name: "tests-compression-macOS" + matrix_spec: { compressor : ["snappy", "zstandard"], auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: ["macos-1100", "macos-1100-arm64"] } + display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " tags: ["tests-variant"] tasks: - - name: test-netstandard20 - - name: test-netstandard21 + - name: test-netstandard21 -- matrix_name: "secure-tests-macOS" - matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "auth", ssl: "ssl", os: ["macos-1100", "macos-1100-arm64"] } - display_name: "${version} ${topology} ${auth} ${ssl} ${os}" +- matrix_name: "tests-compression-linux-1804" + matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"], topology: "standalone", os: "ubuntu-1804" } + display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " tags: ["tests-variant"] tasks: - - name: test-netstandard21 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "unsecure-tests-macOS" - matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "noauth", ssl: "nossl", os: ["macos-1100", "macos-1100-arm64"] } - display_name: "${version} ${topology} ${auth} ${ssl} ${os}" +- matrix_name: "tests-compression-linux-2004" + matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" } + display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " tags: ["tests-variant"] tasks: - - name: test-netstandard21 + - name: test-netstandard20 + - name: test-netstandard21 -- matrix_name: "tests-zlib-compression-posix" - matrix_spec: { compressor : "zlib", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "ubuntu-1804" } - display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} " - tags: ["tests-variant"] +# Auth tests +- matrix_name: plain-auth-tests + matrix_spec: { os: "*" } + display_name: "PLAIN (LDAP) Auth Tests ${os}" tasks: - - name: test-netstandard20 - - name: test-netstandard21 + - name: plain-auth-tests - matrix_name: "ocsp-tests" matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "ssl", topology: "standalone", os: "windows-64" } @@ -2152,7 +2159,7 @@ buildvariants: - name: aws-auth-tests - matrix_name: aws-auth-tests-linux - matrix_spec: { version: ["6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-1804" } + matrix_spec: { version: ["6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" } display_name: "MONGODB-AWS Auth test ${version} ${os}" run_on: - ubuntu1804-test @@ -2167,36 +2174,39 @@ buildvariants: tasks: - name: aws-auth-tests -- matrix_name: stable-api-tests - matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", auth: "auth", ssl: "nossl", os: "windows-64" } - display_name: "Stable API ${version} ${topology} ${auth} ${ssl} ${os}" +- name: gssapi-auth-tests-windows run_on: - windows-64-vs2017-test + display_name: "GSSAPI (Kerberos) Auth tests - Windows" tasks: - - name: stable-api-tests-net472 - - name: stable-api-tests-netstandard20 - - name: stable-api-tests-netstandard21 + - name: test-gssapi-net472 + - name: test-gssapi-netstandard20 + - name: test-gssapi-netstandard21 -- matrix_name: plain-auth-tests - matrix_spec: { os: "*" } - display_name: "PLAIN (LDAP) Auth Tests ${os}" +- name: gssapi-auth-tests-linux + run_on: + - ubuntu1804-test + display_name: "GSSAPI (Kerberos) Auth tests - Linux" tasks: - - name: plain-auth-tests + - name: test-gssapi-netstandard20 + - name: test-gssapi-netstandard21 +# Load balancer tests - matrix_name: load-balancer-tests - matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "nossl", topology: "sharded-cluster", os: "ubuntu-1804" } + matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "nossl", topology: "sharded-cluster", os: "ubuntu-2004" } display_name: "Load Balancer ${version} ${auth} ${ssl} ${os}" tasks: - name: "test-load-balancer-netstandard20" - name: "test-load-balancer-netstandard21" - matrix_name: load-balancer-tests-secure - matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "auth", ssl: "ssl", topology: "sharded-cluster", os: "ubuntu-1804" } + matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "auth", ssl: "ssl", topology: "sharded-cluster", os: "ubuntu-2004" } display_name: "Load Balancer ${version} ${auth} ${ssl} ${os}" tasks: - name: "test-load-balancer-netstandard20" - name: "test-load-balancer-netstandard21" +# Serverless tests - matrix_name: serverless-tests-windows matrix_spec: { auth: "auth", ssl: "ssl", compressor: "zlib", os: "windows-64" } display_name: "Serverless ${compressor} ${auth} ${ssl} ${os}" @@ -2212,6 +2222,7 @@ buildvariants: - name: test-serverless-netstandard20 - name: test-serverless-netstandard21 +# Atlas tests - name: atlas-connectivity-tests display_name: "Atlas Connectivity Tests" run_on: @@ -2233,25 +2244,9 @@ buildvariants: tasks: - name: atlas-search-test -- name: gssapi-auth-tests-windows - run_on: - - windows-64-vs2017-test - display_name: "GSSAPI (Kerberos) Auth tests - Windows" - tasks: - - name: test-gssapi-net472 - - name: test-gssapi-netstandard20 - - name: test-gssapi-netstandard21 - -- name: gssapi-auth-tests-linux - run_on: - - ubuntu1804-test - display_name: "GSSAPI (Kerberos) Auth tests - Linux" - tasks: - - name: test-gssapi-netstandard20 - - name: test-gssapi-netstandard21 - +# CSFLE tests - matrix_name: "csfle-with-mocked-kms-tests-windows" - matrix_spec: { os: "windows-64", ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest" ], topology: ["replicaset"] } + matrix_spec: { os: "windows-64", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: ["replicaset"] } display_name: "CSFLE Mocked KMS ${version} ${os}" tasks: - name: test-csfle-with-mocked-kms-tls-net472 @@ -2261,8 +2256,17 @@ buildvariants: - name: test-csfle-with-mongocryptd-netstandard20 - name: test-csfle-with-mongocryptd-netstandard21 -- matrix_name: "csfle-with-mocked-kms-tests-linux" - matrix_spec: { os: "ubuntu-1804", ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest" ], topology: ["replicaset"] } +- matrix_name: "csfle-with-mocked-kms-tests-linux-1804" + matrix_spec: { os: "ubuntu-1804", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0"], topology: ["replicaset"] } + display_name: "CSFLE Mocked KMS ${version} ${os}" + tasks: + - name: test-csfle-with-mocked-kms-tls-netstandard20 + - name: test-csfle-with-mocked-kms-tls-netstandard21 + - name: test-csfle-with-mongocryptd-netstandard20 + - name: test-csfle-with-mongocryptd-netstandard21 + +- matrix_name: "csfle-with-mocked-kms-tests-linux-2004" + matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["7.0", "rapid", "latest"], topology: ["replicaset"] } display_name: "CSFLE Mocked KMS ${version} ${os}" tasks: - name: test-csfle-with-mocked-kms-tls-netstandard20 @@ -2271,7 +2275,7 @@ buildvariants: - name: test-csfle-with-mongocryptd-netstandard21 - matrix_name: "csfle-with-mocked-kms-tests-macOS" - matrix_spec: { os: [ "macos-1100", "macos-1100-arm64" ], ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest" ], topology: ["replicaset"] } + matrix_spec: { os: ["macos-1100", "macos-1100-arm64"], ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: ["replicaset"] } display_name: "CSFLE Mocked KMS ${version} ${os}" tasks: - name: test-csfle-with-mocked-kms-tls-netstandard21 @@ -2293,8 +2297,9 @@ buildvariants: - name: testgcpkms-task-group - name: test-csfle-with-mongocryptd-netstandard21 +# Smoke tests - matrix_name: "smoke-tests-windows" - matrix_spec: { os: "windows-64", ssl: "nossl", version: [ "5.0", "6.0", "7.0", "latest" ], topology: ["replicaset"] } + matrix_spec: { os: "windows-64", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] } display_name: "smoke-tests ${version} ${os}" batchtime: 1440 # 1 day tasks: @@ -2305,7 +2310,7 @@ buildvariants: - name: test-smoke-tests-net60 - matrix_name: "smoke-tests-linux" - matrix_spec: { os: "ubuntu-1804", ssl: "nossl", version: [ "5.0", "6.0", "7.0", "latest" ], topology: ["replicaset"] } + matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] } display_name: "smoke-tests ${version} ${os}" batchtime: 1440 # 1 day tasks: @@ -2315,7 +2320,7 @@ buildvariants: - name: test-smoke-tests-net60 - matrix_name: "smoke-tests-macOS" - matrix_spec: { os: "macos-1100", ssl: "nossl", version: [ "5.0", "6.0", "7.0", "latest" ], topology: ["replicaset"] } + matrix_spec: { os: "macos-1100", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] } display_name: "smoke-tests ${version} ${os}" batchtime: 1440 # 1 day tasks: @@ -2324,6 +2329,7 @@ buildvariants: - name: test-smoke-tests-net50 - name: test-smoke-tests-net60 +# Package creation - name: dev-package-pack git_tag_only: true display_name: "Dev Package Pack" diff --git a/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs b/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs index bd4d53d0383..42722a6b388 100644 --- a/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs +++ b/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs @@ -776,18 +776,18 @@ public void CreateDataKeyAndDoubleEncryptionTest( [InlineData("aws", "kms.us-east-1.amazonaws.com:443", null, null)] [InlineData("aws", "kms.us-east-1.amazonaws.com:12345", "$ConnectionRefused$", null)] [InlineData("aws", "kms.us-east-2.amazonaws.com", "_GenericCryptException_", null)] - [InlineData("aws", "doesnotexist.invalid", "$HostNotFound$", null)] + [InlineData("aws", "doesnotexist.invalid", "$HostNotFound,TryAgain$", null)] // additional not spec tests [InlineData("aws", "$test$", "Invalid endpoint, expected dot separator in host, but got: $test$", null)] // azure - [InlineData("azure", "key-vault-csfle.vault.azure.net", null, "$HostNotFound$")] + [InlineData("azure", "key-vault-csfle.vault.azure.net", null, "$HostNotFound,TryAgain$")] // gcp - [InlineData("gcp", "cloudkms.googleapis.com:443", null, "$HostNotFound$")] + [InlineData("gcp", "cloudkms.googleapis.com:443", null, "$HostNotFound,TryAgain$")] [InlineData("gcp", "doesnotexist.invalid:443", "Invalid KMS response", null)] // kmip [InlineData("kmip", null, null, "$HostNotFound$")] [InlineData("kmip", "localhost:5698", null, null)] - [InlineData("kmip", "doesnotexist.local:5698", "$HostNotFound$", null)] + [InlineData("kmip", "doesnotexist.local:5698", "$HostNotFound,TryAgain$", null)] public void CustomEndpointTest( string kmsType, string customEndpoint, @@ -856,11 +856,16 @@ void AssertResult(Exception ex, string expectedExceptionInfo) var innerException = ex.Should().BeOfType().Subject.InnerException; if (expectedExceptionInfo.StartsWith("$") && - expectedExceptionInfo.EndsWith("$") && - Enum.TryParse(expectedExceptionInfo.Trim(new char[] { '$' }), out var socketError)) + expectedExceptionInfo.EndsWith("$")) { + var expectedValues = expectedExceptionInfo + .Trim('$') + .Split(',') + .Select(v => Enum.Parse(typeof(SocketError), v)) + .ToArray(); + var e = innerException.Should().BeAssignableTo().Subject;// kmip triggers driver side exception - e.SocketErrorCode.Should().Be(socketError); // the error message is platform dependent + expectedValues.Should().Contain(e.SocketErrorCode);// the error message is platform dependent } else { @@ -2501,7 +2506,7 @@ private Exception AssertInnerEncryptionException(Exception ex, Type exType, para if (typeof(OperationCanceledException).IsAssignableFrom(exType)) { // handles OperationCanceledException and TaskCanceledException. - // At least in macOS these exceptions can be triggered from the same code path in some cases + // At least in macOS these exceptions can be triggered from the same code path in some cases e.Should().BeAssignableTo(); } else From 752e9bba69a8e55d85d159c9eaf7884fda1ed3f3 Mon Sep 17 00:00:00 2001 From: BorisDog Date: Mon, 16 Oct 2023 11:05:45 -0700 Subject: [PATCH 02/30] CSHARP-4775: Use MongoDB managed Azure KMS credentials (#1198) --- .../prose-tests/ClientEncryptionProseTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs b/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs index 42722a6b388..1f3c9ebd7b1 100644 --- a/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs +++ b/tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs @@ -1869,8 +1869,8 @@ void EnsureEnvironmentConfigured(out BsonDocument customMasterKey) customMasterKey = new BsonDocument { - { "keyVaultEndpoint", "https://keyvault-drivers-2411.vault.azure.net/keys/" }, - { "keyName", "KEY-NAME" } + { "keyVaultEndpoint", "https://drivers-2411-keyvault.vault.azure.net/" }, + { "keyName", "drivers-2411-keyname" } }; } break; From 19c9f374cb766db79a881ce9f684ea9ba46a9a6f Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Mon, 16 Oct 2023 12:36:24 -0700 Subject: [PATCH 03/30] CSHARP-4805: Use Ubuntu 20.04 for MongoDB 7.0+ on Evergreen (#1199) --- build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.ps1 b/build.ps1 index 197bd747a45..b4c956b8414 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/env pwsh -$DotNetInstallerUri = 'https://dot.net/v1/dotnet-install.ps1'; -$DotNetUnixInstallerUri = 'https://dot.net/v1/dotnet-install.sh' +$DotNetInstallerUri = 'https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1'; +$DotNetUnixInstallerUri = 'https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh' $DotNetChannel = 'LTS' $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent From dc92a395baba96d1826870584618b86eef809f2f Mon Sep 17 00:00:00 2001 From: BorisDog Date: Tue, 17 Oct 2023 09:44:29 -0700 Subject: [PATCH 04/30] CSHARP-4685: Add e2e testing against Atlas to the search index management API (#1196) --- build.cake | 7 + evergreen/evergreen.yml | 64 +++++++ .../run-atlas-search-index-helpers-test.sh | 17 ++ .../Operations/DropSearchIndexOperation.cs | 24 ++- .../Search/AtlasSearchIndexManagmentTests.cs | 167 ++++++++++++++++++ 5 files changed, 277 insertions(+), 2 deletions(-) create mode 100644 evergreen/run-atlas-search-index-helpers-test.sh create mode 100644 tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs diff --git a/build.cake b/build.cake index 8a5a2dfaadb..142b536373d 100644 --- a/build.cake +++ b/build.cake @@ -246,6 +246,13 @@ Task("TestAtlasSearch") action: (BuildConfig buildConfig, Path testProject) => RunTests(buildConfig, testProject, filter: "Category=\"AtlasSearch\"")); +Task("TestAtlasSearchIndexHelpers") + .IsDependentOn("Build") + .DoesForEach( + items: GetFiles("./**/MongoDB.Driver.Tests.csproj"), + action: (BuildConfig buildConfig, Path testProject) => + RunTests(buildConfig, testProject, filter: "Category=\"AtlasSearchIndexHelpers\"")); + Task("TestOcsp") .IsDependentOn("Build") .DoesForEach( diff --git a/evergreen/evergreen.yml b/evergreen/evergreen.yml index a69d78219ef..731c2db442a 100644 --- a/evergreen/evergreen.yml +++ b/evergreen/evergreen.yml @@ -708,6 +708,15 @@ functions: ${PREPARE_SHELL} ATLAS_SEARCH="${ATLAS_SEARCH}" evergreen/run-atlas-search-test.sh + run-atlas-search-index-helpers-test: + - command: shell.exec + type: test + params: + working_dir: mongo-csharp-driver + script: | + ${PREPARE_SHELL} + MONGODB_URI="${MONGODB_URI}" evergreen/run-atlas-search-index-helpers-test.sh + run-ocsp-test: - command: shell.exec type: test @@ -1294,6 +1303,10 @@ tasks: commands: - func: run-atlas-search-test + - name: atlas-search-index-helpers-test + commands: + - func: run-atlas-search-index-helpers-test + - name: test-serverless-net472 exec_timeout_secs: 2700 # 45 minutes: 15 for setup + 30 for tests commands: @@ -2026,6 +2039,50 @@ task_groups: - packages-create - packages-push + - name: atlas-search-index-helpers-task-group + setup_group_can_fail_task: true + setup_group_timeout_secs: 1800 # 30 minutes + setup_group: + - func: fetch-source + - func: prepare-resources + - func: fix-absolute-paths + - func: init-test-results + - func: make-files-executable + - command: shell.exec + params: + env: + DRIVERS_ATLAS_PUBLIC_API_KEY: "${DRIVERS_ATLAS_PUBLIC_API_KEY}" + DRIVERS_ATLAS_PRIVATE_API_KEY: "${DRIVERS_ATLAS_PRIVATE_API_KEY}" + DRIVERS_ATLAS_GROUP_ID: "${DRIVERS_ATLAS_GROUP_ID}" + DRIVERS_ATLAS_LAMBDA_USER: "${DRIVERS_ATLAS_LAMBDA_USER}" + DRIVERS_ATLAS_LAMBDA_PASSWORD: "${DRIVERS_ATLAS_LAMBDA_PASSWORD}" + LAMBDA_STACK_NAME: "${LAMBDA_STACK_NAME}" + add_expansions_to_env: true + shell: "bash" + script: | + ${PREPARE_SHELL} + $DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh + - command: expansions.update + params: + file: atlas-expansion.yml + teardown_group: + - command: shell.exec + params: + env: + DRIVERS_ATLAS_PUBLIC_API_KEY: "${DRIVERS_ATLAS_PUBLIC_API_KEY}" + DRIVERS_ATLAS_PRIVATE_API_KEY: "${DRIVERS_ATLAS_PRIVATE_API_KEY}" + DRIVERS_ATLAS_GROUP_ID: "${DRIVERS_ATLAS_GROUP_ID}" + DRIVERS_ATLAS_LAMBDA_USER: "${DRIVERS_ATLAS_LAMBDA_USER}" + DRIVERS_ATLAS_LAMBDA_PASSWORD: "${DRIVERS_ATLAS_LAMBDA_PASSWORD}" + LAMBDA_STACK_NAME: "${LAMBDA_STACK_NAME}" + add_expansions_to_env: true + shell: "bash" + script: | + ${PREPARE_SHELL} + $DRIVERS_TOOLS/.evergreen/atlas/teardown-atlas-cluster.sh + tasks: + - atlas-search-index-helpers-test + buildvariants: - matrix_name: stable-api-tests matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", auth: "auth", ssl: "nossl", os: "windows-64" } @@ -2244,6 +2301,13 @@ buildvariants: tasks: - name: atlas-search-test +- name: atlas-search-index-helpers-test + display_name: "Atlas Search Index Helpers Tests" + run_on: + - ubuntu1804-test + tasks: + - name: atlas-search-index-helpers-task-group + # CSFLE tests - matrix_name: "csfle-with-mocked-kms-tests-windows" matrix_spec: { os: "windows-64", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: ["replicaset"] } diff --git a/evergreen/run-atlas-search-index-helpers-test.sh b/evergreen/run-atlas-search-index-helpers-test.sh new file mode 100644 index 00000000000..aacc74fb56e --- /dev/null +++ b/evergreen/run-atlas-search-index-helpers-test.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +set -o xtrace +set -o errexit # Exit the script with error if any of the commands fail + +# Environment variables produced as output +# ATLAS_SEARCH_INDEX_HELPERS_TESTS_ENABLED Enable atlas search index helpers tests. + +############################################ +# Main Program # +############################################ + +echo "Running Atlas Search Index Helpers driver tests" + +export ATLAS_SEARCH_INDEX_HELPERS_TESTS_ENABLED=true + +./build.sh --target=TestAtlasSearchIndexHelpers \ No newline at end of file diff --git a/src/MongoDB.Driver.Core/Core/Operations/DropSearchIndexOperation.cs b/src/MongoDB.Driver.Core/Core/Operations/DropSearchIndexOperation.cs index 49b8622d301..653039feb98 100644 --- a/src/MongoDB.Driver.Core/Core/Operations/DropSearchIndexOperation.cs +++ b/src/MongoDB.Driver.Core/Core/Operations/DropSearchIndexOperation.cs @@ -73,7 +73,15 @@ public BsonDocument Execute(IWriteBinding binding, CancellationToken cancellatio using (var channelBinding = new ChannelReadWriteBinding(channelSource.Server, channel, binding.Session.Fork())) { var operation = CreateOperation(); - return operation.Execute(channelBinding, cancellationToken); + + try + { + return operation.Execute(channelBinding, cancellationToken); + } + catch (MongoCommandException ex) when (ShouldIgnoreException(ex)) + { + return ex.Result; + } } } @@ -88,8 +96,20 @@ public async Task ExecuteAsync(IWriteBinding binding, Cancellation using (var channelBinding = new ChannelReadWriteBinding(channelSource.Server, channel, binding.Session.Fork())) { var operation = CreateOperation(); - return await operation.ExecuteAsync(channelBinding, cancellationToken).ConfigureAwait(false); + + try + { + return await operation.ExecuteAsync(channelBinding, cancellationToken).ConfigureAwait(false); + } + catch (MongoCommandException ex) when (ShouldIgnoreException(ex)) + { + return ex.Result; + } } } + + private bool ShouldIgnoreException(MongoCommandException ex) => + ex?.Code == (int)ServerErrorCode.NamespaceNotFound || + ex?.ErrorMessage == "ns not found"; } } diff --git a/tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs b/tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs new file mode 100644 index 00000000000..8b49dd93ca0 --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs @@ -0,0 +1,167 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using FluentAssertions; +using MongoDB.Bson; +using MongoDB.Driver.Core.TestHelpers.Logging; +using MongoDB.Driver.TestHelpers; +using MongoDB.TestHelpers.XunitExtensions; +using Xunit; +using Xunit.Abstractions; + +namespace MongoDB.Driver.Tests.Search +{ + [Category("AtlasSearchIndexHelpers")] + public class AtlasSearchIndexManagementTests : LoggableTestClass + { + private const int Timeout = 5 * 60 * 1000; + private const int IndexesPollPeriod = 5000; + + private readonly IMongoCollection _collection; + private readonly IMongoDatabase _database; + private readonly DisposableMongoClient _disposableMongoClient; + private readonly BsonDocument _indexDefinition = BsonDocument.Parse("{ mappings: { dynamic: false } }"); + + public AtlasSearchIndexManagementTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) + { + RequireEnvironment.Check().EnvironmentVariable("ATLAS_SEARCH_INDEX_HELPERS_TESTS_ENABLED"); + + var atlasSearchUri = CoreTestConfiguration.ConnectionString.ToString(); + + _disposableMongoClient = new(new MongoClient(atlasSearchUri), CreateLogger()); + _database = _disposableMongoClient.GetDatabase("dotnet-test"); + var collectionName = GetRandomName(); + + _database.CreateCollection(collectionName); + _collection = _database.GetCollection(collectionName); + } + + protected override void DisposeInternal() + { + _collection.Database.DropCollection(_collection.CollectionNamespace.CollectionName); + _disposableMongoClient.Dispose(); + } + + [Fact(Timeout = Timeout)] + public Task Case1_driver_should_successfully_create_and_list_search_indexes() => + CreateIndexAndValidate("test-search-index"); + + [Fact(Timeout = Timeout)] + public async Task Case2_driver_should_successfully_create_multiple_indexes_in_batch() + { + var indexDefinition1 = new CreateSearchIndexModel("test-search-index-1", _indexDefinition); + var indexDefinition2 = new CreateSearchIndexModel("test-search-index-2", _indexDefinition); + + var indexNamesActual = await _collection.SearchIndexes.CreateManyAsync(new[] { indexDefinition1, indexDefinition2 }); + + indexNamesActual.Should().BeEquivalentTo(indexDefinition1.Name, indexDefinition2.Name); + + var indexes = await GetIndexes(indexDefinition1.Name, indexDefinition2.Name); + + indexes[0]["latestDefinition"].AsBsonDocument.Should().Be(_indexDefinition); + indexes[1]["latestDefinition"].AsBsonDocument.Should().Be(_indexDefinition); + } + + [Fact(Timeout = Timeout)] + public async Task Case3_driver_can_successfully_drop_search_indexes() + { + const string indexName = "test-search-index"; + + await CreateIndexAndValidate(indexName); + + await _collection.SearchIndexes.DropOneAsync(indexName); + + while (true) + { + var cursor = await _collection.SearchIndexes.ListAsync(); + var indexes = await cursor.ToListAsync(); + if (indexes.Count == 0) + { + return; + } + + Thread.Sleep(IndexesPollPeriod); + } + } + + [Fact(Timeout = Timeout)] + public async Task Case4_driver_can_update_a_search_index() + { + const string indexName = "test-search-index"; + var indexNewDefinition = BsonDocument.Parse("{ mappings: { dynamic: true }}"); + + await CreateIndexAndValidate(indexName); + + await _collection.SearchIndexes.UpdateAsync(indexName, indexNewDefinition); + + var updatedIndex = await GetIndexes(indexName); + updatedIndex[0]["latestDefinition"].AsBsonDocument.Should().Be(indexNewDefinition); + } + + [Fact(Timeout = Timeout)] + public async Task Case5_dropSearchIndex_suppresses_namespace_not_found_errors() + { + var collection = _database.GetCollection("non_existent_collection"); + await collection.SearchIndexes.DropOneAsync("non_existing_index"); + } + + private async Task CreateIndexAndValidate(string indexName) + { + var indexNameActual = await _collection.SearchIndexes.CreateOneAsync(_indexDefinition, indexName); + indexNameActual.Should().Be(indexName); + + var result = await GetIndexes(indexName); + + return result[0]; + } + + private async Task GetIndexes(params string[] indexNames) + { + while (true) + { + var cursor = await _collection.SearchIndexes.ListAsync(); + var indexes = await cursor.ToListAsync(); + + var indexesFiltered = indexes + .Where(i => indexNames.Contains(TryGetValue(i, "name")) && TryGetValue(i, "queryable")) + .ToArray(); + + if (indexesFiltered.Length == indexNames.Length) + { + return indexesFiltered; + } + + Thread.Sleep(IndexesPollPeriod); + } + } + + private static string GetRandomName() => $"test_{Guid.NewGuid():N}"; + + private static T TryGetValue(BsonDocument document, string name) + { + if (!document.TryGetValue(name, out var value)) + { + return default; + } + + var result = BsonTypeMapper.MapToDotNetValue(value); + return (T)result; + } + } +} From 6f5b3d2de7abc203edf886b48f5fbc99223089fc Mon Sep 17 00:00:00 2001 From: BorisDog Date: Wed, 18 Oct 2023 08:58:49 -0700 Subject: [PATCH 05/30] CSHARP-4808: "Updating stale electionId and setVersion" even when electionId/setVersion match (#1201) --- .../Core/Clusters/MultiServerCluster.cs | 8 +++--- .../Core/Clusters/ElectionIdTests.cs | 2 +- .../Core/Clusters/MultiServerClusterTests.cs | 25 +++++++++++++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/MongoDB.Driver.Core/Core/Clusters/MultiServerCluster.cs b/src/MongoDB.Driver.Core/Core/Clusters/MultiServerCluster.cs index 001e43a0da0..9a8c40104f3 100644 --- a/src/MongoDB.Driver.Core/Core/Clusters/MultiServerCluster.cs +++ b/src/MongoDB.Driver.Core/Core/Clusters/MultiServerCluster.cs @@ -658,12 +658,12 @@ public ElectionInfo(int? setVersion, ElectionId electionId) public int? SetVersion => _setVersion; public ElectionId ElectionId => _electionId; - public ElectionInfo Compare(int? setVersion, ElectionId electionId, int maxWireVerion) + public ElectionInfo Compare(int? setVersion, ElectionId electionId, int maxWireVersion) { var newElectionId = _electionId; var newSetVersion = _setVersion; - if (Feature.ElectionIdPriorityInSDAM.IsSupported(maxWireVerion)) + if (Feature.ElectionIdPriorityInSDAM.IsSupported(maxWireVersion)) { var electionIdOrder = Compare(electionId); var isGreaterOrEqual = electionIdOrder < 0 || electionIdOrder == 0 && IsGreaterOrEqual(setVersion, _setVersion); @@ -707,7 +707,9 @@ public override bool Equals(object obj) { var other = obj as ElectionInfo; - return other != null && _setVersion == other.SetVersion && other.ElectionId == _electionId; + return other != null && + _setVersion == other.SetVersion && + object.Equals(_electionId, other.ElectionId); } private int Compare(ElectionId electionId) diff --git a/tests/MongoDB.Driver.Core.Tests/Core/Clusters/ElectionIdTests.cs b/tests/MongoDB.Driver.Core.Tests/Core/Clusters/ElectionIdTests.cs index 2e4aa59e41c..7b50dcc00fc 100644 --- a/tests/MongoDB.Driver.Core.Tests/Core/Clusters/ElectionIdTests.cs +++ b/tests/MongoDB.Driver.Core.Tests/Core/Clusters/ElectionIdTests.cs @@ -48,7 +48,7 @@ public void Equals_should_return_false_if_any_field_is_not_equal() } [Fact] - public void Equals_should_return_true_if_all_fiels_are_equal() + public void Equals_should_return_true_if_all_fields_are_equal() { var subject1 = new ElectionId(ObjectId.Empty); var subject2 = new ElectionId(ObjectId.Empty); diff --git a/tests/MongoDB.Driver.Core.Tests/Core/Clusters/MultiServerClusterTests.cs b/tests/MongoDB.Driver.Core.Tests/Core/Clusters/MultiServerClusterTests.cs index 7464e36163a..7b85b4f518f 100644 --- a/tests/MongoDB.Driver.Core.Tests/Core/Clusters/MultiServerClusterTests.cs +++ b/tests/MongoDB.Driver.Core.Tests/Core/Clusters/MultiServerClusterTests.cs @@ -685,6 +685,31 @@ public void Should_remove_a_server_whose_canonical_end_point_does_not_match_its_ _capturedEvents.Any().Should().BeFalse(); } + [Fact] + public void Should_not_invalidate_when_set_version_and_electionid_not_changed() + { + _settings = _settings.With(endPoints: new[] { _firstEndPoint, _secondEndPoint, _thirdEndPoint }); + var setVersion = 1; + var objectId = ObjectId.GenerateNewId().ToString(); + + var subject = CreateSubject(); + subject.Initialize(); + _capturedEvents.Clear(); + + PublishDescription(subject, _firstEndPoint, ServerType.ReplicaSetPrimary, setVersion: setVersion, electionId: new ElectionId(ObjectId.Parse(objectId))); + + var description = subject.Description; + description.State.Should().Be(ClusterState.Connected); + description.Type.Should().Be(ClusterType.ReplicaSet); + description.Servers.Should().BeEquivalentToWithComparer(GetDescriptions(_firstEndPoint, _secondEndPoint, _thirdEndPoint), _serverDescriptionComparer); + + PublishDescription(subject, _firstEndPoint, ServerType.ReplicaSetPrimary, setVersion: setVersion, electionId: new ElectionId(ObjectId.Parse(objectId))); + + _capturedEvents.Next().Should().BeOfType(); + _capturedEvents.Next().Should().BeOfType(); + _capturedEvents.Any().Should().BeFalse(); + } + [Fact] public void Should_not_remove_a_server_that_is_no_longer_in_a_secondaries_host_list() { From 85e7fab2371b52f034c25d0929e6bb22e1389b94 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:44:36 -0700 Subject: [PATCH 06/30] CSHARP-4814: Update AWS Auth test host and ECS Task (#1205) --- evergreen/evergreen.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/evergreen/evergreen.yml b/evergreen/evergreen.yml index 731c2db442a..50535ce8e19 100644 --- a/evergreen/evergreen.yml +++ b/evergreen/evergreen.yml @@ -2218,8 +2218,6 @@ buildvariants: - matrix_name: aws-auth-tests-linux matrix_spec: { version: ["6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" } display_name: "MONGODB-AWS Auth test ${version} ${os}" - run_on: - - ubuntu1804-test tasks: - name: aws-auth-tests From 680cb4e1ea776a075bf1589d28b310797732cf55 Mon Sep 17 00:00:00 2001 From: James Kovacs Date: Fri, 20 Oct 2023 17:07:04 -0600 Subject: [PATCH 07/30] CSHARP-4730: Always encode CompressionType.ZStandard as zstd. (#1207) --- src/MongoDB.Driver/MongoClientSettings.cs | 3 +- src/MongoDB.Driver/MongoUrlBuilder.cs | 2 +- .../MongoClientSettingsTests.cs | 14 +++++ .../MongoUrlBuilderTests.cs | 53 ++++++++----------- 4 files changed, 40 insertions(+), 32 deletions(-) diff --git a/src/MongoDB.Driver/MongoClientSettings.cs b/src/MongoDB.Driver/MongoClientSettings.cs index 56bb31c3cd5..ac83975089e 100644 --- a/src/MongoDB.Driver/MongoClientSettings.cs +++ b/src/MongoDB.Driver/MongoClientSettings.cs @@ -20,6 +20,7 @@ using System.Text; using MongoDB.Bson; using MongoDB.Driver.Core.Clusters; +using MongoDB.Driver.Core.Compression; using MongoDB.Driver.Core.Configuration; using MongoDB.Driver.Core.Misc; using MongoDB.Driver.Encryption; @@ -1221,7 +1222,7 @@ public override string ToString() } if (_compressors?.Any() ?? false) { - sb.AppendFormat("Compressors=[{0}];", string.Join(",", _compressors)); + sb.AppendFormat("Compressors=[{0}];", string.Join(",", _compressors.Select(x => CompressorTypeMapper.ToServerName(x.Type)))); } if (_connectionModeSwitch == ConnectionModeSwitch.UseConnectionMode) { diff --git a/src/MongoDB.Driver/MongoUrlBuilder.cs b/src/MongoDB.Driver/MongoUrlBuilder.cs index a083526ca32..fad1fc29a74 100644 --- a/src/MongoDB.Driver/MongoUrlBuilder.cs +++ b/src/MongoDB.Driver/MongoUrlBuilder.cs @@ -923,7 +923,7 @@ public override string ToString() if (_compressors?.Any() ?? false) { - query.AppendFormat("compressors={0}&", string.Join(",", _compressors.Select(x => x.Type.ToString().ToLowerInvariant()))); + query.AppendFormat("compressors={0}&", string.Join(",", _compressors.Select(x => CompressorTypeMapper.ToServerName(x.Type)))); foreach (var compressor in _compressors) { ParseAndAppendCompressorOptions(query, compressor); diff --git a/tests/MongoDB.Driver.Tests/MongoClientSettingsTests.cs b/tests/MongoDB.Driver.Tests/MongoClientSettingsTests.cs index ed64f7d05ea..7b93832d037 100644 --- a/tests/MongoDB.Driver.Tests/MongoClientSettingsTests.cs +++ b/tests/MongoDB.Driver.Tests/MongoClientSettingsTests.cs @@ -188,6 +188,20 @@ public void TestCompressors() Assert.Throws(() => { settings.Compressors = compressors; }); } + [Theory] + [InlineData(new[]{CompressorType.Snappy}, "Compressors=[snappy]")] + [InlineData(new[]{CompressorType.Zlib}, "Compressors=[zlib]")] + [InlineData(new[]{CompressorType.ZStandard}, "Compressors=[zstd]")] + [InlineData(new[]{CompressorType.ZStandard, CompressorType.Snappy, CompressorType.Zlib}, "Compressors=[zstd,snappy,zlib]")] + public void Compressors_ToString_outputs_correct_compressors(CompressorType[] compressors, string expectedConnectionString) + { + var settings = new MongoClientSettings {Compressors = compressors.Select(x => new CompressorConfiguration(x)).ToList()}; + + var result = settings.ToString(); + + Assert.Contains(expectedConnectionString, result); + } + #pragma warning disable CS0618 // Type or member is obsolete [Fact] public void TestConnectionMode() diff --git a/tests/MongoDB.Driver.Tests/MongoUrlBuilderTests.cs b/tests/MongoDB.Driver.Tests/MongoUrlBuilderTests.cs index 9edbf94957e..fa78d7bdcfd 100644 --- a/tests/MongoDB.Driver.Tests/MongoUrlBuilderTests.cs +++ b/tests/MongoDB.Driver.Tests/MongoUrlBuilderTests.cs @@ -346,39 +346,32 @@ public void TestComputedWaitQueueSize_UsingSize() } [Theory] - [InlineData(null, null, "mongodb://localhost", null)] - [InlineData(new[] { CompressorType.Zlib }, null, "mongodb://localhost/?compressors={0}", new[] { CompressorType.Zlib })] - [InlineData(new[] { CompressorType.Zlib }, "Level&zlibCompressionLevel&1", "mongodb://localhost/?compressors={0}", new[] { CompressorType.Zlib })] - [InlineData(new[] { CompressorType.Snappy }, null, "mongodb://localhost/?compressors={0}", new[] { CompressorType.Snappy })] - [InlineData(new[] { CompressorType.Snappy, CompressorType.Zlib }, null, "mongodb://localhost/?compressors={0}", new[] { CompressorType.Snappy, CompressorType.Zlib })] - public void TestCompressors(CompressorType[] compressors, string compressionProperty, string formatString, CompressorType[] values) + [InlineData(null, "mongodb://localhost")] + [InlineData(new[] { CompressorType.Zlib }, "mongodb://localhost/?compressors=zlib")] + [InlineData(new[] { CompressorType.ZStandard }, "mongodb://localhost/?compressors=zstd")] + [InlineData(new[] { CompressorType.Snappy }, "mongodb://localhost/?compressors=snappy")] + [InlineData(new[] { CompressorType.Snappy, CompressorType.Zlib }, "mongodb://localhost/?compressors=snappy,zlib")] + [InlineData(new[] { CompressorType.ZStandard, CompressorType.Snappy, CompressorType.Zlib }, "mongodb://localhost/?compressors=zstd,snappy,zlib")] + public void TestCompressors(CompressorType[] compressors, string expectedConnectionString) { var subject = new MongoUrlBuilder { Server = _localhost }; - if (compressors != null) - { - subject.Compressors = compressors - .Select(x => - { - var compression = new CompressorConfiguration(x); - if (!string.IsNullOrWhiteSpace(compressionProperty)) - { - var @params = compressionProperty.Split('&'); - compression.Properties.Add(@params[0], @params[2]); - } - return compression; - }) - .ToList(); - } - Assert.Equal(compressors ?? new CompressorType[0], subject.Compressors.Select(x => x.Type)); - var expectedValues = values == null ? string.Empty : string.Join(",", values.Select(c => c.ToString().ToLower())); - if (!string.IsNullOrWhiteSpace(compressionProperty)) - { - var @params = compressionProperty.Split('&'); - expectedValues += $"&{@params[1]}={@params[2]}"; - } - var canonicalConnectionString = string.Format(formatString, expectedValues); - Assert.Equal(canonicalConnectionString, subject.ToString()); + subject.Compressors = compressors?.Select(x => new CompressorConfiguration(x)).ToList(); + var connectionString = subject.ToString(); + + Assert.Equal(expectedConnectionString, connectionString); + } + + [Fact] + public void TestCompressorProperties() + { + var subject = new MongoUrlBuilder { Server = _localhost }; + + var zlibCompressor = new CompressorConfiguration(CompressorType.Zlib) { Properties = {{ "Level", 1 }} }; + subject.Compressors = new[] { zlibCompressor }; + var connectionString = subject.ToString(); + + Assert.Equal("mongodb://localhost/?compressors=zlib&zlibCompressionLevel=1", connectionString); } [Theory] From bd4c331328529a5c8c934babcc33ac9a71b9c1ab Mon Sep 17 00:00:00 2001 From: BorisDog Date: Mon, 23 Oct 2023 15:29:41 -0700 Subject: [PATCH 08/30] CSHARP-4444: Display all tests results in EG (#1210) --- build.cake | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/build.cake b/build.cake index 142b536373d..0427776f08e 100644 --- a/build.cake +++ b/build.cake @@ -512,8 +512,8 @@ Task("SmokeTests") toolSettings); RunTests( - buildConfig, - testProject, + buildConfig, + testProject, settings => { settings.NoBuild = false; @@ -753,8 +753,8 @@ Setup( var packageVersion = lowerTarget.StartsWith("smoketests") ? gitVersion.FullSemVer.Replace('+', '-') : gitVersion.LegacySemVer; Console.WriteLine($"Framework: {framework ?? "null (not set)"}, TargetPlatform: {targetPlatform}, IsReleaseMode: {isReleaseMode}, PackageVersion: {packageVersion}"); - var loggers = CreateLoggers(); - return new BuildConfig(isReleaseMode, framework, targetPlatform, packageVersion, loggers); + + return new BuildConfig(isReleaseMode, framework, targetPlatform, packageVersion); }); RunTarget(target); @@ -765,25 +765,24 @@ public class BuildConfig public string Framework { get; } public string PackageVersion { get; } public string TargetPlatform { get; } - public string[] Loggers { get; } - public BuildConfig(bool isReleaseMode, string framework, string targetPlatform, string packageVersion, string[] loggers) + public BuildConfig(bool isReleaseMode, string framework, string targetPlatform, string packageVersion) { IsReleaseMode = isReleaseMode; Framework = framework; TargetPlatform = targetPlatform; PackageVersion = packageVersion; - Loggers = loggers; } } -string[] CreateLoggers() +string[] CreateLoggers(string projectName) { - var testResultsFile = outputDirectory.Combine("test-results").Combine($"TEST-{target.ToLowerInvariant()}-{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}.xml"); + var testResultsFile = outputDirectory.Combine("test-results").Combine($"TEST-{projectName}-{target.ToLowerInvariant()}-{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}.xml"); + // Evergreen CI server requires JUnit output format to display test results var junitLogger = $"junit;LogFilePath={testResultsFile};FailureBodyFormat=Verbose"; var consoleLogger = "console;verbosity=detailed"; - return new []{ junitLogger, consoleLogger }; + return new[] { junitLogger, consoleLogger }; } void RunTests(BuildConfig buildConfig, Path path, string filter = null) @@ -793,16 +792,18 @@ void RunTests(BuildConfig buildConfig, Path path, string filter = null) void RunTests(BuildConfig buildConfig, Path path, Action settingsAction) { + var projectName = System.IO.Path.GetFileNameWithoutExtension(path.FullPath); + var settings = new DotNetTestSettings { NoBuild = true, NoRestore = true, Configuration = configuration, - Loggers = buildConfig.Loggers, + Loggers = CreateLoggers(projectName), ArgumentCustomization = args => args.Append($"-- RunConfiguration.TargetPlatform={buildConfig.TargetPlatform}"), Framework = buildConfig.Framework }; - + settingsAction?.Invoke(settings); DotNetTest(path.FullPath, settings); From c249251997170f50a08945d7e0f2b57d6c2e13c5 Mon Sep 17 00:00:00 2001 From: rstam Date: Mon, 16 Oct 2023 12:18:53 -0700 Subject: [PATCH 09/30] CSHARP-4809: If a string serializer doesn't implement IHasRepresentationSerializer don't assume string values are actually represented as strings. --- ...StringExpressionToRegexFilterTranslator.cs | 7 +- .../Jira/CSharp4809Tests.cs | 99 +++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4809Tests.cs diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/StringExpressionToRegexFilterTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/StringExpressionToRegexFilterTranslator.cs index 6aeb88114ad..9c09078b46e 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/StringExpressionToRegexFilterTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/StringExpressionToRegexFilterTranslator.cs @@ -519,8 +519,11 @@ private static (AstFilterField, Modifiers) TranslateField(TranslationContext con { var field = ExpressionToFilterFieldTranslator.Translate(context, fieldExpression); - if (field.Serializer is IRepresentationConfigurable representationConfigurable && - representationConfigurable.Representation != BsonType.String) + if (field.Serializer is not IHasRepresentationSerializer hasRepresentationSerializer) + { + throw new ExpressionNotSupportedException(fieldExpression, expression, because: $"it was not possible to determine whether field \"{field.Path}\" is represented as a string"); + } + if (hasRepresentationSerializer.Representation != BsonType.String) { throw new ExpressionNotSupportedException(fieldExpression, expression, because: $"field \"{field.Path}\" is not represented as a string"); } diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4809Tests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4809Tests.cs new file mode 100644 index 00000000000..443ab14f33a --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4809Tests.cs @@ -0,0 +1,99 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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; +using FluentAssertions; +using MongoDB.Bson; +using MongoDB.Bson.Serialization; +using MongoDB.Bson.Serialization.Attributes; +using MongoDB.Bson.Serialization.Serializers; +using MongoDB.Driver.Linq; +using MongoDB.TestHelpers.XunitExtensions; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira +{ + public class CSharp4809Tests : Linq3IntegrationTest + { + [Theory] + [ParameterAttributeData] + public void Filter_by_Id_with_custom_serializer_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + var id = "111111111111111111111111"; + + var filter = Builders.Filter.Where(x => x.Id == id); + + var renderedFilter = filter.Render(collection.DocumentSerializer, BsonSerializer.SerializerRegistry, linqProvider); + renderedFilter.Should().Be("{ _id : ObjectId('111111111111111111111111' ) }"); + + var result = collection.FindSync(filter).Single(); + result.X.Should().Be(1); + } + + private IMongoCollection GetCollection(LinqProvider linqProvider) + { + var collection = GetCollection("test", linqProvider); + CreateCollection( + collection, + new RootDocument { Id = "111111111111111111111111", X = 1 }, + new RootDocument { Id = "222222222222222222222222", X = 2 }); + return collection; + } + + private class RootDocument + { + [BsonSerializer(typeof(CustomStringRepresentedAsObjectIdSerializer))] + public string Id { get; set; } + public int X { get; set; } + } + + // This custom serializer is a slightly modified version of the custom serializer in the JIRA ticket + // note: normally this serializer would implement IHasRepresentationSerializer + // but for testing purposes we deliberately chose not to implement it + public class CustomStringRepresentedAsObjectIdSerializer : SerializerBase + { + public override string Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args) + { + BsonType type = context.Reader.GetCurrentBsonType(); + switch (type) + { + case BsonType.ObjectId: return context.Reader.ReadObjectId().ToString(); + default: + var message = $"Cannot convert a {type} to a String."; + throw new NotSupportedException(message); + } + } + + public override void Serialize(BsonSerializationContext context, BsonSerializationArgs args, string value) + { + context.Writer.WriteObjectId(ToObjectId(value)); + } + + private static ObjectId ToObjectId(string source) + { + if (ObjectId.TryParse(source, out ObjectId returnId)) + { + return returnId; + } + else + { + return ObjectId.Empty; + } + } + } + } +} From 0e2bc5fe58ee4043105014f5d4d6ae545e350568 Mon Sep 17 00:00:00 2001 From: BorisDog Date: Tue, 31 Oct 2023 15:24:33 -0700 Subject: [PATCH 10/30] CSHARP-4633: Avoiding Errors if Change Stream Events Exceed 16MB (#1209) --- .../ChangeStreamDocument.cs | 5 + .../ChangeStreamDocumentSerializer.cs | 1 + .../ChangeStreamSplitEvent.cs | 46 +++++++++ .../ChangeStreamSplitEventSerializer.cs | 70 +++++++++++++ src/MongoDB.Driver.Core/Core/Misc/Feature.cs | 6 ++ .../IAggregateFluentExtensions.cs | 12 +++ .../PipelineDefinitionBuilder.cs | 12 +++ .../PipelineStageDefinitionBuilder.cs | 8 ++ .../ChangeStreamDocumentSerializerTests.cs | 5 +- .../ChangeStreamDocumentTests.cs | 14 ++- .../ChangeStreamSplitEventSerializerTests.cs | 99 +++++++++++++++++++ .../IAggregateFluentExtensionsTests.cs | 24 +++-- .../PipelineDefinitionBuilderTests.cs | 23 +++++ .../PipelineStageDefinitionBuilderTests.cs | 19 +++- .../prose-tests/ChangeStreamProseTests.cs | 66 +++++++++++++ 15 files changed, 398 insertions(+), 12 deletions(-) create mode 100644 src/MongoDB.Driver.Core/ChangeStreamSplitEvent.cs create mode 100644 src/MongoDB.Driver.Core/ChangeStreamSplitEventSerializer.cs create mode 100644 tests/MongoDB.Driver.Core.Tests/ChangeStreamSplitEventSerializerTests.cs create mode 100644 tests/MongoDB.Driver.Tests/Specifications/change-streams/prose-tests/ChangeStreamProseTests.cs diff --git a/src/MongoDB.Driver.Core/ChangeStreamDocument.cs b/src/MongoDB.Driver.Core/ChangeStreamDocument.cs index cf9a2c1c998..2afdfde967f 100644 --- a/src/MongoDB.Driver.Core/ChangeStreamDocument.cs +++ b/src/MongoDB.Driver.Core/ChangeStreamDocument.cs @@ -223,6 +223,11 @@ public TDocument FullDocumentBeforeChange /// public BsonDocument ResumeToken => GetValue(nameof(ResumeToken), null); + /// + /// Gets the split event. + /// + public ChangeStreamSplitEvent SplitEvent => GetValue(nameof(SplitEvent), null); + /// /// Gets the update description. /// diff --git a/src/MongoDB.Driver.Core/ChangeStreamDocumentSerializer.cs b/src/MongoDB.Driver.Core/ChangeStreamDocumentSerializer.cs index 61e3cc850c0..22b2a06fb6b 100644 --- a/src/MongoDB.Driver.Core/ChangeStreamDocumentSerializer.cs +++ b/src/MongoDB.Driver.Core/ChangeStreamDocumentSerializer.cs @@ -52,6 +52,7 @@ public ChangeStreamDocumentSerializer( RegisterMember("OperationType", "operationType", ChangeStreamOperationTypeSerializer.Instance); RegisterMember("RenameTo", "to", ChangeStreamDocumentCollectionNamespaceSerializer.Instance); RegisterMember("ResumeToken", "_id", BsonDocumentSerializer.Instance); + RegisterMember("SplitEvent", "splitEvent", ChangeStreamSplitEventSerializer.Instance); RegisterMember("UpdateDescription", "updateDescription", ChangeStreamUpdateDescriptionSerializer.Instance); RegisterMember("WallTime", "wallTime", DateTimeSerializer.UtcInstance); } diff --git a/src/MongoDB.Driver.Core/ChangeStreamSplitEvent.cs b/src/MongoDB.Driver.Core/ChangeStreamSplitEvent.cs new file mode 100644 index 00000000000..a278d79313e --- /dev/null +++ b/src/MongoDB.Driver.Core/ChangeStreamSplitEvent.cs @@ -0,0 +1,46 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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 MongoDB.Driver.Core.Misc; + +namespace MongoDB.Driver +{ + /// + /// Change stream splitEvent data. + /// + public sealed class ChangeStreamSplitEvent + { + /// + /// Initializes a new instance of the class. + /// + /// Fragment index. + /// Total number of fragments. + public ChangeStreamSplitEvent(int fragment, int of) + { + Fragment = Ensure.IsGreaterThanZero(fragment, nameof(of)); + Of = Ensure.IsGreaterThanZero(of, nameof(of)); + } + + /// + /// Gets the fragment index, starting at 1. + /// + public int Fragment { get; } + + /// + /// Total number of fragments for the event. + /// + public int Of { get; } + } +} diff --git a/src/MongoDB.Driver.Core/ChangeStreamSplitEventSerializer.cs b/src/MongoDB.Driver.Core/ChangeStreamSplitEventSerializer.cs new file mode 100644 index 00000000000..fb31f1a1777 --- /dev/null +++ b/src/MongoDB.Driver.Core/ChangeStreamSplitEventSerializer.cs @@ -0,0 +1,70 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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; +using MongoDB.Bson.IO; +using MongoDB.Bson.Serialization; +using MongoDB.Bson.Serialization.Serializers; + +namespace MongoDB.Driver +{ + internal class ChangeStreamSplitEventSerializer : SealedClassSerializerBase + { + #region static + + public static ChangeStreamSplitEventSerializer Instance { get; } = new ChangeStreamSplitEventSerializer(); + + #endregion + + protected override ChangeStreamSplitEvent DeserializeValue(BsonDeserializationContext context, BsonDeserializationArgs args) + { + var reader = context.Reader; + var fragment = -1; + var of = -1; + + reader.ReadStartDocument(); + while (reader.ReadBsonType() != 0) + { + var fieldName = reader.ReadName(); + switch (fieldName) + { + case "fragment": + fragment = reader.ReadInt32(); + break; + + case "of": + of = reader.ReadInt32(); + break; + default: + throw new FormatException($"Invalid field name: \"{fieldName}\"."); + } + } + reader.ReadEndDocument(); + + return new(fragment, of); + } + + protected override void SerializeValue(BsonSerializationContext context, BsonSerializationArgs args, ChangeStreamSplitEvent value) + { + var writer = context.Writer; + writer.WriteStartDocument(); + writer.WriteName("fragment"); + writer.WriteInt32(value.Fragment); + writer.WriteName("of"); + writer.WriteInt32(value.Of); + writer.WriteEndDocument(); + } + } +} diff --git a/src/MongoDB.Driver.Core/Core/Misc/Feature.cs b/src/MongoDB.Driver.Core/Core/Misc/Feature.cs index ca358f69cdd..f9a6e018b4f 100644 --- a/src/MongoDB.Driver.Core/Core/Misc/Feature.cs +++ b/src/MongoDB.Driver.Core/Core/Misc/Feature.cs @@ -51,6 +51,7 @@ public class Feature private static readonly Feature __changeStreamForDatabase = new Feature("ChangeStreamForDatabase", WireVersion.Server40); private static readonly Feature __changeStreamPostBatchResumeToken = new Feature("ChangeStreamPostBatchResumeToken", WireVersion.Server40); private static readonly Feature __changeStreamPrePostImages = new Feature("ChangeStreamPrePostImages", WireVersion.Server60); + private static readonly Feature __changeStreamSplitEventStage = new Feature("ChangeStreamSplitEventStage", WireVersion.Server70); private static readonly Feature __clientSideEncryption = new Feature("ClientSideEncryption", WireVersion.Server42); private static readonly Feature __clusteredIndexes = new Feature("ClusteredIndexes", WireVersion.Server53); private static readonly Feature __collation = new Feature("Collation", WireVersion.Server34); @@ -292,6 +293,11 @@ public class Feature /// public static Feature ChangeStreamPrePostImages => __changeStreamPrePostImages; + /// + /// Gets the change stream splitEvent stage feature. + /// + public static Feature ChangeStreamSplitEventStage => __changeStreamSplitEventStage; + /// /// Gets the client side encryption feature. /// diff --git a/src/MongoDB.Driver/IAggregateFluentExtensions.cs b/src/MongoDB.Driver/IAggregateFluentExtensions.cs index ac9a9b0b2a3..dff585faf1a 100644 --- a/src/MongoDB.Driver/IAggregateFluentExtensions.cs +++ b/src/MongoDB.Driver/IAggregateFluentExtensions.cs @@ -150,6 +150,18 @@ public static IAggregateFluent BucketAutoForLinq2 + /// Appends a $changeStreamSplitLargeEvent stage to the pipeline. + /// + /// The type of the result. + /// The aggregate. + /// The fluent aggregate interface. + public static IAggregateFluent> ChangeStreamSplitLargeEvent(this IAggregateFluent> aggregate) + { + Ensure.IsNotNull(aggregate, nameof(aggregate)); + return aggregate.AppendStage(PipelineStageDefinitionBuilder.ChangeStreamSplitLargeEvent()); + } + /// /// Appends a $densify stage to the pipeline. /// diff --git a/src/MongoDB.Driver/PipelineDefinitionBuilder.cs b/src/MongoDB.Driver/PipelineDefinitionBuilder.cs index 70e2d3d40fd..dd358e07558 100644 --- a/src/MongoDB.Driver/PipelineDefinitionBuilder.cs +++ b/src/MongoDB.Driver/PipelineDefinitionBuilder.cs @@ -300,6 +300,18 @@ public static PipelineDefinition> Ch return pipeline.AppendStage(PipelineStageDefinitionBuilder.ChangeStream(options)); } + /// + /// Appends a $changeStreamSplitLargeEvent stage. + /// + /// The type of the input documents. + /// The pipeline. + /// A new pipeline with an additional stage. + public static PipelineDefinition, ChangeStreamDocument> ChangeStreamSplitLargeEvent( + this PipelineDefinition, ChangeStreamDocument> pipeline) + { + return pipeline.AppendStage(PipelineStageDefinitionBuilder.ChangeStreamSplitLargeEvent()); + } + /// /// Appends a $count stage to the pipeline. /// diff --git a/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs b/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs index b36e3c92c2b..771c3efdc13 100644 --- a/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs +++ b/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs @@ -382,6 +382,14 @@ public static PipelineStageDefinition> Chan return stage; } + /// + /// Creates a $changeStreamSplitLargeEvent stage. + /// + /// The type of the input documents. + /// The stage. + public static PipelineStageDefinition, ChangeStreamDocument> ChangeStreamSplitLargeEvent() => + (PipelineStageDefinition, ChangeStreamDocument>)new BsonDocument("$changeStreamSplitLargeEvent", new BsonDocument()); + /// /// Creates a $count stage. /// diff --git a/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentSerializerTests.cs b/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentSerializerTests.cs index a9fc19fc0b6..a69709961a7 100644 --- a/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentSerializerTests.cs +++ b/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentSerializerTests.cs @@ -1,4 +1,4 @@ -/* Copyright 2017-present MongoDB Inc. +/* Copyright 2010-present MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ public void constructor_should_initialize_instance() var result = new ChangeStreamDocumentSerializer(documentSerializer); result._documentSerializer().Should().BeSameAs(documentSerializer); - result._memberSerializationInfo().Count.Should().Be(14); + result._memberSerializationInfo().Count.Should().Be(15); AssertRegisteredMember(result, "ClusterTime", "clusterTime", BsonTimestampSerializer.Instance); AssertRegisteredMember(result, "CollectionNamespace", "ns", ChangeStreamDocumentCollectionNamespaceSerializer.Instance); AssertRegisteredMember(result, "CollectionUuid", "ui", GuidSerializer.StandardInstance); @@ -49,6 +49,7 @@ public void constructor_should_initialize_instance() AssertRegisteredMember(result, "OperationType", "operationType", ChangeStreamOperationTypeSerializer.Instance); AssertRegisteredMember(result, "RenameTo", "to", ChangeStreamDocumentCollectionNamespaceSerializer.Instance); AssertRegisteredMember(result, "ResumeToken", "_id", BsonDocumentSerializer.Instance); + AssertRegisteredMember(result, "SplitEvent", "splitEvent", ChangeStreamSplitEventSerializer.Instance); AssertRegisteredMember(result, "UpdateDescription", "updateDescription", ChangeStreamUpdateDescriptionSerializer.Instance); AssertRegisteredMember(result, "WallTime", "wallTime", DateTimeSerializer.UtcInstance); } diff --git a/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentTests.cs b/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentTests.cs index 8c56ba4082b..79a5de7f451 100644 --- a/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentTests.cs +++ b/tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentTests.cs @@ -1,4 +1,4 @@ -/* Copyright 2018-present MongoDB Inc. +/* Copyright 2010-present MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -461,6 +461,18 @@ public void ResumeToken_should_return_null_when_not_present() result.Should().BeNull(); } + [Fact] + public void SplitEvent_should_return_null_when_not_present() + { + var value = new BsonDocument("x", 1234); + var backingDocument = new BsonDocument { { "other", 1 } }; + var subject = CreateSubject(backingDocument: backingDocument); + + var result = subject.SplitEvent; + + result.Should().BeNull(); + } + [Theory] [InlineData("{}", new string[0], null)] [InlineData("{ x : 1 }", new[] { "a", "b", "c" }, null)] diff --git a/tests/MongoDB.Driver.Core.Tests/ChangeStreamSplitEventSerializerTests.cs b/tests/MongoDB.Driver.Core.Tests/ChangeStreamSplitEventSerializerTests.cs new file mode 100644 index 00000000000..73af4f6fbff --- /dev/null +++ b/tests/MongoDB.Driver.Core.Tests/ChangeStreamSplitEventSerializerTests.cs @@ -0,0 +1,99 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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; +using System.IO; +using FluentAssertions; +using MongoDB.Bson.IO; +using MongoDB.Bson.Serialization; +using Xunit; + +namespace MongoDB.Driver +{ + public class ChangeStreamSplitEventSerializerTests + { + [Theory] + [InlineData("{ fragment : 1, of: 2 }", 1, 2)] + [InlineData("{ fragment : 3, of: 3 }", 3, 3)] + public void Deserialize_should_return_expected_result(string json, int expectedFragment, int expectedOf) + { + var splitEvent = Deserialize(json); + + splitEvent.Fragment.Should().Be(expectedFragment); + splitEvent.Of.Should().Be(expectedOf); + } + + [Fact] + public void Deserialize_should_return_expected_result_when_value_is_null() + { + const string json = "null"; + + var splitEvent = Deserialize(json); + + splitEvent.Should().BeNull(); + } + + [Fact] + public void Deserialize_should_throw_when_an_invalid_field_is_present() + { + const string json = "{ x : 1 }"; + + var exception = Record.Exception(() => Deserialize(json)); + var formatException = exception.Should().BeOfType().Subject; + formatException.Message.Should().Be("Invalid field name: \"x\"."); + } + + [Fact] + public void Serialize_should_have_expected_result() + { + var subject = CreateSubject(); + var value = new ChangeStreamSplitEvent(1, 2); + var expectedResult = "{ \"fragment\" : 1, \"of\" : 2 }"; + + using var textWriter = new StringWriter(); + using var writer = new JsonWriter(textWriter); + var context = BsonSerializationContext.CreateRoot(writer); + subject.Serialize(context, value); + var result = textWriter.ToString(); + + result.Should().Be(expectedResult); + } + + [Fact] + public void Serialize_should_have_expected_result_when_value_is_null() + { + var subject = CreateSubject(); + var expectedResult = "null"; + + using var textWriter = new StringWriter(); + using var writer = new JsonWriter(textWriter); + var context = BsonSerializationContext.CreateRoot(writer); + subject.Serialize(context, null); + var result = textWriter.ToString(); + + result.Should().Be(expectedResult); + } + + private ChangeStreamSplitEvent Deserialize(string json) + { + var serializer = new ChangeStreamSplitEventSerializer(); + using var reader = new JsonReader(json); + var context = BsonDeserializationContext.CreateRoot(reader); + return serializer.Deserialize(context); + } + + private ChangeStreamSplitEventSerializer CreateSubject() => new ChangeStreamSplitEventSerializer(); + } +} diff --git a/tests/MongoDB.Driver.Tests/IAggregateFluentExtensionsTests.cs b/tests/MongoDB.Driver.Tests/IAggregateFluentExtensionsTests.cs index b35021cbd1c..8e9e23374e7 100644 --- a/tests/MongoDB.Driver.Tests/IAggregateFluentExtensionsTests.cs +++ b/tests/MongoDB.Driver.Tests/IAggregateFluentExtensionsTests.cs @@ -13,20 +13,20 @@ * limitations under the License. */ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; using FluentAssertions; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; -using MongoDB.TestHelpers.XunitExtensions; using MongoDB.Driver.Core.TestHelpers.XunitExtensions; using MongoDB.Driver.Linq; using MongoDB.Driver.Tests.Linq.Linq3Implementation; +using MongoDB.TestHelpers.XunitExtensions; using Moq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Xunit; namespace MongoDB.Driver.Tests @@ -34,6 +34,18 @@ namespace MongoDB.Driver.Tests public class IAggregateFluentExtensionsTests : Linq3IntegrationTest { // public methods + [Fact] + public void ChangeStreamSplitLargeEvent_should_generate_the_correct_stage() + { + var subject = CreateSubject() + .ChangeStream() + .ChangeStreamSplitLargeEvent(); + + var expectedStage = BsonDocument.Parse("{ $changeStreamSplitLargeEvent : { } }"); + + AssertLast(subject, expectedStage); + } + #if WINDOWS [Theory] [ParameterAttributeData] diff --git a/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs b/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs index a49ec3035c2..60865833867 100644 --- a/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs +++ b/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs @@ -83,6 +83,29 @@ public void ChangeStream_should_throw_when_pipeline_is_null() argumentNullException.ParamName.Should().Be("pipeline"); } + [Fact] + public void ChangeStreamSplitLargeEvent_should_add_the_expected_stage() + { + var pipeline = new EmptyPipelineDefinition>(); + + var result = pipeline.ChangeStreamSplitLargeEvent(); + + var serializer = new ChangeStreamDocumentSerializer(BsonDocumentSerializer.Instance); + var stages = RenderStages(result, serializer); + stages.Count.Should().Be(1); + stages[0].Should().Be("{ $changeStreamSplitLargeEvent : { } }"); + } + + [Fact] + public void ChangeStreamSplitLargeEvent_should_throw_when_pipeline_is_null() + { + PipelineDefinition, ChangeStreamDocument> pipeline = null; + var exception = Record.Exception(() => pipeline.ChangeStreamSplitLargeEvent()); + + var argumentNullException = exception.Should().BeOfType().Subject; + argumentNullException.ParamName.Should().Be("pipeline"); + } + [Fact] public void Lookup_should_throw_when_pipeline_is_null() { diff --git a/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs b/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs index bb1596dff10..397636e8950 100644 --- a/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs +++ b/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs @@ -13,15 +13,14 @@ * limitations under the License. */ +using System; +using System.Collections.Generic; using FluentAssertions; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Serializers; -using MongoDB.Driver.Core.Misc; using MongoDB.Driver.Core.TestHelpers.XunitExtensions; -using System; -using System.Collections.Generic; using Xunit; namespace MongoDB.Driver.Tests @@ -124,6 +123,15 @@ public void ChangeStream_should_return_the_expected_result_when_options_isNull() stage.Document.Should().Be("{ $changeStream : { } }"); } + [Fact] + public void ChangeStreamSplitLargeEvent_should_return_the_expected_result() + { + var result = PipelineStageDefinitionBuilder.ChangeStreamSplitLargeEvent(); + + var stage = RenderStage(result); + stage.Document.Should().Be("{ $changeStreamSplitLargeEvent : { } }"); + } + [Fact] public void GraphLookup_with_many_to_one_parameters_should_return_expected_result() { @@ -516,6 +524,11 @@ private RenderedPipelineStageDefinition> Rend return stage.Render(BsonDocumentSerializer.Instance, BsonSerializer.SerializerRegistry); } + private RenderedPipelineStageDefinition> RenderStage(PipelineStageDefinition, ChangeStreamDocument> stage) + { + return stage.Render(new ChangeStreamDocumentSerializer(BsonDocumentSerializer.Instance), BsonSerializer.SerializerRegistry); + } + private RenderedPipelineStageDefinition RenderStage(PipelineStageDefinition stage) { var registry = BsonSerializer.SerializerRegistry; diff --git a/tests/MongoDB.Driver.Tests/Specifications/change-streams/prose-tests/ChangeStreamProseTests.cs b/tests/MongoDB.Driver.Tests/Specifications/change-streams/prose-tests/ChangeStreamProseTests.cs new file mode 100644 index 00000000000..1d759011e35 --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Specifications/change-streams/prose-tests/ChangeStreamProseTests.cs @@ -0,0 +1,66 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Linq; +using FluentAssertions; +using MongoDB.Bson; +using MongoDB.Driver.Core.Clusters; +using MongoDB.Driver.Core.Misc; +using MongoDB.Driver.Core.TestHelpers.Logging; +using MongoDB.Driver.Core.TestHelpers.XunitExtensions; +using Xunit; +using Xunit.Abstractions; + +namespace MongoDB.Driver.Tests.Specifications.change_streams.prose_tests +{ + public class ChangeStreamProseTests : LoggableTestClass + { + public ChangeStreamProseTests(ITestOutputHelper testOutputHelper) + : base(testOutputHelper) + { + } + + [Fact] + public void ChangeStream_events_should_be_split_using_changeStreamSplitLargeEvent() + { + RequireServer.Check() + .Supports(Feature.ChangeStreamSplitEventStage) + .ClusterTypes(ClusterType.ReplicaSet, ClusterType.Sharded); + + const int dataLength = 10 * 1024 * 1024; + + var collectionName = DriverTestConfiguration.CollectionNamespace.CollectionName; + using var client = DriverTestConfiguration.CreateDisposableClient(); + var db = client.GetDatabase(DriverTestConfiguration.DatabaseNamespace.DatabaseName); + db.DropCollection(collectionName); + db.CreateCollection(collectionName, new() { ChangeStreamPreAndPostImagesOptions = new ChangeStreamPreAndPostImagesOptions() { Enabled = true } }); + var collection = db.GetCollection(collectionName); + + collection.InsertOne(new BsonDocument("value", new string('q', dataLength))); + + var pipeline = new EmptyPipelineDefinition>().ChangeStreamSplitLargeEvent(); + var changeStreamCursor = collection.Watch(pipeline, new() { FullDocumentBeforeChange = ChangeStreamFullDocumentBeforeChangeOption.Required }); + + var update = Builders.Update.Set("value", new string('z', dataLength)); + collection.UpdateOne(Builders.Filter.Empty, update); + + var events = changeStreamCursor.ToEnumerable().Take(2).ToArray(); + events[0].SplitEvent.Fragment.Should().Be(1); + events[0].SplitEvent.Of.Should().Be(2); + events[1].SplitEvent.Fragment.Should().Be(2); + events[1].SplitEvent.Of.Should().Be(2); + } + } +} From 985f4ef5bace7fe9ee5f2d8632e035f41657a4ee Mon Sep 17 00:00:00 2001 From: BorisDog Date: Tue, 31 Oct 2023 15:36:21 -0700 Subject: [PATCH 11/30] CSHARP-4716: Log informational message client-side based on detected environment (DocumentDB or CosmosDB) (#1203) --- .../Core/Clusters/ClusterFactory.cs | 35 ++++++ .../Core/Logging/LogCategories.cs | 6 +- .../Core/Logging/LogCategoryHelper.cs | 2 +- .../Core/Clusters/ClusterFactoryTests.cs | 104 ++++++++++++++++++ 4 files changed, 145 insertions(+), 2 deletions(-) create mode 100644 tests/MongoDB.Driver.Core.Tests/Core/Clusters/ClusterFactoryTests.cs diff --git a/src/MongoDB.Driver.Core/Core/Clusters/ClusterFactory.cs b/src/MongoDB.Driver.Core/Core/Clusters/ClusterFactory.cs index 31195e36e34..d71bfc0d123 100644 --- a/src/MongoDB.Driver.Core/Core/Clusters/ClusterFactory.cs +++ b/src/MongoDB.Driver.Core/Core/Clusters/ClusterFactory.cs @@ -13,9 +13,12 @@ * limitations under the License. */ +using System; +using System.Linq; using Microsoft.Extensions.Logging; using MongoDB.Driver.Core.Configuration; using MongoDB.Driver.Core.Events; +using MongoDB.Driver.Core.Logging; using MongoDB.Driver.Core.Misc; using MongoDB.Driver.Core.Servers; @@ -43,6 +46,8 @@ public ICluster CreateCluster() { var settings = _settings; + ProcessClusterEnvironment(settings); + bool createLoadBalancedCluster = settings.LoadBalanced; if (createLoadBalancedCluster) { @@ -102,5 +107,35 @@ private LoadBalancedCluster CreateLoadBalancedCluster(ClusterSettings setting) { return new LoadBalancedCluster(setting, _serverFactory, _eventSubscriber, _loggerFactory); } + + private void ProcessClusterEnvironment(ClusterSettings settings) + { + foreach (var (host, _) in settings.EndPoints.Select(EndPointHelper.GetHostAndPort)) + { + if (LogIfCosmosDB(host) || LogIfDocumentDB(host)) + { + return; + } + } + + bool LogIfCosmosDB(string host) => + LogIfExternalEnvironment(host, "CosmosDB", "https://www.mongodb.com/supportability/cosmosdb", ".cosmos.azure.com"); + + bool LogIfDocumentDB(string host) => + LogIfExternalEnvironment(host, "DocumentDB", "https://www.mongodb.com/supportability/documentdb", ".docdb.amazonaws.com", ".docdb-elastic.amazonaws.com"); + + bool LogIfExternalEnvironment(string host, string environment, string documentationUrl, params string[] suffixes) + { + if (suffixes.Any(s => host.EndsWith(s, StringComparison.InvariantCultureIgnoreCase))) + { + var logger = _loggerFactory.CreateLogger(); + logger.LogInformation("You appear to be connected to a {environment} cluster. For more information regarding feature compatibility and support please visit {url}", environment, documentationUrl); + + return true; + } + + return false; + } + } } } diff --git a/src/MongoDB.Driver.Core/Core/Logging/LogCategories.cs b/src/MongoDB.Driver.Core/Core/Logging/LogCategories.cs index 2647d6ed5d4..7a70642910e 100644 --- a/src/MongoDB.Driver.Core/Core/Logging/LogCategories.cs +++ b/src/MongoDB.Driver.Core/Core/Logging/LogCategories.cs @@ -17,7 +17,11 @@ namespace MongoDB.Driver.Core.Logging { internal static class LogCategories { - public abstract class EventCategory { } + public abstract class BaseCategory { } + + public abstract class EventCategory : BaseCategory { } + + public sealed class Client : BaseCategory { } public sealed class Command : EventCategory { } diff --git a/src/MongoDB.Driver.Core/Core/Logging/LogCategoryHelper.cs b/src/MongoDB.Driver.Core/Core/Logging/LogCategoryHelper.cs index e24e960713f..c43d793f0c8 100644 --- a/src/MongoDB.Driver.Core/Core/Logging/LogCategoryHelper.cs +++ b/src/MongoDB.Driver.Core/Core/Logging/LogCategoryHelper.cs @@ -71,7 +71,7 @@ _ when __driverNamespaces.Any(n => categoryName.StartsWith(n)) => PrefixInternal return result; } - public static string GetCategoryName() where T : LogCategories.EventCategory + public static string GetCategoryName() where T : LogCategories.BaseCategory { var type = typeof(T); if (!__catergories.TryGetValue(type, out var result)) diff --git a/tests/MongoDB.Driver.Core.Tests/Core/Clusters/ClusterFactoryTests.cs b/tests/MongoDB.Driver.Core.Tests/Core/Clusters/ClusterFactoryTests.cs new file mode 100644 index 00000000000..ab4f1ff375c --- /dev/null +++ b/tests/MongoDB.Driver.Core.Tests/Core/Clusters/ClusterFactoryTests.cs @@ -0,0 +1,104 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Linq; +using FluentAssertions; +using Microsoft.Extensions.Logging; +using MongoDB.Driver.Core.Configuration; +using MongoDB.Driver.Core.Events; +using MongoDB.Driver.Core.Servers; +using MongoDB.Driver.Core.TestHelpers.Logging; +using Moq; +using Xunit; +using Xunit.Abstractions; + +namespace MongoDB.Driver.Core.Clusters +{ + public class ClusterFactoryTests : LoggableTestClass + { + private const string ExpectedCosmosDBMessage = "You appear to be connected to a CosmosDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/cosmosdb"; + private const string ExpectedDocumentDBMessage = "You appear to be connected to a DocumentDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/documentdb"; + + public ClusterFactoryTests(ITestOutputHelper output) : base(output) + { + } + + [Theory] + [InlineData("mongodb://a.MONGO.COSMOS.AZURE.COM:19555", ExpectedCosmosDBMessage)] + [InlineData("mongodb://a.MONGO.COSMOS.AZURE.COM:19555", ExpectedCosmosDBMessage)] + [InlineData("mongodb://a.mongo.cosmos.azure.com:19555", ExpectedCosmosDBMessage)] + [InlineData("mongodb://a.DOCDB-ELASTIC.AMAZONAWS.COM:27017/", ExpectedDocumentDBMessage)] + [InlineData("mongodb://a.docdb-elastic.amazonaws.com:27017/", ExpectedDocumentDBMessage)] + [InlineData("mongodb://a.DOCDB.AMAZONAWS.COM", ExpectedDocumentDBMessage)] + [InlineData("mongodb://a.docdb.amazonaws.com", ExpectedDocumentDBMessage)] + // SRV matching + [InlineData("mongodb+srv://A.MONGO.COSMOS.AZURE.COM", ExpectedCosmosDBMessage)] + [InlineData("mongodb+srv://a.mongo.cosmos.azure.com", ExpectedCosmosDBMessage)] + [InlineData("mongodb+srv://a.DOCDB.AMAZONAWS.COM/", ExpectedDocumentDBMessage)] + [InlineData("mongodb+srv://a.docdb.amazonaws.com/", ExpectedDocumentDBMessage)] + [InlineData("mongodb+srv://a.DOCDB-ELASTIC.AMAZONAWS.COM/", ExpectedDocumentDBMessage)] + [InlineData("mongodb+srv://a.docdb-elastic.amazonaws.com/", ExpectedDocumentDBMessage)] + // Mixing internal and external hosts (unlikely in practice) + [InlineData("mongodb://a.example.com:27017,b.mongo.cosmos.azure.com:19555/", ExpectedCosmosDBMessage)] + [InlineData("mongodb://a.example.com:27017,b.docdb.amazonaws.com:27017/", ExpectedDocumentDBMessage)] + [InlineData("mongodb://a.example.com:27017,b.docdb-elastic.amazonaws.com:27017/", ExpectedDocumentDBMessage)] + // Multiple external hosts + [InlineData("mongodb://a.docdb-elastic.amazonaws.com:27017,b.mongo.cosmos.azure.com:19555/", ExpectedDocumentDBMessage)] + [InlineData("mongodb://a.mongo.cosmos.azure.com:19554,b.docdb-elastic.amazonaws.com:27017,c.mongo.cosmos.azure.com:19555/", ExpectedCosmosDBMessage)] + public void ClusterFactory_should_log_if_external_environment_is_detected(string connectionString, string expectedMessage) + { + var subject = CreateSubject(connectionString); + _ = subject.CreateCluster(); + + var logs = GetLogs(); + logs.Length.Should().Be(1); + logs[0].FormattedMessage.Should().Be(expectedMessage); + } + + [Theory] + [InlineData("mongodb://a.mongo.cosmos.azure.com.tld:19555")] + [InlineData("mongodb://a.docdb-elastic.amazonaws.com.t")] + [InlineData("mongodb://a.docdb-elastic.amazonaws.com.t,b.docdb-elastic.amazonaws.com.t")] + [InlineData("mongodb+srv://a.example.com")] + [InlineData("mongodb+srv://a.mongodb.net/")] + [InlineData("mongodb+srv://a.mongo.cosmos.azure.com.tld/")] + [InlineData("mongodb+srv://a.docdb-elastic.amazonaws.com.tld/")] + public void ClusterFactory_should_not_log_if_no_external_environment_is_detected(string connectionString) + { + var subject = CreateSubject(connectionString); + _ = subject.CreateCluster(); + + var logs = GetLogs(); + logs.Length.Should().Be(0); + } + + private ClusterFactory CreateSubject(string connectionString) + { + var parsedConnectionString = new ConnectionString(connectionString); + + var eventSubscriberMock = Mock.Of(); + var serverFactoryMock = Mock.Of(); + + var clusterSettings = new ClusterSettings(endPoints: Optional.Enumerable(parsedConnectionString.Hosts)); + var clusterFactory = new ClusterFactory(clusterSettings, serverFactoryMock, eventSubscriberMock, LoggerFactory); + + return clusterFactory; + } + + private LogEntry[] GetLogs() => Logs + .Where(l => l.LogLevel == LogLevel.Information && l.Category == "MongoDB.Client") + .ToArray(); + } +} From 190d37cc9298182efdb6484447984459ac26d5ab Mon Sep 17 00:00:00 2001 From: rstam Date: Wed, 1 Nov 2023 11:17:18 -0700 Subject: [PATCH 12/30] CSHARP-4821: LINQ3 Where with enum filter followed by Select with cast throws System.ArgumentException. --- .../Serializers/DateTimeSerializer.cs | 11 ++ ...essionToAggregationExpressionTranslator.cs | 24 ++-- .../Jira/CSharp4821Tests.cs | 123 ++++++++++++++++++ 3 files changed, 146 insertions(+), 12 deletions(-) create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4821Tests.cs diff --git a/src/MongoDB.Bson/Serialization/Serializers/DateTimeSerializer.cs b/src/MongoDB.Bson/Serialization/Serializers/DateTimeSerializer.cs index 0a96e23afb8..3621681c587 100644 --- a/src/MongoDB.Bson/Serialization/Serializers/DateTimeSerializer.cs +++ b/src/MongoDB.Bson/Serialization/Serializers/DateTimeSerializer.cs @@ -27,6 +27,17 @@ namespace MongoDB.Bson.Serialization.Serializers /// public class DateTimeSerializer : StructSerializerBase, IRepresentationConfigurable { + #region static + // private static fields + private static readonly DateTimeSerializer __instance = new DateTimeSerializer(); + + // public static properties + /// + /// Gets the default DateTimeSerializer. + /// + public static DateTimeSerializer Instance => __instance; + #endregion + // private constants private static class Flags { diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ConvertExpressionToAggregationExpressionTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ConvertExpressionToAggregationExpressionTranslator.cs index b7636d7740e..a510e17be8a 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ConvertExpressionToAggregationExpressionTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ConvertExpressionToAggregationExpressionTranslator.cs @@ -88,21 +88,21 @@ public static AggregationExpression Translate(TranslationContext context, UnaryE } else { - var to = expressionType.FullName switch + AstExpression to; + switch (expressionType.FullName) { - "MongoDB.Bson.ObjectId" => "objectId", - "System.Boolean" => "bool", - "System.DateTime" => "date", - "System.Decimal" => "decimal", - "System.Double" => "double", - "System.Int32" => "int", - "System.Int64" => "long", - "System.String" => "string", - _ => throw new ExpressionNotSupportedException(expression, because: $"conversion to {expressionType} is not supported") - }; + case "MongoDB.Bson.ObjectId": to = "objectId"; serializer = ObjectIdSerializer.Instance; break; + case "System.Boolean": to = "bool"; serializer = BooleanSerializer.Instance; break; + case "System.DateTime": to = "date"; serializer = DateTimeSerializer.Instance; break; + case "System.Decimal": to = "decimal"; serializer = DecimalSerializer.Decimal128Instance; break; // not the default representation + case "System.Double": to = "double"; serializer = DoubleSerializer.Instance; break; + case "System.Int32": to = "int"; serializer = Int32Serializer.Instance; break; + case "System.Int64": to = "long"; serializer = Int64Serializer.Instance; break; + case "System.String": to = "string"; serializer = StringSerializer.Instance; break; + default: throw new ExpressionNotSupportedException(expression, because: $"conversion to {expressionType} is not supported"); + } ast = AstExpression.Convert(ast, to); - serializer = context.KnownSerializersRegistry.GetSerializer(expression); } return new AggregationExpression(expression, ast, serializer); diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4821Tests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4821Tests.cs new file mode 100644 index 00000000000..811c30de5ec --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4821Tests.cs @@ -0,0 +1,123 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Linq; +using FluentAssertions; +using MongoDB.Driver.Core.Misc; +using MongoDB.Driver.Core.TestHelpers.XunitExtensions; +using MongoDB.Driver.Linq; +using MongoDB.TestHelpers.XunitExtensions; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira +{ + public class CSharp4821Tests : Linq3IntegrationTest + { + [Theory] + [ParameterAttributeData] + public void Where_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.Status == Status.Open); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { Status : 1 } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Select_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.ToConversionOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => new { Result = (int)x.Version }); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { Result : '$Version', _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { Result : { $toInt : '$Version' }, _id : 0 } }"); + } + + var results = queryable.ToList(); + results.Select(x => x.Result).Should().Equal(1, 2); + } + + [Theory] + [ParameterAttributeData] + public void Where_followed_by_Select_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.ToConversionOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.Status == Status.Open) + .Select(x => new { Result = (int)x.Version }); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages( + stages, + "{ $match : { Status : 1 } }", + "{ $project : { Result : '$Version', _id : 0 } }"); + } + else + { + AssertStages( + stages, + "{ $match : { Status : 1 } }", + "{ $project : { Result : { $toInt : '$Version' }, _id : 0 } }"); + } + + var results = queryable.ToList(); + results.Select(x => x.Result).Should().Equal(1); + } + + private IMongoCollection GetCollection(LinqProvider linqProvider) + { + var collection = GetCollection("test", linqProvider); + CreateCollection( + collection, + new C { Id = 1, Status = Status.Open, Version = 1L }, + new C { Id = 2, Status = Status.Closed, Version = 2L }); + return collection; + } + + private class C + { + public int Id { get; set; } + public Status Status { get; set; } + public long Version { get; set; } + } + +#pragma warning disable CA1717 // Only FlagsAttribute enums should have plural names + public enum Status { Closed, Open }; +#pragma warning restore CA1717 // Only FlagsAttribute enums should have plural names + } +} From 8e4340410614c38096befa4dee27d276f85db207 Mon Sep 17 00:00:00 2001 From: rstam Date: Wed, 1 Nov 2023 15:17:58 -0700 Subject: [PATCH 13/30] CSHARP-4486: Add support for bitwise operators. --- src/MongoDB.Driver.Core/Core/Misc/Feature.cs | 6 + .../Linq3Implementation/Ast/AstNodeType.cs | 2 - .../Ast/Expressions/AstAndExpression.cs | 59 --- .../Ast/Expressions/AstExpression.cs | 159 ++++---- .../Ast/Expressions/AstNaryExpression.cs | 1 + .../Ast/Expressions/AstNaryOperator.cs | 10 + .../Ast/Expressions/AstOrExpression.cs | 59 --- .../Ast/Expressions/AstUnaryOperator.cs | 2 + .../Ast/Visitors/AstNodeVisitor.cs | 10 - ...essionToAggregationExpressionTranslator.cs | 11 +- ...essionToAggregationExpressionTranslator.cs | 1 + ...essionToAggregationExpressionTranslator.cs | 2 +- .../Jira/CSharp4486Tests.cs | 383 ++++++++++++++++++ 13 files changed, 481 insertions(+), 224 deletions(-) delete mode 100644 src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstAndExpression.cs delete mode 100644 src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstOrExpression.cs create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4486Tests.cs diff --git a/src/MongoDB.Driver.Core/Core/Misc/Feature.cs b/src/MongoDB.Driver.Core/Core/Misc/Feature.cs index f9a6e018b4f..bb01704775d 100644 --- a/src/MongoDB.Driver.Core/Core/Misc/Feature.cs +++ b/src/MongoDB.Driver.Core/Core/Misc/Feature.cs @@ -45,6 +45,7 @@ public class Feature private static readonly Feature __aggregateToString = new Feature("AggregateToString", WireVersion.Server40); private static readonly Feature __aggregateUnionWith = new Feature("AggregateUnionWith", WireVersion.Server44); private static readonly Feature __arrayFilters = new Feature("ArrayFilters", WireVersion.Server36); + private static readonly Feature __bitwiseOperators = new Feature("BitwiseOperators", WireVersion.Server63); private static readonly Feature __bypassDocumentValidation = new Feature("BypassDocumentValidation", WireVersion.Server32); private static readonly Feature __changeStreamStage = new Feature("ChangeStreamStage", WireVersion.Server36); private static readonly Feature __changeStreamAllChangesForCluster = new Feature("ChangeStreamAllChangesForCluster", WireVersion.Server40); @@ -261,6 +262,11 @@ public class Feature [Obsolete("This property will be removed in a later release.")] public static Feature ArrayFilters => __arrayFilters; + /// + /// Gets the bitwise operators feature. + /// + public static Feature BitwiseOperators => __bitwiseOperators; + /// /// Gets the bypass document validation feature. /// diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/AstNodeType.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/AstNodeType.cs index 8966e768138..d7fd487df93 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/AstNodeType.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/AstNodeType.cs @@ -20,7 +20,6 @@ internal enum AstNodeType AccumulatorField, AddFieldsStage, AllFilterOperation, - AndExpression, AndFilter, BinaryExpression, BinaryWindowExpression, @@ -103,7 +102,6 @@ internal enum AstNodeType NorFilter, NotFilterOperation, NullaryWindowExpression, - OrExpression, OrFilter, OutStage, PickAccumulatorExpression, diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstAndExpression.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstAndExpression.cs deleted file mode 100644 index 497ac1122f0..00000000000 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstAndExpression.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* Copyright 2010-present MongoDB Inc. -* -* 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 MongoDB.Bson; -using MongoDB.Driver.Core.Misc; -using MongoDB.Driver.Linq.Linq3Implementation.Ast.Visitors; -using MongoDB.Driver.Linq.Linq3Implementation.Misc; -using System.Collections.Generic; -using System.Linq; - -namespace MongoDB.Driver.Linq.Linq3Implementation.Ast.Expressions -{ - internal sealed class AstAndExpression : AstExpression - { - private readonly IReadOnlyList _args; - - public AstAndExpression(IEnumerable args) - { - _args = Ensure.IsNotNull(args, nameof(args)).AsReadOnlyList(); - Ensure.That(_args.Count > 0, "args cannot be empty.", nameof(args)); - Ensure.That(!_args.Contains(null), "args cannot contain null.", nameof(args)); - } - - public IReadOnlyList Args => _args; - public override AstNodeType NodeType => AstNodeType.AndExpression; - - public override AstNode Accept(AstNodeVisitor visitor) - { - return visitor.VisitAndExpression(this); - } - - public override BsonValue Render() - { - return new BsonDocument("$and", new BsonArray(_args.Select(a => a.Render()))); - } - - public AstAndExpression Update(IEnumerable args) - { - if (args == _args) - { - return this; - } - - return new AstAndExpression(args); - } - } -} diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstExpression.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstExpression.cs index 03d26deb235..6e8faa2edd8 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstExpression.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstExpression.cs @@ -80,24 +80,8 @@ public static AstExpression Add(params AstExpression[] args) return new AstConstantExpression(value); } - if (args.Any(arg => arg is AstNaryExpression naryExpression && naryExpression.Operator == AstNaryOperator.Add)) - { - var flattenedArgs = new List(); - foreach (var arg in args) - { - if (arg is AstNaryExpression naryExpression && naryExpression.Operator == AstNaryOperator.Add) - { - flattenedArgs.AddRange(naryExpression.Args); - } - else - { - flattenedArgs.Add(arg); - } - } - return new AstNaryExpression(AstNaryOperator.Add, flattenedArgs); - } - - return new AstNaryExpression(AstNaryOperator.Add, args); + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.Add); + return new AstNaryExpression(AstNaryOperator.Add, flattenedArgs); } public static AstExpression AllElementsTrue(AstExpression array) @@ -122,24 +106,8 @@ public static AstExpression And(params AstExpression[] args) return new AstConstantExpression(value); } - if (args.Any(arg => arg.NodeType == AstNodeType.AndExpression)) - { - var flattenedArgs = new List(); - foreach (var arg in args) - { - if (arg is AstAndExpression andExpression) - { - flattenedArgs.AddRange(andExpression.Args); - } - else - { - flattenedArgs.Add(arg); - } - } - return new AstAndExpression(flattenedArgs); - } - - return new AstAndExpression(args); + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.And); + return new AstNaryExpression(AstNaryOperator.And, flattenedArgs); } public static AstExpression ArrayElemAt(AstExpression array, AstExpression index) @@ -162,6 +130,42 @@ public static AstExpression BinaryWindowExpression(AstBinaryWindowOperator @oper return new AstBinaryWindowExpression(@operator, arg1, arg2, window); } + public static AstExpression BitAnd(params AstExpression[] args) + { + Ensure.IsNotNull(args, nameof(args)); + Ensure.That(args.Length > 0, "args cannot be empty.", nameof(args)); + Ensure.That(!args.Contains(null), "args cannot contain null.", nameof(args)); + + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.BitAnd); + return new AstNaryExpression(AstNaryOperator.BitAnd, flattenedArgs); + } + + public static AstExpression BitNot(AstExpression arg) + { + Ensure.IsNotNull(arg, nameof(arg)); + return new AstUnaryExpression(AstUnaryOperator.BitNot, arg); + } + + public static AstExpression BitOr(params AstExpression[] args) + { + Ensure.IsNotNull(args, nameof(args)); + Ensure.That(args.Length > 0, "args cannot be empty.", nameof(args)); + Ensure.That(!args.Contains(null), "args cannot contain null.", nameof(args)); + + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.BitOr); + return new AstNaryExpression(AstNaryOperator.BitOr, flattenedArgs); + } + + public static AstExpression BitXor(params AstExpression[] args) + { + Ensure.IsNotNull(args, nameof(args)); + Ensure.That(args.Length > 0, "args cannot be empty.", nameof(args)); + Ensure.That(!args.Contains(null), "args cannot contain null.", nameof(args)); + + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.BitXor); + return new AstNaryExpression(AstNaryOperator.BitXor, flattenedArgs); + } + public static AstExpression Ceil(AstExpression arg) { return new AstUnaryExpression(AstUnaryOperator.Ceil, arg); @@ -213,24 +217,8 @@ public static IEnumerable ComputedFields(params (string name, public static AstExpression Concat(params AstExpression[] args) { - if (args.Any(a => a is AstNaryExpression naryExpression && naryExpression.Operator == AstNaryOperator.Concat)) - { - var flattenedArgs = new List(); - foreach (var arg in args) - { - if (arg is AstNaryExpression naryExpression && naryExpression.Operator == AstNaryOperator.Concat) - { - flattenedArgs.AddRange(naryExpression.Args); - } - else - { - flattenedArgs.Add(arg); - } - } - return new AstNaryExpression(AstNaryOperator.Concat, flattenedArgs); - } - - return new AstNaryExpression(AstNaryOperator.Concat, args); + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.Concat); + return new AstNaryExpression(AstNaryOperator.Concat, flattenedArgs); } public static AstExpression ConcatArrays(params AstExpression[] arrays) @@ -568,25 +556,8 @@ public static AstExpression Mod(AstExpression arg1, AstExpression arg2) public static AstExpression Multiply(params AstExpression[] args) { - if (args.Any(arg => arg is AstNaryExpression naryExpression && naryExpression.Operator == AstNaryOperator.Multiply)) - { - var flattenedArgs = new List(); - foreach (var arg in args) - { - if (arg is AstNaryExpression naryExpression && naryExpression.Operator == AstNaryOperator.Multiply) - { - flattenedArgs.AddRange(naryExpression.Args); - } - else - { - flattenedArgs.Add(arg); - } - } - return new AstNaryExpression(AstNaryOperator.Multiply, flattenedArgs); - } - - - return new AstNaryExpression(AstNaryOperator.Multiply, args); + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.Multiply); + return new AstNaryExpression(AstNaryOperator.Multiply, flattenedArgs); } public static AstExpression Ne(AstExpression arg1, AstExpression arg2) @@ -610,24 +581,8 @@ public static AstExpression Or(params AstExpression[] args) Ensure.That(args.Length > 0, "args cannot be empty.", nameof(args)); Ensure.That(!args.Contains(null), "args cannot contain null.", nameof(args)); - if (args.Any(a => a.NodeType == AstNodeType.OrExpression)) - { - var flattenedArgs = new List(); - foreach (var arg in args) - { - if (arg is AstOrExpression orExpression) - { - flattenedArgs.AddRange(orExpression.Args); - } - else - { - flattenedArgs.Add(arg); - } - } - return new AstOrExpression(flattenedArgs); - } - - return new AstOrExpression(args); + var flattenedArgs = FlattenNaryArgs(args, AstNaryOperator.Or); + return new AstNaryExpression(AstNaryOperator.Or, flattenedArgs); } public static AstExpression PickExpression(AstPickOperator @operator, AstExpression source, AstSortFields sortBy, AstVarExpression @as, AstExpression selector, AstExpression n) @@ -951,6 +906,28 @@ private static bool AllArgsAreConstantInt32s(AstExpression[] args, out List values = null; return false; } + + private static IEnumerable FlattenNaryArgs(IEnumerable args, AstNaryOperator naryOperator) + { + if (args.Any(arg => arg is AstNaryExpression naryExpression && naryExpression.Operator == naryOperator)) + { + var flattenedArgs = new List(); + foreach (var arg in args) + { + if (arg is AstNaryExpression naryExpression && naryExpression.Operator == naryOperator) + { + flattenedArgs.AddRange(naryExpression.Args); + } + else + { + flattenedArgs.Add(arg); + } + } + return flattenedArgs; + } + + return args; + } #endregion static // public methods diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryExpression.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryExpression.cs index 6b3e5689450..3b63059cde7 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryExpression.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryExpression.cs @@ -31,6 +31,7 @@ public AstNaryExpression(AstNaryOperator @operator, IEnumerable a { _operator = @operator; _args = Ensure.IsNotNull(args, nameof(args)).AsReadOnlyList(); + Ensure.That(!args.Contains(null), "args cannot contain null.", nameof(args)); } public AstNaryExpression(AstNaryOperator @operator, params AstExpression[] args) diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryOperator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryOperator.cs index 9f525e912c0..d5f2c1e1e73 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryOperator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstNaryOperator.cs @@ -20,13 +20,18 @@ namespace MongoDB.Driver.Linq.Linq3Implementation.Ast.Expressions internal enum AstNaryOperator { Add, + And, Avg, + BitAnd, + BitOr, + BitXor, Concat, ConcatArrays, Max, MergeObjects, Min, Multiply, + Or, SetEquals, SetIntersection, SetUnion, @@ -42,13 +47,18 @@ public static string Render(this AstNaryOperator @operator) return @operator switch { AstNaryOperator.Add => "$add", + AstNaryOperator.And => "$and", AstNaryOperator.Avg => "$avg", + AstNaryOperator.BitAnd => "$bitAnd", + AstNaryOperator.BitOr => "$bitOr", + AstNaryOperator.BitXor => "$bitXor", AstNaryOperator.Concat => "$concat", AstNaryOperator.ConcatArrays => "$concatArrays", AstNaryOperator.Max => "$max", AstNaryOperator.MergeObjects => "$mergeObjects", AstNaryOperator.Min => "$min", AstNaryOperator.Multiply => "$multiply", + AstNaryOperator.Or => "$or", AstNaryOperator.SetEquals => "$setEquals", AstNaryOperator.SetIntersection => "$setIntersection", AstNaryOperator.SetUnion => "$setUnion", diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstOrExpression.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstOrExpression.cs deleted file mode 100644 index ea46eb3b727..00000000000 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstOrExpression.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* Copyright 2010-present MongoDB Inc. -* -* 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 MongoDB.Bson; -using MongoDB.Driver.Core.Misc; -using MongoDB.Driver.Linq.Linq3Implementation.Ast.Visitors; -using MongoDB.Driver.Linq.Linq3Implementation.Misc; -using System.Collections.Generic; -using System.Linq; - -namespace MongoDB.Driver.Linq.Linq3Implementation.Ast.Expressions -{ - internal sealed class AstOrExpression : AstExpression - { - private readonly IReadOnlyList _args; - - public AstOrExpression(IEnumerable args) - { - _args = Ensure.IsNotNull(args, nameof(args)).AsReadOnlyList(); - Ensure.That(_args.Count > 0, "args cannot be empty.", nameof(args)); - Ensure.That(!_args.Contains(null), "args cannot contain null.", nameof(args)); - } - - public IReadOnlyList Args => _args; - public override AstNodeType NodeType => AstNodeType.OrExpression; - - public override AstNode Accept(AstNodeVisitor visitor) - { - return visitor.VisitOrExpression(this); - } - - public override BsonValue Render() - { - return new BsonDocument("$or", new BsonArray(_args.Select(a => a.Render()))); - } - - public AstOrExpression Update(IEnumerable args) - { - if (args == _args) - { - return this; - } - - return new AstOrExpression(args); - } - } -} diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstUnaryOperator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstUnaryOperator.cs index 2b6216113bb..7c34d8759c0 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstUnaryOperator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstUnaryOperator.cs @@ -32,6 +32,7 @@ internal enum AstUnaryOperator Atanh, Avg, BinarySize, + BitNot, BsonSize, Ceil, Cos, @@ -118,6 +119,7 @@ public static string Render(this AstUnaryOperator @operator) AstUnaryOperator.Atanh => "$atanh", AstUnaryOperator.Avg => "$avg", AstUnaryOperator.BinarySize => "$binarySize", + AstUnaryOperator.BitNot => "$bitNot", AstUnaryOperator.BsonSize => "$bsonSize", AstUnaryOperator.Ceil => "$ceil", AstUnaryOperator.Cos => "$cos", diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Visitors/AstNodeVisitor.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Visitors/AstNodeVisitor.cs index daeed733b9b..554f701c3fc 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Visitors/AstNodeVisitor.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Visitors/AstNodeVisitor.cs @@ -134,11 +134,6 @@ static TNode[] InitializeNewNodes(IReadOnlyList oldNodes) } } - public virtual AstNode VisitAndExpression(AstAndExpression node) - { - return node.Update(VisitAndConvert(node.Args)); - } - public virtual AstNode VisitAndFilter(AstAndFilter node) { return node.Update(VisitAndConvert(node.Filters)); @@ -549,11 +544,6 @@ public virtual AstNode VisitNullaryWindowExpression(AstNullaryWindowExpression n return node; } - public virtual AstNode VisitOrExpression(AstOrExpression node) - { - return node.Update(VisitAndConvert(node.Args)); - } - public virtual AstNode VisitOrFilter(AstOrFilter node) { return node.Update(VisitAndConvert(node.Filters)); diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/BinaryExpressionToAggregationExpressionTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/BinaryExpressionToAggregationExpressionTranslator.cs index 918329fd7ac..8013b7975e0 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/BinaryExpressionToAggregationExpressionTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/BinaryExpressionToAggregationExpressionTranslator.cs @@ -81,11 +81,16 @@ public static AggregationExpression Translate(TranslationContext context, Binary ExpressionType.Add => IsStringConcatenationExpression(expression) ? AstExpression.Concat(leftTranslation.Ast, rightTranslation.Ast) : AstExpression.Add(leftTranslation.Ast, rightTranslation.Ast), - ExpressionType.And => AstExpression.And(leftTranslation.Ast, rightTranslation.Ast), + ExpressionType.And => expression.Type == typeof(bool) ? + AstExpression.And(leftTranslation.Ast, rightTranslation.Ast) : + AstExpression.BitAnd(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.AndAlso => AstExpression.And(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.Coalesce => AstExpression.IfNull(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.Divide => AstExpression.Divide(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.Equal => AstExpression.Eq(leftTranslation.Ast, rightTranslation.Ast), + ExpressionType.ExclusiveOr => expression.Type == typeof(bool) ? + throw new ExpressionNotSupportedException(expression, because: "MongoDB does not have an $xor operator") : + AstExpression.BitXor(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.GreaterThan => AstExpression.Gt(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.GreaterThanOrEqual => AstExpression.Gte(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.LessThan => AstExpression.Lt(leftTranslation.Ast, rightTranslation.Ast), @@ -93,7 +98,9 @@ public static AggregationExpression Translate(TranslationContext context, Binary ExpressionType.Modulo => AstExpression.Mod(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.Multiply => AstExpression.Multiply(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.NotEqual => AstExpression.Ne(leftTranslation.Ast, rightTranslation.Ast), - ExpressionType.Or => AstExpression.Or(leftTranslation.Ast, rightTranslation.Ast), + ExpressionType.Or => expression.Type == typeof(bool) ? + AstExpression.Or(leftTranslation.Ast, rightTranslation.Ast) : + AstExpression.BitOr(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.OrElse => AstExpression.Or(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.Power => AstExpression.Pow(leftTranslation.Ast, rightTranslation.Ast), ExpressionType.Subtract => AstExpression.Subtract(leftTranslation.Ast, rightTranslation.Ast), diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ExpressionToAggregationExpressionTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ExpressionToAggregationExpressionTranslator.cs index 8c86cb693a3..2e04608357b 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ExpressionToAggregationExpressionTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/ExpressionToAggregationExpressionTranslator.cs @@ -43,6 +43,7 @@ public static AggregationExpression Translate(TranslationContext context, Expres case ExpressionType.Coalesce: case ExpressionType.Divide: case ExpressionType.Equal: + case ExpressionType.ExclusiveOr: case ExpressionType.GreaterThan: case ExpressionType.GreaterThanOrEqual: case ExpressionType.LessThan: diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/NotExpressionToAggregationExpressionTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/NotExpressionToAggregationExpressionTranslator.cs index b09ac580e6a..c55fd09d21f 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/NotExpressionToAggregationExpressionTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/NotExpressionToAggregationExpressionTranslator.cs @@ -25,7 +25,7 @@ public static AggregationExpression Translate(TranslationContext context, UnaryE if (expression.NodeType == ExpressionType.Not) { var operandTranslation = ExpressionToAggregationExpressionTranslator.Translate(context, expression.Operand); - var ast = AstExpression.Not(operandTranslation.Ast); + var ast = expression.Type == typeof(bool) ? AstExpression.Not(operandTranslation.Ast) : AstExpression.BitNot(operandTranslation.Ast); return new AggregationExpression(expression, ast, operandTranslation.Serializer); } diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4486Tests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4486Tests.cs new file mode 100644 index 00000000000..fc4cb4b8c34 --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4486Tests.cs @@ -0,0 +1,383 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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; +using System.Linq; +using FluentAssertions; +using MongoDB.Driver.Core.Misc; +using MongoDB.Driver.Core.TestHelpers.XunitExtensions; +using MongoDB.Driver.Linq; +using MongoDB.TestHelpers.XunitExtensions; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira +{ + public class CSharp4486Tests : Linq3IntegrationTest + { + [Theory] + [ParameterAttributeData] + public void And_with_two_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.P & x.Q); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $and : ['$P', '$Q'] }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $and : ['$P', '$Q'] }, _id : 0 } }"); + } + + var result = queryable.Single(); + result.Should().Be(true); + } + + [Theory] + [ParameterAttributeData] + public void And_with_three_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.P & x.Q & x.R); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $and : ['$P', '$Q', '$R'] }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $and : ['$P', '$Q', '$R'] }, _id : 0 } }"); + } + + var result = queryable.Single(); + result.Should().Be(false); + } + + [Theory] + [ParameterAttributeData] + public void Not_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => !x.P); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $not : ['$P'] }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $not : '$P' }, _id : 0 } }"); + } + + var result = queryable.Single(); + result.Should().Be(false); + } + + [Theory] + [ParameterAttributeData] + public void Or_with_two_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.P | x.Q); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $or : ['$P', '$Q'] }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $or : ['$P', '$Q'] }, _id : 0 } }"); + } + + var result = queryable.Single(); + result.Should().Be(true); + } + + [Theory] + [ParameterAttributeData] + public void Or_with_three_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.P | x.Q | x.R); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $or : ['$P', '$Q', '$R'] }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $or : ['$P', '$Q', '$R'] }, _id : 0 } }"); + } + + var result = queryable.Single(); + result.Should().Be(true); + } + + [Theory] + [ParameterAttributeData] + public void Xor_with_two_arguments_should_throw( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.P ^ x.Q); + + var exception = Record.Exception(() => Translate(collection, queryable)); + if (linqProvider == LinqProvider.V2) + { + exception.Should().BeOfType(); + } + else + { + exception.Should().BeOfType(); + exception.Message.Should().Contain("because MongoDB does not have an $xor operator"); + } + } + + [Theory] + [ParameterAttributeData] + public void BitAnd_with_two_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.BitwiseOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.X & x.Z); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $and : ['$X', '$Z'] }, _id : 0 } }"); // LINQ2 translation is wrong + + var exception = Record.Exception(() => queryable.Single()); + exception.Should().BeOfType(); // LINQ2 result is wrong + } + else + { + AssertStages(stages, "{ $project : { _v : { $bitAnd : ['$X', '$Z'] }, _id : 0 } }"); + + var result = queryable.Single(); + result.Should().Be(1); + } + } + + [Theory] + [ParameterAttributeData] + public void BitAnd_with_three_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.BitwiseOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.X & x.Y & x.Z); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $and : ['$X', '$Y', '$Z'] }, _id : 0 } }"); // LINQ2 translation is wrong + + var exception = Record.Exception(() => queryable.Single()); + exception.Should().BeOfType(); // LINQ2 result is wrong + } + else + { + AssertStages(stages, "{ $project : { _v : { $bitAnd : ['$X', '$Y', '$Z'] }, _id : 0 } }"); + + var result = queryable.Single(); + result.Should().Be(0); + } + } + + [Theory] + [ParameterAttributeData] + public void BitNot_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.BitwiseOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => ~x.X); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $not : ['$X'] }, _id : 0 } }"); // LINQ2 translation is wrong + + var exception = Record.Exception(() => queryable.Single()); + exception.Should().BeOfType(); // LINQ2 result is wrong + } + else + { + AssertStages(stages, "{ $project : { _v : { $bitNot : '$X' }, _id : 0 } }"); + + var result = queryable.Single(); + result.Should().Be(~1); + } + } + + [Theory] + [ParameterAttributeData] + public void BitOr_with_two_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.BitwiseOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.X | x.Z); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $or : ['$X', '$Z'] }, _id : 0 } }"); // LINQ2 translation is wrong + + var exception = Record.Exception(() => queryable.Single()); + exception.Should().BeOfType(); // LINQ2 result is wrong + } + else + { + AssertStages(stages, "{ $project : { _v : { $bitOr : ['$X', '$Z'] }, _id : 0 } }"); + + var result = queryable.Single(); + result.Should().Be(3); + } + } + + [Theory] + [ParameterAttributeData] + public void BitOr_with_three_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.BitwiseOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.X | x.Y | x.Z); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $or : ['$X', '$Y', '$Z'] }, _id : 0 } }"); // LINQ2 translation is wrong + + var exception = Record.Exception(() => queryable.Single()); + exception.Should().BeOfType(); // LINQ2 result is wrong + } + else + { + AssertStages(stages, "{ $project : { _v : { $bitOr : ['$X', '$Y', '$Z'] }, _id : 0 } }"); + + var result = queryable.Single(); + result.Should().Be(3); + } + } + + [Theory] + [ParameterAttributeData] + public void BitXor_with_two_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.BitwiseOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.X ^ x.Z); + + if (linqProvider == LinqProvider.V2) + { + var exception = Record.Exception(() => Translate(collection, queryable)); // LINQ2 throws exception + exception.Should().BeOfType(); + } + else + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $project : { _v : { $bitXor : ['$X', '$Z'] }, _id : 0 } }"); + + var result = queryable.Single(); + result.Should().Be(2); + } + } + + [Theory] + [ParameterAttributeData] + public void BitXor_with_three_arguments_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + RequireServer.Check().Supports(Feature.BitwiseOperators); + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.X ^ x.Y ^ x.Z); + + if (linqProvider == LinqProvider.V2) + { + var exception = Record.Exception(() => Translate(collection, queryable)); // LINQ2 throws exception + exception.Should().BeOfType(); + } + else + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $project : { _v : { $bitXor : ['$X', '$Y', '$Z'] }, _id : 0 } }"); + + var result = queryable.Single(); + result.Should().Be(0); + } + } + + private IMongoCollection GetCollection(LinqProvider linqProvider) + { + var collection = GetCollection("test", linqProvider); + CreateCollection( + collection, + new C { Id = 1, P = true, Q = true, R = false, X = 1, Y = 2, Z = 3 }); + return collection; + } + + private class C + { + public int Id { get; set; } + public bool P { get; set; } + public bool Q { get; set; } + public bool R { get; set; } + public int X { get; set; } + public int Y { get; set; } + public int Z { get; set; } + } + } +} From da00a71cf36377bcf0e1b27217214839679a490c Mon Sep 17 00:00:00 2001 From: BorisDog Date: Tue, 14 Nov 2023 10:09:37 -0800 Subject: [PATCH 14/30] CSHARP-4761: Enable serverless tests with failpoints (#1212) --- .../Specifications/UnifiedTestSpecRunner.cs | 15 +++------------ .../retryable-reads/RetryableReadsTestRunner.cs | 3 ++- .../retryable-writes/RetryableWriteTestRunner.cs | 3 ++- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs b/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs index 41068dec2ae..1f2a223c6fe 100644 --- a/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs +++ b/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs @@ -122,11 +122,11 @@ public void LoadBalancers(JsonDrivenTestCase testCase) Run(testCase); } - [Category("SupportLoadBalancing")] + [Category("Serverless", "SupportLoadBalancing")] [UnifiedTestsTheory("retryable_reads.tests.unified")] public void RetryableReads(JsonDrivenTestCase testCase) => Run(testCase); - [Category("SupportLoadBalancing")] + [Category("Serverless", "SupportLoadBalancing")] [UnifiedTestsTheory("retryable_writes.tests.unified")] public void RetryableWrites(JsonDrivenTestCase testCase) => Run(testCase); @@ -145,16 +145,7 @@ public void ServerDiscoveryAndMonitoring(JsonDrivenTestCase testCase) => [Category("Serverless", "SupportLoadBalancing")] [UnifiedTestsTheory("transactions.tests.unified")] - public void Transactions(JsonDrivenTestCase testCase) - { - if (testCase.Name.Contains("find does not retry in a transaction")) - { - // CSHARP-4761 - RequireServer.Check().Serverless(false); - } - - Run(testCase); - } + public void Transactions(JsonDrivenTestCase testCase) => Run(testCase); [UnifiedTestsTheory("unified_test_format.tests.valid_fail")] public void UnifiedTestFormatValidFail(JsonDrivenTestCase testCase) diff --git a/tests/MongoDB.Driver.Tests/Specifications/retryable-reads/RetryableReadsTestRunner.cs b/tests/MongoDB.Driver.Tests/Specifications/retryable-reads/RetryableReadsTestRunner.cs index 68d8d87d81c..673c47af4e4 100644 --- a/tests/MongoDB.Driver.Tests/Specifications/retryable-reads/RetryableReadsTestRunner.cs +++ b/tests/MongoDB.Driver.Tests/Specifications/retryable-reads/RetryableReadsTestRunner.cs @@ -32,13 +32,14 @@ using MongoDB.Driver.Core.TestHelpers.XunitExtensions; using MongoDB.Driver.TestHelpers; using MongoDB.Driver.Tests.JsonDrivenTests; +using MongoDB.TestHelpers.XunitExtensions; using Xunit; using Xunit.Abstractions; using Xunit.Sdk; namespace MongoDB.Driver.Tests.Specifications.retryable_reads { - [Trait("Category", "SupportLoadBalancing")] + [Category("Serverless", "SupportLoadBalancing")] public sealed class RetryableReadsTestRunner : LoggableTestClass { #region static diff --git a/tests/MongoDB.Driver.Tests/Specifications/retryable-writes/RetryableWriteTestRunner.cs b/tests/MongoDB.Driver.Tests/Specifications/retryable-writes/RetryableWriteTestRunner.cs index b38c00f91b1..20d4b0e402d 100644 --- a/tests/MongoDB.Driver.Tests/Specifications/retryable-writes/RetryableWriteTestRunner.cs +++ b/tests/MongoDB.Driver.Tests/Specifications/retryable-writes/RetryableWriteTestRunner.cs @@ -24,13 +24,14 @@ using MongoDB.Driver.Core.TestHelpers.Logging; using MongoDB.Driver.Core.TestHelpers.XunitExtensions; using MongoDB.Driver.TestHelpers; +using MongoDB.TestHelpers.XunitExtensions; using Xunit; using Xunit.Abstractions; using Xunit.Sdk; namespace MongoDB.Driver.Tests.Specifications.retryable_writes { - [Trait("Category", "SupportLoadBalancing")] + [Category("Serverless", "SupportLoadBalancing")] public class RetryableWriteTestRunner : LoggableTestClass { private readonly string _databaseName = DriverTestConfiguration.DatabaseNamespace.DatabaseName; From 5e9a974a140451304e0331ba4720c58915c7d5e1 Mon Sep 17 00:00:00 2001 From: Eugene Filimonov Date: Thu, 16 Nov 2023 01:25:42 +0200 Subject: [PATCH 15/30] CSHARP-4841: Update ZstdSharp package to fix MissingMethodException (#1213) --- src/MongoDB.Driver.Core/MongoDB.Driver.Core.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MongoDB.Driver.Core/MongoDB.Driver.Core.csproj b/src/MongoDB.Driver.Core/MongoDB.Driver.Core.csproj index 19bddd29c05..aad646e766d 100644 --- a/src/MongoDB.Driver.Core/MongoDB.Driver.Core.csproj +++ b/src/MongoDB.Driver.Core/MongoDB.Driver.Core.csproj @@ -27,7 +27,7 @@ - + From 73576b18a8a8d3097d4ffbaa49ddc94ff629d469 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Tue, 21 Nov 2023 09:15:32 -0800 Subject: [PATCH 16/30] Fix CSFLE tests on Mac (#1215) --- evergreen/convert-client-cert-to-pkcs12.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evergreen/convert-client-cert-to-pkcs12.sh b/evergreen/convert-client-cert-to-pkcs12.sh index 931b4e88ddd..52e800dfa2e 100755 --- a/evergreen/convert-client-cert-to-pkcs12.sh +++ b/evergreen/convert-client-cert-to-pkcs12.sh @@ -20,7 +20,7 @@ if [[ "$CLIENT_PEM" == "nil" ]]; then exit 1 fi -openssl pkcs12 -export -in "${CLIENT_PEM}" \ +openssl pkcs12 -export -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES -macalg sha1 -in "${CLIENT_PEM}" \ -out "${MONGO_X509_CLIENT_P12}" \ -name "Drivers Client Certificate" \ -password "pass:${MONGO_X509_CLIENT_CERTIFICATE_PASSWORD}" From 96fa5f2873198e4963250a2504ff4892c0d0545c Mon Sep 17 00:00:00 2001 From: BorisDog Date: Wed, 22 Nov 2023 16:46:56 -0800 Subject: [PATCH 17/30] CSHARP-4854: Suppress vulnerability warnings for netcoreapp2.1 TF in tests (#1218) --- tests/BuildProps/Tests.Build.props | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/BuildProps/Tests.Build.props b/tests/BuildProps/Tests.Build.props index ca5a8480127..7f76f18e209 100644 --- a/tests/BuildProps/Tests.Build.props +++ b/tests/BuildProps/Tests.Build.props @@ -47,4 +47,11 @@ + + + + NU1903,NU1902 + + + From 2ddbc21240e4e7ddd0c3b4912834cccb5adf2297 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:36:07 -0800 Subject: [PATCH 18/30] CSHARP-4843: Suppress any exceptions in the code checking if legacy driver was loaded (#1214) --- .../Core/Connections/ClientDocumentHelper.cs | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs b/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs index ee5879f79ab..9267c8dc78b 100644 --- a/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs +++ b/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs @@ -72,12 +72,12 @@ internal static BsonDocument CreateDriverDocument() internal static BsonDocument CreateDriverDocument(string driverVersion) { var driverName = "mongo-csharp-driver"; - if (IsLegacyLoaded()) + if (TryGetType("MongoDB.Driver.MongoServer, MongoDB.Driver.Legacy")) { driverName = $"{driverName}|legacy"; } - if (IsEFLoaded()) + if (TryGetType("MongoDB.EntityFrameworkCore.Query.MongoQueryContext, MongoDB.EntityFrameworkCore")) { driverName = $"{driverName}|efcore"; } @@ -87,16 +87,6 @@ internal static BsonDocument CreateDriverDocument(string driverVersion) { "name", driverName }, { "version", driverVersion } }; - - bool IsLegacyLoaded() - { - return Type.GetType("MongoDB.Driver.MongoServer, MongoDB.Driver.Legacy") != null; - } - - bool IsEFLoaded() - { - return Type.GetType("MongoDB.EntityFrameworkCore.Query.MongoQueryContext, MongoDB.EntityFrameworkCore") != null; - } } internal static BsonDocument CreateEnvDocument() @@ -193,7 +183,7 @@ internal static BsonDocument CreateOSDocument() string architecture; string osVersion; - if (Type.GetType("Mono.Runtime") != null) + if (TryGetType("Mono.Runtime")) { switch (Environment.OSVersion.Platform) { @@ -381,6 +371,20 @@ internal static BsonDocument RemoveOptionalFieldsUntilDocumentIsLessThan512Bytes return clientDocument; } + + private static bool TryGetType(string typeName) + { + try + { + var type = Type.GetType(typeName); + return type != null; + } + catch + { + // ignore any exceptions here. + return false; + } + } #endregion } } From 3274297c904e0425e28725ade51fb62bbec4f57e Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:08:57 -0800 Subject: [PATCH 19/30] CSHARP-4836: Add driver tests for Serverless Proxy incremental rollout (#1221) --- evergreen/evergreen.yml | 81 +++++++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 31 deletions(-) diff --git a/evergreen/evergreen.yml b/evergreen/evergreen.yml index 50535ce8e19..5a56d4312a4 100644 --- a/evergreen/evergreen.yml +++ b/evergreen/evergreen.yml @@ -865,10 +865,16 @@ functions: create-serverless-instance: - command: shell.exec params: + shell: bash script: | ${PREPARE_SHELL} set +o xtrace # Disable tracing - SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \ + if [ "Terminating" = "${SERVERLESS_PROXY_TYPE}" ]; then + SERVERLESS_GROUP="${TERMINATING_PROXY_SERVERLESS_DRIVERS_GROUP}" + else + SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}" + fi + SERVERLESS_DRIVERS_GROUP="$SERVERLESS_GROUP" \ SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \ SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \ LOADBALANCED=ON \ @@ -880,11 +886,17 @@ functions: delete-serverless-instance-if-configured: - command: shell.exec params: + shell: bash script: | if [ "" != "${SERVERLESS}" ]; then ${PREPARE_SHELL} set +o xtrace # Disable tracing - SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \ + if [ "Terminating" = "${SERVERLESS_PROXY_TYPE}" ]; then + SERVERLESS_GROUP="${TERMINATING_PROXY_SERVERLESS_DRIVERS_GROUP}" + else + SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}" + fi + SERVERLESS_DRIVERS_GROUP="$SERVERLESS_GROUP" \ SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \ SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \ SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \ @@ -1305,31 +1317,13 @@ tasks: - name: atlas-search-index-helpers-test commands: - - func: run-atlas-search-index-helpers-test - - - name: test-serverless-net472 - exec_timeout_secs: 2700 # 45 minutes: 15 for setup + 30 for tests - commands: - - func: create-serverless-instance - - func: run-serverless-tests - vars: - FRAMEWORK: net472 + - func: run-atlas-search-index-helpers-test - - name: test-serverless-netstandard20 + - name: test-serverless exec_timeout_secs: 2700 # 45 minutes: 15 for setup + 30 for tests commands: - func: create-serverless-instance - func: run-serverless-tests - vars: - FRAMEWORK: netstandard20 - - - name: test-serverless-netstandard21 - exec_timeout_secs: 2700 # 45 minutes: 15 for setup + 30 for tests - commands: - - func: create-serverless-instance - - func: run-serverless-tests - vars: - FRAMEWORK: netstandard21 - name: test-ocsp-rsa-valid-cert-server-staples-ca-responder tags: ["ocsp"] @@ -1938,6 +1932,34 @@ axes: variables: COMPRESSOR: "zstd" + - id: target_framework + display_name: Target .net framework + values: + - id: "net472" + display_name: net472 + variables: + FRAMEWORK: net472 + - id: "netstandard20" + display_name: netstandard20 + variables: + FRAMEWORK: netstandard20 + - id: "netstandard21" + display_name: netstandard21 + variables: + FRAMEWORK: netstandard21 + + - id: serverless_proxy_type + display_name: Serverless Proxy Type + values: + - id: "Passthrough" + display_name: "Serverless Passthrough Proxy" + variables: + SERVERLESS_PROXY_TYPE: Passthrough + - id: "Terminating" + display_name: "Serverless Terminating Proxy" + variables: + SERVERLESS_PROXY_TYPE: Terminating + task_groups: - name: testazurekms-task-group setup_group_can_fail_task: true @@ -2263,19 +2285,16 @@ buildvariants: # Serverless tests - matrix_name: serverless-tests-windows - matrix_spec: { auth: "auth", ssl: "ssl", compressor: "zlib", os: "windows-64" } - display_name: "Serverless ${compressor} ${auth} ${ssl} ${os}" + matrix_spec: { auth: "auth", ssl: "ssl", compressor: "zlib", os: "windows-64", target_framework: "*", serverless_proxy_type: "*" } + display_name: "${serverless_proxy_type} ${compressor} ${auth} ${ssl} ${os} ${target_framework}" tasks: - - name: test-serverless-net472 - - name: test-serverless-netstandard20 - - name: test-serverless-netstandard21 + - name: test-serverless - matrix_name: serverless-tests-ubuntu - matrix_spec: { auth: "auth", ssl: "ssl", compressor: "zlib", os: "ubuntu-1804" } - display_name: "Serverless ${compressor} ${auth} ${ssl} ${os}" + matrix_spec: { auth: "auth", ssl: "ssl", compressor: "zlib", os: "ubuntu-1804", target_framework: ["netstandard20", "netstandard21"], serverless_proxy_type: "*" } + display_name: "${serverless_proxy_type} ${compressor} ${auth} ${ssl} ${os} ${target_framework}" tasks: - - name: test-serverless-netstandard20 - - name: test-serverless-netstandard21 + - name: test-serverless # Atlas tests - name: atlas-connectivity-tests From dd1f1bff3c4b0014515dc28873e452c623141486 Mon Sep 17 00:00:00 2001 From: BorisDog Date: Mon, 27 Nov 2023 16:52:41 -0800 Subject: [PATCH 20/30] CSHARP-4851: Render full form for $and/$eq in $vectorSearch stage filter (#1220) --- src/MongoDB.Driver/FilterDefinition.cs | 27 ++++ src/MongoDB.Driver/FilterDefinitionBuilder.cs | 32 ++++- .../PipelineStageDefinitionBuilder.cs | 8 +- .../FilterDefinitionRenderContextTests.cs | 125 ++++++++++++++++++ .../PipelineDefinitionBuilderTests.cs | 4 +- .../Search/AtlasSearchTests.cs | 8 +- 6 files changed, 197 insertions(+), 7 deletions(-) create mode 100644 tests/MongoDB.Driver.Tests/FilterDefinitionRenderContextTests.cs diff --git a/src/MongoDB.Driver/FilterDefinition.cs b/src/MongoDB.Driver/FilterDefinition.cs index e17e02a33ca..2354185b87f 100644 --- a/src/MongoDB.Driver/FilterDefinition.cs +++ b/src/MongoDB.Driver/FilterDefinition.cs @@ -15,6 +15,7 @@ using System; using System.Linq.Expressions; +using System.Threading; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Driver.Core.Misc; @@ -285,4 +286,30 @@ public override BsonDocument Render(IBsonSerializer documentSerialize return new BsonDocumentWrapper(_obj, serializer); } } + + internal static class FilterDefinitionRenderContext + { + private static readonly AsyncLocal __renderDollarForm = new AsyncLocal(); + + public static bool RenderDollarForm + { + get => __renderDollarForm.Value; + set => __renderDollarForm.Value = value; + } + + public static IDisposable StartRender(bool renderDollarForm) => new FilterDefinitionRenderContextDisposer(renderDollarForm); + + private sealed class FilterDefinitionRenderContextDisposer : IDisposable + { + public FilterDefinitionRenderContextDisposer(bool renderDollarForm) + { + RenderDollarForm = renderDollarForm; + } + + public void Dispose() + { + RenderDollarForm = false; + } + } + } } diff --git a/src/MongoDB.Driver/FilterDefinitionBuilder.cs b/src/MongoDB.Driver/FilterDefinitionBuilder.cs index f92423b0ecd..ae0dbc384fb 100644 --- a/src/MongoDB.Driver/FilterDefinitionBuilder.cs +++ b/src/MongoDB.Driver/FilterDefinitionBuilder.cs @@ -1706,6 +1706,15 @@ public override BsonDocument Render(IBsonSerializer documentSerialize } } + if (FilterDefinitionRenderContext.RenderDollarForm) + { + if (document.ElementCount > 1 || + document.ElementCount == 1 && document.GetElement(0).Name != "$and") + { + PromoteFilterToDollarForm(document, null); + } + } + return document; } @@ -1759,14 +1768,19 @@ existingClause.Value is BsonDocument existingClauseValue && static bool IsFieldName(string fieldOrOperatorName) => !fieldOrOperatorName.StartsWith("$"); } - private static void PromoteFilterToDollarForm(BsonDocument document, BsonElement clause) + private static void PromoteFilterToDollarForm(BsonDocument document, BsonElement? clause) { var clauses = new BsonArray(); foreach (var queryElement in document) { clauses.Add(new BsonDocument(queryElement)); } - clauses.Add(new BsonDocument(clause)); + + if (clause != null) + { + clauses.Add(new BsonDocument(clause.Value)); + } + document.Clear(); document.Add("$and", clauses); } @@ -2339,7 +2353,19 @@ public override BsonDocument Render(IBsonSerializer documentSerialize var context = BsonSerializationContext.CreateRoot(bsonWriter); bsonWriter.WriteStartDocument(); bsonWriter.WriteName(renderedField.FieldName); - renderedField.ValueSerializer.Serialize(context, _value); + + if (FilterDefinitionRenderContext.RenderDollarForm) + { + bsonWriter.WriteStartDocument(); + bsonWriter.WriteName("$eq"); + renderedField.ValueSerializer.Serialize(context, _value); + bsonWriter.WriteEndDocument(); + } + else + { + renderedField.ValueSerializer.Serialize(context, _value); + } + bsonWriter.WriteEndDocument(); } diff --git a/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs b/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs index 771c3efdc13..e493e251ab3 100644 --- a/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs +++ b/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs @@ -1981,7 +1981,7 @@ public static PipelineStageDefinition VectorSearch( { "limit", limit }, { "numCandidates", options?.NumberOfCandidates ?? limit * 10 }, { "index", options?.IndexName ?? "default" }, - { "filter", () => options?.Filter?.Render(s, sr, linqProvider), options?.Filter != null }, + { "filter", () => RenderFilter(s, sr, linqProvider), options?.Filter != null }, }; var document = new BsonDocument(operatorName, vectorSearchOperator); @@ -1989,6 +1989,12 @@ public static PipelineStageDefinition VectorSearch( }); return stage; + + BsonDocument RenderFilter(IBsonSerializer documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider) + { + using var renderContext = FilterDefinitionRenderContext.StartRender(true); + return options.Filter.Render(documentSerializer, serializerRegistry, linqProvider); + } } // private methods diff --git a/tests/MongoDB.Driver.Tests/FilterDefinitionRenderContextTests.cs b/tests/MongoDB.Driver.Tests/FilterDefinitionRenderContextTests.cs new file mode 100644 index 00000000000..b0c9aff3c4a --- /dev/null +++ b/tests/MongoDB.Driver.Tests/FilterDefinitionRenderContextTests.cs @@ -0,0 +1,125 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using FluentAssertions; +using MongoDB.Bson; +using MongoDB.Bson.Serialization; +using Xunit; + +namespace MongoDB.Driver.Tests +{ + public class FilterDefinitionRenderContextTests + { + [Fact] + public void FilterDefinitionRenderContext_dollarForm_default_value_should_be_false() + { + FilterDefinitionRenderContext.RenderDollarForm.Should().BeFalse(); + } + + [Fact] + public async Task FilterDefinitionRenderContext_should_be_scoped_to_task() + { + bool? renderDollarFormValueObservedByTask = null; + var taskReadyToRenderEvent = new ManualResetEventSlim(); + var unblockTaskEvent = new ManualResetEventSlim(); + var rendererTask = Task.Run(RendererTask); + + // Wait for task to set RenderDollarForm = true; + taskReadyToRenderEvent.Wait(); + + // Try to 'override' RenderDollarForm value and unblock the task + FilterDefinitionRenderContext.RenderDollarForm = false; + unblockTaskEvent.Set(); + + // Wait fot task to finish and set renderDollarFormValueObservedByTask + await rendererTask; + + renderDollarFormValueObservedByTask.Should().Be(true); + FilterDefinitionRenderContext.RenderDollarForm.Should().Be(false); + + void RendererTask() + { + using var renderContext = FilterDefinitionRenderContext.StartRender(true); + + taskReadyToRenderEvent.Set(); + unblockTaskEvent.Wait(); + + renderDollarFormValueObservedByTask = FilterDefinitionRenderContext.RenderDollarForm; + } + } + + [Theory] + [MemberData(nameof(Correct_form_should_be_rendered_test_cases))] + public void Correct_form_should_be_rendered(FilterDefinition filterDefinition, bool renderDollarForm, string expectedFilter) + { + var serializerRegistry = BsonSerializer.SerializerRegistry; + var documentSerializer = serializerRegistry.GetSerializer(); + var expectedFilterDocument = BsonDocument.Parse(expectedFilter); + + using var renderContext = FilterDefinitionRenderContext.StartRender(renderDollarForm); + var actualFilter = filterDefinition.Render(documentSerializer, serializerRegistry); + + actualFilter.Should().Be(expectedFilterDocument); + } + + public static IEnumerable Correct_form_should_be_rendered_test_cases() + { + return new object[][] + { + // $eq + new object[] { Eq("a", 1), false, "{ a : 1 }" }, + new object[] { Eq("a", 1), true, "{ a: { $eq: 1 } }" }, + + // $and + new object[] { Gt("a", 1) & Gt("b", 2), false, "{ a : { $gt : 1 }, b : { $gt : 2 } }" }, + new object[] { Gt("a", 1) & Gt("b", 2), true, "{ $and: [ { a : { $gt : 1 }}, { b : { $gt : 2 }} ] }" }, + new object[] { Gt("a", 1) & Gt("b", 2) & Gt("c", 3), false, "{ a : { $gt : 1 }, b : { $gt : 2 }, c : { $gt : 3 } }" }, + new object[] { Gt("a", 1) & Gt("b", 2) & Gt("c", 3), true, "{ $and: [ { a : { $gt : 1 }}, { b : { $gt : 2 }}, { c : { $gt : 3 }} ] }" }, + + // nested $eq + new object[] { Eq("a", 1) | Eq("b", 2), false, "{ $or: [{ a : 1 }, { b : 2 }] }" }, + new object[] { Eq("a", 1) | Eq("b", 2), true, "{ $or: [{ a : { $eq: 1 }}, { b : { $eq : 2 }}] }" }, + new object[] { !(Eq("a", 1) | Eq("b", 2)), false, "{ $nor: [ { a : 1 }, { b : 2 }] }" }, + new object[] { !(Eq("a", 1) | Eq("b", 2)), true, "{ $nor: [{ a : { $eq: 1 }}, { b : { $eq: 2 }}] }" }, + + // nested $and + new object[] { Gt("a", 1) & Gt("b", 2) | Gt("c", 3) & Gt("d", 4), false, "{ $or: [{ a : { $gt : 1 }, b : { $gt : 2 }}, { c : { $gt : 3 }, d : { $gt : 4 }}] }" }, + new object[] { Gt("a", 1) & Gt("b", 2) | Gt("c", 3) & Gt("d", 4), true, "{ $or: [{ $and: [ { a : { $gt : 1 }}, { b : { $gt : 2 }} ] }, { $and: [ { c : { $gt : 3 }}, { d : { $gt : 4 }} ] }] }" }, + + // $eq and $and + new object[] { Eq("a", 1) & Eq("b", 2), false, "{ a : 1, b : 2 }" }, + new object[] { Eq("a", 1) & Eq("b", 2), true, "{ $and: [{ a: { $eq: 1 }}, { b: { $eq: 2 }}] }" }, + + // $eq and $and nested + new object[] { !(Eq("a", 1) & Eq("b", 2)), false, "{ $nor: [{ a : 1, b : 2 }] }" }, + new object[] { !(Eq("a", 1) & Eq("b", 2)), true, "{ $nor: [{ $and: [{ a: { $eq: 1 }}, { b: { $eq: 2 }}] }] }" }, + + // always dollar form + new object[] { Eq("a", 1) & Eq("a", 2), false, "{ $and : [{ a : 1 }, { a : 2 }] }" }, + new object[] { Eq("a", 1) & Eq("a", 2), true, "{ $and : [{ a : { $eq: 1 } }, { a : { $eq: 2 } }] }" }, + new object[] { Gt("a", 1) & Gt("a", 2), false, "{ $and : [{ a : { $gt : 1 } }, { a : { $gt : 2 } }] }" }, + new object[] { Gt("a", 1) & Gt("a", 2), true, "{ $and : [{ a : { $gt : 1 } }, { a : { $gt : 2 } }] }" }, + }; + } + + private static FilterDefinition Eq(string field, int value) => GetBuilder().Eq(field, value); + private static FilterDefinition Gt(string field, int value) => GetBuilder().Gt(field, value); + + private static FilterDefinitionBuilder GetBuilder() => new(); + } +} diff --git a/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs b/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs index 60865833867..6dc5b03be7f 100644 --- a/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs +++ b/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs @@ -416,14 +416,14 @@ public void VectorSearch_should_add_expected_stage_with_options() var pipeline = new EmptyPipelineDefinition(); var options = new VectorSearchOptions() { - Filter = Builders.Filter.Eq("y", "val"), + Filter = Builders.Filter.Eq("x", 1) & Builders.Filter.Eq("y", 2), IndexName = "index_name", NumberOfCandidates = 123 }; var result = pipeline.VectorSearch("x", new[] { 1.0, 2.0, 3.0 }, 1, options); var stages = RenderStages(result, BsonDocumentSerializer.Instance); - stages[0].Should().Be("{ $vectorSearch: { queryVector: [1.0, 2.0, 3.0], path: 'x', limit: 1, numCandidates: 123, index: 'index_name', filter: { y: 'val' } } }"); + stages[0].Should().Be("{ $vectorSearch: { queryVector: [1.0, 2.0, 3.0], path: 'x', limit: 1, numCandidates: 123, index: 'index_name', filter : { $and : [{ x : { $eq : 1 } }, { y : { $eq : 2 } }] } } }"); } [Fact] diff --git a/tests/MongoDB.Driver.Tests/Search/AtlasSearchTests.cs b/tests/MongoDB.Driver.Tests/Search/AtlasSearchTests.cs index 6bb1a153bd4..65b5c351cb9 100644 --- a/tests/MongoDB.Driver.Tests/Search/AtlasSearchTests.cs +++ b/tests/MongoDB.Driver.Tests/Search/AtlasSearchTests.cs @@ -536,9 +536,15 @@ public void VectorSearch() var vector = new[] { -0.0072121937, -0.030757688, 0.014948666, -0.018497631, -0.019035352, 0.028149737, -0.0019593239, -0.02012424, -0.025649332, -0.007985169, 0.007830574, 0.023726976, -0.011507247, -0.022839734, 0.00027999343, -0.010431803, 0.03823202, -0.025756875, -0.02074262, -0.0042883316, -0.010841816, 0.010552791, 0.0015266258, -0.01791958, 0.018430416, -0.013980767, 0.017247427, -0.010525905, 0.0126230195, 0.009255537, 0.017153326, 0.008260751, -0.0036060968, -0.019210111, -0.0133287795, -0.011890373, -0.0030599732, -0.0002904958, -0.001310697, -0.020715732, 0.020890493, 0.012428096, 0.0015837587, -0.006644225, -0.028499257, -0.005098275, -0.0182691, 0.005760345, -0.0040665213, 0.00075491105, 0.007844017, 0.00040791242, 0.0006780336, 0.0027037326, -0.0041370974, -0.022275126, 0.004775642, -0.0045235846, -0.003659869, -0.0020567859, 0.021602973, 0.01010917, -0.011419867, 0.0043689897, -0.0017946466, 0.000101610516, -0.014061426, -0.002626435, -0.00035540052, 0.0062174085, 0.020809835, 0.0035220778, -0.0071046497, -0.005041142, 0.018067453, 0.012569248, -0.021683631, 0.020245226, 0.017247427, 0.017032338, 0.01037131, -0.036296222, -0.026334926, 0.041135717, 0.009625221, 0.032155763, -0.025057837, 0.027827105, -0.03323121, 0.0055721425, 0.005716655, 0.01791958, 0.012078577, -0.011117399, -0.0016005626, -0.0033254733, -0.007702865, 0.034306653, 0.0063854465, -0.009524398, 0.006069535, 0.012696956, -0.0042883316, -0.013167463, -0.0024667988, -0.02356566, 0.00052721944, -0.008858967, 0.039630096, -0.0064593833, -0.0016728189, -0.0020366213, 0.00622413, -0.03739855, 0.0028616884, -0.0102301575, 0.017717933, -0.0041068504, -0.0060896995, -0.01876649, 0.0069903834, 0.025595559, 0.029762903, -0.006388807, 0.017247427, 0.0022080203, -0.029117636, -0.029870447, -0.0049739266, -0.011809715, 0.023243025, 0.009510955, 0.030004878, 0.0015837587, -0.018524516, 0.007931396, -0.03589293, 0.013590919, -0.026361812, 0.002922182, 0.025743432, 0.014894894, 0.0012989342, -0.0016232478, 0.006251016, 0.029789789, -0.004664737, 0.017812036, -0.013436324, -0.0102301575, 0.016884465, -0.017220542, 0.010156221, 0.00014503786, 0.03933435, 0.018658947, 0.016897907, 0.0076961434, -0.029843561, -0.02021834, 0.015056211, 0.01002179, -0.0031994449, -0.03796316, -0.008133043, 0.03707592, 0.032128878, 9.483648E-05, 0.0017627194, -0.0007544909, 0.006647586, 0.020903936, -0.032559056, 0.025272924, -0.012804501, 0.019210111, 0.0022987607, 0.013301893, -0.0047218697, -0.022853177, -0.02162986, 0.006788738, 0.0092286505, 0.024184039, -0.015419173, -0.006479548, -0.00180977, 0.0060728956, -0.0030919004, 0.0022449887, -0.004046357, 0.012663349, -0.028579915, 0.0047722813, -0.6775295, -0.018779935, -0.018484188, -0.017449073, -0.01805401, 0.026630674, 0.008018777, 0.013436324, -0.0034683058, 0.00070912065, -0.005027699, 0.009658828, -0.0031792803, -0.010478854, 0.0034951917, -0.011594627, 0.02441257, -0.042533796, -0.012414653, 0.006261098, -0.012266779, 0.026630674, -0.017852364, -0.02184495, 0.02176429, 0.019263884, 0.00984031, -0.012609577, -0.01907568, -0.020231783, -0.002886894, 0.02706085, -0.0042345594, 0.02265153, 0.05769755, 0.021522315, -0.014195856, 0.011144285, 0.0038077426, 0.024573887, -0.03578539, -0.004476534, 0.016521502, -0.019815048, 0.00071836275, 0.008173372, 0.013436324, 0.021885278, -0.0147604635, -0.021777734, 0.0052595916, -0.011668564, -0.02356566, -0.0049974523, 0.03473683, -0.0255149, 0.012831387, -0.009658828, -0.0031036632, -0.001386314, -0.01385978, 0.008294359, -0.02512505, -0.0012308789, 0.008711093, 0.03610802, 0.016225755, 0.014034539, 0.0032431346, -0.017852364, 0.017906137, 0.005787231, -0.03514012, 0.017207097, -0.0019542826, -0.010189828, 0.010808208, -0.017408744, -0.0074944976, 0.011009854, 0.00887241, 0.009652107, -0.0062409337, 0.009766373, 0.009759651, -0.0020819916, -0.02599885, 0.0040665213, 0.016064439, -0.019035352, -0.013604362, 0.020231783, -0.025272924, -0.01196431, -0.01509654, 0.0010233518, -0.00869765, -0.01064017, 0.005249509, -0.036807057, 0.00054570363, 0.0021777733, -0.009302587, -0.00039362916, 0.011386259, 0.013382551, 0.03046194, 0.0032380936, 0.037801843, -0.036807057, -0.006244295, 0.002392862, -0.01346321, -0.008953068, -0.0025861058, -0.022853177, 0.018242212, -0.0031624765, 0.009880639, -0.0017341529, 0.0072054723, 0.014693249, 0.026630674, 0.008435511, -0.012562525, 0.011581183, -0.0028768117, -0.01059312, -0.027746446, 0.0077969665, 2.468059E-05, -0.011151006, 0.0152712995, -0.01761039, 0.023256468, 0.0076625356, 0.0026163526, -0.028795004, 0.0025877862, -0.017583502, -0.016588718, 0.017556617, 0.00075491105, 0.0075885993, -0.011722336, -0.010620005, -0.017274313, -0.008025498, -0.036376882, 0.009457182, -0.007265966, -0.0048663826, -0.00494368, 0.003616179, 0.0067820163, 0.0033775652, -0.016037554, 0.0043320213, -0.007978448, -0.012925488, 0.029413383, -0.00016583256, -0.018040568, 0.004180787, -0.011453475, -0.013886666, -0.0072121937, 0.006486269, 0.008005333, -0.01412864, -0.00061796, -0.025635887, -0.006630782, 0.02074262, -0.007192029, 0.03906549, -0.0030885397, -0.00088976155, -0.022033151, -0.008758144, 0.00049361185, 0.009342916, -0.014988995, -0.008704372, 0.014276514, -0.012300386, -0.0020063745, 0.030892119, -0.010532626, 0.019653732, 0.0028583275, 0.006163636, 0.0071517, -0.017489402, -0.008448954, -0.004352186, 0.013201071, 0.01090231, 0.0004110631, 0.03306989, 0.006916447, 0.002922182, 0.023888292, -0.009067334, 0.012434817, -0.051298663, 0.016279528, -0.02741037, 0.026227381, -0.005182294, 0.008153207, -0.026603786, 0.0045571923, 0.018067453, 0.038016934, 0.028042194, 0.0077431942, 0.015499831, -0.020298999, 0.0013123773, -0.021334114, -0.026281154, -0.0012720482, -0.0045571923, 0.006086339, 0.0028952959, -0.003041489, 0.007931396, -0.0005406625, -0.023444671, -0.0038715971, 0.0070374343, -0.0019979726, 0.024089938, 0.0020903936, -0.024210924, 0.007319738, -0.005995598, 0.032478396, 0.020998036, 0.01654839, 0.033876475, 0.025098165, 0.021132467, -0.017099554, -0.013516982, 0.01306664, 0.010525905, -0.02335057, -0.013543868, -0.03583916, 0.021172797, -0.033607613, -0.0036094578, -0.007911232, -0.0054578763, 0.013227956, 0.00993441, 0.025810648, 0.02255743, -0.013678298, 0.012273501, 0.00040497174, 0.0019072321, 0.0008170851, 0.01540573, 0.015580489, 0.005239427, 0.003989224, -0.013254843, 0.024708318, 0.0046680975, -0.034360424, -0.0041942303, 0.0077095865, -0.0053503322, -0.024399128, -0.02644247, 0.0062476555, 0.021885278, -0.0010922474, -0.014209299, 0.018295985, 0.0135640325, 0.0033842868, 0.0017812036, 0.004735313, 0.006486269, -0.008072549, 0.009551284, 0.007938119, 0.0101696635, 0.021750847, 0.014034539, 0.0071449787, -0.008448954, 0.010841816, -0.008274195, -0.014531932, -0.0024785616, 0.0018601815, 0.009564727, -0.011130841, -0.020581303, 0.012985982, 0.019976366, -0.030542599, -0.021818062, -0.018551402, -0.0092286505, -0.024385685, 0.0036901159, -0.0061367503, -0.00034048714, -0.007057599, -0.014558818, -0.022221355, 0.023377456, 0.026119838, -0.0008813597, 0.004520224, 0.0027843907, -0.022382671, 0.0018248934, 0.13313992, 0.013685021, -6.170148E-05, 0.015876237, 0.005417547, -0.008314524, -0.019169783, -0.016494617, 0.016844137, -0.0046412116, 0.024305027, -0.027827105, 0.023162367, 0.0143034, -0.0029893972, -0.014626034, -0.018215327, 0.0073264595, 0.024331912, -0.0070777633, -0.0004259765, -0.00042345593, -0.0034262962, -0.00423792, -0.016185427, -0.017946465, -5.9706024E-05, 0.016467731, -0.014773907, -0.022664975, -0.009322752, -0.027585128, 0.0020651878, -0.010532626, -0.010546069, 0.009174879, -0.0011098915, 0.026469355, 0.022006266, -0.013039754, 0.023458114, 0.005481402, -0.00050705485, -0.012092019, 0.0055990284, -0.007057599, -0.012266779, 0.03253217, 0.007071042, -0.01699201, 0.06597847, -0.013436324, 0.0070038266, -0.009981461, 0.024829306, 0.0067383265, 0.0056292755, 0.0018534599, -0.020057024, 0.011735778, 0.0025491375, -0.022194467, 0.0012468424, -0.0051621296, -0.018457301, -0.008509448, -0.011594627, -0.0152712995, -0.001858501, -0.014921781, -0.0056696045, -0.0066979975, -0.02008391, 0.0040093884, 0.032935463, -0.0032935461, -0.0074205613, -0.014088311, -0.0014762144, -0.011218221, 0.011984475, -0.01898158, -0.027208723, -0.008072549, 0.010942639, 0.0183632, 0.04148524, -0.0009922648, -0.017086111, 0.013483374, 0.019841935, 0.024264697, 0.011601348, -0.0077431942, -0.020258669, -0.005770427, 0.013429603, -0.011554297, -0.012831387, -1.4752561E-06, 0.011594627, -0.012683514, -0.012824666, 0.02180462, 0.011023297, 0.012468425, -0.0029860365, -0.0076289284, -0.021293784, 0.005068028, 0.017812036, 0.0007708746, -0.008684208, 0.0048126103, -0.0076558143, 0.019169783, -0.0076558143, 0.028579915, -0.011574462, -0.03196756, -0.0011334168, -0.030219967, 0.023901735, 0.014021097, -0.016776921, 0.0030045207, -0.0019257163, -0.023579102, 0.004197591, 0.00012497831, -0.016803807, 0.01915634, -0.010472132, -0.042130504, -0.038016934, -0.007702865, -0.0025861058, -0.010512462, -0.013537147, -0.013382551, -0.0036397045, 0.0053032814, 0.0046277684, -0.021952493, -0.016588718, -0.031886905, 0.0058208387, -0.00043689896, -0.01337583, 0.018349757, 0.015244413, 0.00900684, -0.017677605, 0.01523097, 0.010337702, -0.024426013, -0.021965936, -0.014182413, 0.008596827, 0.029628472, 0.058611676, -0.015446059, 0.021374442, -0.0095042335, 0.00091748784, 0.021132467, -0.011285436, -0.0035724894, -0.027907763, 0.027302826, 0.004184148, 0.026281154, -0.0026802071, -0.015163755, 0.005699851, 0.023122039, 0.0075415485, -0.020057024, -0.0109359175, -0.018309427, 0.017529732, 0.0020685487, -0.012441538, 0.0023239665, 0.012038247, -0.017543174, 0.029332725, 0.01399421, -0.0092488155, -1.0607403E-05, 0.019371428, -0.0315105, 0.023471557, -0.009430297, 0.00022097006, 0.013301893, -0.020110795, -0.0072928523, 0.007649093, 0.011547576, 0.026805433, -0.01461259, -0.018968137, -0.0104250815, 0.0005646079, 0.031456728, -0.0020147765, -0.024224367, 0.002431511, -0.019371428, -0.025017507, -0.02365976, -0.004318578, -0.04457714, 0.0029826758, -0.020473758, -0.016118212, -0.00068181445, -0.03446797, -0.020715732, -0.04256068, -0.013792564, 0.013873223, 0.011413146, -0.002419748, 0.0123877665, -0.0011115718, 0.007978448, 0.021441657, 0.004405958, 0.0042480025, 0.022920392, -0.0067920987, 0.011083791, -0.017529732, -0.03659197, -0.0066005355, -0.023888292, -0.016521502, 0.009591613, -0.0008590946, 0.013846337, -0.021092137, -0.012562525, -0.0028415236, 0.02882189, 5.3378342E-05, -0.006943333, -0.012226449, -0.035570297, -0.024547001, 0.022355784, -0.018416973, 0.014209299, 0.010035234, 0.0046916227, 0.009672271, -0.00067635323, -0.024815861, 0.0007049197, 0.0017055863, -0.0051251613, 0.0019391594, 0.027665788, -0.007306295, -0.013369109, 0.006308149, 0.009699157, 0.000940173, 0.024842748, 0.017220542, -0.0053032814, -0.008395182, 0.011359373, 0.013214514, 0.0062711807, 0.004110211, -0.019277327, -0.01412864, -0.009322752, 0.007124814, 0.0035119955, -0.024036165, -0.012831387, -0.006734966, -0.0019694061, -0.025367027, -0.006630782, 0.016010666, 0.0018534599, -0.0030717358, -0.017717933, 0.008489283, 0.010875423, -0.0028700903, 0.0121323485, 0.004930237, 0.009947853, -0.02992422, 0.021777734, 0.00015081417, 0.010344423, 0.0017543174, 0.006166997, -0.0015467904, 0.010089005, 0.0111711705, -0.010740994, -0.016965123, -0.006771934, 0.014464716, 0.007192029, -0.0006175399, -0.010855259, -0.003787578, 0.015647706, 0.01002179, -0.015378844, -0.01598378, 0.015741806, -0.0039119264, -0.008422068, 0.03253217, -0.019210111, -0.014975552, 0.0025810648, 0.0035556855, 8.449164E-05, -0.034172222, -0.006395529, -0.0036867552, 0.020769505, 0.009766373, -0.017543174, -0.013557311, 0.0031994449, -0.0014577302, 0.01832287, -0.009907524, -0.024654545, 0.0049940916, 0.016965123, 0.004476534, 0.022261683, -0.009369803, 0.0015308268, -0.010102449, -0.001209874, -0.023807634, -0.008348132, -0.020312442, 0.030892119, -0.0058309208, -0.005128522, -0.02437224, 0.01478735, -0.011016576, -0.010290652, -0.00503106, 0.016884465, 0.02132067, -0.014236185, -0.004903351, 0.01902191, 0.0028179984, 0.019505858, -0.021535758, -0.0038514326, 0.0112115, 0.0038682362, 0.003217929, -0.0012770894, -0.013685021, -0.008381739, 0.0025256122, 0.029386498, 0.018645504, 0.005323446, -0.0032784226, -0.0043253, 0.0007998612, 0.019949479, 0.025770318, -0.0030868594, 0.018968137, -0.010236879, -0.005370497, -0.024748646, -0.014047982, 0.005760345, -0.03610802, 0.0042009517, -0.0034817487, 0.003385967, 0.006560206, -0.006294706, -0.02400928, -0.006140111, -0.0017980073, -0.012481867, -0.0033960494, -0.00097210024, 0.014061426, -0.017596947, -0.023202697, 0.0028499255, -0.016010666, -0.028149737, 0.0024752007, -0.018941252, 0.0056158323, -0.012912045, 0.0054410724, 0.003054932, 0.019559631, -0.0048932685, -0.007823853, -0.017099554, 0.025662774, 0.02572999, 0.004379072, -0.010223436, 0.0031036632, -0.011755943, -0.025622444, -0.030623257, 0.019895706, -0.02052753, -0.006637504, -0.001231719, -0.013980767, -0.02706085, -0.012071854, -0.0041370974, -0.008885853, 0.0001885177, 0.2460615, -0.009389968, -0.010714107, 0.0326666, 0.0009561366, 0.022624645, 0.009793258, 0.019452088, -0.004493338, -0.007097928, -0.0022298652, 0.012401209, -0.0036229007, -0.00023819396, -0.017502844, -0.014209299, -0.030542599, -0.004863022, 0.005128522, -0.03081146, 0.02118624, -0.0042177555, 0.0032448152, -0.019936036, 0.015311629, 0.0070508774, -0.02021834, 0.0016148458, 0.04317906, 0.01385978, 0.004211034, -0.02534014, -0.00030309867, -0.011930703, -0.00207527, -0.021643303, 0.01575525, -0.0042883316, 0.0069231684, 0.017946465, 0.03081146, 0.0043857936, 3.646951E-05, -0.0214551, 0.0089933975, 0.022785962, -0.008106156, 0.00082884775, -0.0006717322, -0.0025457768, -0.017059224, -0.035113234, 0.054982055, 0.021266898, -0.0071046497, -0.012636462, 0.016965123, 0.01902191, -0.0061737187, 0.00076247274, 0.0002789432, 0.030112421, -0.0026768465, 0.0015207445, -0.004926876, 0.0067551304, -0.022624645, 0.0005003333, 0.0035523248, -0.0041337362, 0.011634956, -0.0183632, -0.02820351, -0.0061737187, -0.022355784, -0.03796316, 0.041888528, 0.019626847, 0.02211381, 0.001474534, 0.0037640526, 0.0085228905, 0.013140577, 0.012616298, -0.010599841, -0.022920392, 0.011278715, -0.011493804, -0.0044966987, -0.028741231, 0.015782135, -0.011500525, -0.00027621258, -0.0046378504, -0.003280103, 0.026993636, 0.0109359175, 0.027168395, 0.014370616, -0.011890373, -0.020648519, -0.03465617, 0.001964365, 0.034064677, -0.02162986, -0.01081493, 0.014397502, 0.008038941, 0.029789789, -0.012044969, 0.0038379894, -0.011245107, 0.0048193317, -0.0048563, 0.0142899575, 0.009779816, 0.0058510853, -0.026845763, 0.013281729, -0.0005818318, 0.009685714, -0.020231783, -0.004197591, 0.015593933, -0.016319858, -0.019492416, -0.008314524, 0.014693249, 0.013617805, -0.02917141, -0.0052058194, -0.0061838008, 0.0072726877, -0.010149499, -0.019035352, 0.0070374343, -0.0023138842, 0.0026583623, -0.00034111727, 0.0019038713, 0.025945077, -0.014693249, 0.009820145, -0.0037506097, 0.00041127318, -0.024909964, 0.008603549, -0.0041707046, 0.019398315, -0.024022723, -0.013409438, -0.027880875, 0.0023558936, -0.024237812, 0.034172222, -0.006251016, -0.048152987, -0.01523097, -0.002308843, -0.013691742, -0.02688609, 0.007810409, 0.011513968, -0.006647586, -0.011735778, 0.0017408744, -0.17422187, 0.01301959, 0.018860593, -0.00068013405, 0.008791751, -0.031618044, 0.017946465, 0.011735778, -0.03129541, 0.0033607613, 0.0072861305, 0.008227143, -0.018443858, -0.014007653, 0.009961297, 0.006284624, -0.024815861, 0.012676792, 0.014222742, 0.0036632298, 0.0028364826, -0.012320551, -0.0050478633, 0.011729057, 0.023135481, 0.025945077, 0.005676326, -0.007192029, 0.0015308268, -0.019492416, -0.008932903, -0.021737404, 0.012925488, 0.008092714, 0.03245151, -0.009457182, -0.018524516, 0.0025188907, -0.008569942, 0.0022769158, -0.004617686, 0.01315402, 0.024291582, -0.001880346, 0.0014274834, 0.04277577, 0.010216715, -0.018699275, 0.018645504, 0.008059106, 0.02997799, -0.021576088, 0.004846218, 0.015741806, 0.0023542133, 0.03142984, 0.01372535, 0.01598378, 0.001151901, -0.012246614, -0.004184148, -0.023605987, 0.008657321, -0.025770318, -0.019048795, -0.023054823, 0.005535174, -0.018161554, -0.019761277, 0.01385978, -0.016655933, 0.01416897, 0.015311629, 0.008919461, 0.0077499156, 0.023888292, 0.015257857, 0.009087498, 0.0017845642, 0.0013762318, -0.023713533, 0.027464142, -0.014021097, -0.024681432, -0.006741687, 0.0016450927, -0.005804035, -0.002821359, 0.0056796866, -0.023189254, 0.00723908, -0.013483374, -0.018390086, -0.018847149, 0.0061905226, 0.033365637, 0.008489283, 0.015257857, 0.019694062, -0.03019308, -0.012253336, 0.0021744126, -0.00754827, 0.01929077, 0.025044393, 0.017677605, 0.02503095, 0.028579915, 0.01774482, 0.0029961187, -0.019895706, 0.001165344, -0.0075281053, 0.02105181, -0.009221929, 0.023404341, -0.0028079161, -0.0037237236, 0.02847237, 0.0009821824, 0.04629785, -0.017771706, -0.038904175, 0.00869765, 0.0016249281, 0.020984594, -0.10867358, -0.008395182, -0.0010830053, 0.008059106, -0.020097353, 0.0020383017, 0.008038941, -0.009047169, -0.007252523, 0.0286068, -0.0037774958, -0.024923407, 0.005279756, -0.009524398, 0.011527412, -0.0020198175, 0.019452088, 0.014384058, -0.025609002, 0.006025845, -0.030542599, 0.016790364, 0.019223554, -0.012434817, 0.003901844, -0.007817131, -0.027612016, 0.008314524, 0.007938119, -0.0004868903, 0.014747021, -0.009457182, 0.014706692, -0.018847149, 0.015311629, 0.015647706, -0.0031288688, -0.0032717013, 0.008879132, -0.034629285, 0.0090337265, 0.004382433, 0.011305601, -0.028391711, 0.0053268066, 0.0003566608, -0.019169783, 0.011507247, 0.023592545, -0.006603896, -0.009685714, 0.010714107, -0.027907763, 0.006412333, 0.0045706355, -0.029816674, 0.0047958065, 0.0018500991, -0.011500525, 0.0030179636, 0.015997224, -0.022140697, -0.0001849469, -0.014263071, 0.011540854, -0.006607257, -0.01871272, -0.0038480717, -0.0024903242, -0.031214751, -0.0050478633, 0.021481987, -0.012912045, 0.028122852, -0.018605174, -0.00723908, 0.0023609349, -0.0073331813, 0.014935223, -0.005699851, -0.0068895607, -0.015244413, 0.029789789, -0.02458733, 0.0004453009, 0.0015577129, 0.0048596608, 0.009376524, -0.011984475, -0.014518489, 0.015647706, 0.0068794787, 0.0065534846, 0.003107024, -0.01973439, 0.027383484, -0.015459502, -0.006318231, 0.020863606, -0.0021357639, -0.0076692575, -0.021266898, -0.046862457, 0.025326697, 0.016521502, -0.0036833945, 0.0029860365, -0.016306413, 0.026496243, -0.016803807, 0.008724537, -0.0025407355, -0.027302826, 0.017798591, 0.0060796174, -0.014007653, -0.01650806, -0.0095042335, 0.009242094, -0.009342916, 0.010330981, 0.009544563, 0.018591732, 0.0036867552, 0.0194252, 0.0092488155, -0.007823853, 0.0015501512, -0.012031525, 0.010203271, -0.0074272826, -0.020258669, 0.025662774, -0.03032751, 0.014854565, 0.010835094, 0.0007708746, 0.0009989863, -0.014007653, -0.012871716, 0.023444671, 0.03323121, -0.034575514, -0.024291582, 0.011634956, -0.025958521, -0.01973439, 0.0029742739, 0.0067148013, 0.0022399474, 0.011802994, 0.011151006, -0.0116416775, 0.030166194, 0.013039754, -0.022517102, -0.011466918, -0.0033053088, 0.006156915, 0.004829414, 0.006029206, -0.016534945, 0.015325071, -0.0109359175, 0.032854803, -0.001010749, 0.0021155993, -0.011702171, -0.009766373, 0.00679882, 0.0040900465, -0.019438643, -0.006758491, -0.0040060277, 0.022436442, 0.025850976, 0.006150193, 0.018632062, -0.0077230297, -0.015298186, -0.017381858, 0.01911601, -0.005763706, -0.0022281848, -0.031994447, 0.0015972018, 0.028848775, 0.014572261, -0.0073264595, -0.009551284, -0.0052058194, 0.014518489, -0.0041068504, 0.010754436, 0.0055519775, -0.005804035, -0.0054007433, 0.028579915, -0.01791958, -0.015284742, 0.036807057, 0.015069654, -0.0023810994, -0.0038648755, 0.0015467904, -0.0037136413, 0.0023458113, 0.019008467, -0.011547576, -0.010001626, 0.012347437, 0.0155267175, 0.01907568, -0.003041489, -0.0132414, 0.017449073, 0.00060073606, -0.008536334, 0.008233866, -0.0085430555, -0.02365976, 0.024089938, -0.0034615842, -0.006580371, 0.008327967, -0.01509654, 0.009692436, 0.025635887, 0.0020282194, -0.04022159, -0.0021290423, -0.012407931, -0.0021727323, 0.006506434, -0.005320085, -0.008240587, 0.020984594, -0.014491603, 0.003592654, 0.0072121937, -0.03081146, 0.043770555, 0.009302587, -0.003217929, 0.019008467, -0.011271994, 0.02917141, 0.0019576435, -0.0077431942, -0.0030448497, -0.023726976, 0.023377456, -0.006382086, 0.025716545, -0.017341528, 0.0035556855, -0.019129453, -0.004311857, -0.003253217, -0.014935223, 0.0036363439, 0.018121226, -0.0066543072, 0.02458733, 0.0035691285, 0.0039085653, -0.014209299, 0.020191453, 0.0357585, 0.007830574, -0.024130266, -0.008912739, 0.008314524, -0.0346024, -0.0014005973, -0.006788738, -0.021777734, 0.010465411, -0.004012749, -0.00679882, 0.009981461, -0.026227381, 0.027033964, -0.015567047, -0.0063115098, 0.0023071626, 0.01037131, 0.015741806, -0.020635074, -0.012945653 }; + var options = new VectorSearchOptions() + { + Filter = Builders.Filter.Gt("runtime", 1) & Builders.Filter.Gt("year", 1900), + IndexName = "sample_mflix__embedded_movies" + }; + var actualTitles = GetEmbeddedMoviesCollection() .Aggregate() - .VectorSearch(m => m.Embedding, vector, 5, new() { IndexName = "sample_mflix__embedded_movies" }) + .VectorSearch(m => m.Embedding, vector, 5, options) .Project(Builders.Projection.Expression(m => m.Title)) .ToList(); From 225ac8b7dc9042268f37e061990a26d9c3285b11 Mon Sep 17 00:00:00 2001 From: Adelin Owona <51498470+adelinowona@users.noreply.github.com> Date: Wed, 29 Nov 2023 11:31:31 -0500 Subject: [PATCH 21/30] CSHARP-4853: "Thread static buffer is already in use." error after bad utf8 string write. (#1219) --- src/MongoDB.Bson/IO/EncodingHelper.cs | 15 +++++++++---- .../IO/EncodingHelperTests.cs | 21 +++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/src/MongoDB.Bson/IO/EncodingHelper.cs b/src/MongoDB.Bson/IO/EncodingHelper.cs index 0d28fd17b6f..a7fa16527e3 100644 --- a/src/MongoDB.Bson/IO/EncodingHelper.cs +++ b/src/MongoDB.Bson/IO/EncodingHelper.cs @@ -63,10 +63,17 @@ public static DisposableSegment GetBytesUsingThreadStaticBuffer(this Encoding en var maxSize = encoding.GetMaxByteCount(length); var rentedBuffer = ThreadStaticBuffer.RentBuffer(maxSize); - var size = encoding.GetBytes(value, 0, length, rentedBuffer.Bytes, 0); - var segment = new ArraySegment(rentedBuffer.Bytes, 0, size); - - return new DisposableSegment(rentedBuffer, segment); + try + { + var size = encoding.GetBytes(value, 0, length, rentedBuffer.Bytes, 0); + var segment = new ArraySegment(rentedBuffer.Bytes, 0, size); + return new DisposableSegment(rentedBuffer, segment); + } + catch + { + rentedBuffer.Dispose(); + throw; + } } } } diff --git a/tests/MongoDB.Bson.Tests/IO/EncodingHelperTests.cs b/tests/MongoDB.Bson.Tests/IO/EncodingHelperTests.cs index 45eb62034c8..9e591b71245 100644 --- a/tests/MongoDB.Bson.Tests/IO/EncodingHelperTests.cs +++ b/tests/MongoDB.Bson.Tests/IO/EncodingHelperTests.cs @@ -33,6 +33,19 @@ public void GetBytesUsingThreadStaticBuffer_should_throw_when_encoding_is_null() var e = exception.Should().BeOfType().Subject; e.ParamName.Should().Be("encoding"); + + AssertGetBytesUsingThreadStaticBufferWorks(); + } + + [Fact] + public void GetBytesUsingThreadStaticBuffer_should_throw_when_string_is_invalid() + { + const string invalidUtf8String = "\uD801"; + + var exception = Record.Exception(() => EncodingHelper.GetBytesUsingThreadStaticBuffer(Utf8Encodings.Strict, invalidUtf8String)); + exception.Should().BeOfType(); + + AssertGetBytesUsingThreadStaticBufferWorks(); } [Fact] @@ -42,6 +55,8 @@ public void GetBytesUsingThreadStaticBuffer_should_throw_when_value_is_null() var e = exception.Should().BeOfType().Subject; e.ParamName.Should().Be("value"); + + AssertGetBytesUsingThreadStaticBufferWorks(); } [Fact] @@ -111,6 +126,12 @@ public void GetBytesUsingThreadStaticBuffer_should_return_expected_result_when_m } // private methods + private void AssertGetBytesUsingThreadStaticBufferWorks() + { + using var segment = EncodingHelper.GetBytesUsingThreadStaticBuffer(Utf8Encodings.Strict, "Apples"); + segment.Segment.Array.Length.Should().BeGreaterThan(0); + } + private string GetString(int length) => new string(Enumerable.Range(0, length).Select(i => (char)('a' + i % 26)).ToArray()); } From f609ce8b3b8982d390ac90c690fce4cbe13f1a46 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:14:57 -0800 Subject: [PATCH 22/30] EF-73: Add more EF Core metadata to Client Metadata Handshake (#1222) --- .../Core/Connections/ClientDocumentHelper.cs | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs b/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs index 9267c8dc78b..ec048f7e8f6 100644 --- a/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs +++ b/src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs @@ -63,8 +63,7 @@ internal static BsonDocument CreateClientDocument(string applicationName, BsonDo internal static BsonDocument CreateDriverDocument() { var assembly = typeof(ConnectionInitializer).GetTypeInfo().Assembly; - var fileVersionAttribute = assembly.GetCustomAttribute(); - var driverVersion = fileVersionAttribute.Version; + var driverVersion = GetAssemblyVersion(assembly); return CreateDriverDocument(driverVersion); } @@ -72,13 +71,15 @@ internal static BsonDocument CreateDriverDocument() internal static BsonDocument CreateDriverDocument(string driverVersion) { var driverName = "mongo-csharp-driver"; - if (TryGetType("MongoDB.Driver.MongoServer, MongoDB.Driver.Legacy")) + if (TryGetType("MongoDB.Driver.MongoServer, MongoDB.Driver.Legacy", out _)) { driverName = $"{driverName}|legacy"; } - if (TryGetType("MongoDB.EntityFrameworkCore.Query.MongoQueryContext, MongoDB.EntityFrameworkCore")) + if (TryGetType("MongoDB.EntityFrameworkCore.Query.MongoQueryContext, MongoDB.EntityFrameworkCore", out var queryContextType)) { + var efVersion = GetAssemblyVersion(queryContextType.Assembly); + driverVersion = $"{driverVersion}|{efVersion}"; driverName = $"{driverName}|efcore"; } @@ -183,7 +184,7 @@ internal static BsonDocument CreateOSDocument() string architecture; string osVersion; - if (TryGetType("Mono.Runtime")) + if (TryGetType("Mono.Runtime", out _)) { switch (Environment.OSVersion.Platform) { @@ -372,19 +373,33 @@ internal static BsonDocument RemoveOptionalFieldsUntilDocumentIsLessThan512Bytes return clientDocument; } - private static bool TryGetType(string typeName) + private static bool TryGetType(string typeName, out Type type) { try { - var type = Type.GetType(typeName); + type = Type.GetType(typeName); return type != null; } catch { // ignore any exceptions here. + type = null; return false; } } + + private static string GetAssemblyVersion(Assembly assembly) + { + var versionAttribute = assembly.GetCustomAttribute(); + var hashIndex = versionAttribute.InformationalVersion.IndexOf('+'); + if (hashIndex == -1) + { + return versionAttribute.InformationalVersion; + } + + return versionAttribute.InformationalVersion.Substring(0, hashIndex); + } + #endregion } } From 1bd939d082748bdcea8533ae16d0576442814860 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:26:38 -0800 Subject: [PATCH 23/30] CSHARP-4380: Remove legacy shell from test scripts (#1225) --- evergreen/evergreen.yml | 212 +++++------------------------- evergreen/run-mongodb-aws-test.sh | 20 +-- 2 files changed, 37 insertions(+), 195 deletions(-) diff --git a/evergreen/evergreen.yml b/evergreen/evergreen.yml index 5a56d4312a4..647d6bd32bf 100644 --- a/evergreen/evergreen.yml +++ b/evergreen/evergreen.yml @@ -426,130 +426,56 @@ functions: MONGODB_URI="${plain_auth_mongodb_uri}" evergreen/run-plain-auth-tests.sh add-aws-auth-variables-to-file: - - command: shell.exec - type: test + - command: ec2.assume_role params: - working_dir: mongo-csharp-driver - silent: true - script: | - cat < ${DRIVERS_TOOLS}/.evergreen/auth_aws/aws_e2e_setup.json - { - "iam_auth_ecs_account" : "${iam_auth_ecs_account}", - "iam_auth_ecs_secret_access_key" : "${iam_auth_ecs_secret_access_key}", - "iam_auth_ecs_account_arn": "arn:aws:iam::557821124784:user/authtest_fargate_user", - "iam_auth_ecs_cluster": "${iam_auth_ecs_cluster}", - "iam_auth_ecs_task_definition": "${iam_auth_ecs_task_definition}", - "iam_auth_ecs_subnet_a": "${iam_auth_ecs_subnet_a}", - "iam_auth_ecs_subnet_b": "${iam_auth_ecs_subnet_b}", - "iam_auth_ecs_security_group": "${iam_auth_ecs_security_group}", - "iam_auth_assume_aws_account" : "${iam_auth_assume_aws_account}", - "iam_auth_assume_aws_secret_access_key" : "${iam_auth_assume_aws_secret_access_key}", - "iam_auth_assume_role_name" : "${iam_auth_assume_role_name}", - "iam_auth_ec2_instance_account" : "${iam_auth_ec2_instance_account}", - "iam_auth_ec2_instance_secret_access_key" : "${iam_auth_ec2_instance_secret_access_key}", - "iam_auth_ec2_instance_profile" : "${iam_auth_ec2_instance_profile}", - "iam_auth_assume_web_role_name": "${iam_auth_assume_web_role_name}", - "iam_web_identity_issuer": "${iam_web_identity_issuer}", - "iam_web_identity_rsa_key": "${iam_web_identity_rsa_key}", - "iam_web_identity_jwks_uri": "${iam_web_identity_jwks_uri}", - "iam_web_identity_token_file": "${iam_web_identity_token_file}" - } - EOF - - run-aws-auth-test-with-regular-aws-credentials: + role_arn: ${aws_test_secrets_role} - command: shell.exec type: test params: - silent: true shell: "bash" working_dir: mongo-csharp-driver + include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] script: | ${PREPARE_SHELL} - cd ${DRIVERS_TOOLS}/.evergreen/auth_aws - . ./activate-authawsvenv.sh - mongo aws_e2e_regular_aws.js + cd $DRIVERS_TOOLS/.evergreen/auth_aws + ./setup_secrets.sh drivers/aws_auth + + run-aws-auth-test-with-regular-aws-credentials: - command: shell.exec type: test params: + env: + IAM_AUTH_ECS_ACCOUNT: ${iam_auth_ecs_account} + IAM_AUTH_ECS_SECRET_ACCESS_KEY: ${iam_auth_ecs_secret_access_key} working_dir: mongo-csharp-driver - script: | - cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - alias urlencode='${python3_binary} -c "import sys, urllib.parse as ulp; sys.stdout.write(ulp.quote_plus(sys.argv[1]))"' - USER=$(urlencode "${iam_auth_ecs_account}") - PASS=$(urlencode "${iam_auth_ecs_secret_access_key}") - MONGODB_URI="mongodb://$USER:$PASS@localhost" - EOF - PROJECT_DIRECTORY=${PROJECT_DIRECTORY} OS=${OS} evergreen/run-mongodb-aws-test.sh + script: + DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=${OS} evergreen/run-mongodb-aws-test.sh regular run-aws-auth-test-with-assume-role-credentials: - command: shell.exec type: test params: - silent: true - shell: "bash" working_dir: mongo-csharp-driver - script: | - ${PREPARE_SHELL} - # The aws_e2e_assume_role script requires python3 with boto3. - cd ${DRIVERS_TOOLS}/.evergreen/auth_aws - . ./activate-authawsvenv.sh - mongo aws_e2e_assume_role.js - - command: shell.exec - type: test - params: - working_dir: mongo-csharp-driver - script: | - # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) - cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - alias urlencode='${python3_binary} -c "import sys, urllib.parse as ulp; sys.stdout.write(ulp.quote_plus(sys.argv[1]))"' - alias jsonkey='${python3_binary} -c "import json,sys;sys.stdout.write(json.load(sys.stdin)[sys.argv[1]])" < ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json' - USER=$(jsonkey AccessKeyId) - USER=$(urlencode $USER) - PASS=$(jsonkey SecretAccessKey) - PASS=$(urlencode $PASS) - SESSION_TOKEN=$(jsonkey SessionToken) - SESSION_TOKEN=$(urlencode $SESSION_TOKEN) - MONGODB_URI="mongodb://$USER:$PASS@localhost" - EOF - PROJECT_DIRECTORY=${PROJECT_DIRECTORY} DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=${OS} evergreen/run-mongodb-aws-test.sh + script: + DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=${OS} evergreen/run-mongodb-aws-test.sh assume-role run-aws-auth-test-with-aws-EC2-credentials: - command: shell.exec type: test params: - silent: true - shell: "bash" working_dir: mongo-csharp-driver script: | ${PREPARE_SHELL} if [ "${skip_EC2_auth_test}" = "true" ]; then - echo "This platform does not support the EC2 auth test, skipping..." - exit 0 - fi - cd ${DRIVERS_TOOLS}/.evergreen/auth_aws - . ./activate-authawsvenv.sh - mongo aws_e2e_ec2.js - - command: shell.exec - type: test - params: - working_dir: mongo-csharp-driver - script: | - if [ "${skip_EC2_auth_test}" = "true" ]; then - echo "This platform does not support the EC2 auth test, skipping..." - exit 0 + echo "This platform does not support the EC2 auth test, skipping..." + exit 0 fi - # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) - cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - MONGODB_URI="mongodb://localhost" - EOF - export AWS_EC2_ENABLED=true - PROJECT_DIRECTORY=${PROJECT_DIRECTORY} ASSERT_NO_URI_CREDS=true OS=$OS evergreen/run-mongodb-aws-test.sh + DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=${OS} ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh ec2 run-aws-auth-test-with-aws-ECS-credentials: - command: shell.exec type: test params: - silent: true shell: "bash" working_dir: mongo-csharp-driver script: | @@ -558,8 +484,6 @@ functions: echo "This platform does not support the ECS auth test, skipping..." exit 0 fi - cd ${DRIVERS_TOOLS}/.evergreen/auth_aws - . ./activate-authawsvenv.sh echo "Project Directory: $PROJECT_DIRECTORY" # SRC_DIRECTORY is workaround since EG_TOOLS expects "src" folder as a root SRC_DIRECTORY=$(dirname $PROJECT_DIRECTORY)/src @@ -568,18 +492,14 @@ functions: # Workaround. EG_TOOLS scripts for ECS assume that a folder with EG scripts in the driver is named ".evergreen" mkdir $SRC_DIRECTORY/.evergreen cp -r $SRC_DIRECTORY/evergreen/run-mongodb-aws-ecs-test.sh $SRC_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh - cat < setup.js - const mongo_binaries = "$MONGODB_BINARIES"; - const project_dir = "$SRC_DIRECTORY" - EOF - mongo --nodb setup.js aws_e2e_ecs.js - cd - + + export PROJECT_DIRECTORY="$SRC_DIRECTORY" + ${DRIVERS_TOOLS}/.evergreen/auth_aws/aws_setup.sh ecs run-aws-auth-test-with-aws-web-identity-credentials: - command: shell.exec type: test params: - shell: "bash" working_dir: mongo-csharp-driver script: | ${PREPARE_SHELL} @@ -587,56 +507,11 @@ functions: echo "This platform does not support the web identity auth test, skipping..." exit 0 fi - cd ${DRIVERS_TOOLS}/.evergreen/auth_aws - . ./activate-authawsvenv.sh - mongo aws_e2e_web_identity.js - - command: shell.exec - type: test - params: - working_dir: mongo-csharp-driver - silent: true - script: | - if [ "${skip_web_identity_auth_test}" = "true" ]; then - echo "This platform does not support the web identity auth test, skipping..." - exit 0 - fi - # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) - cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - export AWS_ROLE_ARN="${iam_auth_assume_web_role_name}" - export AWS_WEB_IDENTITY_TOKEN_FILE="${iam_web_identity_token_file}" - export MONGODB_URI="mongodb://localhost" - EOF - - command: shell.exec - type: test - params: - working_dir: mongo-csharp-driver - script: | - ${PREPARE_SHELL} - if [ "${skip_web_identity_auth_test}" = "true" ]; then - echo "This platform does not support the web identity auth test, skipping..." - exit 0 - fi - PROJECT_DIRECTORY=${PROJECT_DIRECTORY} OS=$OS ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh - - command: shell.exec - type: test - params: - working_dir: mongo-csharp-driver - silent: true - script: | - if [ "${skip_EC2_auth_test}" = "true" ]; then - echo "This platform does not support the web identity auth test, skipping..." - exit 0 - fi - # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) - cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - export AWS_ROLE_ARN="${iam_auth_assume_web_role_name}" - export AWS_WEB_IDENTITY_TOKEN_FILE="${iam_web_identity_token_file}" - export AWS_ROLE_SESSION_NAME="test" - export MONGODB_URI="mongodb://localhost" - EOF + DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=$OS ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh web-identity - command: shell.exec type: test params: + shell: "bash" working_dir: mongo-csharp-driver script: | ${PREPARE_SHELL} @@ -644,51 +519,27 @@ functions: echo "This platform does not support the web identity auth test, skipping..." exit 0 fi - PROJECT_DIRECTORY=${PROJECT_DIRECTORY} OS=$OS ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh + export AWS_ROLE_SESSION_NAME="test" + DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=$OS ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh web-identity run-aws-auth-test-with-aws-credentials-as-environment-variables: - command: shell.exec type: test params: - silent: true - working_dir: mongo-csharp-driver - script: | - # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) - cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account} - export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key} - MONGODB_URI="mongodb://localhost" - EOF - - command: shell.exec - type: test - params: + env: + IAM_AUTH_ECS_ACCOUNT: ${iam_auth_ecs_account} + IAM_AUTH_ECS_SECRET_ACCESS_KEY: ${iam_auth_ecs_secret_access_key} working_dir: mongo-csharp-driver - script: | - ${PREPARE_SHELL} - OS=${OS} ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh + script: + DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=${OS} ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh env-creds run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables: - command: shell.exec type: test params: - silent: true working_dir: mongo-csharp-driver - script: | - # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) - cat <<'EOF' > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - alias jsonkey='${python3_binary} -c "import json,sys;sys.stdout.write(json.load(sys.stdin)[sys.argv[1]])" < ${DRIVERS_TOOLS}/.evergreen/auth_aws/creds.json' - export AWS_ACCESS_KEY_ID=$(jsonkey AccessKeyId) - export AWS_SECRET_ACCESS_KEY=$(jsonkey SecretAccessKey) - export AWS_SESSION_TOKEN=$(jsonkey SessionToken) - MONGODB_URI="mongodb://localhost" - EOF - - command: shell.exec - type: test - params: - working_dir: mongo-csharp-driver - script: | - ${PREPARE_SHELL} - OS=${OS} ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh + script: + DRIVERS_TOOLS=${DRIVERS_TOOLS} OS=${OS} ASSERT_NO_URI_CREDS=true evergreen/run-mongodb-aws-test.sh session-creds run-atlas-data-lake-test: - command: shell.exec @@ -2418,3 +2269,4 @@ buildvariants: tags: ["dev-package"] tasks: - name: dev-package + diff --git a/evergreen/run-mongodb-aws-test.sh b/evergreen/run-mongodb-aws-test.sh index 3b9eda5fd04..b78af9c5fe9 100755 --- a/evergreen/run-mongodb-aws-test.sh +++ b/evergreen/run-mongodb-aws-test.sh @@ -26,20 +26,10 @@ done # ensure no secrets are printed in log files set +x -# load the script -shopt -s expand_aliases # needed for `urlencode` alias -[ -s "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" ] && source "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" - -# Provision the correct connection string -if [ -z ${MONGODB_URI+x} ]; then - echo "MONGODB_URI is not set"; - exit 1 -fi -MONGODB_URI="${MONGODB_URI}/aws?authMechanism=MONGODB-AWS" -if [[ -n ${SESSION_TOKEN} ]]; then - MONGODB_URI="${MONGODB_URI}&authMechanismProperties=AWS_SESSION_TOKEN:${SESSION_TOKEN}" -fi -if [ "$ASSERT_NO_URI_CREDS" = "true" ]; then +# Handle credentials and environment setup. +. $DRIVERS_TOOLS/.evergreen/auth_aws/aws_setup.sh $1 + +if [ "${ASSERT_NO_URI_CREDS:-false}" = "true" ]; then if echo "$MONGODB_URI" | grep -q "@"; then echo "MONGODB_URI unexpectedly contains user credentials!"; exit 1 @@ -56,4 +46,4 @@ if [[ "$OS" =~ Windows|windows ]]; then powershell.exe .\\build.ps1 --target=TestAwsAuthentication else ./build.sh --target=TestAwsAuthentication -fi \ No newline at end of file +fi From a322f26e3d9a8d2dacaba01e840abc57e204979e Mon Sep 17 00:00:00 2001 From: rstam Date: Thu, 7 Dec 2023 10:07:57 -0800 Subject: [PATCH 24/30] CSHARP-4863: Refactor AggregateMethodToAggregationExpressionTranslator to produce simpler translations when possible. --- ...MethodToAggregationExpressionTranslator.cs | 23 +++--- .../Jira/CSharp4048Tests.cs | 4 +- ...dToAggregationExpressionTranslatorTests.cs | 70 +++++++++++++++++++ .../AggregateProjectTranslatorTests.cs | 12 ++-- 4 files changed, 92 insertions(+), 17 deletions(-) create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslatorTests.cs diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslator.cs index ddf0fedff11..4afbb7d2d96 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslator.cs @@ -53,16 +53,21 @@ public static AggregationExpression Translate(TranslationContext context, Method var funcContext = context.WithSymbols(accumulatorSymbol, itemSymbol); var funcTranslation = ExpressionToAggregationExpressionTranslator.Translate(funcContext, funcLambda.Body); - var sourceVar = AstExpression.Var("source"); + var (sourceVarBinding, sourceAst) = AstExpression.UseVarIfNotSimple("source", sourceTranslation.Ast); + var seedVar = AstExpression.Var("seed"); + var restVar = AstExpression.Var("rest"); var ast = AstExpression.Let( - var: AstExpression.VarBinding(sourceVar, sourceTranslation.Ast), - @in: AstExpression.Cond( - @if: AstExpression.Lte(AstExpression.Size(sourceVar), 1), - @then: AstExpression.ArrayElemAt(sourceVar, 0), - @else: AstExpression.Reduce( - input: AstExpression.Slice(sourceVar, 1, int.MaxValue), - initialValue: AstExpression.ArrayElemAt(sourceVar, 0), - @in: funcTranslation.Ast))); + var: sourceVarBinding, + @in: AstExpression.Let( + var1: AstExpression.VarBinding(seedVar, AstExpression.ArrayElemAt(sourceAst, 0)), + var2: AstExpression.VarBinding(restVar, AstExpression.Slice(sourceAst, 1, int.MaxValue)), + @in: AstExpression.Cond( + @if: AstExpression.Eq(AstExpression.Size(restVar), 0), + @then: seedVar, + @else: AstExpression.Reduce( + input: restVar, + initialValue: seedVar, + @in: funcTranslation.Ast)))); return new AggregationExpression(expression, ast, itemSerializer); } diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4048Tests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4048Tests.cs index 4284d189ad6..c9cda0fd6a2 100644 --- a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4048Tests.cs +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4048Tests.cs @@ -137,7 +137,7 @@ public void IGrouping_Aggregate_with_func_of_root_should_return_expected_result( var expectedStages = new[] { "{ $group : { _id : '$_id', _elements : { $push: '$$ROOT' } } }", - "{ $project : { _id : '$_id', Result : { $let : { vars : { source : '$_elements' }, in : { $cond : { if : { $lte : [{ $size : '$$source' }, 1] }, then : { $arrayElemAt : ['$$source', 0] }, else : { $reduce : { input : { $slice : ['$$source', 1, 2147483647] }, initialValue : { $arrayElemAt : ['$$source', 0] }, in : '$$value' } } } } } } } }", + "{ $project : { _id : '$_id', Result : { $let : { vars : { seed : { $arrayElemAt : ['$_elements', 0] }, rest : { $slice : ['$_elements', 1, 2147483647] } }, in : { $cond : { if : { $eq : [{ $size : '$$rest' }, 0] }, then : '$$seed', else : { $reduce : { input : '$$rest', initialValue : '$$seed', in : '$$value' } } } } } } } }", "{ $sort : { _id : 1 } }" }; AssertStages(stages, expectedStages); @@ -162,7 +162,7 @@ public void IGrouping_Aggregate_with_func_of_scalar_should_return_expected_resul var expectedStages = new[] { "{ $group : { _id : '$_id', _elements : { $push: '$X' } } }", - "{ $project : { _id : '$_id', Result : { $let : { vars : { source : '$_elements' }, in : { $cond : { if : { $lte : [{ $size : '$$source' }, 1] }, then : { $arrayElemAt : ['$$source', 0] }, else : { $reduce : { input : { $slice : ['$$source', 1, 2147483647] }, initialValue : { $arrayElemAt : ['$$source', 0] }, in : '$$value' } } } } } } } }", + "{ $project : { _id : '$_id', Result : { $let : { vars : { seed : { $arrayElemAt : ['$_elements', 0] }, rest : { $slice : ['$_elements', 1, 2147483647] } }, in : { $cond : { if : { $eq : [{ $size : '$$rest' }, 0] }, then : '$$seed', else : { $reduce : { input : '$$rest', initialValue : '$$seed', in : '$$value' } } } } } } } }", "{ $sort : { _id : 1 } }" }; AssertStages(stages, expectedStages); diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslatorTests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslatorTests.cs new file mode 100644 index 00000000000..5462df918bb --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/AggregateMethodToAggregationExpressionTranslatorTests.cs @@ -0,0 +1,70 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Linq; +using FluentAssertions; +using MongoDB.Bson; +using MongoDB.Driver.Linq; +using MongoDB.TestHelpers.XunitExtensions; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.MethodTranslators +{ + public class AggregateMethodToAggregationExpressionTranslatorTests : Linq3IntegrationTest + { + [Theory] + [ParameterAttributeData] + public void Aggregate_with_func_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = CreateCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.A.Aggregate((x, y) => x * y)); + + var stages = Translate(collection, queryable); + var results = queryable.ToList(); + + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $reduce : { input : '$A', initialValue : 0, in : { $multiply : ['$$value', '$$this'] } } }, _id : 0 } }"); + results.Should().Equal(0, 0, 0, 0); // LINQ2 results are wrong + } + else + { + AssertStages(stages, "{ $project : { _v : { $let : { vars : { seed : { $arrayElemAt : ['$A', 0] }, rest : { $slice : ['$A', 1, 2147483647] } }, in : { $cond : { if : { $eq : [{ $size : '$$rest' }, 0] }, then : '$$seed', else : { $reduce : { input : '$$rest', initialValue : '$$seed', in : { $multiply : ['$$value', '$$this'] } } } } } } }, _id : 0 } }"); + results.Should().Equal(0, 1, 2, 6); // C# throws exception on empty sequence but MQL returns 0 + } + } + + private IMongoCollection CreateCollection(LinqProvider linqProvider) + { + var collection = GetCollection("test", linqProvider); + CreateCollection( + GetCollection("test"), + BsonDocument.Parse("{ _id : 0, A : [] }"), + BsonDocument.Parse("{ _id : 1, A : [1] }"), + BsonDocument.Parse("{ _id : 2, A : [1, 2] }"), + BsonDocument.Parse("{ _id : 3, A : [1, 2, 3] }")); + return collection; + } + + private class C + { + public int Id { get; set; } + public int[] A { get; set; } + } + } +} diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3ImplementationWithLinq2Tests/Translators/AggregateProjectTranslatorTests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3ImplementationWithLinq2Tests/Translators/AggregateProjectTranslatorTests.cs index f5e8a2d661a..6a0db02dacd 100644 --- a/tests/MongoDB.Driver.Tests/Linq/Linq3ImplementationWithLinq2Tests/Translators/AggregateProjectTranslatorTests.cs +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3ImplementationWithLinq2Tests/Translators/AggregateProjectTranslatorTests.cs @@ -1003,20 +1003,20 @@ public void Should_translate_reduce() { $let : { - vars : { source : '$M' }, + vars : { seed : { $arrayElemAt : ['$M', 0] }, rest : { $slice : ['$M', 1, 2147483647] } }, in : { $cond: { - if : { $lte : [ { $size : '$$source' }, 1 ] }, - then: { $arrayElemAt : [ '$$source', 0 ] }, + if : { $eq : [{ $size : '$$rest' }, 0] }, + then: '$$seed', else : { $reduce : { - input : { $slice : [ '$$source', 1, 2147483647 ] }, - initialValue : { $arrayElemAt : [ '$$source', 0 ] }, - in : { $add : [ '$$value', '$$this' ] } + input : '$$rest', + initialValue : '$$seed', + in : { $add : ['$$value', '$$this'] } } } } From 8365a619214cfcf67659f5d647435654c8e3c1ef Mon Sep 17 00:00:00 2001 From: rstam Date: Thu, 7 Dec 2023 10:20:40 -0800 Subject: [PATCH 25/30] CSHARP-4813: Verify more carefully that property named Count is a collection method. --- .../DiscriminatedInterfaceSerializer.cs | 25 +- ...mpliedImplementationInterfaceSerializer.cs | 18 +- .../Serializers/KeyValuePairSerializer.cs | 18 +- .../Misc/DocumentSerializerHelper.cs | 61 +- .../Misc/SerializationHelper.cs | 79 ++- .../Reflection/EnumerableProperty.cs | 46 ++ .../KnownSerializers/KnownSerializerFinder.cs | 6 +- ...essionToAggregationExpressionTranslator.cs | 23 +- .../MaxMethodToExecutableQueryTranslator.cs | 2 +- .../MinMethodToExecutableQueryTranslator.cs | 2 +- ...tComparisonExpressionToFilterTranslator.cs | 20 +- ...MemberExpressionToFilterFieldTranslator.cs | 2 +- .../SelectMethodToFilterFieldTranslator.cs | 2 +- .../ExpressionToSetStageTranslator.cs | 4 +- .../Jira/CSharp4813Tests.cs | 524 ++++++++++++++++++ .../Misc/DocumentSerializerHelperTests.cs | 101 ++++ .../Misc/SerializationHelperTests.cs | 210 +++++++ 17 files changed, 1080 insertions(+), 63 deletions(-) create mode 100644 src/MongoDB.Driver/Linq/Linq3Implementation/Reflection/EnumerableProperty.cs create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4813Tests.cs create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/DocumentSerializerHelperTests.cs create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/SerializationHelperTests.cs diff --git a/src/MongoDB.Bson/Serialization/Serializers/DiscriminatedInterfaceSerializer.cs b/src/MongoDB.Bson/Serialization/Serializers/DiscriminatedInterfaceSerializer.cs index 6e1250cad30..91ca46ef2d0 100644 --- a/src/MongoDB.Bson/Serialization/Serializers/DiscriminatedInterfaceSerializer.cs +++ b/src/MongoDB.Bson/Serialization/Serializers/DiscriminatedInterfaceSerializer.cs @@ -19,11 +19,26 @@ namespace MongoDB.Bson.Serialization.Serializers { + /// + /// An interface implemented by DiscriminatedInterfaceSerializer. + /// + public interface IDiscriminatedInterfaceSerializer + { + /// + /// Gets the interface serializer. + /// + IBsonSerializer InterfaceSerializer { get; } + } + /// /// Represents a serializer for Interfaces. /// /// The type of the interface. - public class DiscriminatedInterfaceSerializer : SerializerBase, IBsonDocumentSerializer // where TInterface is an interface + public class DiscriminatedInterfaceSerializer : + SerializerBase, + IBsonDocumentSerializer, + IDiscriminatedInterfaceSerializer + // where TInterface is an interface { #region static private static IBsonSerializer CreateInterfaceSerializer() @@ -97,6 +112,14 @@ public DiscriminatedInterfaceSerializer(IDiscriminatorConvention discriminatorCo _interfaceSerializer = interfaceSerializer; } + // public properties + /// + /// Gets the interface serializer. + /// + public IBsonSerializer InterfaceSerializer => _interfaceSerializer; + + IBsonSerializer IDiscriminatedInterfaceSerializer.InterfaceSerializer => _interfaceSerializer; + // public methods /// /// Deserializes a value. diff --git a/src/MongoDB.Bson/Serialization/Serializers/ImpliedImplementationInterfaceSerializer.cs b/src/MongoDB.Bson/Serialization/Serializers/ImpliedImplementationInterfaceSerializer.cs index bcea805716f..5049616034c 100644 --- a/src/MongoDB.Bson/Serialization/Serializers/ImpliedImplementationInterfaceSerializer.cs +++ b/src/MongoDB.Bson/Serialization/Serializers/ImpliedImplementationInterfaceSerializer.cs @@ -14,13 +14,22 @@ */ using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using MongoDB.Bson.Serialization.Options; namespace MongoDB.Bson.Serialization.Serializers { + /// + /// An interface implemented by ImpliedImplementationInterfaceSerializer. + /// + public interface IImpliedImplementationInterfaceSerializer + { + /// + /// Gets the serializer for the implied implementation. + /// + IBsonSerializer ImplementationSerializer { get; } + } + /// /// Represents a serializer for Interfaces. /// @@ -31,7 +40,8 @@ public class ImpliedImplementationInterfaceSerializer ImplementationSerializer get { return _lazyImplementationSerializer.Value; } } + IBsonSerializer IImpliedImplementationInterfaceSerializer.ImplementationSerializer => ImplementationSerializer; + /// /// Gets the value serializer. /// diff --git a/src/MongoDB.Bson/Serialization/Serializers/KeyValuePairSerializer.cs b/src/MongoDB.Bson/Serialization/Serializers/KeyValuePairSerializer.cs index 19769e646b3..d0c15f09b1b 100644 --- a/src/MongoDB.Bson/Serialization/Serializers/KeyValuePairSerializer.cs +++ b/src/MongoDB.Bson/Serialization/Serializers/KeyValuePairSerializer.cs @@ -15,13 +15,20 @@ using System; using System.Collections.Generic; -using System.IO; -using MongoDB.Bson.IO; -using MongoDB.Bson.Serialization.Conventions; -using MongoDB.Bson.Serialization.Options; namespace MongoDB.Bson.Serialization.Serializers { + /// + /// An interface implemented by KeyValuePairSerializer. + /// + public interface IKeyValuePairSerializer + { + /// + /// Gets the representation. + /// + BsonType Representation { get; } + } + /// /// Represents a serializer for KeyValuePairs. /// @@ -29,7 +36,8 @@ namespace MongoDB.Bson.Serialization.Serializers /// The type of the values. public class KeyValuePairSerializer : StructSerializerBase>, - IBsonDocumentSerializer + IBsonDocumentSerializer, + IKeyValuePairSerializer { // private constants private static class Flags diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/DocumentSerializerHelper.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/DocumentSerializerHelper.cs index 329a8b477e5..4794e70afc4 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/DocumentSerializerHelper.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/DocumentSerializerHelper.cs @@ -14,17 +14,67 @@ */ using System; +using MongoDB.Bson; using MongoDB.Bson.Serialization; +using MongoDB.Bson.Serialization.Serializers; namespace MongoDB.Driver.Linq.Linq3Implementation.Misc { internal static class DocumentSerializerHelper { + public static bool AreMembersRepresentedAsFields(IBsonSerializer serializer, out IBsonDocumentSerializer documentSerializer) + { + if (serializer is IDiscriminatedInterfaceSerializer discriminatedInterfaceSerializer) + { + return AreMembersRepresentedAsFields(discriminatedInterfaceSerializer.InterfaceSerializer, out documentSerializer); + } + + if (serializer is IDowncastingSerializer downcastingSerializer) + { + return AreMembersRepresentedAsFields(downcastingSerializer.DerivedSerializer, out documentSerializer); + } + + if (serializer is IImpliedImplementationInterfaceSerializer impliedImplementationSerializer) + { + return AreMembersRepresentedAsFields(impliedImplementationSerializer.ImplementationSerializer, out documentSerializer); + } + + if (serializer is IBsonDictionarySerializer) + { + documentSerializer = null; + return false; + } + + if (serializer is IKeyValuePairSerializer keyValuePairSerializer) + { + if (keyValuePairSerializer.Representation == BsonType.Document) + { + documentSerializer = (IBsonDocumentSerializer)keyValuePairSerializer; + return true; + } + else + { + documentSerializer = null; + return false; + } + } + + // for backward compatibility assume that any remaining implementers of IBsonDocumentSerializer represent members as fields + if (serializer is IBsonDocumentSerializer tempDocumentSerializer) + { + documentSerializer = tempDocumentSerializer; + return true; + } + + documentSerializer = null; + return false; + } + public static MemberSerializationInfo GetMemberSerializationInfo(IBsonSerializer serializer, string memberName) { - if (!(serializer is IBsonDocumentSerializer documentSerializer)) + if (!AreMembersRepresentedAsFields(serializer, out var documentSerializer)) { - throw new NotSupportedException($"Serializer for {serializer.ValueType} must implement IBsonDocumentSerializer to be used with LINQ."); + throw new NotSupportedException($"Serializer for {serializer.ValueType} does not represent members as fields."); } if (!(documentSerializer.TryGetMemberSerializationInfo(memberName, out BsonSerializationInfo serializationInfo))) @@ -41,12 +91,5 @@ public static MemberSerializationInfo GetMemberSerializationInfo(IBsonSerializer return new MemberSerializationInfo(serializationInfo.ElementPath, serializationInfo.Serializer); } } - - public static bool HasMemberSerializationInfo(IBsonSerializer serializer, string memberName) - { - return - serializer is IBsonDocumentSerializer documentSerializer && - documentSerializer.TryGetMemberSerializationInfo(memberName, out var _); - } } } diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/SerializationHelper.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/SerializationHelper.cs index 346a6f688a5..414b15c6f9e 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/SerializationHelper.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Misc/SerializationHelper.cs @@ -13,31 +13,34 @@ * limitations under the License. */ -using System; using System.Collections; using System.Linq.Expressions; using MongoDB.Bson; using MongoDB.Bson.IO; using MongoDB.Bson.Serialization; +using MongoDB.Bson.Serialization.Options; +using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver.Linq.Linq3Implementation.Serializers; namespace MongoDB.Driver.Linq.Linq3Implementation.Misc { internal static class SerializationHelper { - public static void EnsureRepresentationIsNumeric(Expression expression, IBsonSerializer serializer) + public static void EnsureRepresentationIsArray(Expression expression, IBsonSerializer serializer) { - if (serializer is IRepresentationConfigurable representationConfigurableSerializer) + var representation = GetRepresentation(serializer); + if (representation != BsonType.Array) { - EnsureRepresentationIsNumeric(expression, serializer.ValueType, representationConfigurableSerializer.Representation); + throw new ExpressionNotSupportedException(expression, because: "the expression is not represented as an array in the database"); } + } - static void EnsureRepresentationIsNumeric(Expression expression, Type valueType, BsonType representation) + public static void EnsureRepresentationIsNumeric(Expression expression, IBsonSerializer serializer) + { + var representation = GetRepresentation(serializer); + if (!IsNumericRepresentation(representation)) { - if (!IsNumericRepresentation(representation)) - { - throw new ExpressionNotSupportedException(expression, because: $"serializer for type {valueType} uses a non-numeric representation: {representation}"); - } + throw new ExpressionNotSupportedException(expression, because: $"serializer for type {serializer.ValueType} uses a non-numeric representation: {representation}"); } static bool IsNumericRepresentation(BsonType representation) @@ -50,6 +53,64 @@ static bool IsNumericRepresentation(BsonType representation) } } + public static BsonType GetRepresentation(IBsonSerializer serializer) + { + if (serializer is IDiscriminatedInterfaceSerializer discriminatedInterfaceSerializer) + { + return GetRepresentation(discriminatedInterfaceSerializer.InterfaceSerializer); + } + + if (serializer is IDowncastingSerializer downcastingSerializer) + { + return GetRepresentation(downcastingSerializer.DerivedSerializer); + } + + if (serializer is IImpliedImplementationInterfaceSerializer impliedImplementationSerializer) + { + return GetRepresentation(impliedImplementationSerializer.ImplementationSerializer); + } + + if (serializer is IHasRepresentationSerializer hasRepresentationSerializer) + { + return hasRepresentationSerializer.Representation; + } + + if (serializer is IBsonDictionarySerializer dictionarySerializer) + { + return dictionarySerializer.DictionaryRepresentation switch + { + DictionaryRepresentation.ArrayOfArrays => BsonType.Array, + DictionaryRepresentation.ArrayOfDocuments => BsonType.Array, + DictionaryRepresentation.Document => BsonType.Document, + _ => BsonType.Undefined + }; + } + + if (serializer is IKeyValuePairSerializer keyValuePairSerializer) + { + return keyValuePairSerializer.Representation; + } + + // for backward compatibility assume that any remaining implementers of IBsonDocumentSerializer are represented as documents + if (serializer is IBsonDocumentSerializer) + { + return BsonType.Document; + } + + // for backward compatibility assume that any remaining implementers of IBsonArraySerializer are represented as documents + if (serializer is IBsonArraySerializer) + { + return BsonType.Array; + } + + return BsonType.Undefined; + } + + public static bool IsRepresentedAsDocument(IBsonSerializer serializer) + { + return SerializationHelper.GetRepresentation(serializer) == BsonType.Document; + } + public static BsonValue SerializeValue(IBsonSerializer serializer, ConstantExpression constantExpression, Expression containingExpression) { var value = constantExpression.Value; diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Reflection/EnumerableProperty.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Reflection/EnumerableProperty.cs new file mode 100644 index 00000000000..6e929c18d3c --- /dev/null +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Reflection/EnumerableProperty.cs @@ -0,0 +1,46 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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; +using System.Collections; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Reflection; +using MongoDB.Driver.Linq.Linq3Implementation.Misc; + +namespace MongoDB.Driver.Linq.Linq3Implementation.Reflection +{ + internal static class EnumerableProperty + { + // public methods + public static bool IsCountProperty(MemberExpression expression) + { + // Count is not actually a property defined by IEnumerable but rather defined by several sub-interfaces + return + expression.Expression != null && + expression.Member is PropertyInfo propertyInfo && + propertyInfo.Name == "Count" && + propertyInfo.PropertyType == typeof(int) && + propertyInfo.GetGetMethod().GetParameters().Length == 0 && + ImplementsCollectionInterface(expression.Expression.Type); + + static bool ImplementsCollectionInterface(Type type) + => + type.Implements(typeof(ICollection)) || + type.Implements(typeof(ICollection<>)) || + type.Implements(typeof(IReadOnlyCollection<>)); + } + } +} diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Serializers/KnownSerializers/KnownSerializerFinder.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Serializers/KnownSerializers/KnownSerializerFinder.cs index a898fb17216..bcc5f1820d1 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Serializers/KnownSerializers/KnownSerializerFinder.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Serializers/KnownSerializers/KnownSerializerFinder.cs @@ -112,13 +112,13 @@ protected override Expression VisitMember(MemberExpression node) var result = base.VisitMember(node); var containerSerializer = _registry.GetSerializer(node.Expression); - if (containerSerializer is IBsonDocumentSerializer documentSerializer) + if (DocumentSerializerHelper.AreMembersRepresentedAsFields(containerSerializer, out var documentSerializer)) { if (documentSerializer.TryGetMemberSerializationInfo(node.Member.Name, out var memberSerializationInfo)) { _currentKnownSerializersNode.AddKnownSerializer(node.Type, memberSerializationInfo.Serializer); - if (memberSerializationInfo.Serializer is IBsonDocumentSerializer bsonDocumentSerializer) + if (DocumentSerializerHelper.AreMembersRepresentedAsFields(memberSerializationInfo.Serializer, out var bsonDocumentSerializer)) { _currentSerializer = bsonDocumentSerializer; } @@ -199,7 +199,7 @@ protected override Expression VisitParameter(ParameterExpression node) if (_currentSerializer is IBsonArraySerializer arraySerializer && arraySerializer.TryGetItemSerializationInfo(out var itemSerializationInfo) && node.Type == itemSerializationInfo.NominalType && - itemSerializationInfo.Serializer is IBsonDocumentSerializer documentSerializer) + DocumentSerializerHelper.AreMembersRepresentedAsFields(itemSerializationInfo.Serializer, out var documentSerializer)) { _currentSerializer = documentSerializer; _currentKnownSerializersNode.AddKnownSerializer(node.Type, documentSerializer); diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MemberExpressionToAggregationExpressionTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MemberExpressionToAggregationExpressionTranslator.cs index db47c8bb5a5..494224ed495 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MemberExpressionToAggregationExpressionTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MemberExpressionToAggregationExpressionTranslator.cs @@ -24,6 +24,7 @@ using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver.Linq.Linq3Implementation.Ast.Expressions; using MongoDB.Driver.Linq.Linq3Implementation.Misc; +using MongoDB.Driver.Linq.Linq3Implementation.Reflection; using MongoDB.Driver.Linq.Linq3Implementation.Serializers; using MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.PropertyTranslators; @@ -58,7 +59,7 @@ public static AggregationExpression Translate(TranslationContext context, Member return TranslateTupleItemProperty(expression, containerTranslation); } - if (!DocumentSerializerHelper.HasMemberSerializationInfo(containerTranslation.Serializer, member.Name)) + if (!DocumentSerializerHelper.AreMembersRepresentedAsFields(containerTranslation.Serializer, out _)) { if (member is PropertyInfo propertyInfo && propertyInfo.Name == "Length") { @@ -113,22 +114,18 @@ private static AggregationExpression TranslateTupleItemProperty(MemberExpression private static bool TryTranslateCollectionCountProperty(MemberExpression expression, AggregationExpression container, MemberInfo memberInfo, out AggregationExpression result) { - result = null; - - var memberName = memberInfo.Name; - if ((memberName == "Count" || memberName == "LongCount") && memberInfo is PropertyInfo propertyInfo) + if (EnumerableProperty.IsCountProperty(expression)) { - var containerType = container.Expression.Type; - if (containerType.Implements(typeof(ICollection)) || containerType.Implements(typeof(ICollection<>))) - { - var ast = AstExpression.Size(container.Ast); - var serializer = BsonSerializer.LookupSerializer(propertyInfo.PropertyType); + SerializationHelper.EnsureRepresentationIsArray(expression, container.Serializer); - result = new AggregationExpression(expression, ast, serializer); - return true; - } + var ast = AstExpression.Size(container.Ast); + var serializer = Int32Serializer.Instance; + + result = new AggregationExpression(expression, ast, serializer); + return true; } + result = null; return false; } diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MaxMethodToExecutableQueryTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MaxMethodToExecutableQueryTranslator.cs index 99f5ab20975..6d37e090d14 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MaxMethodToExecutableQueryTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MaxMethodToExecutableQueryTranslator.cs @@ -72,7 +72,7 @@ public static ExecutableQuery Translate(MongoQuer { var selectorLambda = ExpressionHelper.UnquoteLambda(arguments[1]); var selectorTranslation = ExpressionToAggregationExpressionTranslator.TranslateLambdaBody(context, selectorLambda, sourceSerializer, asRoot: true); - if (selectorTranslation.Serializer is IBsonDocumentSerializer) + if (SerializationHelper.IsRepresentedAsDocument(selectorTranslation.Serializer)) { valueAst = selectorTranslation.Ast; valueSerializer = selectorTranslation.Serializer; diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MinMethodToExecutableQueryTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MinMethodToExecutableQueryTranslator.cs index 8b9ca579129..63b12c530f0 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MinMethodToExecutableQueryTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/MinMethodToExecutableQueryTranslator.cs @@ -72,7 +72,7 @@ public static ExecutableQuery Translate(MongoQuer { var selectorLambda = ExpressionHelper.UnquoteLambda(arguments[1]); var selectorTranslation = ExpressionToAggregationExpressionTranslator.TranslateLambdaBody(context, selectorLambda, sourceSerializer, asRoot: true); - if (selectorTranslation.Serializer is IBsonDocumentSerializer) + if (SerializationHelper.IsRepresentedAsDocument(selectorTranslation.Serializer)) { valueAst = selectorTranslation.Ast; valueSerializer = selectorTranslation.Serializer; diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs index 23722c21624..4b457eee40b 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs @@ -14,7 +14,6 @@ */ using System.Linq.Expressions; -using System.Reflection; using MongoDB.Bson; using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver.Linq.Linq3Implementation.Ast.Filters; @@ -29,20 +28,12 @@ internal static class CountComparisonExpressionToFilterTranslator // caller is responsible for ensuring constant is on the right public static bool CanTranslate(Expression leftExpression, Expression rightExpression, out Expression enumerableExpression, out Expression sizeExpression) { - if (leftExpression.NodeType == ExpressionType.MemberAccess) + if (leftExpression is MemberExpression leftMemberExpression && + EnumerableProperty.IsCountProperty(leftMemberExpression)) { - var leftMemberExpression = (MemberExpression)leftExpression; - if (leftMemberExpression.Expression != null) - { - var member = leftMemberExpression.Member; - if (member.MemberType == MemberTypes.Property && - member.Name == "Count") - { - enumerableExpression = leftMemberExpression.Expression; - sizeExpression = rightExpression; - return true; - } - } + enumerableExpression = leftMemberExpression.Expression; + sizeExpression = rightExpression; + return true; } if (leftExpression.NodeType == ExpressionType.Call) @@ -71,6 +62,7 @@ public static bool CanTranslate(Expression leftExpression, Expression rightExpre public static AstFilter Translate(TranslationContext context, BinaryExpression expression, Expression enumerableExpression, Expression sizeExpression) { var field = ExpressionToFilterFieldTranslator.Translate(context, enumerableExpression); + SerializationHelper.EnsureRepresentationIsArray(enumerableExpression, field.Serializer); if (TryConvertSizeExpressionToBsonValue(sizeExpression, out var size)) { diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/MemberExpressionToFilterFieldTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/MemberExpressionToFilterFieldTranslator.cs index 29cd8dc9030..b12c6bb5fc7 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/MemberExpressionToFilterFieldTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/MemberExpressionToFilterFieldTranslator.cs @@ -86,7 +86,7 @@ public static AstFilterField Translate(TranslationContext context, MemberExpress } } - if (fieldSerializer is IBsonDocumentSerializer documentSerializer && + if (DocumentSerializerHelper.AreMembersRepresentedAsFields(fieldSerializer , out var documentSerializer) && documentSerializer.TryGetMemberSerializationInfo(memberExpression.Member.Name, out BsonSerializationInfo memberSerializationInfo)) { var subFieldSerializer = memberSerializationInfo.Serializer; diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/SelectMethodToFilterFieldTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/SelectMethodToFilterFieldTranslator.cs index aea26a17285..a06f6afdd63 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/SelectMethodToFilterFieldTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ToFilterFieldTranslators/SelectMethodToFilterFieldTranslator.cs @@ -41,7 +41,7 @@ lambdaExpression.Body is MemberExpression memberExpression && memberExpression.Expression == lambdaExpression.Parameters.Single()) { var itemSerializer = ArraySerializerHelper.GetItemSerializer(sourceField.Serializer); - if (itemSerializer is IBsonDocumentSerializer documentSerializer) + if (DocumentSerializerHelper.AreMembersRepresentedAsFields(itemSerializer, out var documentSerializer)) { var memberName = memberExpression.Member.Name; if (documentSerializer.TryGetMemberSerializationInfo(memberName, out var memberSerializationInfo)) diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToSetStageTranslators/ExpressionToSetStageTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToSetStageTranslators/ExpressionToSetStageTranslator.cs index ddb21fc2106..018c2ae5051 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToSetStageTranslators/ExpressionToSetStageTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToSetStageTranslators/ExpressionToSetStageTranslator.cs @@ -29,9 +29,9 @@ internal static class ExpressionToSetStageTranslator { public static AstStage Translate(TranslationContext context, IBsonSerializer inputSerializer, LambdaExpression expression) { - if (inputSerializer is not IBsonDocumentSerializer documentSerializer) + if (!DocumentSerializerHelper.AreMembersRepresentedAsFields(inputSerializer, out var documentSerializer)) { - throw new ExpressionNotSupportedException(expression, because: $"serializer {inputSerializer.GetType()} does not implement IBsonDocumentSerializer"); + throw new ExpressionNotSupportedException(expression, because: $"serializer {inputSerializer.GetType()} does not represent members as fields"); } if (IsNewAnonymousClass(expression, out var newExpression)) diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4813Tests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4813Tests.cs new file mode 100644 index 00000000000..c0e172531a3 --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4813Tests.cs @@ -0,0 +1,524 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Collections; +using System.Collections.Generic; +using System.Linq; +using FluentAssertions; +using MongoDB.Bson.Serialization; +using MongoDB.Bson.Serialization.Attributes; +using MongoDB.Bson.Serialization.Options; +using MongoDB.Driver.Linq; +using MongoDB.TestHelpers.XunitExtensions; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira +{ + public class CSharp4813Tests : Linq3IntegrationTest + { + [Theory] + [ParameterAttributeData] + public void Where_BitArray_Count_should_throw( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.BitArray.Count == 1); + + if (linqProvider == LinqProvider.V2) + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'BitArray' : { $size : 1 } } }"); // LINQ2 translation is wrong + + var results = queryable.ToList(); + results.Should().HaveCount(0); // LINQ2 result is wrong + } + else + { + var exception = Record.Exception(() => Translate(collection, queryable)); + exception.Should().BeOfType(); + } + } + + [Theory] + [ParameterAttributeData] + public void Where_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.Count == 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { Count : 1 } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Where_Dictionary_Count_should_throw( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.Dictionary.Count == 1); + + if (linqProvider == LinqProvider.V2) + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'Dictionary.Count' : 1 } }"); // LINQ2 translation is wrong + + var results = queryable.ToList(); + results.Should().HaveCount(0); // LINQ2 result is wrong + } + else + { + var exception = Record.Exception(() => Translate(collection, queryable)); + exception.Should().BeOfType(); + } + } + + [Theory] + [ParameterAttributeData] + public void Where_DictionaryAsArrayOfArrays_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.DictionaryAsArrayOfArrays.Count == 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { DictionaryAsArrayOfArrays : { $size : 1 } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Where_DictionaryAsArrayOfDocuments_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.DictionaryAsArrayOfDocuments.Count == 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { DictionaryAsArrayOfDocuments : { $size : 1 } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Where_DictionaryInterface_Count_should_throw( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.DictionaryInterface.Count == 1); + + if (linqProvider == LinqProvider.V2) + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'DictionaryInterface.Count' : 1 } }"); // LINQ2 translation is wrong + + var results = queryable.ToList(); + results.Should().HaveCount(0); // LINQ2 result is wrong + } + else + { + var exception = Record.Exception(() => Translate(collection, queryable)); + exception.Should().BeOfType(); + } + } + + [Theory] + [ParameterAttributeData] + public void Where_DictionaryInterfaceArrayOfArrays_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.DictionaryInterfaceAsArrayOfArrays.Count == 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { DictionaryInterfaceAsArrayOfArrays : { $size : 1 } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Where_DictionaryInterfaceArrayOfDocuments_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.DictionaryInterfaceAsArrayOfDocuments.Count == 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { DictionaryInterfaceAsArrayOfDocuments : { $size : 1 } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Where_List_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.List.Count == 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'List' : { $size : 1 } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Where_ListInterface_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.ListInterface.Count == 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'ListInterface' : { $size : 1 } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(1); + } + + [Theory] + [ParameterAttributeData] + public void Select_BitArray_Count_should_throw( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.BitArray.Count); + + if (linqProvider == LinqProvider.V2) + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $project : { __fld0 : { $size : '$BitArray' }, _id : 0 } }"); // LINQ2 translation is wrong + + var exception = Record.Exception(() => queryable.ToList()); + exception.Should().BeOfType(); // LINQ2 query fails server side + } + else + { + var exception = Record.Exception(() => Translate(collection, queryable)); + exception.Should().BeOfType(); + exception.Message.Should().Contain("is not represented as an array"); + } + } + + [Theory] + [ParameterAttributeData] + public void Select_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.Count); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { Count : '$Count', _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : '$Count', _id : 0 } }"); + } + + var results = queryable.ToList(); + results.Should().Equal(1, 2); + } + + [Theory] + [ParameterAttributeData] + public void Select_Dictionary_Count_should_throw( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.Dictionary.Count); + + if (linqProvider == LinqProvider.V2) + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $project : { Count : '$Dictionary.Count', _id : 0 } }"); // LINQ2 translation is wrong + + var results = queryable.ToList(); + results.Should().Equal(0, 0); // LINQ2 result is wrong + } + else + { + var exception = Record.Exception(() => Translate(collection, queryable)); + exception.Should().BeOfType(); + exception.Message.Should().Contain("is not represented as an array"); + } + } + + [Theory] + [ParameterAttributeData] + public void Select_DictionaryAsArrayOfArrays_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.DictionaryAsArrayOfArrays.Count); + + var stages = Translate(collection, queryable); + var results = queryable.ToList(); + + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $size : '$DictionaryAsArrayOfArrays' }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $size : '$DictionaryAsArrayOfArrays' }, _id : 0 } }"); + } + + results.Should().Equal(1, 2); + } + + [Theory] + [ParameterAttributeData] + public void Select_DictionaryAsArrayOfDocuments_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.DictionaryAsArrayOfDocuments.Count); + + var stages = Translate(collection, queryable); + var results = queryable.ToList(); + + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $size : '$DictionaryAsArrayOfDocuments' }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $size : '$DictionaryAsArrayOfDocuments' }, _id : 0 } }"); + } + + results.Should().Equal(1, 2); + } + + [Theory] + [ParameterAttributeData] + public void Select_DictionaryInterface_Count_should_throw( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.DictionaryInterface.Count); + + if (linqProvider == LinqProvider.V2) + { + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $project : { Count : '$DictionaryInterface.Count', _id : 0 } }"); // LINQ2 translation is wrong + + var results = queryable.ToList(); + results.Should().Equal(0, 0); // LINQ2 result is wrong + } + else + { + var exception = Record.Exception(() => Translate(collection, queryable)); + exception.Should().BeOfType(); + exception.Message.Should().Contain("is not represented as an array"); + } + } + + [Theory] + [ParameterAttributeData] + public void Select_DictionaryInterfaceAsArrayOfArrays_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.DictionaryInterfaceAsArrayOfArrays.Count); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $size : '$DictionaryInterfaceAsArrayOfArrays' }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $size : '$DictionaryInterfaceAsArrayOfArrays' }, _id : 0 } }"); + } + + var results = queryable.ToList(); + results.Should().Equal(1, 2); + } + + [Theory] + [ParameterAttributeData] + public void Select_DictionaryInterfaceAsArrayOfDocuments_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.DictionaryInterfaceAsArrayOfDocuments.Count); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $size : '$DictionaryInterfaceAsArrayOfDocuments' }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $size : '$DictionaryInterfaceAsArrayOfDocuments' }, _id : 0 } }"); + } + + var results = queryable.ToList(); + results.Should().Equal(1, 2); + } + + [Theory] + [ParameterAttributeData] + public void Select_List_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.List.Count); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $size : '$List' }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $size : '$List' }, _id : 0 } }"); + } + + var results = queryable.ToList(); + results.Should().Equal(1, 2); + } + + [Theory] + [ParameterAttributeData] + public void Select_ListInterface_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Select(x => x.ListInterface.Count); + + var stages = Translate(collection, queryable); + if (linqProvider == LinqProvider.V2) + { + AssertStages(stages, "{ $project : { __fld0 : { $size : '$ListInterface' }, _id : 0 } }"); + } + else + { + AssertStages(stages, "{ $project : { _v : { $size : '$ListInterface' }, _id : 0 } }"); + } + + var results = queryable.ToList(); + results.Should().Equal(1, 2); + } + + private IMongoCollection GetCollection(LinqProvider linqProvider) + { + var collection = GetCollection("test", linqProvider); + CreateCollection( + collection, + new C + { + Id = 1, + BitArray = new BitArray(length: 1), + Count = 1, + Dictionary = new() { { "A", 1 } }, + DictionaryAsArrayOfArrays = new() { { "A", 1 } }, + DictionaryAsArrayOfDocuments = new() { { "A", 1 } }, + DictionaryInterface = new Dictionary { { "A", 1 } }, + DictionaryInterfaceAsArrayOfArrays = new Dictionary { { "A", 1 } }, + DictionaryInterfaceAsArrayOfDocuments = new Dictionary { { "A", 1 } }, + List = new() { 1 }, + ListInterface = new List() { 1 } + }, + new C + { + Id = 2, + BitArray = new BitArray(length: 2), + Count = 2, + Dictionary = new() { { "A", 1 }, { "B", 2 } }, + DictionaryAsArrayOfArrays = new() { { "A", 1 }, { "B", 2 } }, + DictionaryAsArrayOfDocuments = new() { { "A", 1 }, { "B", 2 } }, + DictionaryInterface = new Dictionary { { "A", 1 }, { "B", 2 } }, + DictionaryInterfaceAsArrayOfArrays = new Dictionary { { "A", 1 }, { "B", 2 } }, + DictionaryInterfaceAsArrayOfDocuments = new Dictionary { { "A", 1 }, { "B", 2 } }, + List = new() { 1, 2 }, + ListInterface = new List { 1, 2 } + }); ; + return collection; + } + + private class C + { + public int Id { get; set; } + public BitArray BitArray { get; set; } + public int Count { get; set; } + public Dictionary Dictionary { get; set; } + [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)] public Dictionary DictionaryAsArrayOfArrays { get; set; } + [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfDocuments)] public Dictionary DictionaryAsArrayOfDocuments { get; set; } + public IDictionary DictionaryInterface { get; set; } + [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)] public IDictionary DictionaryInterfaceAsArrayOfArrays { get; set; } + [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfDocuments)] public IDictionary DictionaryInterfaceAsArrayOfDocuments { get; set; } + public List List { get; set; } + public IList ListInterface { get; set; } + } + } +} diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/DocumentSerializerHelperTests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/DocumentSerializerHelperTests.cs new file mode 100644 index 00000000000..f4103bee3fb --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/DocumentSerializerHelperTests.cs @@ -0,0 +1,101 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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; +using System.Collections.Generic; +using FluentAssertions; +using MongoDB.Bson; +using MongoDB.Bson.Serialization; +using MongoDB.Bson.Serialization.Conventions; +using MongoDB.Bson.Serialization.Options; +using MongoDB.Bson.Serialization.Serializers; +using MongoDB.Driver.Linq.Linq3Implementation.Misc; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira +{ +#pragma warning disable CA1040 // Avoid empty interfaces + public class DocumentSerializerHelperTests + { + [Fact] + public void AreMembersRepresentedAsFields_with_DiscriminatedInterfaceSerializer_should_work() + { + var discriminatorConvention = new ScalarDiscriminatorConvention("_t"); + var implementationSerializer = BsonSerializer.LookupSerializer(); + var interfaceSerializer = new ImpliedImplementationInterfaceSerializer(implementationSerializer); + var serializer = new DiscriminatedInterfaceSerializer(discriminatorConvention, interfaceSerializer); + + var result = DocumentSerializerHelper.AreMembersRepresentedAsFields(serializer, out var documentSerializer); + + result.Should().BeTrue(); + documentSerializer.Should().BeSameAs(implementationSerializer); + } + + [Fact] + public void AreMembersRepresentedAsFields_with_DowncastingSerializer_should_work() + { + var derivedSerializer = BsonSerializer.LookupSerializer(); + var serializer = new DowncastingSerializer(derivedSerializer); + + var result = DocumentSerializerHelper.AreMembersRepresentedAsFields(serializer, out var documentSerializer); + + result.Should().BeTrue(); + documentSerializer.Should().BeSameAs(derivedSerializer); + } + + [Fact] + public void AreMembersRepresentedAsFields_with_ImpliedImplementationInterfaceSerializer_should_work() + { + var implementationSerializer = BsonSerializer.LookupSerializer(); + var serializer = new ImpliedImplementationInterfaceSerializer(implementationSerializer); + + var result = DocumentSerializerHelper.AreMembersRepresentedAsFields(serializer, out var documentSerializer); + + result.Should().BeTrue(); + documentSerializer.Should().BeSameAs(implementationSerializer); + } + + [Theory] + [InlineData(BsonType.Array, false)] + [InlineData(BsonType.Document, true)] + public void AreMembersRepresentedAsFields_with_KeyValuePairSerializer_should_work(BsonType representation, bool expectedResult) + { + var serializer = new KeyValuePairSerializer(representation); + + var result = DocumentSerializerHelper.AreMembersRepresentedAsFields(serializer, out var documentSerializer); + + result.Should().Be(expectedResult); + documentSerializer.Should().BeSameAs(expectedResult ? serializer : null); + } + + [Fact] + public void GetMemberSerializationInfo_should_throw_when_members_are_not_represented_as_fields() + { + var serializer = new DictionaryInterfaceImplementerSerializer>(DictionaryRepresentation.Document); + + var exception = Record.Exception(() => DocumentSerializerHelper.GetMemberSerializationInfo(serializer, "abc")); + + exception.Should().BeOfType(); + exception.Message.Should().Contain("does not represent members as fields"); + } + + public class C : I { } + + public class D : C { } + + public interface I { } + } +#pragma warning restore CA1040 // Avoid empty interfaces +} diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/SerializationHelperTests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/SerializationHelperTests.cs new file mode 100644 index 00000000000..1842cdf40ad --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Misc/SerializationHelperTests.cs @@ -0,0 +1,210 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Collections.Generic; +using System.Linq.Expressions; +using FluentAssertions; +using MongoDB.Bson; +using MongoDB.Bson.Serialization; +using MongoDB.Bson.Serialization.Conventions; +using MongoDB.Bson.Serialization.Options; +using MongoDB.Bson.Serialization.Serializers; +using MongoDB.Driver.Linq; +using MongoDB.Driver.Linq.Linq3Implementation.Misc; +using Moq; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira +{ +#pragma warning disable CA1040 // Avoid empty interfaces + public class SerializationHelperTests + { + [Theory] + [InlineData(BsonType.Array, false)] + [InlineData(BsonType.String, true)] + public void EnsureRepresentationIsArray_should_work(BsonType type, bool shouldThrow) + { + var expression = Expression.Constant(1); + var serializer = new FakeSerializerWithRepresentation(type); + + var exception = Record.Exception(() => SerializationHelper.EnsureRepresentationIsArray(expression, serializer)); + + if (shouldThrow) + { + exception.Should().BeOfType(); + exception.Message.Should().Contain("the expression is not represented as an array in the database"); + } + else + { + exception.Should().BeNull(); + } + } + + [Theory] + [InlineData(BsonType.Decimal128, false)] + [InlineData(BsonType.Double, false)] + [InlineData(BsonType.Int32, false)] + [InlineData(BsonType.Int64, false)] + [InlineData(BsonType.String, true)] + public void EnsureRepresentationIsNumeric_should_work(BsonType type, bool shouldThrow) + { + var expression = Expression.Constant(1); + var serializer = new FakeSerializerWithRepresentation(type); + + var exception = Record.Exception(() => SerializationHelper.EnsureRepresentationIsNumeric(expression, serializer)); + + if (shouldThrow) + { + exception.Should().BeOfType(); + exception.Message.Should().Contain("uses a non-numeric representation"); + } + else + { + exception.Should().BeNull(); + } + } + + [Fact] + public void GetRepresentation_with_DiscriminatedInterfaceSerializer_should_work() + { + var discriminatorConvention = new ScalarDiscriminatorConvention("_t"); + var interfaceSerializer = new FakeSerializerWithRepresentation(BsonType.String); + var serializer = new DiscriminatedInterfaceSerializer(discriminatorConvention, interfaceSerializer); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(BsonType.String); + } + + [Fact] + public void GetRepresentation_with_DowncastingSerializer_should_work() + { + var derivedSerializer = new FakeSerializerWithRepresentation(BsonType.String); + var serializer = new DowncastingSerializer(derivedSerializer); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(BsonType.String); + } + + [Fact] + public void GetRepresentation_with_ImpliedImplementationInterfaceSerializer_should_work() + { + var implementationSerializer = new FakeSerializerWithRepresentation(BsonType.String); + var serializer = new ImpliedImplementationInterfaceSerializer(implementationSerializer); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(BsonType.String); + } + + [Fact] + public void GetRepresentation_with_serializer_implementing_IHasRepresentationSerializer_should_work() + { + var serializer = new FakeSerializerWithRepresentation(BsonType.String); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(BsonType.String); + } + + [Theory] + [InlineData(DictionaryRepresentation.Document, BsonType.Document)] + [InlineData(DictionaryRepresentation.ArrayOfArrays, BsonType.Array)] + [InlineData(DictionaryRepresentation.ArrayOfDocuments, BsonType.Array)] + public void GetRepresentation_with_serializer_implementing_IBsonDictionarySerializer_should_work(DictionaryRepresentation dictionaryRepresentation, BsonType expectedResult) + { + var serializer = new DictionaryInterfaceImplementerSerializer, string, int>(dictionaryRepresentation); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(expectedResult); + } + + [Theory] + [InlineData(BsonType.Array)] + [InlineData(BsonType.Document)] + public void GetRepresentation_with_serializer_implementing_IKeyValuePairSerializer_should_work(BsonType representation) + { + var serializer = new KeyValuePairSerializer(representation); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(representation); + } + + [Fact] + public void GetRepresentation_with_serializer_implementing_IBsonDocumentSerializer_should_work() + { + var serializer = new FakeDocumentSerializer(); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(BsonType.Document); + } + + [Fact] + public void GetRepresentation_with_serializer_implementing_IBsonArraySerializer_should_work() + { + var serializer = new FakeArraySerializer(); + + var result = SerializationHelper.GetRepresentation(serializer); + + result.Should().Be(BsonType.Array); + } + + [Theory] + [InlineData(BsonType.Document, true)] + [InlineData(BsonType.String, false)] + public void IsRepresentedAsDocument_should_work(BsonType representation, bool expectedResult) + { + var serializer = new FakeSerializerWithRepresentation(representation); + + var result = SerializationHelper.IsRepresentedAsDocument(serializer); + + result.Should().Be(expectedResult); + } + + public class C : I { } + + public class D : C { } + + public interface I { } + + public class FakeSerializerWithRepresentation : ClassSerializerBase, IHasRepresentationSerializer + where TValue : class + { + private readonly BsonType _representation; + + public FakeSerializerWithRepresentation(BsonType representation) + { + _representation = representation; + } + + public BsonType Representation => _representation; + } + + public class FakeDocumentSerializer : ClassSerializerBase, IBsonDocumentSerializer + { + public bool TryGetMemberSerializationInfo(string memberName, out BsonSerializationInfo serializationInfo) => throw new System.NotImplementedException(); + } + + public class FakeArraySerializer : ClassSerializerBase, IBsonArraySerializer + { + public bool TryGetItemSerializationInfo(out BsonSerializationInfo serializationInfo) => throw new System.NotImplementedException(); + } + } +#pragma warning restore CA1040 // Avoid empty interfaces +} From 86620014b862066d33d8d2bbfef2bbec0588421e Mon Sep 17 00:00:00 2001 From: rstam Date: Thu, 7 Dec 2023 10:28:23 -0800 Subject: [PATCH 26/30] CSHARP-4861: Count comparison with constant on the left is not translated correctly. --- ...hComparisonExpressionToFilterTranslator.cs | 16 +-- .../ComparisonExpressionToFilterTranslator.cs | 4 +- ...tComparisonExpressionToFilterTranslator.cs | 16 +-- .../Jira/CSharp4861Tests.cs | 113 ++++++++++++++++++ 4 files changed, 131 insertions(+), 18 deletions(-) create mode 100644 tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4861Tests.cs diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ArrayLengthComparisonExpressionToFilterTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ArrayLengthComparisonExpressionToFilterTranslator.cs index 250a6e42432..4040e30e12a 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ArrayLengthComparisonExpressionToFilterTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ArrayLengthComparisonExpressionToFilterTranslator.cs @@ -38,7 +38,7 @@ public static bool CanTranslate(Expression leftExpression, Expression rightExpre return false; } - public static AstFilter Translate(TranslationContext context, BinaryExpression expression, UnaryExpression arrayLengthExpression, Expression sizeExpression) + public static AstFilter Translate(TranslationContext context, BinaryExpression expression, AstComparisonFilterOperator comparisonOperator, UnaryExpression arrayLengthExpression, Expression sizeExpression) { if (arrayLengthExpression.NodeType == ExpressionType.ArrayLength) { @@ -46,24 +46,24 @@ public static AstFilter Translate(TranslationContext context, BinaryExpression e var arrayField = ExpressionToFilterFieldTranslator.Translate(context, arrayExpression); var size = sizeExpression.GetConstantValue(containingExpression: expression); - switch (expression.NodeType) + switch (comparisonOperator) { - case ExpressionType.Equal: + case AstComparisonFilterOperator.Eq: return AstFilter.Size(arrayField, size); - case ExpressionType.GreaterThan: + case AstComparisonFilterOperator.Gt: return AstFilter.Exists(ItemField(arrayField, size)); - case ExpressionType.GreaterThanOrEqual: + case AstComparisonFilterOperator.Gte: return AstFilter.Exists(ItemField(arrayField, size - 1)); - case ExpressionType.LessThan: + case AstComparisonFilterOperator.Lt: return AstFilter.NotExists(ItemField(arrayField, size - 1)); - case ExpressionType.LessThanOrEqual: + case AstComparisonFilterOperator.Lte: return AstFilter.NotExists(ItemField(arrayField, size)); - case ExpressionType.NotEqual: + case AstComparisonFilterOperator.Ne: return AstFilter.Not(AstFilter.Size(arrayField, size)); } diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ComparisonExpressionToFilterTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ComparisonExpressionToFilterTranslator.cs index 20b55a5dc0e..7a10bc93360 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ComparisonExpressionToFilterTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/ComparisonExpressionToFilterTranslator.cs @@ -38,7 +38,7 @@ public static AstFilter Translate(TranslationContext context, BinaryExpression e if (ArrayLengthComparisonExpressionToFilterTranslator.CanTranslate(leftExpression, rightExpression, out var arrayLengthExpression, out var sizeExpression)) { - return ArrayLengthComparisonExpressionToFilterTranslator.Translate(context, expression, arrayLengthExpression, sizeExpression); + return ArrayLengthComparisonExpressionToFilterTranslator.Translate(context, expression, comparisonOperator, arrayLengthExpression, sizeExpression); } if (BitMaskComparisonExpressionToFilterTranslator.CanTranslate(leftExpression, rightExpression)) @@ -53,7 +53,7 @@ public static AstFilter Translate(TranslationContext context, BinaryExpression e if (CountComparisonExpressionToFilterTranslator.CanTranslate(leftExpression, rightExpression, out var countExpression, out sizeExpression)) { - return CountComparisonExpressionToFilterTranslator.Translate(context, expression, countExpression, sizeExpression); + return CountComparisonExpressionToFilterTranslator.Translate(context, expression, comparisonOperator, countExpression, sizeExpression); } if (GetTypeComparisonExpressionToFilterTranslator.CanTranslate(leftExpression, rightExpression)) diff --git a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs index 4b457eee40b..08db3cadc84 100644 --- a/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs +++ b/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToFilterTranslators/ExpressionTranslators/CountComparisonExpressionToFilterTranslator.cs @@ -59,31 +59,31 @@ public static bool CanTranslate(Expression leftExpression, Expression rightExpre return false; } - public static AstFilter Translate(TranslationContext context, BinaryExpression expression, Expression enumerableExpression, Expression sizeExpression) + public static AstFilter Translate(TranslationContext context, BinaryExpression expression, AstComparisonFilterOperator comparisonOperator, Expression enumerableExpression, Expression sizeExpression) { var field = ExpressionToFilterFieldTranslator.Translate(context, enumerableExpression); SerializationHelper.EnsureRepresentationIsArray(enumerableExpression, field.Serializer); if (TryConvertSizeExpressionToBsonValue(sizeExpression, out var size)) { - switch (expression.NodeType) + switch (comparisonOperator) { - case ExpressionType.Equal: + case AstComparisonFilterOperator.Eq: return AstFilter.Size(field, size); - case ExpressionType.GreaterThan: + case AstComparisonFilterOperator.Gt: return AstFilter.Exists(ItemField(field, size.ToInt64())); - case ExpressionType.GreaterThanOrEqual: + case AstComparisonFilterOperator.Gte: return AstFilter.Exists(ItemField(field, size.ToInt64() - 1)); - case ExpressionType.LessThan: + case AstComparisonFilterOperator.Lt: return AstFilter.NotExists(ItemField(field, size.ToInt64() - 1)); - case ExpressionType.LessThanOrEqual: + case AstComparisonFilterOperator.Lte: return AstFilter.NotExists(ItemField(field, size.ToInt64())); - case ExpressionType.NotEqual: + case AstComparisonFilterOperator.Ne: return AstFilter.Not(AstFilter.Size(field, size)); } } diff --git a/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4861Tests.cs b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4861Tests.cs new file mode 100644 index 00000000000..6bcf8b349a6 --- /dev/null +++ b/tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4861Tests.cs @@ -0,0 +1,113 @@ +/* Copyright 2010-present MongoDB Inc. +* +* 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.Collections.Generic; +using System.Linq; +using FluentAssertions; +using MongoDB.Driver.Linq; +using MongoDB.TestHelpers.XunitExtensions; +using Xunit; + +namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira +{ + public class CSharp4861Tests : Linq3IntegrationTest + { + [Theory] + [ParameterAttributeData] + public void One_less_than_Count_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => 1 < x.Set.Count); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'Set.1' : { $exists : true } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(2, 3); + } + + [Theory] + [ParameterAttributeData] + public void One_less_than_Length_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => 1 < x.Array.Length); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'Array.1' : { $exists : true } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(2, 3); + } + + [Theory] + [ParameterAttributeData] + public void Count_greater_than_one_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.Set.Count > 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'Set.1' : { $exists : true } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(2, 3); + } + + [Theory] + [ParameterAttributeData] + public void Length_greater_than_one_should_work( + [Values(LinqProvider.V2, LinqProvider.V3)] LinqProvider linqProvider) + { + var collection = GetCollection(linqProvider); + + var queryable = collection.AsQueryable() + .Where(x => x.Array.Length > 1); + + var stages = Translate(collection, queryable); + AssertStages(stages, "{ $match : { 'Array.1' : { $exists : true } } }"); + + var results = queryable.ToList(); + results.Select(x => x.Id).Should().Equal(2, 3); + } + + private IMongoCollection GetCollection(LinqProvider linqProvider) + { + var collection = GetCollection("test", linqProvider); + CreateCollection( + collection, + new C { Id = 1, Array = new[] { 1 }, Set = new HashSet { 1 } }, + new C { Id = 2, Array = new[] { 1, 2 }, Set = new HashSet { 1, 2 } }, + new C { Id = 3, Array = new[] { 1, 2, 3 }, Set = new HashSet { 1, 2, 3 } }); + return collection; + } + + private class C + { + public int Id { get; set; } + public int[] Array { get; set; } + public HashSet Set { get; set; } + } + } +} From 3f092822d21c9e53715bca4e6b39562fce3f1563 Mon Sep 17 00:00:00 2001 From: Adelin Owona <51498470+adelinowona@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:39:37 -0500 Subject: [PATCH 27/30] CSHARP-4539: Improving Time Series Bucketing Scalability (#1228) --- .../tests/timeseries-collection.json | 65 +++++++++++++++++++ .../tests/timeseries-collection.yml | 55 +++++++++++++--- src/MongoDB.Driver.Core/TimeSeriesOptions.cs | 24 ++++++- .../TimeSeriesOptionsTests.cs | 24 ++++++- .../UnifiedCreateCollectionOperation.cs | 11 +++- 5 files changed, 164 insertions(+), 15 deletions(-) diff --git a/specifications/collection-management/tests/timeseries-collection.json b/specifications/collection-management/tests/timeseries-collection.json index b5638fd36e9..2ee52eac411 100644 --- a/specifications/collection-management/tests/timeseries-collection.json +++ b/specifications/collection-management/tests/timeseries-collection.json @@ -250,6 +250,71 @@ ] } ] + }, + { + "description": "createCollection with bucketing options", + "runOnRequirements": [ + { + "minServerVersion": "6.3" + } + ], + "operations": [ + { + "name": "dropCollection", + "object": "database0", + "arguments": { + "collection": "test" + } + }, + { + "name": "createCollection", + "object": "database0", + "arguments": { + "collection": "test", + "timeseries": { + "timeField": "time", + "bucketMaxSpanSeconds": 3600, + "bucketRoundingSeconds": 3600 + } + } + }, + { + "name": "assertCollectionExists", + "object": "testRunner", + "arguments": { + "databaseName": "ts-tests", + "collectionName": "test" + } + } + ], + "expectEvents": [ + { + "client": "client0", + "events": [ + { + "commandStartedEvent": { + "command": { + "drop": "test" + }, + "databaseName": "ts-tests" + } + }, + { + "commandStartedEvent": { + "command": { + "create": "test", + "timeseries": { + "timeField": "time", + "bucketMaxSpanSeconds": 3600, + "bucketRoundingSeconds": 3600 + } + }, + "databaseName": "ts-tests" + } + } + ] + } + ] } ] } diff --git a/specifications/collection-management/tests/timeseries-collection.yml b/specifications/collection-management/tests/timeseries-collection.yml index cbc09b34cac..5de8d43cbfc 100644 --- a/specifications/collection-management/tests/timeseries-collection.yml +++ b/specifications/collection-management/tests/timeseries-collection.yml @@ -83,21 +83,21 @@ tests: arguments: documents: &docs - { - _id: 1, - time: { - $date: { - $numberLong: "1552949630482" - } + _id: 1, + time: { + $date: { + $numberLong: "1552949630482" } } + } - { - _id: 1, - time: { - $date: { - $numberLong: "1552949630483" - } + _id: 1, + time: { + $date: { + $numberLong: "1552949630483" } } + } - name: find object: *collection0 arguments: @@ -127,3 +127,38 @@ tests: filter: {} sort: { time: 1 } databaseName: *database0Name + + - description: "createCollection with bucketing options" + runOnRequirements: + - minServerVersion: "6.3" + operations: + - name: dropCollection + object: *database0 + arguments: + collection: *collection0Name + - name: createCollection + object: *database0 + arguments: + collection: *collection0Name + timeseries: ×eries1 + timeField: "time" + bucketMaxSpanSeconds: 3600 + bucketRoundingSeconds: 3600 + - name: assertCollectionExists + object: testRunner + arguments: + databaseName: *database0Name + collectionName: *collection0Name + expectEvents: + - client: *client0 + events: + - commandStartedEvent: + command: + drop: *collection0Name + databaseName: *database0Name + - commandStartedEvent: + command: + create: *collection0Name + timeseries: *timeseries1 + databaseName: *database0Name + diff --git a/src/MongoDB.Driver.Core/TimeSeriesOptions.cs b/src/MongoDB.Driver.Core/TimeSeriesOptions.cs index 416f12dff8f..bc851a8b3df 100644 --- a/src/MongoDB.Driver.Core/TimeSeriesOptions.cs +++ b/src/MongoDB.Driver.Core/TimeSeriesOptions.cs @@ -27,18 +27,24 @@ public class TimeSeriesOptions private readonly TimeSeriesGranularity? _granularity; private readonly string _metaField; private readonly string _timeField; + private readonly int? _bucketMaxSpanSeconds; + private readonly int? _bucketRoundingSeconds; /// /// Initializes a new instance of the class. /// /// The name of the top-level field to be used for time. /// The name of the top-level field describing the series upon which related data will be grouped. - /// The for the time series. - public TimeSeriesOptions(string timeField, Optional metaField = default, Optional granularity = default) + /// The for the time series. Do not set if using bucketMaxSpanSeconds + /// The maximum time between timestamps in the same bucket. + /// The interval used to round down the first timestamp when opening a new bucket. + public TimeSeriesOptions(string timeField, Optional metaField = default, Optional granularity = default, Optional bucketMaxSpanSeconds = default, Optional bucketRoundingSeconds = default) { _timeField = Ensure.IsNotNullOrEmpty(timeField, nameof(timeField)); _metaField = metaField.WithDefault(null); _granularity = granularity.WithDefault(null); + _bucketMaxSpanSeconds = bucketMaxSpanSeconds.WithDefault(null); + _bucketRoundingSeconds = bucketRoundingSeconds.WithDefault(null); } /// @@ -56,6 +62,16 @@ public TimeSeriesOptions(string timeField, Optional metaField = default, /// public string TimeField => _timeField; + /// + /// The maximum time between timestamps in the same bucket. + /// + public int? BucketMaxSpanSeconds => _bucketMaxSpanSeconds; + + /// + /// The interval used to round down the first timestamp when opening a new bucket. + /// + public int? BucketRoundingSeconds => _bucketRoundingSeconds; + /// /// The BSON representation of the time series options. /// @@ -66,7 +82,9 @@ public BsonDocument ToBsonDocument() { { "timeField", _timeField }, { "metaField", _metaField, _metaField != null }, - { "granularity", () => _granularity.Value.ToString().ToLowerInvariant(), _granularity.HasValue } + { "granularity", () => _granularity.Value.ToString().ToLowerInvariant(), _granularity.HasValue }, + { "bucketMaxSpanSeconds", _bucketMaxSpanSeconds, _bucketMaxSpanSeconds != null }, + { "bucketRoundingSeconds", _bucketRoundingSeconds, _bucketRoundingSeconds != null } }; } } diff --git a/tests/MongoDB.Driver.Core.Tests/TimeSeriesOptionsTests.cs b/tests/MongoDB.Driver.Core.Tests/TimeSeriesOptionsTests.cs index b597d977dcb..b866bd20790 100644 --- a/tests/MongoDB.Driver.Core.Tests/TimeSeriesOptionsTests.cs +++ b/tests/MongoDB.Driver.Core.Tests/TimeSeriesOptionsTests.cs @@ -54,12 +54,34 @@ public void constructor_with_all_parameters_should_initialize_instance() const string timeField = "time"; const string metaField = "meta"; const TimeSeriesGranularity granularity = TimeSeriesGranularity.Hours; + const int bucketMaxSpanSeconds = 30; + const int bucketRoundingSeconds = 30; - var result = new TimeSeriesOptions(timeField, metaField, granularity); + var result = new TimeSeriesOptions(timeField, metaField, granularity, bucketMaxSpanSeconds, bucketRoundingSeconds); result.TimeField.Should().Be(timeField); result.MetaField.Should().Be(metaField); result.Granularity.Should().Be(granularity); + result.BucketMaxSpanSeconds.Should().Be(bucketMaxSpanSeconds); + result.BucketRoundingSeconds.Should().Be(bucketRoundingSeconds); + } + + [Theory] + [InlineData(true, "{ timeField: 'time' }")] + [InlineData(false, "{ timeField: 'time', metaField: 'meta', granularity: 'hours', bucketMaxSpanSeconds: 30, bucketRoundingSeconds: 30 }")] + public void ToBsonDocument_should_return_expected_result(bool withDefaults, string expected) + { + const string timeField = "time"; + const string metaField = "meta"; + const TimeSeriesGranularity granularity = TimeSeriesGranularity.Hours; + const int bucketMaxSpanSeconds = 30; + const int bucketRoundingSeconds = 30; + + var result = withDefaults + ? new TimeSeriesOptions(timeField) + : new TimeSeriesOptions(timeField, metaField, granularity, bucketMaxSpanSeconds, bucketRoundingSeconds); + + result.ToBsonDocument().Should().Be(expected); } } } diff --git a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedCreateCollectionOperation.cs b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedCreateCollectionOperation.cs index d1834bf0539..86d2b16da8f 100644 --- a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedCreateCollectionOperation.cs +++ b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedCreateCollectionOperation.cs @@ -215,7 +215,16 @@ public IUnifiedEntityTestOperation Build(string targetDatabaseId, BsonDocument a { granularity = (TimeSeriesGranularity)Enum.Parse(typeof(TimeSeriesGranularity), granularityValue.AsString, true); } - timeSeriesOptions = new TimeSeriesOptions(timeField, metaField, granularity); + + var bucketMaxSpanSeconds = + timeseries.TryGetValue("bucketMaxSpanSeconds", out var bucketMaxSpanSecondsValue) + ? bucketMaxSpanSecondsValue.AsInt32 + : (int?)null; + var bucketRoundingSeconds = + timeseries.TryGetValue("bucketRoundingSeconds", out var bucketRoundingSecondsValue) + ? bucketRoundingSecondsValue.AsInt32 + : (int?)null; + timeSeriesOptions = new TimeSeriesOptions(timeField, metaField, granularity, bucketMaxSpanSeconds, bucketRoundingSeconds); break; case "viewOn": viewOn = argument.Value.AsString; From 33d356ad6e363e447d58163b4c2f59334f1ab33c Mon Sep 17 00:00:00 2001 From: Adelin Owona <51498470+adelinowona@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:08:50 -0500 Subject: [PATCH 28/30] CSHARP-4706: Support for $out to Time-series collections (#1223) --- src/MongoDB.Driver.Core/Core/Misc/Feature.cs | 8 +++- .../AggregateToCollectionOperation.cs | 2 +- src/MongoDB.Driver/AggregateFluent.cs | 28 ++++++++++++ src/MongoDB.Driver/AggregateFluentBase.cs | 21 +++++++++ src/MongoDB.Driver/IAggregateFluent.cs | 36 +++++++++++++++ .../PipelineDefinitionBuilder.cs | 8 ++-- .../PipelineStageDefinitionBuilder.cs | 13 ++++-- .../AggregateToCollectionOperationTests.cs | 37 ++++++++++++++++ .../Core/Operations/OperationTestBase.cs | 13 ++++++ .../AggregateFluentTests.cs | 36 +++++++++++---- .../Jira/CSharp3397Tests.cs | 44 +++++++++++++++++++ .../PipelineDefinitionBuilderTests.cs | 17 +++++++ .../PipelineStageDefinitionBuilderTests.cs | 25 +++++++++-- 13 files changed, 268 insertions(+), 20 deletions(-) diff --git a/src/MongoDB.Driver.Core/Core/Misc/Feature.cs b/src/MongoDB.Driver.Core/Core/Misc/Feature.cs index bb01704775d..0e33f526338 100644 --- a/src/MongoDB.Driver.Core/Core/Misc/Feature.cs +++ b/src/MongoDB.Driver.Core/Core/Misc/Feature.cs @@ -41,6 +41,7 @@ public class Feature private static readonly Feature __aggregateMerge = new Feature("AggregateMerge", WireVersion.Server42); private static readonly Feature __aggregateOut = new Feature("AggregateOut", WireVersion.Server26); private static readonly Feature __aggregateOutOnSecondary = new Feature("AggregateOutOnSecondary", WireVersion.Server50); + private static readonly Feature __aggregateOutTimeSeries = new Feature("AggregateOutTimeSeries", WireVersion.Server70); private static readonly Feature __aggregateOutToDifferentDatabase = new Feature("AggregateOutToDifferentDatabase", WireVersion.Server44); private static readonly Feature __aggregateToString = new Feature("AggregateToString", WireVersion.Server40); private static readonly Feature __aggregateUnionWith = new Feature("AggregateUnionWith", WireVersion.Server44); @@ -237,10 +238,15 @@ public class Feature public static Feature AggregateOut => __aggregateOut; /// - /// Gets the aggregate out on secondary feature, + /// Gets the aggregate out on secondary feature. /// public static Feature AggregateOutOnSecondary => __aggregateOutOnSecondary; + /// + /// Gets the aggregate out to time series feature. + /// + public static Feature AggregateOutTimeSeries => __aggregateOutTimeSeries; + /// /// Gets the aggregate out to a different database feature. /// diff --git a/src/MongoDB.Driver.Core/Core/Operations/AggregateToCollectionOperation.cs b/src/MongoDB.Driver.Core/Core/Operations/AggregateToCollectionOperation.cs index ca63d77f0ce..43871ae08b8 100644 --- a/src/MongoDB.Driver.Core/Core/Operations/AggregateToCollectionOperation.cs +++ b/src/MongoDB.Driver.Core/Core/Operations/AggregateToCollectionOperation.cs @@ -330,7 +330,7 @@ private IReadOnlyList SimplifyOutStageIfOutputDatabaseIsSameAsInpu { var lastStage = pipeline.Last(); var lastStageName = lastStage.GetElement(0).Name; - if (lastStageName == "$out" && lastStage["$out"] is BsonDocument outDocument) + if (lastStageName == "$out" && lastStage["$out"] is BsonDocument outDocument && !outDocument.Contains("timeseries")) { if (outDocument.TryGetValue("db", out var db) && db.IsString && outDocument.TryGetValue("coll", out var coll) && coll.IsString) diff --git a/src/MongoDB.Driver/AggregateFluent.cs b/src/MongoDB.Driver/AggregateFluent.cs index 75b53d2f1a2..b48ece1f8d4 100644 --- a/src/MongoDB.Driver/AggregateFluent.cs +++ b/src/MongoDB.Driver/AggregateFluent.cs @@ -210,6 +210,20 @@ public override IAsyncCursor Out(string collectionName, CancellationTok return Out(outputCollection, cancellationToken); } + public override IAsyncCursor Out(IMongoCollection outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken) + { + Ensure.IsNotNull(outputCollection, nameof(outputCollection)); + var aggregate = WithPipeline(_pipeline.Out(outputCollection, timeSeriesOptions)); + return aggregate.ToCursor(cancellationToken); + } + + public override IAsyncCursor Out(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken) + { + Ensure.IsNotNull(collectionName, nameof(collectionName)); + var outputCollection = Database.GetCollection(collectionName); + return Out(outputCollection, timeSeriesOptions, cancellationToken); + } + public override Task> OutAsync(IMongoCollection outputCollection, CancellationToken cancellationToken) { Ensure.IsNotNull(outputCollection, nameof(outputCollection)); @@ -224,6 +238,20 @@ public override Task> OutAsync(string collectionName, Canc return OutAsync(outputCollection, cancellationToken); } + public override Task> OutAsync(IMongoCollection outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken) + { + Ensure.IsNotNull(outputCollection, nameof(outputCollection)); + var aggregate = WithPipeline(_pipeline.Out(outputCollection, timeSeriesOptions)); + return aggregate.ToCursorAsync(cancellationToken); + } + + public override Task> OutAsync(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken) + { + Ensure.IsNotNull(collectionName, nameof(collectionName)); + var outputCollection = Database.GetCollection(collectionName); + return OutAsync(outputCollection, timeSeriesOptions, cancellationToken); + } + public override IAggregateFluent Project(ProjectionDefinition projection) { return WithPipeline(_pipeline.Project(projection)); diff --git a/src/MongoDB.Driver/AggregateFluentBase.cs b/src/MongoDB.Driver/AggregateFluentBase.cs index b0619e4e633..4f26aecee87 100644 --- a/src/MongoDB.Driver/AggregateFluentBase.cs +++ b/src/MongoDB.Driver/AggregateFluentBase.cs @@ -192,6 +192,18 @@ public virtual IAsyncCursor Out(string collectionName, CancellationToke throw new NotImplementedException(); } + /// + public virtual IAsyncCursor Out(IMongoCollection outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken) + { + throw new NotImplementedException(); + } + + /// + public virtual IAsyncCursor Out(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken) + { + throw new NotImplementedException(); + } + /// public virtual Task> OutAsync(IMongoCollection outputCollection, CancellationToken cancellationToken) { @@ -201,6 +213,15 @@ public virtual Task> OutAsync(IMongoCollection ou /// public abstract Task> OutAsync(string collectionName, CancellationToken cancellationToken); + /// + public virtual Task> OutAsync(IMongoCollection outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken) + { + throw new NotImplementedException(); + } + + /// + public abstract Task> OutAsync(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken); + /// public abstract IAggregateFluent Project(ProjectionDefinition projection); diff --git a/src/MongoDB.Driver/IAggregateFluent.cs b/src/MongoDB.Driver/IAggregateFluent.cs index 8ad1ba38a0f..c2547b34506 100644 --- a/src/MongoDB.Driver/IAggregateFluent.cs +++ b/src/MongoDB.Driver/IAggregateFluent.cs @@ -303,6 +303,24 @@ IAggregateFluent LookupA cursor. IAsyncCursor Out(string collectionName, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection. + /// + /// The output collection. + /// The time series options. + /// The cancellation token. + /// A cursor. + IAsyncCursor Out(IMongoCollection outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection. + /// + /// Name of the collection. + /// The time series options. + /// The cancellation token. + /// A cursor. + IAsyncCursor Out(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection. /// @@ -319,6 +337,24 @@ IAggregateFluent LookupA Task whose result is a cursor. Task> OutAsync(string collectionName, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection. + /// + /// The output collection. + /// The time series options. + /// The cancellation token. + /// A Task whose result is a cursor. + Task> OutAsync(IMongoCollection outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection. + /// + /// Name of the collection. + /// The time series options. + /// The cancellation token. + /// A Task whose result is a cursor. + Task> OutAsync(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Appends a project stage to the pipeline. /// diff --git a/src/MongoDB.Driver/PipelineDefinitionBuilder.cs b/src/MongoDB.Driver/PipelineDefinitionBuilder.cs index dd358e07558..4d89ad32c54 100644 --- a/src/MongoDB.Driver/PipelineDefinitionBuilder.cs +++ b/src/MongoDB.Driver/PipelineDefinitionBuilder.cs @@ -960,14 +960,16 @@ public static PipelineDefinition MergeThe type of the output documents. /// The pipeline. /// The output collection. + /// The time series options. /// A new pipeline with an additional stage. /// public static PipelineDefinition Out( this PipelineDefinition pipeline, - IMongoCollection outputCollection) + IMongoCollection outputCollection, + TimeSeriesOptions timeSeriesOptions = null) { Ensure.IsNotNull(pipeline, nameof(pipeline)); - return pipeline.AppendStage(PipelineStageDefinitionBuilder.Out(outputCollection)); + return pipeline.AppendStage(PipelineStageDefinitionBuilder.Out(outputCollection, timeSeriesOptions)); } /// @@ -1111,7 +1113,7 @@ public static PipelineDefinition ReplaceWith /// /// Flag that specifies whether to return a detailed breakdown - /// of the score for each document in the result. + /// of the score for each document in the result. /// /// A new pipeline with an additional stage. public static PipelineDefinition Search( diff --git a/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs b/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs index e493e251ab3..f7a46f02d87 100644 --- a/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs +++ b/src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs @@ -1244,14 +1244,21 @@ public static PipelineStageDefinition OfType( /// /// The type of the input documents. /// The output collection. + /// The time series options. /// The stage. public static PipelineStageDefinition Out( - IMongoCollection outputCollection) + IMongoCollection outputCollection, + TimeSeriesOptions timeSeriesOptions = null) { Ensure.IsNotNull(outputCollection, nameof(outputCollection)); var outputDatabaseName = outputCollection.Database.DatabaseNamespace.DatabaseName; var outputCollectionName = outputCollection.CollectionNamespace.CollectionName; - var outDocument = new BsonDocument { { "db", outputDatabaseName }, { "coll", outputCollectionName } }; + var outDocument = new BsonDocument + { + { "db", outputDatabaseName }, + { "coll", outputCollectionName }, + { "timeseries", () => timeSeriesOptions.ToBsonDocument(), timeSeriesOptions != null} + }; return new BsonDocumentPipelineStageDefinition(new BsonDocument("$out", outDocument)); } @@ -1331,7 +1338,7 @@ public static PipelineStageDefinition Project( /// /// /// Flag that specifies whether to return a detailed breakdown - /// of the score for each document in the result. + /// of the score for each document in the result. /// /// The stage. public static PipelineStageDefinition Search( diff --git a/tests/MongoDB.Driver.Core.Tests/Core/Operations/AggregateToCollectionOperationTests.cs b/tests/MongoDB.Driver.Core.Tests/Core/Operations/AggregateToCollectionOperationTests.cs index 65b4a9ab110..b45edc47149 100644 --- a/tests/MongoDB.Driver.Core.Tests/Core/Operations/AggregateToCollectionOperationTests.cs +++ b/tests/MongoDB.Driver.Core.Tests/Core/Operations/AggregateToCollectionOperationTests.cs @@ -607,6 +607,43 @@ public void Execute_should_return_expected_result( result.Should().HaveCount(1); } + [Theory] + [ParameterAttributeData] + public void Execute_to_time_series_collection_should_work( + [Values(false, true)] bool usingDifferentOutputDatabase, + [Values(false, true)] bool async) + { + RequireServer.Check().Supports(Feature.AggregateOutTimeSeries); + + var pipeline = new List { BsonDocument.Parse("{ $match : { _id : 1 } }") }; + var inputDatabaseName = _databaseNamespace.DatabaseName; + var inputCollectionName = _collectionNamespace.CollectionName; + var outputDatabaseName = usingDifferentOutputDatabase ? $"{inputDatabaseName}-outputdatabase-timeseries" : inputDatabaseName; + var outputCollectionName = $"{inputCollectionName}-outputcollection-timeseries"; + + pipeline.Add(new BsonDocument { {"$set", new BsonDocument { {"time", DateTime.Now } } } } ); + pipeline.Add(BsonDocument.Parse($"{{ $out : {{ db : '{outputDatabaseName}', coll : '{outputCollectionName}', timeseries: {{ timeField: 'time' }} }} }}")); + + EnsureTestData(); + if (usingDifferentOutputDatabase) + { + EnsureDatabaseExists(outputDatabaseName); + } + var subject = new AggregateToCollectionOperation(_collectionNamespace, pipeline, _messageEncoderSettings); + + ExecuteOperation(subject, async); + + var databaseNamespace = new DatabaseNamespace(outputDatabaseName); + var result = ReadAllFromCollection(new CollectionNamespace(databaseNamespace, outputCollectionName), async); + + result.Should().NotBeNull(); + result.Should().HaveCount(1); + + var output = ListCollections(databaseNamespace); + output["cursor"]["firstBatch"][0][0].ToString().Should().Be($"{outputCollectionName}"); // checking name of collection + output["cursor"]["firstBatch"][0][1].ToString().Should().Be("timeseries"); // checking type of collection + } + [Theory] [ParameterAttributeData] public void Execute_should_return_expected_result_when_AllowDiskUse_is_set( diff --git a/tests/MongoDB.Driver.Core.Tests/Core/Operations/OperationTestBase.cs b/tests/MongoDB.Driver.Core.Tests/Core/Operations/OperationTestBase.cs index 1d2ee9bdac7..6e2335dd166 100644 --- a/tests/MongoDB.Driver.Core.Tests/Core/Operations/OperationTestBase.cs +++ b/tests/MongoDB.Driver.Core.Tests/Core/Operations/OperationTestBase.cs @@ -347,6 +347,19 @@ protected void KillOpenTransactions() } } + protected BsonDocument ListCollections(DatabaseNamespace databaseNamespace) + { + var listCollectionsCommand = new BsonDocument + { + { "listCollections", 1 }, { "filter", new BsonDocument { { "type", "timeseries" } } } + }; + + var runCommandOperation = new ReadCommandOperation(databaseNamespace, listCollectionsCommand, + BsonDocumentSerializer.Instance, _messageEncoderSettings); + + return ExecuteOperation(runCommandOperation); + } + protected Profiler Profile(DatabaseNamespace databaseNamespace) { var op = new WriteCommandOperation( diff --git a/tests/MongoDB.Driver.Tests/AggregateFluentTests.cs b/tests/MongoDB.Driver.Tests/AggregateFluentTests.cs index 5f538d76e00..934ac347533 100644 --- a/tests/MongoDB.Driver.Tests/AggregateFluentTests.cs +++ b/tests/MongoDB.Driver.Tests/AggregateFluentTests.cs @@ -710,7 +710,8 @@ public void OfType_should_add_the_expected_stage( [Theory] [ParameterAttributeData] public void Out_with_collection_should_add_the_expected_stage_and_call_Aggregate( - [Values(false, true)] bool async) + [Values(false, true)] bool async, + [Values(true, false)] bool usingTimeSeriesCollection) { var inputDatabase = CreateMockDatabase("inputDatabaseName").Object; var mockInputCollection = CreateMockCollection(inputDatabase, "inputCollectionName"); @@ -720,20 +721,27 @@ public void Out_with_collection_should_add_the_expected_stage_and_call_Aggregate var outputDatabase = CreateMockDatabase("outputDatabaseName").Object; var outputCollection = outputDatabase.GetCollection("outputCollectionName"); + var timeSeriesOption = usingTimeSeriesCollection ? new TimeSeriesOptions("time") : null; + var expectedRenderedOutStage = usingTimeSeriesCollection + ? "{ $out : { db : 'outputDatabaseName', coll : 'outputCollectionName', timeseries: { timeField: 'time' } } }" + : "{ $out : { db : 'outputDatabaseName', coll : 'outputCollectionName' } }"; + Predicate> isExpectedPipeline = pipeline => { var renderedPipeline = RenderPipeline(pipeline); return renderedPipeline.Documents.Count == 2 && renderedPipeline.Documents[0] == BsonDocument.Parse("{ $match : { X : 1 } }") && - renderedPipeline.Documents[1] == BsonDocument.Parse("{ $out : { db : 'outputDatabaseName', coll : 'outputCollectionName' } }") && + renderedPipeline.Documents[1] == BsonDocument.Parse(expectedRenderedOutStage) && renderedPipeline.OutputSerializer.ValueType == typeof(C); }; IAsyncCursor cursor; if (async) { - cursor = subject.OutAsync(outputCollection, CancellationToken.None).GetAwaiter().GetResult(); + cursor = usingTimeSeriesCollection + ? subject.OutAsync(outputCollection, timeSeriesOption, CancellationToken.None).GetAwaiter().GetResult() + : subject.OutAsync(outputCollection, CancellationToken.None).GetAwaiter().GetResult(); mockInputCollection.Verify( c => c.AggregateAsync( @@ -744,7 +752,9 @@ public void Out_with_collection_should_add_the_expected_stage_and_call_Aggregate } else { - cursor = subject.Out(outputCollection, CancellationToken.None); + cursor = usingTimeSeriesCollection + ? subject.Out(outputCollection, timeSeriesOption, CancellationToken.None) + : subject.Out(outputCollection, CancellationToken.None); mockInputCollection.Verify( c => c.Aggregate( @@ -758,7 +768,8 @@ public void Out_with_collection_should_add_the_expected_stage_and_call_Aggregate [Theory] [ParameterAttributeData] public void Out_with_string_should_add_the_expected_stage_and_call_Aggregate( - [Values(false, true)] bool async) + [Values(false, true)] bool async, + [Values(true, false)] bool usingTimeSeriesCollection) { var inputDatabase = CreateMockDatabase("inputDatabaseName").Object; var mockInputCollection = CreateMockCollection(inputDatabase, "inputCollectionName"); @@ -767,20 +778,27 @@ public void Out_with_string_should_add_the_expected_stage_and_call_Aggregate( .Match(Builders.Filter.Eq(c => c.X, 1)); var outputCollectionName = "outputCollectionName"; + var timeSeriesOption = usingTimeSeriesCollection ? new TimeSeriesOptions("time") : null; + var expectedRenderedOutStage = usingTimeSeriesCollection + ? "{ $out : { db : 'inputDatabaseName', coll : 'outputCollectionName', timeseries: { timeField: 'time' } } }" + : "{ $out : { db : 'inputDatabaseName', coll : 'outputCollectionName' } }"; + Predicate> isExpectedPipeline = pipeline => { var renderedPipeline = RenderPipeline(pipeline); return renderedPipeline.Documents.Count == 2 && renderedPipeline.Documents[0] == BsonDocument.Parse("{ $match : { X : 1 } }") && - renderedPipeline.Documents[1] == BsonDocument.Parse("{ $out : { db : 'inputDatabaseName', coll : 'outputCollectionName' } }") && + renderedPipeline.Documents[1] == BsonDocument.Parse(expectedRenderedOutStage) && renderedPipeline.OutputSerializer.ValueType == typeof(C); }; IAsyncCursor cursor; if (async) { - cursor = subject.OutAsync(outputCollectionName, CancellationToken.None).GetAwaiter().GetResult(); + cursor = usingTimeSeriesCollection + ? subject.OutAsync(outputCollectionName, timeSeriesOption, CancellationToken.None).GetAwaiter().GetResult() + : subject.OutAsync(outputCollectionName, CancellationToken.None).GetAwaiter().GetResult(); mockInputCollection.Verify( c => c.AggregateAsync( @@ -791,7 +809,9 @@ public void Out_with_string_should_add_the_expected_stage_and_call_Aggregate( } else { - cursor = subject.Out(outputCollectionName, CancellationToken.None); + cursor = usingTimeSeriesCollection + ? subject.Out(outputCollectionName, timeSeriesOption, CancellationToken.None) + : subject.Out(outputCollectionName, CancellationToken.None); mockInputCollection.Verify( c => c.Aggregate( diff --git a/tests/MongoDB.Driver.Tests/Jira/CSharp3397Tests.cs b/tests/MongoDB.Driver.Tests/Jira/CSharp3397Tests.cs index 97d3ed80f5b..9de4ddb7eef 100644 --- a/tests/MongoDB.Driver.Tests/Jira/CSharp3397Tests.cs +++ b/tests/MongoDB.Driver.Tests/Jira/CSharp3397Tests.cs @@ -13,10 +13,13 @@ * limitations under the License. */ +using System; using System.Linq; using FluentAssertions; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; +using MongoDB.Driver.Core.Misc; +using MongoDB.Driver.Core.TestHelpers.XunitExtensions; using Xunit; namespace MongoDB.Driver.Tests.Jira @@ -52,6 +55,47 @@ public void Aggregate_out_to_collection_should_work() results.Single().Count.Should().Be(1); } + + [Fact] + public void Aggregate_out_to_time_series_collection_on_secondary_should_work() + { + RequireServer.Check().Supports(Feature.AggregateOutTimeSeries); + + var client = DriverTestConfiguration.Client; + var database = client.GetDatabase("test"); + var collection = database.GetCollection("testCol"); + var outCollection = database.GetCollection("timeCol"); + + var writeConcern = WriteConcern.WMajority; + if (DriverTestConfiguration.IsReplicaSet(client)) + { + var n = DriverTestConfiguration.GetReplicaSetNumberOfDataBearingMembers(client); + writeConcern = new WriteConcern(n); + } + + database.DropCollection("testCol"); + database.DropCollection("timeCol"); + collection + .WithWriteConcern(writeConcern) + .InsertOne(new BsonDocument("_id", 1)); + + var fields = Builders.SetFields.Set("time", DateTime.Now); + var pipeline = new EmptyPipelineDefinition() + .Match(FilterDefinition.Empty) + .Set(fields) + .Out(outCollection, new TimeSeriesOptions("time")); + + var results = collection.WithReadPreference(ReadPreference.SecondaryPreferred).Aggregate(pipeline).ToList(); + results.Count.Should().Be(1); + + var listCollectionsCommand = new BsonDocument + { + { "listCollections", 1 }, { "filter", new BsonDocument { { "type", "timeseries" } } } + }; + var output = database.RunCommand(listCollectionsCommand); + output["cursor"]["firstBatch"][0][0].ToString().Should().Be("timeCol"); // checking name of collection + output["cursor"]["firstBatch"][0][1].ToString().Should().Be("timeseries"); // checking type of collection + } } public class AggregateCountResultWithId diff --git a/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs b/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs index 6dc5b03be7f..aa0f030b796 100644 --- a/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs +++ b/tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs @@ -141,6 +141,23 @@ public void Merge_should_add_expected_stage() stages[0].Should().Be("{ $merge : { into : { db : 'database', coll : 'collection' } } }"); } + [Fact] + public void Out_with_time_series_options_should_add_expected_stage() + { + var database = Mock.Of(db => db.DatabaseNamespace == new DatabaseNamespace("database")); + var outputCollection = Mock.Of>(col => + col.Database == database && + col.CollectionNamespace == new CollectionNamespace(database.DatabaseNamespace, "collection")); + + var timeSeriesOptions = new TimeSeriesOptions("time", "symbol"); + + var result = new EmptyPipelineDefinition().Out(outputCollection, timeSeriesOptions); + + var stages = RenderStages(result, BsonDocumentSerializer.Instance); + stages.Count.Should().Be(1); + stages[0].Should().Be("{ $out: { db: 'database', coll: 'collection', timeseries: { timeField: 'time', metaField: 'symbol' } } }"); + } + [Fact] public void Search_should_add_expected_stage() { diff --git a/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs b/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs index 397636e8950..0c23a903e71 100644 --- a/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs +++ b/tests/MongoDB.Driver.Tests/PipelineStageDefinitionBuilderTests.cs @@ -20,7 +20,9 @@ using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Serializers; +using MongoDB.Driver.Core.TestHelpers; using MongoDB.Driver.Core.TestHelpers.XunitExtensions; +using Moq; using Xunit; namespace MongoDB.Driver.Tests @@ -183,7 +185,7 @@ public void GraphLookup_with_one_to_many_parameters_should_return_expected_resul } }"); } - + [Fact] public void GraphLookup_with_one_to_one_parameters_should_return_expected_result() { @@ -254,9 +256,9 @@ public void Lookup_with_let_should_return_the_expected_result() 'pipeline' : [ { '$match' : - { + { '$expr' : - { + { '$and' : [ { '$eq' : ['$stock_item', '$$order_item'] }, { '$gte' : ['$instock', '$$order_qty'] }] @@ -391,6 +393,21 @@ public void Merge_with_WhenNotMatched_should_return_the_expected_result(MergeSta stage.Document.Should().Be(expectedStage); } + [Fact] + public void Out_with_time_series_options_should_return_expected_result() + { + var database = Mock.Of(d => d.DatabaseNamespace == new DatabaseNamespace("database")); + var outputCollection = Mock.Of>(col => + col.Database == database && + col.CollectionNamespace == new CollectionNamespace(database.DatabaseNamespace, "collection")); + + var timeSeriesOptions = new TimeSeriesOptions("time", "symbol"); + + var result = PipelineStageDefinitionBuilder.Out(outputCollection, timeSeriesOptions); + + RenderStage(result).Document.Should().Be("{ $out: { db: 'database', coll: 'collection', timeseries: { timeField: 'time', metaField: 'symbol' } } }"); + } + public class Order { [BsonElement("stockdata")] @@ -456,7 +473,7 @@ public void Lookup_with_entity_generic_params_should_return_the_expected_result( '$match' : { '$expr' : - { + { '$and' : [ { '$eq' : ['$stock_item', '$$order_item'] }, { '$gte' : ['$instock', '$$order_qty'] }] From 588b29f2be94fab5a086ace0683c39c437359901 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov <31327136+sanych-sun@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:43:20 -0800 Subject: [PATCH 29/30] CSHARP-4783: API docs generating with docfx (#1206) --- .gitignore | 1 + Docs/.gitignore | 2 - Docs/Api/CSharpDriverDocs.shfbproj | 144 - Docs/Api/LibMongocryptDocs.shfbproj | 43 - Docs/README.md | 4 - Docs/landing/README.md | 28 - Docs/landing/config.toml | 6 - Docs/landing/content/.readme | 1 - Docs/landing/data/.readme | 1 - Docs/landing/data/releases.toml | 137 - Docs/landing/layouts/.readme | 1 - Docs/landing/layouts/404.html | 45 - Docs/landing/layouts/index.html | 52 - .../layouts/partials/assets/analytics.html | 22 - Docs/landing/layouts/partials/assets/css.html | 6 - .../layouts/partials/assets/javascripts.html | 8 - Docs/landing/layouts/partials/features.html | 12 - Docs/landing/layouts/partials/footer.html | 8 - .../landing/layouts/partials/header/main.html | 12 - .../layouts/partials/header/topRight.html | 8 - Docs/landing/layouts/partials/hero.html | 13 - .../layouts/partials/introduction.html | 6 - Docs/landing/layouts/partials/meta.html | 5 - .../layouts/partials/mongodbUniversity.html | 9 - Docs/landing/layouts/partials/quickStart.html | 97 - Docs/landing/layouts/partials/releases.html | 16 - Docs/landing/static/.readme | 1 - Docs/landing/static/404.html | 116 - Docs/landing/static/apple-touch-icon.png | Bin 34974 -> 0 bytes Docs/landing/static/favicon.ico | Bin 5361 -> 0 bytes Docs/landing/static/s/css/frontpage.css | 393 - .../static/s/img/24px-baseline-overlay.png | Bin 948 -> 0 bytes Docs/landing/static/s/img/back-body.png | Bin 157 -> 0 bytes Docs/landing/static/s/img/code-block-bg.png | Bin 943 -> 0 bytes .../landing/static/s/img/code-block-bg@2x.png | Bin 953 -> 0 bytes Docs/landing/static/s/img/gray.png | Bin 19856 -> 0 bytes .../static/s/img/logo-mongodb-header.png | Bin 7084 -> 0 bytes Docs/landing/static/s/img/mongoJVMlogo.png | Bin 12791 -> 0 bytes .../static/s/img/mongodb-university-logo.png | Bin 14860 -> 0 bytes Docs/landing/static/s/img/social-facebook.png | Bin 425 -> 0 bytes .../static/s/img/social-facebook@2x.png | Bin 645 -> 0 bytes Docs/landing/static/s/img/social-gplus.png | Bin 497 -> 0 bytes Docs/landing/static/s/img/social-gplus@2x.png | Bin 928 -> 0 bytes Docs/landing/static/s/img/social-twitter.png | Bin 455 -> 0 bytes .../static/s/img/social-twitter@2x.png | Bin 825 -> 0 bytes Docs/landing/static/s/img/social-youtube.png | Bin 418 -> 0 bytes .../static/s/img/social-youtube@2x.png | Bin 715 -> 0 bytes Docs/landing/static/s/img/trans-user-back.png | Bin 162 -> 0 bytes Docs/landing/static/s/img/trans-user-left.png | Bin 511 -> 0 bytes .../landing/static/s/img/trans-user-right.png | Bin 544 -> 0 bytes Docs/landing/static/s/js/frontpage.js | 66 - Docs/landing/static/s/js/jquery.js | 9789 ----------------- Docs/landing/static/s/js/searchtools.js | 560 - .../lib/bootstrap-select/bootstrap-select.js | 1215 -- .../bootstrap-select/bootstrap-select.js.map | 1 - .../bootstrap-select/bootstrap-select.min.css | 6 - .../bootstrap-select/bootstrap-select.min.js | 8 - Docs/landing/static/s/lib/bootstrap-theme.css | 384 - .../static/s/lib/bootstrap-theme.min.css | 1 - .../bootstrap-toggle/bootstrap-toggle.min.css | 28 - .../bootstrap-toggle/bootstrap-toggle.min.js | 9 - .../bootstrap-toggle.min.js.map | 1 - .../bootstrap2-toggle.min.js.map | 1 - Docs/landing/static/s/lib/bootstrap.css | 6806 ------------ Docs/landing/static/s/lib/bootstrap.js | 1999 ---- Docs/landing/static/s/lib/bootstrap.min.css | 9 - Docs/landing/static/s/lib/bootstrap.min.js | 6 - Docs/landing/static/s/lib/delighted.js | 18 - .../s/lib/font-awesome/css/font-awesome.css | 1566 --- .../lib/font-awesome/css/font-awesome.min.css | 4 - .../s/lib/font-awesome/fonts/FontAwesome.otf | Bin 75188 -> 0 bytes .../fonts/fontawesome-webfont.eot | Bin 72449 -> 0 bytes .../fonts/fontawesome-webfont.svg | 504 - .../fonts/fontawesome-webfont.ttf | Bin 141564 -> 0 bytes .../fonts/fontawesome-webfont.woff | Bin 83760 -> 0 bytes .../font-awesome/less/bordered-pulled.less | 16 - .../static/s/lib/font-awesome/less/core.less | 12 - .../s/lib/font-awesome/less/fixed-width.less | 6 - .../s/lib/font-awesome/less/font-awesome.less | 17 - .../static/s/lib/font-awesome/less/icons.less | 412 - .../s/lib/font-awesome/less/larger.less | 13 - .../static/s/lib/font-awesome/less/list.less | 19 - .../s/lib/font-awesome/less/mixins.less | 20 - .../static/s/lib/font-awesome/less/path.less | 14 - .../font-awesome/less/rotated-flipped.less | 9 - .../s/lib/font-awesome/less/spinning.less | 30 - .../s/lib/font-awesome/less/stacked.less | 20 - .../s/lib/font-awesome/less/variables.less | 381 - .../font-awesome/scss/_bordered-pulled.scss | 16 - .../static/s/lib/font-awesome/scss/_core.scss | 12 - .../s/lib/font-awesome/scss/_fixed-width.scss | 6 - .../s/lib/font-awesome/scss/_icons.scss | 412 - .../s/lib/font-awesome/scss/_larger.scss | 13 - .../static/s/lib/font-awesome/scss/_list.scss | 19 - .../s/lib/font-awesome/scss/_mixins.scss | 20 - .../static/s/lib/font-awesome/scss/_path.scss | 14 - .../font-awesome/scss/_rotated-flipped.scss | 9 - .../s/lib/font-awesome/scss/_spinning.scss | 30 - .../s/lib/font-awesome/scss/_stacked.scss | 20 - .../s/lib/font-awesome/scss/_variables.scss | 381 - .../s/lib/font-awesome/scss/font-awesome.scss | 17 - .../landing/static/s/lib/highlight/CHANGES.md | 1049 -- Docs/landing/static/s/lib/highlight/LICENSE | 24 - Docs/landing/static/s/lib/highlight/README.md | 101 - .../static/s/lib/highlight/highlight.pack.js | 1 - .../static/s/lib/highlight/styles/arta.css | 140 - .../static/s/lib/highlight/styles/ascetic.css | 52 - .../highlight/styles/atelier-dune.dark.css | 95 - .../highlight/styles/atelier-dune.light.css | 95 - .../highlight/styles/atelier-forest.dark.css | 95 - .../highlight/styles/atelier-forest.light.css | 95 - .../highlight/styles/atelier-heath.dark.css | 95 - .../highlight/styles/atelier-heath.light.css | 95 - .../styles/atelier-lakeside.dark.css | 95 - .../styles/atelier-lakeside.light.css | 95 - .../highlight/styles/atelier-seaside.dark.css | 95 - .../styles/atelier-seaside.light.css | 95 - .../s/lib/highlight/styles/brown_paper.css | 104 - .../s/lib/highlight/styles/brown_papersq.png | Bin 18198 -> 0 bytes .../s/lib/highlight/styles/codepen-embed.css | 108 - .../s/lib/highlight/styles/color-brewer.css | 168 - .../static/s/lib/highlight/styles/dark.css | 104 - .../static/s/lib/highlight/styles/default.css | 152 - .../static/s/lib/highlight/styles/docco.css | 135 - .../static/s/lib/highlight/styles/far.css | 111 - .../s/lib/highlight/styles/foundation.css | 136 - .../static/s/lib/highlight/styles/github.css | 124 - .../s/lib/highlight/styles/googlecode.css | 147 - .../static/s/lib/highlight/styles/hybrid.css | 170 - .../static/s/lib/highlight/styles/idea.css | 125 - .../s/lib/highlight/styles/ir_black.css | 109 - .../s/lib/highlight/styles/kimbie.dark.css | 96 - .../s/lib/highlight/styles/kimbie.light.css | 96 - .../static/s/lib/highlight/styles/magula.css | 121 - .../s/lib/highlight/styles/mono-blue.css | 69 - .../static/s/lib/highlight/styles/monokai.css | 127 - .../lib/highlight/styles/monokai_sublime.css | 154 - .../s/lib/highlight/styles/obsidian.css | 153 - .../s/lib/highlight/styles/paraiso.dark.css | 95 - .../s/lib/highlight/styles/paraiso.light.css | 95 - .../s/lib/highlight/styles/pojoaque.css | 107 - .../s/lib/highlight/styles/pojoaque.jpg | Bin 1186 -> 0 bytes .../s/lib/highlight/styles/railscasts.css | 187 - .../static/s/lib/highlight/styles/rainbow.css | 108 - .../s/lib/highlight/styles/school_book.css | 112 - .../s/lib/highlight/styles/school_book.png | Bin 486 -> 0 bytes .../s/lib/highlight/styles/solarized_dark.css | 108 - .../lib/highlight/styles/solarized_light.css | 108 - .../s/lib/highlight/styles/sunburst.css | 164 - .../highlight/styles/tomorrow-night-blue.css | 95 - .../styles/tomorrow-night-bright.css | 94 - .../styles/tomorrow-night-eighties.css | 94 - .../s/lib/highlight/styles/tomorrow-night.css | 95 - .../s/lib/highlight/styles/tomorrow.css | 92 - .../static/s/lib/highlight/styles/vs.css | 93 - .../static/s/lib/highlight/styles/xcode.css | 158 - .../static/s/lib/highlight/styles/zenburn.css | 118 - Docs/landing/static/s/lib/jquery.tipsy.js | 258 - Docs/landing/static/s/lib/tipsy.css | 25 - Docs/landing/static/s/lib/underscore-min.js | 6 - .../static/s/lib/zeroclipboard/.jshintrc | 70 - .../s/lib/zeroclipboard/ZeroClipboard.Core.js | 2017 ---- .../zeroclipboard/ZeroClipboard.Core.min.js | 10 - .../zeroclipboard/ZeroClipboard.Core.min.map | 1 - .../s/lib/zeroclipboard/ZeroClipboard.js | 2581 ----- .../s/lib/zeroclipboard/ZeroClipboard.min.js | 10 - .../s/lib/zeroclipboard/ZeroClipboard.min.map | 1 - .../s/lib/zeroclipboard/ZeroClipboard.swf | Bin 6580 -> 0 bytes Docs/landing/static/versions.json | 22 - Docs/reference/README.md | 52 - Docs/reference/config.toml | 22 - .../content/examples/exporting_json.md | 95 - .../content/examples/importing_json.md | 91 - Docs/reference/content/examples/index.md | 19 - .../examples/mixing_static_and_dynamic.md | 126 - .../content/examples/tailable_cursor.md | 104 - .../content/examples/user_management.md | 145 - .../content/frequently_encountered_issues.md | 86 - .../getting_started/admin_quick_tour.md | 240 - .../content/getting_started/index.md | 17 - .../content/getting_started/installation.md | 24 - .../content/getting_started/quick_tour.md | 417 - Docs/reference/content/index.md | 22 - Docs/reference/content/issues_help.md | 22 - Docs/reference/content/reference/bson/bson.md | 104 - .../content/reference/bson/bson_document.md | 31 - .../bson/guidserialization/background.md | 32 - .../guidrepresentationmode.md | 49 - .../guidrepresentationmode/v2mode.md | 40 - .../guidrepresentationmode/v3mode.md | 27 - .../reference/bson/guidserialization/index.md | 22 - .../guidserializerchanges.md | 52 - .../objectserializerchanges.md | 36 - .../serializerchanges/serializerchanges.md | 17 - .../reference/content/reference/bson/index.md | 20 - .../reference/bson/mapping/conventions.md | 87 - .../content/reference/bson/mapping/index.md | 658 -- .../reference/bson/mapping/polymorphism.md | 135 - .../reference/bson/mapping/schema_changes.md | 98 - .../content/reference/bson/serialization.md | 186 - .../content/reference/driver/admin.md | 288 - .../reference/driver/authentication.md | 223 - .../reference/driver/change_streams.md | 197 - .../content/reference/driver/connecting.md | 133 - .../driver/crud/client_side_encryption.md | 339 - .../reference/driver/crud/compression.md | 123 - .../content/reference/driver/crud/index.md | 55 - .../content/reference/driver/crud/linq.md | 591 - .../content/reference/driver/crud/linq3.md | 31 - .../content/reference/driver/crud/reading.md | 566 - .../driver/crud/sessions_and_transactions.md | 228 - .../content/reference/driver/crud/writing.md | 354 - .../content/reference/driver/definitions.md | 471 - .../reference/driver/error_handling.md | 290 - .../content/reference/driver/expressions.md | 1230 --- .../content/reference/driver/index.md | 23 - .../content/reference/driver/logging.md | 75 - .../reference/content/reference/driver/ssl.md | 170 - .../content/reference/driver/stable_api.md | 78 - .../content/reference/driver_core/events.md | 157 - .../content/reference/driver_core/index.md | 48 - .../reference/driver_core/sdamevents.md | 126 - .../gridfs/deletingandrenamingfiles.md | 90 - .../reference/gridfs/downloadingfiles.md | 216 - .../content/reference/gridfs/findingfiles.md | 56 - .../reference/gridfs/gettingstarted.md | 50 - .../content/reference/gridfs/index.md | 20 - .../reference/gridfs/uploadingfiles.md | 152 - Docs/reference/content/reference/index.md | 18 - Docs/reference/content/upgrading.md | 36 - Docs/reference/content/what_is_new.md | 459 - Docs/reference/data/.readme | 1 - Docs/reference/data/mongodb.toml | 5 - Docs/reference/layouts/.readme | 1 - .../layouts/partials/assets/cssExtras.html | 2 - .../partials/assets/javascriptExtras.html | 3 - Docs/reference/layouts/shortcodes/apiref.html | 1 - .../reference/layouts/shortcodes/msdnref.html | 1 - Docs/reference/static/.readme | 1 - Docs/reference/static/css/dn.css | 7 - Docs/reference/static/js/dn.js | 23 - .../bootstrap-toggle/bootstrap-toggle.min.css | 28 - .../bootstrap-toggle/bootstrap-toggle.min.js | 9 - .../bootstrap-toggle.min.js.map | 1 - .../bootstrap2-toggle.min.js.map | 1 - Docs/reference/static/lib/delighted.js | 18 - Docs/reference/themes/mongodb/LICENSE.md | 1 - Docs/reference/themes/mongodb/README.md | 55 - .../themes/mongodb/archetypes/default.md | 3 - .../themes/mongodb/data/mongodb.toml | 5 - .../themes/mongodb/layouts/_default/li.html | 9 - .../themes/mongodb/layouts/_default/list.html | 12 - .../mongodb/layouts/_default/single.html | 4 - .../themes/mongodb/layouts/index.html | 12 - .../layouts/partials/assets/analytics.html | 22 - .../mongodb/layouts/partials/assets/css.html | 6 - .../layouts/partials/assets/cssExtras.html | 0 .../partials/assets/javascriptExtras.html | 0 .../layouts/partials/assets/javascripts.html | 15 - .../mongodb/layouts/partials/footer.html | 38 - .../mongodb/layouts/partials/header.html | 27 - .../partials/header/contentHeader.html | 25 - .../mongodb/layouts/partials/header/main.html | 16 - .../layouts/partials/header/search.html | 8 - .../layouts/partials/header/topRight.html | 10 - .../themes/mongodb/layouts/partials/menu.html | 52 - .../layouts/partials/menu/currentItem.html | 75 - .../mongodb/layouts/partials/menu/footer.html | 0 .../mongodb/layouts/partials/menu/item.html | 54 - .../layouts/partials/menu/options.html | 28 - .../themes/mongodb/layouts/partials/meta.html | 5 - .../mongodb/layouts/partials/rightColumn.html | 10 - .../mongodb/layouts/partials/welcome.html | 32 - .../mongodb/layouts/shortcodes/docsref.html | 1 - .../mongodb/layouts/shortcodes/note.html | 4 - .../mongodb/layouts/shortcodes/srcref.html | 1 - .../mongodb/layouts/shortcodes/testref.html | 1 - .../reference/themes/mongodb/static/.nojekyll | 0 .../mongodb/static/apple-touch-icon.png | Bin 34974 -> 0 bytes .../themes/mongodb/static/css/basic.css | 537 - .../mongodb/static/css/bootstrap-custom.css | 5908 ---------- .../mongodb/static/css/mongodb-docs.css | 1453 --- .../themes/mongodb/static/css/overrides.css | 140 - .../themes/mongodb/static/css/reset.css | 46 - .../themes/mongodb/static/favicon.ico | Bin 5361 -> 0 bytes .../static/img/24px-baseline-overlay.png | Bin 948 -> 0 bytes .../themes/mongodb/static/img/back-body.png | Bin 157 -> 0 bytes .../mongodb/static/img/code-block-bg.png | Bin 943 -> 0 bytes .../mongodb/static/img/code-block-bg@2x.png | Bin 953 -> 0 bytes .../themes/mongodb/static/img/favicon.png | Bin 6092 -> 0 bytes .../themes/mongodb/static/img/gray.png | Bin 19856 -> 0 bytes .../static/img/logo-mongodb-header.png | Bin 7084 -> 0 bytes .../mongodb/static/img/social-facebook.png | Bin 425 -> 0 bytes .../mongodb/static/img/social-facebook@2x.png | Bin 645 -> 0 bytes .../mongodb/static/img/social-gplus.png | Bin 497 -> 0 bytes .../mongodb/static/img/social-gplus@2x.png | Bin 928 -> 0 bytes .../mongodb/static/img/social-twitter.png | Bin 455 -> 0 bytes .../mongodb/static/img/social-twitter@2x.png | Bin 825 -> 0 bytes .../mongodb/static/img/social-youtube.png | Bin 418 -> 0 bytes .../mongodb/static/img/social-youtube@2x.png | Bin 715 -> 0 bytes .../mongodb/static/img/trans-user-back.png | Bin 162 -> 0 bytes .../mongodb/static/img/trans-user-left.png | Bin 511 -> 0 bytes .../mongodb/static/img/trans-user-right.png | Bin 544 -> 0 bytes .../themes/mongodb/static/js/doctools.js | 224 - .../themes/mongodb/static/js/jquery.js | 9789 ----------------- .../themes/mongodb/static/js/navbar.js | 161 - .../themes/mongodb/static/js/scripts.js | 34 - .../themes/mongodb/static/js/searchtools.js | 560 - .../themes/mongodb/static/js/underscore.js | 1276 --- .../mongodb/static/lib/bootstrap-theme.css | 384 - .../static/lib/bootstrap-theme.min.css | 1 - .../themes/mongodb/static/lib/bootstrap.css | 6806 ------------ .../themes/mongodb/static/lib/bootstrap.js | 1999 ---- .../mongodb/static/lib/bootstrap.min.css | 9 - .../mongodb/static/lib/bootstrap.min.js | 6 - .../lib/font-awesome/css/font-awesome.css | 1566 --- .../lib/font-awesome/css/font-awesome.min.css | 4 - .../lib/font-awesome/fonts/FontAwesome.otf | Bin 75188 -> 0 bytes .../fonts/fontawesome-webfont.eot | Bin 72449 -> 0 bytes .../fonts/fontawesome-webfont.svg | 504 - .../fonts/fontawesome-webfont.ttf | Bin 141564 -> 0 bytes .../fonts/fontawesome-webfont.woff | Bin 83760 -> 0 bytes .../font-awesome/less/bordered-pulled.less | 16 - .../static/lib/font-awesome/less/core.less | 12 - .../lib/font-awesome/less/fixed-width.less | 6 - .../lib/font-awesome/less/font-awesome.less | 17 - .../static/lib/font-awesome/less/icons.less | 412 - .../static/lib/font-awesome/less/larger.less | 13 - .../static/lib/font-awesome/less/list.less | 19 - .../static/lib/font-awesome/less/mixins.less | 20 - .../static/lib/font-awesome/less/path.less | 14 - .../font-awesome/less/rotated-flipped.less | 9 - .../lib/font-awesome/less/spinning.less | 30 - .../static/lib/font-awesome/less/stacked.less | 20 - .../lib/font-awesome/less/variables.less | 381 - .../font-awesome/scss/_bordered-pulled.scss | 16 - .../static/lib/font-awesome/scss/_core.scss | 12 - .../lib/font-awesome/scss/_fixed-width.scss | 6 - .../static/lib/font-awesome/scss/_icons.scss | 412 - .../static/lib/font-awesome/scss/_larger.scss | 13 - .../static/lib/font-awesome/scss/_list.scss | 19 - .../static/lib/font-awesome/scss/_mixins.scss | 20 - .../static/lib/font-awesome/scss/_path.scss | 14 - .../font-awesome/scss/_rotated-flipped.scss | 9 - .../lib/font-awesome/scss/_spinning.scss | 30 - .../lib/font-awesome/scss/_stacked.scss | 20 - .../lib/font-awesome/scss/_variables.scss | 381 - .../lib/font-awesome/scss/font-awesome.scss | 17 - .../mongodb/static/lib/highlight/CHANGES.md | 1049 -- .../mongodb/static/lib/highlight/LICENSE | 24 - .../mongodb/static/lib/highlight/README.md | 101 - .../static/lib/highlight/highlight.pack.js | 1 - .../static/lib/highlight/styles/arta.css | 140 - .../static/lib/highlight/styles/ascetic.css | 52 - .../highlight/styles/atelier-dune.dark.css | 95 - .../highlight/styles/atelier-dune.light.css | 95 - .../highlight/styles/atelier-forest.dark.css | 95 - .../highlight/styles/atelier-forest.light.css | 95 - .../highlight/styles/atelier-heath.dark.css | 95 - .../highlight/styles/atelier-heath.light.css | 95 - .../styles/atelier-lakeside.dark.css | 95 - .../styles/atelier-lakeside.light.css | 95 - .../highlight/styles/atelier-seaside.dark.css | 95 - .../styles/atelier-seaside.light.css | 95 - .../lib/highlight/styles/brown_paper.css | 104 - .../lib/highlight/styles/brown_papersq.png | Bin 18198 -> 0 bytes .../lib/highlight/styles/codepen-embed.css | 108 - .../lib/highlight/styles/color-brewer.css | 168 - .../static/lib/highlight/styles/dark.css | 104 - .../static/lib/highlight/styles/default.css | 152 - .../static/lib/highlight/styles/docco.css | 135 - .../static/lib/highlight/styles/far.css | 111 - .../lib/highlight/styles/foundation.css | 136 - .../static/lib/highlight/styles/github.css | 124 - .../lib/highlight/styles/googlecode.css | 147 - .../static/lib/highlight/styles/hybrid.css | 170 - .../static/lib/highlight/styles/idea.css | 125 - .../static/lib/highlight/styles/ir_black.css | 109 - .../lib/highlight/styles/kimbie.dark.css | 96 - .../lib/highlight/styles/kimbie.light.css | 96 - .../static/lib/highlight/styles/magula.css | 121 - .../static/lib/highlight/styles/mono-blue.css | 69 - .../static/lib/highlight/styles/monokai.css | 127 - .../lib/highlight/styles/monokai_sublime.css | 154 - .../static/lib/highlight/styles/obsidian.css | 153 - .../lib/highlight/styles/paraiso.dark.css | 95 - .../lib/highlight/styles/paraiso.light.css | 95 - .../static/lib/highlight/styles/pojoaque.css | 107 - .../static/lib/highlight/styles/pojoaque.jpg | Bin 1186 -> 0 bytes .../lib/highlight/styles/railscasts.css | 187 - .../static/lib/highlight/styles/rainbow.css | 108 - .../lib/highlight/styles/school_book.css | 112 - .../lib/highlight/styles/school_book.png | Bin 486 -> 0 bytes .../lib/highlight/styles/solarized_dark.css | 108 - .../lib/highlight/styles/solarized_light.css | 108 - .../static/lib/highlight/styles/sunburst.css | 164 - .../highlight/styles/tomorrow-night-blue.css | 95 - .../styles/tomorrow-night-bright.css | 94 - .../styles/tomorrow-night-eighties.css | 94 - .../lib/highlight/styles/tomorrow-night.css | 95 - .../static/lib/highlight/styles/tomorrow.css | 92 - .../static/lib/highlight/styles/vs.css | 93 - .../static/lib/highlight/styles/xcode.css | 158 - .../static/lib/highlight/styles/zenburn.css | 118 - .../themes/mongodb/static/lib/jquery.tipsy.js | 258 - .../themes/mongodb/static/lib/tipsy.css | 25 - .../mongodb/static/lib/underscore-min.js | 6 - Docs/reference/themes/mongodb/theme.toml | 14 - apidocs/.gitignore | 2 + apidocs/api/MongoDB.md | 3 + apidocs/api/index.md | 108 + apidocs/api/toc.yml | 9 + apidocs/docfx.json | 171 + .../.nojekyll => apidocs/images/favicon.ico | 0 apidocs/images/mongodb-logo.svg | 26 + apidocs/index.md | 3 + apidocs/mongo-apidocs/public/main.css | 63 + .../MongoDB.Bson/MongoDB.Bson.IO.md | 6 + .../MongoDB.Bson.Serialization.Attributes.md | 6 + .../MongoDB.Bson.Serialization.Conventions.md | 6 + ...MongoDB.Bson.Serialization.IdGenerators.md | 6 + .../MongoDB.Bson.Serialization.Options.md | 6 + .../MongoDB.Bson.Serialization.Serializers.md | 6 + .../MongoDB.Bson.Serialization.md | 6 + .../namespaces/MongoDB.Bson/MongoDB.Bson.md | 6 + .../MongoDB.Driver.GridFS.md | 6 + .../MongoDB.Driver/MongoDB.Driver.Builders.md | 6 + .../MongoDB.Driver.Core.Authentication.md | 6 + .../MongoDB.Driver.Core.Bindings.md | 6 + ...DB.Driver.Core.Clusters.ServerSelectors.md | 6 + .../MongoDB.Driver.Core.Clusters.md | 6 + .../MongoDB.Driver.Core.Compression.md | 6 + .../MongoDB.Driver.Core.Configuration.md | 6 + .../MongoDB.Driver.Core.ConnectionPools.md | 6 + .../MongoDB.Driver.Core.Connections.md | 6 + .../MongoDB.Driver.Core.Events.Diagnostics.md | 6 + .../MongoDB.Driver.Core.Events.md | 6 + .../MongoDB.Driver.Core.Misc.md | 6 + .../MongoDB.Driver.Core.Operations.md | 6 + .../MongoDB.Driver.Core.Servers.md | 6 + .../MongoDB.Driver.Core.WireProtocol.md | 6 + .../MongoDB.Driver/MongoDB.Driver.Core.md | 6 + .../MongoDB.Driver.Encryption.md | 6 + ...B.Driver.GeoJsonObjectModel.Serializers.md | 6 + .../MongoDB.Driver.GeoJsonObjectModel.md | 6 + .../MongoDB.Driver/MongoDB.Driver.Linq.md | 6 + .../MongoDB.Driver/MongoDB.Driver.Search.md | 6 + .../MongoDB.Driver/MongoDB.Driver.md | 6 + build.cake | 98 +- evergreen/build-apidocs.sh | 17 + .../{packages-pack.sh => build-packages.sh} | 4 +- evergreen/evergreen.yml | 301 +- evergreen/get-version.sh | 6 + evergreen/packages-version.sh | 21 - .../{packages-push.sh => push-packages.sh} | 10 +- evergreen/upload-apidocs.sh | 16 + 456 files changed, 807 insertions(+), 89102 deletions(-) delete mode 100644 Docs/.gitignore delete mode 100644 Docs/Api/CSharpDriverDocs.shfbproj delete mode 100644 Docs/Api/LibMongocryptDocs.shfbproj delete mode 100644 Docs/README.md delete mode 100644 Docs/landing/README.md delete mode 100644 Docs/landing/config.toml delete mode 100644 Docs/landing/content/.readme delete mode 100644 Docs/landing/data/.readme delete mode 100644 Docs/landing/data/releases.toml delete mode 100644 Docs/landing/layouts/.readme delete mode 100644 Docs/landing/layouts/404.html delete mode 100644 Docs/landing/layouts/index.html delete mode 100644 Docs/landing/layouts/partials/assets/analytics.html delete mode 100644 Docs/landing/layouts/partials/assets/css.html delete mode 100644 Docs/landing/layouts/partials/assets/javascripts.html delete mode 100644 Docs/landing/layouts/partials/features.html delete mode 100644 Docs/landing/layouts/partials/footer.html delete mode 100644 Docs/landing/layouts/partials/header/main.html delete mode 100644 Docs/landing/layouts/partials/header/topRight.html delete mode 100644 Docs/landing/layouts/partials/hero.html delete mode 100644 Docs/landing/layouts/partials/introduction.html delete mode 100644 Docs/landing/layouts/partials/meta.html delete mode 100644 Docs/landing/layouts/partials/mongodbUniversity.html delete mode 100644 Docs/landing/layouts/partials/quickStart.html delete mode 100644 Docs/landing/layouts/partials/releases.html delete mode 100644 Docs/landing/static/.readme delete mode 100644 Docs/landing/static/404.html delete mode 100644 Docs/landing/static/apple-touch-icon.png delete mode 100644 Docs/landing/static/favicon.ico delete mode 100644 Docs/landing/static/s/css/frontpage.css delete mode 100644 Docs/landing/static/s/img/24px-baseline-overlay.png delete mode 100644 Docs/landing/static/s/img/back-body.png delete mode 100644 Docs/landing/static/s/img/code-block-bg.png delete mode 100644 Docs/landing/static/s/img/code-block-bg@2x.png delete mode 100644 Docs/landing/static/s/img/gray.png delete mode 100644 Docs/landing/static/s/img/logo-mongodb-header.png delete mode 100644 Docs/landing/static/s/img/mongoJVMlogo.png delete mode 100644 Docs/landing/static/s/img/mongodb-university-logo.png delete mode 100644 Docs/landing/static/s/img/social-facebook.png delete mode 100644 Docs/landing/static/s/img/social-facebook@2x.png delete mode 100644 Docs/landing/static/s/img/social-gplus.png delete mode 100644 Docs/landing/static/s/img/social-gplus@2x.png delete mode 100644 Docs/landing/static/s/img/social-twitter.png delete mode 100644 Docs/landing/static/s/img/social-twitter@2x.png delete mode 100644 Docs/landing/static/s/img/social-youtube.png delete mode 100644 Docs/landing/static/s/img/social-youtube@2x.png delete mode 100644 Docs/landing/static/s/img/trans-user-back.png delete mode 100644 Docs/landing/static/s/img/trans-user-left.png delete mode 100644 Docs/landing/static/s/img/trans-user-right.png delete mode 100644 Docs/landing/static/s/js/frontpage.js delete mode 100644 Docs/landing/static/s/js/jquery.js delete mode 100644 Docs/landing/static/s/js/searchtools.js delete mode 100644 Docs/landing/static/s/lib/bootstrap-select/bootstrap-select.js delete mode 100644 Docs/landing/static/s/lib/bootstrap-select/bootstrap-select.js.map delete mode 100644 Docs/landing/static/s/lib/bootstrap-select/bootstrap-select.min.css delete mode 100644 Docs/landing/static/s/lib/bootstrap-select/bootstrap-select.min.js delete mode 100644 Docs/landing/static/s/lib/bootstrap-theme.css delete mode 100644 Docs/landing/static/s/lib/bootstrap-theme.min.css delete mode 100644 Docs/landing/static/s/lib/bootstrap-toggle/bootstrap-toggle.min.css delete mode 100644 Docs/landing/static/s/lib/bootstrap-toggle/bootstrap-toggle.min.js delete mode 100644 Docs/landing/static/s/lib/bootstrap-toggle/bootstrap-toggle.min.js.map delete mode 100644 Docs/landing/static/s/lib/bootstrap-toggle/bootstrap2-toggle.min.js.map delete mode 100644 Docs/landing/static/s/lib/bootstrap.css delete mode 100644 Docs/landing/static/s/lib/bootstrap.js delete mode 100644 Docs/landing/static/s/lib/bootstrap.min.css delete mode 100644 Docs/landing/static/s/lib/bootstrap.min.js delete mode 100644 Docs/landing/static/s/lib/delighted.js delete mode 100644 Docs/landing/static/s/lib/font-awesome/css/font-awesome.css delete mode 100644 Docs/landing/static/s/lib/font-awesome/css/font-awesome.min.css delete mode 100644 Docs/landing/static/s/lib/font-awesome/fonts/FontAwesome.otf delete mode 100644 Docs/landing/static/s/lib/font-awesome/fonts/fontawesome-webfont.eot delete mode 100644 Docs/landing/static/s/lib/font-awesome/fonts/fontawesome-webfont.svg delete mode 100644 Docs/landing/static/s/lib/font-awesome/fonts/fontawesome-webfont.ttf delete mode 100644 Docs/landing/static/s/lib/font-awesome/fonts/fontawesome-webfont.woff delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/bordered-pulled.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/core.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/fixed-width.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/font-awesome.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/icons.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/larger.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/list.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/mixins.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/path.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/rotated-flipped.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/spinning.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/stacked.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/less/variables.less delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_bordered-pulled.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_core.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_fixed-width.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_icons.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_larger.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_list.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_mixins.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_path.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_rotated-flipped.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_spinning.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_stacked.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/_variables.scss delete mode 100644 Docs/landing/static/s/lib/font-awesome/scss/font-awesome.scss delete mode 100644 Docs/landing/static/s/lib/highlight/CHANGES.md delete mode 100644 Docs/landing/static/s/lib/highlight/LICENSE delete mode 100644 Docs/landing/static/s/lib/highlight/README.md delete mode 100644 Docs/landing/static/s/lib/highlight/highlight.pack.js delete mode 100644 Docs/landing/static/s/lib/highlight/styles/arta.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/ascetic.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-dune.dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-dune.light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-forest.dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-forest.light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-heath.dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-heath.light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-lakeside.dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-lakeside.light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-seaside.dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/atelier-seaside.light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/brown_paper.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/brown_papersq.png delete mode 100644 Docs/landing/static/s/lib/highlight/styles/codepen-embed.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/color-brewer.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/default.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/docco.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/far.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/foundation.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/github.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/googlecode.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/hybrid.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/idea.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/ir_black.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/kimbie.dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/kimbie.light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/magula.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/mono-blue.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/monokai.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/monokai_sublime.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/obsidian.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/paraiso.dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/paraiso.light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/pojoaque.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/pojoaque.jpg delete mode 100644 Docs/landing/static/s/lib/highlight/styles/railscasts.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/rainbow.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/school_book.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/school_book.png delete mode 100644 Docs/landing/static/s/lib/highlight/styles/solarized_dark.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/solarized_light.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/sunburst.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/tomorrow-night-blue.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/tomorrow-night-bright.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/tomorrow-night-eighties.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/tomorrow-night.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/tomorrow.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/vs.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/xcode.css delete mode 100644 Docs/landing/static/s/lib/highlight/styles/zenburn.css delete mode 100644 Docs/landing/static/s/lib/jquery.tipsy.js delete mode 100644 Docs/landing/static/s/lib/tipsy.css delete mode 100644 Docs/landing/static/s/lib/underscore-min.js delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/.jshintrc delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/ZeroClipboard.Core.js delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/ZeroClipboard.Core.min.js delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/ZeroClipboard.Core.min.map delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/ZeroClipboard.js delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/ZeroClipboard.min.js delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/ZeroClipboard.min.map delete mode 100644 Docs/landing/static/s/lib/zeroclipboard/ZeroClipboard.swf delete mode 100644 Docs/landing/static/versions.json delete mode 100644 Docs/reference/README.md delete mode 100644 Docs/reference/config.toml delete mode 100644 Docs/reference/content/examples/exporting_json.md delete mode 100644 Docs/reference/content/examples/importing_json.md delete mode 100644 Docs/reference/content/examples/index.md delete mode 100644 Docs/reference/content/examples/mixing_static_and_dynamic.md delete mode 100644 Docs/reference/content/examples/tailable_cursor.md delete mode 100644 Docs/reference/content/examples/user_management.md delete mode 100644 Docs/reference/content/frequently_encountered_issues.md delete mode 100644 Docs/reference/content/getting_started/admin_quick_tour.md delete mode 100644 Docs/reference/content/getting_started/index.md delete mode 100644 Docs/reference/content/getting_started/installation.md delete mode 100644 Docs/reference/content/getting_started/quick_tour.md delete mode 100644 Docs/reference/content/index.md delete mode 100644 Docs/reference/content/issues_help.md delete mode 100644 Docs/reference/content/reference/bson/bson.md delete mode 100644 Docs/reference/content/reference/bson/bson_document.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/background.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/guidrepresentationmode/guidrepresentationmode.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/guidrepresentationmode/v2mode.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/guidrepresentationmode/v3mode.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/index.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/serializerchanges/guidserializerchanges.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/serializerchanges/objectserializerchanges.md delete mode 100644 Docs/reference/content/reference/bson/guidserialization/serializerchanges/serializerchanges.md delete mode 100644 Docs/reference/content/reference/bson/index.md delete mode 100644 Docs/reference/content/reference/bson/mapping/conventions.md delete mode 100644 Docs/reference/content/reference/bson/mapping/index.md delete mode 100644 Docs/reference/content/reference/bson/mapping/polymorphism.md delete mode 100644 Docs/reference/content/reference/bson/mapping/schema_changes.md delete mode 100644 Docs/reference/content/reference/bson/serialization.md delete mode 100644 Docs/reference/content/reference/driver/admin.md delete mode 100644 Docs/reference/content/reference/driver/authentication.md delete mode 100644 Docs/reference/content/reference/driver/change_streams.md delete mode 100644 Docs/reference/content/reference/driver/connecting.md delete mode 100644 Docs/reference/content/reference/driver/crud/client_side_encryption.md delete mode 100644 Docs/reference/content/reference/driver/crud/compression.md delete mode 100644 Docs/reference/content/reference/driver/crud/index.md delete mode 100644 Docs/reference/content/reference/driver/crud/linq.md delete mode 100644 Docs/reference/content/reference/driver/crud/linq3.md delete mode 100644 Docs/reference/content/reference/driver/crud/reading.md delete mode 100644 Docs/reference/content/reference/driver/crud/sessions_and_transactions.md delete mode 100644 Docs/reference/content/reference/driver/crud/writing.md delete mode 100644 Docs/reference/content/reference/driver/definitions.md delete mode 100644 Docs/reference/content/reference/driver/error_handling.md delete mode 100644 Docs/reference/content/reference/driver/expressions.md delete mode 100644 Docs/reference/content/reference/driver/index.md delete mode 100644 Docs/reference/content/reference/driver/logging.md delete mode 100644 Docs/reference/content/reference/driver/ssl.md delete mode 100644 Docs/reference/content/reference/driver/stable_api.md delete mode 100644 Docs/reference/content/reference/driver_core/events.md delete mode 100644 Docs/reference/content/reference/driver_core/index.md delete mode 100644 Docs/reference/content/reference/driver_core/sdamevents.md delete mode 100644 Docs/reference/content/reference/gridfs/deletingandrenamingfiles.md delete mode 100644 Docs/reference/content/reference/gridfs/downloadingfiles.md delete mode 100644 Docs/reference/content/reference/gridfs/findingfiles.md delete mode 100644 Docs/reference/content/reference/gridfs/gettingstarted.md delete mode 100644 Docs/reference/content/reference/gridfs/index.md delete mode 100644 Docs/reference/content/reference/gridfs/uploadingfiles.md delete mode 100644 Docs/reference/content/reference/index.md delete mode 100644 Docs/reference/content/upgrading.md delete mode 100644 Docs/reference/content/what_is_new.md delete mode 100644 Docs/reference/data/.readme delete mode 100644 Docs/reference/data/mongodb.toml delete mode 100644 Docs/reference/layouts/.readme delete mode 100644 Docs/reference/layouts/partials/assets/cssExtras.html delete mode 100644 Docs/reference/layouts/partials/assets/javascriptExtras.html delete mode 100644 Docs/reference/layouts/shortcodes/apiref.html delete mode 100644 Docs/reference/layouts/shortcodes/msdnref.html delete mode 100644 Docs/reference/static/.readme delete mode 100644 Docs/reference/static/css/dn.css delete mode 100644 Docs/reference/static/js/dn.js delete mode 100644 Docs/reference/static/lib/bootstrap-toggle/bootstrap-toggle.min.css delete mode 100644 Docs/reference/static/lib/bootstrap-toggle/bootstrap-toggle.min.js delete mode 100644 Docs/reference/static/lib/bootstrap-toggle/bootstrap-toggle.min.js.map delete mode 100644 Docs/reference/static/lib/bootstrap-toggle/bootstrap2-toggle.min.js.map delete mode 100644 Docs/reference/static/lib/delighted.js delete mode 100644 Docs/reference/themes/mongodb/LICENSE.md delete mode 100644 Docs/reference/themes/mongodb/README.md delete mode 100644 Docs/reference/themes/mongodb/archetypes/default.md delete mode 100644 Docs/reference/themes/mongodb/data/mongodb.toml delete mode 100644 Docs/reference/themes/mongodb/layouts/_default/li.html delete mode 100644 Docs/reference/themes/mongodb/layouts/_default/list.html delete mode 100644 Docs/reference/themes/mongodb/layouts/_default/single.html delete mode 100644 Docs/reference/themes/mongodb/layouts/index.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/assets/analytics.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/assets/css.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/assets/cssExtras.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/assets/javascriptExtras.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/assets/javascripts.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/footer.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/header.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/header/contentHeader.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/header/main.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/header/search.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/header/topRight.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/menu.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/menu/currentItem.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/menu/footer.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/menu/item.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/menu/options.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/meta.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/rightColumn.html delete mode 100644 Docs/reference/themes/mongodb/layouts/partials/welcome.html delete mode 100644 Docs/reference/themes/mongodb/layouts/shortcodes/docsref.html delete mode 100644 Docs/reference/themes/mongodb/layouts/shortcodes/note.html delete mode 100644 Docs/reference/themes/mongodb/layouts/shortcodes/srcref.html delete mode 100644 Docs/reference/themes/mongodb/layouts/shortcodes/testref.html delete mode 100644 Docs/reference/themes/mongodb/static/.nojekyll delete mode 100644 Docs/reference/themes/mongodb/static/apple-touch-icon.png delete mode 100644 Docs/reference/themes/mongodb/static/css/basic.css delete mode 100644 Docs/reference/themes/mongodb/static/css/bootstrap-custom.css delete mode 100644 Docs/reference/themes/mongodb/static/css/mongodb-docs.css delete mode 100644 Docs/reference/themes/mongodb/static/css/overrides.css delete mode 100644 Docs/reference/themes/mongodb/static/css/reset.css delete mode 100644 Docs/reference/themes/mongodb/static/favicon.ico delete mode 100644 Docs/reference/themes/mongodb/static/img/24px-baseline-overlay.png delete mode 100644 Docs/reference/themes/mongodb/static/img/back-body.png delete mode 100644 Docs/reference/themes/mongodb/static/img/code-block-bg.png delete mode 100644 Docs/reference/themes/mongodb/static/img/code-block-bg@2x.png delete mode 100644 Docs/reference/themes/mongodb/static/img/favicon.png delete mode 100644 Docs/reference/themes/mongodb/static/img/gray.png delete mode 100644 Docs/reference/themes/mongodb/static/img/logo-mongodb-header.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-facebook.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-facebook@2x.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-gplus.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-gplus@2x.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-twitter.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-twitter@2x.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-youtube.png delete mode 100644 Docs/reference/themes/mongodb/static/img/social-youtube@2x.png delete mode 100644 Docs/reference/themes/mongodb/static/img/trans-user-back.png delete mode 100644 Docs/reference/themes/mongodb/static/img/trans-user-left.png delete mode 100644 Docs/reference/themes/mongodb/static/img/trans-user-right.png delete mode 100644 Docs/reference/themes/mongodb/static/js/doctools.js delete mode 100644 Docs/reference/themes/mongodb/static/js/jquery.js delete mode 100644 Docs/reference/themes/mongodb/static/js/navbar.js delete mode 100644 Docs/reference/themes/mongodb/static/js/scripts.js delete mode 100644 Docs/reference/themes/mongodb/static/js/searchtools.js delete mode 100644 Docs/reference/themes/mongodb/static/js/underscore.js delete mode 100644 Docs/reference/themes/mongodb/static/lib/bootstrap-theme.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/bootstrap-theme.min.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/bootstrap.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/bootstrap.js delete mode 100644 Docs/reference/themes/mongodb/static/lib/bootstrap.min.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/bootstrap.min.js delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/css/font-awesome.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/css/font-awesome.min.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/fonts/FontAwesome.otf delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/fonts/fontawesome-webfont.eot delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/fonts/fontawesome-webfont.svg delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/fonts/fontawesome-webfont.ttf delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/fonts/fontawesome-webfont.woff delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/bordered-pulled.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/core.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/fixed-width.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/font-awesome.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/icons.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/larger.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/list.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/mixins.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/path.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/rotated-flipped.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/spinning.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/stacked.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/less/variables.less delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_bordered-pulled.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_core.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_fixed-width.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_icons.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_larger.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_list.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_mixins.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_path.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_rotated-flipped.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_spinning.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_stacked.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/_variables.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/font-awesome/scss/font-awesome.scss delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/CHANGES.md delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/LICENSE delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/README.md delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/highlight.pack.js delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/arta.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/ascetic.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-dune.dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-dune.light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-forest.dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-forest.light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-heath.dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-heath.light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-lakeside.dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-lakeside.light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-seaside.dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/atelier-seaside.light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/brown_paper.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/brown_papersq.png delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/codepen-embed.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/color-brewer.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/default.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/docco.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/far.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/foundation.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/github.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/googlecode.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/hybrid.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/idea.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/ir_black.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/kimbie.dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/kimbie.light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/magula.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/mono-blue.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/monokai.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/monokai_sublime.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/obsidian.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/paraiso.dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/paraiso.light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/pojoaque.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/pojoaque.jpg delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/railscasts.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/rainbow.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/school_book.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/school_book.png delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/solarized_dark.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/solarized_light.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/sunburst.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/tomorrow-night-blue.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/tomorrow-night-bright.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/tomorrow-night-eighties.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/tomorrow-night.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/tomorrow.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/vs.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/xcode.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/highlight/styles/zenburn.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/jquery.tipsy.js delete mode 100644 Docs/reference/themes/mongodb/static/lib/tipsy.css delete mode 100644 Docs/reference/themes/mongodb/static/lib/underscore-min.js delete mode 100644 Docs/reference/themes/mongodb/theme.toml create mode 100644 apidocs/.gitignore create mode 100644 apidocs/api/MongoDB.md create mode 100644 apidocs/api/index.md create mode 100644 apidocs/api/toc.yml create mode 100644 apidocs/docfx.json rename Docs/landing/static/.nojekyll => apidocs/images/favicon.ico (100%) create mode 100644 apidocs/images/mongodb-logo.svg create mode 100644 apidocs/index.md create mode 100644 apidocs/mongo-apidocs/public/main.css create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.IO.md create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.Serialization.Attributes.md create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.Serialization.Conventions.md create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.Serialization.IdGenerators.md create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.Serialization.Options.md create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.Serialization.Serializers.md create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.Serialization.md create mode 100644 apidocs/namespaces/MongoDB.Bson/MongoDB.Bson.md create mode 100644 apidocs/namespaces/MongoDB.Driver.GridFS/MongoDB.Driver.GridFS.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Builders.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Authentication.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Bindings.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Clusters.ServerSelectors.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Clusters.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Compression.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Configuration.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.ConnectionPools.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Connections.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Events.Diagnostics.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Events.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Misc.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Operations.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.Servers.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.WireProtocol.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Core.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Encryption.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.GeoJsonObjectModel.Serializers.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.GeoJsonObjectModel.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Linq.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.Search.md create mode 100644 apidocs/namespaces/MongoDB.Driver/MongoDB.Driver.md create mode 100644 evergreen/build-apidocs.sh rename evergreen/{packages-pack.sh => build-packages.sh} (57%) create mode 100644 evergreen/get-version.sh delete mode 100644 evergreen/packages-version.sh rename evergreen/{packages-push.sh => push-packages.sh} (67%) create mode 100644 evergreen/upload-apidocs.sh diff --git a/.gitignore b/.gitignore index a853777a90c..2f3adb45b58 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,4 @@ artifacts packages /tools /evergreen/krb5.conf.empty +.config diff --git a/Docs/.gitignore b/Docs/.gitignore deleted file mode 100644 index 6a119daca62..00000000000 --- a/Docs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -Api/output -public \ No newline at end of file diff --git a/Docs/Api/CSharpDriverDocs.shfbproj b/Docs/Api/CSharpDriverDocs.shfbproj deleted file mode 100644 index 66229c993d8..00000000000 --- a/Docs/Api/CSharpDriverDocs.shfbproj +++ /dev/null @@ -1,144 +0,0 @@ - - - - $(MSBuildThisFileDirectory)..\..\packages - - Debug - AnyCPU - 2.0 - {cf31cff3-1925-457c-8775-e08bcd39e49f} - 1.9.9.0 - - Documentation - Documentation - Documentation - - .\Help\ - CSharpDriverDocs - en-US - - - - - - - - - - - - - HtmlHelp1, Website - MongoDB .NET Driver API Documentation - - The MongoDB.Bson top level namespace and its child namespaces contain the classes for managing BSON data. The top level MongoDB.Bson namespace contains the classes that represent all the basic BSON Types. - The MongoDB.Bson.IO namespace contains the types that allow reading and writing of BSON data. - The MongoDB.Bson.Serialization namespace contains the types used in the serialization and deserialization of BSON data. It also contains the base interfaces to be implemented by the actual serializers. - - The MongoDB.Bson.Serialization.Attributes namespace contains the Attributes used to control BSON serialization/deserialization. - The various conventions used during serialization/deserialization of BSON data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace. - The various id generators used in the serialization/deserialization of BSON data are represented in this namespace. - The MongoDB.Bson.Serialization.Options namespace contains the classes that represent the serialization options for specific types such as DateTime, Document etc. - The MongoDB.Bson.Serialization.Serializers namespace contains the serializers for the various BSON and base .Net types - The MongoDB.Driver namespace contains all the basic types and classes that compose the MongoDB driver. It contains the classes needed for most interactions with the database. - The MongoDB.Driver.Builders namespace contains helper classes (builders) that can be used to construct various options used in the driver. - The MongoDB.Driver.Encryption namespace contains all the basic types and classes related to client-side encryption. - The classes used to interact with MongoDB GridFS are part of the MongoDB.Driver.GridFS namespace. - The MongoDB.Driver.Internal namespace contains internal classes used by the driver such as ConnectionPool. - Wrapped versions of various classes for use in serialization are present in the MongoDB.Driver.Wrappers namespace. - The MongoDB.Driver.Linq namespace contains the LINQ related classes. - Classes used to build GeoJson objects in a type-safe manner. - GeoJson object model serializers. - The MongoDB.Driver.Search namespace contains the Atlas Search related classes. - The MongoDB.Driver.Core namespace contains classes from Core. - The MongoDB.Driver.Core.Authentication namespace contains classes related to authentication. - - - The MongoDB.Driver.Core.Authentication.Vendored namespace contains types and classes vendored in to support authentication. - The MongoDB.Driver.Core.Bindings namespace contains classes related to bindings. - The MongoDB.Driver.Core.Clusters namespace contains classes related to clusters. - The MongoDB.Driver.Core.Clusters.ServerSelectors namespace contains classes related to server selectors. - The MongoDB.Driver.Core.Configuration namespace contains classes related to configuration. - The MongoDB.Driver.Core.Compression namespace contains classes related to compression. - The MongoDB.Driver.Core.ConnectionPools namespace contains classes related to connection pools. - The MongoDB.Driver.Core.Connections namespace contains classes related to connections. - The MongoDB.Driver.Core.Events namespace contains classes related to events. - The MongoDB.Driver.Core.Events.Diagnostics namespace contains classes related to diagnostics. - The MongoDB.Driver.Core.Misc namespace contains miscellaneous classes. - The MongoDB.Driver.Core.Operations namespace contains classes related to operations. - The MongoDB.Driver.Core.Operations.ElementNameValidators namespace contains classes related to element name validators for operations. - The MongoDB.Driver.Core.Servers namespace contains classes related to servers. - The MongoDB.Driver.Core.WireProtocol namespace contains classes related to the wire protocol. - The MongoDB.Driver.Core.WireProtocol.Messages namespace contains classes related to wire protocol messages. - The MongoDB.Driver.Core.WireProtoco.Messages.Encoders namespace contains classes related to message encoders. - The MongoDB.Driver.Core.WireProtoco.Messages.Encoders.BinaryEncoders namespace contains classes related to binary message encoders. - The MongoDB.Driver.Core.WireProtoco.Messages.Encoders.JsonEncoders namespace contains classes related to JSON message encoders. - - Copyright &#169%3b 2010&ndash%3bpresent MongoDB Inc. - dotnet-driver%40mongodb.com - MongoDB - .NET Framework 4.7.2 - 0.0.0.0 - Summary, Parameter, Returns, AutoDocumentCtors, Namespace, TypeParameter, AutoDocumentDispose - C#, Visual Basic, F# - Blank - True - VS2013 - False - MemberName - AboveNamespaces - - - - - - - - - 2 - False - OnlyWarningsAndErrors - False - True - False - False - True - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Docs/Api/LibMongocryptDocs.shfbproj b/Docs/Api/LibMongocryptDocs.shfbproj deleted file mode 100644 index 9e28c02a74f..00000000000 --- a/Docs/Api/LibMongocryptDocs.shfbproj +++ /dev/null @@ -1,43 +0,0 @@ - - - - - Debug - AnyCPU - 2.0 - {d1025c62-a1f2-4b7b-b88e-a57e57f08d02} - 1.9.9.0 - - Documentation - Documentation - Documentation - - .\Help\ - LibMongocryptDocs - en-US - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Docs/README.md b/Docs/README.md deleted file mode 100644 index 4f91741fdf6..00000000000 --- a/Docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# MongoDB .NET Driver Documentation - - 1. landing - the front page of all the XML docs - 2. reference - the reference site for the current version of the docs diff --git a/Docs/landing/README.md b/Docs/landing/README.md deleted file mode 100644 index 34ec942dce5..00000000000 --- a/Docs/landing/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# MongoDB .NET Driver Front page - -The static front page site for the .NET documentation portal. - -## Requirements -Hugo version 0.13 [download here](https://github.com/spf13/hugo/releases/tag/v0.13) -
-Check out the hugo [quickstart guide](http://gohugo.io/overview/quickstart/). - -## Running the server -To run the server call the hugo command: - - hugo server --baseUrl=http://localhost/ --buildDrafts --watch - -| Options explained || -| --------------------------- |--------------------------------------------------------------------------| -| server | Hugo runs its own webserver to render the files | -| --baseUrl=http://localhost/ | Normally the base url will be /mongo-csharp-driver for gh-pages | -| --buildDrafts | Include draft posts in the output - these won't be published to gh-pages | -| -- watch | Automatically reloads on file change | - - -All generated content will appear in the `./public` folder, so you can also check the filesystem and browse it locally.
-For more hugo server options run: `hugo --help` - -### Data - -All dynamic / changing data lives in `./data/releases.toml` diff --git a/Docs/landing/config.toml b/Docs/landing/config.toml deleted file mode 100644 index 69edcf01e7c..00000000000 --- a/Docs/landing/config.toml +++ /dev/null @@ -1,6 +0,0 @@ -baseurl = "/mongo-csharp-driver" -languageCode = "en-us" -title = "MongoDB .NET Driver" -canonifyurls = false -githubRepo = "mongo-csharp-driver" - diff --git a/Docs/landing/content/.readme b/Docs/landing/content/.readme deleted file mode 100644 index c5c049d9211..00000000000 --- a/Docs/landing/content/.readme +++ /dev/null @@ -1 +0,0 @@ -content dir diff --git a/Docs/landing/data/.readme b/Docs/landing/data/.readme deleted file mode 100644 index 427879eabc5..00000000000 --- a/Docs/landing/data/.readme +++ /dev/null @@ -1 +0,0 @@ -custom data resources diff --git a/Docs/landing/data/releases.toml b/Docs/landing/data/releases.toml deleted file mode 100644 index 4e084a14f22..00000000000 --- a/Docs/landing/data/releases.toml +++ /dev/null @@ -1,137 +0,0 @@ -current = "2.18.0" - -[[versions]] - version = "2.18.0" - status = "current" - docs = "./2.18/" - api = "./2.18/apidocs" - -[[versions]] - version = "2.17.1" - docs = "./2.17/" - api = "./2.17/apidocs" - -[[versions]] - version = "2.16.1" - docs = "./2.16/" - api = "./2.16/apidocs" - -[[versions]] - version = "2.15.1" - docs = "./2.15/" - api = "./2.15/apidocs" - -[[versions]] - version = "2.14.1" - docs = "./2.14/" - api = "./2.14/apidocs" - -[[versions]] - version = "2.13.3" - docs = "./2.13/" - api = "./2.13/apidocs" - -[[versions]] - version = "2.12.5" - docs = "./2.12/" - api = "./2.12/apidocs" - -[[versions]] - version = "2.11.6" - docs = "./2.11/" - api = "./2.11/apidocs" - -[[versions]] - version = "2.10.4" - docs = "./2.10/" - api = "./2.10/apidocs" - -[[versions]] - version = "2.9.3" - docs = "./2.9/" - api = "./2.9/apidocs" - -[[versions]] - version = "2.8.1" - docs = "./2.8/" - api = "./2.8/apidocs" - -[[versions]] - version = "2.7.3" - docs = "./2.7/" - api = "./2.7/apidocs" - -[[versions]] - version = "2.6.1" - docs = "./2.6/" - api = "./2.6/apidocs" - -[[versions]] - version = "2.5.1" - docs = "./2.5/" - api = "./2.5/apidocs" - -[[versions]] - version = "2.4.4" - docs = "./2.4/" - api = "./2.4/apidocs" - -[[versions]] - version = "2.3.0" - docs = "./2.3/" - api = "./2.3/apidocs" - -[[versions]] - version = "2.2.4" - docs = "./2.2/" - api = "./2.2/apidocs" - -[[versions]] - version = "2.1.1" - docs = "./2.1/" - api = "./2.1/apidocs" - -[[versions]] - version = "2.0.2" - docs = "./2.0/" - api = "./2.0/apidocs" - -[[versions]] - version = "1.11" - docs = "./1.11" - api = "./1.11/apidocs" - -[[drivers]] - name = ".NET Driver" - package = "MongoDB.Driver" - description = "The driver." - dependencies = ".NET Core Driver,.NET BSON Library" - versions = "2.18.0,2.17.1,2.16.1,2.15.1,2.14.1,2.13.3,2.12.5,2.11.6,2.10.4,2.9.3,2.8.1,2.7.3,2.6.1,2.5.1,2.4.4,2.3.0,2.2.4,2.1.1,2.0.2" - -[[drivers]] - name = ".NET GridFS" - package = "MongoDB.Driver.GridFS" - description = "The GridFS library." - dependencies = ".NET Driver,.NET Core Driver,.NET BSON Library" - versions = "2.18.0,2.17.1,2.16.1,2.15.1,2.14.1,2.13.3,2.12.5,2.11.6,2.10.4,2.9.3,2.8.1,2.7.3,2.6.1,2.5.1,2.4.4,2.3.0,2.2.4,2.1.1" - -[[drivers]] - name = ".NET Core Driver" - package = "MongoDB.Driver.Core" - description = "The core driver." - dependencies = ".NET BSON Library" - versions = "2.18.0,2.17.1,2.16.1,2.15.1,2.14.1,2.13.3,2.12.5,2.11.6,2.10.4,2.9.3,2.8.1,2.7.3,2.6.1,2.5.1,2.4.4,2.3.0,2.2.4,2.1.1,2.0.2" - -[[drivers]] - name = ".NET BSON Library" - package = "MongoDB.Bson" - description = "The BSON library." - dependencies = "" - versions = "2.18.0,2.17.1,2.16.1,2.15.1,2.14.1,2.13.3,2.12.5,2.11.6,2.10.4,2.9.3,2.8.1,2.7.3,2.6.1,2.5.1,2.4.4,2.3.0,2.2.4,2.1.1,2.0.2" - -[[drivers]] - name = ".NET Legacy Driver" - package = "mongocsharpdriver" - description = "The legacy driver." - dependencies = ".NET Driver,.NET Core Driver,.NET BSON Library" - versions = "2.18.0,2.17.1,2.16.1,2.15.1,2.14.1,2.13.3,2.12.5,2.11.6,2.10.4,2.9.3,2.8.1,2.7.3,2.6.1,2.5.1,2.4.4,2.3.0,2.2.4,2.1.1,2.0.2,1.11" diff --git a/Docs/landing/layouts/.readme b/Docs/landing/layouts/.readme deleted file mode 100644 index 8238d8e9f14..00000000000 --- a/Docs/landing/layouts/.readme +++ /dev/null @@ -1 +0,0 @@ -custom layouts here diff --git a/Docs/landing/layouts/404.html b/Docs/landing/layouts/404.html deleted file mode 100644 index 32eba427510..00000000000 --- a/Docs/landing/layouts/404.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - {{ partial "meta.html"}} - - - {{.Title}} - - {{ partial "assets/css.html" . }} - - - - - {{ partial "header/main.html" . }} - - -
-
-
-
-
-

404: Page not found

-
- -
-
-
- - - -
-
-
- {{ partial "footer.html" .}} -
-
-
- - - - -{{ partial "assets/javascripts.html" . }} -{{ partial "assets/analytics.html" . }} - - diff --git a/Docs/landing/layouts/index.html b/Docs/landing/layouts/index.html deleted file mode 100644 index f011a42d59b..00000000000 --- a/Docs/landing/layouts/index.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - {{ partial "meta.html"}} - - - {{.Title}} - - {{ partial "assets/css.html" . }} - - - - - {{ partial "header/main.html" . }} - - - {{ partial "hero.html" . }} - - -
-
-
- {{ partial "introduction.html" . }} - - {{ partial "features.html" . }} - - {{ partial "quickStart.html" . }} -
-
- {{ partial "releases.html" . }} - {{ partial "mongodbUniversity.html" . }} -
-
-
- - - -
-
-
- {{ partial "footer.html" .}} -
-
-
- - - - -{{ partial "assets/javascripts.html" . }} -{{ partial "assets/analytics.html" . }} - - diff --git a/Docs/landing/layouts/partials/assets/analytics.html b/Docs/landing/layouts/partials/assets/analytics.html deleted file mode 100644 index f6b215e76bd..00000000000 --- a/Docs/landing/layouts/partials/assets/analytics.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/Docs/landing/layouts/partials/assets/css.html b/Docs/landing/layouts/partials/assets/css.html deleted file mode 100644 index 7f49b2a0220..00000000000 --- a/Docs/landing/layouts/partials/assets/css.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/Docs/landing/layouts/partials/assets/javascripts.html b/Docs/landing/layouts/partials/assets/javascripts.html deleted file mode 100644 index 464fc2f9707..00000000000 --- a/Docs/landing/layouts/partials/assets/javascripts.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/Docs/landing/layouts/partials/features.html b/Docs/landing/layouts/partials/features.html deleted file mode 100644 index 370df84ba30..00000000000 --- a/Docs/landing/layouts/partials/features.html +++ /dev/null @@ -1,12 +0,0 @@ -

Features

- -
-
Driver
-
A completely async driver to talk with MongoDB.
-
GridFS
-
A distributed file system built on MongoDB.
-
Core Driver
-
The MongoDB Driver is built on top of a new Core library which anyone can use to build alternative or experimental high-level APIs.
-
BSON Library
-
A standalone BSON library, with a serialization infrastructure that you can use to build high-performance serializers.
-
\ No newline at end of file diff --git a/Docs/landing/layouts/partials/footer.html b/Docs/landing/layouts/partials/footer.html deleted file mode 100644 index 9133ef11836..00000000000 --- a/Docs/landing/layouts/partials/footer.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/Docs/landing/layouts/partials/header/main.html b/Docs/landing/layouts/partials/header/main.html deleted file mode 100644 index d57e0c42a1a..00000000000 --- a/Docs/landing/layouts/partials/header/main.html +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/Docs/landing/layouts/partials/header/topRight.html b/Docs/landing/layouts/partials/header/topRight.html deleted file mode 100644 index e2209f60a3f..00000000000 --- a/Docs/landing/layouts/partials/header/topRight.html +++ /dev/null @@ -1,8 +0,0 @@ -
- -
diff --git a/Docs/landing/layouts/partials/hero.html b/Docs/landing/layouts/partials/hero.html deleted file mode 100644 index b3e5e6bcc88..00000000000 --- a/Docs/landing/layouts/partials/hero.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
-
-
-

MongoDB .NET Driver

-

- The next generation .NET driver for MongoDB -

-
-
-
-
-
diff --git a/Docs/landing/layouts/partials/introduction.html b/Docs/landing/layouts/partials/introduction.html deleted file mode 100644 index a5280fec27d..00000000000 --- a/Docs/landing/layouts/partials/introduction.html +++ /dev/null @@ -1,6 +0,0 @@ -

Introduction

- -

- The official MongoDB .NET Driver provides asynchronous interaction with MongoDB. - Powering the drivers is a Core library and a BSON library. -

diff --git a/Docs/landing/layouts/partials/meta.html b/Docs/landing/layouts/partials/meta.html deleted file mode 100644 index 408b03e3337..00000000000 --- a/Docs/landing/layouts/partials/meta.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/Docs/landing/layouts/partials/mongodbUniversity.html b/Docs/landing/layouts/partials/mongodbUniversity.html deleted file mode 100644 index 2cb6daaf455..00000000000 --- a/Docs/landing/layouts/partials/mongodbUniversity.html +++ /dev/null @@ -1,9 +0,0 @@ -
-

MongoDB University

- -

M220: MongoDB for .NET Developers

-

Learn the essentials of ASP.NET application development with MongoDB.

-

-Learn More -

-
diff --git a/Docs/landing/layouts/partials/quickStart.html b/Docs/landing/layouts/partials/quickStart.html deleted file mode 100644 index b6af5d5afcd..00000000000 --- a/Docs/landing/layouts/partials/quickStart.html +++ /dev/null @@ -1,97 +0,0 @@ -

Quick Start

- -

- The recommended way to get started using one of the drivers in your project is with a dependency management system. - Select the driver, version and dependency management system below and the snippet can be copied and pasted into your build. -

-

- Alternatively, head over to our documentation to learn more about getting started with .NET and MongoDB. -

- -{{ range where $.Site.Data.releases.versions "version" $.Site.Data.releases.current }}{{ $.Scratch.Set "qs.currentReleasedVersion" . }}{{end }} -{{$currentReleasedVersion := $.Scratch.Get "qs.currentReleasedVersion"}} - -
-
-
-
-
- {{ $.Scratch.Set "qs.pos" 0 }} - {{ $.Scratch.Set "qs.firstDriver" false }} - {{ with $.Site.Data.releases.drivers }} - - {{ end }} -
-
- {{ $.Scratch.Set "qs.pos" 0 }} - {{ $firstDriver := $.Scratch.Get "qs.firstDriver"}} - {{ with $.Site.Data.releases.versions }} - - {{ end }} -
-
- -
-
- -
- -
-
- -
- {{ $currentNode := . }} - {{ $.Scratch.Set "qs.firstDriver" true }} - {{ with $currentNode.Site.Data.releases.drivers }} - {{ $.Scratch.Set "qs.driverPos" 0 }} - {{ range . }} - {{ $currentDriver := . }} - {{ with $.Site.Data.releases.versions }} - {{ $.Scratch.Set "qs.versionPos" 0 }} - {{ range . }} - {{ $currentVersion := . }} - {{ $firstDriver := $.Scratch.Get "qs.firstDriver"}} - {{ $driverPos := $.Scratch.Get "qs.driverPos" }} - {{ $versionPos := $.Scratch.Get "qs.versionPos" }} - {{ if in $currentDriver.versions $currentVersion.version }} -
-
<packages>
-    <package id="{{$currentDriver.package}}" version="{{$currentVersion.version}}" />
-{{ range $currentNode.Site.Data.releases.drivers }}{{ if and (in $currentDriver.dependencies .name) (in .versions $currentVersion.version) }}    <package id="{{ .package }}" version="{{$currentVersion.version}}" />
-{{ end }}{{ end }}</packages>
-
-
- - {{ $.Scratch.Set "qs.firstDriver" false }} - {{ $.Scratch.Add "qs.versionPos" 1 }} - {{ end }} - {{ end }} - {{ end }} - {{ $driverPos := $.Scratch.Get "qs.driverPos" }} -
- {{$currentDriver.description | markdownify}} -
- {{ $.Scratch.Add "qs.driverPos" 1 }} - {{ end }} - {{ end }} -
-
-
diff --git a/Docs/landing/layouts/partials/releases.html b/Docs/landing/layouts/partials/releases.html deleted file mode 100644 index 152652f8502..00000000000 --- a/Docs/landing/layouts/partials/releases.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ with $.Site.Data.releases.versions }} -
-

Releases

- - - - {{ range . }} - - - - - {{ end }} - -
ReleaseDocumentation
{{.version}}Reference | API
-
-{{ end }} diff --git a/Docs/landing/static/.readme b/Docs/landing/static/.readme deleted file mode 100644 index db9fa5e2305..00000000000 --- a/Docs/landing/static/.readme +++ /dev/null @@ -1 +0,0 @@ -Custom static resources diff --git a/Docs/landing/static/404.html b/Docs/landing/static/404.html deleted file mode 100644 index 870383c6b72..00000000000 --- a/Docs/landing/static/404.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - 404 Page not found - - - - - - - - - - - - - - - - -
-
-
-
-
-

404: Page not found

-
- -
-
-
- - - -
-
-
- - -
-
-
- - - - - - - - - - - - - - - - - - - - - diff --git a/Docs/landing/static/apple-touch-icon.png b/Docs/landing/static/apple-touch-icon.png deleted file mode 100644 index 9f98bad32ca77dafd1ddd8fd9ad7c80644ecfa3f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 34974 zcmY(pW0Yn=lP&y|ZQHhO+w8LKF59+k+qP}n>T-3t>h?P`-+cF;wQ`+^I6GrU2CVj#IhWe>7)h31L9(EbhfW12BB&t&KPKWY6-kl{aH7?|i88UEMz zzp1?cv2rUoS(^T1{*QltCf@%-{y(<=;o)WY5BdKU%ztP4U)F!A@=|eiPm|e4Y~=7G*6Y=U%%CM z$R59bxR5eD>~|_VIUdzlYAz!yvyiYH4@HL~oaL_*MyoT`psSS)Qh=*aHB0)b!RQ5` z-P80F(!?V8P*%^H4$uN-%UY;y;Hc%74C8#voVmu|Q7`upHTZDvY{u2UFfxEyE-e$5 z`f!s_4&aIUKmPuCoYo^7&}-s&q9kJx^$SU$WX(<9$-id(h~DVppyu&WPXVo{mo!rY zqD3qaVSMLjx!I}z$!{aDy!JJ73 zE}MRJ-<{8KCl^N$EH?MzEQI;j-7p>|umk4$BVKT>?k$%C4P1y0vZwJjqk<8ZBH@K9 zi6w2YKa0`Of!}^Q#GA^^^)ht^W3=bqgK;j$4iy?Y<`(A#e%E1s3uMmx?=}2O=KcH? z;!dH9I-YQV8d!V+QevQ8f5RN^`k#z0ImR?W!SwFE_w7CgeC$lhzi)a(c?{1QQz|&o z_iG}6H6h@&f)t&gn|{P=AV>p&!Y7gQ_vo|d!m@doAAFM@13wQ{6MQ)e6Xt0m{9(*O z=-|7T0|c7s7VV9AcJ@Ue5+ZuAtUhc#L$7)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%hM**_`F z}VLM+=AO5`8o5-6NGw zseAU=+-hvQ*xO z&xYHQ95aUD ze-I`oODBFdev1P3c-PVL+IN>`r>N-@ZrDT_zoBv@R*s(cPMd`=n&^JPrRII}voGIQ z6hAWbzTyuqpBaCw4D`xry9nN$Cc2-l4YvutQ5Ln*#IIVx{(}N>MZdA@^dQ#2Oq7xw z9zUY(^N&7%<@Qm8Xl1}*TB6$nEX~PCXlT>!{3Q5pJuGCIuvq=&>CQYe8+J+7U#>s+75=7I)7nT6JtPmh8? zn}M(nt4;gO{ttFIU-p|m1cA&H#khL=$y|jF^j@Te&w_$KzMb{o4_YVJp#dZGD(PNs zxyZOAUp|sjg4d`iTVB64uYfNF?GFCAeWXSf{%R&)*LaB;&q4m2cr_AkqInj`jm5+ZGpm?=kVa_(3;v z)a15%k7aUCO-8^qZfRgHE>M=tWzYNmeN5@qo?q~mPv+Jm(3|{Barc(s4B53Z z3e-3B)^oG-_OtY~1pxnr(_u{w?Q>0yQ4NFv-=yF~y$&DWv?$-KsE{s}kdU6r(6DOb z1TQzw1TR8`OKtj6fo)d!FE*wtgiZLY=~`O1O@n{MOo!d#^Z$CgyHWd`u099 zRuU2lZq`07wyxe15;~S|Y>^!`{{=x100;mAc*N_-w%mWgsxC-ILc-qG;f=lbzo>vP z8h|1Wndi{K~<`+y1}U@%zt66kz-hR@1@7);qxc-;9U;W<1UNLmd+U z2ch|!iz~1HKW9ySB>u0Z5Wj$+AfKR!04jiskBZWp&^Lo*ss6)R&mr)CQIP>HQ~>oO uif~7CQWp}U`40%9tNPbY{oi8F&SC<1A5iVnWM0CN9H6SGrBE$r0sSBUpy)RM diff --git a/Docs/landing/static/s/css/frontpage.css b/Docs/landing/static/s/css/frontpage.css deleted file mode 100644 index b388f6346c9..00000000000 --- a/Docs/landing/static/s/css/frontpage.css +++ /dev/null @@ -1,393 +0,0 @@ -body { - font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; - margin: 0; - padding: 0; - color: #494747; - font-size: 16px; - -webkit-font-smoothing: antialiased; - background-color: #f3f4eb; - color: #4c3a2c; - padding-top: 50px; -} - -h1, h2, h3, h4, h5, h6 { - font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-weight: normal; - color: #313030; -} - -a { - color: #006cbc; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -dt { - margin-top: 10px; - font-size: 18px; -} - -/* Header styles */ - -#header-db { - position: fixed; - -webkit-transform: translateZ(0); /* hack around Chrome bug: http://stackoverflow.com/questions/11258877/fixed-element-disappears-in-chrome */ - height: 50px; - top: 0; - left: 0; - width: 100%; - font-size: 31px; - background-color: #3b291f; - color: white; - margin: 0; - padding: 0; - z-index: 100; -} - -#header-db .header-content { - width: 1385px; - padding-left: 12px; - - transition: width 0.4s cubic-bezier(.02,.01,.47,1); - -moz-transition: width 0.4s cubic-bezier(.02,.01,.47,1); - -webkit-transition: width 0.4s cubic-bezier(.02,.01,.47,1); -} - -#header-db .nav-items { - display: inline-block; -} - -#header-db .nav-items > a { - font-size: 14px; -} - -#header-db a { - color: white; -} - -#header-db .logo img { - height: 36px; - vertical-align: top; -} -#header-db .nav-items > a:not(:last-child) { - margin-right: 15px; -} - -div.gsc-control-cse-en, div.gsc-control-cse { padding: 0 !important; } - -form.gsc-search-box { - background-color: rgba(255,255,255,0.3); - border-radius: 6px; - border: 1px solid #3b2920; -} - -.gsc-search-box.gsc-search-box-tools .gsc-search-box .gsc-input { - padding: 0; -} - -div.gsc-input-box, -.gsc-search-box .gsc-input>input:hover, .gsc-input-box-hover, -.gsc-search-box .gsc-input>input:focus, .gsc-input-box-focus { - border: 0; - background: transparent; - box-shadow: none; -} - -/* [name] selector is a hack to override google's stylsheet */ -.gsc-input input.gsc-input[name="search"] { - background-color: transparent !important; - color: white; - font-weight: 300; - font-size: 15px; - height: 1.3em !important; -} - -.gsc-input input.gsc-input::-webkit-input-placeholder, -.gsc-input input.gsc-input:-moz-input-placeholder, -.gsc-input input.gsc-input::-moz-input-placeholder, -.gsc-input input.gsc-input:-ms-input-placeholder { - color: #CCC; -} - -/* Clear search button */ -.gsib_b { - display: none; -} - -/* [title] selector is a hack to override google's stylesheet */ -input.gsc-search-button[title], input.gsc-search-button:hover[title], input.gsc-search-button:focus[title] { - border-color: transparent; - background-color: transparent; - padding: 0 8px; - box-sizing: content-box; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; -} - -#header-db .logo { - padding: 5px 0; -} - -#header-db .search-db { - transition: width 0.3s linear; - -webkit-transition: width 0.3s linear; - -moz-transition: width 0.3s linear; - -o-transition: width 0.3s linear; - margin-left: 45px; - margin-top: 11px; - display: inline-block; -} - -#header-db .search-db.narrow { - width: 98px; -} - -#header-db .search-db.wide { - width: 226px; -} - -/* Footer styles */ -.footer { - width:auto; - font-size:80%; - border:none; - padding: 20px 0; -} - -.footer .copyright { - text-align: center; -} - -.footer p { - margin: 1em 0; - padding: 0; - line-height:1.5; -} - -.footer a { - color: #989898; - text-decoration: underline; -} - -.footer h3 { - margin-top: 10px; - font-size: 16px; -} - -.footer .box { - background-color: #f5f6f7; - min-height: 20px; - padding: 15px; - margin-bottom: 20px; - text-align: left; -} - -.footer .box a { - color: #333; - text-decoration: none; -} - -.footer .box a:hover { - text-decoration: underline; -} - -.footer ul { - list-style-type: none; - padding-left: 20px; -} - -.footer .section-0 { - padding-left: 100px; -} - -.footer .section-1 { - padding-left: 46px; -} - -.footer .section-2 { - padding-left: 64px; -} - -.footer .section-3 { - padding-left: 49px; -} - - -/* Hero Styles */ - -#hero { - background-color: #666; - color: #f3f4eb; - border-bottom: 1px solid #313030; - padding: 12px 0px; -} - -#mongodbJVMlogo { - background-image: url("../img/mongoJVMlogo.png"); - background-position: left top; - background-repeat: no-repeat; - width: 83px; - height: 150px; -} - -#hero h2 { - border-top: 3px solid #6ca439; - color: #f3f4eb; - padding: 10px 0; - display: inline-block; -} - -.btn-mongo, .btn-mongo:visited, .btn-mongo:active { - background-image: none; - border-radius: 0; - color: white; - font-size: 14px; - font-weight: 800; - line-height: 14px; - border: 2px solid #6ca439; - text-shadow: none; - text-transform: uppercase; -} - -.btn-mongo:hover { - color: white; - border-color:#34302d; - box-shadow:none; - text-decoration:none; -} - -.btn-dark { - border: 2px solid #3b291f; - background-color: #3b291f; - color: white; - border-radius: 0; -} - -.btn-dark:hover { - color: white; - border: 2px solid #6ca439; - box-shadow:none; - border-radius: 0; -} - -.btn-download, .btn-download:visited, .btn-download:active { - margin-top: -10px; - padding: 15px 10px; - text-shadow: none; - text-transform: uppercase; -} - - -/* Releases styles */ -#releases { - padding-bottom: 20px; -} - -#releases h3 { - text-align: center; -} - -#releases table { - border: 1px solid #3b291f; - border-collapse: initial; - margin-bottom: 0px; -} - -#releases table thead { - font-size: 16px; - font-weight: 500; - text-transform: uppercase; -} - -#releases table td a { - padding: 0px 10px; -} - -/* Download widget */ -#downloadWidget { - border: 1px solid #3b291f; -} - -#downloadWidget .downloadForm { - margin-top: 10px; -} - -#downloadWidget .downloadLink { - padding-left: 0; - padding-right: 5px; -} - -#downloadWidget .description { - border-top: 1px solid #3b291f; - padding: 10px; - background-color: #666; - color: #f3f4eb; - font-weight: 800; -} - -#downloadWidget pre { - border-radius: 0; - margin: 10px; - padding: 0; -} - -#downloadWidget pre code { - padding: 10px; - min-height: 65px; -} - -#downloadWidget .clipboard { - position: relative; -} - -#downloadWidget .clipboard button { - position: absolute; - right: 10px; - top: 10px; - border-radius: 0; - color: white; - font-size: 2em; -} - -#downloadWidget .clipboard .zeroclipboard-is-hover { - color: white; - border: 2px solid #6ca439; -} - -/* University Promo */ -#universityPromo h3 { - background-image: url("../img/mongodb-university-logo.png"); - background-position: left top; - background-repeat: no-repeat; - height: 72px; -} - -#universityPromo h3 span { - display: none; -} - -#universityPromo h4 { - margin-top: 20px; -} - -#universityPromo .hero-container .h4-wrapper { - width: 100%; - margin-top: -30px; - padding-bottom: 40px; -} - -#universityPromo .hero-container .h4-wrapper h4 { - margin: 0 auto; - color: white; - font-weight: 500; - text-align: center; - background: #666; -} - -code { - background-color: #ddd; - color: #494747; -} diff --git a/Docs/landing/static/s/img/24px-baseline-overlay.png b/Docs/landing/static/s/img/24px-baseline-overlay.png deleted file mode 100644 index 9aa62dcdd8330a61271454f5b6d3de15223b9dc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 948 zcmaJ=&yUhT6mGIa4apug=xI_8s|GrqLSfrb5h(1ESVDkAPG(CxKm+a6c96os7*FcK z#G7}$nfMQQa1&3S^laik;KhGnlXc1h>p|?H^WNlr-}~N=dD(6q?I&*~IgZlh*sRONMlA2AHeZWPm}_HAlFEO?&b9D=u-|UfSvPY2SFDTErF1 zI7WzEpP@OfRE~VpnqUeBc;t8*|NGNt9yqqfKa>s8@N0PN94`ahUAB7Ga$+eqU%m%Q zk;({MOid8EQ!i8_jbHJq%#N=i4^|;`qVX4^`bHbnNPvMX$XQF25GX1FlJg2e86b%$ z2ayORC5w=nFRG{j)*sKZ1@=(w=#6zQ=4t$xQeTB|KA#KooIrvRM2ez7QG$|`Wf9qM z;ZZZndSQCQpySXA9G^PG12LmHATz4*OzA}luD_-A!gZTi!(e3k5D8*j(k9R_{vYbP z+vt#X@TJ~=5{JEok6{OgWENO#aKm(*%2#UvHYo{ugiJSGY>x>g;h6ZKRs**U({jAn zzq0}uhT8N(YI+uK>Ke}|1jn(}3X-de+)xy`DkD_SDTn!DJuej+2vzf9qp-p1#G1L- zqZ_P!iLLC!#=GG9EVGUS=LxnO0dc{qX4ToPrMQ!CjkR}cIoyebObm=C``4s5S8RP^ zbGx_9*=|1e*t!R7ue(1p7JCy1O})~KehkjOoqj*PpEx-?KQE(Sskf;YiFe7P>#y&= de^Y(N?Qu6=B|bduUVRk5qh`IOf2^K7{{xDpBd!1d diff --git a/Docs/landing/static/s/img/back-body.png b/Docs/landing/static/s/img/back-body.png deleted file mode 100644 index 0eb9bc5e96055dec37a98e2357eca887b1cf2182..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^j6f{H!2~1^=N$M3q$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~-c71?{bIEGZ*(&;wjYcLQv{O5oFCGDgICs%R@ImWQ_mx)}f zn(^5w>qO(`WL7EO`gOgZ*R1FVdQ&MBb@ E0At=ZhX4Qo diff --git a/Docs/landing/static/s/img/code-block-bg.png b/Docs/landing/static/s/img/code-block-bg.png deleted file mode 100644 index aecf24d6d2090f521a3c3639bbfd19294752b06a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 943 zcmaJ=O^?z*81C*~%*IXJn2piXSS}i+(Q`HxGL7V*CY~7=MC#^RNe}EM+~2O{O#N~b8pXC51EwqH)y zrET{Aa_#dQwq2+79_^3;o!SxRj$G2m!1V1QZe!b>J^6&I9JiD6x;@&n9;y!U1v|wE zi61gH$5juL(00a{f<7L4fyV!M_nrrytMQLyOSD2AkG$h~ggf(Q*O`wU#pMt0foh^M z0UuKvB>rg-tBJ-hbyapwuOSbX5IWZQ^PqZG3+N=mKo;b@BT5LA6#>ab1);k@5>Wvn z5lTuPA+=amQ3%aMS-FOB`MDk`FIvk zJIM!eE>kdY>_lEjJraOa(e9H8)p!=^c?y2GmJQ-nnOMPKVuuh3VwzG0w5jtcP!f+w2y`9XvTVl-Qv3Fj zU|Fge#MBNPY#JKRBm~cM)rzE4YKmM^WL-z7UQjB(8VJ>jVxyFC4dP6E9MFvG zUU17Bx#=wUA@gkD$a{+2MnrtD%vtp|$5Py=x8k~+W05yV6f UzJ1pD221G^GV4v_b?x!gk_!Gd+z&TA)27;yY-FteT=l#6r?bf~Rt-URdAH4>{mIQY@7Q*m*1PnW^y$QoFjsX+4}+#}53q%8cl!7Xu5er?>vg)cYd%mN;tO_) z5fVRSY>ulOCZX+&Fa; zf?%3zGl;1jIJjwOJd+SS&sEEkQm!d-RgrZap?Y2^7fSVlRBRwrD~OHaifa&O?Bjs0 zxb7vF(Km3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nC13_R8_CyrTEP zbi!(lQd)&OW-BCGqas^nVNo6F72_f0&grTAX|@Zt0EKyaT! zz4=XuGi~z(G6%kf@wVFWtwrR|#C~?w3Ru@*^qUD)x$WsGBSZPD$|ra0$lvvnu>#fzMrgJC&C`xROZ(+p&1XoiJFE;v4v zv9Z=(8(BBiO*xFR^c$|I9r({l|G?hqP!z5AU~J{6zM5IEP2(;*W??_yhK;r!&;k`L z)Mk94Xk_jFB+PI}U%NTmvKbL`1>akaxQx_~p1j^WPed9t#-EXSD@(7H^6O#0)=5Pf z05E7NepJR=vGG`Ekn!g<1*ClzYB0&8Ol1 zOhqHd^>ElPdVR`5)9ItqVtm6V*7_^6yh5cgZ6%el1Bsbgu`x&4{)SU`)JfSCtHob3 zvMP+nTwZFo&pMOoiHREfe9}kT#ewhBwmry-Z@PM_#>f5#S@@G3oPhbJ00000NkvXX Hu0mjf6kTjQ diff --git a/Docs/landing/static/s/img/logo-mongodb-header.png b/Docs/landing/static/s/img/logo-mongodb-header.png deleted file mode 100644 index fa2dccfa62000dd90d1095c9a06fcf54a3ace51c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7084 zcmX9@byyVt*IiN?>F$Q5S7|}I!3AMKB$n<@1*AI{mXeZ?ltxOrK^jC9P}n6_Lg`%I z{r=v6CZ03r-ZS^kxiima5)AbRQZ>!A}k1 zXXNSN7ii;S4|s0p3AJa}a<_4`2ix1&1$$4}%L4#R`dX^bjf2(>UcX9X9`pZHRLJAZ z6fqkAm>Y}a$!~djg2!Z7N#)Q-2Pr}SLIZ85)ZHlLaQGq)EIMv8zpdZnb-yJ}p90!y zw{J_!ovC&9uT0}(QAQX`za>bQr+4E?wHYP@WqufM5-F@HTI_zJu>N{^eOYo{Zc_u~ z7*P4Kt44qM8uh-5d9*TG^zPg-p9G^@`l3qj&+~@9e>c1}OqlawD6WCR?LKcyT{gLb z?|^zX4gl~D;xlCHrgk?b3K7O!GRAB&PkvSC89vz#{Il`Ovv2tdJ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odb-university-logo.png b/Docs/landing/static/s/img/mongodb-university-logo.png deleted file mode 100644 index c2a288ecccbc9b9f5b9a7ef6ec154441f2d6141c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14860 zcmV+nI`hSeP)x{3dQAPDNDgU${LB1nnvnnFQz5WjHu{djlpa`ym#!%!=BUmU1Z9V?egN-Kp` zDfoy0CNP3g#AVes=d;-~ey#Ug_(Z>niL>yx8Y*hG3it-dv#M!1LMfUD6vx@=(isC7p5k-mWou?R1 zFk?b7or;)G!Gw1z9wNJ#GX_x4h$7~k4p0#O3T9vtNoElNMRM4k>F)pcb-&)JZ6fArC;OnZooH^K6l_P_=WHb;J-s!Rd`kn99Z#l9_49`_;;c#tMKOv zDT^)T&?G;9+{L6^j{MHQS0Mge#Gi)eCn&?LOnJqOn7&_W2&4lnL$eariv>)QfbpML zEY=7eqtUy4=KXUWI!m)GYcfD)6u`qSP`*1L-ACXJO&LMR%*{{Ny|2k+@=Lsw0Bgf= z|7_H#Q4fq2j3XOkX3e3(@x}hdc&qb`qs_Lx@#lx3V_LRt|5jO9F%f?bPb3nr-*Cf? zt3#IOGL+{Sj3GBorj>S1nPzQ%e*Va_wj5sEz4H4oc^`3V_BtA@@+!4kK_ z48!2yxnuH_sw)e`4t|8r-!t&j4+Jt$aWhLjy}`4Gq?}JiA3u)1ZcsaZL0JI=uCA!4 zye(ZkP%#9qHi&a1;+_JK*i`{8#5YNaS@`>Q_yL0kU7rkD9zF&ly^3Vgaw&Kj(_i6x zCzL0lge9A}Bm4=-^Adz>LExfe98zQexr+c=50(IH9Rn6!r;Z)kp`*T#l}~l^NQD7V z7St24j=|5$NMP&i08w|#4s+-$Llo! zip_n{;8+2rMbLPhY^Vx0Im*%=aY4O1af%yQ7Nq$hfM@?KaoQs97ZIfK6cft4dRRqZ>=VsQoPC zDkN1@xn$tLiaW579RgoPkn+<2SP`_&#``T1%2I>yNp+Eg&njL4m`y|8=TdMl;azGE zAlw2!ALfTM)(5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%Gi(vs~c;T944i zQ^4|u8B%W1Oizu#O@i!F$aYDnY@s|yX0rPfM&73wq-&9da;1gTJFpn+fUq>5@>`ZR zZR+oM^F2d5QcYusVj-h*4$%4m;g+C(561gNS@J$!(q#D_%F*}Doz$Faq?#IzNd9c? z0}9W3;_oH}Ca;<)fW`BJIRQ~$my@^8Q(X_#4ebsyX8hGkrfgriCXFq7DcbwiWVL)kX91RuiwEVhU!n_H$HjrNynz1gChf?yKbM2QG1!s3#2=QsMR++Dpr3CoM}qQAS98JF0&C8)@yOERY0ZZlukT zHcDm_BCd4@s%iX%j~~Q6WiI2Z_!RN8SR+VNDR$%DOY2eO8H z0l-GkgtF#Y?tD(d(xfugI{MK@Kf+vtKEG1zwlKBiy53KA*#(r=#Q>^_i+*1D?1+9JIocn}UP8T8%S!GW zYA=(#2zH-w0!LVZ4@2H9F_7mV-lz!iwiJQ6UzVUDLEmaYT%Khj65*2u2xkHe(ovGT z=(HQ<8AGh`jrfU7r(9UzZ!_tMA$~(VXfK_nlN(Fk6N9Yh9-TUXveEaGHYMfCUBh`Y z21eH;lM|+WInB;ee=3#!nMNDs0+L#=#^2>~W{$f3+uuR4g y+iXTy^Ur}i+KYUYjY|xCr1`Qj)a}lIcc_wT?Hb^E&@6g}Mb)8&9bJ8g|zWX@;K086%w#sLx z<9}s00000NkvXXu0mjfp?bGm diff --git a/Docs/landing/static/s/img/social-facebook@2x.png b/Docs/landing/static/s/img/social-facebook@2x.png deleted file mode 100644 index dcbd40748147b41095b6003b83d877aa1ebc60f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 645 zcmV;00($+4P)RCwC#m`iTLFc5}K#2#)yZcz4J z08;nl22F3k4H|Bc8#KK^*jFN5bRSMoxB;Ai&d@P6U`KxCfz)5Jq98Dz#^c{J?j4Uu z=0jiWk1;%kFhUxrf}Z8$>}l^Zf6o>azz`;)G12(Rj=*u`rr^e)062w5q6w$c0Y(NR z1>mh$P+Hp55m2Tj0q>nb0TLtl%IXuQMFg;=6(|7W=E!S^qDn6Sn;C%;Bqsg?YgSTN zDQJt3O4va0#k@sG)EfjVs*I?|jkAGqy_3;@c*hGb9saV>c zcmemRhGcy#2Tc)@vskO|fguHmJvDHPE4Ub~g8|DYbUI)PFhx#=)yF4|MtQAjMvvok35(Yp?UCNjfcbTOK$zCO2XOLmej z*0o_gmyj~hA^Ga43-m*!dKLfZNY8;ax85{DvI5vVQ(U- z1xm0XYvy+EA}5VO1>l72%Xf6~M2xGh#f?CP=pyj5507NOw|<#+yKLF0@qWl8B@UEE fnQn{C^&`LlD&hW2oI>(j00000NkvXXu0mjfC}0`W diff --git a/Docs/landing/static/s/img/social-gplus.png b/Docs/landing/static/s/img/social-gplus.png deleted file mode 100644 index efbac7d18c909d0d9d92bf8b87753644ac2e07de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 497 zcmVNjoaqRQl?C$J2 ztg0%|;%)le$Ilrt0QULl9asSOg2U1A%6&J~NI{t5X9Dzs_9%fA#91RL)y*tbzA=}K zjOv=S17Tp5B@yDtx|w$%4ESzdD}_pF#+|b819$)=i*rx%(H1XKrAFJp9c@_FyX;VnIFF2Bmzj&*S^pk0yK+%}W z?HF*JH$u{v+Dsj*TubfTY4M%7Na?ifexyu`*lOjG{W7vf)WnRY)=Cw7kY;8~`y|?B zsuL0z4}Sp%eBOGfAoJKhrDCe={qsO6c}f*^_vH_pQFbBRuoQ2`_H=k2(6J$G{G6~H n32U1uB`Nuh%ITi9_z_?LA3l_%WKRBH00000NkvXXu0mjfSbN{Y diff --git a/Docs/landing/static/s/img/social-gplus@2x.png b/Docs/landing/static/s/img/social-gplus@2x.png deleted file mode 100644 index 45f130c1a3fffdb0d88a9915fb8f1558a1e5e5bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 928 zcmV;R17G}!P) z{%11@xeG?F_CwS7NH8(F(^PZOF+&mjvEbz^eDp@JcFwWtD&?rjnkBb61h*;Crj>d^ zJ1kpXp5mi(p;b>7jan8aiiE3um~x$2POKAX(6X?qXS;?q{*V>GRpP8^jN#T@gIhi2 zI3&zePK^Dd*0`1zr)+A5dbF8pvZv7`%4eLqSG*rZ6*scIm%s6!@$v?p0@k zB}|2WZfMIl_^7BRjCz5p1%9H%+R#~l6eUHE`~8|aItXZ={q{-SKUo3K#u0TXYaBD2knGZ_MEG&X%u966*B-kn&EKjO*2FRtkc3agEf}u z>yJ=RA*>xBJoujPG~Y>kx3FgW)xntww60+5#a^;7!v!E$1R04=^E6o72MV1mDFRhuHgoJAi5s0DF{3fM8~+1&t;8?@Q&&A+2Qm6JP-IwSd{9^ujU#0000bm5)hA#e|K&=j$;zC zx83s@Ei3qv`~+Jac~5RGuWw8!Hua$d%V}xI*U7XU$Th)R5lTSLsCBYB)*c94|ANi{ zT6-k0{(<7i{S2VBiojci56wRSzd4+sLY3D?27U4|Bm10KtH^~aLv#% z^2>aRd%!!}I`RyNWt6rg*S+{ED+<%}3iM>z~XjshvmKc`c x&0j_;J9$9|p$=R_>q7V&;UYGyp}+YhzyM8djx*DFGK~NL002ovPDHLkV1mWFz!d-h diff --git a/Docs/landing/static/s/img/social-twitter@2x.png b/Docs/landing/static/s/img/social-twitter@2x.png deleted file mode 100644 index e84e6c0d332aee5d6002552fb89ce33449f709ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmV-91IGM`P)3sRwW9O!hrS|XuSCS^pgvXR|!yBcukA?n7mVLYTHHJn4fA!@Y+S0CNYl_jw>EW z-3B48I=&lsfn-C)u~nkZL|)eo%L-DD&k84pa#9i=KGG&+p*(h((Oem6b^}PFNBW4N0bKH#GR7K zvC*QhVrtsbP})Z6EXkuGsP2=p6)^~XZ74j857W~kd00000NkvXXu0mjf DE7);l diff --git a/Docs/landing/static/s/img/social-youtube.png b/Docs/landing/static/s/img/social-youtube.png deleted file mode 100644 index 1cc3167b5b3a49fa807f516f9a02e7cba32fcc88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 418 zcmV;T0bTxyP)3~!~?m;A$;2tU3PbJu@!Sw*3Xo|!ZWv0BCoBz@Eh$k~Om?4r55T~3WS_JQJn;0iAYB0ju?Aj9P zmV;Wl%+iCUd_cVD5TOr>=Z`FKp|Pd8n@>;YqTp%epVLm271_nzWP} zG!=5x5_;(33bB+d{LcVONfE!)P+I&^(nO}p{BnKlY5u5yRt?-&DP|d3WnecDD7`g4 zu@oEa;}9T|JM}5IhdXW=t@|i#wy)hz^#9K3Ja}$r?7xYI75Wum0JltpdZI(duK)l5 M07*qoM6N<$f&_fF;Q#;t diff --git a/Docs/landing/static/s/img/social-youtube@2x.png b/Docs/landing/static/s/img/social-youtube@2x.png deleted file mode 100644 index 033e628ce6553b8805bfc47f5b71c203cbcc2879..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 715 zcmV;+0yO=JP)ItkTu%5tr0`Uaa6IkD!u{`)*P9WTXo&a~pty4;pCT$YBGnw)c=#PIkyPIXS z-|xM?_WkvF4worC4d}XqQQ(8C`E}m+9;2?H02jg~B(RCXN7gV9I0f*+Dkv!z(>UuP z5JE2jI5iFmkck1nrfp$FDz4EA3V`T)_{%Rmd-eh&0pMLHQ1Zjnu!=Hw2t=?#P=Ji! z^6I&@l3)uZ&=Wz{Vg07EN1)`BxufM)b_2!PJ=(ZQ{RP&TkSGRk7j_TA1xKLp zqK|KS!?Kj8XyOgeCbY5tHWR7&Bl*A^rM$u<1;y#4C7G<@zS9a6CqD`%KETAKP1)f7 z7-eRXDVNpKhoW3;8>}xN4ORTElpw~23KWqAtXA;yY@?$JE@2N~*}Z0M zpt^>BRsd{l+BXo?H~gKL)t-B*>jcz_y3F!!Hm0s^(7L+IzMwk?^(7{aurFv~5pso5 z#YEB=YsN|)6=R*_unMSYML*~WY|^E+W2}f^N0tVvdR&#}iTSDHVh(S2l0kg$JK4quWQs{c3E{wE@(fwB>pcae?U~Cg5 x6lq$m)BjA=?8PvK;1kUy#+Aub0W13zU;yY%CK$c&joJVJ002ovPDHLkV1hMRO1=O9 diff --git a/Docs/landing/static/s/img/trans-user-back.png b/Docs/landing/static/s/img/trans-user-back.png deleted file mode 100644 index 388216cfcc40722988125e5107b4f040d6299da2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 162 zcmeAS@N?(olHy`uVBq!ia0vp^fDSr z1<%~X^wgl##FWaylc_d9MJ}E$jv*DdlCDg96o1e`F(GLIlZ0u?l?j2)ZoHBZMq8s| zk3)>#N<|%qKa-@|Y-COJD&2bkWRCcy>q z2)rn7$eja+9RQ7ev}>0br%EO->IPdXG>J%mC5@_IZO5q%LI@x!ubh-UJx-r#b1Kdl z(gU5egOMtM{j*2`Di1436BH;@fME_UR}x^7Y9TOSArc0+Q2IFLsX!QjCR+$hatz>T z<8Oe*;${pWMspGnFFJ-e;P!t@n~Mjcl2DG7*uChcG-D+8PFsu1)I4;uUZ(EMYzzw> zZ0q#7+Pt2dA`}iLUE_Z*IMxn!Hu4?ukh-0TU z&_t;N;{DK%c?HommC?bFjlO2nOV^kLuV*!d)7) z69%k9ZVK$v`h{&dT!FRWFm$1k8av!L!*KvB1M)8%f_HBJXw#epsU<)5u{e_2*JmQ#y||ceytZKvd(T z7-F{|V97$?A2>?#r=qOgWdtqB<^Ca0Q~5T_)H`+;s3mjh9EzR391MUNCB<`;saG7v zsDuGE0qZRP282aXM!04#Qkw~mBh=jHg+f+-me+vzqQqTLW>U}Rxtb_#X5=U#SWLj& z4_DAxde63wp&9K$OL{3KC9Lna+gi;Ex-Uvx(qos8^vY-0000 type pairs - class2type = {}, - - // List of deleted data cache ids, so we can reuse them - core_deletedIds = [], - - core_version = "1.10.2", - - // Save a reference to some core methods - core_concat = core_deletedIds.concat, - core_push = core_deletedIds.push, - core_slice = core_deletedIds.slice, - core_indexOf = core_deletedIds.indexOf, - core_toString = class2type.toString, - core_hasOwn = class2type.hasOwnProperty, - core_trim = core_version.trim, - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context, rootjQuery ); - }, - - // Used for matching numbers - core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, - - // Used for splitting on whitespace - core_rnotwhite = /\S+/g, - - // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - // Match a standalone tag - rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - - // JSON RegExp - rvalidchars = /^[\],:{}\s]*$/, - rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, - rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, - rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }, - - // The ready event handler - completed = function( event ) { - - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { - detach(); - jQuery.ready(); - } - }, - // Clean-up method for dom ready events - detach = function() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } - }; - -jQuery.fn = jQuery.prototype = { - // The current version of jQuery being used - jquery: core_version, - - constructor: jQuery, - init: function( selector, context, rootjQuery ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) { - context = context instanceof jQuery ? context[0] : context; - - // scripts is true for back-compat - jQuery.merge( this, jQuery.parseHTML( - match[1], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[2] ); - - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[2] ) { - return rootjQuery.find( selector ); - } - - // Otherwise, we inject the element directly into the jQuery object - this.length = 1; - this[0] = elem; - } - - this.context = document; - this.selector = selector; - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || rootjQuery ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this.context = this[0] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return rootjQuery.ready( selector ); - } - - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return jQuery.makeArray( selector, this ); - }, - - // Start with an empty selector - selector: "", - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return core_slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num == null ? - - // Return a 'clean' array - this.toArray() : - - // Return just the object - ( num < 0 ? this[ this.length + num ] : this[ num ] ); - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - ret.context = this.context; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - ready: function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; - }, - - slice: function() { - return this.pushStack( core_slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function( elem, i ) { - return callback.call( elem, i, elem ); - })); - }, - - end: function() { - return this.prevObject || this.constructor(null); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: core_push, - sort: [].sort, - splice: [].splice -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -jQuery.extend = jQuery.fn.extend = function() { - var src, copyIsArray, copy, name, options, clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) { - target = {}; - } - - // extend jQuery itself if only one argument is passed - if ( length === i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) { - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) { - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray(src) ? src : []; - - } else { - clone = src && jQuery.isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend({ - // Unique for each copy of jQuery on the page - // Non-digits removed to match rinlinejQuery - expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), - - noConflict: function( deep ) { - if ( window.$ === jQuery ) { - window.$ = _$; - } - - if ( deep && window.jQuery === jQuery ) { - window.jQuery = _jQuery; - } - - return jQuery; - }, - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). - if ( !document.body ) { - return setTimeout( jQuery.ready ); - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.trigger ) { - jQuery( document ).trigger("ready").off("ready"); - } - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return jQuery.type(obj) === "function"; - }, - - isArray: Array.isArray || function( obj ) { - return jQuery.type(obj) === "array"; - }, - - isWindow: function( obj ) { - /* jshint eqeqeq: false */ - return obj != null && obj == obj.window; - }, - - isNumeric: function( obj ) { - return !isNaN( parseFloat(obj) ) && isFinite( obj ); - }, - - type: function( obj ) { - if ( obj == null ) { - return String( obj ); - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ core_toString.call(obj) ] || "object" : - typeof obj; - }, - - isPlainObject: function( obj ) { - var key; - - // Must be an Object. - // Because of IE, we also have to check the presence of the constructor property. - // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { - return false; - } - - try { - // Not own constructor property must be Object - if ( obj.constructor && - !core_hasOwn.call(obj, "constructor") && - !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { - return false; - } - } catch ( e ) { - // IE8,9 Will throw exceptions on certain host objects #9897 - return false; - } - - // Support: IE<9 - // Handle iteration over inherited properties before own properties. - if ( jQuery.support.ownLast ) { - for ( key in obj ) { - return core_hasOwn.call( obj, key ); - } - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - for ( key in obj ) {} - - return key === undefined || core_hasOwn.call( obj, key ); - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - error: function( msg ) { - throw new Error( msg ); - }, - - // data: string of html - // context (optional): If specified, the fragment will be created in this context, defaults to document - // keepScripts (optional): If true, will include scripts passed in the html string - parseHTML: function( data, context, keepScripts ) { - if ( !data || typeof data !== "string" ) { - return null; - } - if ( typeof context === "boolean" ) { - keepScripts = context; - context = false; - } - context = context || document; - - var parsed = rsingleTag.exec( data ), - scripts = !keepScripts && []; - - // Single tag - if ( parsed ) { - return [ context.createElement( parsed[1] ) ]; - } - - parsed = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { - jQuery( scripts ).remove(); - } - return jQuery.merge( [], parsed.childNodes ); - }, - - parseJSON: function( data ) { - // Attempt to parse using the native JSON parser first - if ( window.JSON && window.JSON.parse ) { - return window.JSON.parse( data ); - } - - if ( data === null ) { - return data; - } - - if ( typeof data === "string" ) { - - // Make sure leading/trailing whitespace is removed (IE can't handle it) - data = jQuery.trim( data ); - - if ( data ) { - // Make sure the incoming data is actual JSON - // Logic borrowed from http://json.org/json2.js - if ( rvalidchars.test( data.replace( rvalidescape, "@" ) - .replace( rvalidtokens, "]" ) - .replace( rvalidbraces, "")) ) { - - return ( new Function( "return " + data ) )(); - } - } - } - - jQuery.error( "Invalid JSON: " + data ); - }, - - // Cross-browser xml parsing - parseXML: function( data ) { - var xml, tmp; - if ( !data || typeof data !== "string" ) { - return null; - } - try { - if ( window.DOMParser ) { // Standard - tmp = new DOMParser(); - xml = tmp.parseFromString( data , "text/xml" ); - } else { // IE - xml = new ActiveXObject( "Microsoft.XMLDOM" ); - xml.async = "false"; - xml.loadXML( data ); - } - } catch( e ) { - xml = undefined; - } - if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; - }, - - noop: function() {}, - - // Evaluates a script in a global context - // Workarounds based on findings by Jim Driscoll - // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context - globalEval: function( data ) { - if ( data && jQuery.trim( data ) ) { - // We use execScript on Internet Explorer - // We use an anonymous function so that context is window - // rather than jQuery in Firefox - ( window.execScript || function( data ) { - window[ "eval" ].call( window, data ); - } )( data ); - } - }, - - // Convert dashed to camelCase; used by the css and data modules - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Use native String.trim function wherever possible - trim: core_trim && !core_trim.call("\uFEFF\xA0") ? - function( text ) { - return text == null ? - "" : - core_trim.call( text ); - } : - - // Otherwise use our own trimming functionality - function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArraylike( Object(arr) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - core_push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( core_indexOf ) { - return core_indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; - - for ( ; i < len; i++ ) { - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; - }, - - merge: function( first, second ) { - var l = second.length, - i = first.length, - j = 0; - - if ( typeof l === "number" ) { - for ( ; j < l; j++ ) { - first[ i++ ] = second[ j ]; - } - } else { - while ( second[j] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, inv ) { - var retVal, - ret = [], - i = 0, - length = elems.length; - inv = !!inv; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - retVal = !!callback( elems[ i ], i ); - if ( inv !== retVal ) { - ret.push( elems[ i ] ); - } - } - - return ret; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - } - - // Flatten any nested arrays - return core_concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var args, proxy, tmp; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = core_slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - // Multifunctional method to get and set values of a collection - // The value/s can optionally be executed if it's a function - access: function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - length = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < length; i++ ) { - fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); - } - } - } - - return chainable ? - elems : - - // Gets - bulk ? - fn.call( elems ) : - length ? fn( elems[0], key ) : emptyGet; - }, - - now: function() { - return ( new Date() ).getTime(); - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations. - // Note: this method belongs to the css module but it's needed here for the support module. - // If support gets modularized, this method should be moved back to the css module. - swap: function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; - } -}); - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // we once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - - // If IE event model is used - } else { - // Ensure firing before onload, maybe late but safe also for iframes - document.attachEvent( "onreadystatechange", completed ); - - // A fallback to window.onload, that will always work - window.attachEvent( "onload", completed ); - - // If IE and not a frame - // continually check to see if the document is ready - var top = false; - - try { - top = window.frameElement == null && document.documentElement; - } catch(e) {} - - if ( top && top.doScroll ) { - (function doScrollCheck() { - if ( !jQuery.isReady ) { - - try { - // Use the trick by Diego Perini - // http://javascript.nwbox.com/IEContentLoaded/ - top.doScroll("left"); - } catch(e) { - return setTimeout( doScrollCheck, 50 ); - } - - // detach all dom ready events - detach(); - - // and execute any waiting functions - jQuery.ready(); - } - })(); - } - } - } - return readyList.promise( obj ); -}; - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || type !== "function" && - ( length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj ); -} - -// All jQuery objects should point back to these -rootjQuery = jQuery(document); -/*! - * Sizzle CSS Selector Engine v1.10.2 - * http://sizzlejs.com/ - * - * Copyright 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03 - */ -(function( window, undefined ) { - -var i, - support, - cachedruns, - Expr, - getText, - isXML, - compile, - outermostContext, - sortInput, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - hasDuplicate = false, - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - return 0; - } - return 0; - }, - - // General-purpose constants - strundefined = typeof undefined, - MAX_NEGATIVE = 1 << 31, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf if we can't use a native one - indexOf = arr.indexOf || function( elem ) { - var i = 0, - len = this.length; - for ( ; i < len; i++ ) { - if ( this[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", - - // Prefer arguments quoted, - // then not containing pseudos/brackets, - // then attribute selectors/non-parenthetical expressions, - // then anything else - // These preferences are here to reduce the number of selectors - // needing tokenize in the PSEUDO preFilter - pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rsibling = new RegExp( whitespace + "*[+~]" ), - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rescape = /'|\\/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - // BMP codepoint - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - - if ( !selector || typeof selector !== "string" ) { - return results; - } - - if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { - return []; - } - - if ( documentIsHTML && !seed ) { - - // Shortcuts - if ( (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // QSA path - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType === 9 && selector; - - // qSA works strangely on Element-rooted queries - // We can work around this by specifying an extra ID on the root - // and working up from there (Thanks to Andrew Dupont for the technique) - // IE 8 doesn't work on object elements - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && context.parentNode || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key += " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result - */ -function assert( fn ) { - var div = document.createElement("div"); - - try { - return !!fn( div ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( div.parentNode ) { - div.parentNode.removeChild( div ); - } - // release memory in IE - div = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = attrs.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Detect xml - * @param {Element|Object} elem An element or a document - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var doc = node ? node.ownerDocument || node : preferredDoc, - parent = doc.defaultView; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - - // Support tests - documentIsHTML = !isXML( doc ); - - // Support: IE>8 - // If iframe document is assigned to "document" variable and if iframe has been reloaded, - // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 - // IE6-8 do not support the defaultView property so parent will be undefined - if ( parent && parent.attachEvent && parent !== parent.top ) { - parent.attachEvent( "onbeforeunload", function() { - setDocument(); - }); - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Check if getElementsByClassName can be trusted - support.getElementsByClassName = assert(function( div ) { - div.innerHTML = "

"; - - // Support: Safari<4 - // Catch class over-caching - div.firstChild.className = "i"; - // Support: Opera<10 - // Catch gEBCN failure to find non-leading classes - return div.getElementsByClassName("i").length === 2; - }); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - // ID find and filter - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && documentIsHTML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [m] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - // Support: IE6/7 - // getElementById is not reliable as a find shortcut - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== strundefined ) { - return context.getElementsByTagName( tag ); - } - } : - function( tag, context ) { - var elem, - tmp = [], - i = 0, - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See http://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - div.innerHTML = ""; - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - }); - - assert(function( div ) { - - // Support: Opera 10-12/IE8 - // ^= $= *= and empty values - // Should not select anything - // Support: Windows 8 Native Apps - // The type attribute is restricted during .innerHTML assignment - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "t", "" ); - - if ( div.querySelectorAll("[t^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = docElem.compareDocumentPosition ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); - - if ( compare ) { - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === doc || contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } - - // Not directly comparable, sort on existence of method - return a.compareDocumentPosition ? -1 : 1; - } : - function( a, b ) { - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - - // Parentless nodes are either documents or disconnected - } else if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return doc; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch(e) {} - } - - return Sizzle( expr, document, null, [elem] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val === undefined ? - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null : - val; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - for ( ; (node = elem[i]); i++ ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (see #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[5] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] && match[4] !== undefined ) { - match[2] = match[4]; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - // Seek `elem` from a previously-cached index - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - // Cache the index of each encountered element - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf.call( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), - // not comment, processing instructions, or others - // Thanks to Diego Perini for the nodeName shortcut - // Greater than "@" means alpha characters (specifically not starting with "#" or "?") - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) - // use getAttribute instead to test this case - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -function tokenize( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( tokens = [] ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -} - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var data, cache, outerCache, - dirkey = dirruns + " " + doneName; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { - if ( (data = cache[1]) === true || data === cachedruns ) { - return data === true; - } - } else { - cache = outerCache[ dir ] = [ dirkey ]; - cache[1] = matcher( elem, context, xml ) || cachedruns; - if ( cache[1] === true ) { - return true; - } - } - } - } - } - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf.call( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - // A counter to specify which element is currently being matched - var matcherCachedRuns = 0, - bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, expandContext ) { - var elem, j, matcher, - setMatched = [], - matchedCount = 0, - i = "0", - unmatched = seed && [], - outermost = expandContext != null, - contextBackup = outermostContext, - // We must always have either seed elements or context - elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); - - if ( outermost ) { - outermostContext = context !== document && context; - cachedruns = matcherCachedRuns; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - for ( ; (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - cachedruns = ++matcherCachedRuns; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !group ) { - group = tokenize( selector ); - } - i = group.length; - while ( i-- ) { - cached = matcherFromTokens( group[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - } - return cached; -}; - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function select( selector, context, results, seed ) { - var i, tokens, token, type, find, - match = tokenize( selector ); - - if ( !seed ) { - // Try to minimize operations if there is only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - } - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && context.parentNode || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - } - - // Compile and execute a filtering function - // Provide `match` to avoid retokenization if we modified the selector above - compile( selector, match )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) - ); - return results; -} - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome<14 -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( div1 ) { - // Should return 1, but returns 4 (following) - return div1.compareDocumentPosition( document.createElement("div") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( div ) { - div.innerHTML = ""; - return div.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( div ) { - div.innerHTML = ""; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - elem[ name ] === true ? name.toLowerCase() : null; - } - }); -} - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - -})( window ); -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { - object[ flag ] = true; - }); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - ( optionsCache[ options ] || createOptions( options ) ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - // Last fire value (for non-forgettable lists) - memory, - // Flag to know if list was already fired - fired, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( arguments ); - // Do we need to add the callbacks to the - // current firing batch? - if ( firing ) { - firingLength = list.length; - // With memory, if we're not firing then - // we should call right away - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - if ( index <= firingIndex ) { - firingIndex--; - } - } - } - }); - } - return this; - }, - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - return this; - }, - // Have the list do nothing anymore - disable: function() { - list = stack = memory = undefined; - return this; - }, - // Is it disabled? - disabled: function() { - return !list; - }, - // Lock the list in its current state - lock: function() { - stack = undefined; - if ( !memory ) { - self.disable(); - } - return this; - }, - // Is it locked? - locked: function() { - return !stack; - }, - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( args ); - } - } - return this; - }, - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; -jQuery.extend({ - - Deferred: function( func ) { - var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], - [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], - [ "notify", "progress", jQuery.Callbacks("memory") ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - then: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - return jQuery.Deferred(function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var action = tuple[ 0 ], - fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer - deferred[ tuple[1] ](function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); - } - }); - }); - fns = null; - }).promise(); - }, - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Keep pipe for back-compat - promise.pipe = promise.then; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 3 ]; - - // promise[ done | fail | progress ] = list.add - promise[ tuple[1] ] = list.add; - - // Handle state - if ( stateString ) { - list.add(function() { - // state = [ resolved | rejected ] - state = stateString; - - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); - } - - // deferred[ resolve | reject | notify ] - deferred[ tuple[0] ] = function() { - deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); - return this; - }; - deferred[ tuple[0] + "With" ] = list.fireWith; - }); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, - resolveValues = core_slice.call( arguments ), - length = resolveValues.length, - - // the count of uncompleted subordinates - remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), - - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { - return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; - if( values === progressValues ) { - deferred.notifyWith( contexts, values ); - } else if ( !( --remaining ) ) { - deferred.resolveWith( contexts, values ); - } - }; - }, - - progressValues, progressContexts, resolveContexts; - - // add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); -jQuery.support = (function( support ) { - - var all, a, input, select, fragment, opt, eventName, isSupported, i, - div = document.createElement("div"); - - // Setup - div.setAttribute( "className", "t" ); - div.innerHTML = "
a"; - - // Finish early in limited (non-browser) environments - all = div.getElementsByTagName("*") || []; - a = div.getElementsByTagName("a")[ 0 ]; - if ( !a || !a.style || !all.length ) { - return support; - } - - // First batch of tests - select = document.createElement("select"); - opt = select.appendChild( document.createElement("option") ); - input = div.getElementsByTagName("input")[ 0 ]; - - a.style.cssText = "top:1px;float:left;opacity:.5"; - - // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) - support.getSetAttribute = div.className !== "t"; - - // IE strips leading whitespace when .innerHTML is used - support.leadingWhitespace = div.firstChild.nodeType === 3; - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - support.tbody = !div.getElementsByTagName("tbody").length; - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - support.htmlSerialize = !!div.getElementsByTagName("link").length; - - // Get the style information from getAttribute - // (IE uses .cssText instead) - support.style = /top/.test( a.getAttribute("style") ); - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - support.hrefNormalized = a.getAttribute("href") === "/a"; - - // Make sure that element opacity exists - // (IE uses filter instead) - // Use a regex to work around a WebKit issue. See #5145 - support.opacity = /^0.5/.test( a.style.opacity ); - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - support.cssFloat = !!a.style.cssFloat; - - // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) - support.checkOn = !!input.value; - - // Make sure that a selected-by-default option has a working selected property. - // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) - support.optSelected = opt.selected; - - // Tests for enctype support on a form (#6743) - support.enctype = !!document.createElement("form").enctype; - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>"; - - // Will be defined later - support.inlineBlockNeedsLayout = false; - support.shrinkWrapBlocks = false; - support.pixelPosition = false; - support.deleteExpando = true; - support.noCloneEvent = true; - support.reliableMarginRight = true; - support.boxSizingReliable = true; - - // Make sure checked status is properly cloned - input.checked = true; - support.noCloneChecked = input.cloneNode( true ).checked; - - // Make sure that the options inside disabled selects aren't marked as disabled - // (WebKit marks them as disabled) - select.disabled = true; - support.optDisabled = !opt.disabled; - - // Support: IE<9 - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - - // Check if we can trust getAttribute("value") - input = document.createElement("input"); - input.setAttribute( "value", "" ); - support.input = input.getAttribute( "value" ) === ""; - - // Check if an input maintains its value after becoming a radio - input.value = "t"; - input.setAttribute( "type", "radio" ); - support.radioValue = input.value === "t"; - - // #11217 - WebKit loses check when the name is after the checked attribute - input.setAttribute( "checked", "t" ); - input.setAttribute( "name", "t" ); - - fragment = document.createDocumentFragment(); - fragment.appendChild( input ); - - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - support.appendChecked = input.checked; - - // WebKit doesn't clone checked state correctly in fragments - support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<9 - // Opera does not clone events (and typeof div.attachEvent === undefined). - // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() - if ( div.attachEvent ) { - div.attachEvent( "onclick", function() { - support.noCloneEvent = false; - }); - - div.cloneNode( true ).click(); - } - - // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - for ( i in { submit: true, change: true, focusin: true }) { - div.setAttribute( eventName = "on" + i, "t" ); - - support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; - } - - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - // Support: IE<9 - // Iteration over object's inherited properties before its own. - for ( i in jQuery( support ) ) { - break; - } - support.ownLast = i !== "0"; - - // Run tests that need a body at doc ready - jQuery(function() { - var container, marginDiv, tds, - divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", - body = document.getElementsByTagName("body")[0]; - - if ( !body ) { - // Return for frameset docs that don't have a body - return; - } - - container = document.createElement("div"); - container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; - - body.appendChild( container ).appendChild( div ); - - // Support: IE8 - // Check if table cells still have offsetWidth/Height when they are set - // to display:none and there are still other visible table cells in a - // table row; if so, offsetWidth/Height are not reliable for use when - // determining if an element has been hidden directly using - // display:none (it is still safe to use offsets if a parent element is - // hidden; don safety goggles and see bug #4512 for more information). - div.innerHTML = "
t
"; - tds = div.getElementsByTagName("td"); - tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; - isSupported = ( tds[ 0 ].offsetHeight === 0 ); - - tds[ 0 ].style.display = ""; - tds[ 1 ].style.display = "none"; - - // Support: IE8 - // Check if empty table cells still have offsetWidth/Height - support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); - - // Check box-sizing and margin behavior. - div.innerHTML = ""; - div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; - - // Workaround failing boxSizing test due to offsetWidth returning wrong value - // with some non-1 values of body zoom, ticket #13543 - jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { - support.boxSizing = div.offsetWidth === 4; - }); - - // Use window.getComputedStyle because jsdom on node.js will break without it. - if ( window.getComputedStyle ) { - support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; - support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; - - // Check if div with explicit width and no margin-right incorrectly - // gets computed margin-right based on width of container. (#3333) - // Fails in WebKit before Feb 2011 nightlies - // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right - marginDiv = div.appendChild( document.createElement("div") ); - marginDiv.style.cssText = div.style.cssText = divReset; - marginDiv.style.marginRight = marginDiv.style.width = "0"; - div.style.width = "1px"; - - support.reliableMarginRight = - !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); - } - - if ( typeof div.style.zoom !== core_strundefined ) { - // Support: IE<8 - // Check if natively block-level elements act like inline-block - // elements when setting their display to 'inline' and giving - // them layout - div.innerHTML = ""; - div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; - support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - div.style.display = "block"; - div.innerHTML = "
"; - div.firstChild.style.width = "5px"; - support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); - - if ( support.inlineBlockNeedsLayout ) { - // Prevent IE 6 from affecting layout for positioned elements #11048 - // Prevent IE from shrinking the body in IE 7 mode #12869 - // Support: IE<8 - body.style.zoom = 1; - } - } - - body.removeChild( container ); - - // Null elements to avoid leaks in IE - container = div = tds = marginDiv = null; - }); - - // Null elements to avoid leaks in IE - all = select = fragment = opt = a = input = null; - - return support; -})({}); - -var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, - rmultiDash = /([A-Z])/g; - -function internalData( elem, name, data, pvt /* Internal Use Only */ ){ - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var ret, thisCache, - internalKey = jQuery.expando, - - // We have to handle DOM nodes and JS objects differently because IE6-7 - // can't GC object references properly across the DOM-JS boundary - isNode = elem.nodeType, - - // Only DOM nodes need the global jQuery cache; JS object data is - // attached directly to the object so GC can occur automatically - cache = isNode ? jQuery.cache : elem, - - // Only defining an ID for JS objects if its cache already exists allows - // the code to shortcut on the same path as a DOM node with no cache - id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; - - // Avoid doing any more work than we need to when trying to get data on an - // object that has no data at all - if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { - return; - } - - if ( !id ) { - // Only DOM nodes need a new unique ID for each element since their data - // ends up in the global cache - if ( isNode ) { - id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } - - if ( !cache[ id ] ) { - // Avoid exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; - } - - // An object can be passed to jQuery.data instead of a key/value pair; this gets - // shallow copied over onto the existing cache - if ( typeof name === "object" || typeof name === "function" ) { - if ( pvt ) { - cache[ id ] = jQuery.extend( cache[ id ], name ); - } else { - cache[ id ].data = jQuery.extend( cache[ id ].data, name ); - } - } - - thisCache = cache[ id ]; - - // jQuery data() is stored in a separate object inside the object's internal data - // cache in order to avoid key collisions between internal data and user-defined - // data. - if ( !pvt ) { - if ( !thisCache.data ) { - thisCache.data = {}; - } - - thisCache = thisCache.data; - } - - if ( data !== undefined ) { - thisCache[ jQuery.camelCase( name ) ] = data; - } - - // Check for both converted-to-camel and non-converted data property names - // If a data property was specified - if ( typeof name === "string" ) { - - // First Try to find as-is property data - ret = thisCache[ name ]; - - // Test for null|undefined property data - if ( ret == null ) { - - // Try to find the camelCased property - ret = thisCache[ jQuery.camelCase( name ) ]; - } - } else { - ret = thisCache; - } - - return ret; -} - -function internalRemoveData( elem, name, pvt ) { - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var thisCache, i, - isNode = elem.nodeType, - - // See jQuery.data for more information - cache = isNode ? jQuery.cache : elem, - id = isNode ? elem[ jQuery.expando ] : jQuery.expando; - - // If there is already no cache entry for this object, there is no - // purpose in continuing - if ( !cache[ id ] ) { - return; - } - - if ( name ) { - - thisCache = pvt ? cache[ id ] : cache[ id ].data; - - if ( thisCache ) { - - // Support array or space separated string names for data keys - if ( !jQuery.isArray( name ) ) { - - // try the string as a key before any manipulation - if ( name in thisCache ) { - name = [ name ]; - } else { - - // split the camel cased version by spaces unless a key with the spaces exists - name = jQuery.camelCase( name ); - if ( name in thisCache ) { - name = [ name ]; - } else { - name = name.split(" "); - } - } - } else { - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = name.concat( jQuery.map( name, jQuery.camelCase ) ); - } - - i = name.length; - while ( i-- ) { - delete thisCache[ name[i] ]; - } - - // If there is no data left in the cache, we want to continue - // and let the cache object itself get destroyed - if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { - return; - } - } - } - - // See jQuery.data for more information - if ( !pvt ) { - delete cache[ id ].data; - - // Don't destroy the parent cache unless the internal data object - // had been the only thing left in it - if ( !isEmptyDataObject( cache[ id ] ) ) { - return; - } - } - - // Destroy the cache - if ( isNode ) { - jQuery.cleanData( [ elem ], true ); - - // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) - /* jshint eqeqeq: false */ - } else if ( jQuery.support.deleteExpando || cache != cache.window ) { - /* jshint eqeqeq: true */ - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. - noData: { - "applet": true, - "embed": true, - // Ban all objects except for Flash (which handle expandos) - "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" - }, - - hasData: function( elem ) { - elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; - return !!elem && !isEmptyDataObject( elem ); - }, - - data: function( elem, name, data ) { - return internalData( elem, name, data ); - }, - - removeData: function( elem, name ) { - return internalRemoveData( elem, name ); - }, - - // For internal use only. - _data: function( elem, name, data ) { - return internalData( elem, name, data, true ); - }, - - _removeData: function( elem, name ) { - return internalRemoveData( elem, name, true ); - }, - - // A method for determining if a DOM node can handle the data expando - acceptData: function( elem ) { - // Do not set data on non-element because it will not be cleared (#8335). - if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { - return false; - } - - var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; - - // nodes accept data unless otherwise specified; rejection can be conditional - return !noData || noData !== true && elem.getAttribute("classid") === noData; - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var attrs, name, - data = null, - i = 0, - elem = this[0]; - - // Special expections of .data basically thwart jQuery.access, - // so implement the relevant behavior ourselves - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = jQuery.data( elem ); - - if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { - attrs = elem.attributes; - for ( ; i < attrs.length; i++ ) { - name = attrs[i].name; - - if ( name.indexOf("data-") === 0 ) { - name = jQuery.camelCase( name.slice(5) ); - - dataAttr( elem, name, data[ name ] ); - } - } - jQuery._data( elem, "parsedAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each(function() { - jQuery.data( this, key ); - }); - } - - return arguments.length > 1 ? - - // Sets one value - this.each(function() { - jQuery.data( this, key, value ); - }) : - - // Gets one value - // Try to fetch any internally stored data first - elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; - }, - - removeData: function( key ) { - return this.each(function() { - jQuery.removeData( this, key ); - }); - } -}); - -function dataAttr( elem, key, data ) { - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - - var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); - - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch( e ) {} - - // Make sure we set the data so it isn't changed later - jQuery.data( elem, key, data ); - - } else { - data = undefined; - } - } - - return data; -} - -// checks a cache object for emptiness -function isEmptyDataObject( obj ) { - var name; - for ( name in obj ) { - - // if the public data object is empty, the private is still empty - if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { - continue; - } - if ( name !== "toJSON" ) { - return false; - } - } - - return true; -} -jQuery.extend({ - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = jQuery._data( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || jQuery.isArray(data) ) { - queue = jQuery._data( elem, type, jQuery.makeArray(data) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // not intended for public consumption - generates a queueHooks object, or returns the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return jQuery._data( elem, key ) || jQuery._data( elem, key, { - empty: jQuery.Callbacks("once memory").add(function() { - jQuery._removeData( elem, type + "queue" ); - jQuery._removeData( elem, key ); - }) - }); - } -}); - -jQuery.fn.extend({ - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[0], type ); - } - - return data === undefined ? - this : - this.each(function() { - var queue = jQuery.queue( this, type, data ); - - // ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[0] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - }); - }, - dequeue: function( type ) { - return this.each(function() { - jQuery.dequeue( this, type ); - }); - }, - // Based off of the plugin by Clint Helfers, with permission. - // http://blindsignals.com/index.php/2009/07/jquery-delay/ - delay: function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = setTimeout( next, time ); - hooks.stop = function() { - clearTimeout( timeout ); - }; - }); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while( i-- ) { - tmp = jQuery._data( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -}); -var nodeHook, boolHook, - rclass = /[\t\r\n\f]/g, - rreturn = /\r/g, - rfocusable = /^(?:input|select|textarea|button|object)$/i, - rclickable = /^(?:a|area)$/i, - ruseDefault = /^(?:checked|selected)$/i, - getSetAttribute = jQuery.support.getSetAttribute, - getSetInput = jQuery.support.input; - -jQuery.fn.extend({ - attr: function( name, value ) { - return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each(function() { - jQuery.removeAttr( this, name ); - }); - }, - - prop: function( name, value ) { - return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - name = jQuery.propFix[ name ] || name; - return this.each(function() { - // try/catch handles cases where IE balks (such as removing a property on window) - try { - this[ name ] = undefined; - delete this[ name ]; - } catch( e ) {} - }); - }, - - addClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).addClass( value.call( this, j, this.className ) ); - }); - } - - if ( proceed ) { - // The disjunction here is for better compressibility (see removeClass) - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - " " - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - elem.className = jQuery.trim( cur ); - - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = arguments.length === 0 || typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).removeClass( value.call( this, j, this.className ) ); - }); - } - if ( proceed ) { - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - "" - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - elem.className = value ? jQuery.trim( cur ) : ""; - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value; - - if ( typeof stateVal === "boolean" && type === "string" ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( jQuery.isFunction( value ) ) { - return this.each(function( i ) { - jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); - }); - } - - return this.each(function() { - if ( type === "string" ) { - // toggle individual class names - var className, - i = 0, - self = jQuery( this ), - classNames = value.match( core_rnotwhite ) || []; - - while ( (className = classNames[ i++ ]) ) { - // check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( type === core_strundefined || type === "boolean" ) { - if ( this.className ) { - // store className if set - jQuery._data( this, "__className__", this.className ); - } - - // If the element has a class name or if we're passed "false", - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; - } - }); - }, - - hasClass: function( selector ) { - var className = " " + selector + " ", - i = 0, - l = this.length; - for ( ; i < l; i++ ) { - if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { - return true; - } - } - - return false; - }, - - val: function( value ) { - var ret, hooks, isFunction, - elem = this[0]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { - return ret; - } - - ret = elem.value; - - return typeof ret === "string" ? - // handle most common string cases - ret.replace(rreturn, "") : - // handle cases where value is null/undef or number - ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each(function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - } else if ( typeof val === "number" ) { - val += ""; - } else if ( jQuery.isArray( val ) ) { - val = jQuery.map(val, function ( value ) { - return value == null ? "" : value + ""; - }); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - }); - } -}); - -jQuery.extend({ - valHooks: { - option: { - get: function( elem ) { - // Use proper attribute retrieval(#6932, #12072) - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - elem.text; - } - }, - select: { - get: function( elem ) { - var value, option, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one" || index < 0, - values = one ? null : [], - max = one ? index + 1 : options.length, - i = index < 0 ? - max : - one ? index : 0; - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // oldIE doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - // Don't return options that are disabled or in a disabled optgroup - ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && - ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { - optionSet = true; - } - } - - // force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - }, - - attr: function( elem, name, value ) { - var hooks, ret, - nType = elem.nodeType; - - // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === core_strundefined ) { - return jQuery.prop( elem, name, value ); - } - - // All attributes are lowercase - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - name = name.toLowerCase(); - hooks = jQuery.attrHooks[ name ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); - } - - if ( value !== undefined ) { - - if ( value === null ) { - jQuery.removeAttr( elem, name ); - - } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? - undefined : - ret; - } - }, - - removeAttr: function( elem, value ) { - var name, propName, - i = 0, - attrNames = value && value.match( core_rnotwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( (name = attrNames[i++]) ) { - propName = jQuery.propFix[ name ] || name; - - // Boolean attributes get special treatment (#10870) - if ( jQuery.expr.match.bool.test( name ) ) { - // Set corresponding property to false - if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - elem[ propName ] = false; - // Support: IE<9 - // Also clear defaultChecked/defaultSelected (if appropriate) - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = - elem[ propName ] = false; - } - - // See #9699 for explanation of this approach (setting first, then removal) - } else { - jQuery.attr( elem, name, "" ); - } - - elem.removeAttribute( getSetAttribute ? name : propName ); - } - } - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { - // Setting the type on a radio button after the value resets the value in IE6-9 - // Reset value to default in case type is set after value during creation - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - }, - - prop: function( elem, name, value ) { - var ret, hooks, notxml, - nType = elem.nodeType; - - // don't get/set properties on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - if ( notxml ) { - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? - ret : - ( elem[ name ] = value ); - - } else { - return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? - ret : - elem[ name ]; - } - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set - // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - return tabindex ? - parseInt( tabindex, 10 ) : - rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? - 0 : - -1; - } - } - } -}); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - // IE<8 needs the *property* name - elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); - - // Use defaultChecked and defaultSelected for oldIE - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; - } - - return name; - } -}; -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; - - jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? - function( elem, name, isXML ) { - var fn = jQuery.expr.attrHandle[ name ], - ret = isXML ? - undefined : - /* jshint eqeqeq: false */ - (jQuery.expr.attrHandle[ name ] = undefined) != - getter( elem, name, isXML ) ? - - name.toLowerCase() : - null; - jQuery.expr.attrHandle[ name ] = fn; - return ret; - } : - function( elem, name, isXML ) { - return isXML ? - undefined : - elem[ jQuery.camelCase( "default-" + name ) ] ? - name.toLowerCase() : - null; - }; -}); - -// fix oldIE attroperties -if ( !getSetInput || !getSetAttribute ) { - jQuery.attrHooks.value = { - set: function( elem, value, name ) { - if ( jQuery.nodeName( elem, "input" ) ) { - // Does not return so that setAttribute is also used - elem.defaultValue = value; - } else { - // Use nodeHook if defined (#1954); otherwise setAttribute is fine - return nodeHook && nodeHook.set( elem, value, name ); - } - } - }; -} - -// IE6/7 do not support getting/setting some attributes with get/setAttribute -if ( !getSetAttribute ) { - - // Use this for any attribute in IE6/7 - // This fixes almost every IE6/7 issue - nodeHook = { - set: function( elem, value, name ) { - // Set the existing or create a new attribute node - var ret = elem.getAttributeNode( name ); - if ( !ret ) { - elem.setAttributeNode( - (ret = elem.ownerDocument.createAttribute( name )) - ); - } - - ret.value = value += ""; - - // Break association with cloned elements by also using setAttribute (#9646) - return name === "value" || value === elem.getAttribute( name ) ? - value : - undefined; - } - }; - jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = - // Some attributes are constructed with empty-string values when not defined - function( elem, name, isXML ) { - var ret; - return isXML ? - undefined : - (ret = elem.getAttributeNode( name )) && ret.value !== "" ? - ret.value : - null; - }; - jQuery.valHooks.button = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return ret && ret.specified ? - ret.value : - undefined; - }, - set: nodeHook.set - }; - - // Set contenteditable to false on removals(#10429) - // Setting to empty string throws an error as an invalid value - jQuery.attrHooks.contenteditable = { - set: function( elem, value, name ) { - nodeHook.set( elem, value === "" ? false : value, name ); - } - }; - - // Set width and height to auto instead of 0 on empty string( Bug #8150 ) - // This is for removals - jQuery.each([ "width", "height" ], function( i, name ) { - jQuery.attrHooks[ name ] = { - set: function( elem, value ) { - if ( value === "" ) { - elem.setAttribute( name, "auto" ); - return value; - } - } - }; - }); -} - - -// Some attributes require a special call on IE -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !jQuery.support.hrefNormalized ) { - // href/src property should get the full normalized URL (#10299/#12915) - jQuery.each([ "href", "src" ], function( i, name ) { - jQuery.propHooks[ name ] = { - get: function( elem ) { - return elem.getAttribute( name, 4 ); - } - }; - }); -} - -if ( !jQuery.support.style ) { - jQuery.attrHooks.style = { - get: function( elem ) { - // Return undefined in the case of empty string - // Note: IE uppercases css property names, but if we were to .toLowerCase() - // .cssText, that would destroy case senstitivity in URL's, like in "background" - return elem.style.cssText || undefined; - }, - set: function( elem, value ) { - return ( elem.style.cssText = value + "" ); - } - }; -} - -// Safari mis-reports the default selected property of an option -// Accessing the parent's selectedIndex property fixes it -if ( !jQuery.support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - var parent = elem.parentNode; - - if ( parent ) { - parent.selectedIndex; - - // Make sure that it also works with optgroups, see #5701 - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - return null; - } - }; -} - -jQuery.each([ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -}); - -// IE6/7 call enctype encoding -if ( !jQuery.support.enctype ) { - jQuery.propFix.enctype = "encoding"; -} - -// Radios and checkboxes getter/setter -jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( jQuery.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); - } - } - }; - if ( !jQuery.support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - // Support: Webkit - // "" is returned instead of "on" if a value isn't specified - return elem.getAttribute("value") === null ? "on" : elem.value; - }; - } -}); -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - var tmp, events, t, handleObjIn, - special, eventHandle, handleObj, - handlers, type, namespaces, origType, - elemData = jQuery._data( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !(events = elemData.events) ) { - events = elemData.events = {}; - } - if ( !(eventHandle = elemData.handle) ) { - eventHandle = elemData.handle = function( e ) { - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? - jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : - undefined; - }; - // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events - eventHandle.elem = elem; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend({ - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join(".") - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !(handlers = events[ type ]) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener/attachEvent if the special events handler returns false - if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - // Bind the global event handler to the element - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - // Nullify elem to prevent memory leaks in IE - elem = null; - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - var j, handleObj, tmp, - origCount, t, events, - special, handlers, type, - namespaces, origType, - elemData = jQuery.hasData( elem ) && jQuery._data( elem ); - - if ( !elemData || !(events = elemData.events) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - - // removeData also checks for emptiness and clears the expando if empty - // so use it instead of delete - jQuery._removeData( elem, "events" ); - } - }, - - trigger: function( event, data, elem, onlyHandlers ) { - var handle, ontype, cur, - bubbleType, special, tmp, i, - eventPath = [ elem || document ], - type = core_hasOwn.call( event, "type" ) ? event.type : event, - namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf(".") >= 0 ) { - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split("."); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf(":") < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join("."); - event.namespace_re = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === (elem.ownerDocument || document) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { - event.preventDefault(); - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && - jQuery.acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name name as the event. - // Can't use an .isFunction() check here because IE6/7 fails that test. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - try { - elem[ type ](); - } catch ( e ) { - // IE<9 dies on focus/blur to hidden element (#1486,#12518) - // only reproducible on winXP IE8 native, not IE9 in IE8 mode - } - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, ret, handleObj, matched, j, - handlerQueue = [], - args = core_slice.call( arguments ), - handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[0] = event; - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or - // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). - if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) - .apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( (event.result = ret) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - /* jshint eqeqeq: false */ - for ( ; cur != this; cur = cur.parentNode || this ) { - /* jshint eqeqeq: true */ - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { - matches = []; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) >= 0 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matches[ sel ] ) { - matches.push( handleObj ); - } - } - if ( matches.length ) { - handlerQueue.push({ elem: cur, handlers: matches }); - } - } - } - } - - // Add the remaining (directly-bound) handlers - if ( delegateCount < handlers.length ) { - handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); - } - - return handlerQueue; - }, - - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: IE<9 - // Fix target property (#1925) - if ( !event.target ) { - event.target = originalEvent.srcElement || document; - } - - // Support: Chrome 23+, Safari? - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - // Support: IE<9 - // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) - event.metaKey = !!event.metaKey; - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), - - fixHooks: {}, - - keyHooks: { - props: "char charCode key keyCode".split(" "), - filter: function( event, original ) { - - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; - } - - return event; - } - }, - - mouseHooks: { - props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function( event, original ) { - var body, eventDoc, doc, - button = original.button, - fromElement = original.fromElement; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add relatedTarget, if necessary - if ( !event.relatedTarget && fromElement ) { - event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } - }, - - special: { - load: { - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - try { - this.focus(); - return false; - } catch ( e ) { - // Support: IE<9 - // If we error on focus to hidden element (#1486, #12518), - // let .trigger() run the handlers - } - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return jQuery.nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Even when returnValue equals to undefined Firefox will still show alert - if ( event.result !== undefined ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - simulate: function( type, elem, event, bubble ) { - // Piggyback on a donor event to simulate a different one. - // Fake originalEvent to avoid donor's stopPropagation, but if the - // simulated event prevents default then we do the same on the donor. - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true, - originalEvent: {} - } - ); - if ( bubble ) { - jQuery.event.trigger( e, null, elem ); - } else { - jQuery.event.dispatch.call( elem, e ); - } - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - function( elem, type, handle ) { - var name = "on" + type; - - if ( elem.detachEvent ) { - - // #8545, #7054, preventing memory leaks for custom events in IE6-8 - // detachEvent needed property on element, by name of that event, to properly expose it to GC - if ( typeof elem[ name ] === core_strundefined ) { - elem[ name ] = null; - } - - elem.detachEvent( name, handle ); - } - }; - -jQuery.Event = function( src, props ) { - // Allow instantiation without the 'new' keyword - if ( !(this instanceof jQuery.Event) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || - src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - if ( !e ) { - return; - } - - // If preventDefault exists, run it on the original event - if ( e.preventDefault ) { - e.preventDefault(); - - // Support: IE - // Otherwise set the returnValue property of the original event to false - } else { - e.returnValue = false; - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - if ( !e ) { - return; - } - // If stopPropagation exists, run it on the original event - if ( e.stopPropagation ) { - e.stopPropagation(); - } - - // Support: IE - // Set the cancelBubble property of the original event to true - e.cancelBubble = true; - }, - stopImmediatePropagation: function() { - this.isImmediatePropagationStopped = returnTrue; - this.stopPropagation(); - } -}; - -// Create mouseenter/leave events using mouseover/out and event-time checks -jQuery.each({ - mouseenter: "mouseover", - mouseleave: "mouseout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mousenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || (related !== target && !jQuery.contains( target, related )) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -}); - -// IE submit delegation -if ( !jQuery.support.submitBubbles ) { - - jQuery.event.special.submit = { - setup: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Lazy-add a submit handler when a descendant form may potentially be submitted - jQuery.event.add( this, "click._submit keypress._submit", function( e ) { - // Node name check avoids a VML-related crash in IE (#9807) - var elem = e.target, - form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; - if ( form && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", true ); - } - }); - // return undefined since we don't need an event listener - }, - - postDispatch: function( event ) { - // If form was submitted by the user, bubble the event up the tree - if ( event._submit_bubble ) { - delete event._submit_bubble; - if ( this.parentNode && !event.isTrigger ) { - jQuery.event.simulate( "submit", this.parentNode, event, true ); - } - } - }, - - teardown: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Remove delegated handlers; cleanData eventually reaps submit handlers attached above - jQuery.event.remove( this, "._submit" ); - } - }; -} - -// IE change delegation and checkbox/radio fix -if ( !jQuery.support.changeBubbles ) { - - jQuery.event.special.change = { - - setup: function() { - - if ( rformElems.test( this.nodeName ) ) { - // IE doesn't fire change on a check/radio until blur; trigger it on click - // after a propertychange. Eat the blur-change in special.change.handle. - // This still fires onchange a second time for check/radio after blur. - if ( this.type === "checkbox" || this.type === "radio" ) { - jQuery.event.add( this, "propertychange._change", function( event ) { - if ( event.originalEvent.propertyName === "checked" ) { - this._just_changed = true; - } - }); - jQuery.event.add( this, "click._change", function( event ) { - if ( this._just_changed && !event.isTrigger ) { - this._just_changed = false; - } - // Allow triggered, simulated change events (#11500) - jQuery.event.simulate( "change", this, event, true ); - }); - } - return false; - } - // Delegated event; lazy-add a change handler on descendant inputs - jQuery.event.add( this, "beforeactivate._change", function( e ) { - var elem = e.target; - - if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", true ); - } - }); - }, - - handle: function( event ) { - var elem = event.target; - - // Swallow native change events from checkbox/radio, we already triggered them above - if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { - return event.handleObj.handler.apply( this, arguments ); - } - }, - - teardown: function() { - jQuery.event.remove( this, "._change" ); - - return !rformElems.test( this.nodeName ); - } - }; -} - -// Create "bubbling" focus and blur events -if ( !jQuery.support.focusinBubbles ) { - jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler while someone wants focusin/focusout - var attaches = 0, - handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - if ( attaches++ === 0 ) { - document.addEventListener( orig, handler, true ); - } - }, - teardown: function() { - if ( --attaches === 0 ) { - document.removeEventListener( orig, handler, true ); - } - } - }; - }); -} - -jQuery.fn.extend({ - - on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var type, origFn; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - this.on( type, selector, data, types[ type ], one ); - } - return this; - } - - if ( data == null && fn == null ) { - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return this; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return this.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - }); - }, - one: function( types, selector, data, fn ) { - return this.on( types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each(function() { - jQuery.event.remove( this, types, fn, selector ); - }); - }, - - trigger: function( type, data ) { - return this.each(function() { - jQuery.event.trigger( type, data, this ); - }); - }, - triggerHandler: function( type, data ) { - var elem = this[0]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -}); -var isSimple = /^.[^:#\[\.,]*$/, - rparentsprev = /^(?:parents|prev(?:Until|All))/, - rneedsContext = jQuery.expr.match.needsContext, - // methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend({ - find: function( selector ) { - var i, - ret = [], - self = this, - len = self.length; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = this.selector ? this.selector + " " + selector : selector; - return ret; - }, - - has: function( target ) { - var i, - targets = jQuery( target, this ), - len = targets.length; - - return this.filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( this, targets[i] ) ) { - return true; - } - } - }); - }, - - not: function( selector ) { - return this.pushStack( winnow(this, selector || [], true) ); - }, - - filter: function( selector ) { - return this.pushStack( winnow(this, selector || [], false) ); - }, - - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - ret = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; - - for ( ; i < l; i++ ) { - for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { - // Always skip document fragments - if ( cur.nodeType < 11 && (pos ? - pos.index(cur) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector(cur, selectors)) ) { - - cur = ret.push( cur ); - break; - } - } - } - - return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; - } - - // index in selector - if ( typeof elem === "string" ) { - return jQuery.inArray( this[0], jQuery( elem ) ); - } - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem, this ); - }, - - add: function( selector, context ) { - var set = typeof selector === "string" ? - jQuery( selector, context ) : - jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), - all = jQuery.merge( this.get(), set ); - - return this.pushStack( jQuery.unique(all) ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter(selector) - ); - } -}); - -function sibling( cur, dir ) { - do { - cur = cur[ dir ]; - } while ( cur && cur.nodeType !== 1 ); - - return cur; -} - -jQuery.each({ - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return jQuery.dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return jQuery.dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return jQuery.dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return jQuery.dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return jQuery.sibling( elem.firstChild ); - }, - contents: function( elem ) { - return jQuery.nodeName( elem, "iframe" ) ? - elem.contentDocument || elem.contentWindow.document : - jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); - } - - if ( this.length > 1 ) { - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - ret = jQuery.unique( ret ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - } - - return this.pushStack( ret ); - }; -}); - -jQuery.extend({ - filter: function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 && elem.nodeType === 1 ? - jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : - jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - })); - }, - - dir: function( elem, dir, until ) { - var matched = [], - cur = elem[ dir ]; - - while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { - if ( cur.nodeType === 1 ) { - matched.push( cur ); - } - cur = cur[dir]; - } - return matched; - }, - - sibling: function( n, elem ) { - var r = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - r.push( n ); - } - } - - return r; - } -}); - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - /* jshint -W018 */ - return !!qualifier.call( elem, i, elem ) !== not; - }); - - } - - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - }); - - } - - if ( typeof qualifier === "string" ) { - if ( isSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); - } - - return jQuery.grep( elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; - }); -} -function createSafeFragment( document ) { - var list = nodeNames.split( "|" ), - safeFrag = document.createDocumentFragment(); - - if ( safeFrag.createElement ) { - while ( list.length ) { - safeFrag.createElement( - list.pop() - ); - } - } - return safeFrag; -} - -var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + - "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", - rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
", "
" ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
" ], - tr: [ 2, "", "
" ], - col: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, - // unless wrapped in a div with non-breaking characters in front of it. - _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -jQuery.fn.extend({ - text: function( value ) { - return jQuery.access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); - }, null, value, arguments.length ); - }, - - append: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - // keepData is for internal use only--do not document - remove: function( selector, keepData ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - empty: function() { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - } - - // Remove any remaining nodes - while ( elem.firstChild ) { - elem.removeChild( elem.firstChild ); - } - - // If this is a select, ensure that it displays empty (#12336) - // Support: IE<9 - if ( elem.options && jQuery.nodeName( elem, "select" ) ) { - elem.options.length = 0; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function () { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - }); - }, - - html: function( value ) { - return jQuery.access( this, function( value ) { - var elem = this[0] || {}, - i = 0, - l = this.length; - - if ( value === undefined ) { - return elem.nodeType === 1 ? - elem.innerHTML.replace( rinlinejQuery, "" ) : - undefined; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && - !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>" ); - - try { - for (; i < l; i++ ) { - // Remove element nodes and prevent memory leaks - elem = this[i] || {}; - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch(e) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var - // Snapshot the DOM in case .domManip sweeps something relevant into its fragment - args = jQuery.map( this, function( elem ) { - return [ elem.nextSibling, elem.parentNode ]; - }), - i = 0; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - var next = args[ i++ ], - parent = args[ i++ ]; - - if ( parent ) { - // Don't use the snapshot next if it has moved (#13810) - if ( next && next.parentNode !== parent ) { - next = this.nextSibling; - } - jQuery( this ).remove(); - parent.insertBefore( elem, next ); - } - // Allow new content to include elements from the context set - }, true ); - - // Force removal if there was no new content (e.g., from empty arguments) - return i ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback, allowIntersection ) { - - // Flatten any nested arrays - args = core_concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - iNoClone = l - 1, - value = args[0], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, self.html() ); - } - self.domManip( args, callback, allowIntersection ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[i], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - - if ( node.src ) { - // Hope ajax is available... - jQuery._evalUrl( node.src ); - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -// Support: IE<8 -// Manipulating tables requires a tbody -function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? - - elem.getElementsByTagName("tbody")[0] || - elem.appendChild( elem.ownerDocument.createElement("tbody") ) : - elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - if ( match ) { - elem.type = match[1]; - } else { - elem.removeAttribute("type"); - } - return elem; -} - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var elem, - i = 0; - for ( ; (elem = elems[i]) != null; i++ ) { - jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); - } -} - -function cloneCopyEvent( src, dest ) { - - if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { - return; - } - - var type, i, l, - oldData = jQuery._data( src ), - curData = jQuery._data( dest, oldData ), - events = oldData.events; - - if ( events ) { - delete curData.handle; - curData.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - - // make the cloned public data object a copy from the original - if ( curData.data ) { - curData.data = jQuery.extend( {}, curData.data ); - } -} - -function fixCloneNodeIssues( src, dest ) { - var nodeName, e, data; - - // We do not need to do anything for non-Elements - if ( dest.nodeType !== 1 ) { - return; - } - - nodeName = dest.nodeName.toLowerCase(); - - // IE6-8 copies events bound via attachEvent when using cloneNode. - if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { - data = jQuery._data( dest ); - - for ( e in data.events ) { - jQuery.removeEvent( dest, e, data.handle ); - } - - // Event data gets referenced instead of copied if the expando gets copied too - dest.removeAttribute( jQuery.expando ); - } - - // IE blanks contents when cloning scripts, and tries to evaluate newly-set text - if ( nodeName === "script" && dest.text !== src.text ) { - disableScript( dest ).text = src.text; - restoreScript( dest ); - - // IE6-10 improperly clones children of object elements using classid. - // IE10 throws NoModificationAllowedError if parent is null, #12132. - } else if ( nodeName === "object" ) { - if ( dest.parentNode ) { - dest.outerHTML = src.outerHTML; - } - - // This path appears unavoidable for IE9. When cloning an object - // element in IE9, the outerHTML strategy above is not sufficient. - // If the src has innerHTML and the destination does not, - // copy the src.innerHTML into the dest.innerHTML. #10324 - if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { - // IE6-8 fails to persist the checked state of a cloned checkbox - // or radio button. Worse, IE6-7 fail to give the cloned element - // a checked appearance if the defaultChecked value isn't also set - - dest.defaultChecked = dest.checked = src.checked; - - // IE6-7 get confused and end up setting the value of a cloned - // checkbox/radio button to an empty string instead of "on" - if ( dest.value !== src.value ) { - dest.value = src.value; - } - - // IE6-8 fails to return the selected option to the default selected - // state when cloning options - } else if ( nodeName === "option" ) { - dest.defaultSelected = dest.selected = src.defaultSelected; - - // IE6-8 fails to set the defaultValue to the correct value when - // cloning other types of input fields - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -jQuery.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - i = 0, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone(true); - jQuery( insert[i] )[ original ]( elems ); - - // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() - core_push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - -function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : - undefined; - - if ( !found ) { - for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { - if ( !tag || jQuery.nodeName( elem, tag ) ) { - found.push( elem ); - } else { - jQuery.merge( found, getAll( elem, tag ) ); - } - } - } - - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], found ) : - found; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( manipulation_rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { - clone = elem.cloneNode( true ); - - // IE<=8 does not properly clone detached, unknown element nodes - } else { - fragmentDiv.innerHTML = elem.outerHTML; - fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); - } - - if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && - (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - // Fix all IE cloning issues - for ( i = 0; (node = srcElements[i]) != null; ++i ) { - // Ensure that the destination node is not null; Fixes #9587 - if ( destElements[i] ) { - fixCloneNodeIssues( node, destElements[i] ); - } - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0; (node = srcElements[i]) != null; i++ ) { - cloneCopyEvent( node, destElements[i] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - destElements = srcElements = node = null; - - // Return the cloned set - return clone; - }, - - buildFragment: function( elems, context, scripts, selection ) { - var j, elem, contains, - tmp, tag, tbody, wrap, - l = elems.length, - - // Ensure a safe fragment - safe = createSafeFragment( context ), - - nodes = [], - i = 0; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || safe.appendChild( context.createElement("div") ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - - tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; - - // Descend through wrappers to the right content - j = wrap[0]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Manually add leading whitespace removed by IE - if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - - // Remove IE's autoinserted from table fragments - if ( !jQuery.support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
" && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { - elem.removeChild( tbody ); - } - } - } - - jQuery.merge( nodes, tmp.childNodes ); - - // Fix #12392 for WebKit and IE > 9 - tmp.textContent = ""; - - // Fix #12392 for oldIE - while ( tmp.firstChild ) { - tmp.removeChild( tmp.firstChild ); - } - - // Remember the top-level container for proper cleanup - tmp = safe.lastChild; - } - } - } - - // Fix #11356: Clear elements from fragment - if ( tmp ) { - safe.removeChild( tmp ); - } - - // Reset defaultChecked for any radios and checkboxes - // about to be appended to the DOM in IE 6/7 (#8060) - if ( !jQuery.support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( safe.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( (elem = tmp[ j++ ]) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - tmp = null; - - return safe; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = jQuery.support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( acceptData || jQuery.acceptData( elem ) ) { - - id = elem[ internalKey ]; - data = id && cache[ id ]; - - if ( data ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Remove cache only if it was not already removed by jQuery.event.remove - if ( cache[ id ] ) { - - delete cache[ id ]; - - // IE does not allow us to delete expando properties from nodes, - // nor does it have a removeAttribute function on Document nodes; - // we must handle all of these cases - if ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== core_strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - core_deletedIds.push( id ); - } - } - } - } - }, - - _evalUrl: function( url ) { - return jQuery.ajax({ - url: url, - type: "GET", - dataType: "script", - async: false, - global: false, - "throws": true - }); - } -}); -jQuery.fn.extend({ - wrapAll: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapAll( html.call(this, i) ); - }); - } - - if ( this[0] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); - - if ( this[0].parentNode ) { - wrap.insertBefore( this[0] ); - } - - wrap.map(function() { - var elem = this; - - while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { - elem = elem.firstChild; - } - - return elem; - }).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapInner( html.call(this, i) ); - }); - } - - return this.each(function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - }); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each(function(i) { - jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); - }); - }, - - unwrap: function() { - return this.parent().each(function() { - if ( !jQuery.nodeName( this, "body" ) ) { - jQuery( this ).replaceWith( this.childNodes ); - } - }).end(); - } -}); -var iframe, getStyles, curCSS, - ralpha = /alpha\([^)]*\)/i, - ropacity = /opacity\s*=\s*([^)]*)/, - rposition = /^(top|right|bottom|left)$/, - // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" - // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rmargin = /^margin/, - rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), - rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), - rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), - elemdisplay = { BODY: "block" }, - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: 0, - fontWeight: 400 - }, - - cssExpand = [ "Top", "Right", "Bottom", "Left" ], - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // check for vendor prefixed names - var capName = name.charAt(0).toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -function isHidden( elem, el ) { - // isHidden might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); -} - -function showHide( elements, show ) { - var display, elem, hidden, - values = [], - index = 0, - length = elements.length; - - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - values[ index ] = jQuery._data( elem, "olddisplay" ); - display = elem.style.display; - if ( show ) { - // Reset the inline display of this element to learn if it is - // being hidden by cascaded rules or not - if ( !values[ index ] && display === "none" ) { - elem.style.display = ""; - } - - // Set elements which have been overridden with display: none - // in a stylesheet to whatever the default browser style is - // for such an element - if ( elem.style.display === "" && isHidden( elem ) ) { - values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); - } - } else { - - if ( !values[ index ] ) { - hidden = isHidden( elem ); - - if ( display && display !== "none" || !hidden ) { - jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); - } - } - } - } - - // Set the display of most of the elements in a second loop - // to avoid the constant reflow - for ( index = 0; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - if ( !show || elem.style.display === "none" || elem.style.display === "" ) { - elem.style.display = show ? values[ index ] || "" : "none"; - } - } - - return elements; -} - -jQuery.fn.extend({ - css: function( name, value ) { - return jQuery.access( this, function( elem, name, value ) { - var len, styles, - map = {}, - i = 0; - - if ( jQuery.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - }, - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each(function() { - if ( isHidden( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - }); - } -}); - -jQuery.extend({ - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "columnCount": true, - "fillOpacity": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - // normalize float css property - "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - style = elem.style; - - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // convert relative number strings (+= or -=) to relative numbers. #7345 - if ( type === "string" && (ret = rrelNum.exec( value )) ) { - value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); - // Fixes bug #9237 - type = "number"; - } - - // Make sure that NaN and null values aren't set. See: #7116 - if ( value == null || type === "number" && isNaN( value ) ) { - return; - } - - // If a number was passed in, add 'px' to the (except for certain CSS properties) - if ( type === "number" && !jQuery.cssNumber[ origName ] ) { - value += "px"; - } - - // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, - // but it would mean to define eight (for every problematic property) identical functions - if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { - - // Wrapped to prevent IE from throwing errors when 'invalid' values are provided - // Fixes bug #5509 - try { - style[ name ] = value; - } catch(e) {} - } - - } else { - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var num, val, hooks, - origName = jQuery.camelCase( name ); - - // Make sure that we're working with the right name - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - //convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Return, converting to number if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; - } - return val; - } -}); - -// NOTE: we've included the "window" in window.getComputedStyle -// because jsdom on node.js will break without it. -if ( window.getComputedStyle ) { - getStyles = function( elem ) { - return window.getComputedStyle( elem, null ); - }; - - curCSS = function( elem, name, _computed ) { - var width, minWidth, maxWidth, - computed = _computed || getStyles( elem ), - - // getPropertyValue is only needed for .css('filter') in IE9, see #12537 - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, - style = elem.style; - - if ( computed ) { - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right - // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels - // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values - if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret; - }; -} else if ( document.documentElement.currentStyle ) { - getStyles = function( elem ) { - return elem.currentStyle; - }; - - curCSS = function( elem, name, _computed ) { - var left, rs, rsLeft, - computed = _computed || getStyles( elem ), - ret = computed ? computed[ name ] : undefined, - style = elem.style; - - // Avoid setting ret to empty string here - // so we don't default to auto - if ( ret == null && style && style[ name ] ) { - ret = style[ name ]; - } - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // but not position css attributes, as those are proportional to the parent element instead - // and we can't measure the parent instead because it might trigger a "stacking dolls" problem - if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { - - // Remember the original values - left = style.left; - rs = elem.runtimeStyle; - rsLeft = rs && rs.left; - - // Put in the new values to get a computed value out - if ( rsLeft ) { - rs.left = elem.currentStyle.left; - } - style.left = name === "fontSize" ? "1em" : ret; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - if ( rsLeft ) { - rs.left = rsLeft; - } - } - - return ret === "" ? "auto" : ret; - }; -} - -function setPositiveNumber( elem, value, subtract ) { - var matches = rnumsplit.exec( value ); - return matches ? - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i = extra === ( isBorderBox ? "border" : "content" ) ? - // If we already have the right measurement, avoid augmentation - 4 : - // Otherwise initialize for horizontal or vertical properties - name === "width" ? 1 : 0, - - val = 0; - - for ( ; i < 4; i += 2 ) { - // both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // at this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - // at this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // at this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with offset property, which is equivalent to the border-box value - var valueIsBorderBox = true, - val = name === "width" ? elem.offsetWidth : elem.offsetHeight, - styles = getStyles( elem ), - isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // some non-html elements return undefined for offsetWidth, so check for null/undefined - // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 - // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 - if ( val <= 0 || val == null ) { - // Fall back to computed then uncomputed css if necessary - val = curCSS( elem, name, styles ); - if ( val < 0 || val == null ) { - val = elem.style[ name ]; - } - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test(val) ) { - return val; - } - - // we need the check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - } - - // use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -// Try to determine the default display value of an element -function css_defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - // Use the already-created iframe if possible - iframe = ( iframe || - jQuery(" - - - - diff --git a/Docs/reference/themes/mongodb/layouts/partials/assets/css.html b/Docs/reference/themes/mongodb/layouts/partials/assets/css.html deleted file mode 100644 index 09355f38c9d..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/assets/css.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - -{{ partial "assets/cssExtras.html" . }} diff --git a/Docs/reference/themes/mongodb/layouts/partials/assets/cssExtras.html b/Docs/reference/themes/mongodb/layouts/partials/assets/cssExtras.html deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Docs/reference/themes/mongodb/layouts/partials/assets/javascriptExtras.html b/Docs/reference/themes/mongodb/layouts/partials/assets/javascriptExtras.html deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Docs/reference/themes/mongodb/layouts/partials/assets/javascripts.html b/Docs/reference/themes/mongodb/layouts/partials/assets/javascripts.html deleted file mode 100644 index a92a14f8b0c..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/assets/javascripts.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - -{{ partial "assets/javascriptExtras.html" . }} diff --git a/Docs/reference/themes/mongodb/layouts/partials/footer.html b/Docs/reference/themes/mongodb/layouts/partials/footer.html deleted file mode 100644 index e0621527d84..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/footer.html +++ /dev/null @@ -1,38 +0,0 @@ -{{ if .IsPage }} - -{{ $menuPrev := $.Scratch.Get "menu.Prev"}} -{{ $menuNext := $.Scratch.Get "menu.Next"}} - -
- {{ with $menuPrev }} - - {{ end }} - {{ with $menuNext }} -
- - {{ end }} -
-
-{{ end }} - - -{{ partial "rightColumn.html" . }} - - - - - - - - - -{{ partial "assets/javascripts.html" . }} -{{ partial "assets/analytics.html" . }} - - diff --git a/Docs/reference/themes/mongodb/layouts/partials/header.html b/Docs/reference/themes/mongodb/layouts/partials/header.html deleted file mode 100644 index f1edfbd0f2e..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/header.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - {{ partial "meta.html"}} - - - {{.Title}} - - {{ partial "assets/css.html" . }} - - - - -
- - {{ partial "header/main.html" . }} - - - {{ partial "menu.html" . }} - - -
-
-
-
-
-
diff --git a/Docs/reference/themes/mongodb/layouts/partials/header/contentHeader.html b/Docs/reference/themes/mongodb/layouts/partials/header/contentHeader.html deleted file mode 100644 index b3a57f7b93a..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/header/contentHeader.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ if .IsPage }} -{{ $File := .File }} {{with $File.LogicalName }} {{ $srcref := add (add "docs/reference/content/" $File.Dir) $File.LogicalName }} - -{{end}} -{{end}} -{{ $menuItemL6 := $.Scratch.Get "menu.Item.L6"}} -{{ $menuItemL5 := $.Scratch.Get "menu.Item.L5"}} -{{ $menuItemL4 := $.Scratch.Get "menu.Item.L4"}} -{{ $menuItemL3 := $.Scratch.Get "menu.Item.L3"}} -{{ $menuItemL2 := $.Scratch.Get "menu.Item.L2"}} -{{ $menuItemL1 := $.Scratch.Get "menu.Item.L1"}} -{{ $menuItemL0 := $.Scratch.Get "menu.Item.L0"}} -{{if $menuItemL0}} -
- -
-{{ end }} diff --git a/Docs/reference/themes/mongodb/layouts/partials/header/main.html b/Docs/reference/themes/mongodb/layouts/partials/header/main.html deleted file mode 100644 index 11c373e0ff4..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/header/main.html +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/Docs/reference/themes/mongodb/layouts/partials/header/search.html b/Docs/reference/themes/mongodb/layouts/partials/header/search.html deleted file mode 100644 index 2570e110f7b..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/header/search.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/Docs/reference/themes/mongodb/layouts/partials/header/topRight.html b/Docs/reference/themes/mongodb/layouts/partials/header/topRight.html deleted file mode 100644 index d44cfc09439..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/header/topRight.html +++ /dev/null @@ -1,10 +0,0 @@ -
- -
diff --git a/Docs/reference/themes/mongodb/layouts/partials/menu.html b/Docs/reference/themes/mongodb/layouts/partials/menu.html deleted file mode 100644 index c98f682d30e..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/menu.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -{{ partial "menu/options.html" . }} diff --git a/Docs/reference/themes/mongodb/layouts/partials/menu/currentItem.html b/Docs/reference/themes/mongodb/layouts/partials/menu/currentItem.html deleted file mode 100644 index 4c578944175..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/menu/currentItem.html +++ /dev/null @@ -1,75 +0,0 @@ -{{ $currentNode := . }} -{{ $menuItemL6 := $.Scratch.Get "menu.Item.L6"}} -{{ $menuItemL5 := $.Scratch.Get "menu.Item.L5"}} -{{ $menuItemL4 := $.Scratch.Get "menu.Item.L4"}} -{{ $menuItemL3 := $.Scratch.Get "menu.Item.L3"}} -{{ $menuItemL2 := $.Scratch.Get "menu.Item.L2"}} -{{ $menuItemL1 := $.Scratch.Get "menu.Item.L1"}} -{{ $menuItem := $.Scratch.Get "menu.Item"}} - -{{ if $currentNode.IsMenuCurrent "main" $menuItem }} - {{ $.Scratch.Set "menu.Found" true }} - {{ $.Scratch.Set "menu.Item.L6" false }} - {{ $.Scratch.Set "menu.Item.L5" false }} - {{ $.Scratch.Set "menu.Item.L4" false }} - {{ $.Scratch.Set "menu.Item.L3" false }} - {{ $.Scratch.Set "menu.Item.L2" false }} - {{ $.Scratch.Set "menu.Item.L1" false }} - {{ $.Scratch.Set "menu.Item.L0" $menuItem }} - - {{ if $menuItemL1 }} - {{ if eq $menuItemL1.Identifier $menuItem.Parent }} - {{ $.Scratch.Set "menu.Item.L1" $menuItemL1 }} - {{ if $menuItemL2 }} - {{ if eq $menuItemL2.Identifier $menuItemL1.Parent }} - {{ $.Scratch.Set "menu.Item.L2" $menuItemL2 }} - {{ if $menuItemL3 }} - {{ if eq $menuItemL3.Identifier $menuItemL2.Parent }} - {{ $.Scratch.Set "menu.Item.L3" $menuItemL3 }} - {{ if $menuItemL4 }} - {{ if eq $menuItemL4.Identifier $menuItemL3.Parent }} - {{ $.Scratch.Set "menu.Item.L4" $menuItemL4 }} - {{ if $menuItemL5 }} - {{ if eq $menuItemL5.Identifier $menuItemL4.Parent }} - {{ $.Scratch.Set "menu.Item.L5" $menuItemL5 }} - {{ if $menuItemL6 }} - {{ if eq $menuItemL6.Identifier $menuItemL5.Parent }} - {{ $.Scratch.Set "menu.Item.L6" $menuItemL6 }} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} -{{ else }} - {{ if $menuItem.HasChildren }} - {{$found := $.Scratch.Get "menu.Found" }} - {{ range $menuItem.Children }} - {{ $.Scratch.Set "menu.Item" . }} - {{if eq ($.Scratch.Get "menu.Found") false }} - {{ $.Scratch.Set "menu.Item.L6" $menuItemL5}} - {{ $.Scratch.Set "menu.Item.L5" $menuItemL4}} - {{ $.Scratch.Set "menu.Item.L4" $menuItemL3}} - {{ $.Scratch.Set "menu.Item.L3" $menuItemL2}} - {{ $.Scratch.Set "menu.Item.L2" $menuItemL1}} - {{ $.Scratch.Set "menu.Item.L1" $menuItem}} - {{ $.Scratch.Set "menu.Item" . }} - {{ partial "menu/currentItem.html" $currentNode }} - {{if eq ($.Scratch.Get "menu.Found") false }} - {{ $.Scratch.Set "menu.Prev" . }} - {{ end }} - {{ else if and (eq $found false) (eq ($.Scratch.Get "menu.Next") false) }} - {{ $.Scratch.Set "menu.Next" . }} - {{ end }} - {{ end }} - {{if eq ($.Scratch.Get "menu.Found") false }} - {{ $.Scratch.Set "menu.Prev" false }} - {{ end }} - {{ end }} -{{ end }} diff --git a/Docs/reference/themes/mongodb/layouts/partials/menu/footer.html b/Docs/reference/themes/mongodb/layouts/partials/menu/footer.html deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Docs/reference/themes/mongodb/layouts/partials/menu/item.html b/Docs/reference/themes/mongodb/layouts/partials/menu/item.html deleted file mode 100644 index 2ddbe0a7ba0..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/menu/item.html +++ /dev/null @@ -1,54 +0,0 @@ -{{ $currentNode := . }} -{{ $menuItem := $.Scratch.Get "menu.Item"}} -{{ $menuNodeLevel := $.Scratch.Get "menu.NodeLevel"}} - -{{ $menuItemL6 := $.Scratch.Get "menu.Item.L6"}} -{{ $menuItemL5 := $.Scratch.Get "menu.Item.L5"}} -{{ $menuItemL4 := $.Scratch.Get "menu.Item.L4"}} -{{ $menuItemL3 := $.Scratch.Get "menu.Item.L3"}} -{{ $menuItemL2 := $.Scratch.Get "menu.Item.L2"}} -{{ $menuItemL1 := $.Scratch.Get "menu.Item.L1"}} -{{ $menuItemL0 := $.Scratch.Get "menu.Item.L0"}} - -{{$.Scratch.Set "menu.isCurrent" false}} -{{if eq $menuItem $menuItemL0 }} - {{$.Scratch.Set "menu.isCurrent" true}} -{{else if eq $menuItem $menuItemL1 }} - {{$.Scratch.Set "menu.isCurrent" true}} -{{else if eq $menuItem $menuItemL2 }} - {{$.Scratch.Set "menu.isCurrent" true}} -{{else if eq $menuItem $menuItemL3 }} - {{$.Scratch.Set "menu.isCurrent" true}} -{{else if eq $menuItem $menuItemL4 }} - {{$.Scratch.Set "menu.isCurrent" true}} -{{else if eq $menuItem $menuItemL5 }} - {{$.Scratch.Set "menu.isCurrent" true}} -{{else if eq $menuItem $menuItemL6 }} - {{$.Scratch.Set "menu.isCurrent" true}} -{{end}} -{{ $isCurrent := $.Scratch.Get "menu.isCurrent"}} - -{{ if $menuItem.HasChildren }} -
  • - - {{ $menuItem.Pre }} - {{ $menuItem.Name }} - {{if lt $menuNodeLevel 2}}{{end}} - -
      - {{ range $menuItem.Children }} - {{ $menuItem := $.Scratch.Set "menu.Item" . }} - {{ $menuNodeLevel := $.Scratch.Add "menu.NodeLevel" 1}} - {{ partial "menu/item.html" $currentNode }} - {{ $menuNodeLevel := $.Scratch.Add "menu.NodeLevel" -1}} - {{ end }} -
    -
  • -{{else}} -
  • - - {{ $menuItem.Pre }} - {{ $menuItem.Name }} - -
  • -{{end}} diff --git a/Docs/reference/themes/mongodb/layouts/partials/menu/options.html b/Docs/reference/themes/mongodb/layouts/partials/menu/options.html deleted file mode 100644 index fa7a3a02309..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/menu/options.html +++ /dev/null @@ -1,28 +0,0 @@ - diff --git a/Docs/reference/themes/mongodb/layouts/partials/meta.html b/Docs/reference/themes/mongodb/layouts/partials/meta.html deleted file mode 100644 index 408b03e3337..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/meta.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/Docs/reference/themes/mongodb/layouts/partials/rightColumn.html b/Docs/reference/themes/mongodb/layouts/partials/rightColumn.html deleted file mode 100644 index 52e86a5221a..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/rightColumn.html +++ /dev/null @@ -1,10 +0,0 @@ -
    -
    - {{ if .IsPage }} -
    - On this page - {{ .TableOfContents}} -
    - {{ end }} -
    -
    diff --git a/Docs/reference/themes/mongodb/layouts/partials/welcome.html b/Docs/reference/themes/mongodb/layouts/partials/welcome.html deleted file mode 100644 index 0eccdb42a93..00000000000 --- a/Docs/reference/themes/mongodb/layouts/partials/welcome.html +++ /dev/null @@ -1,32 +0,0 @@ -

    Welcome to the hugo mongodb docs theme.

    - -

    You have two choices when it comes to managing this front page.

    - -

    1. Markdown:

    - -

    First create your own index page in content: hugo new ./content/index.md

    - -

    Set a type in the “front matter” to index eg:

    - -
    +++
    -date = "2015-03-17T15:36:56Z"
    -draft = false
    -title = "index"
    -type = "index"
    -+++
    -
    -## Add your markdown content to your frontpage.
    -
    -Hello welcome to my driver docs
    -
    - -

    2. HTML

    - -

    Create your own layouts\index.html eg:

    - -
    {{ partial "header.html" . }}
    -
    -<h2>Add your HTML content to your frontpage.</h2>
    -
    -{{ partial "footer.html" . }}
    -
    diff --git a/Docs/reference/themes/mongodb/layouts/shortcodes/docsref.html b/Docs/reference/themes/mongodb/layouts/shortcodes/docsref.html deleted file mode 100644 index dcabaea3318..00000000000 --- a/Docs/reference/themes/mongodb/layouts/shortcodes/docsref.html +++ /dev/null @@ -1 +0,0 @@ -https://www.mongodb.com/docs/manual/{{ .Get 0 }} diff --git a/Docs/reference/themes/mongodb/layouts/shortcodes/note.html b/Docs/reference/themes/mongodb/layouts/shortcodes/note.html deleted file mode 100644 index 0988a049a3b..00000000000 --- a/Docs/reference/themes/mongodb/layouts/shortcodes/note.html +++ /dev/null @@ -1,4 +0,0 @@ -
    -
    {{if .Get "class"}}{{.Get "class"}}{{else}}Note{{end}}
    -{{ .Inner }} -
    diff --git a/Docs/reference/themes/mongodb/layouts/shortcodes/srcref.html b/Docs/reference/themes/mongodb/layouts/shortcodes/srcref.html deleted file mode 100644 index 1f7dfc14567..00000000000 --- a/Docs/reference/themes/mongodb/layouts/shortcodes/srcref.html +++ /dev/null @@ -1 +0,0 @@ -https://github.com/mongodb/{{ .Page.Site.Data.mongodb.githubRepo }}/blob/{{ .Page.Site.Data.mongodb.githubBranch }}/{{ if eq (in (.Get 0) "src/") false }}src/{{ end }}{{ .Get 0 }} diff --git a/Docs/reference/themes/mongodb/layouts/shortcodes/testref.html b/Docs/reference/themes/mongodb/layouts/shortcodes/testref.html deleted file mode 100644 index 9de5345b008..00000000000 --- a/Docs/reference/themes/mongodb/layouts/shortcodes/testref.html +++ /dev/null @@ -1 +0,0 @@ -https://github.com/mongodb/{{ .Page.Site.Data.mongodb.githubRepo }}/blob/{{ .Page.Site.Data.mongodb.githubBranch }}/{{ if eq (in (.Get 0) "tests/") false }}tests/{{ end }}{{ .Get 0 }} diff --git a/Docs/reference/themes/mongodb/static/.nojekyll b/Docs/reference/themes/mongodb/static/.nojekyll deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Docs/reference/themes/mongodb/static/apple-touch-icon.png b/Docs/reference/themes/mongodb/static/apple-touch-icon.png deleted file mode 100644 index 9f98bad32ca77dafd1ddd8fd9ad7c80644ecfa3f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 34974 zcmY(pW0Yn=lP&y|ZQHhO+w8LKF59+k+qP}n>T-3t>h?P`-+cF;wQ`+^I6GrU2CVj#IhWe>7)h31L9(EbhfW12BB&t&KPKWY6-kl{aH7?|i88UEMz zzp1?cv2rUoS(^T1{*QltCf@%-{y(<=;o)WY5BdKU%ztP4U)F!A@=|eiPm|e4Y~=7G*6Y=U%%CM z$R59bxR5eD>~|_VIUdzlYAz!yvyiYH4@HL~oaL_*MyoT`psSS)Qh=*aHB0)b!RQ5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d&Ww&RB6@)YHvKf?GjjZ%UI1FzfFtB zC+mK_H!}`kGfxx(%B(q70RihmAP>WoG>L|y^_Y^piZ%Ub0~O{xU$u+vNo;&#+nkd5 z6mS3_^T+6vEu_Gu3fsa}voDXkV|QXMa79j6Z|_i3lzaKHVvx@M0=OL!w~wVrw-5Uj z;MuPiBfbLLb)T-B@cimz!&dAI}s|<+XVbA$<4E)aZQKpu%SMUFzmU)D7J-{XJkw*oQyYT7~IQ9o9A((ED5hb*H&3ns|2);rB@NdcUV zgNZ?69v-NkmgCy(x)8H~sZi8+V#lF}K7z#dU**tK4^RppVvp541oDUxGD5Mqwpf?= zOZ7+n>lc4zaftUNOnrqSEh~0DXD0<50Lad9J9Dd{p=~<8x0I&(f|Xae1Cv(rs3KJsy*q12EFxcn*nbt%{4ux%LLJ|Lnfz}72`^Pv zEUQi4OW+7xv69(}9KlZ##d&uqkZlwo5YT*Y+3rQFXWf8v4X a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink { - visibility: visible; -} - -div.body p.caption { - text-align: inherit; -} - -div.body td { - text-align: left; -} - -.field-list ul { - padding-left: 1em; -} - -.first { - margin-top: 0 !important; -} - -p.rubric { - margin-top: 30px; - font-weight: bold; -} - -img.align-left, .figure.align-left, object.align-left { - clear: left; - float: left; - margin-right: 1em; -} - -img.align-right, .figure.align-right, object.align-right { - clear: right; - float: right; - margin-left: 1em; -} - -img.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left; -} - -.align-center { - text-align: center; -} - -.align-right { - text-align: right; -} - -/* -- sidebars -------------------------------------------------------------- */ - -div.sidebar { - margin: 0 0 0.5em 1em; - border: 1px solid #ddb; - padding: 7px 7px 0 7px; - background-color: #ffe; - width: 40%; - float: right; -} - -p.sidebar-title { - font-weight: bold; -} - -/* -- topics ---------------------------------------------------------------- */ - -div.topic { - border: 1px solid #ccc; - padding: 7px 7px 0 7px; - margin: 10px 0 10px 0; -} - -p.topic-title { - font-size: 1.1em; - font-weight: bold; - margin-top: 10px; -} - -/* -- admonitions ----------------------------------------------------------- */ - -div.admonition { - margin-top: 10px; - margin-bottom: 10px; - padding: 7px; -} - -div.admonition dt { - font-weight: bold; -} - -div.admonition dl { - margin-bottom: 0; -} - -p.admonition-title { - margin: 0px 10px 5px 0px; - font-weight: bold; -} - -div.body p.centered { - text-align: center; - margin-top: 25px; -} - -/* -- tables ---------------------------------------------------------------- */ - -table.docutils { - border: 0; - border-collapse: collapse; -} - -table.docutils td, table.docutils th { - padding: 1px 8px 1px 5px; - border-top: 0; - border-left: 0; - border-right: 0; - border-bottom: 1px solid #aaa; -} - -table.field-list td, table.field-list th { - border: 0 !important; -} - -table.footnote td, table.footnote th { - border: 0 !important; -} - -th { - text-align: left; - padding-right: 5px; -} - -table.citation { - border-left: solid 1px gray; - margin-left: 1px; -} - -table.citation td { - border-bottom: none; -} - -/* -- other body styles ----------------------------------------------------- */ - -ol.arabic { - list-style: decimal; -} - -ol.loweralpha { - list-style: lower-alpha; -} - -ol.upperalpha { - list-style: upper-alpha; -} - -ol.lowerroman { - list-style: lower-roman; -} - -ol.upperroman { - list-style: upper-roman; -} - -dl { - margin-bottom: 15px; -} - -dd p { - margin-top: 0px; -} - -dd ul, dd table { - margin-bottom: 10px; -} - -dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 30px; -} - -dt:target, .highlighted { - background-color: #fbe54e; -} - -dl.glossary dt { - font-weight: bold; - font-size: 1.1em; -} - -.field-list ul { - margin: 0; - padding-left: 1em; -} - -.field-list p { - margin: 0; -} - -.refcount { - color: #060; -} - -.optional { - font-size: 1.3em; -} - -.versionmodified { - font-style: italic; -} - -.system-message { - background-color: #fda; - padding: 5px; - border: 3px solid red; -} - -.footnote:target { - background-color: #ffa; -} - -.line-block { - display: block; - margin-top: 1em; - margin-bottom: 1em; -} - -.line-block .line-block { - margin-top: 0; - margin-bottom: 0; - margin-left: 1.5em; -} - -.guilabel, .menuselection { - font-family: sans-serif; -} - -.accelerator { - text-decoration: underline; -} - -.classifier { - font-style: oblique; -} - -abbr, acronym { - border-bottom: dotted 1px; - cursor: help; -} - -/* -- code displays --------------------------------------------------------- */ - -pre { - overflow: auto; - overflow-y: hidden; /* fixes display issues on Chrome browsers */ -} - -td.linenos pre { - padding: 5px 0px; - border: 0; - background-color: transparent; - color: #aaa; -} - -table.highlighttable { - margin-left: 0.5em; -} - -table.highlighttable td { - padding: 0 0.5em 0 0.5em; -} - -tt.descname { - background-color: transparent; - font-weight: bold; - font-size: 1.2em; -} - -tt.descclassname { - background-color: transparent; -} - -tt.xref, a tt { - background-color: transparent; - font-weight: bold; -} - -h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { - background-color: transparent; -} - -.viewcode-link { - float: right; -} - -.viewcode-back { - float: right; - font-family: sans-serif; -} - -div.viewcode-block:target { - margin: -1px -10px; - padding: 0 10px; -} - -/* -- math display ---------------------------------------------------------- */ - -img.math { - vertical-align: middle; -} - -div.body div.math p { - text-align: center; -} - -span.eqno { - float: right; -} - -/* -- printout stylesheet --------------------------------------------------- */ - -@media print { - div.document, - div.documentwrapper, - div.bodywrapper { - margin: 0 !important; - width: 100%; - } - - div.sphinxsidebar, - div.related, - div.footer, - #top-link { - display: none; - } -} \ No newline at end of file diff --git a/Docs/reference/themes/mongodb/static/css/bootstrap-custom.css b/Docs/reference/themes/mongodb/static/css/bootstrap-custom.css deleted file mode 100644 index ebd6d579158..00000000000 --- a/Docs/reference/themes/mongodb/static/css/bootstrap-custom.css +++ /dev/null @@ -1,5908 +0,0 @@ -/*! - * Bootstrap v3.0.0 - * - * Copyright 2013 Twitter, Inc - * Licensed under the Apache License v2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Designed and built with all the love in the world by @mdo and @fat. - */ -/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -nav, -section, -summary { - display: block; -} -audio, -canvas, -video { - display: inline-block; -} -audio:not([controls]) { - display: none; - height: 0; -} -[hidden] { - display: none; -} -html { - font-family: sans-serif; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} -body { - margin: 0; -} -a:focus { - outline: thin dotted; -} -a:active, -a:hover { - outline: 0; -} -h1 { - font-size: 2em; - margin: 0.67em 0; -} -abbr[title] { - border-bottom: 1px dotted; -} -b, -strong { - font-weight: bold; -} -dfn { - font-style: italic; -} -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} -mark { - background: #ff0; - color: #000; -} -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 1em; -} -pre { - white-space: pre-wrap; -} -q { - quotes: "\201C" "\201D" "\2018" "\2019"; -} -small { - font-size: 80%; -} -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} -sup { - top: -0.5em; -} -sub { - bottom: -0.25em; -} -img { - border: 0; -} -svg:not(:root) { - overflow: hidden; -} -figure { - margin: 0; -} -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} -legend { - border: 0; - padding: 0; -} -button, -input, -select, -textarea { - font-family: inherit; - font-size: 100%; - margin: 0; -} -button, -input { - line-height: normal; -} -button, -select { - text-transform: none; -} -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; -} -button[disabled], -html input[disabled] { - cursor: default; -} -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; - padding: 0; -} -input[type="search"] { - -webkit-appearance: textfield; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; - box-sizing: content-box; -} -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} -textarea { - overflow: auto; - vertical-align: top; -} -table { - border-collapse: collapse; - border-spacing: 0; -} -@media print { - * { - text-shadow: none !important; - color: #000 !important; - background: transparent !important; - box-shadow: none !important; - } - a, - a:visited { - text-decoration: underline; - } - a[href]:after { - content: " (" attr(href) ")"; - } - abbr[title]:after { - content: " (" attr(title) ")"; - } - .ir a:after, - a[href^="javascript:"]:after, - a[href^="#"]:after { - content: ""; - } - pre, - blockquote { - border: 1px solid #999; - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - img { - max-width: 100% !important; - } - @page { - margin: 2cm .5cm; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - h2, - h3 { - page-break-after: avoid; - } - .navbar { - display: none; - } - .table td, - .table th { - background-color: #fff !important; - } - .btn > .caret, - .dropup > .btn > .caret { - border-top-color: #000 !important; - } - .label { - border: 1px solid #000; - } - .table { - border-collapse: collapse !important; - } - .table-bordered th, - .table-bordered td { - border: 1px solid #ddd !important; - } -} -*, -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -html { - font-size: 62.5%; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} -body { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 14px; - line-height: 1.428571429; - color: #333333; - background-color: #ffffff; -} -input, -button, -select, -textarea { - font-family: inherit; - font-size: inherit; - line-height: inherit; -} -button, -input, -select[multiple], -textarea { - background-image: none; -} -a { - color: #428bca; - text-decoration: none; -} -a:hover, -a:focus { - color: #2a6496; - text-decoration: underline; -} -a:focus { - outline: thin dotted #333; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -img { - vertical-align: middle; -} -.img-responsive { - display: block; - max-width: 100%; - height: auto; -} -.img-rounded { - border-radius: 6px; -} -.img-thumbnail { - padding: 4px; - line-height: 1.428571429; - background-color: #ffffff; - border: 1px solid #dddddd; - border-radius: 4px; - -webkit-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; - display: inline-block; - max-width: 100%; - height: auto; -} -.img-circle { - border-radius: 50%; -} -hr { - margin-top: 20px; - margin-bottom: 20px; - border: 0; - border-top: 1px solid #eeeeee; -} -.sr-only { - position: absolute; - width: 1px; - height: 1px; - margin: -1px; - padding: 0; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; -} -p { - margin: 0 0 10px; -} -.lead { - margin-bottom: 20px; - font-size: 16.099999999999998px; - font-weight: 200; - line-height: 1.4; -} -@media (min-width: 768px) { - .lead { - font-size: 21px; - } -} -small { - font-size: 85%; -} -cite { - font-style: normal; -} -.text-muted { - color: #999999; -} -.text-primary { - color: #428bca; -} -.text-warning { - color: #c09853; -} -.text-danger { - color: #b94a48; -} -.text-success { - color: #468847; -} -.text-info { - color: #3a87ad; -} -.text-left { - text-align: left; -} -.text-right { - text-align: right; -} -.text-center { - text-align: center; -} -h1, -h2, -h3, -h4, -h5, -h6, -.h1, -.h2, -.h3, -.h4, -.h5, -.h6 { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-weight: 500; - line-height: 1.1; -} -h1 small, -h2 small, -h3 small, -h4 small, -h5 small, -h6 small, -.h1 small, -.h2 small, -.h3 small, -.h4 small, -.h5 small, -.h6 small { - font-weight: normal; - line-height: 1; - color: #999999; -} -h1, -h2, -h3 { - margin-top: 20px; - margin-bottom: 10px; -} -h4, -h5, -h6 { - margin-top: 10px; - margin-bottom: 10px; -} -h1, -.h1 { - font-size: 36px; -} -h2, -.h2 { - font-size: 30px; -} -h3, -.h3 { - font-size: 24px; -} -h4, -.h4 { - font-size: 18px; -} -h5, -.h5 { - font-size: 14px; -} -h6, -.h6 { - font-size: 12px; -} -h1 small, -.h1 small { - font-size: 24px; -} -h2 small, -.h2 small { - font-size: 18px; -} -h3 small, -.h3 small, -h4 small, -.h4 small { - font-size: 14px; -} -.page-header { - padding-bottom: 9px; - margin: 40px 0 20px; - border-bottom: 1px solid #eeeeee; -} -ul, -ol { - margin-top: 0; - margin-bottom: 10px; -} -ul ul, -ol ul, -ul ol, -ol ol { - margin-bottom: 0; -} -.list-unstyled { - padding-left: 0; - list-style: none; -} -.list-inline { - padding-left: 0; - list-style: none; -} -.list-inline > li { - display: inline-block; - padding-left: 5px; - padding-right: 5px; -} -dl { - margin-bottom: 20px; -} -dt, -dd { - line-height: 1.428571429; -} -dt { - font-weight: bold; -} -dd { - margin-left: 0; -} -@media (min-width: 992px) { - .dl-horizontal dt { - float: left; - width: 160px; - clear: left; - text-align: right; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - .dl-horizontal dd { - margin-left: 180px; - } - .dl-horizontal dd:before, - .dl-horizontal dd:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - - } - .dl-horizontal dd:after { - clear: both; - } - .dl-horizontal dd:before, - .dl-horizontal dd:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - - } - .dl-horizontal dd:after { - clear: both; - } -} -abbr[title], -abbr[data-original-title] { - cursor: help; - border-bottom: 1px dotted #999999; -} -abbr.initialism { - font-size: 90%; - text-transform: uppercase; -} -blockquote { - padding: 10px 20px; - margin: 0 0 20px; - border-left: 5px solid #eeeeee; -} -blockquote p { - font-size: 17.5px; - font-weight: 300; - line-height: 1.25; -} -blockquote p:last-child { - margin-bottom: 0; -} -blockquote small { - display: block; - line-height: 1.428571429; - color: #999999; -} -blockquote small:before { - content: '\2014 \00A0'; -} -blockquote.pull-right { - padding-right: 15px; - padding-left: 0; - border-right: 5px solid #eeeeee; - border-left: 0; -} -blockquote.pull-right p, -blockquote.pull-right small { - text-align: right; -} -blockquote.pull-right small:before { - content: ''; -} -blockquote.pull-right small:after { - content: '\00A0 \2014'; -} -q:before, -q:after, -blockquote:before, -blockquote:after { - content: ""; -} -address { - display: block; - margin-bottom: 20px; - font-style: normal; - line-height: 1.428571429; -} -code, -pre { - font-family: Monaco, Menlo, Consolas, "Courier New", monospace; -} -code { - padding: 2px 4px; - font-size: 90%; - color: #c7254e; - background-color: #f9f2f4; - white-space: nowrap; - border-radius: 4px; -} -pre { - display: block; - padding: 9.5px; - margin: 0 0 10px; - font-size: 13px; - line-height: 1.428571429; - word-break: break-all; - word-wrap: break-word; - color: #333333; - background-color: #f5f5f5; - border: 1px solid #cccccc; - border-radius: 4px; -} -pre.prettyprint { - margin-bottom: 20px; -} -pre code { - padding: 0; - font-size: inherit; - color: inherit; - white-space: pre-wrap; - background-color: transparent; - border: 0; -} -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} -.container { - margin-right: auto; - margin-left: auto; - padding-left: 15px; - padding-right: 15px; -} -.container:before, -.container:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.container:after { - clear: both; -} -.container:before, -.container:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.container:after { - clear: both; -} -.row { - margin-left: -15px; - margin-right: -15px; -} -.row:before, -.row:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.row:after { - clear: both; -} -.row:before, -.row:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.row:after { - clear: both; -} -.col-xs-1, -.col-xs-2, -.col-xs-3, -.col-xs-4, -.col-xs-5, -.col-xs-6, -.col-xs-7, -.col-xs-8, -.col-xs-9, -.col-xs-10, -.col-xs-11, -.col-xs-12, -.col-sm-1, -.col-sm-2, -.col-sm-3, -.col-sm-4, -.col-sm-5, -.col-sm-6, -.col-sm-7, -.col-sm-8, -.col-sm-9, -.col-sm-10, -.col-sm-11, -.col-sm-12, -.col-md-1, -.col-md-2, -.col-md-3, -.col-md-4, -.col-md-5, -.col-md-6, -.col-md-7, -.col-md-8, -.col-md-9, -.col-md-10, -.col-md-11, -.col-md-12, -.col-lg-1, -.col-lg-2, -.col-lg-3, -.col-lg-4, -.col-lg-5, -.col-lg-6, -.col-lg-7, -.col-lg-8, -.col-lg-9, -.col-lg-10, -.col-lg-11, -.col-lg-12 { - position: relative; - min-height: 1px; - padding-left: 15px; - padding-right: 15px; -} -.col-xs-1, -.col-xs-2, -.col-xs-3, -.col-xs-4, -.col-xs-5, -.col-xs-6, -.col-xs-7, -.col-xs-8, -.col-xs-9, -.col-xs-10, -.col-xs-11 { - float: left; -} -.col-xs-1 { - width: 8.333333333333332%; -} -.col-xs-2 { - width: 16.666666666666664%; -} -.col-xs-3 { - width: 25%; -} -.col-xs-4 { - width: 33.33333333333333%; -} -.col-xs-5 { - width: 41.66666666666667%; -} -.col-xs-6 { - width: 50%; -} -.col-xs-7 { - width: 58.333333333333336%; -} -.col-xs-8 { - width: 66.66666666666666%; -} -.col-xs-9 { - width: 75%; -} -.col-xs-10 { - width: 83.33333333333334%; -} -.col-xs-11 { - width: 91.66666666666666%; -} -.col-xs-12 { - width: 100%; -} -@media (min-width: 768px) { - .container { - max-width: 750px; - } - .col-sm-1, - .col-sm-2, - .col-sm-3, - .col-sm-4, - .col-sm-5, - .col-sm-6, - .col-sm-7, - .col-sm-8, - .col-sm-9, - .col-sm-10, - .col-sm-11 { - float: left; - } - .col-sm-1 { - width: 8.333333333333332%; - } - .col-sm-2 { - width: 16.666666666666664%; - } - .col-sm-3 { - width: 25%; - } - .col-sm-4 { - width: 33.33333333333333%; - } - .col-sm-5 { - width: 41.66666666666667%; - } - .col-sm-6 { - width: 50%; - } - .col-sm-7 { - width: 58.333333333333336%; - } - .col-sm-8 { - width: 66.66666666666666%; - } - .col-sm-9 { - width: 75%; - } - .col-sm-10 { - width: 83.33333333333334%; - } - .col-sm-11 { - width: 91.66666666666666%; - } - .col-sm-12 { - width: 100%; - } - .col-sm-push-1 { - left: 8.333333333333332%; - } - .col-sm-push-2 { - left: 16.666666666666664%; - } - .col-sm-push-3 { - left: 25%; - } - .col-sm-push-4 { - left: 33.33333333333333%; - } - .col-sm-push-5 { - left: 41.66666666666667%; - } - .col-sm-push-6 { - left: 50%; - } - .col-sm-push-7 { - left: 58.333333333333336%; - } - .col-sm-push-8 { - left: 66.66666666666666%; - } - .col-sm-push-9 { - left: 75%; - } - .col-sm-push-10 { - left: 83.33333333333334%; - } - .col-sm-push-11 { - left: 91.66666666666666%; - } - .col-sm-pull-1 { - right: 8.333333333333332%; - } - .col-sm-pull-2 { - right: 16.666666666666664%; - } - .col-sm-pull-3 { - right: 25%; - } - .col-sm-pull-4 { - right: 33.33333333333333%; - } - .col-sm-pull-5 { - right: 41.66666666666667%; - } - .col-sm-pull-6 { - right: 50%; - } - .col-sm-pull-7 { - right: 58.333333333333336%; - } - .col-sm-pull-8 { - right: 66.66666666666666%; - } - .col-sm-pull-9 { - right: 75%; - } - .col-sm-pull-10 { - right: 83.33333333333334%; - } - .col-sm-pull-11 { - right: 91.66666666666666%; - } - .col-sm-offset-1 { - margin-left: 8.333333333333332%; - } - .col-sm-offset-2 { - margin-left: 16.666666666666664%; - } - .col-sm-offset-3 { - margin-left: 25%; - } - .col-sm-offset-4 { - margin-left: 33.33333333333333%; - } - .col-sm-offset-5 { - margin-left: 41.66666666666667%; - } - .col-sm-offset-6 { - margin-left: 50%; - } - .col-sm-offset-7 { - margin-left: 58.333333333333336%; - } - .col-sm-offset-8 { - margin-left: 66.66666666666666%; - } - .col-sm-offset-9 { - margin-left: 75%; - } - .col-sm-offset-10 { - margin-left: 83.33333333333334%; - } - .col-sm-offset-11 { - margin-left: 91.66666666666666%; - } -} -@media (min-width: 992px) { - .container { - max-width: 970px; - } - .col-md-1, - .col-md-2, - .col-md-3, - .col-md-4, - .col-md-5, - .col-md-6, - .col-md-7, - .col-md-8, - .col-md-9, - .col-md-10, - .col-md-11 { - float: left; - } - .col-md-1 { - width: 8.333333333333332%; - } - .col-md-2 { - width: 16.666666666666664%; - } - .col-md-3 { - width: 25%; - } - .col-md-4 { - width: 33.33333333333333%; - } - .col-md-5 { - width: 41.66666666666667%; - } - .col-md-6 { - width: 50%; - } - .col-md-7 { - width: 58.333333333333336%; - } - .col-md-8 { - width: 66.66666666666666%; - } - .col-md-9 { - width: 75%; - } - .col-md-10 { - width: 83.33333333333334%; - } - .col-md-11 { - width: 91.66666666666666%; - } - .col-md-12 { - width: 100%; - } - .col-md-push-0 { - left: auto; - } - .col-md-push-1 { - left: 8.333333333333332%; - } - .col-md-push-2 { - left: 16.666666666666664%; - } - .col-md-push-3 { - left: 25%; - } - .col-md-push-4 { - left: 33.33333333333333%; - } - .col-md-push-5 { - left: 41.66666666666667%; - } - .col-md-push-6 { - left: 50%; - } - .col-md-push-7 { - left: 58.333333333333336%; - } - .col-md-push-8 { - left: 66.66666666666666%; - } - .col-md-push-9 { - left: 75%; - } - .col-md-push-10 { - left: 83.33333333333334%; - } - .col-md-push-11 { - left: 91.66666666666666%; - } - .col-md-pull-0 { - right: auto; - } - .col-md-pull-1 { - right: 8.333333333333332%; - } - .col-md-pull-2 { - right: 16.666666666666664%; - } - .col-md-pull-3 { - right: 25%; - } - .col-md-pull-4 { - right: 33.33333333333333%; - } - .col-md-pull-5 { - right: 41.66666666666667%; - } - .col-md-pull-6 { - right: 50%; - } - .col-md-pull-7 { - right: 58.333333333333336%; - } - .col-md-pull-8 { - right: 66.66666666666666%; - } - .col-md-pull-9 { - right: 75%; - } - .col-md-pull-10 { - right: 83.33333333333334%; - } - .col-md-pull-11 { - right: 91.66666666666666%; - } - .col-md-offset-0 { - margin-left: 0; - } - .col-md-offset-1 { - margin-left: 8.333333333333332%; - } - .col-md-offset-2 { - margin-left: 16.666666666666664%; - } - .col-md-offset-3 { - margin-left: 25%; - } - .col-md-offset-4 { - margin-left: 33.33333333333333%; - } - .col-md-offset-5 { - margin-left: 41.66666666666667%; - } - .col-md-offset-6 { - margin-left: 50%; - } - .col-md-offset-7 { - margin-left: 58.333333333333336%; - } - .col-md-offset-8 { - margin-left: 66.66666666666666%; - } - .col-md-offset-9 { - margin-left: 75%; - } - .col-md-offset-10 { - margin-left: 83.33333333333334%; - } - .col-md-offset-11 { - margin-left: 91.66666666666666%; - } -} -@media (min-width: 1200px) { - .container { - max-width: 1170px; - } - .col-lg-1, - .col-lg-2, - .col-lg-3, - .col-lg-4, - .col-lg-5, - .col-lg-6, - .col-lg-7, - .col-lg-8, - .col-lg-9, - .col-lg-10, - .col-lg-11 { - float: left; - } - .col-lg-1 { - width: 8.333333333333332%; - } - .col-lg-2 { - width: 16.666666666666664%; - } - .col-lg-3 { - width: 25%; - } - .col-lg-4 { - width: 33.33333333333333%; - } - .col-lg-5 { - width: 41.66666666666667%; - } - .col-lg-6 { - width: 50%; - } - .col-lg-7 { - width: 58.333333333333336%; - } - .col-lg-8 { - width: 66.66666666666666%; - } - .col-lg-9 { - width: 75%; - } - .col-lg-10 { - width: 83.33333333333334%; - } - .col-lg-11 { - width: 91.66666666666666%; - } - .col-lg-12 { - width: 100%; - } - .col-lg-push-0 { - left: auto; - } - .col-lg-push-1 { - left: 8.333333333333332%; - } - .col-lg-push-2 { - left: 16.666666666666664%; - } - .col-lg-push-3 { - left: 25%; - } - .col-lg-push-4 { - left: 33.33333333333333%; - } - .col-lg-push-5 { - left: 41.66666666666667%; - } - .col-lg-push-6 { - left: 50%; - } - .col-lg-push-7 { - left: 58.333333333333336%; - } - .col-lg-push-8 { - left: 66.66666666666666%; - } - .col-lg-push-9 { - left: 75%; - } - .col-lg-push-10 { - left: 83.33333333333334%; - } - .col-lg-push-11 { - left: 91.66666666666666%; - } - .col-lg-pull-0 { - right: auto; - } - .col-lg-pull-1 { - right: 8.333333333333332%; - } - .col-lg-pull-2 { - right: 16.666666666666664%; - } - .col-lg-pull-3 { - right: 25%; - } - .col-lg-pull-4 { - right: 33.33333333333333%; - } - .col-lg-pull-5 { - right: 41.66666666666667%; - } - .col-lg-pull-6 { - right: 50%; - } - .col-lg-pull-7 { - right: 58.333333333333336%; - } - .col-lg-pull-8 { - right: 66.66666666666666%; - } - .col-lg-pull-9 { - right: 75%; - } - .col-lg-pull-10 { - right: 83.33333333333334%; - } - .col-lg-pull-11 { - right: 91.66666666666666%; - } - .col-lg-offset-0 { - margin-left: 0; - } - .col-lg-offset-1 { - margin-left: 8.333333333333332%; - } - .col-lg-offset-2 { - margin-left: 16.666666666666664%; - } - .col-lg-offset-3 { - margin-left: 25%; - } - .col-lg-offset-4 { - margin-left: 33.33333333333333%; - } - .col-lg-offset-5 { - margin-left: 41.66666666666667%; - } - .col-lg-offset-6 { - margin-left: 50%; - } - .col-lg-offset-7 { - margin-left: 58.333333333333336%; - } - .col-lg-offset-8 { - margin-left: 66.66666666666666%; - } - .col-lg-offset-9 { - margin-left: 75%; - } - .col-lg-offset-10 { - margin-left: 83.33333333333334%; - } - .col-lg-offset-11 { - margin-left: 91.66666666666666%; - } -} -table { - max-width: 100%; - background-color: transparent; -} -th { - text-align: left; -} -.table { - width: 100%; - margin-bottom: 20px; -} -.table thead > tr > th, -.table tbody > tr > th, -.table tfoot > tr > th, -.table thead > tr > td, -.table tbody > tr > td, -.table tfoot > tr > td { - padding: 8px; - line-height: 1.428571429; - vertical-align: top; - border-top: 1px solid #dddddd; -} -.table thead > tr > th { - vertical-align: bottom; - border-bottom: 2px solid #dddddd; -} -.table caption + thead tr:first-child th, -.table colgroup + thead tr:first-child th, -.table thead:first-child tr:first-child th, -.table caption + thead tr:first-child td, -.table colgroup + thead tr:first-child td, -.table thead:first-child tr:first-child td { - border-top: 0; -} -.table tbody + tbody { - border-top: 2px solid #dddddd; -} -.table .table { - background-color: #ffffff; -} -.table-condensed thead > tr > th, -.table-condensed tbody > tr > th, -.table-condensed tfoot > tr > th, -.table-condensed thead > tr > td, -.table-condensed tbody > tr > td, -.table-condensed tfoot > tr > td { - padding: 5px; -} -.table-bordered { - border: 1px solid #dddddd; -} -.table-bordered > thead > tr > th, -.table-bordered > tbody > tr > th, -.table-bordered > tfoot > tr > th, -.table-bordered > thead > tr > td, -.table-bordered > tbody > tr > td, -.table-bordered > tfoot > tr > td { - border: 1px solid #dddddd; -} -.table-bordered > thead > tr > th, -.table-bordered > thead > tr > td { - border-bottom-width: 2px; -} -.table-striped > tbody > tr:nth-child(odd) > td, -.table-striped > tbody > tr:nth-child(odd) > th { - background-color: #f9f9f9; -} -.table-hover > tbody > tr:hover > td, -.table-hover > tbody > tr:hover > th { - background-color: #f5f5f5; -} -table col[class*="col-"] { - float: none; - display: table-column; -} -table td[class*="col-"], -table th[class*="col-"] { - float: none; - display: table-cell; -} -.table > thead > tr > td.active, -.table > tbody > tr > td.active, -.table > tfoot > tr > td.active, -.table > thead > tr > th.active, -.table > tbody > tr > th.active, -.table > tfoot > tr > th.active, -.table > thead > tr.active > td, -.table > tbody > tr.active > td, -.table > tfoot > tr.active > td, -.table > thead > tr.active > th, -.table > tbody > tr.active > th, -.table > tfoot > tr.active > th { - background-color: #f5f5f5; -} -.table > thead > tr > td.success, -.table > tbody > tr > td.success, -.table > tfoot > tr > td.success, -.table > thead > tr > th.success, -.table > tbody > tr > th.success, -.table > tfoot > tr > th.success, -.table > thead > tr.success > td, -.table > tbody > tr.success > td, -.table > tfoot > tr.success > td, -.table > thead > tr.success > th, -.table > tbody > tr.success > th, -.table > tfoot > tr.success > th { - background-color: #dff0d8; - border-color: #d6e9c6; -} -.table-hover > tbody > tr > td.success:hover, -.table-hover > tbody > tr > th.success:hover, -.table-hover > tbody > tr.success:hover > td { - background-color: #d0e9c6; - border-color: #c9e2b3; -} -.table > thead > tr > td.danger, -.table > tbody > tr > td.danger, -.table > tfoot > tr > td.danger, -.table > thead > tr > th.danger, -.table > tbody > tr > th.danger, -.table > tfoot > tr > th.danger, -.table > thead > tr.danger > td, -.table > tbody > tr.danger > td, -.table > tfoot > tr.danger > td, -.table > thead > tr.danger > th, -.table > tbody > tr.danger > th, -.table > tfoot > tr.danger > th { - background-color: #f2dede; - border-color: #eed3d7; -} -.table-hover > tbody > tr > td.danger:hover, -.table-hover > tbody > tr > th.danger:hover, -.table-hover > tbody > tr.danger:hover > td { - background-color: #ebcccc; - border-color: #e6c1c7; -} -.table > thead > tr > td.warning, -.table > tbody > tr > td.warning, -.table > tfoot > tr > td.warning, -.table > thead > tr > th.warning, -.table > tbody > tr > th.warning, -.table > tfoot > tr > th.warning, -.table > thead > tr.warning > td, -.table > tbody > tr.warning > td, -.table > tfoot > tr.warning > td, -.table > thead > tr.warning > th, -.table > tbody > tr.warning > th, -.table > tfoot > tr.warning > th { - background-color: #fcf8e3; - border-color: #fbeed5; -} -.table-hover > tbody > tr > td.warning:hover, -.table-hover > tbody > tr > th.warning:hover, -.table-hover > tbody > tr.warning:hover > td { - background-color: #faf2cc; - border-color: #f8e5be; -} -@media (max-width: 768px) { - .table-responsive { - width: 100%; - margin-bottom: 15px; - overflow-y: hidden; - overflow-x: scroll; - border: 1px solid #dddddd; - } - .table-responsive > .table { - margin-bottom: 0; - background-color: #fff; - } - .table-responsive > .table > thead > tr > th, - .table-responsive > .table > tbody > tr > th, - .table-responsive > .table > tfoot > tr > th, - .table-responsive > .table > thead > tr > td, - .table-responsive > .table > tbody > tr > td, - .table-responsive > .table > tfoot > tr > td { - white-space: nowrap; - } - .table-responsive > .table-bordered { - border: 0; - } - .table-responsive > .table-bordered > thead > tr > th:first-child, - .table-responsive > .table-bordered > tbody > tr > th:first-child, - .table-responsive > .table-bordered > tfoot > tr > th:first-child, - .table-responsive > .table-bordered > thead > tr > td:first-child, - .table-responsive > .table-bordered > tbody > tr > td:first-child, - .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; - } - .table-responsive > .table-bordered > thead > tr > th:last-child, - .table-responsive > .table-bordered > tbody > tr > th:last-child, - .table-responsive > .table-bordered > tfoot > tr > th:last-child, - .table-responsive > .table-bordered > thead > tr > td:last-child, - .table-responsive > .table-bordered > tbody > tr > td:last-child, - .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; - } - .table-responsive > .table-bordered > thead > tr:last-child > th, - .table-responsive > .table-bordered > tbody > tr:last-child > th, - .table-responsive > .table-bordered > tfoot > tr:last-child > th, - .table-responsive > .table-bordered > thead > tr:last-child > td, - .table-responsive > .table-bordered > tbody > tr:last-child > td, - .table-responsive > .table-bordered > tfoot > tr:last-child > td { - border-bottom: 0; - } -} -fieldset { - padding: 0; - margin: 0; - border: 0; -} -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: 20px; - font-size: 21px; - line-height: inherit; - color: #333333; - border: 0; - border-bottom: 1px solid #e5e5e5; -} -label { - display: inline-block; - margin-bottom: 5px; - font-weight: bold; -} -input[type="search"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -input[type="radio"], -input[type="checkbox"] { - margin: 4px 0 0; - margin-top: 1px \9; - /* IE8-9 */ - - line-height: normal; -} -input[type="file"] { - display: block; -} -select[multiple], -select[size] { - height: auto; -} -select optgroup { - font-size: inherit; - font-style: inherit; - font-family: inherit; -} -input[type="file"]:focus, -input[type="radio"]:focus, -input[type="checkbox"]:focus { - outline: thin dotted #333; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -input[type="number"]::-webkit-outer-spin-button, -input[type="number"]::-webkit-inner-spin-button { - height: auto; -} -.form-control:-moz-placeholder { - color: #999999; -} -.form-control::-moz-placeholder { - color: #999999; -} -.form-control:-ms-input-placeholder { - color: #999999; -} -.form-control::-webkit-input-placeholder { - color: #999999; -} -.form-control { - display: block; - width: 100%; - height: 34px; - padding: 6px 12px; - font-size: 14px; - line-height: 1.428571429; - color: #555555; - vertical-align: middle; - background-color: #ffffff; - border: 1px solid #cccccc; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -} -.form-control:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); -} -.form-control[disabled], -.form-control[readonly], -fieldset[disabled] .form-control { - cursor: not-allowed; - background-color: #eeeeee; -} -textarea.form-control { - height: auto; -} -.form-group { - margin-bottom: 15px; -} -.radio, -.checkbox { - display: block; - min-height: 20px; - margin-top: 10px; - margin-bottom: 10px; - padding-left: 20px; - vertical-align: middle; -} -.radio label, -.checkbox label { - display: inline; - margin-bottom: 0; - font-weight: normal; - cursor: pointer; -} -.radio input[type="radio"], -.radio-inline input[type="radio"], -.checkbox input[type="checkbox"], -.checkbox-inline input[type="checkbox"] { - float: left; - margin-left: -20px; -} -.radio + .radio, -.checkbox + .checkbox { - margin-top: -5px; -} -.radio-inline, -.checkbox-inline { - display: inline-block; - padding-left: 20px; - margin-bottom: 0; - vertical-align: middle; - font-weight: normal; - cursor: pointer; -} -.radio-inline + .radio-inline, -.checkbox-inline + .checkbox-inline { - margin-top: 0; - margin-left: 10px; -} -input[type="radio"][disabled], -input[type="checkbox"][disabled], -.radio[disabled], -.radio-inline[disabled], -.checkbox[disabled], -.checkbox-inline[disabled], -fieldset[disabled] input[type="radio"], -fieldset[disabled] input[type="checkbox"], -fieldset[disabled] .radio, -fieldset[disabled] .radio-inline, -fieldset[disabled] .checkbox, -fieldset[disabled] .checkbox-inline { - cursor: not-allowed; -} -.input-sm { - height: 30px; - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -select.input-sm { - height: 30px; - line-height: 30px; -} -textarea.input-sm { - height: auto; -} -.input-lg { - height: 45px; - padding: 10px 16px; - font-size: 18px; - line-height: 1.33; - border-radius: 6px; -} -select.input-lg { - height: 45px; - line-height: 45px; -} -textarea.input-lg { - height: auto; -} -.has-warning .help-block, -.has-warning .control-label { - color: #c09853; -} -.has-warning .form-control { - border-color: #c09853; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} -.has-warning .form-control:focus { - border-color: #a47e3c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; -} -.has-warning .input-group-addon { - color: #c09853; - border-color: #c09853; - background-color: #fcf8e3; -} -.has-error .help-block, -.has-error .control-label { - color: #b94a48; -} -.has-error .form-control { - border-color: #b94a48; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} -.has-error .form-control:focus { - border-color: #953b39; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; -} -.has-error .input-group-addon { - color: #b94a48; - border-color: #b94a48; - background-color: #f2dede; -} -.has-success .help-block, -.has-success .control-label { - color: #468847; -} -.has-success .form-control { - border-color: #468847; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} -.has-success .form-control:focus { - border-color: #356635; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; -} -.has-success .input-group-addon { - color: #468847; - border-color: #468847; - background-color: #dff0d8; -} -.form-control-static { - margin-bottom: 0; - padding-top: 7px; -} -.help-block { - display: block; - margin-top: 5px; - margin-bottom: 10px; - color: #737373; -} -@media (min-width: 768px) { - .form-inline .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - .form-inline .form-control { - display: inline-block; - } - .form-inline .radio, - .form-inline .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - padding-left: 0; - } - .form-inline .radio input[type="radio"], - .form-inline .checkbox input[type="checkbox"] { - float: none; - margin-left: 0; - } -} -.form-horizontal .control-label, -.form-horizontal .radio, -.form-horizontal .checkbox, -.form-horizontal .radio-inline, -.form-horizontal .checkbox-inline { - margin-top: 0; - margin-bottom: 0; - padding-top: 7px; -} -.form-horizontal .form-group { - margin-left: -15px; - margin-right: -15px; -} -.form-horizontal .form-group:before, -.form-horizontal .form-group:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.form-horizontal .form-group:after { - clear: both; -} -.form-horizontal .form-group:before, -.form-horizontal .form-group:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.form-horizontal .form-group:after { - clear: both; -} -@media (min-width: 768px) { - .form-horizontal .control-label { - text-align: right; - } -} -.btn { - display: inline-block; - padding: 6px 12px; - margin-bottom: 0; - font-size: 14px; - font-weight: normal; - line-height: 1.428571429; - text-align: center; - vertical-align: middle; - cursor: pointer; - border: 1px solid transparent; - border-radius: 4px; - white-space: nowrap; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -o-user-select: none; - user-select: none; -} -.btn:focus { - outline: thin dotted #333; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -.btn:hover, -.btn:focus { - color: #333333; - text-decoration: none; -} -.btn:active, -.btn.active { - outline: 0; - background-image: none; - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -} -.btn.disabled, -.btn[disabled], -fieldset[disabled] .btn { - cursor: not-allowed; - pointer-events: none; - opacity: 0.65; - filter: alpha(opacity=65); - -webkit-box-shadow: none; - box-shadow: none; -} -.btn-default { - color: #333333; - background-color: #ffffff; - border-color: #cccccc; -} -.btn-default:hover, -.btn-default:focus, -.btn-default:active, -.btn-default.active, -.open .dropdown-toggle.btn-default { - color: #333333; - background-color: #ebebeb; - border-color: #adadad; -} -.btn-default:active, -.btn-default.active, -.open .dropdown-toggle.btn-default { - background-image: none; -} -.btn-default.disabled, -.btn-default[disabled], -fieldset[disabled] .btn-default, -.btn-default.disabled:hover, -.btn-default[disabled]:hover, -fieldset[disabled] .btn-default:hover, -.btn-default.disabled:focus, -.btn-default[disabled]:focus, -fieldset[disabled] .btn-default:focus, -.btn-default.disabled:active, -.btn-default[disabled]:active, -fieldset[disabled] .btn-default:active, -.btn-default.disabled.active, -.btn-default[disabled].active, -fieldset[disabled] .btn-default.active { - background-color: #ffffff; - border-color: #cccccc; -} -.btn-primary { - color: #ffffff; - background-color: #428bca; - border-color: #357ebd; -} -.btn-primary:hover, -.btn-primary:focus, -.btn-primary:active, -.btn-primary.active, -.open .dropdown-toggle.btn-primary { - color: #ffffff; - background-color: #3276b1; - border-color: #285e8e; -} -.btn-primary:active, -.btn-primary.active, -.open .dropdown-toggle.btn-primary { - background-image: none; -} -.btn-primary.disabled, -.btn-primary[disabled], -fieldset[disabled] .btn-primary, -.btn-primary.disabled:hover, -.btn-primary[disabled]:hover, -fieldset[disabled] .btn-primary:hover, -.btn-primary.disabled:focus, -.btn-primary[disabled]:focus, -fieldset[disabled] .btn-primary:focus, -.btn-primary.disabled:active, -.btn-primary[disabled]:active, -fieldset[disabled] .btn-primary:active, -.btn-primary.disabled.active, -.btn-primary[disabled].active, -fieldset[disabled] .btn-primary.active { - background-color: #428bca; - border-color: #357ebd; -} -.btn-warning { - color: #ffffff; - background-color: #f0ad4e; - border-color: #eea236; -} -.btn-warning:hover, -.btn-warning:focus, -.btn-warning:active, -.btn-warning.active, -.open .dropdown-toggle.btn-warning { - color: #ffffff; - background-color: #ed9c28; - border-color: #d58512; -} -.btn-warning:active, -.btn-warning.active, -.open .dropdown-toggle.btn-warning { - background-image: none; -} -.btn-warning.disabled, -.btn-warning[disabled], -fieldset[disabled] .btn-warning, -.btn-warning.disabled:hover, -.btn-warning[disabled]:hover, -fieldset[disabled] .btn-warning:hover, -.btn-warning.disabled:focus, -.btn-warning[disabled]:focus, -fieldset[disabled] .btn-warning:focus, -.btn-warning.disabled:active, -.btn-warning[disabled]:active, -fieldset[disabled] .btn-warning:active, -.btn-warning.disabled.active, -.btn-warning[disabled].active, -fieldset[disabled] .btn-warning.active { - background-color: #f0ad4e; - border-color: #eea236; -} -.btn-danger { - color: #ffffff; - background-color: #d9534f; - border-color: #d43f3a; -} -.btn-danger:hover, -.btn-danger:focus, -.btn-danger:active, -.btn-danger.active, -.open .dropdown-toggle.btn-danger { - color: #ffffff; - background-color: #d2322d; - border-color: #ac2925; -} -.btn-danger:active, -.btn-danger.active, -.open .dropdown-toggle.btn-danger { - background-image: none; -} -.btn-danger.disabled, -.btn-danger[disabled], -fieldset[disabled] .btn-danger, -.btn-danger.disabled:hover, -.btn-danger[disabled]:hover, -fieldset[disabled] .btn-danger:hover, -.btn-danger.disabled:focus, -.btn-danger[disabled]:focus, -fieldset[disabled] .btn-danger:focus, -.btn-danger.disabled:active, -.btn-danger[disabled]:active, -fieldset[disabled] .btn-danger:active, -.btn-danger.disabled.active, -.btn-danger[disabled].active, -fieldset[disabled] .btn-danger.active { - background-color: #d9534f; - border-color: #d43f3a; -} -.btn-success { - color: #ffffff; - background-color: #5cb85c; - border-color: #4cae4c; -} -.btn-success:hover, -.btn-success:focus, -.btn-success:active, -.btn-success.active, -.open .dropdown-toggle.btn-success { - color: #ffffff; - background-color: #47a447; - border-color: #398439; -} -.btn-success:active, -.btn-success.active, -.open .dropdown-toggle.btn-success { - background-image: none; -} -.btn-success.disabled, -.btn-success[disabled], -fieldset[disabled] .btn-success, -.btn-success.disabled:hover, -.btn-success[disabled]:hover, -fieldset[disabled] .btn-success:hover, -.btn-success.disabled:focus, -.btn-success[disabled]:focus, -fieldset[disabled] .btn-success:focus, -.btn-success.disabled:active, -.btn-success[disabled]:active, -fieldset[disabled] .btn-success:active, -.btn-success.disabled.active, -.btn-success[disabled].active, -fieldset[disabled] .btn-success.active { - background-color: #5cb85c; - border-color: #4cae4c; -} -.btn-info { - color: #ffffff; - background-color: #5bc0de; - border-color: #46b8da; -} -.btn-info:hover, -.btn-info:focus, -.btn-info:active, -.btn-info.active, -.open .dropdown-toggle.btn-info { - color: #ffffff; - background-color: #39b3d7; - border-color: #269abc; -} -.btn-info:active, -.btn-info.active, -.open .dropdown-toggle.btn-info { - background-image: none; -} -.btn-info.disabled, -.btn-info[disabled], -fieldset[disabled] .btn-info, -.btn-info.disabled:hover, -.btn-info[disabled]:hover, -fieldset[disabled] .btn-info:hover, -.btn-info.disabled:focus, -.btn-info[disabled]:focus, -fieldset[disabled] .btn-info:focus, -.btn-info.disabled:active, -.btn-info[disabled]:active, -fieldset[disabled] .btn-info:active, -.btn-info.disabled.active, -.btn-info[disabled].active, -fieldset[disabled] .btn-info.active { - background-color: #5bc0de; - border-color: #46b8da; -} -.btn-link { - color: #428bca; - font-weight: normal; - cursor: pointer; - border-radius: 0; -} -.btn-link, -.btn-link:active, -.btn-link[disabled], -fieldset[disabled] .btn-link { - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; -} -.btn-link, -.btn-link:hover, -.btn-link:focus, -.btn-link:active { - border-color: transparent; -} -.btn-link:hover, -.btn-link:focus { - color: #2a6496; - text-decoration: underline; - background-color: transparent; -} -.btn-link[disabled]:hover, -fieldset[disabled] .btn-link:hover, -.btn-link[disabled]:focus, -fieldset[disabled] .btn-link:focus { - color: #999999; - text-decoration: none; -} -.btn-lg { - padding: 10px 16px; - font-size: 18px; - line-height: 1.33; - border-radius: 6px; -} -.btn-sm, -.btn-xs { - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -.btn-xs { - padding: 1px 5px; -} -.btn-block { - display: block; - width: 100%; - padding-left: 0; - padding-right: 0; -} -.btn-block + .btn-block { - margin-top: 5px; -} -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} -.fade { - opacity: 0; - -webkit-transition: opacity 0.15s linear; - transition: opacity 0.15s linear; -} -.fade.in { - opacity: 1; -} -.collapse { - display: none; -} -.collapse.in { - display: block; -} -.collapsing { - position: relative; - height: 0; - overflow: hidden; - -webkit-transition: height 0.35s ease; - transition: height 0.35s ease; -} -@font-face { - font-family: 'Glyphicons Halflings'; - src: url('../fonts/glyphicons-halflings-regular.eot'); - src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); -} -.glyphicon { - position: relative; - top: 1px; - display: inline-block; - font-family: 'Glyphicons Halflings'; - font-style: normal; - font-weight: normal; - line-height: 1; - -webkit-font-smoothing: antialiased; -} -.glyphicon-asterisk:before { - content: "\2a"; -} -.glyphicon-plus:before { - content: "\2b"; -} -.glyphicon-euro:before { - content: "\20ac"; -} -.glyphicon-minus:before { - content: "\2212"; -} -.glyphicon-cloud:before { - content: "\2601"; -} -.glyphicon-envelope:before { - content: "\2709"; -} -.glyphicon-pencil:before { - content: "\270f"; -} -.glyphicon-glass:before { - content: "\e001"; -} -.glyphicon-music:before { - content: "\e002"; -} -.glyphicon-search:before { - content: "\e003"; -} -.glyphicon-heart:before { - content: "\e005"; -} -.glyphicon-star:before { - content: "\e006"; -} -.glyphicon-star-empty:before { - content: "\e007"; -} -.glyphicon-user:before { - content: "\e008"; -} -.glyphicon-film:before { - content: "\e009"; -} -.glyphicon-th-large:before { - content: "\e010"; -} -.glyphicon-th:before { - content: "\e011"; -} -.glyphicon-th-list:before { - content: "\e012"; -} -.glyphicon-ok:before { - content: "\e013"; -} -.glyphicon-remove:before { - content: "\e014"; -} -.glyphicon-zoom-in:before { - content: "\e015"; -} -.glyphicon-zoom-out:before { - content: "\e016"; -} -.glyphicon-off:before { - content: "\e017"; -} -.glyphicon-signal:before { - content: "\e018"; -} -.glyphicon-cog:before { - content: "\e019"; -} -.glyphicon-trash:before { - content: "\e020"; -} -.glyphicon-home:before { - content: "\e021"; -} -.glyphicon-file:before { - content: "\e022"; -} -.glyphicon-time:before { - content: "\e023"; -} -.glyphicon-road:before { - content: "\e024"; -} -.glyphicon-download-alt:before { - content: "\e025"; -} -.glyphicon-download:before { - content: "\e026"; -} -.glyphicon-upload:before { - content: "\e027"; -} -.glyphicon-inbox:before { - content: "\e028"; -} -.glyphicon-play-circle:before { - content: "\e029"; -} -.glyphicon-repeat:before { - content: "\e030"; -} -.glyphicon-refresh:before { - content: "\e031"; -} -.glyphicon-list-alt:before { - content: "\e032"; -} -.glyphicon-flag:before { - content: "\e034"; -} -.glyphicon-headphones:before { - content: "\e035"; -} -.glyphicon-volume-off:before { - content: "\e036"; -} -.glyphicon-volume-down:before { - content: "\e037"; -} -.glyphicon-volume-up:before { - content: "\e038"; -} -.glyphicon-qrcode:before { - content: "\e039"; -} -.glyphicon-barcode:before { - content: "\e040"; -} -.glyphicon-tag:before { - content: "\e041"; -} -.glyphicon-tags:before { - content: "\e042"; -} -.glyphicon-book:before { - content: "\e043"; -} -.glyphicon-print:before { - content: "\e045"; -} -.glyphicon-font:before { - content: "\e047"; -} -.glyphicon-bold:before { - content: "\e048"; -} -.glyphicon-italic:before { - content: "\e049"; -} -.glyphicon-text-height:before { - content: "\e050"; -} -.glyphicon-text-width:before { - content: "\e051"; -} -.glyphicon-align-left:before { - content: "\e052"; -} -.glyphicon-align-center:before { - content: "\e053"; -} -.glyphicon-align-right:before { - content: "\e054"; -} -.glyphicon-align-justify:before { - content: "\e055"; -} -.glyphicon-list:before { - content: "\e056"; -} -.glyphicon-indent-left:before { - content: "\e057"; -} -.glyphicon-indent-right:before { - content: "\e058"; -} -.glyphicon-facetime-video:before { - content: "\e059"; -} -.glyphicon-picture:before { - content: "\e060"; -} -.glyphicon-map-marker:before { - content: "\e062"; -} -.glyphicon-adjust:before { - content: "\e063"; -} -.glyphicon-tint:before { - content: "\e064"; -} -.glyphicon-edit:before { - content: "\e065"; -} -.glyphicon-share:before { - content: "\e066"; -} -.glyphicon-check:before { - content: "\e067"; -} -.glyphicon-move:before { - content: "\e068"; -} -.glyphicon-step-backward:before { - content: "\e069"; -} -.glyphicon-fast-backward:before { - content: "\e070"; -} -.glyphicon-backward:before { - content: "\e071"; -} -.glyphicon-play:before { - content: "\e072"; -} -.glyphicon-pause:before { - content: "\e073"; -} -.glyphicon-stop:before { - content: "\e074"; -} -.glyphicon-forward:before { - content: "\e075"; -} -.glyphicon-fast-forward:before { - content: "\e076"; -} -.glyphicon-step-forward:before { - content: "\e077"; -} -.glyphicon-eject:before { - content: "\e078"; -} -.glyphicon-chevron-left:before { - content: "\e079"; -} -.glyphicon-chevron-right:before { - content: "\e080"; -} -.glyphicon-plus-sign:before { - content: "\e081"; -} -.glyphicon-minus-sign:before { - content: "\e082"; -} -.glyphicon-remove-sign:before { - content: "\e083"; -} -.glyphicon-ok-sign:before { - content: "\e084"; -} -.glyphicon-question-sign:before { - content: "\e085"; -} -.glyphicon-info-sign:before { - content: "\e086"; -} -.glyphicon-screenshot:before { - content: "\e087"; -} -.glyphicon-remove-circle:before { - content: "\e088"; -} -.glyphicon-ok-circle:before { - content: "\e089"; -} -.glyphicon-ban-circle:before { - content: "\e090"; -} -.glyphicon-arrow-left:before { - content: "\e091"; -} -.glyphicon-arrow-right:before { - content: "\e092"; -} -.glyphicon-arrow-up:before { - content: "\e093"; -} -.glyphicon-arrow-down:before { - content: "\e094"; -} -.glyphicon-share-alt:before { - content: "\e095"; -} -.glyphicon-resize-full:before { - content: "\e096"; -} -.glyphicon-resize-small:before { - content: "\e097"; -} -.glyphicon-exclamation-sign:before { - content: "\e101"; -} -.glyphicon-gift:before { - content: "\e102"; -} -.glyphicon-leaf:before { - content: "\e103"; -} -.glyphicon-eye-open:before { - content: "\e105"; -} -.glyphicon-eye-close:before { - content: "\e106"; -} -.glyphicon-warning-sign:before { - content: "\e107"; -} -.glyphicon-plane:before { - content: "\e108"; -} -.glyphicon-random:before { - content: "\e110"; -} -.glyphicon-comment:before { - content: "\e111"; -} -.glyphicon-magnet:before { - content: "\e112"; -} -.glyphicon-chevron-up:before { - content: "\e113"; -} -.glyphicon-chevron-down:before { - content: "\e114"; -} -.glyphicon-retweet:before { - content: "\e115"; -} -.glyphicon-shopping-cart:before { - content: "\e116"; -} -.glyphicon-folder-close:before { - content: "\e117"; -} -.glyphicon-folder-open:before { - content: "\e118"; -} -.glyphicon-resize-vertical:before { - content: "\e119"; -} -.glyphicon-resize-horizontal:before { - content: "\e120"; -} -.glyphicon-hdd:before { - content: "\e121"; -} -.glyphicon-bullhorn:before { - content: "\e122"; -} -.glyphicon-certificate:before { - content: "\e124"; -} -.glyphicon-thumbs-up:before { - content: "\e125"; -} -.glyphicon-thumbs-down:before { - content: "\e126"; -} -.glyphicon-hand-right:before { - content: "\e127"; -} -.glyphicon-hand-left:before { - content: "\e128"; -} -.glyphicon-hand-up:before { - content: "\e129"; -} -.glyphicon-hand-down:before { - content: "\e130"; -} -.glyphicon-circle-arrow-right:before { - content: "\e131"; -} -.glyphicon-circle-arrow-left:before { - content: "\e132"; -} -.glyphicon-circle-arrow-up:before { - content: "\e133"; -} -.glyphicon-circle-arrow-down:before { - content: "\e134"; -} -.glyphicon-globe:before { - content: "\e135"; -} -.glyphicon-tasks:before { - content: "\e137"; -} -.glyphicon-filter:before { - content: "\e138"; -} -.glyphicon-fullscreen:before { - content: "\e140"; -} -.glyphicon-dashboard:before { - content: "\e141"; -} -.glyphicon-heart-empty:before { - content: "\e143"; -} -.glyphicon-link:before { - content: "\e144"; -} -.glyphicon-phone:before { - content: "\e145"; -} -.glyphicon-usd:before { - content: "\e148"; -} -.glyphicon-gbp:before { - content: "\e149"; -} -.glyphicon-sort:before { - content: "\e150"; -} -.glyphicon-sort-by-alphabet:before { - content: "\e151"; -} -.glyphicon-sort-by-alphabet-alt:before { - content: "\e152"; -} -.glyphicon-sort-by-order:before { - content: "\e153"; -} -.glyphicon-sort-by-order-alt:before { - content: "\e154"; -} -.glyphicon-sort-by-attributes:before { - content: "\e155"; -} -.glyphicon-sort-by-attributes-alt:before { - content: "\e156"; -} -.glyphicon-unchecked:before { - content: "\e157"; -} -.glyphicon-expand:before { - content: "\e158"; -} -.glyphicon-collapse-down:before { - content: "\e159"; -} -.glyphicon-collapse-up:before { - content: "\e160"; -} -.glyphicon-log-in:before { - content: "\e161"; -} -.glyphicon-flash:before { - content: "\e162"; -} -.glyphicon-log-out:before { - content: "\e163"; -} -.glyphicon-new-window:before { - content: "\e164"; -} -.glyphicon-record:before { - content: "\e165"; -} -.glyphicon-save:before { - content: "\e166"; -} -.glyphicon-open:before { - content: "\e167"; -} -.glyphicon-saved:before { - content: "\e168"; -} -.glyphicon-import:before { - content: "\e169"; -} -.glyphicon-export:before { - content: "\e170"; -} -.glyphicon-send:before { - content: "\e171"; -} -.glyphicon-floppy-disk:before { - content: "\e172"; -} -.glyphicon-floppy-saved:before { - content: "\e173"; -} -.glyphicon-floppy-remove:before { - content: "\e174"; -} -.glyphicon-floppy-save:before { - content: "\e175"; -} -.glyphicon-floppy-open:before { - content: "\e176"; -} -.glyphicon-credit-card:before { - content: "\e177"; -} -.glyphicon-transfer:before { - content: "\e178"; -} -.glyphicon-cutlery:before { - content: "\e179"; -} -.glyphicon-header:before { - content: "\e180"; -} -.glyphicon-compressed:before { - content: "\e181"; -} -.glyphicon-earphone:before { - content: "\e182"; -} -.glyphicon-phone-alt:before { - content: "\e183"; -} -.glyphicon-tower:before { - content: "\e184"; -} -.glyphicon-stats:before { - content: "\e185"; -} -.glyphicon-sd-video:before { - content: "\e186"; -} -.glyphicon-hd-video:before { - content: "\e187"; -} -.glyphicon-subtitles:before { - content: "\e188"; -} -.glyphicon-sound-stereo:before { - content: "\e189"; -} -.glyphicon-sound-dolby:before { - content: "\e190"; -} -.glyphicon-sound-5-1:before { - content: "\e191"; -} -.glyphicon-sound-6-1:before { - content: "\e192"; -} -.glyphicon-sound-7-1:before { - content: "\e193"; -} -.glyphicon-copyright-mark:before { - content: "\e194"; -} -.glyphicon-registration-mark:before { - content: "\e195"; -} -.glyphicon-cloud-download:before { - content: "\e197"; -} -.glyphicon-cloud-upload:before { - content: "\e198"; -} -.glyphicon-tree-conifer:before { - content: "\e199"; -} -.glyphicon-tree-deciduous:before { - content: "\e200"; -} -.glyphicon-briefcase:before { - content: "\1f4bc"; -} -.glyphicon-calendar:before { - content: "\1f4c5"; -} -.glyphicon-pushpin:before { - content: "\1f4cc"; -} -.glyphicon-paperclip:before { - content: "\1f4ce"; -} -.glyphicon-camera:before { - content: "\1f4f7"; -} -.glyphicon-lock:before { - content: "\1f512"; -} -.glyphicon-bell:before { - content: "\1f514"; -} -.glyphicon-bookmark:before { - content: "\1f516"; -} -.glyphicon-fire:before { - content: "\1f525"; -} -.glyphicon-wrench:before { - content: "\1f527"; -} -.caret { - display: inline-block; - width: 0; - height: 0; - margin-left: 2px; - vertical-align: middle; - border-top: 4px solid #000000; - border-right: 4px solid transparent; - border-left: 4px solid transparent; - border-bottom: 0 dotted; - content: ""; -} -.dropdown { - position: relative; -} -.dropdown-toggle:focus { - outline: 0; -} -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - list-style: none; - font-size: 14px; - background-color: #ffffff; - border: 1px solid #cccccc; - border: 1px solid rgba(0, 0, 0, 0.15); - border-radius: 4px; - -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - background-clip: padding-box; -} -.dropdown-menu.pull-right { - right: 0; - left: auto; -} -.dropdown-menu .divider { - height: 1px; - margin: 9px 0; - overflow: hidden; - background-color: #e5e5e5; -} -.dropdown-menu > li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 1.428571429; - color: #333333; - white-space: nowrap; -} -.dropdown-menu > li > a:hover, -.dropdown-menu > li > a:focus { - text-decoration: none; - color: #ffffff; - background-color: #428bca; -} -.dropdown-menu > .active > a, -.dropdown-menu > .active > a:hover, -.dropdown-menu > .active > a:focus { - color: #ffffff; - text-decoration: none; - outline: 0; - background-color: #428bca; -} -.dropdown-menu > .disabled > a, -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - color: #999999; -} -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - text-decoration: none; - background-color: transparent; - background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - cursor: not-allowed; -} -.open > .dropdown-menu { - display: block; -} -.open > a { - outline: 0; -} -.dropdown-header { - display: block; - padding: 3px 20px; - font-size: 12px; - line-height: 1.428571429; - color: #999999; -} -.dropdown-backdrop { - position: fixed; - left: 0; - right: 0; - bottom: 0; - top: 0; - z-index: 990; -} -.pull-right > .dropdown-menu { - right: 0; - left: auto; -} -.dropup .caret, -.navbar-fixed-bottom .dropdown .caret { - border-top: 0 dotted; - border-bottom: 4px solid #000000; - content: ""; -} -.dropup .dropdown-menu, -.navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 1px; -} -@media (min-width: 992px) { - .navbar-right .dropdown-menu { - right: 0; - left: auto; - } -} -.btn-default .caret { - border-top-color: #333333; -} -.btn-primary .caret, -.btn-success .caret, -.btn-warning .caret, -.btn-danger .caret, -.btn-info .caret { - border-top-color: #fff; -} -.dropup .btn-default .caret { - border-bottom-color: #333333; -} -.dropup .btn-primary .caret, -.dropup .btn-success .caret, -.dropup .btn-warning .caret, -.dropup .btn-danger .caret, -.dropup .btn-info .caret { - border-bottom-color: #fff; -} -.btn-group, -.btn-group-vertical { - position: relative; - display: inline-block; - vertical-align: middle; -} -.btn-group > .btn, -.btn-group-vertical > .btn { - position: relative; - float: left; -} -.btn-group > .btn:hover, -.btn-group-vertical > .btn:hover, -.btn-group > .btn:focus, -.btn-group-vertical > .btn:focus, -.btn-group > .btn:active, -.btn-group-vertical > .btn:active, -.btn-group > .btn.active, -.btn-group-vertical > .btn.active { - z-index: 2; -} -.btn-group > .btn:focus, -.btn-group-vertical > .btn:focus { - outline: none; -} -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group { - margin-left: -1px; -} -.btn-toolbar:before, -.btn-toolbar:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.btn-toolbar:after { - clear: both; -} -.btn-toolbar:before, -.btn-toolbar:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.btn-toolbar:after { - clear: both; -} -.btn-toolbar .btn-group { - float: left; -} -.btn-toolbar > .btn + .btn, -.btn-toolbar > .btn-group + .btn, -.btn-toolbar > .btn + .btn-group, -.btn-toolbar > .btn-group + .btn-group { - margin-left: 5px; -} -.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0; -} -.btn-group > .btn:first-child { - margin-left: 0; -} -.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; -} -.btn-group > .btn:last-child:not(:first-child), -.btn-group > .dropdown-toggle:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; -} -.btn-group > .btn-group { - float: left; -} -.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; -} -.btn-group > .btn-group:first-child > .btn:last-child, -.btn-group > .btn-group:first-child > .dropdown-toggle { - border-bottom-right-radius: 0; - border-top-right-radius: 0; -} -.btn-group > .btn-group:last-child > .btn:first-child { - border-bottom-left-radius: 0; - border-top-left-radius: 0; -} -.btn-group .dropdown-toggle:active, -.btn-group.open .dropdown-toggle { - outline: 0; -} -.btn-group-xs > .btn { - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; - padding: 1px 5px; -} -.btn-group-sm > .btn { - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -.btn-group-lg > .btn { - padding: 10px 16px; - font-size: 18px; - line-height: 1.33; - border-radius: 6px; -} -.btn-group > .btn + .dropdown-toggle { - padding-left: 8px; - padding-right: 8px; -} -.btn-group > .btn-lg + .dropdown-toggle { - padding-left: 12px; - padding-right: 12px; -} -.btn-group.open .dropdown-toggle { - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -} -.btn .caret { - margin-left: 0; -} -.btn-lg .caret { - border-width: 5px 5px 0; - border-bottom-width: 0; -} -.dropup .btn-lg .caret { - border-width: 0 5px 5px; -} -.btn-group-vertical > .btn, -.btn-group-vertical > .btn-group { - display: block; - float: none; - width: 100%; - max-width: 100%; -} -.btn-group-vertical > .btn-group:before, -.btn-group-vertical > .btn-group:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.btn-group-vertical > .btn-group:after { - clear: both; -} -.btn-group-vertical > .btn-group:before, -.btn-group-vertical > .btn-group:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.btn-group-vertical > .btn-group:after { - clear: both; -} -.btn-group-vertical > .btn-group > .btn { - float: none; -} -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-left: 0; -} -.btn-group-vertical > .btn:not(:first-child):not(:last-child) { - border-radius: 0; -} -.btn-group-vertical > .btn:first-child:not(:last-child) { - border-top-right-radius: 4px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group-vertical > .btn:last-child:not(:first-child) { - border-bottom-left-radius: 4px; - border-top-right-radius: 0; - border-top-left-radius: 0; -} -.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; -} -.btn-group-vertical > .btn-group:first-child > .btn:last-child, -.btn-group-vertical > .btn-group:first-child > .dropdown-toggle { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group-vertical > .btn-group:last-child > .btn:first-child { - border-top-right-radius: 0; - border-top-left-radius: 0; -} -.btn-group-justified { - display: table; - width: 100%; - table-layout: fixed; - border-collapse: separate; -} -.btn-group-justified .btn { - float: none; - display: table-cell; - width: 1%; -} -[data-toggle="buttons"] > .btn > input[type="radio"], -[data-toggle="buttons"] > .btn > input[type="checkbox"] { - display: none; -} -.input-group { - position: relative; - display: table; - border-collapse: separate; -} -.input-group.col { - float: none; - padding-left: 0; - padding-right: 0; -} -.input-group .form-control { - width: 100%; - margin-bottom: 0; -} -.input-group-lg > .form-control, -.input-group-lg > .input-group-addon, -.input-group-lg > .input-group-btn > .btn { - height: 45px; - padding: 10px 16px; - font-size: 18px; - line-height: 1.33; - border-radius: 6px; -} -select.input-group-lg > .form-control, -select.input-group-lg > .input-group-addon, -select.input-group-lg > .input-group-btn > .btn { - height: 45px; - line-height: 45px; -} -textarea.input-group-lg > .form-control, -textarea.input-group-lg > .input-group-addon, -textarea.input-group-lg > .input-group-btn > .btn { - height: auto; -} -.input-group-sm > .form-control, -.input-group-sm > .input-group-addon, -.input-group-sm > .input-group-btn > .btn { - height: 30px; - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -select.input-group-sm > .form-control, -select.input-group-sm > .input-group-addon, -select.input-group-sm > .input-group-btn > .btn { - height: 30px; - line-height: 30px; -} -textarea.input-group-sm > .form-control, -textarea.input-group-sm > .input-group-addon, -textarea.input-group-sm > .input-group-btn > .btn { - height: auto; -} -.input-group-addon, -.input-group-btn, -.input-group .form-control { - display: table-cell; -} -.input-group-addon:not(:first-child):not(:last-child), -.input-group-btn:not(:first-child):not(:last-child), -.input-group .form-control:not(:first-child):not(:last-child) { - border-radius: 0; -} -.input-group-addon, -.input-group-btn { - width: 1%; - white-space: nowrap; - vertical-align: middle; -} -.input-group-addon { - padding: 6px 12px; - font-size: 14px; - font-weight: normal; - line-height: 1; - text-align: center; - background-color: #eeeeee; - border: 1px solid #cccccc; - border-radius: 4px; -} -.input-group-addon.input-sm { - padding: 5px 10px; - font-size: 12px; - border-radius: 3px; -} -.input-group-addon.input-lg { - padding: 10px 16px; - font-size: 18px; - border-radius: 6px; -} -.input-group-addon input[type="radio"], -.input-group-addon input[type="checkbox"] { - margin-top: 0; -} -.input-group .form-control:first-child, -.input-group-addon:first-child, -.input-group-btn:first-child > .btn, -.input-group-btn:first-child > .dropdown-toggle, -.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; -} -.input-group-addon:first-child { - border-right: 0; -} -.input-group .form-control:last-child, -.input-group-addon:last-child, -.input-group-btn:last-child > .btn, -.input-group-btn:last-child > .dropdown-toggle, -.input-group-btn:first-child > .btn:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; -} -.input-group-addon:last-child { - border-left: 0; -} -.input-group-btn { - position: relative; - white-space: nowrap; -} -.input-group-btn > .btn { - position: relative; -} -.input-group-btn > .btn + .btn { - margin-left: -4px; -} -.input-group-btn > .btn:hover, -.input-group-btn > .btn:active { - z-index: 2; -} -.nav { - margin-bottom: 0; - padding-left: 0; - list-style: none; -} -.nav:before, -.nav:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.nav:after { - clear: both; -} -.nav:before, -.nav:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.nav:after { - clear: both; -} -.nav > li { - position: relative; - display: block; -} -.nav > li > a { - position: relative; - display: block; - padding: 10px 15px; -} -.nav > li > a:hover, -.nav > li > a:focus { - text-decoration: none; - background-color: #eeeeee; -} -.nav > li.disabled > a { - color: #999999; -} -.nav > li.disabled > a:hover, -.nav > li.disabled > a:focus { - color: #999999; - text-decoration: none; - background-color: transparent; - cursor: not-allowed; -} -.nav .open > a, -.nav .open > a:hover, -.nav .open > a:focus { - background-color: #eeeeee; - border-color: #428bca; -} -.nav .nav-divider { - height: 1px; - margin: 9px 0; - overflow: hidden; - background-color: #e5e5e5; -} -.nav > li > a > img { - max-width: none; -} -.nav-tabs { - border-bottom: 1px solid #dddddd; -} -.nav-tabs > li { - float: left; - margin-bottom: -1px; -} -.nav-tabs > li > a { - margin-right: 2px; - line-height: 1.428571429; - border: 1px solid transparent; - border-radius: 4px 4px 0 0; -} -.nav-tabs > li > a:hover { - border-color: #eeeeee #eeeeee #dddddd; -} -.nav-tabs > li.active > a, -.nav-tabs > li.active > a:hover, -.nav-tabs > li.active > a:focus { - color: #555555; - background-color: #ffffff; - border: 1px solid #dddddd; - border-bottom-color: transparent; - cursor: default; -} -.nav-tabs.nav-justified { - width: 100%; - border-bottom: 0; -} -.nav-tabs.nav-justified > li { - float: none; -} -.nav-tabs.nav-justified > li > a { - text-align: center; -} -@media (min-width: 768px) { - .nav-tabs.nav-justified > li { - display: table-cell; - width: 1%; - } -} -.nav-tabs.nav-justified > li > a { - border-bottom: 1px solid #dddddd; - margin-right: 0; -} -.nav-tabs.nav-justified > .active > a { - border-bottom-color: #ffffff; -} -.nav-pills > li { - float: left; -} -.nav-pills > li > a { - border-radius: 5px; -} -.nav-pills > li + li { - margin-left: 2px; -} -.nav-pills > li.active > a, -.nav-pills > li.active > a:hover, -.nav-pills > li.active > a:focus { - color: #ffffff; - background-color: #428bca; -} -.nav-stacked > li { - float: none; -} -.nav-stacked > li + li { - margin-top: 2px; - margin-left: 0; -} -.nav-justified { - width: 100%; -} -.nav-justified > li { - float: none; -} -.nav-justified > li > a { - text-align: center; -} -@media (min-width: 768px) { - .nav-justified > li { - display: table-cell; - width: 1%; - } -} -.nav-tabs-justified { - border-bottom: 0; -} -.nav-tabs-justified > li > a { - border-bottom: 1px solid #dddddd; - margin-right: 0; -} -.nav-tabs-justified > .active > a { - border-bottom-color: #ffffff; -} -.tabbable:before, -.tabbable:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.tabbable:after { - clear: both; -} -.tabbable:before, -.tabbable:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.tabbable:after { - clear: both; -} -.tab-content > .tab-pane, -.pill-content > .pill-pane { - display: none; -} -.tab-content > .active, -.pill-content > .active { - display: block; -} -.nav .caret { - border-top-color: #428bca; - border-bottom-color: #428bca; -} -.nav a:hover .caret { - border-top-color: #2a6496; - border-bottom-color: #2a6496; -} -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-right-radius: 0; - border-top-left-radius: 0; -} -.navbar { - position: relative; - z-index: 1000; - min-height: 50px; - margin-bottom: 20px; - border: 1px solid transparent; -} -.navbar:before, -.navbar:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.navbar:after { - clear: both; -} -.navbar:before, -.navbar:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.navbar:after { - clear: both; -} -@media (min-width: 992px) { - .navbar { - border-radius: 4px; - } -} -.navbar-header:before, -.navbar-header:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.navbar-header:after { - clear: both; -} -.navbar-header:before, -.navbar-header:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.navbar-header:after { - clear: both; -} -@media (min-width: 992px) { - .navbar-header { - float: left; - } -} -.navbar-collapse { - max-height: 340px; - overflow-x: visible; - padding-right: 15px; - padding-left: 15px; - border-top: 1px solid transparent; - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); - -webkit-overflow-scrolling: touch; -} -.navbar-collapse:before, -.navbar-collapse:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.navbar-collapse:after { - clear: both; -} -.navbar-collapse:before, -.navbar-collapse:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.navbar-collapse:after { - clear: both; -} -.navbar-collapse.in { - overflow-y: auto; -} -@media (min-width: 992px) { - .navbar-collapse { - width: auto; - border-top: 0; - box-shadow: none; - } - .navbar-collapse.collapse { - display: block !important; - height: auto !important; - padding-bottom: 0; - overflow: visible !important; - } - .navbar-collapse.in { - overflow-y: visible; - } - .navbar-collapse .navbar-nav.navbar-left:first-child { - margin-left: -15px; - } - .navbar-collapse .navbar-nav.navbar-right:last-child { - margin-right: -15px; - } - .navbar-collapse .navbar-text:last-child { - margin-right: 0; - } -} -.container > .navbar-header, -.container > .navbar-collapse { - margin-right: -15px; - margin-left: -15px; -} -@media (min-width: 992px) { - .container > .navbar-header, - .container > .navbar-collapse { - margin-right: 0; - margin-left: 0; - } -} -.navbar-static-top { - border-width: 0 0 1px; -} -@media (min-width: 992px) { - .navbar-static-top { - border-radius: 0; - } -} -.navbar-fixed-top, -.navbar-fixed-bottom { - position: fixed; - right: 0; - left: 0; - border-width: 0 0 1px; -} -@media (min-width: 992px) { - .navbar-fixed-top, - .navbar-fixed-bottom { - border-radius: 0; - } -} -.navbar-fixed-top { - z-index: 1030; - top: 0; -} -.navbar-fixed-bottom { - bottom: 0; - margin-bottom: 0; -} -.navbar-brand { - float: left; - padding: 15px 15px; - font-size: 18px; - line-height: 20px; -} -.navbar-brand:hover, -.navbar-brand:focus { - text-decoration: none; -} -@media (min-width: 992px) { - .navbar > .container .navbar-brand { - margin-left: -15px; - } -} -.navbar-toggle { - position: relative; - float: right; - margin-right: 15px; - padding: 9px 10px; - margin-top: 8px; - margin-bottom: 8px; - background-color: transparent; - border: 1px solid transparent; - border-radius: 4px; -} -.navbar-toggle .icon-bar { - display: block; - width: 22px; - height: 2px; - border-radius: 1px; -} -.navbar-toggle .icon-bar + .icon-bar { - margin-top: 4px; -} -@media (min-width: 992px) { - .navbar-toggle { - display: none; - } -} -.navbar-nav { - margin: 7.5px -15px; -} -.navbar-nav > li > a { - padding-top: 10px; - padding-bottom: 10px; - line-height: 20px; -} -@media (max-width: 767px) { - .navbar-nav .open .dropdown-menu { - position: static; - float: none; - width: auto; - margin-top: 0; - background-color: transparent; - border: 0; - box-shadow: none; - } - .navbar-nav .open .dropdown-menu > li > a, - .navbar-nav .open .dropdown-menu .dropdown-header { - padding: 5px 15px 5px 25px; - } - .navbar-nav .open .dropdown-menu > li > a { - line-height: 20px; - } - .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-nav .open .dropdown-menu > li > a:focus { - background-image: none; - } -} -@media (min-width: 992px) { - .navbar-nav { - float: left; - margin: 0; - } - .navbar-nav > li { - float: left; - } - .navbar-nav > li > a { - padding-top: 15px; - padding-bottom: 15px; - } -} -@media (min-width: 992px) { - .navbar-left { - float: left !important; - } - .navbar-right { - float: right !important; - } -} -.navbar-form { - margin-left: -15px; - margin-right: -15px; - padding: 10px 15px; - border-top: 1px solid transparent; - border-bottom: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - margin-top: 8px; - margin-bottom: 8px; -} -@media (min-width: 768px) { - .navbar-form .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - .navbar-form .form-control { - display: inline-block; - } - .navbar-form .radio, - .navbar-form .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - padding-left: 0; - } - .navbar-form .radio input[type="radio"], - .navbar-form .checkbox input[type="checkbox"] { - float: none; - margin-left: 0; - } -} -@media (max-width: 767px) { - .navbar-form .form-group { - margin-bottom: 5px; - } -} -@media (min-width: 992px) { - .navbar-form { - width: auto; - border: 0; - margin-left: 0; - margin-right: 0; - padding-top: 0; - padding-bottom: 0; - -webkit-box-shadow: none; - box-shadow: none; - } -} -.navbar-nav > li > .dropdown-menu { - margin-top: 0; - border-top-right-radius: 0; - border-top-left-radius: 0; -} -.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} -.navbar-nav.pull-right > li > .dropdown-menu, -.navbar-nav > li > .dropdown-menu.pull-right { - left: auto; - right: 0; -} -.navbar-btn { - margin-top: 8px; - margin-bottom: 8px; -} -.navbar-text { - float: left; - margin-top: 15px; - margin-bottom: 15px; -} -@media (min-width: 992px) { - .navbar-text { - margin-left: 15px; - margin-right: 15px; - } -} -.navbar-default { - background-color: #f8f8f8; - border-color: #e7e7e7; -} -.navbar-default .navbar-brand { - color: #777777; -} -.navbar-default .navbar-brand:hover, -.navbar-default .navbar-brand:focus { - color: #5e5e5e; - background-color: transparent; -} -.navbar-default .navbar-text { - color: #777777; -} -.navbar-default .navbar-nav > li > a { - color: #777777; -} -.navbar-default .navbar-nav > li > a:hover, -.navbar-default .navbar-nav > li > a:focus { - color: #333333; - background-color: transparent; -} -.navbar-default .navbar-nav > .active > a, -.navbar-default .navbar-nav > .active > a:hover, -.navbar-default .navbar-nav > .active > a:focus { - color: #555555; - background-color: #e7e7e7; -} -.navbar-default .navbar-nav > .disabled > a, -.navbar-default .navbar-nav > .disabled > a:hover, -.navbar-default .navbar-nav > .disabled > a:focus { - color: #cccccc; - background-color: transparent; -} -.navbar-default .navbar-toggle { - border-color: #dddddd; -} -.navbar-default .navbar-toggle:hover, -.navbar-default .navbar-toggle:focus { - background-color: #dddddd; -} -.navbar-default .navbar-toggle .icon-bar { - background-color: #cccccc; -} -.navbar-default .navbar-collapse, -.navbar-default .navbar-form { - border-color: #e6e6e6; -} -.navbar-default .navbar-nav > .dropdown > a:hover .caret, -.navbar-default .navbar-nav > .dropdown > a:focus .caret { - border-top-color: #333333; - border-bottom-color: #333333; -} -.navbar-default .navbar-nav > .open > a, -.navbar-default .navbar-nav > .open > a:hover, -.navbar-default .navbar-nav > .open > a:focus { - background-color: #e7e7e7; - color: #555555; -} -.navbar-default .navbar-nav > .open > a .caret, -.navbar-default .navbar-nav > .open > a:hover .caret, -.navbar-default .navbar-nav > .open > a:focus .caret { - border-top-color: #555555; - border-bottom-color: #555555; -} -.navbar-default .navbar-nav > .dropdown > a .caret { - border-top-color: #777777; - border-bottom-color: #777777; -} -@media (max-width: 767px) { - .navbar-default .navbar-nav .open .dropdown-menu > li > a { - color: #777777; - } - .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { - color: #333333; - background-color: transparent; - } - .navbar-default .navbar-nav .open .dropdown-menu > .active > a, - .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #555555; - background-color: #e7e7e7; - } - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #cccccc; - background-color: transparent; - } -} -.navbar-default .navbar-link { - color: #777777; -} -.navbar-default .navbar-link:hover { - color: #333333; -} -.navbar-inverse { - background-color: #222222; - border-color: #080808; -} -.navbar-inverse .navbar-brand { - color: #999999; -} -.navbar-inverse .navbar-brand:hover, -.navbar-inverse .navbar-brand:focus { - color: #ffffff; - background-color: transparent; -} -.navbar-inverse .navbar-text { - color: #999999; -} -.navbar-inverse .navbar-nav > li > a { - color: #999999; -} -.navbar-inverse .navbar-nav > li > a:hover, -.navbar-inverse .navbar-nav > li > a:focus { - color: #ffffff; - background-color: transparent; -} -.navbar-inverse .navbar-nav > .active > a, -.navbar-inverse .navbar-nav > .active > a:hover, -.navbar-inverse .navbar-nav > .active > a:focus { - color: #ffffff; - background-color: #080808; -} -.navbar-inverse .navbar-nav > .disabled > a, -.navbar-inverse .navbar-nav > .disabled > a:hover, -.navbar-inverse .navbar-nav > .disabled > a:focus { - color: #444444; - background-color: transparent; -} -.navbar-inverse .navbar-toggle { - border-color: #333333; -} -.navbar-inverse .navbar-toggle:hover, -.navbar-inverse .navbar-toggle:focus { - background-color: #333333; -} -.navbar-inverse .navbar-toggle .icon-bar { - background-color: #ffffff; -} -.navbar-inverse .navbar-collapse, -.navbar-inverse .navbar-form { - border-color: #101010; -} -.navbar-inverse .navbar-nav > .open > a, -.navbar-inverse .navbar-nav > .open > a:hover, -.navbar-inverse .navbar-nav > .open > a:focus { - background-color: #080808; - color: #ffffff; -} -.navbar-inverse .navbar-nav > .dropdown > a:hover .caret { - border-top-color: #ffffff; - border-bottom-color: #ffffff; -} -.navbar-inverse .navbar-nav > .dropdown > a .caret { - border-top-color: #999999; - border-bottom-color: #999999; -} -.navbar-inverse .navbar-nav > .open > a .caret, -.navbar-inverse .navbar-nav > .open > a:hover .caret, -.navbar-inverse .navbar-nav > .open > a:focus .caret { - border-top-color: #ffffff; - border-bottom-color: #ffffff; -} -@media (max-width: 767px) { - .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { - border-color: #080808; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { - color: #999999; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { - color: #ffffff; - background-color: transparent; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #ffffff; - background-color: #080808; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #444444; - background-color: transparent; - } -} -.navbar-inverse .navbar-link { - color: #999999; -} -.navbar-inverse .navbar-link:hover { - color: #ffffff; -} -.breadcrumb { - padding: 8px 15px; - margin-bottom: 20px; - list-style: none; - background-color: #f5f5f5; - border-radius: 4px; -} -.breadcrumb > li { - display: inline-block; -} -.breadcrumb > li + li:before { - content: "/\00a0"; - padding: 0 5px; - color: #cccccc; -} -.breadcrumb > .active { - color: #999999; -} -.pagination { - display: inline-block; - padding-left: 0; - margin: 20px 0; - border-radius: 4px; -} -.pagination > li { - display: inline; -} -.pagination > li > a, -.pagination > li > span { - position: relative; - float: left; - padding: 6px 12px; - line-height: 1.428571429; - text-decoration: none; - background-color: #ffffff; - border: 1px solid #dddddd; - margin-left: -1px; -} -.pagination > li:first-child > a, -.pagination > li:first-child > span { - margin-left: 0; - border-bottom-left-radius: 4px; - border-top-left-radius: 4px; -} -.pagination > li:last-child > a, -.pagination > li:last-child > span { - border-bottom-right-radius: 4px; - border-top-right-radius: 4px; -} -.pagination > li > a:hover, -.pagination > li > span:hover, -.pagination > li > a:focus, -.pagination > li > span:focus { - background-color: #eeeeee; -} -.pagination > .active > a, -.pagination > .active > span, -.pagination > .active > a:hover, -.pagination > .active > span:hover, -.pagination > .active > a:focus, -.pagination > .active > span:focus { - z-index: 2; - color: #ffffff; - background-color: #428bca; - border-color: #428bca; - cursor: default; -} -.pagination > .disabled > span, -.pagination > .disabled > a, -.pagination > .disabled > a:hover, -.pagination > .disabled > a:focus { - color: #999999; - background-color: #ffffff; - border-color: #dddddd; - cursor: not-allowed; -} -.pagination-lg > li > a, -.pagination-lg > li > span { - padding: 10px 16px; - font-size: 18px; -} -.pagination-lg > li:first-child > a, -.pagination-lg > li:first-child > span { - border-bottom-left-radius: 6px; - border-top-left-radius: 6px; -} -.pagination-lg > li:last-child > a, -.pagination-lg > li:last-child > span { - border-bottom-right-radius: 6px; - border-top-right-radius: 6px; -} -.pagination-sm > li > a, -.pagination-sm > li > span { - padding: 5px 10px; - font-size: 12px; -} -.pagination-sm > li:first-child > a, -.pagination-sm > li:first-child > span { - border-bottom-left-radius: 3px; - border-top-left-radius: 3px; -} -.pagination-sm > li:last-child > a, -.pagination-sm > li:last-child > span { - border-bottom-right-radius: 3px; - border-top-right-radius: 3px; -} -.pager { - padding-left: 0; - margin: 20px 0; - list-style: none; - text-align: center; -} -.pager:before, -.pager:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.pager:after { - clear: both; -} -.pager:before, -.pager:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.pager:after { - clear: both; -} -.pager li { - display: inline; -} -.pager li > a, -.pager li > span { - display: inline-block; - padding: 5px 14px; - background-color: #ffffff; - border: 1px solid #dddddd; - border-radius: 15px; -} -.pager li > a:hover, -.pager li > a:focus { - text-decoration: none; - background-color: #eeeeee; -} -.pager .next > a, -.pager .next > span { - float: right; -} -.pager .previous > a, -.pager .previous > span { - float: left; -} -.pager .disabled > a, -.pager .disabled > a:hover, -.pager .disabled > a:focus, -.pager .disabled > span { - color: #999999; - background-color: #ffffff; - cursor: not-allowed; -} -.label { - display: inline; - padding: .2em .6em .3em; - font-size: 75%; - font-weight: bold; - line-height: 1; - color: #ffffff; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25em; -} -.label[href]:hover, -.label[href]:focus { - color: #ffffff; - text-decoration: none; - cursor: pointer; -} -.label:empty { - display: none; -} -.label-default { - background-color: #999999; -} -.label-default[href]:hover, -.label-default[href]:focus { - background-color: #808080; -} -.label-primary { - background-color: #428bca; -} -.label-primary[href]:hover, -.label-primary[href]:focus { - background-color: #3071a9; -} -.label-success { - background-color: #5cb85c; -} -.label-success[href]:hover, -.label-success[href]:focus { - background-color: #449d44; -} -.label-info { - background-color: #5bc0de; -} -.label-info[href]:hover, -.label-info[href]:focus { - background-color: #31b0d5; -} -.label-warning { - background-color: #f0ad4e; -} -.label-warning[href]:hover, -.label-warning[href]:focus { - background-color: #ec971f; -} -.label-danger { - background-color: #d9534f; -} -.label-danger[href]:hover, -.label-danger[href]:focus { - background-color: #c9302c; -} -.badge { - display: inline-block; - min-width: 10px; - padding: 3px 7px; - font-size: 12px; - font-weight: bold; - color: #ffffff; - line-height: 1; - vertical-align: baseline; - white-space: nowrap; - text-align: center; - background-color: #999999; - border-radius: 10px; -} -.badge:empty { - display: none; -} -a.badge:hover, -a.badge:focus { - color: #ffffff; - text-decoration: none; - cursor: pointer; -} -.btn .badge { - position: relative; - top: -1px; -} -a.list-group-item.active > .badge, -.nav-pills > .active > a > .badge { - color: #428bca; - background-color: #ffffff; -} -.nav-pills > li > a > .badge { - margin-left: 3px; -} -.jumbotron { - padding: 30px; - margin-bottom: 30px; - font-size: 21px; - font-weight: 200; - line-height: 2.1428571435; - color: inherit; - background-color: #eeeeee; -} -.jumbotron h1 { - line-height: 1; - color: inherit; -} -.jumbotron p { - line-height: 1.4; -} -.container .jumbotron { - border-radius: 6px; -} -@media screen and (min-width: 768px) { - .jumbotron { - padding-top: 48px; - padding-bottom: 48px; - } - .container .jumbotron { - padding-left: 60px; - padding-right: 60px; - } - .jumbotron h1 { - font-size: 63px; - } -} -.thumbnail { - padding: 4px; - line-height: 1.428571429; - background-color: #ffffff; - border: 1px solid #dddddd; - border-radius: 4px; - -webkit-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; - display: inline-block; - max-width: 100%; - height: auto; - display: block; -} -.thumbnail > img { - display: block; - max-width: 100%; - height: auto; -} -a.thumbnail:hover, -a.thumbnail:focus { - border-color: #428bca; -} -.thumbnail > img { - margin-left: auto; - margin-right: auto; -} -.thumbnail .caption { - padding: 9px; - color: #333333; -} -.alert { - padding: 15px; - margin-bottom: 20px; - border: 1px solid transparent; - border-radius: 4px; -} -.alert h4 { - margin-top: 0; - color: inherit; -} -.alert .alert-link { - font-weight: bold; -} -.alert > p, -.alert > ul { - margin-bottom: 0; -} -.alert > p + p { - margin-top: 5px; -} -.alert-dismissable { - padding-right: 35px; -} -.alert-dismissable .close { - position: relative; - top: -2px; - right: -21px; - color: inherit; -} -.alert-success { - background-color: #dff0d8; - border-color: #d6e9c6; - color: #468847; -} -.alert-success hr { - border-top-color: #c9e2b3; -} -.alert-success .alert-link { - color: #356635; -} -.alert-info { - background-color: #d9edf7; - border-color: #bce8f1; - color: #3a87ad; -} -.alert-info hr { - border-top-color: #a6e1ec; -} -.alert-info .alert-link { - color: #2d6987; -} -.alert-warning { - background-color: #fcf8e3; - border-color: #fbeed5; - color: #c09853; -} -.alert-warning hr { - border-top-color: #f8e5be; -} -.alert-warning .alert-link { - color: #a47e3c; -} -.alert-danger { - background-color: #f2dede; - border-color: #eed3d7; - color: #b94a48; -} -.alert-danger hr { - border-top-color: #e6c1c7; -} -.alert-danger .alert-link { - color: #953b39; -} -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} -@-moz-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} -@-o-keyframes progress-bar-stripes { - from { - background-position: 0 0; - } - to { - background-position: 40px 0; - } -} -@keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} -.progress { - overflow: hidden; - height: 20px; - margin-bottom: 20px; - background-color: #f5f5f5; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -} -.progress-bar { - float: left; - width: 0%; - height: 100%; - font-size: 12px; - color: #ffffff; - text-align: center; - background-color: #428bca; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -webkit-transition: width 0.6s ease; - transition: width 0.6s ease; -} -.progress-striped .progress-bar { - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 40px 40px; -} -.progress.active .progress-bar { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -moz-animation: progress-bar-stripes 2s linear infinite; - -ms-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; -} -.progress-bar-success { - background-color: #5cb85c; -} -.progress-striped .progress-bar-success { - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} -.progress-bar-info { - background-color: #5bc0de; -} -.progress-striped .progress-bar-info { - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} -.progress-bar-warning { - background-color: #f0ad4e; -} -.progress-striped .progress-bar-warning { - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} -.progress-bar-danger { - background-color: #d9534f; -} -.progress-striped .progress-bar-danger { - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} -.media, -.media-body { - overflow: hidden; - zoom: 1; -} -.media, -.media .media { - margin-top: 15px; -} -.media:first-child { - margin-top: 0; -} -.media-object { - display: block; -} -.media-heading { - margin: 0 0 5px; -} -.media > .pull-left { - margin-right: 10px; -} -.media > .pull-right { - margin-left: 10px; -} -.media-list { - padding-left: 0; - list-style: none; -} -.list-group { - margin-bottom: 20px; - padding-left: 0; -} -.list-group-item { - position: relative; - display: block; - padding: 10px 15px; - margin-bottom: -1px; - background-color: #ffffff; - border: 1px solid #dddddd; -} -.list-group-item:first-child { - border-top-right-radius: 4px; - border-top-left-radius: 4px; -} -.list-group-item:last-child { - margin-bottom: 0; - border-bottom-right-radius: 4px; - border-bottom-left-radius: 4px; -} -.list-group-item > .badge { - float: right; -} -.list-group-item > .badge + .badge { - margin-right: 5px; -} -a.list-group-item { - color: #555555; -} -a.list-group-item .list-group-item-heading { - color: #333333; -} -a.list-group-item:hover, -a.list-group-item:focus { - text-decoration: none; - background-color: #f5f5f5; -} -.list-group-item.active, -.list-group-item.active:hover, -.list-group-item.active:focus { - z-index: 2; - color: #ffffff; - background-color: #428bca; - border-color: #428bca; -} -.list-group-item.active .list-group-item-heading, -.list-group-item.active:hover .list-group-item-heading, -.list-group-item.active:focus .list-group-item-heading { - color: inherit; -} -.list-group-item.active .list-group-item-text, -.list-group-item.active:hover .list-group-item-text, -.list-group-item.active:focus .list-group-item-text { - color: #e1edf7; -} -.list-group-item-heading { - margin-top: 0; - margin-bottom: 5px; -} -.list-group-item-text { - margin-bottom: 0; - line-height: 1.3; -} -.panel { - margin-bottom: 20px; - background-color: #ffffff; - border: 1px solid transparent; - border-radius: 4px; - -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); -} -.panel-body { - padding: 15px; -} -.panel-body:before, -.panel-body:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.panel-body:after { - clear: both; -} -.panel-body:before, -.panel-body:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.panel-body:after { - clear: both; -} -.panel > .list-group { - margin-bottom: 0; -} -.panel > .list-group .list-group-item { - border-width: 1px 0; -} -.panel > .list-group .list-group-item:first-child { - border-top-right-radius: 0; - border-top-left-radius: 0; -} -.panel > .list-group .list-group-item:last-child { - border-bottom: 0; -} -.panel-heading + .list-group .list-group-item:first-child { - border-top-width: 0; -} -.panel > .table { - margin-bottom: 0; -} -.panel > .panel-body + .table { - border-top: 1px solid #dddddd; -} -.panel-heading { - padding: 10px 15px; - border-bottom: 1px solid transparent; - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} -.panel-title { - margin-top: 0; - margin-bottom: 0; - font-size: 16px; -} -.panel-title > a { - color: inherit; -} -.panel-footer { - padding: 10px 15px; - background-color: #f5f5f5; - border-top: 1px solid #dddddd; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} -.panel-group .panel { - margin-bottom: 0; - border-radius: 4px; - overflow: hidden; -} -.panel-group .panel + .panel { - margin-top: 5px; -} -.panel-group .panel-heading { - border-bottom: 0; -} -.panel-group .panel-heading + .panel-collapse .panel-body { - border-top: 1px solid #dddddd; -} -.panel-group .panel-footer { - border-top: 0; -} -.panel-group .panel-footer + .panel-collapse .panel-body { - border-bottom: 1px solid #dddddd; -} -.panel-default { - border-color: #dddddd; -} -.panel-default > .panel-heading { - color: #333333; - background-color: #f5f5f5; - border-color: #dddddd; -} -.panel-default > .panel-heading + .panel-collapse .panel-body { - border-top-color: #dddddd; -} -.panel-default > .panel-footer + .panel-collapse .panel-body { - border-bottom-color: #dddddd; -} -.panel-primary { - border-color: #428bca; -} -.panel-primary > .panel-heading { - color: #ffffff; - background-color: #428bca; - border-color: #428bca; -} -.panel-primary > .panel-heading + .panel-collapse .panel-body { - border-top-color: #428bca; -} -.panel-primary > .panel-footer + .panel-collapse .panel-body { - border-bottom-color: #428bca; -} -.panel-success { - border-color: #d6e9c6; -} -.panel-success > .panel-heading { - color: #468847; - background-color: #dff0d8; - border-color: #d6e9c6; -} -.panel-success > .panel-heading + .panel-collapse .panel-body { - border-top-color: #d6e9c6; -} -.panel-success > .panel-footer + .panel-collapse .panel-body { - border-bottom-color: #d6e9c6; -} -.panel-warning { - border-color: #fbeed5; -} -.panel-warning > .panel-heading { - color: #c09853; - background-color: #fcf8e3; - border-color: #fbeed5; -} -.panel-warning > .panel-heading + .panel-collapse .panel-body { - border-top-color: #fbeed5; -} -.panel-warning > .panel-footer + .panel-collapse .panel-body { - border-bottom-color: #fbeed5; -} -.panel-danger { - border-color: #eed3d7; -} -.panel-danger > .panel-heading { - color: #b94a48; - background-color: #f2dede; - border-color: #eed3d7; -} -.panel-danger > .panel-heading + .panel-collapse .panel-body { - border-top-color: #eed3d7; -} -.panel-danger > .panel-footer + .panel-collapse .panel-body { - border-bottom-color: #eed3d7; -} -.panel-info { - border-color: #bce8f1; -} -.panel-info > .panel-heading { - color: #3a87ad; - background-color: #d9edf7; - border-color: #bce8f1; -} -.panel-info > .panel-heading + .panel-collapse .panel-body { - border-top-color: #bce8f1; -} -.panel-info > .panel-footer + .panel-collapse .panel-body { - border-bottom-color: #bce8f1; -} -.well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -} -.well blockquote { - border-color: #ddd; - border-color: rgba(0, 0, 0, 0.15); -} -.well-lg { - padding: 24px; - border-radius: 6px; -} -.well-sm { - padding: 9px; - border-radius: 3px; -} -.close { - float: right; - font-size: 21px; - font-weight: bold; - line-height: 1; - color: #000000; - text-shadow: 0 1px 0 #ffffff; - opacity: 0.2; - filter: alpha(opacity=20); -} -.close:hover, -.close:focus { - color: #000000; - text-decoration: none; - cursor: pointer; - opacity: 0.5; - filter: alpha(opacity=50); -} -button.close { - padding: 0; - cursor: pointer; - background: transparent; - border: 0; - -webkit-appearance: none; -} -.modal-open { - overflow: hidden; -} -body.modal-open, -.modal-open .navbar-fixed-top, -.modal-open .navbar-fixed-bottom { - margin-right: 15px; -} -.modal { - display: none; - overflow: auto; - overflow-y: scroll; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; -} -.modal.fade .modal-dialog { - -webkit-transform: translate(0, -25%); - -ms-transform: translate(0, -25%); - transform: translate(0, -25%); - -webkit-transition: -webkit-transform 0.3s ease-out; - -moz-transition: -moz-transform 0.3s ease-out; - -o-transition: -o-transform 0.3s ease-out; - transition: transform 0.3s ease-out; -} -.modal.in .modal-dialog { - -webkit-transform: translate(0, 0); - -ms-transform: translate(0, 0); - transform: translate(0, 0); -} -.modal-dialog { - margin-left: auto; - margin-right: auto; - width: auto; - padding: 10px; - z-index: 1050; -} -.modal-content { - position: relative; - background-color: #ffffff; - border: 1px solid #999999; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - background-clip: padding-box; - outline: none; -} -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1030; - background-color: #000000; -} -.modal-backdrop.fade { - opacity: 0; - filter: alpha(opacity=0); -} -.modal-backdrop.in { - opacity: 0.5; - filter: alpha(opacity=50); -} -.modal-header { - padding: 15px; - border-bottom: 1px solid #e5e5e5; - min-height: 16.428571429px; -} -.modal-header .close { - margin-top: -2px; -} -.modal-title { - margin: 0; - line-height: 1.428571429; -} -.modal-body { - position: relative; - padding: 20px; -} -.modal-footer { - margin-top: 15px; - padding: 19px 20px 20px; - text-align: right; - border-top: 1px solid #e5e5e5; -} -.modal-footer:before, -.modal-footer:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.modal-footer:after { - clear: both; -} -.modal-footer:before, -.modal-footer:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.modal-footer:after { - clear: both; -} -.modal-footer .btn + .btn { - margin-left: 5px; - margin-bottom: 0; -} -.modal-footer .btn-group .btn + .btn { - margin-left: -1px; -} -.modal-footer .btn-block + .btn-block { - margin-left: 0; -} -@media screen and (min-width: 768px) { - .modal-dialog { - left: 50%; - right: auto; - width: 600px; - padding-top: 30px; - padding-bottom: 30px; - } - .modal-content { - -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); - } -} -.tooltip { - position: absolute; - z-index: 1030; - display: block; - visibility: visible; - font-size: 12px; - line-height: 1.4; - opacity: 0; - filter: alpha(opacity=0); -} -.tooltip.in { - opacity: 0.9; - filter: alpha(opacity=90); -} -.tooltip.top { - margin-top: -3px; - padding: 5px 0; -} -.tooltip.right { - margin-left: 3px; - padding: 0 5px; -} -.tooltip.bottom { - margin-top: 3px; - padding: 5px 0; -} -.tooltip.left { - margin-left: -3px; - padding: 0 5px; -} -.tooltip-inner { - max-width: 200px; - padding: 3px 8px; - color: #ffffff; - text-align: center; - text-decoration: none; - background-color: #000000; - border-radius: 4px; -} -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} -.tooltip.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -5px; - border-width: 5px 5px 0; - border-top-color: #000000; -} -.tooltip.top-left .tooltip-arrow { - bottom: 0; - left: 5px; - border-width: 5px 5px 0; - border-top-color: #000000; -} -.tooltip.top-right .tooltip-arrow { - bottom: 0; - right: 5px; - border-width: 5px 5px 0; - border-top-color: #000000; -} -.tooltip.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -5px; - border-width: 5px 5px 5px 0; - border-right-color: #000000; -} -.tooltip.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -5px; - border-width: 5px 0 5px 5px; - border-left-color: #000000; -} -.tooltip.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; -} -.tooltip.bottom-left .tooltip-arrow { - top: 0; - left: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; -} -.tooltip.bottom-right .tooltip-arrow { - top: 0; - right: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; -} -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1010; - display: none; - max-width: 276px; - padding: 1px; - text-align: left; - background-color: #ffffff; - background-clip: padding-box; - border: 1px solid #cccccc; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - white-space: normal; -} -.popover.top { - margin-top: -10px; -} -.popover.right { - margin-left: 10px; -} -.popover.bottom { - margin-top: 10px; -} -.popover.left { - margin-left: -10px; -} -.popover-title { - margin: 0; - padding: 8px 14px; - font-size: 14px; - font-weight: normal; - line-height: 18px; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-radius: 5px 5px 0 0; -} -.popover-content { - padding: 9px 14px; -} -.popover .arrow, -.popover .arrow:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} -.popover .arrow { - border-width: 11px; -} -.popover .arrow:after { - border-width: 10px; - content: ""; -} -.popover.top .arrow { - left: 50%; - margin-left: -11px; - border-bottom-width: 0; - border-top-color: #999999; - border-top-color: rgba(0, 0, 0, 0.25); - bottom: -11px; -} -.popover.top .arrow:after { - content: " "; - bottom: 1px; - margin-left: -10px; - border-bottom-width: 0; - border-top-color: #ffffff; -} -.popover.right .arrow { - top: 50%; - left: -11px; - margin-top: -11px; - border-left-width: 0; - border-right-color: #999999; - border-right-color: rgba(0, 0, 0, 0.25); -} -.popover.right .arrow:after { - content: " "; - left: 1px; - bottom: -10px; - border-left-width: 0; - border-right-color: #ffffff; -} -.popover.bottom .arrow { - left: 50%; - margin-left: -11px; - border-top-width: 0; - border-bottom-color: #999999; - border-bottom-color: rgba(0, 0, 0, 0.25); - top: -11px; -} -.popover.bottom .arrow:after { - content: " "; - top: 1px; - margin-left: -10px; - border-top-width: 0; - border-bottom-color: #ffffff; -} -.popover.left .arrow { - top: 50%; - right: -11px; - margin-top: -11px; - border-right-width: 0; - border-left-color: #999999; - border-left-color: rgba(0, 0, 0, 0.25); -} -.popover.left .arrow:after { - content: " "; - right: 1px; - border-right-width: 0; - border-left-color: #ffffff; - bottom: -10px; -} -.carousel { - position: relative; -} -.carousel-inner { - position: relative; - overflow: hidden; - width: 100%; -} -.carousel-inner > .item { - display: none; - position: relative; - -webkit-transition: 0.6s ease-in-out left; - transition: 0.6s ease-in-out left; -} -.carousel-inner > .item > img, -.carousel-inner > .item > a > img { - display: block; - max-width: 100%; - height: auto; - line-height: 1; -} -.carousel-inner > .active, -.carousel-inner > .next, -.carousel-inner > .prev { - display: block; -} -.carousel-inner > .active { - left: 0; -} -.carousel-inner > .next, -.carousel-inner > .prev { - position: absolute; - top: 0; - width: 100%; -} -.carousel-inner > .next { - left: 100%; -} -.carousel-inner > .prev { - left: -100%; -} -.carousel-inner > .next.left, -.carousel-inner > .prev.right { - left: 0; -} -.carousel-inner > .active.left { - left: -100%; -} -.carousel-inner > .active.right { - left: 100%; -} -.carousel-control { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 15%; - opacity: 0.5; - filter: alpha(opacity=50); - font-size: 20px; - color: #ffffff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); -} -.carousel-control.left { - background-image: -webkit-gradient(linear, 0% top, 100% top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001))); - background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0%), color-stop(rgba(0, 0, 0, 0.0001) 100%)); - background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); -} -.carousel-control.right { - left: auto; - right: 0; - background-image: -webkit-gradient(linear, 0% top, 100% top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5))); - background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0%), color-stop(rgba(0, 0, 0, 0.5) 100%)); - background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); -} -.carousel-control:hover, -.carousel-control:focus { - color: #ffffff; - text-decoration: none; - opacity: 0.9; - filter: alpha(opacity=90); -} -.carousel-control .icon-prev, -.carousel-control .icon-next, -.carousel-control .glyphicon-chevron-left, -.carousel-control .glyphicon-chevron-right { - position: absolute; - top: 50%; - left: 50%; - z-index: 5; - display: inline-block; -} -.carousel-control .icon-prev, -.carousel-control .icon-next { - width: 20px; - height: 20px; - margin-top: -10px; - margin-left: -10px; - font-family: serif; -} -.carousel-control .icon-prev:before { - content: '\2039'; -} -.carousel-control .icon-next:before { - content: '\203a'; -} -.carousel-indicators { - position: absolute; - bottom: 10px; - left: 50%; - z-index: 15; - width: 60%; - margin-left: -30%; - padding-left: 0; - list-style: none; - text-align: center; -} -.carousel-indicators li { - display: inline-block; - width: 10px; - height: 10px; - margin: 1px; - text-indent: -999px; - border: 1px solid #ffffff; - border-radius: 10px; - cursor: pointer; -} -.carousel-indicators .active { - margin: 0; - width: 12px; - height: 12px; - background-color: #ffffff; -} -.carousel-caption { - position: absolute; - left: 15%; - right: 15%; - bottom: 20px; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #ffffff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); -} -.carousel-caption .btn { - text-shadow: none; -} -@media screen and (min-width: 768px) { - .carousel-control .icon-prev, - .carousel-control .icon-next { - width: 30px; - height: 30px; - margin-top: -15px; - margin-left: -15px; - font-size: 30px; - } - .carousel-caption { - left: 20%; - right: 20%; - padding-bottom: 30px; - } - .carousel-indicators { - bottom: 20px; - } -} -.clearfix:before, -.clearfix:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - -} -.clearfix:after { - clear: both; -} -.pull-right { - float: right !important; -} -.pull-left { - float: left !important; -} -.hide { - display: none !important; -} -.show { - display: block !important; -} -.invisible { - visibility: hidden; -} -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} -.affix { - position: fixed; -} -@-ms-viewport { - width: device-width; -} -@media screen and (max-width: 400px) { - @-ms-viewport { - width: 320px; - } -} -.hidden { - display: none !important; - visibility: hidden !important; -} -.visible-xs { - display: none !important; -} -tr.visible-xs { - display: none !important; -} -th.visible-xs, -td.visible-xs { - display: none !important; -} -@media (max-width: 767px) { - .visible-xs { - display: block !important; - } - tr.visible-xs { - display: table-row !important; - } - th.visible-xs, - td.visible-xs { - display: table-cell !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-xs.visible-sm { - display: block !important; - } - tr.visible-xs.visible-sm { - display: table-row !important; - } - th.visible-xs.visible-sm, - td.visible-xs.visible-sm { - display: table-cell !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-xs.visible-md { - display: block !important; - } - tr.visible-xs.visible-md { - display: table-row !important; - } - th.visible-xs.visible-md, - td.visible-xs.visible-md { - display: table-cell !important; - } -} -@media (min-width: 1200px) { - .visible-xs.visible-lg { - display: block !important; - } - tr.visible-xs.visible-lg { - display: table-row !important; - } - th.visible-xs.visible-lg, - td.visible-xs.visible-lg { - display: table-cell !important; - } -} -.visible-sm { - display: none !important; -} -tr.visible-sm { - display: none !important; -} -th.visible-sm, -td.visible-sm { - display: none !important; -} -@media (max-width: 767px) { - .visible-sm.visible-xs { - display: block !important; - } - tr.visible-sm.visible-xs { - display: table-row !important; - } - th.visible-sm.visible-xs, - td.visible-sm.visible-xs { - display: table-cell !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm { - display: block !important; - } - tr.visible-sm { - display: table-row !important; - } - th.visible-sm, - td.visible-sm { - display: table-cell !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-sm.visible-md { - display: block !important; - } - tr.visible-sm.visible-md { - display: table-row !important; - } - th.visible-sm.visible-md, - td.visible-sm.visible-md { - display: table-cell !important; - } -} -@media (min-width: 1200px) { - .visible-sm.visible-lg { - display: block !important; - } - tr.visible-sm.visible-lg { - display: table-row !important; - } - th.visible-sm.visible-lg, - td.visible-sm.visible-lg { - display: table-cell !important; - } -} -.visible-md { - display: none !important; -} -tr.visible-md { - display: none !important; -} -th.visible-md, -td.visible-md { - display: none !important; -} -@media (max-width: 767px) { - .visible-md.visible-xs { - display: block !important; - } - tr.visible-md.visible-xs { - display: table-row !important; - } - th.visible-md.visible-xs, - td.visible-md.visible-xs { - display: table-cell !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-md.visible-sm { - display: block !important; - } - tr.visible-md.visible-sm { - display: table-row !important; - } - th.visible-md.visible-sm, - td.visible-md.visible-sm { - display: table-cell !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md { - display: block !important; - } - tr.visible-md { - display: table-row !important; - } - th.visible-md, - td.visible-md { - display: table-cell !important; - } -} -@media (min-width: 1200px) { - .visible-md.visible-lg { - display: block !important; - } - tr.visible-md.visible-lg { - display: table-row !important; - } - th.visible-md.visible-lg, - td.visible-md.visible-lg { - display: table-cell !important; - } -} -.visible-lg { - display: none !important; -} -tr.visible-lg { - display: none !important; -} -th.visible-lg, -td.visible-lg { - display: none !important; -} -@media (max-width: 767px) { - .visible-lg.visible-xs { - display: block !important; - } - tr.visible-lg.visible-xs { - display: table-row !important; - } - th.visible-lg.visible-xs, - td.visible-lg.visible-xs { - display: table-cell !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-lg.visible-sm { - display: block !important; - } - tr.visible-lg.visible-sm { - display: table-row !important; - } - th.visible-lg.visible-sm, - td.visible-lg.visible-sm { - display: table-cell !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-lg.visible-md { - display: block !important; - } - tr.visible-lg.visible-md { - display: table-row !important; - } - th.visible-lg.visible-md, - td.visible-lg.visible-md { - display: table-cell !important; - } -} -@media (min-width: 1200px) { - .visible-lg { - display: block !important; - } - tr.visible-lg { - display: table-row !important; - } - th.visible-lg, - td.visible-lg { - display: table-cell !important; - } -} -.hidden-xs { - display: block !important; -} -tr.hidden-xs { - display: table-row !important; -} -th.hidden-xs, -td.hidden-xs { - display: table-cell !important; -} -@media (max-width: 767px) { - .hidden-xs { - display: none !important; - } - tr.hidden-xs { - display: none !important; - } - th.hidden-xs, - td.hidden-xs { - display: none !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .hidden-xs.hidden-sm { - display: none !important; - } - tr.hidden-xs.hidden-sm { - display: none !important; - } - th.hidden-xs.hidden-sm, - td.hidden-xs.hidden-sm { - display: none !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .hidden-xs.hidden-md { - display: none !important; - } - tr.hidden-xs.hidden-md { - display: none !important; - } - th.hidden-xs.hidden-md, - td.hidden-xs.hidden-md { - display: none !important; - } -} -@media (min-width: 1200px) { - .hidden-xs.hidden-lg { - display: none !important; - } - tr.hidden-xs.hidden-lg { - display: none !important; - } - th.hidden-xs.hidden-lg, - td.hidden-xs.hidden-lg { - display: none !important; - } -} -.hidden-sm { - display: block !important; -} -tr.hidden-sm { - display: table-row !important; -} -th.hidden-sm, -td.hidden-sm { - display: table-cell !important; -} -@media (max-width: 767px) { - .hidden-sm.hidden-xs { - display: none !important; - } - tr.hidden-sm.hidden-xs { - display: none !important; - } - th.hidden-sm.hidden-xs, - td.hidden-sm.hidden-xs { - display: none !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .hidden-sm { - display: none !important; - } - tr.hidden-sm { - display: none !important; - } - th.hidden-sm, - td.hidden-sm { - display: none !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .hidden-sm.hidden-md { - display: none !important; - } - tr.hidden-sm.hidden-md { - display: none !important; - } - th.hidden-sm.hidden-md, - td.hidden-sm.hidden-md { - display: none !important; - } -} -@media (min-width: 1200px) { - .hidden-sm.hidden-lg { - display: none !important; - } - tr.hidden-sm.hidden-lg { - display: none !important; - } - th.hidden-sm.hidden-lg, - td.hidden-sm.hidden-lg { - display: none !important; - } -} -.hidden-md { - display: block !important; -} -tr.hidden-md { - display: table-row !important; -} -th.hidden-md, -td.hidden-md { - display: table-cell !important; -} -@media (max-width: 767px) { - .hidden-md.hidden-xs { - display: none !important; - } - tr.hidden-md.hidden-xs { - display: none !important; - } - th.hidden-md.hidden-xs, - td.hidden-md.hidden-xs { - display: none !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .hidden-md.hidden-sm { - display: none !important; - } - tr.hidden-md.hidden-sm { - display: none !important; - } - th.hidden-md.hidden-sm, - td.hidden-md.hidden-sm { - display: none !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .hidden-md { - display: none !important; - } - tr.hidden-md { - display: none !important; - } - th.hidden-md, - td.hidden-md { - display: none !important; - } -} -@media (min-width: 1200px) { - .hidden-md.hidden-lg { - display: none !important; - } - tr.hidden-md.hidden-lg { - display: none !important; - } - th.hidden-md.hidden-lg, - td.hidden-md.hidden-lg { - display: none !important; - } -} -.hidden-lg { - display: block !important; -} -tr.hidden-lg { - display: table-row !important; -} -th.hidden-lg, -td.hidden-lg { - display: table-cell !important; -} -@media (max-width: 767px) { - .hidden-lg.hidden-xs { - display: none !important; - } - tr.hidden-lg.hidden-xs { - display: none !important; - } - th.hidden-lg.hidden-xs, - td.hidden-lg.hidden-xs { - display: none !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .hidden-lg.hidden-sm { - display: none !important; - } - tr.hidden-lg.hidden-sm { - display: none !important; - } - th.hidden-lg.hidden-sm, - td.hidden-lg.hidden-sm { - display: none !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .hidden-lg.hidden-md { - display: none !important; - } - tr.hidden-lg.hidden-md { - display: none !important; - } - th.hidden-lg.hidden-md, - td.hidden-lg.hidden-md { - display: none !important; - } -} -@media (min-width: 1200px) { - .hidden-lg { - display: none !important; - } - tr.hidden-lg { - display: none !important; - } - th.hidden-lg, - td.hidden-lg { - display: none !important; - } -} -.visible-print { - display: none !important; -} -tr.visible-print { - display: none !important; -} -th.visible-print, -td.visible-print { - display: none !important; -} -@media print { - .visible-print { - display: block !important; - } - tr.visible-print { - display: table-row !important; - } - th.visible-print, - td.visible-print { - display: table-cell !important; - } - .hidden-print { - display: none !important; - } - tr.hidden-print { - display: none !important; - } - th.hidden-print, - td.hidden-print { - display: none !important; - } -} diff --git a/Docs/reference/themes/mongodb/static/css/mongodb-docs.css b/Docs/reference/themes/mongodb/static/css/mongodb-docs.css deleted file mode 100644 index 659bbac9305..00000000000 --- a/Docs/reference/themes/mongodb/static/css/mongodb-docs.css +++ /dev/null @@ -1,1453 +0,0 @@ -/* - * nature.css_t - * ~~~~~~~~~~~~ - * - * Sphinx stylesheet -- nature theme. - * - * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ -@import url("basic.css"); - -@import url(http://fonts.googleapis.com/css?family=Source+Code+Pro:300,500,700); - -/* -- page layout ----------------------------------------------------------- */ - -#baselineOverlay { - display: none; - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - width: 100%; - height: 100%; - z-index: 2000; - opacity: 0.5; - background: url(../img/24px-baseline-overlay.png) 0 0 repeat; -} - -body { - font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; - margin: 0; - padding: 0; - color: #494747; - -webkit-font-smoothing: antialiased; -} - -hr { border: 1px solid #B1B4B6; } - -.content { - font-size: 16px; - line-height: 24px; -} - -div.body { - overflow-x: auto; -} - -div.related { - color: #fff; - background-color: #402817; - margin-bottom: 0.9em; - font-size:90%; -} - -div.related a { - color: #E2F3CC; -} - -div.related ul { - padding: 0 0 0; -} - -div.footer-nav div.related ul { - padding: 5px 10px 0; -} - -.figure img { - width: 100%; -} - - -p.searchtip { font-size: 93%; } - -/* -- body styles ----------------------------------------------------------- */ - -a { - color: #006cbc; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 { - font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-weight: normal; - line-height: 24px; - color: #313030; - margin: 0; - padding: 0; -} - -div.body h2, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 { - cursor: pointer; -} - -div.body h1 { - border-top: none; - font-size: 36px; - line-height: 48px; - padding: 0; -} -div.body h2 { - font-size: 24px; -} -div.body h3 { - font-size: 18px; - font-weight: bold; - margin-bottom: 0; -} - -div.body h4 { - font-size: 16px; - font-weight: bold; - margin-bottom: 0; -} -div.body h5 { - font-size: 16px; -} -div.body h6 { - font-size: 16px; - font-weight: 300; - } - -div.body h1 + p, div.body h2 + p, div.body h3 + p, div.body h4 + p, -div.body h1 + dl, div.body h2 + dl, div.body h3 + dl, div.body h4 + dl { - padding: 0; - text-indent:0; -} - -div.body h1 + ul, div.body h2 + ul, div.body h3 + ul, div.body h4 + ul, -div.section h1 + ul, div.section h2 + ul, div.section h3 + ul, div.section h4 + ul{ - padding-top:0; - margin-top: 0.3em; - text-indent:0; - margin-left: -1.5em !important; -} - -a.headerlink { - - color: #c60f0f; - font-size: 0.8em; - padding: 0 4px 0 4px; - text-decoration: none; - - -} - -a.headerlink:hover { - background-color: #c60f0f; - color: white; -} - -div.body li { - padding-top: .2em; -} -div.highlight{ background-color: white; } -dl.binary { display: none; } -div.topic { background-color: #eee; } - -table.docutils > div.admonition-example { - background-color:inherit; -} - -div.admonition-example pre { - background-color: #FBFBFB; -} - -div.seealso { - padding-bottom: 7px; -} - -pre { - padding: 24px 12px; - color: #222; - margin: 24px 0; -} - -tt { - color: #000; - font-family: 'Source Code Pro', monospace; -} - -a>tt { - color: #006cbc; -} - -tt.xref, a tt { - font-weight: normal; -} - - -.viewcode-back { font-family: helvetica,arial,sans-serif; } - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} - -/* -p.first, p.last { - margin-bottom: 0 !important; -} -*/ - -table.docutils td { padding: 1px 8px 1em 5px; } - -table.docutils.field-list ul.first.last.simple>li { padding-top: 1em; } -table.docutils.field-list ul.first.last.simple>li>p { padding-top: 1em; } - -div.highlight-javascript>div.highlight>pre>span.hll { background-color: transparent; } -div.highlight-javascript>div.highlight>pre>span.hll>span.nx { font-weight: bold; } - -table.footnote { - font-size: 0.95em; - line-height: 1.3em; -} - -div td pre { - border: none; - -webkit-box-shadow: none; - -moz-box-shadow: none; - margin: 0px; - padding-top: 0px; - padding-right: 8px; - background-color: transparent; -} - -table.docutils { - margin: 24px 0; - font-size: 14px; - line-height: 24px; -} - -table.docutils td { padding: 11px 5px 12px; } - -table.docutils > thead th.head { - padding: 0 5px 12px; -} - -table.docutils td, table.docutils th { - border-color: #ebebed; -} - -table.index-table td { - text-align: left; - border-bottom: none; - border-right: 1px solid #ebebed; - padding-left: 25px; - padding-right: 0px; - padding-bottom: 0px; - padding-top: 5px; -} - -table.index-table td:last-child { - border-right: 0; -} - -table.index-table tr.row-even td p { - line-height: 24px; - margin-bottom: 10px; -} - -table.index-table tr.row-odd td { - text-align: center; - border-bottom: none; - border-right: none; - padding-left: 15px; - padding-right: 15px; - max-height:5px; - padding-top: 0px; -} - -table.index-table { - margin: auto; - width: 98%; /* hack to prevent horizontal scrolling in index.html */ -} - -table.index-table > thead th.head { - text-align: left; - padding: 0 0 5px 24px; - border-bottom: none; -} - -div#mongodb ul { - list-style: none; - padding-left:0px; - padding-right:1em; -} -div#mongodb ul.simple { - list-style:circle; - margin-top: 0px; - padding-left:0px; -} - -div.related li.right { - float: right; - margin-right: 5px; - margin-top: 85px; -} - -#main-db { - padding-top: 2.5em; - padding-bottom: 2em; - background-image: url(../img/back-body.png); - background-repeat: repeat-x; -} - -div#top-right { - position: absolute; - top: -3px; - right: 10px; - *z-index: 10; -} - -div#top-right ul#header-menu-bar { - margin-top: 0; - padding-left: 20px; - height: 38px; - background-image: url(../img/trans-user-left.png); - background-repeat: no-repeat; -} - -div#top-right div.user-right { - float: right; - height: 38px; - min-width: 186px; - margin: 0; - padding: 0 20px 0 0; - font-size: 10pt; - background-image: url(../img/trans-user-right.png); - background-position: top right; - background-repeat: no-repeat; -} - -div#top-right div.user-right li.normal { - float: left; - padding: 8px 1em 0 0; - height: 38px; - background-image: url(../img/trans-user-back.png); - background-repeat: repeat-x; - list-style-type: none; - font-size: 10pt; - color: #c48c55; -} - -div#top-right div.user-right a, div#top-right div.user-right a:visited { - border-right: 1px solid #663f12; - padding-right: 1em; - color: #aa814d; - font-weight: normal; -} - -div#top-right div.user-right li.last, div#top-right div.user-right a.last, div#top-right div.user-right a.last:visited { - padding-right: 0; - border-right: none; -} - -.quick-search { - margin: 0; - padding: 0; -} - -#quick-search input { float: right; } - -.quick-search input { - border: none; - margin: 0; - padding: 0; -} - -input.blank-search, .quick-search .placeholded { - color: #666; -} - -input.blur { color: #666; } - -input[type="text"]:disabled { color: #333; } - -#quick-search-query { width: 13em; } - -input#quick-search-query { - -webkit-appearance:none; - background-color: transparent !important; - position: relative; - top: 7px; - width: 230px; - border: none; - font-size: 73%; - color: #dbcaaf; -} - -input#quick-search-query:active { border:none !important; } - -#quick-search .placeholded { color: #dbcaaf; } - -input.blur { color: #666; } - -input[type="text"]:disabled { color: #333; } - -#quick-search-query { width: 13em; } - -#home-nav { - padding: 0; - background-color: #f6f4cd; -} - -#home-nav a:active, #home-nav a:focus { outline: none; } - -div.split ul.home-nav { - margin: 0; - height: 62px; - padding: 15px 0 4px 0; - width: 980px; -} - -div.split ul.home-nav li { - float: left; - margin: 0; - padding: 0; - list-style-type: none; - list-style-image: none; -} - -ul.home-nav li.docs { width: 276px; } - -ul.home-nav li.docs a, ul.home-nav li.docs a:visited { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) -11px -63px; - width: 209px; - height: 54px; -} - -ul.home-nav li.docs a:hover { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) -11px 0; - width: 209px; - height: 54px; -} - -ul.home-nav li.try { width: 238px; } - -ul.home-nav li.try a, ul.home-nav li.try a:visited { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) -274px -63px; - width: 176px; - height: 54px; -} - -ul.home-nav li.try a:hover { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) -274px 0; - width: 176px; - height: 54px; -} - -ul.home-nav li.downloads { width: 245px; } - -ul.home-nav li.downloads a, ul.home-nav li.downloads a:visited { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) -497px -63px; - width: 185px; - height: 54px; -} - -ul.home-nav li.downloads a:hover { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) -497px 0; - width: 185px; - height: 54px; -} - -ul.home-nav li.drivers { - width: 192px; -} - -ul.home-nav li.drivers a, ul.home-nav li.drivers a:visited { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) right -63px no-repeat; - width: 194px; - height: 54px; -} - -ul.home-nav li.drivers a:hover { - float: left; - background: url(http://www.mongodb.org/static/images/home_nav.png) right 0 no-repeat; - width: 194px; - height: 54px; -} - -ul.home-nav li .hidden { visibility: hidden; } - -div#docs-header { width: 950px; } - -div#main-db.hidden { display: none; } - -tt,tt span.pre { - font-family: 'Source Code Pro', monospace; -} -tt.descname, -tt.descclassname { - font-size: 16px; - font-weight: 300; -} - -dl.method dt { - margin-bottom: 24px; -} - -dl.method > dt big { - font-family: 'Source Code Pro', monospace; - font-weight: 300; - font-size: 16px; -} - -dl.method > dt em { - font-family: 'Source Code Pro', monospace; - font-weight: 700; - font-style: normal; -} -div.section > h1 + dl.dbcommand > dt {display: none;} -div.section > h1 + dl.operator > dt {display: none;} -div.section > h1 + dl.method > dt {display: none;} -div.section > h1 + dl.pipeline > dt {display: none;} -div.section > h1 + dl.group > dt {display: none;} -div.section > h1 + dl.expression > dt {display: none;} -div.section > h1 + dl.projection > dt {display: none;} - -.body p { - margin: 24px 0; -} - -.body p.caption { - margin-top: 0; -} - -.body li>p { - margin: 0; -} - -div.highlight pre { - background: #f5f6f7 url(../img/code-block-bg.png) 0 0 repeat; - border-radius: 0; - border: none; - border-left: 5px solid #494747; - font-family: 'Source Code Pro', monospace; - font-size: 14px; - line-height: 24px; - overflow: auto; - word-wrap: normal; - white-space: pre; -} - -@media (-webkit-min-device-pixel-ratio: 2), -(min-resolution: 192dpi) { - div.highlight pre { - background: #f5f6f7 url(../img/code-block-bg@2x.png) 0 0 repeat; - background-size: 12px 12px; - } -} - -table.docutils td div.highlight pre { - background: none; - border: none; - padding: 0; -} - -div.section { - margin-top: 48px; -} - -h2 + div.section, -h3 + div.section, -h4 + div.section { - margin-top: 0; -} - -div.section > h2, div.section > h3, div.section > h4 { - margin: 24px 0; -} - -div.section > h3, -div.section > h4 { - margin-bottom: 0; -} - -.body h3 + p, -.body h4 + p { - margin-top: 0; -} - -#btnv { - padding-top: 2em; - padding-bottom: 2.5em; - display: table; - width: 100%; -} - -#btnv .btn-prev-text, -#btnv .btn-next-text, -#btnv .btn-arrow-left, -#btnv .btn-arrow-right { - display: table-cell; - vertical-align: middle; -} - -#btnv .btn-arrow-left, -#btnv .btn-next-text { - text-align: right; -} - -#btnv .btn-arrow-right, -#btnv .btn-prev-text { - text-align: left; -} - -#btnv .btn-prev-text>span, #btnv .btn-next-text>span { - display: inline-block; - width: 270px; -} - -table.docutils tbody tr td div.highlight pre { background-color: inherit; } - -/* somehow, powershell commands starting with a directory reference does not include a div.highlight */ - -div.highlight-powershell pre { background-color: #F5F5F5; } - -div.body li > p.first { margin-bottom: 0; } -h4#vnd {padding:0;margin:0;line-height:1.5;padding-left:10px;} -div.body div.bc { - background: white; - cursor: default; - margin-bottom: 24px; -} -div.body div.bc .fa-home { - font-size: 24px; - margin-top: 2px; -} -div.body div.bc li.jr { float: right; display:none; } -div.body div.bc ul { padding:0; margin:0 } -div.body div.bc ul li { list-style: none; font-size: 13px; display:inline; } -div.body div.bc ul li a { color: #006cbc; } -div.dc span.bcpoint { font-weight: bold; font-size:0.9em; color: #343434; } -div.body div.contents { max-width: 30%; float: right; padding: 0 0.5em 0.5em; margin-left: 1em; } -div.body div.contents.long-toc { max-width: 100%; float: none; margin-left: 0; } -div.body div.contents li { padding-top: .25em; } -div.body div.contents ul { margin: 0; padding-left: 1.5em; } -div.hidden { display: none; } - -#vn { - font-size: 0.85em; -} - -.document .body .edit-link, -.document .body .edit-link:hover { - position: relative; - float: right; - bottom: -9px; - text-decoration: none; - font-size: 24px; - color: #313030; -} - -a > em { font-style: normal; } - -div.versionadded > p > span, div.versionchanged > p > span, div.deprecated > p > span { - font-style: italic; -} - -/* Content */ -.content { - box-sizing: border-box; - width: 1092px; -} - -.content .main-column { - margin-top: 72px; - margin-left: 293px; - min-height: 600px; - width: 800px; - padding: 0 30px; - - transition: margin-left 0.4s cubic-bezier(.02,.01,.47,1); - -moz-transition: margin-left 0.4s cubic-bezier(.02,.01,.47,1); - -webkit-transition: margin-left 0.4s cubic-bezier(.02,.01,.47,1); -} - -#see-also > p { - margin-top: 12.5px; -} - - -/* Header styles */ - -#header-db { - position: fixed; - -webkit-transform: translateZ(0); /* hack around Chrome bug: http://stackoverflow.com/questions/11258877/fixed-element-disappears-in-chrome */ - height: 50px; - top: 0; - left: 0; - width: 100%; - font-size: 31px; - background-color: #3b291f; - color: white; - margin: 0; - padding: 0; - z-index: 100; -} - -#header-db .header-content { - width: 1385px; - padding-left: 12px; - - transition: width 0.4s cubic-bezier(.02,.01,.47,1); - -moz-transition: width 0.4s cubic-bezier(.02,.01,.47,1); - -webkit-transition: width 0.4s cubic-bezier(.02,.01,.47,1); -} - -#header-db .nav-items { - display: inline-block; -} - -#header-db .nav-items > a { - font-size: 14px; -} - -#header-db a { - color: white; -} - -#header-db .logo img { - height: 36px; - vertical-align: top; -} -#header-db .nav-items > a:not(:last-child) { - margin-right: 15px; -} - -div.gsc-control-cse-en, div.gsc-control-cse { padding: 0 !important; } - -form.gsc-search-box { - background-color: rgba(255,255,255,0.3); - border-radius: 6px; - border: 1px solid #3b2920; -} - -.gsc-search-box.gsc-search-box-tools .gsc-search-box .gsc-input { - padding: 0; -} - -div.gsc-input-box, -.gsc-search-box .gsc-input>input:hover, .gsc-input-box-hover, -.gsc-search-box .gsc-input>input:focus, .gsc-input-box-focus { - border: 0; - background: transparent; - box-shadow: none; -} - -/* [name] selector is a hack to override google's stylsheet */ -.gsc-input input.gsc-input[name="search"] { - background-color: transparent !important; - color: white; - font-weight: 300; - font-size: 15px; - height: 1.3em !important; -} - -.gsc-input input.gsc-input::-webkit-input-placeholder, -.gsc-input input.gsc-input:-moz-input-placeholder, -.gsc-input input.gsc-input::-moz-input-placeholder, -.gsc-input input.gsc-input:-ms-input-placeholder { - color: #CCC; -} - -/* Clear search button */ -.gsib_b { - display: none; -} - -/* [title] selector is a hack to override google's stylesheet */ -input.gsc-search-button[title], input.gsc-search-button:hover[title], input.gsc-search-button:focus[title] { - border-color: transparent; - background-color: transparent; - padding: 0 8px; - box-sizing: content-box; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; -} - -#header-db .logo { - padding: 5px 0; -} - -#header-db .search-db { - transition: width 0.3s linear; - -webkit-transition: width 0.3s linear; - -moz-transition: width 0.3s linear; - -o-transition: width 0.3s linear; - margin-left: 45px; - margin-top: 11px; - display: inline-block; -} - -#header-db .search-db.narrow { - width: 98px; -} - -#header-db .search-db.wide { - width: 226px; -} - -/* Footer styles */ -.footer { - width:auto; - font-size:80%; - border:none; - padding: 20px 0; -} - -.footer .copyright { - text-align: center; -} - -.footer p { - margin: 1em 0; - padding: 0; - line-height:1.5; -} - -.footer a { - color: #989898; - text-decoration: underline; -} - -.footer h3 { - margin-top: 10px; - font-size: 16px; -} - -.footer .box { - background-color: #f5f6f7; - min-height: 20px; - padding: 15px; - margin-bottom: 20px; - text-align: left; -} - -.footer .box a { - color: #333; - text-decoration: none; -} - -.footer .box a:hover { - text-decoration: underline; -} - -.footer ul { - list-style-type: none; - padding-left: 20px; -} - -.footer .section-0 { - padding-left: 100px; -} - -.footer .section-1 { - padding-left: 46px; -} - -.footer .section-2 { - padding-left: 64px; -} - -.footer .section-3 { - padding-left: 49px; -} - -@media (max-width: 992px) { - .footer .section-0, - .footer .section-1, - .footer .section-2, - .footer .section-3 { - padding-left: 15px; - } -} - -.social { - height: 21px; - position: absolute; - right: 0; - bottom: 43px; -} - -.right-column .wrapper { - min-height: 100%; - position: relative; - padding-bottom: 100px; -} - -.right-column .social .img { - background-repeat: no-repeat; - background-size: 21px 21px; - width: 21px; - height: 21px; - display: inline-block; -} - -.right-column .social .twitter-icon .img { - background-image: url(../img/social-twitter.png); -} - -.right-column .social .youtube-icon .img { - background-image: url(../img/social-youtube.png); -} - -.right-column .social .facebook-icon .img { - background-image: url(../img/social-facebook.png); -} - -.right-column .social .gplus-icon .img { - background-image: url(../img/social-gplus.png); -} - -@media only screen and (-webkit-min-device-pixel-ratio: 2) { - .right-column .social .twitter-icon .img { - background-image: url(../img/social-twitter@2x.png); - } - - .right-column .social .youtube-icon .img { - background-image: url(../img/social-youtube@2x.png); - } - - .right-column .social .facebook-icon .img { - background-image: url(../img/social-facebook@2x.png); - } - - .right-column .social .gplus-icon .img { - background-image: url(../img/social-gplus@2x.png); - } -} - -/* Numbered steps directive */ -.sequence-block { - display: table; - width: 100%; - table-layout: fixed; - margin: 25px 0; -} - -.sequence-block > .bullet-block { - display: table-cell; - padding-right: 10px; - width: 2.5em; -} - -.sequence-block .sequence-step { - text-align: center; - background-color: #333; - color: white; - width: 24px; - font-weight: bold; - height: 24px; - border-radius: 12px; -} - -.sequence-block > .section { - display: table-cell; -} - -.sequence-block > .section > h4 { - margin: 0; -} - -/* Collapsible sidebar styles */ -.sidebar { - position: fixed; - -webkit-transform: translateZ(0); /* hack around Chrome bug: http://stackoverflow.com/questions/11258877/fixed-element-disappears-in-chrome */ - background-color: #f5f6f7; - width: 293px; - height: auto; - top: 50px; - bottom: 0; - left: 0; - overflow: auto; - font-size: 0.85em; - z-index: 100; - - transition: left 0.4s cubic-bezier(.02,.01,.47,1); - -moz-transition: left 0.4s cubic-bezier(.02,.01,.47,1); - -webkit-transition: left 0.4s cubic-bezier(.02,.01,.47,1); -} - -div.ssidebar { - font-size: 14px; - height: 100%; -} - -div.ssidebarwrapper { - padding: 0; /* overwrites basic.css rules */ - padding-top: 24px; - padding-bottom: 130px; /* Extra padding for the footer items at the bottom */ - min-height: 100%; - position: relative; -} - -div.ssidebar h3 { - padding: 0 12px; - font-size: 14px; - line-height: 24px; - font-weight: bold; - margin: -3px 0 15px 0; -} - -div.ssidebar h3 a.index-link { - text-transform: uppercase; -} - -div.ssidebar h3 a.showlink { - color: #003594; -} - -.ssidebarwrapper > ul > .toctree-l1 { - padding: 11px 0; - line-height: 24px; - - border-top: 1px solid #ebebed; -} - -.ssidebarwrapper > ul > .toctree-l1.current { - background-color: #fff; - border-right: 1px solid #f5f6f7; -} - -.ssidebarwrapper li.toctree-l1 ul > li > a { - line-height: 24px; - display: inline-block; - width: 100%; -} - -.ssidebarwrapper > ul > .toctree-l1:last-child { - border-bottom: 1px solid #ebebed; -} - -.ssidebarwrapper .toctree-l1 li.current.selected-item { - background-color: rgb( 110, 124, 159 ); -} -.ssidebarwrapper .toctree-l1 li.current.selected-item > a, -.ssidebarwrapper .toctree-l1 li.current.selected-item > a > tt { - color: white; -} - -.ssidebarwrapper .toctree-l1 li.current.selected-item > ul { - background-color: white; - color: #333; -} - -.ssidebarwrapper > ul > .toctree-l1 > a { - font-size: 18px; - line-height: 24px; - padding: 0 12px; - width: 100%; - display: inline-block; -} - -.ssidebarwrapper .mms-hosted-search { - margin-top: 15px; -} - -.ssidebarwrapper .nav-footer { - padding: 50px 12px 12px 12px; - position: absolute; - bottom: 48px; -} - -div.ssidebar li.toctree-l2 > a { - text-indent: -12px; - padding-left: 37px; -} -div.ssidebar li.toctree-l3 > a { - text-indent: -12px; - padding-left: 48px; -} -div.ssidebar li.toctree-l4 > a { - text-indent: -12px; - padding-left: 60px; -} -div.ssidebar li.toctree-l5 > a { - text-indent: -12px; - padding-left: 72px; -} - -div.ssidebar p { - color: #333; - margin: 12px 0 5px 12px; - padding: 0 12px; -} - -div.ssidebar form { margin-top: 5px; } - -div.ssidebar p.logo { - color: #888; - padding: 0px; - margin: -18px 5px 5px; -} - -div.ssidebar ul ul, -div.ssidebar ul.want-points { - list-style: none outside none; - margin-left: 0; -} - -div.ssidebar ul { - margin: 10px; - padding: 0; - color: #000; -} - -div.ssidebar ul.extra-contents { - margin-top: -1px; -} - -div.ssidebar a { color: #333; } - -div.ssidebar input { - border: 1px solid #ccc; - font-family: sans-serif; - font-size: 1em; -} -div.ssidebar input[type=text]{ - margin-left: 20px; - width: 11em !important; -} -div.ssidebar input[type="submit"] { - text-align: center; - width: 4.5em !important; -} - -div.ssidebar tt.literal .pre { - font-weight: normal; -} - -div.ssidebarwrapper ul { - margin: 12px 0 0 0; - padding: 0; -} -div.ssidebarwrapper ul li a tt span { - font-size:inherit; -} -div.ssidebarwrapper div.idxcontents { - margin-left: 8px; - font-size: 88%; -} - -/* Options panel */ -.option-popup { - position: fixed; - -webkit-transform: translateZ(0); /* hack around Chrome bug: http://stackoverflow.com/questions/11258877/fixed-element-disappears-in-chrome */ - width: 293px; - height: 303px; - bottom: 0; - left: 0; - box-shadow: 0 -2px 3px rgba(0,0,0,0.15); - z-index: 100; - - transition: bottom 300ms cubic-bezier(.02,.01,.47,1); - -moz-transition: bottom 300ms cubic-bezier(.02,.01,.47,1); - -webkit-transition: bottom 300ms cubic-bezier(.02,.01,.47,1); -} - -.option-popup.closed { - bottom: -255px; -} - -.option-popup .option-header { - cursor: pointer; - height: 50px; - background-color: rgb(49, 48, 48); - color: rgb(160, 159, 158); - padding: 15px 14px; - font-size: 15px; - font-weight: bold; -} - -.option-popup .option-header > .fa-gear { - font-size: 18px; - margin-right: 10px; -} - -.option-popup .option-header > .fa-angle-up, -.option-popup .option-header > .fa-angle-down { - font-size: 18px; -} - -.option-popup .option-body { - height: 253px; - padding: 22px 16px; - background-color: rgb(73, 71, 71); - color: rgb(191, 191, 190); - font-size: 13px; -} - -.option-popup .option-body > ul { - padding: 0; -} - -.option-popup > .option-body > ul > li { - list-style-type: none; - padding-bottom: 20px; -} - -.option-popup .formats-list, -.option-popup .contribute-list { - margin: 0; - padding: 0; -} - -.option-popup .formats-list li, -.option-popup .contribute-list li { - display: inline; - margin-right: 30px; -} - -.option-body > ul > li > label { - color: rgb( 191, 191, 190 ); - line-height: 1.714; - font-weight: normal; -} - -.option-popup .formats-list > li > a, -.option-popup .contribute-list > li > a { - color: rgb( 255, 255, 255 ); - font-weight: bold; - line-height: 0.914; -} - -/* Right column TOC */ - -.content .right-column { - width: 292px; - padding: 0; - position: fixed; - -webkit-transform: translateZ(0); /* hack around Chrome bug: http://stackoverflow.com/questions/11258877/fixed-element-disappears-in-chrome */ - left: 1093px; - top: 72px; - bottom: 0; - overflow-y: auto; - overflow-x: hidden; -} - -.right-column .toc { - padding: 24px 20px; - background-color: rgb( 245, 246, 247 ); - margin-bottom: 24px; -} - -.right-column .toc .toc-header{ - font-size: 14px; - font-weight: bold; -} - -.right-column .toc a { - font-size: 13px; - text-indent: -11px; -} - -/*hack for correct line height*/ -.right-column .toc li { - line-height: 23px; -} -.right-column .toc li a { - line-height: 24px; -} -/*end hack*/ - -.right-column .toc li { - list-style: none; -} - -.right-column .toc ul { - padding: 0; - margin: 0; -} - -.right-column .toc > ul > li > a { - display: none; -} - -/* hack to hide toc items that are more than 2 levels deep */ -.right-column .toc > ul > li > ul > li > ul > li > ul { - display: none; -} - -.right-column .toc > ul > li > ul { - padding-left: 1px; -} - -.right-column .toc > ul > li > ul > li > ul { - padding-left: 13px; -} - -.right-column .toc li > a:before { - content: '\2022'; - color: #333; - opacity: 0.5; - display: inline-block; -} - -/* Admonition styles */ -div.admonition { - margin: 24px 0; - width: auto; - max-width: 100%; - padding: 2px 12px 22px 12px; - border-left: 5px solid transparent; -} - -.admonition .admonition-title { - margin-bottom: 0; - font-size: 12px; - font-weight: bold; - text-transform: uppercase; - line-height: 24px; -} - -.admonition .admonition-title:after { - content: ":"; - font-weight:900; -} - -.admonition > p { - margin: 0 0 12.5px 0; -} - -.admonition > p.last { - margin-bottom: 0; -} - -.admonition.admonition-platform-support, -.admonition.tip, -.admonition.admonition-tip, -.admonition.note { - background-color: #edf4e8; - border-color: #6ba442; -} - -.admonition.admonition-platform-support .admonition-title, -.admonition.tip .admonition-title, -.admonition.note .admonition-title { - color: #89b668; -} - -.admonition.important { - background-color: #fff2d5; - border-color: #ffb618; -} -.admonition.important .admonition-title { - color: #ffb618; -} - -/*.admonition.tip, .admonition-tip { - background-color: #a6c88e; - border-color: #507b32; -}*/ - -.admonition.admonition-optional { - background-color: inherit; - border: 1px solid #DCDCDC; -} - -.admonition.admonition-example { - background-color: #F5F5F5; - color: #000000; -} - -.admonition.warning { - background-color: #fae6e5; - border-color: #ed271c; -} - -.admonition.warning .admonition-title { - color: #ed271c; -} - -div.admonition pre { - margin: 10px 0; -} - -dd > div.admonition { - margin-left: 0; -} - -p > div.admonition { - margin-left:0; -} - -li > div.admonition { - margin-left:0; -} - -div.admonition.note table.docutils tr:last-child td { - border-bottom: 0; -} - -@media (max-width: 1393px) { - #header-db .header-content { - width: 1068px; - } - - .content .right-column { - display: none; - } -} - -.expand-toc-icon { - display: none; -} - -@media (max-width: 1093px) { - .expand-toc-icon { - display: block; - padding-top: 10px; - padding-right: 10px; - color: white; - } - - .expand-toc-icon:hover, - .expand-toc-icon:active { - color: white; - text-decoration: none; - } - - #header-db .header-content { - width: 775px; - padding-left: 25px; - } - - .sidebar { - left: -293px; - box-shadow: 0 0 13px rgba(0,0,0,0.3); - } - - .sidebar.reveal { - left: 0; - } - - .content .main-column { - margin-left: 0; - } -} diff --git a/Docs/reference/themes/mongodb/static/css/overrides.css b/Docs/reference/themes/mongodb/static/css/overrides.css deleted file mode 100644 index abbec57aa0d..00000000000 --- a/Docs/reference/themes/mongodb/static/css/overrides.css +++ /dev/null @@ -1,140 +0,0 @@ -.toggle-nav .fa { - cursor: pointer; - display: inline-block; - font-size: 20px; -} - -.logo { - margin-left: 10px; -} - -.sidebar-menu .fa { - margin: auto 10px; -} - -.sidebar-closed #sidebar { - margin-left: -270px; -} -.sidebar-closed .option-popup { - display: none; -} - -.sidebar-closed .content .main-column { - margin-left: 5px; -} - -.jsEnabled pre { padding: 0px; overflow: auto; word-wrap: normal; white-space: nowrap;} -.jsEnabled pre code { padding: 24px 12px; overflow: auto; white-space: pre;} - -.body blockquote { - background-color: #edf4e8; - border-color: #6ba442; -} -.body blockquote strong { - margin-bottom: 0; - font-size: 12px; - font-weight: bold; - text-transform: uppercase; - line-height: 24px; - background-color: #edf4e8; - border-color: #6ba442; -} -.body blockquote p { margin: 0px; } - - -.sidebar-menu li.toctree-l1 > ul { - display: none; -} -.sidebar-menu li.toctree-l1 > ul.current { - display: block; -} - -.sidebar-menu ul ul { - margin: 0; -} - -.right-column .toc { - display: none; - padding: 12px 20px; -} -.right-column .toc .toc-header { - font-size: 12px; - font-weight: bold; - text-transform: uppercase; - padding-bottom: 10px; -} -.right-column .toc #TableOfContents li > ul { - padding-left: 5px; -} - -.body div.admonition { - padding: 2px 12px 12px 12px; -} - -.body div.admonition h5 { - font-weight: 800; - text-transform: uppercase; -} - -a code { - color: #006cbc; -} - -code { - background-color: #f5f6f7; - color: #494747; -} - -a code { - color: #006cbc; -} - -#search { - visibility: hidden; - display: inline-block; - background-color: rgba(255,255,255,0.3); - border-radius: 6px; - border: 1px solid #3b2920; - font-weight: 300; - font-size: 15px; - padding: 2px; -} - -#search label { - padding-right: 5px; -} - -#search input[name="searchQuery"] { - background-color: transparent !important; - color: white; - border: none; - padding: 2px 0 0 4px; - outline: none; -} - -.jsEnabled #search { - visibility: visible; -} - -@media print { - a[href]:after { - content: none !important; - } - - .edit-link, - .sidebar, - .toggle-nav, - #header-db .nav-items { - display: none !important; - } - - #header-db { - position: inherit !important; - } - - .content .main-column { - margin-top: 0 !important; - margin-left: 0 !important; - width: 100% !important; - } -} diff --git a/Docs/reference/themes/mongodb/static/css/reset.css b/Docs/reference/themes/mongodb/static/css/reset.css deleted file mode 100644 index 78d0b6e37c5..00000000000 --- a/Docs/reference/themes/mongodb/static/css/reset.css +++ /dev/null @@ -1,46 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ - v2.0 | 20110126 - License: none (public domain) -*/ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} - diff --git a/Docs/reference/themes/mongodb/static/favicon.ico b/Docs/reference/themes/mongodb/static/favicon.ico deleted file mode 100644 index 1cb9531f4b7448a65310506ae12f07362362f3b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5361 zcmZ9QWl&s8w}v+`xDHN$puycO1a}KC1PE@y-JM}@3ki0DL$HBB(BPH?f(@?0B|z}t zekbSNAK!O()!J`$_fv1zT3yv$wc>QNl<{$%-~a%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w zseAU=+-hvQ*xO z&xYHQ95aUD ze-I`oODBFdev1P3c-PVL+IN>`r>N-@ZrDT_zoBv@R*s(cPMd`=n&^JPrRII}voGIQ z6hAWbzTyuqpBaCw4D`xry9nN$Cc2-l4YvutQ5Ln*#IIVx{(}N>MZdA@^dQ#2Oq7xw z9zUY(^N&7%<@Qm8Xl1}*TB6$nEX~PCXlT>!{3Q5pJuGCIuvq=&>CQYe8+J+7U#>s+75=7I)7nT6JtPmh8? zn}M(nt4;gO{ttFIU-p|m1cA&H#khL=$y|jF^j@Te&w_$KzMb{o4_YVJp#dZGD(PNs zxyZOAUp|sjg4d`iTVB64uYfNF?GFCAeWXSf{%R&)*LaB;&q4m2cr_AkqInj`jm5+ZGpm?=kVa_(3;v z)a15%k7aUCO-8^qZfRgHE>M=tWzYNmeN5@qo?q~mPv+Jm(3|{Barc(s4B53Z z3e-3B)^oG-_OtY~1pxnr(_u{w?Q>0yQ4NFv-=yF~y$&DWv?$-KsE{s}kdU6r(6DOb z1TQzw1TR8`OKtj6fo)d!FE*wtgiZLY=~`O1O@n{MOo!d#^Z$CgyHWd`u099 zRuU2lZq`07wyxe15;~S|Y>^!`{{=x100;mAc*N_-w%mWgsxC-ILc-qG;f=lbzo>vP z8h|1Wndi{K~<`+y1}U@%zt66kz-hR@1@7);qxc-;9U;W<1UNLmd+U z2ch|!iz~1HKW9ySB>u0Z5Wj$+AfKR!04jiskBZWp&^Lo*ss6)R&mr)CQIP>HQ~>oO uif~7CQWp}U`40%9tNPbY{oi8F&SC<1A5iVnWM0CN9H6SGrBE$r0sSBUpy)RM diff --git a/Docs/reference/themes/mongodb/static/img/24px-baseline-overlay.png b/Docs/reference/themes/mongodb/static/img/24px-baseline-overlay.png deleted file mode 100644 index 9aa62dcdd8330a61271454f5b6d3de15223b9dc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 948 zcmaJ=&yUhT6mGIa4apug=xI_8s|GrqLSfrb5h(1ESVDkAPG(CxKm+a6c96os7*FcK z#G7}$nfMQQa1&3S^laik;KhGnlXc1h>p|?H^WNlr-}~N=dD(6q?I&*~IgZlh*sRONMlA2AHeZWPm}_HAlFEO?&b9D=u-|UfSvPY2SFDTErF1 zI7WzEpP@OfRE~VpnqUeBc;t8*|NGNt9yqqfKa>s8@N0PN94`ahUAB7Ga$+eqU%m%Q zk;({MOid8EQ!i8_jbHJq%#N=i4^|;`qVX4^`bHbnNPvMX$XQF25GX1FlJg2e86b%$ z2ayORC5w=nFRG{j)*sKZ1@=(w=#6zQ=4t$xQeTB|KA#KooIrvRM2ez7QG$|`Wf9qM z;ZZZndSQCQpySXA9G^PG12LmHATz4*OzA}luD_-A!gZTi!(e3k5D8*j(k9R_{vYbP z+vt#X@TJ~=5{JEok6{OgWENO#aKm(*%2#UvHYo{ugiJSGY>x>g;h6ZKRs**U({jAn zzq0}uhT8N(YI+uK>Ke}|1jn(}3X-de+)xy`DkD_SDTn!DJuej+2vzf9qp-p1#G1L- zqZ_P!iLLC!#=GG9EVGUS=LxnO0dc{qX4ToPrMQ!CjkR}cIoyebObm=C``4s5S8RP^ zbGx_9*=|1e*t!R7ue(1p7JCy1O})~KehkjOoqj*PpEx-?KQE(Sskf;YiFe7P>#y&= de^Y(N?Qu6=B|bduUVRk5qh`IOf2^K7{{xDpBd!1d diff --git a/Docs/reference/themes/mongodb/static/img/back-body.png b/Docs/reference/themes/mongodb/static/img/back-body.png deleted file mode 100644 index 0eb9bc5e96055dec37a98e2357eca887b1cf2182..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^j6f{H!2~1^=N$M3q$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~-c71?{bIEGZ*(&;wjYcLQv{O5oFCGDgICs%R@ImWQ_mx)}f zn(^5w>qO(`WL7EO`gOgZ*R1FVdQ&MBb@ E0At=ZhX4Qo diff --git a/Docs/reference/themes/mongodb/static/img/code-block-bg.png b/Docs/reference/themes/mongodb/static/img/code-block-bg.png deleted file mode 100644 index aecf24d6d2090f521a3c3639bbfd19294752b06a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 943 zcmaJ=O^?z*81C*~%*IXJn2piXSS}i+(Q`HxGL7V*CY~7=MC#^RNe}EM+~2O{O#N~b8pXC51EwqH)y zrET{Aa_#dQwq2+79_^3;o!SxRj$G2m!1V1QZe!b>J^6&I9JiD6x;@&n9;y!U1v|wE zi61gH$5juL(00a{f<7L4fyV!M_nrrytMQLyOSD2AkG$h~ggf(Q*O`wU#pMt0foh^M z0UuKvB>rg-tBJ-hbyapwuOSbX5IWZQ^PqZG3+N=mKo;b@BT5LA6#>ab1);k@5>Wvn z5lTuPA+=amQ3%aMS-FOB`MDk`FIvk zJIM!eE>kdY>_lEjJraOa(e9H8)p!=^c?y2GmJQ-nnOMPKVuuh3VwzG0w5jtcP!f+w2y`9XvTVl-Qv3Fj zU|Fge#MBNPY#JKRBm~cM)rzE4YKmM^WL-z7UQjB(8VJ>jVxyFC4dP6E9MFvG zUU17Bx#=wUA@gkD$a{+2MnrtD%vtp|$5Py=x8k~+W05yV6f UzJ1pD221G^GV4v_b?x!gk_!Gd+z&TA)27;yY-FteT=l#6r?bf~Rt-URdAH4>{mIQY@7Q*m*1PnW^y$QoFjsX+4}+#}53q%8cl!7Xu5er?>vg)cYd%mN;tO_) z5fVRSY>ulOCZX+&Fa; zf?%3zGl;1jIJjwOJd+SS&sEEkQm!d-RgrZap?Y2^7fSVlRBRwrD~OHaifa&O?Bjs0 zxb7vF(Km3@S@1*V*}#$a1iOuh_+XK<>TQmtyisq-bvMVNY~(@~3`{%wSEpB3Y<$w= zdTyDqo_rjzagW$s-~SBf>`m-9jcOqI%(|F4s~_kY^@)1biL8v!AHL4p5j z|4Ehki%M&IIobVj{;Mx1B=ZmR|6%{}krDW7{(p-3cc=fLe_E9zmJ#^xv&j)__HY;j z0PT{xl7hY;sKb;fnfbF%NA=~+y(0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b/static/img/gray.png b/Docs/reference/themes/mongodb/static/img/gray.png deleted file mode 100644 index 3807691d3fd91c60a844de3b3328129f514a9c29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19856 zcmV(#K;*xPP)|{N1ssf(@n-<2H7aX%8U1=APHm_T;8LDfnBirPFjPM$?gXxy2U~{-&km4*N#Q zs^v`8=0q5OQrgb~&1jM4yRy_=3^5MygO$&WRP2#VW`i=IV(kOhRBI|N@P>uKd-Bo1 zV2*tQtaJWS8c^w$z#XZFjr@^T$?m9mQW#Bl+&lHnO^1W4%9y*CitFV)&a@ ztG988NwTo7%K2Mk{WR@prqyP}J5pD2ssglkC&WVZFLQ&oyHBLYPuTg%kOfx1HXUcy z_HJ4zNmcu%rcAZrD6IhQ>IpZ;#tg&L5#Ii_x{eQpU^ztVi^zQ7R$qt5&BaRX4Rq-- z*gjf!R;PgqUKH&|uX-R1gRImc!kb~-Y?^wcx3{8?2~nK_dSW=x`X@i{6^m~tu?S2Q2?bk%Ouy85%2 z_yp)O%@Db`#H!M5sLc8qoNqMyTlxGn11QHn2lmaKe3l7ikAGORs+3n*3}o5g!0Ih| zDShg+#>nJe9~3NHzlQdUWZjg-i?KS=>T|B&Sk6Og4mX<1tOvokwPue{d{?w*!mMoI zPq7L%h#BU58gsabFKzQicAae7FO8!t>9;%eWUjxHv4=LPg!+1Jz7gx6ciKr6$PUhq z+f!lwwK;y~wUj!lJofSQM(xaJ>3avvs>%6v4GKQi85PQNZRHh_atKixi8 z*kTX$?rLUy2ebieWklO>RHLk}2j-$X@?To7109hU3}ye&(pd_HUO zq=$V~G^lD%TP(ubZ;qK{rDJOxiw$Wq1a`i;i~~e`OwXhBx<=)PoOq3>-&WZNH~e<# z#{zrOH!JD;H8Kzzp=@xd7>I~>jQj02Vf22zw|-j1v2Yy=~>M3tMWn(7_`)#G3LN-X7+CY`Fi=2p$^0?MDr_^|?ho4!ahJ%w5Ub*j-8Hq>} z>G;v**FC%BF=N&9n%j)446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f%V{$N0Hb z{M>r5vHK-6Ct)$ss~@}fqb*YVD+|zL@nC13_R8_CyrTEP zbi!(lQd)&OW-BCGqas^nVNo6F72_f0&grTAX|@Zt0EKyaT! zz4=XuGi~z(G6%kf@wVFWtwrR|#C~?w3Ru@*^qUD)x$WsGBSZPD$|ra0$lvvnu>#fzMrgJC&C`xROZ(+p&1XoiJFE;v4v zv9Z=(8(BBiO*xFR^c$|I9r({l|G?hqP!z5AU~J{6zM5IEP2(;*W??_yhK;r!&;k`L z)Mk94Xk_jFB+PI}U%NTmvKbL`1>akaxQx_~p1j^WPed9t#-EXSD@(7H^6O#0)=5Pf z05E7NepJR=vGG`Ekn!g<1*ClzYB0&8Ol1 zOhqHd^>ElPdVR`5)9ItqVtm6V*7_^6yh5cgZ6%el1Bsbgu`x&4{)SU`)JfSCtHob3 zvMP+nTwZFo&pMOoiHREfe9}kT#ewhBwmry-Z@PM_#>f5#S@@G3oPhbJ00000NkvXX Hu0mjf6kTjQ diff --git a/Docs/reference/themes/mongodb/static/img/logo-mongodb-header.png b/Docs/reference/themes/mongodb/static/img/logo-mongodb-header.png deleted file mode 100644 index fa2dccfa62000dd90d1095c9a06fcf54a3ace51c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7084 zcmX9@byyVt*IiN?>F$Q5S7|}I!3AMKB$n<@1*AI{mXeZ?ltxOrK^jC9P}n6_Lg`%I z{r=v6CZ03r-ZS^kxiima5)AbRQZ>!A}k1 zXXNSN7ii;S4|s0p3AJa}a<_4`2ix1&1$$4}%L4#R`dX^bjf2(>UcX9X9`pZHRLJAZ z6fqkAm>Y}a$!~djg2!Z7N#)Q-2Pr}SLIZ85)ZHlLaQGq)EIMv8zpdZnb-yJ}p90!y zw{J_!ovC&9uT0}(QAQX`za>bQr+4E?wHYP@WqufM5-F@HTI_zJu>N{^eOYo{Zc_u~ z7*P4Kt44qM8uh-5d9*TG^zPg-p9G^@`l3qj&+~@9e>c1}OqlawD6WCR?LKcyT{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PL^DPT9ST>RY2Rb-#w(W-&leJ0kG`RR1^r==H3w_Z8?xdvAhPXS*<#$A z)&#RIaNrNRz#KRk-HQgZxsP1|#JoAxofZ|&BSiR7p*8bYWeAsekOZXmNYHzq6~B}W<2~&x9W+NLrV-(5P(R&G{`*` zNjwQRSNAuPxtiH6^0eAP3?`J(80s{t>#hR%T=^hhddD|>QM=#6?+|hJ+}S0i)TMQ? zKt)38m!kJslWL%L5i{a%k{xV!qq0dntwf!4^R)N^DF2tXsnfWTBLK%1hzJkt0rXmV zKwRoXK3Ohicg^SkMW)=r{AJLZ zkS-k+M1&N_+#TT~>~%in0g(hJolG1p@TKa-N|y2N;`Xp=T^5r&RJ$&*0raF>`Q$Sd zB3xjAM%i-YU_J-*G`nEbH#*7Uy6?ccE0CRD~BRd|4y2=rr9 zxJ-B%4**nOc})EMbgO&oUJhcRWod}X3&95rmzvmZh2MS;XMWc7_bSC`MayBC7LsB` zjDATcA^{NuXxbxgP659ITi9R5nwD0^6Y$=jZCKWOk)^qOH4cntzOqy#$nGM{~D?;9Gw3? z?T0`pKnsw~P5Z#n787xdzrB*^73E!vw?ZT~Th0m0swx{_kKC#oCPmDVN1!ODl-+-a z3Fq4Wo3O_sWz2OXaIJWOt+pA%{|u?#m<{(u~_iN2J&+T-)BCw3+FOA-$d)6=Amz~-)0UFJL6pMCgJQ{Y?<(w9_ zgMYR3RWt|*1?mu9BytjRQy%GP$w$#^uIOM(&Ys^l(pG_LV+r` zbCEbj00SVE1%0cr`6~Fn?ZL;83gG4B9WO((xR=3$S*Hd}3v^1W;s?(QIEnuEGs@5= zk^=Ep38rbe^{rQWDHBeI(?4xfN(3lr<)%`Np-!()fA*ydg2cjY|xCr1`Qj)a}lIcc_wT?Hb^E&@6g}Mb)8&9bJ8g|zWX@;K086%w#sLx z<9}s00000NkvXXu0mjfp?bGm diff --git a/Docs/reference/themes/mongodb/static/img/social-facebook@2x.png b/Docs/reference/themes/mongodb/static/img/social-facebook@2x.png deleted file mode 100644 index dcbd40748147b41095b6003b83d877aa1ebc60f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 645 zcmV;00($+4P)RCwC#m`iTLFc5}K#2#)yZcz4J z08;nl22F3k4H|Bc8#KK^*jFN5bRSMoxB;Ai&d@P6U`KxCfz)5Jq98Dz#^c{J?j4Uu z=0jiWk1;%kFhUxrf}Z8$>}l^Zf6o>azz`;)G12(Rj=*u`rr^e)062w5q6w$c0Y(NR z1>mh$P+Hp55m2Tj0q>nb0TLtl%IXuQMFg;=6(|7W=E!S^qDn6Sn;C%;Bqsg?YgSTN zDQJt3O4va0#k@sG)EfjVs*I?|jkAGqy_3;@c*hGb9saV>c zcmemRhGcy#2Tc)@vskO|fguHmJvDHPE4Ub~g8|DYbUI)PFhx#=)yF4|MtQAjMvvok35(Yp?UCNjfcbTOK$zCO2XOLmej z*0o_gmyj~hA^Ga43-m*!dKLfZNY8;ax85{DvI5vVQ(U- z1xm0XYvy+EA}5VO1>l72%Xf6~M2xGh#f?CP=pyj5507NOw|<#+yKLF0@qWl8B@UEE fnQn{C^&`LlD&hW2oI>(j00000NkvXXu0mjfC}0`W diff --git a/Docs/reference/themes/mongodb/static/img/social-gplus.png b/Docs/reference/themes/mongodb/static/img/social-gplus.png deleted file mode 100644 index efbac7d18c909d0d9d92bf8b87753644ac2e07de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 497 zcmVNjoaqRQl?C$J2 ztg0%|;%)le$Ilrt0QULl9asSOg2U1A%6&J~NI{t5X9Dzs_9%fA#91RL)y*tbzA=}K zjOv=S17Tp5B@yDtx|w$%4ESzdD}_pF#+|b819$)=i*rx%(H1XKrAFJp9c@_FyX;VnIFF2Bmzj&*S^pk0yK+%}W z?HF*JH$u{v+Dsj*TubfTY4M%7Na?ifexyu`*lOjG{W7vf)WnRY)=Cw7kY;8~`y|?B zsuL0z4}Sp%eBOGfAoJKhrDCe={qsO6c}f*^_vH_pQFbBRuoQ2`_H=k2(6J$G{G6~H n32U1uB`Nuh%ITi9_z_?LA3l_%WKRBH00000NkvXXu0mjfSbN{Y diff --git a/Docs/reference/themes/mongodb/static/img/social-gplus@2x.png b/Docs/reference/themes/mongodb/static/img/social-gplus@2x.png deleted file mode 100644 index 45f130c1a3fffdb0d88a9915fb8f1558a1e5e5bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 928 zcmV;R17G}!P) z{%11@xeG?F_CwS7NH8(F(^PZOF+&mjvEbz^eDp@JcFwWtD&?rjnkBb61h*;Crj>d^ zJ1kpXp5mi(p;b>7jan8aiiE3um~x$2POKAX(6X?qXS;?q{*V>GRpP8^jN#T@gIhi2 zI3&zePK^Dd*0`1zr)+A5dbF8pvZv7`%4eLqSG*rZ6*scIm%s6!@$v?p0@k zB}|2WZfMIl_^7BRjCz5p1%9H%+R#~l6eUHE`~8|aItXZ={q{-SKUo3K#u0TXYaBD2knGZ_MEG&X%u966*B-kn&EKjO*2FRtkc3agEf}u z>yJ=RA*>xBJoujPG~Y>kx3FgW)xntww60+5#a^;7!v!E$1R04=^E6o72MV1mDFRhuHgoJAi5s0DF{3fM8~+1&t;8?@Q&&A+2Qm6JP-IwSd{9^ujU#0000bm5)hA#e|K&=j$;zC zx83s@Ei3qv`~+Jac~5RGuWw8!Hua$d%V}xI*U7XU$Th)R5lTSLsCBYB)*c94|ANi{ zT6-k0{(<7i{S2VBiojci56wRSzd4+sLY3D?27U4|Bm10KtH^~aLv#% z^2>aRd%!!}I`RyNWt6rg*S+{ED+<%}3iM>z~XjshvmKc`c x&0j_;J9$9|p$=R_>q7V&;UYGyp}+YhzyM8djx*DFGK~NL002ovPDHLkV1mWFz!d-h diff --git a/Docs/reference/themes/mongodb/static/img/social-twitter@2x.png b/Docs/reference/themes/mongodb/static/img/social-twitter@2x.png deleted file mode 100644 index e84e6c0d332aee5d6002552fb89ce33449f709ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmV-91IGM`P)3sRwW9O!hrS|XuSCS^pgvXR|!yBcukA?n7mVLYTHHJn4fA!@Y+S0CNYl_jw>EW z-3B48I=&lsfn-C)u~nkZL|)eo%L-DD&k84pa#9i=KGG&+p*(h((Oem6b^}PFNBW4N0bKH#GR7K zvC*QhVrtsbP})Z6EXkuGsP2=p6)^~XZ74j857W~kd00000NkvXXu0mjf DE7);l diff --git a/Docs/reference/themes/mongodb/static/img/social-youtube.png b/Docs/reference/themes/mongodb/static/img/social-youtube.png deleted file mode 100644 index 1cc3167b5b3a49fa807f516f9a02e7cba32fcc88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 418 zcmV;T0bTxyP)3~!~?m;A$;2tU3PbJu@!Sw*3Xo|!ZWv0BCoBz@Eh$k~Om?4r55T~3WS_JQJn;0iAYB0ju?Aj9P zmV;Wl%+iCUd_cVD5TOr>=Z`FKp|Pd8n@>;YqTp%epVLm271_nzWP} zG!=5x5_;(33bB+d{LcVONfE!)P+I&^(nO}p{BnKlY5u5yRt?-&DP|d3WnecDD7`g4 zu@oEa;}9T|JM}5IhdXW=t@|i#wy)hz^#9K3Ja}$r?7xYI75Wum0JltpdZI(duK)l5 M07*qoM6N<$f&_fF;Q#;t diff --git a/Docs/reference/themes/mongodb/static/img/social-youtube@2x.png b/Docs/reference/themes/mongodb/static/img/social-youtube@2x.png deleted file mode 100644 index 033e628ce6553b8805bfc47f5b71c203cbcc2879..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 715 zcmV;+0yO=JP)ItkTu%5tr0`Uaa6IkD!u{`)*P9WTXo&a~pty4;pCT$YBGnw)c=#PIkyPIXS z-|xM?_WkvF4worC4d}XqQQ(8C`E}m+9;2?H02jg~B(RCXN7gV9I0f*+Dkv!z(>UuP z5JE2jI5iFmkck1nrfp$FDz4EA3V`T)_{%Rmd-eh&0pMLHQ1Zjnu!=Hw2t=?#P=Ji! z^6I&@l3)uZ&=Wz{Vg07EN1)`BxufM)b_2!PJ=(ZQ{RP&TkSGRk7j_TA1xKLp zqK|KS!?Kj8XyOgeCbY5tHWR7&Bl*A^rM$u<1;y#4C7G<@zS9a6CqD`%KETAKP1)f7 z7-eRXDVNpKhoW3;8>}xN4ORTElpw~23KWqAtXA;yY@?$JE@2N~*}Z0M zpt^>BRsd{l+BXo?H~gKL)t-B*>jcz_y3F!!Hm0s^(7L+IzMwk?^(7{aurFv~5pso5 z#YEB=YsN|)6=R*_unMSYML*~WY|^E+W2}f^N0tVvdR&#}iTSDHVh(S2l0kg$JK4quWQs{c3E{wE@(fwB>pcae?U~Cg5 x6lq$m)BjA=?8PvK;1kUy#+Aub0W13zU;yY%CK$c&joJVJ002ovPDHLkV1hMRO1=O9 diff --git a/Docs/reference/themes/mongodb/static/img/trans-user-back.png b/Docs/reference/themes/mongodb/static/img/trans-user-back.png deleted file mode 100644 index 388216cfcc40722988125e5107b4f040d6299da2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 162 zcmeAS@N?(olHy`uVBq!ia0vp^fDSr z1<%~X^wgl##FWaylc_d9MJ}E$jv*DdlCDg96o1e`F(GLIlZ0u?l?j2)ZoHBZMq8s| zk3)>#N<|%qKa-@|Y-COJD&2bkWRCcy>q z2)rn7$eja+9RQ7ev}>0br%EO->IPdXG>J%mC5@_IZO5q%LI@x!ubh-UJx-r#b1Kdl z(gU5egOMtM{j*2`Di1436BH;@fME_UR}x^7Y9TOSArc0+Q2IFLsX!QjCR+$hatz>T z<8Oe*;${pWMspGnFFJ-e;P!t@n~Mjcl2DG7*uChcG-D+8PFsu1)I4;uUZ(EMYzzw> zZ0q#7+Pt2dA`}iLUE_Z*IMxn!Hu4?ukh-0TU z&_t;N;{DK%c?HommC?bFjlO2nOV^kLuV*!d)7) z69%k9ZVK$v`h{&dT!FRWFm$1k8av!L!*KvB1M)8%f_HBJXw#epsU<)5u{e_2*JmQ#y||ceytZKvd(T z7-F{|V97$?A2>?#r=qOgWdtqB<^Ca0Q~5T_)H`+;s3mjh9EzR391MUNCB<`;saG7v zsDuGE0qZRP282aXM!04#Qkw~mBh=jHg+f+-me+vzqQqTLW>U}Rxtb_#X5=U#SWLj& z4_DAxde63wp&9K$OL{3KC9Lna+gi;Ex-Uvx(qos8^vY-0000= 0 && !jQuery(node.parentNode).hasClass(className)) { - var span = document.createElement("span"); - span.className = className; - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - node.parentNode.insertBefore(span, node.parentNode.insertBefore( - document.createTextNode(val.substr(pos + text.length)), - node.nextSibling)); - node.nodeValue = val.substr(0, pos); - } - } - else if (!jQuery(node).is("button, select, textarea")) { - jQuery.each(node.childNodes, function() { - highlight(this); - }); - } - } - return this.each(function() { - highlight(this); - }); -}; - -/** - * Small JavaScript module for the documentation. - */ -var Documentation = { - - init : function() { - this.highlightSearchWords(); - this.initIndexTable(); - }, - - /** - * i18n support - */ - TRANSLATIONS : {}, - PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; }, - LOCALE : 'unknown', - - // gettext and ngettext don't access this so that the functions - // can safely bound to a different name (_ = Documentation.gettext) - gettext : function(string) { - var translated = Documentation.TRANSLATIONS[string]; - if (typeof translated == 'undefined') - return string; - return (typeof translated == 'string') ? translated : translated[0]; - }, - - ngettext : function(singular, plural, n) { - var translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated == 'undefined') - return (n == 1) ? singular : plural; - return translated[Documentation.PLURALEXPR(n)]; - }, - - addTranslations : function(catalog) { - for (var key in catalog.messages) - this.TRANSLATIONS[key] = catalog.messages[key]; - this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); - this.LOCALE = catalog.locale; - }, - - /** - * add context elements like header anchor links - */ - addContextElements : function() { - $('div[id] > :header:first').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this headline')). - appendTo(this); - }); - $('dt[id]').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this definition')). - appendTo(this); - }); - }, - - /** - * highlight the search words provided in the url in the text - */ - highlightSearchWords : function() { - var params = $.getQueryParameters(); - var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; - if (terms.length) { - var body = $('div.body'); - window.setTimeout(function() { - $.each(terms, function() { - body.highlightText(this.toLowerCase(), 'highlighted'); - }); - }, 10); - $('') - .appendTo($('#searchbox')); - } - }, - - /** - * init the domain index toggle buttons - */ - initIndexTable : function() { - var togglers = $('img.toggler').click(function() { - var src = $(this).attr('src'); - var idnum = $(this).attr('id').substr(7); - $('tr.cg-' + idnum).toggle(); - if (src.substr(-9) == 'minus.png') - $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); - else - $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); - }).css('display', ''); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { - togglers.click(); - } - }, - - /** - * helper function to hide the search marks again - */ - hideSearchWords : function() { - $('#searchbox .highlight-link').fadeOut(300); - $('span.highlighted').removeClass('highlighted'); - }, - - /** - * make the url absolute - */ - makeURL : function(relativeURL) { - return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; - }, - - /** - * get the current relative url - */ - getCurrentURL : function() { - var path = document.location.pathname; - var parts = path.split(/\//); - $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { - if (this == '..') - parts.pop(); - }); - var url = parts.join('/'); - return path.substring(url.lastIndexOf('/') + 1, path.length - 1); - } -}; - -// quick alias for translations -_ = Documentation.gettext; - -$(document).ready(function() { - Documentation.init(); -}); diff --git a/Docs/reference/themes/mongodb/static/js/jquery.js b/Docs/reference/themes/mongodb/static/js/jquery.js deleted file mode 100644 index bfb2376d2ae..00000000000 --- a/Docs/reference/themes/mongodb/static/js/jquery.js +++ /dev/null @@ -1,9789 +0,0 @@ -/*! - * jQuery JavaScript Library v1.10.2 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03T13:48Z - */ -(function( window, undefined ) { - -// Can't do this because several apps including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -// Support: Firefox 18+ -//"use strict"; -var - // The deferred used on DOM ready - readyList, - - // A central reference to the root jQuery(document) - rootjQuery, - - // Support: IE<10 - // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` - core_strundefined = typeof undefined, - - // Use the correct document accordingly with window argument (sandbox) - location = window.location, - document = window.document, - docElem = document.documentElement, - - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - - // Map over the $ in case of overwrite - _$ = window.$, - - // [[Class]] -> type pairs - class2type = {}, - - // List of deleted data cache ids, so we can reuse them - core_deletedIds = [], - - core_version = "1.10.2", - - // Save a reference to some core methods - core_concat = core_deletedIds.concat, - core_push = core_deletedIds.push, - core_slice = core_deletedIds.slice, - core_indexOf = core_deletedIds.indexOf, - core_toString = class2type.toString, - core_hasOwn = class2type.hasOwnProperty, - core_trim = core_version.trim, - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context, rootjQuery ); - }, - - // Used for matching numbers - core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, - - // Used for splitting on whitespace - core_rnotwhite = /\S+/g, - - // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - // Match a standalone tag - rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - - // JSON RegExp - rvalidchars = /^[\],:{}\s]*$/, - rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, - rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, - rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }, - - // The ready event handler - completed = function( event ) { - - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { - detach(); - jQuery.ready(); - } - }, - // Clean-up method for dom ready events - detach = function() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } - }; - -jQuery.fn = jQuery.prototype = { - // The current version of jQuery being used - jquery: core_version, - - constructor: jQuery, - init: function( selector, context, rootjQuery ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) { - context = context instanceof jQuery ? context[0] : context; - - // scripts is true for back-compat - jQuery.merge( this, jQuery.parseHTML( - match[1], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[2] ); - - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[2] ) { - return rootjQuery.find( selector ); - } - - // Otherwise, we inject the element directly into the jQuery object - this.length = 1; - this[0] = elem; - } - - this.context = document; - this.selector = selector; - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || rootjQuery ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this.context = this[0] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return rootjQuery.ready( selector ); - } - - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return jQuery.makeArray( selector, this ); - }, - - // Start with an empty selector - selector: "", - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return core_slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num == null ? - - // Return a 'clean' array - this.toArray() : - - // Return just the object - ( num < 0 ? this[ this.length + num ] : this[ num ] ); - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - ret.context = this.context; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - ready: function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; - }, - - slice: function() { - return this.pushStack( core_slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function( elem, i ) { - return callback.call( elem, i, elem ); - })); - }, - - end: function() { - return this.prevObject || this.constructor(null); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: core_push, - sort: [].sort, - splice: [].splice -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -jQuery.extend = jQuery.fn.extend = function() { - var src, copyIsArray, copy, name, options, clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) { - target = {}; - } - - // extend jQuery itself if only one argument is passed - if ( length === i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) { - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) { - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray(src) ? src : []; - - } else { - clone = src && jQuery.isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend({ - // Unique for each copy of jQuery on the page - // Non-digits removed to match rinlinejQuery - expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), - - noConflict: function( deep ) { - if ( window.$ === jQuery ) { - window.$ = _$; - } - - if ( deep && window.jQuery === jQuery ) { - window.jQuery = _jQuery; - } - - return jQuery; - }, - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). - if ( !document.body ) { - return setTimeout( jQuery.ready ); - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.trigger ) { - jQuery( document ).trigger("ready").off("ready"); - } - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return jQuery.type(obj) === "function"; - }, - - isArray: Array.isArray || function( obj ) { - return jQuery.type(obj) === "array"; - }, - - isWindow: function( obj ) { - /* jshint eqeqeq: false */ - return obj != null && obj == obj.window; - }, - - isNumeric: function( obj ) { - return !isNaN( parseFloat(obj) ) && isFinite( obj ); - }, - - type: function( obj ) { - if ( obj == null ) { - return String( obj ); - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ core_toString.call(obj) ] || "object" : - typeof obj; - }, - - isPlainObject: function( obj ) { - var key; - - // Must be an Object. - // Because of IE, we also have to check the presence of the constructor property. - // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { - return false; - } - - try { - // Not own constructor property must be Object - if ( obj.constructor && - !core_hasOwn.call(obj, "constructor") && - !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { - return false; - } - } catch ( e ) { - // IE8,9 Will throw exceptions on certain host objects #9897 - return false; - } - - // Support: IE<9 - // Handle iteration over inherited properties before own properties. - if ( jQuery.support.ownLast ) { - for ( key in obj ) { - return core_hasOwn.call( obj, key ); - } - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - for ( key in obj ) {} - - return key === undefined || core_hasOwn.call( obj, key ); - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - error: function( msg ) { - throw new Error( msg ); - }, - - // data: string of html - // context (optional): If specified, the fragment will be created in this context, defaults to document - // keepScripts (optional): If true, will include scripts passed in the html string - parseHTML: function( data, context, keepScripts ) { - if ( !data || typeof data !== "string" ) { - return null; - } - if ( typeof context === "boolean" ) { - keepScripts = context; - context = false; - } - context = context || document; - - var parsed = rsingleTag.exec( data ), - scripts = !keepScripts && []; - - // Single tag - if ( parsed ) { - return [ context.createElement( parsed[1] ) ]; - } - - parsed = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { - jQuery( scripts ).remove(); - } - return jQuery.merge( [], parsed.childNodes ); - }, - - parseJSON: function( data ) { - // Attempt to parse using the native JSON parser first - if ( window.JSON && window.JSON.parse ) { - return window.JSON.parse( data ); - } - - if ( data === null ) { - return data; - } - - if ( typeof data === "string" ) { - - // Make sure leading/trailing whitespace is removed (IE can't handle it) - data = jQuery.trim( data ); - - if ( data ) { - // Make sure the incoming data is actual JSON - // Logic borrowed from http://json.org/json2.js - if ( rvalidchars.test( data.replace( rvalidescape, "@" ) - .replace( rvalidtokens, "]" ) - .replace( rvalidbraces, "")) ) { - - return ( new Function( "return " + data ) )(); - } - } - } - - jQuery.error( "Invalid JSON: " + data ); - }, - - // Cross-browser xml parsing - parseXML: function( data ) { - var xml, tmp; - if ( !data || typeof data !== "string" ) { - return null; - } - try { - if ( window.DOMParser ) { // Standard - tmp = new DOMParser(); - xml = tmp.parseFromString( data , "text/xml" ); - } else { // IE - xml = new ActiveXObject( "Microsoft.XMLDOM" ); - xml.async = "false"; - xml.loadXML( data ); - } - } catch( e ) { - xml = undefined; - } - if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; - }, - - noop: function() {}, - - // Evaluates a script in a global context - // Workarounds based on findings by Jim Driscoll - // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context - globalEval: function( data ) { - if ( data && jQuery.trim( data ) ) { - // We use execScript on Internet Explorer - // We use an anonymous function so that context is window - // rather than jQuery in Firefox - ( window.execScript || function( data ) { - window[ "eval" ].call( window, data ); - } )( data ); - } - }, - - // Convert dashed to camelCase; used by the css and data modules - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Use native String.trim function wherever possible - trim: core_trim && !core_trim.call("\uFEFF\xA0") ? - function( text ) { - return text == null ? - "" : - core_trim.call( text ); - } : - - // Otherwise use our own trimming functionality - function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArraylike( Object(arr) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - core_push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( core_indexOf ) { - return core_indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; - - for ( ; i < len; i++ ) { - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; - }, - - merge: function( first, second ) { - var l = second.length, - i = first.length, - j = 0; - - if ( typeof l === "number" ) { - for ( ; j < l; j++ ) { - first[ i++ ] = second[ j ]; - } - } else { - while ( second[j] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, inv ) { - var retVal, - ret = [], - i = 0, - length = elems.length; - inv = !!inv; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - retVal = !!callback( elems[ i ], i ); - if ( inv !== retVal ) { - ret.push( elems[ i ] ); - } - } - - return ret; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - } - - // Flatten any nested arrays - return core_concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var args, proxy, tmp; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = core_slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - // Multifunctional method to get and set values of a collection - // The value/s can optionally be executed if it's a function - access: function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - length = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < length; i++ ) { - fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); - } - } - } - - return chainable ? - elems : - - // Gets - bulk ? - fn.call( elems ) : - length ? fn( elems[0], key ) : emptyGet; - }, - - now: function() { - return ( new Date() ).getTime(); - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations. - // Note: this method belongs to the css module but it's needed here for the support module. - // If support gets modularized, this method should be moved back to the css module. - swap: function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; - } -}); - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // we once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - - // If IE event model is used - } else { - // Ensure firing before onload, maybe late but safe also for iframes - document.attachEvent( "onreadystatechange", completed ); - - // A fallback to window.onload, that will always work - window.attachEvent( "onload", completed ); - - // If IE and not a frame - // continually check to see if the document is ready - var top = false; - - try { - top = window.frameElement == null && document.documentElement; - } catch(e) {} - - if ( top && top.doScroll ) { - (function doScrollCheck() { - if ( !jQuery.isReady ) { - - try { - // Use the trick by Diego Perini - // http://javascript.nwbox.com/IEContentLoaded/ - top.doScroll("left"); - } catch(e) { - return setTimeout( doScrollCheck, 50 ); - } - - // detach all dom ready events - detach(); - - // and execute any waiting functions - jQuery.ready(); - } - })(); - } - } - } - return readyList.promise( obj ); -}; - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || type !== "function" && - ( length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj ); -} - -// All jQuery objects should point back to these -rootjQuery = jQuery(document); -/*! - * Sizzle CSS Selector Engine v1.10.2 - * http://sizzlejs.com/ - * - * Copyright 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03 - */ -(function( window, undefined ) { - -var i, - support, - cachedruns, - Expr, - getText, - isXML, - compile, - outermostContext, - sortInput, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - hasDuplicate = false, - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - return 0; - } - return 0; - }, - - // General-purpose constants - strundefined = typeof undefined, - MAX_NEGATIVE = 1 << 31, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf if we can't use a native one - indexOf = arr.indexOf || function( elem ) { - var i = 0, - len = this.length; - for ( ; i < len; i++ ) { - if ( this[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", - - // Prefer arguments quoted, - // then not containing pseudos/brackets, - // then attribute selectors/non-parenthetical expressions, - // then anything else - // These preferences are here to reduce the number of selectors - // needing tokenize in the PSEUDO preFilter - pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rsibling = new RegExp( whitespace + "*[+~]" ), - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rescape = /'|\\/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - // BMP codepoint - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - - if ( !selector || typeof selector !== "string" ) { - return results; - } - - if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { - return []; - } - - if ( documentIsHTML && !seed ) { - - // Shortcuts - if ( (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // QSA path - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType === 9 && selector; - - // qSA works strangely on Element-rooted queries - // We can work around this by specifying an extra ID on the root - // and working up from there (Thanks to Andrew Dupont for the technique) - // IE 8 doesn't work on object elements - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && context.parentNode || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key += " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result - */ -function assert( fn ) { - var div = document.createElement("div"); - - try { - return !!fn( div ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( div.parentNode ) { - div.parentNode.removeChild( div ); - } - // release memory in IE - div = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = attrs.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Detect xml - * @param {Element|Object} elem An element or a document - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var doc = node ? node.ownerDocument || node : preferredDoc, - parent = doc.defaultView; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - - // Support tests - documentIsHTML = !isXML( doc ); - - // Support: IE>8 - // If iframe document is assigned to "document" variable and if iframe has been reloaded, - // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 - // IE6-8 do not support the defaultView property so parent will be undefined - if ( parent && parent.attachEvent && parent !== parent.top ) { - parent.attachEvent( "onbeforeunload", function() { - setDocument(); - }); - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Check if getElementsByClassName can be trusted - support.getElementsByClassName = assert(function( div ) { - div.innerHTML = "
    "; - - // Support: Safari<4 - // Catch class over-caching - div.firstChild.className = "i"; - // Support: Opera<10 - // Catch gEBCN failure to find non-leading classes - return div.getElementsByClassName("i").length === 2; - }); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - // ID find and filter - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && documentIsHTML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [m] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - // Support: IE6/7 - // getElementById is not reliable as a find shortcut - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== strundefined ) { - return context.getElementsByTagName( tag ); - } - } : - function( tag, context ) { - var elem, - tmp = [], - i = 0, - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See http://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - div.innerHTML = ""; - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - }); - - assert(function( div ) { - - // Support: Opera 10-12/IE8 - // ^= $= *= and empty values - // Should not select anything - // Support: Windows 8 Native Apps - // The type attribute is restricted during .innerHTML assignment - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "t", "" ); - - if ( div.querySelectorAll("[t^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = docElem.compareDocumentPosition ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); - - if ( compare ) { - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === doc || contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } - - // Not directly comparable, sort on existence of method - return a.compareDocumentPosition ? -1 : 1; - } : - function( a, b ) { - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - - // Parentless nodes are either documents or disconnected - } else if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return doc; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch(e) {} - } - - return Sizzle( expr, document, null, [elem] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val === undefined ? - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null : - val; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - for ( ; (node = elem[i]); i++ ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (see #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[5] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] && match[4] !== undefined ) { - match[2] = match[4]; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - // Seek `elem` from a previously-cached index - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - // Cache the index of each encountered element - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf.call( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), - // not comment, processing instructions, or others - // Thanks to Diego Perini for the nodeName shortcut - // Greater than "@" means alpha characters (specifically not starting with "#" or "?") - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) - // use getAttribute instead to test this case - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -function tokenize( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( tokens = [] ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -} - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var data, cache, outerCache, - dirkey = dirruns + " " + doneName; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { - if ( (data = cache[1]) === true || data === cachedruns ) { - return data === true; - } - } else { - cache = outerCache[ dir ] = [ dirkey ]; - cache[1] = matcher( elem, context, xml ) || cachedruns; - if ( cache[1] === true ) { - return true; - } - } - } - } - } - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf.call( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - // A counter to specify which element is currently being matched - var matcherCachedRuns = 0, - bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, expandContext ) { - var elem, j, matcher, - setMatched = [], - matchedCount = 0, - i = "0", - unmatched = seed && [], - outermost = expandContext != null, - contextBackup = outermostContext, - // We must always have either seed elements or context - elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); - - if ( outermost ) { - outermostContext = context !== document && context; - cachedruns = matcherCachedRuns; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - for ( ; (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - cachedruns = ++matcherCachedRuns; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !group ) { - group = tokenize( selector ); - } - i = group.length; - while ( i-- ) { - cached = matcherFromTokens( group[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - } - return cached; -}; - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function select( selector, context, results, seed ) { - var i, tokens, token, type, find, - match = tokenize( selector ); - - if ( !seed ) { - // Try to minimize operations if there is only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - } - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && context.parentNode || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - } - - // Compile and execute a filtering function - // Provide `match` to avoid retokenization if we modified the selector above - compile( selector, match )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) - ); - return results; -} - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome<14 -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( div1 ) { - // Should return 1, but returns 4 (following) - return div1.compareDocumentPosition( document.createElement("div") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( div ) { - div.innerHTML = ""; - return div.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( div ) { - div.innerHTML = ""; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - elem[ name ] === true ? name.toLowerCase() : null; - } - }); -} - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - -})( window ); -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { - object[ flag ] = true; - }); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - ( optionsCache[ options ] || createOptions( options ) ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - // Last fire value (for non-forgettable lists) - memory, - // Flag to know if list was already fired - fired, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( arguments ); - // Do we need to add the callbacks to the - // current firing batch? - if ( firing ) { - firingLength = list.length; - // With memory, if we're not firing then - // we should call right away - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - if ( index <= firingIndex ) { - firingIndex--; - } - } - } - }); - } - return this; - }, - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - return this; - }, - // Have the list do nothing anymore - disable: function() { - list = stack = memory = undefined; - return this; - }, - // Is it disabled? - disabled: function() { - return !list; - }, - // Lock the list in its current state - lock: function() { - stack = undefined; - if ( !memory ) { - self.disable(); - } - return this; - }, - // Is it locked? - locked: function() { - return !stack; - }, - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( args ); - } - } - return this; - }, - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; -jQuery.extend({ - - Deferred: function( func ) { - var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], - [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], - [ "notify", "progress", jQuery.Callbacks("memory") ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - then: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - return jQuery.Deferred(function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var action = tuple[ 0 ], - fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer - deferred[ tuple[1] ](function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); - } - }); - }); - fns = null; - }).promise(); - }, - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Keep pipe for back-compat - promise.pipe = promise.then; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 3 ]; - - // promise[ done | fail | progress ] = list.add - promise[ tuple[1] ] = list.add; - - // Handle state - if ( stateString ) { - list.add(function() { - // state = [ resolved | rejected ] - state = stateString; - - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); - } - - // deferred[ resolve | reject | notify ] - deferred[ tuple[0] ] = function() { - deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); - return this; - }; - deferred[ tuple[0] + "With" ] = list.fireWith; - }); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, - resolveValues = core_slice.call( arguments ), - length = resolveValues.length, - - // the count of uncompleted subordinates - remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), - - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { - return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; - if( values === progressValues ) { - deferred.notifyWith( contexts, values ); - } else if ( !( --remaining ) ) { - deferred.resolveWith( contexts, values ); - } - }; - }, - - progressValues, progressContexts, resolveContexts; - - // add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); -jQuery.support = (function( support ) { - - var all, a, input, select, fragment, opt, eventName, isSupported, i, - div = document.createElement("div"); - - // Setup - div.setAttribute( "className", "t" ); - div.innerHTML = "
    a"; - - // Finish early in limited (non-browser) environments - all = div.getElementsByTagName("*") || []; - a = div.getElementsByTagName("a")[ 0 ]; - if ( !a || !a.style || !all.length ) { - return support; - } - - // First batch of tests - select = document.createElement("select"); - opt = select.appendChild( document.createElement("option") ); - input = div.getElementsByTagName("input")[ 0 ]; - - a.style.cssText = "top:1px;float:left;opacity:.5"; - - // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) - support.getSetAttribute = div.className !== "t"; - - // IE strips leading whitespace when .innerHTML is used - support.leadingWhitespace = div.firstChild.nodeType === 3; - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - support.tbody = !div.getElementsByTagName("tbody").length; - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - support.htmlSerialize = !!div.getElementsByTagName("link").length; - - // Get the style information from getAttribute - // (IE uses .cssText instead) - support.style = /top/.test( a.getAttribute("style") ); - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - support.hrefNormalized = a.getAttribute("href") === "/a"; - - // Make sure that element opacity exists - // (IE uses filter instead) - // Use a regex to work around a WebKit issue. See #5145 - support.opacity = /^0.5/.test( a.style.opacity ); - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - support.cssFloat = !!a.style.cssFloat; - - // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) - support.checkOn = !!input.value; - - // Make sure that a selected-by-default option has a working selected property. - // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) - support.optSelected = opt.selected; - - // Tests for enctype support on a form (#6743) - support.enctype = !!document.createElement("form").enctype; - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>"; - - // Will be defined later - support.inlineBlockNeedsLayout = false; - support.shrinkWrapBlocks = false; - support.pixelPosition = false; - support.deleteExpando = true; - support.noCloneEvent = true; - support.reliableMarginRight = true; - support.boxSizingReliable = true; - - // Make sure checked status is properly cloned - input.checked = true; - support.noCloneChecked = input.cloneNode( true ).checked; - - // Make sure that the options inside disabled selects aren't marked as disabled - // (WebKit marks them as disabled) - select.disabled = true; - support.optDisabled = !opt.disabled; - - // Support: IE<9 - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - - // Check if we can trust getAttribute("value") - input = document.createElement("input"); - input.setAttribute( "value", "" ); - support.input = input.getAttribute( "value" ) === ""; - - // Check if an input maintains its value after becoming a radio - input.value = "t"; - input.setAttribute( "type", "radio" ); - support.radioValue = input.value === "t"; - - // #11217 - WebKit loses check when the name is after the checked attribute - input.setAttribute( "checked", "t" ); - input.setAttribute( "name", "t" ); - - fragment = document.createDocumentFragment(); - fragment.appendChild( input ); - - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - support.appendChecked = input.checked; - - // WebKit doesn't clone checked state correctly in fragments - support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<9 - // Opera does not clone events (and typeof div.attachEvent === undefined). - // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() - if ( div.attachEvent ) { - div.attachEvent( "onclick", function() { - support.noCloneEvent = false; - }); - - div.cloneNode( true ).click(); - } - - // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - for ( i in { submit: true, change: true, focusin: true }) { - div.setAttribute( eventName = "on" + i, "t" ); - - support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; - } - - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - // Support: IE<9 - // Iteration over object's inherited properties before its own. - for ( i in jQuery( support ) ) { - break; - } - support.ownLast = i !== "0"; - - // Run tests that need a body at doc ready - jQuery(function() { - var container, marginDiv, tds, - divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", - body = document.getElementsByTagName("body")[0]; - - if ( !body ) { - // Return for frameset docs that don't have a body - return; - } - - container = document.createElement("div"); - container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; - - body.appendChild( container ).appendChild( div ); - - // Support: IE8 - // Check if table cells still have offsetWidth/Height when they are set - // to display:none and there are still other visible table cells in a - // table row; if so, offsetWidth/Height are not reliable for use when - // determining if an element has been hidden directly using - // display:none (it is still safe to use offsets if a parent element is - // hidden; don safety goggles and see bug #4512 for more information). - div.innerHTML = "
    t
    "; - tds = div.getElementsByTagName("td"); - tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; - isSupported = ( tds[ 0 ].offsetHeight === 0 ); - - tds[ 0 ].style.display = ""; - tds[ 1 ].style.display = "none"; - - // Support: IE8 - // Check if empty table cells still have offsetWidth/Height - support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); - - // Check box-sizing and margin behavior. - div.innerHTML = ""; - div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; - - // Workaround failing boxSizing test due to offsetWidth returning wrong value - // with some non-1 values of body zoom, ticket #13543 - jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { - support.boxSizing = div.offsetWidth === 4; - }); - - // Use window.getComputedStyle because jsdom on node.js will break without it. - if ( window.getComputedStyle ) { - support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; - support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; - - // Check if div with explicit width and no margin-right incorrectly - // gets computed margin-right based on width of container. (#3333) - // Fails in WebKit before Feb 2011 nightlies - // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right - marginDiv = div.appendChild( document.createElement("div") ); - marginDiv.style.cssText = div.style.cssText = divReset; - marginDiv.style.marginRight = marginDiv.style.width = "0"; - div.style.width = "1px"; - - support.reliableMarginRight = - !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); - } - - if ( typeof div.style.zoom !== core_strundefined ) { - // Support: IE<8 - // Check if natively block-level elements act like inline-block - // elements when setting their display to 'inline' and giving - // them layout - div.innerHTML = ""; - div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; - support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - div.style.display = "block"; - div.innerHTML = "
    "; - div.firstChild.style.width = "5px"; - support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); - - if ( support.inlineBlockNeedsLayout ) { - // Prevent IE 6 from affecting layout for positioned elements #11048 - // Prevent IE from shrinking the body in IE 7 mode #12869 - // Support: IE<8 - body.style.zoom = 1; - } - } - - body.removeChild( container ); - - // Null elements to avoid leaks in IE - container = div = tds = marginDiv = null; - }); - - // Null elements to avoid leaks in IE - all = select = fragment = opt = a = input = null; - - return support; -})({}); - -var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, - rmultiDash = /([A-Z])/g; - -function internalData( elem, name, data, pvt /* Internal Use Only */ ){ - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var ret, thisCache, - internalKey = jQuery.expando, - - // We have to handle DOM nodes and JS objects differently because IE6-7 - // can't GC object references properly across the DOM-JS boundary - isNode = elem.nodeType, - - // Only DOM nodes need the global jQuery cache; JS object data is - // attached directly to the object so GC can occur automatically - cache = isNode ? jQuery.cache : elem, - - // Only defining an ID for JS objects if its cache already exists allows - // the code to shortcut on the same path as a DOM node with no cache - id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; - - // Avoid doing any more work than we need to when trying to get data on an - // object that has no data at all - if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { - return; - } - - if ( !id ) { - // Only DOM nodes need a new unique ID for each element since their data - // ends up in the global cache - if ( isNode ) { - id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } - - if ( !cache[ id ] ) { - // Avoid exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; - } - - // An object can be passed to jQuery.data instead of a key/value pair; this gets - // shallow copied over onto the existing cache - if ( typeof name === "object" || typeof name === "function" ) { - if ( pvt ) { - cache[ id ] = jQuery.extend( cache[ id ], name ); - } else { - cache[ id ].data = jQuery.extend( cache[ id ].data, name ); - } - } - - thisCache = cache[ id ]; - - // jQuery data() is stored in a separate object inside the object's internal data - // cache in order to avoid key collisions between internal data and user-defined - // data. - if ( !pvt ) { - if ( !thisCache.data ) { - thisCache.data = {}; - } - - thisCache = thisCache.data; - } - - if ( data !== undefined ) { - thisCache[ jQuery.camelCase( name ) ] = data; - } - - // Check for both converted-to-camel and non-converted data property names - // If a data property was specified - if ( typeof name === "string" ) { - - // First Try to find as-is property data - ret = thisCache[ name ]; - - // Test for null|undefined property data - if ( ret == null ) { - - // Try to find the camelCased property - ret = thisCache[ jQuery.camelCase( name ) ]; - } - } else { - ret = thisCache; - } - - return ret; -} - -function internalRemoveData( elem, name, pvt ) { - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var thisCache, i, - isNode = elem.nodeType, - - // See jQuery.data for more information - cache = isNode ? jQuery.cache : elem, - id = isNode ? elem[ jQuery.expando ] : jQuery.expando; - - // If there is already no cache entry for this object, there is no - // purpose in continuing - if ( !cache[ id ] ) { - return; - } - - if ( name ) { - - thisCache = pvt ? cache[ id ] : cache[ id ].data; - - if ( thisCache ) { - - // Support array or space separated string names for data keys - if ( !jQuery.isArray( name ) ) { - - // try the string as a key before any manipulation - if ( name in thisCache ) { - name = [ name ]; - } else { - - // split the camel cased version by spaces unless a key with the spaces exists - name = jQuery.camelCase( name ); - if ( name in thisCache ) { - name = [ name ]; - } else { - name = name.split(" "); - } - } - } else { - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = name.concat( jQuery.map( name, jQuery.camelCase ) ); - } - - i = name.length; - while ( i-- ) { - delete thisCache[ name[i] ]; - } - - // If there is no data left in the cache, we want to continue - // and let the cache object itself get destroyed - if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { - return; - } - } - } - - // See jQuery.data for more information - if ( !pvt ) { - delete cache[ id ].data; - - // Don't destroy the parent cache unless the internal data object - // had been the only thing left in it - if ( !isEmptyDataObject( cache[ id ] ) ) { - return; - } - } - - // Destroy the cache - if ( isNode ) { - jQuery.cleanData( [ elem ], true ); - - // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) - /* jshint eqeqeq: false */ - } else if ( jQuery.support.deleteExpando || cache != cache.window ) { - /* jshint eqeqeq: true */ - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. - noData: { - "applet": true, - "embed": true, - // Ban all objects except for Flash (which handle expandos) - "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" - }, - - hasData: function( elem ) { - elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; - return !!elem && !isEmptyDataObject( elem ); - }, - - data: function( elem, name, data ) { - return internalData( elem, name, data ); - }, - - removeData: function( elem, name ) { - return internalRemoveData( elem, name ); - }, - - // For internal use only. - _data: function( elem, name, data ) { - return internalData( elem, name, data, true ); - }, - - _removeData: function( elem, name ) { - return internalRemoveData( elem, name, true ); - }, - - // A method for determining if a DOM node can handle the data expando - acceptData: function( elem ) { - // Do not set data on non-element because it will not be cleared (#8335). - if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { - return false; - } - - var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; - - // nodes accept data unless otherwise specified; rejection can be conditional - return !noData || noData !== true && elem.getAttribute("classid") === noData; - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var attrs, name, - data = null, - i = 0, - elem = this[0]; - - // Special expections of .data basically thwart jQuery.access, - // so implement the relevant behavior ourselves - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = jQuery.data( elem ); - - if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { - attrs = elem.attributes; - for ( ; i < attrs.length; i++ ) { - name = attrs[i].name; - - if ( name.indexOf("data-") === 0 ) { - name = jQuery.camelCase( name.slice(5) ); - - dataAttr( elem, name, data[ name ] ); - } - } - jQuery._data( elem, "parsedAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each(function() { - jQuery.data( this, key ); - }); - } - - return arguments.length > 1 ? - - // Sets one value - this.each(function() { - jQuery.data( this, key, value ); - }) : - - // Gets one value - // Try to fetch any internally stored data first - elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; - }, - - removeData: function( key ) { - return this.each(function() { - jQuery.removeData( this, key ); - }); - } -}); - -function dataAttr( elem, key, data ) { - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - - var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); - - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch( e ) {} - - // Make sure we set the data so it isn't changed later - jQuery.data( elem, key, data ); - - } else { - data = undefined; - } - } - - return data; -} - -// checks a cache object for emptiness -function isEmptyDataObject( obj ) { - var name; - for ( name in obj ) { - - // if the public data object is empty, the private is still empty - if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { - continue; - } - if ( name !== "toJSON" ) { - return false; - } - } - - return true; -} -jQuery.extend({ - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = jQuery._data( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || jQuery.isArray(data) ) { - queue = jQuery._data( elem, type, jQuery.makeArray(data) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // not intended for public consumption - generates a queueHooks object, or returns the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return jQuery._data( elem, key ) || jQuery._data( elem, key, { - empty: jQuery.Callbacks("once memory").add(function() { - jQuery._removeData( elem, type + "queue" ); - jQuery._removeData( elem, key ); - }) - }); - } -}); - -jQuery.fn.extend({ - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[0], type ); - } - - return data === undefined ? - this : - this.each(function() { - var queue = jQuery.queue( this, type, data ); - - // ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[0] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - }); - }, - dequeue: function( type ) { - return this.each(function() { - jQuery.dequeue( this, type ); - }); - }, - // Based off of the plugin by Clint Helfers, with permission. - // http://blindsignals.com/index.php/2009/07/jquery-delay/ - delay: function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = setTimeout( next, time ); - hooks.stop = function() { - clearTimeout( timeout ); - }; - }); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while( i-- ) { - tmp = jQuery._data( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -}); -var nodeHook, boolHook, - rclass = /[\t\r\n\f]/g, - rreturn = /\r/g, - rfocusable = /^(?:input|select|textarea|button|object)$/i, - rclickable = /^(?:a|area)$/i, - ruseDefault = /^(?:checked|selected)$/i, - getSetAttribute = jQuery.support.getSetAttribute, - getSetInput = jQuery.support.input; - -jQuery.fn.extend({ - attr: function( name, value ) { - return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each(function() { - jQuery.removeAttr( this, name ); - }); - }, - - prop: function( name, value ) { - return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - name = jQuery.propFix[ name ] || name; - return this.each(function() { - // try/catch handles cases where IE balks (such as removing a property on window) - try { - this[ name ] = undefined; - delete this[ name ]; - } catch( e ) {} - }); - }, - - addClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).addClass( value.call( this, j, this.className ) ); - }); - } - - if ( proceed ) { - // The disjunction here is for better compressibility (see removeClass) - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - " " - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - elem.className = jQuery.trim( cur ); - - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = arguments.length === 0 || typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).removeClass( value.call( this, j, this.className ) ); - }); - } - if ( proceed ) { - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - "" - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - elem.className = value ? jQuery.trim( cur ) : ""; - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value; - - if ( typeof stateVal === "boolean" && type === "string" ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( jQuery.isFunction( value ) ) { - return this.each(function( i ) { - jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); - }); - } - - return this.each(function() { - if ( type === "string" ) { - // toggle individual class names - var className, - i = 0, - self = jQuery( this ), - classNames = value.match( core_rnotwhite ) || []; - - while ( (className = classNames[ i++ ]) ) { - // check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( type === core_strundefined || type === "boolean" ) { - if ( this.className ) { - // store className if set - jQuery._data( this, "__className__", this.className ); - } - - // If the element has a class name or if we're passed "false", - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; - } - }); - }, - - hasClass: function( selector ) { - var className = " " + selector + " ", - i = 0, - l = this.length; - for ( ; i < l; i++ ) { - if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { - return true; - } - } - - return false; - }, - - val: function( value ) { - var ret, hooks, isFunction, - elem = this[0]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { - return ret; - } - - ret = elem.value; - - return typeof ret === "string" ? - // handle most common string cases - ret.replace(rreturn, "") : - // handle cases where value is null/undef or number - ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each(function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - } else if ( typeof val === "number" ) { - val += ""; - } else if ( jQuery.isArray( val ) ) { - val = jQuery.map(val, function ( value ) { - return value == null ? "" : value + ""; - }); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - }); - } -}); - -jQuery.extend({ - valHooks: { - option: { - get: function( elem ) { - // Use proper attribute retrieval(#6932, #12072) - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - elem.text; - } - }, - select: { - get: function( elem ) { - var value, option, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one" || index < 0, - values = one ? null : [], - max = one ? index + 1 : options.length, - i = index < 0 ? - max : - one ? index : 0; - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // oldIE doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - // Don't return options that are disabled or in a disabled optgroup - ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && - ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { - optionSet = true; - } - } - - // force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - }, - - attr: function( elem, name, value ) { - var hooks, ret, - nType = elem.nodeType; - - // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === core_strundefined ) { - return jQuery.prop( elem, name, value ); - } - - // All attributes are lowercase - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - name = name.toLowerCase(); - hooks = jQuery.attrHooks[ name ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); - } - - if ( value !== undefined ) { - - if ( value === null ) { - jQuery.removeAttr( elem, name ); - - } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? - undefined : - ret; - } - }, - - removeAttr: function( elem, value ) { - var name, propName, - i = 0, - attrNames = value && value.match( core_rnotwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( (name = attrNames[i++]) ) { - propName = jQuery.propFix[ name ] || name; - - // Boolean attributes get special treatment (#10870) - if ( jQuery.expr.match.bool.test( name ) ) { - // Set corresponding property to false - if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - elem[ propName ] = false; - // Support: IE<9 - // Also clear defaultChecked/defaultSelected (if appropriate) - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = - elem[ propName ] = false; - } - - // See #9699 for explanation of this approach (setting first, then removal) - } else { - jQuery.attr( elem, name, "" ); - } - - elem.removeAttribute( getSetAttribute ? name : propName ); - } - } - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { - // Setting the type on a radio button after the value resets the value in IE6-9 - // Reset value to default in case type is set after value during creation - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - }, - - prop: function( elem, name, value ) { - var ret, hooks, notxml, - nType = elem.nodeType; - - // don't get/set properties on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - if ( notxml ) { - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? - ret : - ( elem[ name ] = value ); - - } else { - return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? - ret : - elem[ name ]; - } - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set - // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - return tabindex ? - parseInt( tabindex, 10 ) : - rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? - 0 : - -1; - } - } - } -}); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - // IE<8 needs the *property* name - elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); - - // Use defaultChecked and defaultSelected for oldIE - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; - } - - return name; - } -}; -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; - - jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? - function( elem, name, isXML ) { - var fn = jQuery.expr.attrHandle[ name ], - ret = isXML ? - undefined : - /* jshint eqeqeq: false */ - (jQuery.expr.attrHandle[ name ] = undefined) != - getter( elem, name, isXML ) ? - - name.toLowerCase() : - null; - jQuery.expr.attrHandle[ name ] = fn; - return ret; - } : - function( elem, name, isXML ) { - return isXML ? - undefined : - elem[ jQuery.camelCase( "default-" + name ) ] ? - name.toLowerCase() : - null; - }; -}); - -// fix oldIE attroperties -if ( !getSetInput || !getSetAttribute ) { - jQuery.attrHooks.value = { - set: function( elem, value, name ) { - if ( jQuery.nodeName( elem, "input" ) ) { - // Does not return so that setAttribute is also used - elem.defaultValue = value; - } else { - // Use nodeHook if defined (#1954); otherwise setAttribute is fine - return nodeHook && nodeHook.set( elem, value, name ); - } - } - }; -} - -// IE6/7 do not support getting/setting some attributes with get/setAttribute -if ( !getSetAttribute ) { - - // Use this for any attribute in IE6/7 - // This fixes almost every IE6/7 issue - nodeHook = { - set: function( elem, value, name ) { - // Set the existing or create a new attribute node - var ret = elem.getAttributeNode( name ); - if ( !ret ) { - elem.setAttributeNode( - (ret = elem.ownerDocument.createAttribute( name )) - ); - } - - ret.value = value += ""; - - // Break association with cloned elements by also using setAttribute (#9646) - return name === "value" || value === elem.getAttribute( name ) ? - value : - undefined; - } - }; - jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = - // Some attributes are constructed with empty-string values when not defined - function( elem, name, isXML ) { - var ret; - return isXML ? - undefined : - (ret = elem.getAttributeNode( name )) && ret.value !== "" ? - ret.value : - null; - }; - jQuery.valHooks.button = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return ret && ret.specified ? - ret.value : - undefined; - }, - set: nodeHook.set - }; - - // Set contenteditable to false on removals(#10429) - // Setting to empty string throws an error as an invalid value - jQuery.attrHooks.contenteditable = { - set: function( elem, value, name ) { - nodeHook.set( elem, value === "" ? false : value, name ); - } - }; - - // Set width and height to auto instead of 0 on empty string( Bug #8150 ) - // This is for removals - jQuery.each([ "width", "height" ], function( i, name ) { - jQuery.attrHooks[ name ] = { - set: function( elem, value ) { - if ( value === "" ) { - elem.setAttribute( name, "auto" ); - return value; - } - } - }; - }); -} - - -// Some attributes require a special call on IE -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !jQuery.support.hrefNormalized ) { - // href/src property should get the full normalized URL (#10299/#12915) - jQuery.each([ "href", "src" ], function( i, name ) { - jQuery.propHooks[ name ] = { - get: function( elem ) { - return elem.getAttribute( name, 4 ); - } - }; - }); -} - -if ( !jQuery.support.style ) { - jQuery.attrHooks.style = { - get: function( elem ) { - // Return undefined in the case of empty string - // Note: IE uppercases css property names, but if we were to .toLowerCase() - // .cssText, that would destroy case senstitivity in URL's, like in "background" - return elem.style.cssText || undefined; - }, - set: function( elem, value ) { - return ( elem.style.cssText = value + "" ); - } - }; -} - -// Safari mis-reports the default selected property of an option -// Accessing the parent's selectedIndex property fixes it -if ( !jQuery.support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - var parent = elem.parentNode; - - if ( parent ) { - parent.selectedIndex; - - // Make sure that it also works with optgroups, see #5701 - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - return null; - } - }; -} - -jQuery.each([ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -}); - -// IE6/7 call enctype encoding -if ( !jQuery.support.enctype ) { - jQuery.propFix.enctype = "encoding"; -} - -// Radios and checkboxes getter/setter -jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( jQuery.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); - } - } - }; - if ( !jQuery.support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - // Support: Webkit - // "" is returned instead of "on" if a value isn't specified - return elem.getAttribute("value") === null ? "on" : elem.value; - }; - } -}); -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - var tmp, events, t, handleObjIn, - special, eventHandle, handleObj, - handlers, type, namespaces, origType, - elemData = jQuery._data( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !(events = elemData.events) ) { - events = elemData.events = {}; - } - if ( !(eventHandle = elemData.handle) ) { - eventHandle = elemData.handle = function( e ) { - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? - jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : - undefined; - }; - // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events - eventHandle.elem = elem; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend({ - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join(".") - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !(handlers = events[ type ]) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener/attachEvent if the special events handler returns false - if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - // Bind the global event handler to the element - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - // Nullify elem to prevent memory leaks in IE - elem = null; - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - var j, handleObj, tmp, - origCount, t, events, - special, handlers, type, - namespaces, origType, - elemData = jQuery.hasData( elem ) && jQuery._data( elem ); - - if ( !elemData || !(events = elemData.events) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - - // removeData also checks for emptiness and clears the expando if empty - // so use it instead of delete - jQuery._removeData( elem, "events" ); - } - }, - - trigger: function( event, data, elem, onlyHandlers ) { - var handle, ontype, cur, - bubbleType, special, tmp, i, - eventPath = [ elem || document ], - type = core_hasOwn.call( event, "type" ) ? event.type : event, - namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf(".") >= 0 ) { - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split("."); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf(":") < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join("."); - event.namespace_re = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === (elem.ownerDocument || document) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { - event.preventDefault(); - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && - jQuery.acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name name as the event. - // Can't use an .isFunction() check here because IE6/7 fails that test. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - try { - elem[ type ](); - } catch ( e ) { - // IE<9 dies on focus/blur to hidden element (#1486,#12518) - // only reproducible on winXP IE8 native, not IE9 in IE8 mode - } - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, ret, handleObj, matched, j, - handlerQueue = [], - args = core_slice.call( arguments ), - handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[0] = event; - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or - // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). - if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) - .apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( (event.result = ret) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - /* jshint eqeqeq: false */ - for ( ; cur != this; cur = cur.parentNode || this ) { - /* jshint eqeqeq: true */ - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { - matches = []; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) >= 0 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matches[ sel ] ) { - matches.push( handleObj ); - } - } - if ( matches.length ) { - handlerQueue.push({ elem: cur, handlers: matches }); - } - } - } - } - - // Add the remaining (directly-bound) handlers - if ( delegateCount < handlers.length ) { - handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); - } - - return handlerQueue; - }, - - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: IE<9 - // Fix target property (#1925) - if ( !event.target ) { - event.target = originalEvent.srcElement || document; - } - - // Support: Chrome 23+, Safari? - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - // Support: IE<9 - // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) - event.metaKey = !!event.metaKey; - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), - - fixHooks: {}, - - keyHooks: { - props: "char charCode key keyCode".split(" "), - filter: function( event, original ) { - - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; - } - - return event; - } - }, - - mouseHooks: { - props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function( event, original ) { - var body, eventDoc, doc, - button = original.button, - fromElement = original.fromElement; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add relatedTarget, if necessary - if ( !event.relatedTarget && fromElement ) { - event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } - }, - - special: { - load: { - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - try { - this.focus(); - return false; - } catch ( e ) { - // Support: IE<9 - // If we error on focus to hidden element (#1486, #12518), - // let .trigger() run the handlers - } - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return jQuery.nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Even when returnValue equals to undefined Firefox will still show alert - if ( event.result !== undefined ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - simulate: function( type, elem, event, bubble ) { - // Piggyback on a donor event to simulate a different one. - // Fake originalEvent to avoid donor's stopPropagation, but if the - // simulated event prevents default then we do the same on the donor. - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true, - originalEvent: {} - } - ); - if ( bubble ) { - jQuery.event.trigger( e, null, elem ); - } else { - jQuery.event.dispatch.call( elem, e ); - } - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - function( elem, type, handle ) { - var name = "on" + type; - - if ( elem.detachEvent ) { - - // #8545, #7054, preventing memory leaks for custom events in IE6-8 - // detachEvent needed property on element, by name of that event, to properly expose it to GC - if ( typeof elem[ name ] === core_strundefined ) { - elem[ name ] = null; - } - - elem.detachEvent( name, handle ); - } - }; - -jQuery.Event = function( src, props ) { - // Allow instantiation without the 'new' keyword - if ( !(this instanceof jQuery.Event) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || - src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - if ( !e ) { - return; - } - - // If preventDefault exists, run it on the original event - if ( e.preventDefault ) { - e.preventDefault(); - - // Support: IE - // Otherwise set the returnValue property of the original event to false - } else { - e.returnValue = false; - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - if ( !e ) { - return; - } - // If stopPropagation exists, run it on the original event - if ( e.stopPropagation ) { - e.stopPropagation(); - } - - // Support: IE - // Set the cancelBubble property of the original event to true - e.cancelBubble = true; - }, - stopImmediatePropagation: function() { - this.isImmediatePropagationStopped = returnTrue; - this.stopPropagation(); - } -}; - -// Create mouseenter/leave events using mouseover/out and event-time checks -jQuery.each({ - mouseenter: "mouseover", - mouseleave: "mouseout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mousenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || (related !== target && !jQuery.contains( target, related )) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -}); - -// IE submit delegation -if ( !jQuery.support.submitBubbles ) { - - jQuery.event.special.submit = { - setup: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Lazy-add a submit handler when a descendant form may potentially be submitted - jQuery.event.add( this, "click._submit keypress._submit", function( e ) { - // Node name check avoids a VML-related crash in IE (#9807) - var elem = e.target, - form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; - if ( form && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", true ); - } - }); - // return undefined since we don't need an event listener - }, - - postDispatch: function( event ) { - // If form was submitted by the user, bubble the event up the tree - if ( event._submit_bubble ) { - delete event._submit_bubble; - if ( this.parentNode && !event.isTrigger ) { - jQuery.event.simulate( "submit", this.parentNode, event, true ); - } - } - }, - - teardown: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Remove delegated handlers; cleanData eventually reaps submit handlers attached above - jQuery.event.remove( this, "._submit" ); - } - }; -} - -// IE change delegation and checkbox/radio fix -if ( !jQuery.support.changeBubbles ) { - - jQuery.event.special.change = { - - setup: function() { - - if ( rformElems.test( this.nodeName ) ) { - // IE doesn't fire change on a check/radio until blur; trigger it on click - // after a propertychange. Eat the blur-change in special.change.handle. - // This still fires onchange a second time for check/radio after blur. - if ( this.type === "checkbox" || this.type === "radio" ) { - jQuery.event.add( this, "propertychange._change", function( event ) { - if ( event.originalEvent.propertyName === "checked" ) { - this._just_changed = true; - } - }); - jQuery.event.add( this, "click._change", function( event ) { - if ( this._just_changed && !event.isTrigger ) { - this._just_changed = false; - } - // Allow triggered, simulated change events (#11500) - jQuery.event.simulate( "change", this, event, true ); - }); - } - return false; - } - // Delegated event; lazy-add a change handler on descendant inputs - jQuery.event.add( this, "beforeactivate._change", function( e ) { - var elem = e.target; - - if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", true ); - } - }); - }, - - handle: function( event ) { - var elem = event.target; - - // Swallow native change events from checkbox/radio, we already triggered them above - if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { - return event.handleObj.handler.apply( this, arguments ); - } - }, - - teardown: function() { - jQuery.event.remove( this, "._change" ); - - return !rformElems.test( this.nodeName ); - } - }; -} - -// Create "bubbling" focus and blur events -if ( !jQuery.support.focusinBubbles ) { - jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler while someone wants focusin/focusout - var attaches = 0, - handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - if ( attaches++ === 0 ) { - document.addEventListener( orig, handler, true ); - } - }, - teardown: function() { - if ( --attaches === 0 ) { - document.removeEventListener( orig, handler, true ); - } - } - }; - }); -} - -jQuery.fn.extend({ - - on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var type, origFn; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - this.on( type, selector, data, types[ type ], one ); - } - return this; - } - - if ( data == null && fn == null ) { - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return this; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return this.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - }); - }, - one: function( types, selector, data, fn ) { - return this.on( types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each(function() { - jQuery.event.remove( this, types, fn, selector ); - }); - }, - - trigger: function( type, data ) { - return this.each(function() { - jQuery.event.trigger( type, data, this ); - }); - }, - triggerHandler: function( type, data ) { - var elem = this[0]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -}); -var isSimple = /^.[^:#\[\.,]*$/, - rparentsprev = /^(?:parents|prev(?:Until|All))/, - rneedsContext = jQuery.expr.match.needsContext, - // methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend({ - find: function( selector ) { - var i, - ret = [], - self = this, - len = self.length; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = this.selector ? this.selector + " " + selector : selector; - return ret; - }, - - has: function( target ) { - var i, - targets = jQuery( target, this ), - len = targets.length; - - return this.filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( this, targets[i] ) ) { - return true; - } - } - }); - }, - - not: function( selector ) { - return this.pushStack( winnow(this, selector || [], true) ); - }, - - filter: function( selector ) { - return this.pushStack( winnow(this, selector || [], false) ); - }, - - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - ret = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; - - for ( ; i < l; i++ ) { - for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { - // Always skip document fragments - if ( cur.nodeType < 11 && (pos ? - pos.index(cur) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector(cur, selectors)) ) { - - cur = ret.push( cur ); - break; - } - } - } - - return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; - } - - // index in selector - if ( typeof elem === "string" ) { - return jQuery.inArray( this[0], jQuery( elem ) ); - } - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem, this ); - }, - - add: function( selector, context ) { - var set = typeof selector === "string" ? - jQuery( selector, context ) : - jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), - all = jQuery.merge( this.get(), set ); - - return this.pushStack( jQuery.unique(all) ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter(selector) - ); - } -}); - -function sibling( cur, dir ) { - do { - cur = cur[ dir ]; - } while ( cur && cur.nodeType !== 1 ); - - return cur; -} - -jQuery.each({ - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return jQuery.dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return jQuery.dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return jQuery.dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return jQuery.dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return jQuery.sibling( elem.firstChild ); - }, - contents: function( elem ) { - return jQuery.nodeName( elem, "iframe" ) ? - elem.contentDocument || elem.contentWindow.document : - jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); - } - - if ( this.length > 1 ) { - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - ret = jQuery.unique( ret ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - } - - return this.pushStack( ret ); - }; -}); - -jQuery.extend({ - filter: function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 && elem.nodeType === 1 ? - jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : - jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - })); - }, - - dir: function( elem, dir, until ) { - var matched = [], - cur = elem[ dir ]; - - while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { - if ( cur.nodeType === 1 ) { - matched.push( cur ); - } - cur = cur[dir]; - } - return matched; - }, - - sibling: function( n, elem ) { - var r = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - r.push( n ); - } - } - - return r; - } -}); - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - /* jshint -W018 */ - return !!qualifier.call( elem, i, elem ) !== not; - }); - - } - - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - }); - - } - - if ( typeof qualifier === "string" ) { - if ( isSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); - } - - return jQuery.grep( elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; - }); -} -function createSafeFragment( document ) { - var list = nodeNames.split( "|" ), - safeFrag = document.createDocumentFragment(); - - if ( safeFrag.createElement ) { - while ( list.length ) { - safeFrag.createElement( - list.pop() - ); - } - } - return safeFrag; -} - -var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + - "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", - rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
    ", "
    " ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
    " ], - tr: [ 2, "", "
    " ], - col: [ 2, "", "
    " ], - td: [ 3, "", "
    " ], - - // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, - // unless wrapped in a div with non-breaking characters in front of it. - _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
    ", "
    " ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -jQuery.fn.extend({ - text: function( value ) { - return jQuery.access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); - }, null, value, arguments.length ); - }, - - append: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - // keepData is for internal use only--do not document - remove: function( selector, keepData ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - empty: function() { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - } - - // Remove any remaining nodes - while ( elem.firstChild ) { - elem.removeChild( elem.firstChild ); - } - - // If this is a select, ensure that it displays empty (#12336) - // Support: IE<9 - if ( elem.options && jQuery.nodeName( elem, "select" ) ) { - elem.options.length = 0; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function () { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - }); - }, - - html: function( value ) { - return jQuery.access( this, function( value ) { - var elem = this[0] || {}, - i = 0, - l = this.length; - - if ( value === undefined ) { - return elem.nodeType === 1 ? - elem.innerHTML.replace( rinlinejQuery, "" ) : - undefined; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && - !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>" ); - - try { - for (; i < l; i++ ) { - // Remove element nodes and prevent memory leaks - elem = this[i] || {}; - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch(e) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var - // Snapshot the DOM in case .domManip sweeps something relevant into its fragment - args = jQuery.map( this, function( elem ) { - return [ elem.nextSibling, elem.parentNode ]; - }), - i = 0; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - var next = args[ i++ ], - parent = args[ i++ ]; - - if ( parent ) { - // Don't use the snapshot next if it has moved (#13810) - if ( next && next.parentNode !== parent ) { - next = this.nextSibling; - } - jQuery( this ).remove(); - parent.insertBefore( elem, next ); - } - // Allow new content to include elements from the context set - }, true ); - - // Force removal if there was no new content (e.g., from empty arguments) - return i ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback, allowIntersection ) { - - // Flatten any nested arrays - args = core_concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - iNoClone = l - 1, - value = args[0], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, self.html() ); - } - self.domManip( args, callback, allowIntersection ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[i], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - - if ( node.src ) { - // Hope ajax is available... - jQuery._evalUrl( node.src ); - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -// Support: IE<8 -// Manipulating tables requires a tbody -function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? - - elem.getElementsByTagName("tbody")[0] || - elem.appendChild( elem.ownerDocument.createElement("tbody") ) : - elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - if ( match ) { - elem.type = match[1]; - } else { - elem.removeAttribute("type"); - } - return elem; -} - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var elem, - i = 0; - for ( ; (elem = elems[i]) != null; i++ ) { - jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); - } -} - -function cloneCopyEvent( src, dest ) { - - if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { - return; - } - - var type, i, l, - oldData = jQuery._data( src ), - curData = jQuery._data( dest, oldData ), - events = oldData.events; - - if ( events ) { - delete curData.handle; - curData.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - - // make the cloned public data object a copy from the original - if ( curData.data ) { - curData.data = jQuery.extend( {}, curData.data ); - } -} - -function fixCloneNodeIssues( src, dest ) { - var nodeName, e, data; - - // We do not need to do anything for non-Elements - if ( dest.nodeType !== 1 ) { - return; - } - - nodeName = dest.nodeName.toLowerCase(); - - // IE6-8 copies events bound via attachEvent when using cloneNode. - if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { - data = jQuery._data( dest ); - - for ( e in data.events ) { - jQuery.removeEvent( dest, e, data.handle ); - } - - // Event data gets referenced instead of copied if the expando gets copied too - dest.removeAttribute( jQuery.expando ); - } - - // IE blanks contents when cloning scripts, and tries to evaluate newly-set text - if ( nodeName === "script" && dest.text !== src.text ) { - disableScript( dest ).text = src.text; - restoreScript( dest ); - - // IE6-10 improperly clones children of object elements using classid. - // IE10 throws NoModificationAllowedError if parent is null, #12132. - } else if ( nodeName === "object" ) { - if ( dest.parentNode ) { - dest.outerHTML = src.outerHTML; - } - - // This path appears unavoidable for IE9. When cloning an object - // element in IE9, the outerHTML strategy above is not sufficient. - // If the src has innerHTML and the destination does not, - // copy the src.innerHTML into the dest.innerHTML. #10324 - if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { - // IE6-8 fails to persist the checked state of a cloned checkbox - // or radio button. Worse, IE6-7 fail to give the cloned element - // a checked appearance if the defaultChecked value isn't also set - - dest.defaultChecked = dest.checked = src.checked; - - // IE6-7 get confused and end up setting the value of a cloned - // checkbox/radio button to an empty string instead of "on" - if ( dest.value !== src.value ) { - dest.value = src.value; - } - - // IE6-8 fails to return the selected option to the default selected - // state when cloning options - } else if ( nodeName === "option" ) { - dest.defaultSelected = dest.selected = src.defaultSelected; - - // IE6-8 fails to set the defaultValue to the correct value when - // cloning other types of input fields - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -jQuery.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - i = 0, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone(true); - jQuery( insert[i] )[ original ]( elems ); - - // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() - core_push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - -function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : - undefined; - - if ( !found ) { - for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { - if ( !tag || jQuery.nodeName( elem, tag ) ) { - found.push( elem ); - } else { - jQuery.merge( found, getAll( elem, tag ) ); - } - } - } - - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], found ) : - found; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( manipulation_rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { - clone = elem.cloneNode( true ); - - // IE<=8 does not properly clone detached, unknown element nodes - } else { - fragmentDiv.innerHTML = elem.outerHTML; - fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); - } - - if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && - (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - // Fix all IE cloning issues - for ( i = 0; (node = srcElements[i]) != null; ++i ) { - // Ensure that the destination node is not null; Fixes #9587 - if ( destElements[i] ) { - fixCloneNodeIssues( node, destElements[i] ); - } - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0; (node = srcElements[i]) != null; i++ ) { - cloneCopyEvent( node, destElements[i] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - destElements = srcElements = node = null; - - // Return the cloned set - return clone; - }, - - buildFragment: function( elems, context, scripts, selection ) { - var j, elem, contains, - tmp, tag, tbody, wrap, - l = elems.length, - - // Ensure a safe fragment - safe = createSafeFragment( context ), - - nodes = [], - i = 0; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || safe.appendChild( context.createElement("div") ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - - tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; - - // Descend through wrappers to the right content - j = wrap[0]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Manually add leading whitespace removed by IE - if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - - // Remove IE's autoinserted from table fragments - if ( !jQuery.support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
    " && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { - elem.removeChild( tbody ); - } - } - } - - jQuery.merge( nodes, tmp.childNodes ); - - // Fix #12392 for WebKit and IE > 9 - tmp.textContent = ""; - - // Fix #12392 for oldIE - while ( tmp.firstChild ) { - tmp.removeChild( tmp.firstChild ); - } - - // Remember the top-level container for proper cleanup - tmp = safe.lastChild; - } - } - } - - // Fix #11356: Clear elements from fragment - if ( tmp ) { - safe.removeChild( tmp ); - } - - // Reset defaultChecked for any radios and checkboxes - // about to be appended to the DOM in IE 6/7 (#8060) - if ( !jQuery.support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( safe.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( (elem = tmp[ j++ ]) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - tmp = null; - - return safe; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = jQuery.support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( acceptData || jQuery.acceptData( elem ) ) { - - id = elem[ internalKey ]; - data = id && cache[ id ]; - - if ( data ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Remove cache only if it was not already removed by jQuery.event.remove - if ( cache[ id ] ) { - - delete cache[ id ]; - - // IE does not allow us to delete expando properties from nodes, - // nor does it have a removeAttribute function on Document nodes; - // we must handle all of these cases - if ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== core_strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - core_deletedIds.push( id ); - } - } - } - } - }, - - _evalUrl: function( url ) { - return jQuery.ajax({ - url: url, - type: "GET", - dataType: "script", - async: false, - global: false, - "throws": true - }); - } -}); -jQuery.fn.extend({ - wrapAll: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapAll( html.call(this, i) ); - }); - } - - if ( this[0] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); - - if ( this[0].parentNode ) { - wrap.insertBefore( this[0] ); - } - - wrap.map(function() { - var elem = this; - - while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { - elem = elem.firstChild; - } - - return elem; - }).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapInner( html.call(this, i) ); - }); - } - - return this.each(function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - }); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each(function(i) { - jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); - }); - }, - - unwrap: function() { - return this.parent().each(function() { - if ( !jQuery.nodeName( this, "body" ) ) { - jQuery( this ).replaceWith( this.childNodes ); - } - }).end(); - } -}); -var iframe, getStyles, curCSS, - ralpha = /alpha\([^)]*\)/i, - ropacity = /opacity\s*=\s*([^)]*)/, - rposition = /^(top|right|bottom|left)$/, - // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" - // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rmargin = /^margin/, - rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), - rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), - rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), - elemdisplay = { BODY: "block" }, - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: 0, - fontWeight: 400 - }, - - cssExpand = [ "Top", "Right", "Bottom", "Left" ], - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // check for vendor prefixed names - var capName = name.charAt(0).toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -function isHidden( elem, el ) { - // isHidden might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); -} - -function showHide( elements, show ) { - var display, elem, hidden, - values = [], - index = 0, - length = elements.length; - - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - values[ index ] = jQuery._data( elem, "olddisplay" ); - display = elem.style.display; - if ( show ) { - // Reset the inline display of this element to learn if it is - // being hidden by cascaded rules or not - if ( !values[ index ] && display === "none" ) { - elem.style.display = ""; - } - - // Set elements which have been overridden with display: none - // in a stylesheet to whatever the default browser style is - // for such an element - if ( elem.style.display === "" && isHidden( elem ) ) { - values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); - } - } else { - - if ( !values[ index ] ) { - hidden = isHidden( elem ); - - if ( display && display !== "none" || !hidden ) { - jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); - } - } - } - } - - // Set the display of most of the elements in a second loop - // to avoid the constant reflow - for ( index = 0; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - if ( !show || elem.style.display === "none" || elem.style.display === "" ) { - elem.style.display = show ? values[ index ] || "" : "none"; - } - } - - return elements; -} - -jQuery.fn.extend({ - css: function( name, value ) { - return jQuery.access( this, function( elem, name, value ) { - var len, styles, - map = {}, - i = 0; - - if ( jQuery.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - }, - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each(function() { - if ( isHidden( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - }); - } -}); - -jQuery.extend({ - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "columnCount": true, - "fillOpacity": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - // normalize float css property - "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - style = elem.style; - - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // convert relative number strings (+= or -=) to relative numbers. #7345 - if ( type === "string" && (ret = rrelNum.exec( value )) ) { - value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); - // Fixes bug #9237 - type = "number"; - } - - // Make sure that NaN and null values aren't set. See: #7116 - if ( value == null || type === "number" && isNaN( value ) ) { - return; - } - - // If a number was passed in, add 'px' to the (except for certain CSS properties) - if ( type === "number" && !jQuery.cssNumber[ origName ] ) { - value += "px"; - } - - // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, - // but it would mean to define eight (for every problematic property) identical functions - if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { - - // Wrapped to prevent IE from throwing errors when 'invalid' values are provided - // Fixes bug #5509 - try { - style[ name ] = value; - } catch(e) {} - } - - } else { - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var num, val, hooks, - origName = jQuery.camelCase( name ); - - // Make sure that we're working with the right name - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - //convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Return, converting to number if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; - } - return val; - } -}); - -// NOTE: we've included the "window" in window.getComputedStyle -// because jsdom on node.js will break without it. -if ( window.getComputedStyle ) { - getStyles = function( elem ) { - return window.getComputedStyle( elem, null ); - }; - - curCSS = function( elem, name, _computed ) { - var width, minWidth, maxWidth, - computed = _computed || getStyles( elem ), - - // getPropertyValue is only needed for .css('filter') in IE9, see #12537 - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, - style = elem.style; - - if ( computed ) { - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right - // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels - // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values - if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret; - }; -} else if ( document.documentElement.currentStyle ) { - getStyles = function( elem ) { - return elem.currentStyle; - }; - - curCSS = function( elem, name, _computed ) { - var left, rs, rsLeft, - computed = _computed || getStyles( elem ), - ret = computed ? computed[ name ] : undefined, - style = elem.style; - - // Avoid setting ret to empty string here - // so we don't default to auto - if ( ret == null && style && style[ name ] ) { - ret = style[ name ]; - } - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // but not position css attributes, as those are proportional to the parent element instead - // and we can't measure the parent instead because it might trigger a "stacking dolls" problem - if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { - - // Remember the original values - left = style.left; - rs = elem.runtimeStyle; - rsLeft = rs && rs.left; - - // Put in the new values to get a computed value out - if ( rsLeft ) { - rs.left = elem.currentStyle.left; - } - style.left = name === "fontSize" ? "1em" : ret; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - if ( rsLeft ) { - rs.left = rsLeft; - } - } - - return ret === "" ? "auto" : ret; - }; -} - -function setPositiveNumber( elem, value, subtract ) { - var matches = rnumsplit.exec( value ); - return matches ? - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i = extra === ( isBorderBox ? "border" : "content" ) ? - // If we already have the right measurement, avoid augmentation - 4 : - // Otherwise initialize for horizontal or vertical properties - name === "width" ? 1 : 0, - - val = 0; - - for ( ; i < 4; i += 2 ) { - // both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // at this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - // at this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // at this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with offset property, which is equivalent to the border-box value - var valueIsBorderBox = true, - val = name === "width" ? elem.offsetWidth : elem.offsetHeight, - styles = getStyles( elem ), - isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // some non-html elements return undefined for offsetWidth, so check for null/undefined - // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 - // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 - if ( val <= 0 || val == null ) { - // Fall back to computed then uncomputed css if necessary - val = curCSS( elem, name, styles ); - if ( val < 0 || val == null ) { - val = elem.style[ name ]; - } - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test(val) ) { - return val; - } - - // we need the check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - } - - // use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -// Try to determine the default display value of an element -function css_defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - // Use the already-created iframe if possible - iframe = ( iframe || - jQuery("