From: sharfuddin Date: Fri, 29 Jul 2016 11:19:23 +0530 Subject: esign --- esign --- --- /dev/null +++ b/AadhaarService/AadharService.sln @@ -0,0 +1,38 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "RemoteServices", "RemoteServices\", "{B2260E9E-A3B8-4557-BFA0-CF1B9D6D17A6}" + ProjectSection(WebsiteProperties) = preProject + TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" + Debug.AspNetCompiler.VirtualPath = "/RemoteServices" + Debug.AspNetCompiler.PhysicalPath = "RemoteServices\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\RemoteServices\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/RemoteServices" + Release.AspNetCompiler.PhysicalPath = "RemoteServices\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\RemoteServices\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + VWDPort = "4948" + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B2260E9E-A3B8-4557-BFA0-CF1B9D6D17A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B2260E9E-A3B8-4557-BFA0-CF1B9D6D17A6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B2260E9E-A3B8-4557-BFA0-CF1B9D6D17A6}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {B2260E9E-A3B8-4557-BFA0-CF1B9D6D17A6}.Release|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Binary files /dev/null and b/AadhaarService/AadharService.suo differ --- /dev/null +++ b/AadhaarService/RemoteServices/Aadhaar.asmx @@ -0,0 +1 @@ +<%@ WebService Language="C#" CodeBehind="~/App_Code/Aadhaar.cs" Class="Aadhaar" %> --- /dev/null +++ b/AadhaarService/RemoteServices/App_Code/Aadhaar.cs @@ -0,0 +1,730 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Services; +using AllAuthClass; +using System.Xml; +using System.Text; +using System.Security.Cryptography.X509Certificates; +using System.Net; +using System.IO; +using System.Collections; +using System.Security.Cryptography; +using System.Security.Cryptography.Pkcs; +using System.Security.Cryptography.Xml; +using Org.BouncyCastle.Crypto; +using Org.BouncyCastle.Crypto.Parameters; +using Org.BouncyCastle.Security; +using iTextSharp.text.pdf; + +/// +/// Summary description for Aadhaar +/// +[WebService(Namespace = "http://tempuri.org/")] +[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] + +public class Aadhaar : System.Web.Services.WebService { + Commonfun objCommonfun = new Commonfun(); + #region variables + public string ASPID { get; set; } + public string PFXPath { get; set; } + public string PFXPassword { get; set; } + public string eSignURL { get; set; } + public string OTPURL { get; set; } + public string AadharNumber { get; set; } + public string OTP { get; set; } + public string SIGNATUREREASON { get; set; } + public string CITY { get; set; } + public string CERTLOCATION { get; set; } + public int SIGNPAGENO { get; set; } + public string UIDAI_cer { get; set; } + + private string timeStamp; + private string transactionID; + private string responseXML; + private string requestXML; + #endregion + [WebMethod] + public string GetOTP(string AadharNo) + { + string result = ""; + string json = ""; + if (AadharNo == "") + { + json = ""; + json += "{"; + json += "\"status\":false"; + json += ",\"msg\":\"Enter AAdhar !\""; + json += "}"; + result = json; + + } + else + { + if (objCommonfun.isValidAadhaar(AadharNo)) + { + AuthOTP objAuthOTP = new AuthOTP(); + StringBuilder strotp = new StringBuilder(); + ASPID = System.Configuration.ConfigurationManager.AppSettings["ASPID"].ToString(); + transactionID = DateTime.Now.ToString("yyyyMMddThhmmss"); + timeStamp = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss"); + strotp.Append(""); + strotp.Append(""); + strotp.Append(""); + requestXML = strotp.ToString(); + PFXPath = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["ClientCertificate"].ToString()); + PFXPassword = "emudhra"; + if (!string.IsNullOrEmpty(PFXPath)) + { + requestXML = SignXML(requestXML); + + } + eSignURL = objCommonfun.getHttpOTPRequesturl(); + string URL = eSignURL; + if (!string.IsNullOrEmpty(URL) && !string.IsNullOrEmpty(requestXML)) + { + responseXML = HttpsWebClientSendSMS(URL, System.Web.HttpUtility.UrlEncode(requestXML)); + var xml = new XmlDocument(); + xml.LoadXml(responseXML); + XmlNode OTPResp = xml.SelectSingleNode("OTPResp"); + if (OTPResp.Attributes["errCode"].Value != string.Empty) + { + json = ""; + json += "{"; + json += "\"status\":false"; + json += ",\"msg\":\"" + OTPResp.Attributes["errMsg"].Value + "\""; + json += "}"; + result = json; + } + else if (OTPResp.Attributes["status"].Value != "0") + { + json = ""; + json += "{"; + json += "\"status\":true"; + json += ",\"msg\":\"OTP generated successfully\""; + json += "}"; + result = json; + } + else + { + json = ""; + json += "{"; + json += "\"status\":false"; + json += ",\"msg\":\"OTP generation failed\""; + json += "}"; + result = json; + } + } + } + else + { + json = ""; + json += "{"; + json += "\"status\":false"; + json += ",\"msg\":\"Invalid Aadhar !\""; + json += "}"; + result = json; + } + } + return result; + } + + [WebMethod] + public string[] KYCData(string AadhaarNo, string otp) + { + List stringList = new List(); + + if (AadhaarNo == "") + { + stringList.Add("Enter AAdhar !"); + } + else + { + + if (otp.Trim() == "") + { + stringList.Add("Enter OTP!"); + + } + else + { + if (objCommonfun.isValidAadhaar(AadhaarNo)) + { + stringList.Add("Success."); + + + # region KYC + string ts = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss"); + + AuthKYC_OTP objAuthOTP = new AuthKYC_OTP(); + + + string pid = objAuthOTP.GenPIDXML_KYC_OTP(otp.Trim(), ts); + string publicKey = objCommonfun.readFicate(); + string AuthXmlToSend = objAuthOTP.GenAuthXML_KYC_OTP(AadhaarNo, publicKey, pid); + string kycXmlToSend = objAuthOTP.GenKycXML(AuthXmlToSend, ts); + string esignXmlToSend = objAuthOTP.GeneSignXML(kycXmlToSend, ts); + + string ResponseXML = ""; + string HttpWebRequesturl = objCommonfun.getHttpWebRequesturl(); + string Urlencoded = HttpUtility.UrlEncode(HttpWebRequesturl); + ResponseXML = objCommonfun.Postauthxml_OnAUA(esignXmlToSend, Urlencoded); + + + string output = objCommonfun.ParseRespXML(ResponseXML); + + XmlDocument Doc = new XmlDocument(); + Doc.LoadXml(ResponseXML); + + XmlNode POI = Doc.SelectSingleNode("/KycRes/UidData/Poi"); + + if (!(POI.SelectSingleNode("@name") == null)) + stringList.Add(POI.SelectSingleNode("@name").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POI.SelectSingleNode("@dob") == null)) + stringList.Add(POI.SelectSingleNode("@dob").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POI.SelectSingleNode("@gender") == null)) + stringList.Add(POI.SelectSingleNode("@gender").Value.ToString()); + else + stringList.Add("NA"); + + + if (!(POI.SelectSingleNode("@email") == null)) + stringList.Add(POI.SelectSingleNode("@email").Value.ToString()); + else + stringList.Add("NA"); + + + if (!(POI.SelectSingleNode("@phone") == null)) + stringList.Add(POI.SelectSingleNode("@phone").Value.ToString()); + else + stringList.Add("NA"); + + + XmlNode POA = Doc.SelectSingleNode("/KycRes/UidData/Poa"); + + + if (!(POA.SelectSingleNode("@co") == null)) + stringList.Add(POA.SelectSingleNode("@co").Value.ToString()); + else + stringList.Add("NA"); + + + if (!(POA.SelectSingleNode("@house") == null)) + stringList.Add(POA.SelectSingleNode("@house").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POA.SelectSingleNode("@street") == null)) + stringList.Add(POA.SelectSingleNode("@street").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POA.SelectSingleNode("@vtc") == null)) + stringList.Add(POA.SelectSingleNode("@vtc").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POA.SelectSingleNode("@po") == null)) + stringList.Add(POA.SelectSingleNode("@po").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POA.SelectSingleNode("@subdist") == null)) + stringList.Add(POA.SelectSingleNode("@subdist").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POA.SelectSingleNode("@dist") == null)) + stringList.Add(POA.SelectSingleNode("@dist").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POA.SelectSingleNode("@state") == null)) + stringList.Add(POA.SelectSingleNode("@state").Value.ToString()); + else + stringList.Add("NA"); + + if (!(POA.SelectSingleNode("@pc") == null)) + stringList.Add(POA.SelectSingleNode("@pc").Value.ToString()); + else + stringList.Add("NA"); + + + XmlNode Pht = Doc.SelectSingleNode("/KycRes/UidData/Pht"); + + if (!(Pht == null)) + stringList.Add(Pht.InnerText.ToString()); + else + stringList.Add("NA"); + + + + #endregion + + } + else + { + stringList.Add("Invalid Aadhaar!"); + + } + } + } + + return stringList.ToArray(); + + + } + private void SetAttribute(XmlDocument XD, XmlNode XN, string AttName, string AttValue) + { + XmlAttribute Att = XN.Attributes.Append(XD.CreateAttribute(AttName)); + Att.InnerText = AttValue; + } + public string getHttpWebRequesturl() + { + return System.Configuration.ConfigurationManager.AppSettings["ServiceURL"].ToString(); + } + [WebMethod] + public string eSignWithOTP(string aadhar_no, string otp, byte[] PDFdocument, string SignerName) + { + string result = ""; + string json = ""; + OTP = otp; + string newFileName = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["LogFile"].ToString()); + ASPID = System.Configuration.ConfigurationManager.AppSettings["ASPID"].ToString(); + //ASPID = "ASPDIETY"; + AadharNumber = aadhar_no; + PdfSignatureAppearance appearance = null; + iTextSharp.text.Rectangle rect = null; + DateTime dttxn = DateTime.Now; + StringBuilder straddhar = new StringBuilder(); + PdfReader reader; + PdfStamper stamper; + SIGNATUREREASON = System.Configuration.ConfigurationManager.AppSettings["SIGNATUREREASON"].ToString(); + CITY = System.Configuration.ConfigurationManager.AppSettings["CITY"].ToString(); + SIGNPAGENO = 1; + CERTLOCATION = System.Configuration.ConfigurationManager.AppSettings["CERTLOCATION"].ToString(); + transactionID = DateTime.Now.ToString("yyyyMMddThhmmss"); + timeStamp = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss"); + string TempFile = string.Empty; + int PdfPagenumber = 0; + + ArrayList TempFiles; + byte[] sigbytes = null, paddedSig = null, TemposBytes = null; + string PDFPassword = "1234"; + if (!string.IsNullOrEmpty(PDFPassword)) + reader = new PdfReader(PDFdocument, new ASCIIEncoding().GetBytes(PDFPassword)); + else + reader = new PdfReader(PDFdocument); + PdfReader.unethicalreading = true; + PdfPagenumber = reader.NumberOfPages; + TempFiles = new ArrayList(); + MemoryStream os = null; + PdfDictionary dic2 = null; + for (int i = 1; i <= PdfPagenumber; i++) + { + if (i != 1) + { + if (!string.IsNullOrEmpty(PDFPassword)) + reader = new PdfReader(TemposBytes, new ASCIIEncoding().GetBytes(PDFPassword)); + else + reader = new PdfReader(TemposBytes); + PdfReader.unethicalreading = true; + if(os==null) + os = new MemoryStream(); + } + else + { + if (os == null) + os = new MemoryStream(); + } + + if (i == SIGNPAGENO) + { + stamper = PdfStamper.CreateSignature(reader, os, '\0', null, true); + appearance = stamper.SignatureAppearance; + //appearance.Reason = SIGNATUREREASON; + //appearance.Layer2Text = "Reason:" + SIGNATUREREASON + "\n" + "Date:" + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss"); + appearance.Layer2Text = "Signed by: " + SignerName + "\n" + "using " + SIGNATUREREASON + "\n" + "Date: " + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss"); + // appearance.SignatureRenderingMode = PdfSignatureAppearance.RenderingMode.NAME_AND_DESCRIPTION; + //appearance.Location = CITY; + //appearance.SignDate = DateTime.Parse(DateTime.Now.ToString("dd-MM-yyyy hh:mm:ss")); + appearance.Acro6Layers = false; + appearance.Image = null; + List rList = new List(); + string[] Cordinatespagelevel = CERTLOCATION.Split(';'); + string[] Pagelevel; + int[] pages = new int[Cordinatespagelevel.Length]; + for (int j = 0; j < Cordinatespagelevel.Length; j++) + { + Pagelevel = Cordinatespagelevel[j].Split(','); + if (Pagelevel.Length > 1) + { + pages[j] = Convert.ToInt32(Pagelevel[0]); + rect = new iTextSharp.text.Rectangle(Convert.ToInt32(Pagelevel[0]), Convert.ToInt32(Pagelevel[1]), Convert.ToInt32(Pagelevel[2]), Convert.ToInt32(Pagelevel[3])); + rList.Add(rect); + } + } + appearance.SetVisibleSignature(rect, i, null); + } + if (i == 1) + { + int contentEstimated = 8192; + Dictionary exc = new Dictionary(); + exc[PdfName.CONTENTS] = contentEstimated * 2 + 2; + PdfSignature dic = new PdfSignature(PdfName.ADOBE_PPKLITE, PdfName.ADBE_PKCS7_DETACHED); + //dic.Reason = appearance.Reason; + // dic.Date = new PdfDate(appearance.SignDate); + appearance.CryptoDictionary = dic; + appearance.PreClose(exc); + Stream ostr = appearance.GetRangeStream(); + HashAlgorithm sha = new SHA256CryptoServiceProvider(); + int read = 0; + byte[] buff = new byte[contentEstimated]; + while ((read = ostr.Read(buff, 0, contentEstimated)) > 0) + { + sha.TransformBlock(buff, 0, read, buff, 0); + } + sha.TransformFinalBlock(buff, 0, 0); + byte[] hashd = Org.BouncyCastle.Utilities.Encoders.Hex.Encode(sha.Hash); + + //eSign Start + + string hashdocument = Encoding.UTF8.GetString(hashd, 0, hashd.Length); + string AADHARXML = GetAadhaarXML(); + string BASE64AadhaarXML = Convert.ToBase64String(new System.Text.ASCIIEncoding().GetBytes(AADHARXML)); + straddhar.Append(""); + straddhar.Append(""); + straddhar.Append("" + hashdocument + ""); + straddhar.Append("" + BASE64AadhaarXML + ""); + straddhar.Append(""); + requestXML = straddhar.ToString(); + PFXPath = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["ClientCertificate"].ToString()); + PFXPassword = "emudhra"; + if (!string.IsNullOrEmpty(PFXPath)) + { + requestXML = SignXML(requestXML); + } + eSignURL = objCommonfun.getHttpWebRequesturl(); + string URL = eSignURL; + if (!string.IsNullOrEmpty(URL) && !string.IsNullOrEmpty(requestXML)) + { + responseXML = HttpsWebClientSendSMS(URL, System.Web.HttpUtility.UrlEncode(requestXML)); + var xml = new XmlDocument(); + xml.LoadXml(responseXML); + XmlNode EsignResp = xml.SelectSingleNode("EsignResp"); + if (EsignResp.Attributes["errCode"].Value != string.Empty) + { + json = ""; + json += "{"; + json += "\"status\":false"; + json += ",\"doc_content\":\"\""; + json += ",\"msg\":\"" + EsignResp.Attributes["errMsg"].Value + "\""; + json += "}"; + result = json; + string clientDetails = aadhar_no + "," + otp + "," + "false" + "," + EsignResp.Attributes["errMsg"].Value + "," + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss") + Environment.NewLine; + //if (!File.Exists(newFileName)) + //{ + // string clientHeader = "Aadhaar Number" + "," + "OTP" + "," + "Status" + "," + "Message" + "," + "Date/Time" + Environment.NewLine; + + // File.WriteAllText(newFileName, clientHeader); + //} + File.AppendAllText(newFileName, clientDetails); + return result; + } + sigbytes = SignDocument(responseXML.ToString(), PDFdocument); + paddedSig = new byte[contentEstimated]; + Array.Copy(sigbytes, 0, paddedSig, 0, sigbytes.Length); + dic2 = new PdfDictionary(); + dic2.Put(PdfName.CONTENTS, new PdfString(paddedSig).SetHexWriting(true)); + appearance.Close(dic2); + TemposBytes = os.ToArray(); + } + + } + else + { + + //dic2 = new PdfDictionary(); + dic2.Put(PdfName.CONTENTS, new PdfString(paddedSig).SetHexWriting(true)); + //appearance.Close(dic2); + TemposBytes = os.ToArray(); + } + } + //appearance.Close(dic2); + if (os != null) + { + string strSignedpdf = Convert.ToBase64String(os.ToArray()); + json = ""; + json += "{"; + json += "\"status\":true"; + json += ",\"doc_content\":\"" + strSignedpdf + "\""; + json += ",\"msg\":\"Signed PDF generated\""; + json += "}"; + result = json; + string clientDetails = aadhar_no + "," + otp + "," + "true" + "," + "Signed PDF generated" + "," + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss") + Environment.NewLine; + //if (!File.Exists(newFileName)) + //{ + // string clientHeader = "Aadhaar Number" + "," + "OTP" + "," + "Status" + "," + "Message" + "," + "Date/Time" + Environment.NewLine; + + // File.WriteAllText(newFileName, clientHeader); + //} + File.AppendAllText(newFileName, clientDetails); + } + else + { + json = ""; + json += "{"; + json += "\"status\":false"; + json += ",\"doc_content\":\"\""; + json += ",\"msg\":\"PDF generation failed\""; + json += "}"; + result = json; + string clientDetails = aadhar_no + "," + otp + "," + "false" + "," + "PDF generation failed" + "," + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss") + Environment.NewLine; + //if (!File.Exists(newFileName)) + //{ + // string clientHeader = "Aadhaar Number" + "," + "OTP" + "," + "Status" + "," + "Message" + "," + "Date/Time" + Environment.NewLine; + + // File.WriteAllText(newFileName, clientHeader); + //} + File.AppendAllText(newFileName, clientDetails); + } + return result; + + } + private string GetAadhaarXML() + { + string PIDXML = GetPIDXML(); + StringBuilder aadhaar = new StringBuilder(); + byte[] SessionKey = getNewSessionKey(); + string Base64UIDAIPublicKeyEncryption = encryptWithPublicKey(SessionKey); + string BASE64SessionKeyAesEncrytionPkcs7Ecb = Convert.ToBase64String(EncryptDataAES(new System.Text.ASCIIEncoding().GetBytes(PIDXML), SessionKey)); + string Base64SessionKeyAesEncrytionPkcs7EcbSHA256Hash = Convert.ToBase64String(EncryptDataAES(Generatehash256(PIDXML), SessionKey)); + + aadhaar.Append(""); + aadhaar.Append(""); + aadhaar.Append(""); + aadhaar.Append("" + Base64UIDAIPublicKeyEncryption + ""); + aadhaar.Append("" + BASE64SessionKeyAesEncrytionPkcs7Ecb + ""); + aadhaar.Append("" + Base64SessionKeyAesEncrytionPkcs7EcbSHA256Hash + ""); + aadhaar.Append(""); + return aadhaar.ToString(); + } + + private string encryptWithPublicKey(byte[] stringToEncrypt) + { + String UIDAICertData = objCommonfun.readFicate(); + //UIDAICertData = UIDAICertData.Replace("-----BEGIN CERTIFICATE-----", string.Empty).Replace("-----END CERTIFICATE-----", string.Empty); + byte[] CertData = Convert.FromBase64String(UIDAICertData); + X509Certificate2 certificate = new X509Certificate2(CertData); + byte[] cipherbytes = Convert.FromBase64String(Convert.ToBase64String(stringToEncrypt)); + RSACryptoServiceProvider rsa = (RSACryptoServiceProvider)certificate.PublicKey.Key; + byte[] cipher = rsa.Encrypt(cipherbytes, false); + return Convert.ToBase64String(cipher); + } + + private string GetPIDXML() + { + StringBuilder pidxml = new StringBuilder(); + pidxml.Append(""); + pidxml.Append(""); + pidxml.Append(""); + return pidxml.ToString(); + } + + private byte[] getNewSessionKey() + { + using (Rijndael myAes = RijndaelManaged.Create("Rijndael")) + { + myAes.KeySize = 256; + myAes.GenerateKey(); + return myAes.Key; + } + } + + private byte[] SignDocument(string Response, byte[] PDFdocument) + { + String SignedXMLfile = string.Empty; + XmlDocument responseXML = new XmlDocument(); + if (!string.IsNullOrEmpty(Response)) + { + responseXML.LoadXml(Response.Trim()); + } + XmlNode Usercertificate = responseXML.SelectSingleNode("//UserX509Certificate"); + String userCertificate = string.Empty; + + if (Usercertificate != null) + userCertificate = Usercertificate.InnerText; + + if (!string.IsNullOrEmpty(userCertificate)) + { + X509Certificate2 certificate = new X509Certificate2(); + certificate.Import(new System.Text.ASCIIEncoding().GetBytes(userCertificate)); + //this.SignerName = certificate.GetNameInfo(X509NameType.SimpleName, false); + XmlNode Signedhash = responseXML.SelectSingleNode("//Pkcs7Response"); + String signedHash = Signedhash.InnerText; + + X509Certificate2 SignedPkcs7certificate = new X509Certificate2(); + SignedPkcs7certificate.Import(Org.BouncyCastle.Utilities.Encoders.Base64.Decode(signedHash)); + return Org.BouncyCastle.Utilities.Encoders.Base64.Decode(signedHash); + } + return null; + } + + private static String HttpsWebClientSendSMS(string URI, string queryString) + { + string result = string.Empty; + WebClient webclient = null; + webclient = new WebClient(); + webclient.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; + result = webclient.UploadString(URI, queryString); + return (result); + } + private String SignXML(String XMLValue) + { + try + { + + string SignedXML = string.Empty; + X509Certificate2 Cert = new System.Security.Cryptography.X509Certificates.X509Certificate2(); + + CryptoConfig.AddAlgorithm(typeof(System.Security.Cryptography.SignatureDescription), "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"); + + Cert = new X509Certificate2(PFXPath, PFXPassword,X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet); + + XmlDocument Document = new XmlDocument(); + Document.LoadXml(XMLValue); + + // Export private key from cert.PrivateKey and import into a PROV_RSA_AES provider: + var exportedKeyMaterial = Cert.PrivateKey.ToXmlString( /* includePrivateParameters = */ true); + var key = new RSACryptoServiceProvider(); + key.PersistKeyInCsp = false; + key.FromXmlString(exportedKeyMaterial); + + SignedXml signedXml = new SignedXml(Document); + + signedXml.SigningKey = key; + + // Add a signing reference, the uri is empty and so the whole document + // is signed. + Reference reference = new Reference(); + reference.AddTransform(new XmlDsigEnvelopedSignatureTransform()); + reference.Uri = ""; + signedXml.AddReference(reference); + + // Add the certificate as key info, because of this the certificate + // with the public key will be added in the signature part. + KeyInfo keyInfo = new KeyInfo(); + keyInfo.AddClause(new KeyInfoX509Data(Cert)); + signedXml.KeyInfo = keyInfo; + + // Generate the signature. + signedXml.ComputeSignature(); + + // Get the XML representation of the signature and save + // it to an XmlElement object. + XmlElement xmlDigitalSignature = signedXml.GetXml(); + + Document.DocumentElement.AppendChild( + Document.ImportNode(xmlDigitalSignature, true)); + + SignedXML = Document.OuterXml; + + return SignedXML; + + } + catch(Exception ex) + { + return null; + } + } + + private static byte[] EncryptDataAES(byte[] toEncrypt, byte[] key) + { + IBufferedCipher cipher = CipherUtilities.GetCipher("AES/ECB/PKCS7"); + byte[] iv = { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, + (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, + (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, + (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 }; + + cipher.Init(true, new KeyParameter(key)); + + int outputSize = cipher.GetOutputSize(toEncrypt.Length); + byte[] tempOP = new byte[outputSize]; + int processLen = cipher.ProcessBytes(toEncrypt, 0, toEncrypt.Length, tempOP, 0); + int outputLen = cipher.DoFinal(tempOP, processLen); + + byte[] result = new byte[processLen + outputLen]; + System.Array.Copy(tempOP, 0, result, 0, result.Length); + return result; + } + + private static byte[] Generatehash256(string text) + { + byte[] message = Encoding.UTF8.GetBytes(text); + + UnicodeEncoding UE = new UnicodeEncoding(); + byte[] hashValue; + SHA256Managed hashString = new SHA256Managed(); + hashValue = hashString.ComputeHash(message); + return hashValue; + } +//public byte[] eSign(string AADHAR, string OTP, byte[] pdfdoc) +// public string eSign(string AADHAR, string OTP, byte[] pdfdoc) +// { +// try +// { +// //byte[] esignepdf = eSignWithOTP(AADHAR,OTP,pdfdoc); +// string esignepdf = eSignWithOTP(AADHAR, OTP, pdfdoc); +// if (esignepdf != null) +// { +// //e_signEntities entities = new e_signEntities(); +// //t_esign_log addrecord = new t_esign_log(); +// //addrecord.aadhaar_no = AADHAR; +// //addrecord.otp = OTP; +// //addrecord.pdf_doc = pdfdoc; +// //addrecord.transcation_id = DateTime.Now.ToString("yyyyMMddThhmmss"); +// //addrecord.status = "Success"; +// //entities.AddTot_esign_log(addrecord); +// //entities.SaveChanges(); +// return esignepdf; +// } +// else +// { +// //e_signEntities entities = new e_signEntities(); +// //t_esign_log addrecord = new t_esign_log(); +// //addrecord.aadhaar_no = AADHAR; +// //addrecord.otp = OTP; +// //addrecord.pdf_doc = pdfdoc; +// //addrecord.transcation_id = DateTime.Now.ToString("yyyyMMddThhmmss"); +// //addrecord.status = "Failed"; +// //entities.AddTot_esign_log(addrecord); +// //entities.SaveChanges(); +// return "response is null from esign"; +// } + +// } +// catch(Exception ex) +// { +// //e_signEntities entities = new e_signEntities(); +// //t_esign_log addrecord = new t_esign_log(); +// //addrecord.aadhaar_no = AADHAR; +// //addrecord.otp = OTP; +// //addrecord.pdf_doc = pdfdoc; +// //addrecord.transcation_id = DateTime.Now.ToString("yyyyMMddThhmmss"); +// //addrecord.status = "Failed"; +// //entities.AddTot_esign_log(addrecord); +// //entities.SaveChanges(); +// return ex.Message; + +// } + +//} + +} --- /dev/null +++ b/AadhaarService/RemoteServices/App_Code/AadharBasedPDFSigning.cs.exclude @@ -0,0 +1,392 @@ +#region using +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Net; +using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; +using System.Security.Cryptography.Xml; +using System.Text; +using System.Xml; +using iTextSharp.text.pdf; +using Org.BouncyCastle.Crypto; +using Org.BouncyCastle.Crypto.Parameters; +using Org.BouncyCastle.Security; +#endregion + +namespace AadharBasedPDFSigning +{ + public class eSigner + { + #region variables + public string ASPID { get; set; } + public string PFXPath { get; set; } + public string PFXPassword { get; set; } + public string eSignURL { get; set; } + public string OTPURL { get; set; } + public string AadharNumber { get; set; } + public string OTP { get; set; } + + public string SIGNATUREREASON { get; set; } + public string CITY { get; set; } + public string CERTLOCATION { get; set; } + public int SIGNPAGENO { get; set; } + public string UIDAI_cer { get; set; } + + private string timeStamp; + private string transactionID; + private string responseXML; + private string requestXML; + #endregion + + #region Constructor + public void eSigner() + { + SIGNATUREREASON = "eSign Testing"; + CITY = "Bangalore"; + SIGNPAGENO = 1; + CERTLOCATION = "390,50,590,200"; + UIDAI_cer = "MIIErDCCA5SgAwIBAgIKFh9MnUukpTm2bDANBgkqhkiG9w0BAQsFADBmMQswCQYD" + + "VQQGEwJJTjEkMCIGA1UEChMbTmF0aW9uYWwgSW5mb3JtYXRpY3MgQ2VudHJlMQ8w" + + "DQYDVQQLEwZTdWItQ0ExIDAeBgNVBAMTF05JQyBzdWItQ0EgZm9yIE5JQyAyMDEx" + + "MB4XDTEzMDgwNjA2NTg0MVoXDTE1MDgwNTA2NTg0MVoweDELMAkGA1UEBhMCSU4x" + + "DjAMBgNVBAoTBVVJREFJMRowGAYDVQQLExFURUNITk9MT0dZIENFTlRFUjEPMA0G" + + "A1UEERMGNTYwMTAzMRIwEAYDVQQIEwlLQVJOQVRBS0ExGDAWBgNVBAMTD1N1ZGhp" + + "ciBOYXJheWFuYTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALpngEVc" + + "Bq/SHc2Xt1CH/5pykI+otZCaJskY9+b4GjXH0Pc/533qWatu9veqJKDig1Sil56G" + + "sSF3CqWrtTNvJlsj4jpLHsIVy/Gg7DgZ0FJ/9aj8OkLs6rbb4+mclPPbZphpCr7O" + + "wGwIZqioqRtp8dmoMvKcdze9dr1OOCipAvCgGBXKv6chcSGLQXp3Fma27Mvt2mHw" + + "IMS7jJnAgStD/Fnbxf30N1y9pOxdQpD/8p904OFICWyXdAjUHkqGWZnYVRk2P6FG" + + "tKJZhYhcG+h2F93SNve5NMbJ6t/N321pmrAmsm7n/uWG26pD8r9uw0Px8/u1tzN7" + + "hXQihIMrlC4ZVCcCAwEAAaOCAUgwggFEMB0GA1UdDgQWBBTfC0WfcFs78h0m4YyN" + + "yr3mOmlsBjAfBgNVHSMEGDAWgBT6gA8c/HOkx2mQE67vPBCtqq8ZhDAOBgNVHQ8B" + + "Af8EBAMCBSAwIQYDVR0RBBowGIEWc3VkaGlyLnVpZGFpQGdtYWlsLmNvbTA4BgNV" + + "HSAEMTAvMC0GBmCCZGQCAzAjMCEGCCsGAQUFBwICMBUaE0NsYXNzIDMgQ2VydGlm" + + "aWNhdGUwUgYIKwYBBQUHAQEERjBEMEIGCCsGAQUFBzAChjZodHRwOi8vbmljY2Eu" + + "bmljLmluL2NlcnQvY2VydF8xNDI5MjZEMkZGMTQ0MzlCMzhGOS5jZXIwQQYDVR0f" + + "BDowODA2oDSgMoYwaHR0cDovL25pY2NhLm5pYy5pbi9jcmxfMTQyOTI2RDJGRjE0" + + "NDM5QjM4RjkuY3JsMA0GCSqGSIb3DQEBCwUAA4IBAQCveoLaOw0fSqZWqiU4jJeP" + + "OUotDDP83LNPgVddqMkuAQUgX5WPYFWwmvZEwDlptlt/PJyc38a8oLlzjM/01yS9" + + "8/BU07P8lSOPV5Gi8SocSloyEMrWXnWR5eIdLDWac/qHdoga1WbBsPVupBfXTWma" + + "zuaCAk8TF2/d8+6HiXyhRjS5TVckiidnau2id2cWk6SM9LfusfpmRfHQ/7iUy3AS" + + "NbB4LZKlOGiJ5U75Qqj1Bs4Df0Eepa+ahV/zsDeeWy+d1tpmzsePuJgVeoh7yeCq"; + + transactionID = DateTime.Now.ToString("yyyyMMddThhmmss"); + timeStamp = DateTime.Now.ToString("yyyyMMddThhmmss"); + } + #endregion + #region "Public Methods" + public byte[] eSignWithOTP(byte[] PDFdocument) + { + DateTime dttxn = DateTime.Now; + StringBuilder straddhar = new StringBuilder(); + PdfReader reader; + PdfStamper stamper; + string TempFile = string.Empty; + int PdfPagenumber = 0; + ArrayList TempFiles; + byte[] sigbytes = null, paddedSig = null, TemposBytes = null; + + if (!string.IsNullOrEmpty(PDFPassword)) + reader = new PdfReader(PDFdocument, new ASCIIEncoding().GetBytes(PDFPassword)); + else + reader = new PdfReader(PDFdocument); + PdfReader.unethicalreading = true; + PdfPagenumber = reader.NumberOfPages; + TempFiles = new ArrayList(); + MemoryStream os = null; + + for (int i = 1; i <= PdfPagenumber; i++) + { + if (i != 1) + { + if (!string.IsNullOrEmpty(PDFPassword)) + reader = new PdfReader(TemposBytes, new ASCIIEncoding().GetBytes(PDFPassword)); + else + reader = new PdfReader(TemposBytes); + PdfReader.unethicalreading = true; + + os = new MemoryStream(); + } + else + { + os = new MemoryStream(); + } + + + if (i == SIGNPAGENO) + { + stamper = PdfStamper.CreateSignature(reader, os, '\0', null, true); + + PdfSignatureAppearance appearance = stamper.SignatureAppearance; + appearance.Reason = SIGNATUREREASON; + appearance.Location = CITY; + appearance.SignDate = DateTime.Now; + appearance.Acro6Layers = false; + appearance.Image = null; + + List rList = new List(); + string[] Cordinatespagelevel = CERTLOCATION.Split(';'); + string[] Pagelevel; + int[] pages = new int[Cordinatespagelevel.Length]; + iTextSharp.text.Rectangle rect = null; + for (int j = 0; j < Cordinatespagelevel.Length; j++) + { + Pagelevel = Cordinatespagelevel[j].Split(','); + if (Pagelevel.Length > 1) + { + pages[j] = Convert.ToInt32(Pagelevel[0]); + rect = new iTextSharp.text.Rectangle(Convert.ToInt32(Pagelevel[0]), Convert.ToInt32(Pagelevel[1]), Convert.ToInt32(Pagelevel[2]), Convert.ToInt32(Pagelevel[3])); + rList.Add(rect); + } + } + appearance.SetVisibleSignature(rect, i, null); + } + + int contentEstimated = 8192; + Dictionary exc = new Dictionary(); + exc[PdfName.CONTENTS] = contentEstimated * 2 + 2; + PdfSignature dic = new PdfSignature(PdfName.ADOBE_PPKLITE, PdfName.ADBE_PKCS7_DETACHED); + dic.Reason = appearance.Reason; + dic.Location = appearance.Location; + dic.Contact = appearance.Contact; + dic.Date = new PdfDate(appearance.SignDate); + appearance.CryptoDictionary = dic; + appearance.PreClose(exc); + + if (i == 1) + { + Stream ostr = appearance.GetRangeStream(); + HashAlgorithm sha = new SHA256CryptoServiceProvider(); + int read = 0; + byte[] buff = new byte[contentEstimated]; + while ((read = ostr.Read(buff, 0, contentEstimated)) > 0) + { + sha.TransformBlock(buff, 0, read, buff, 0); + } + sha.TransformFinalBlock(buff, 0, 0); + byte[] hashd = Org.BouncyCastle.Utilities.Encoders.Hex.Encode(sha.Hash); + + //eSign Start + string hashdocument = Encoding.UTF8.GetString(hashd, 0, hashd.Length); + string AADHARXML = GetAadhaarXML(); + string BASE64AadhaarXML = Convert.ToBase64String(new System.Text.ASCIIEncoding().GetBytes(AADHARXML)); + straddhar.Append(""); + straddhar.Append("" + hashdocument + ""); + straddhar.Append("" + BASE64AadhaarXML + ""); + straddhar.Append(""); + requestXML = straddhar.ToString(); + + if (!string.IsNullOrEmpty(PFXPath)) + requestXML = SignXML(requestXML); + + string URL = eSignURL; + + if (!string.IsNullOrEmpty(URL) && !string.IsNullOrEmpty(requestXML)) + { + responseXML = HttpsWebClientSendSMS(URL, System.Web.HttpUtility.UrlEncode(requestXML)); + var xml = new XmlDocument(); + xml.LoadXml(responseXML); + + XmlNode EsignResp = xml.SelectSingleNode("EsignResp"); + + if (EsignResp.Attributes["errCode"].Value != string.Empty) + return null; + + sigbytes = SignDocument(responseXML.ToString(), PDFdocument); + paddedSig = new byte[contentEstimated]; + + Array.Copy(sigbytes, 0, paddedSig, 0, sigbytes.Length); + PdfDictionary dic2 = new PdfDictionary(); + dic2.Put(PdfName.CONTENTS, new PdfString(paddedSig).SetHexWriting(true)); + + appearance.Close(dic2); + + TemposBytes = os.ToArray(); + } + } + else + { + PdfDictionary dic2 = new PdfDictionary(); + dic2.Put(PdfName.CONTENTS, new PdfString(paddedSig).SetHexWriting(true)); + + appearance.Close(dic2); + TemposBytes = os.ToArray(); + } + } + return os.ToArray(); + } + #endregion + + #region "Private Methods" + private string GetAadhaarXML() + { + string PIDXML = GetPIDXML(); + StringBuilder aadhaar = new StringBuilder(); + byte[] SessionKey = getNewSessionKey(); + string Base64UIDAIPublicKeyEncryption = encryptWithPublicKey(SessionKey); + string BASE64SessionKeyAesEncrytionPkcs7Ecb = Convert.ToBase64String(EncryptDataAES(new System.Text.ASCIIEncoding().GetBytes(PIDXML), SessionKey)); + string Base64SessionKeyAesEncrytionPkcs7EcbSHA256Hash = Convert.ToBase64String(EncryptDataAES(Generatehash256(PIDXML), SessionKey)); + + aadhaar.Append(""); + aadhaar.Append(""); + aadhaar.Append(""); + aadhaar.Append("" + Base64UIDAIPublicKeyEncryption + ""); + aadhaar.Append("" + BASE64SessionKeyAesEncrytionPkcs7Ecb + ""); + aadhaar.Append("" + Base64SessionKeyAesEncrytionPkcs7EcbSHA256Hash + ""); + aadhaar.Append(""); + return aadhaar.ToString(); + } + + private string encryptWithPublicKey(byte[] stringToEncrypt) + { + String UIDAICertData = UIDAI_cer; + UIDAICertData = UIDAICertData.Replace("-----BEGIN CERTIFICATE-----", string.Empty).Replace("-----END CERTIFICATE-----", string.Empty); + byte[] CertData = Convert.FromBase64String(UIDAICertData); + X509Certificate2 certificate = new X509Certificate2(CertData); + byte[] cipherbytes = Convert.FromBase64String(Convert.ToBase64String(stringToEncrypt)); + RSACryptoServiceProvider rsa = (RSACryptoServiceProvider)certificate.PublicKey.Key; + byte[] cipher = rsa.Encrypt(cipherbytes, false); + return Convert.ToBase64String(cipher); + } + + private string GetPIDXML() + { + StringBuilder pidxml = new StringBuilder(); + pidxml.Append(""); + pidxml.Append(""); + pidxml.Append(""); + return pidxml.ToString(); + } + + private byte[] getNewSessionKey() + { + using (Rijndael myAes = RijndaelManaged.Create("Rijndael")) + { + myAes.KeySize = 256; + myAes.GenerateKey(); + return myAes.Key; + } + } + + private byte[] SignDocument(string Response, byte[] PDFdocument) + { + String SignedXMLfile = string.Empty; + XmlDocument responseXML = new XmlDocument(); + if (!string.IsNullOrEmpty(Response)) + { + responseXML.LoadXml(Response.Trim()); + } + XmlNode Usercertificate = responseXML.SelectSingleNode("//UserX509Certificate"); + String userCertificate = string.Empty; + + if (Usercertificate != null) + userCertificate = Usercertificate.InnerText; + + if (!string.IsNullOrEmpty(userCertificate)) + { + X509Certificate2 certificate = new X509Certificate2(); + certificate.Import(new System.Text.ASCIIEncoding().GetBytes(userCertificate)); + XmlNode Signedhash = responseXML.SelectSingleNode("//Pkcs7Response"); + String signedHash = Signedhash.InnerText; + + X509Certificate2 SignedPkcs7certificate = new X509Certificate2(); + SignedPkcs7certificate.Import(Org.BouncyCastle.Utilities.Encoders.Base64.Decode(signedHash)); + + return Org.BouncyCastle.Utilities.Encoders.Base64.Decode(signedHash); + } + return null; + } + + private static String HttpsWebClientSendSMS(string URI, string queryString) + { + string result = string.Empty; + WebClient webclient = null; + webclient = new WebClient(); + webclient.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; + result = webclient.UploadString(URI, queryString); + return (result); + } + + private String SignXML(String XMLValue) + { + string SignedXML = string.Empty; + X509Certificate2 Cert = new System.Security.Cryptography.X509Certificates.X509Certificate2(); + + CryptoConfig.AddAlgorithm(typeof(Security.Cryptography.RSAPKCS1SHA256SignatureDescription), "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"); + Cert = new X509Certificate2(PFXPath, PFXPassword, X509KeyStorageFlags.Exportable); + + XmlDocument Document = new XmlDocument(); + Document.LoadXml(XMLValue); + + // Export private key from cert.PrivateKey and import into a PROV_RSA_AES provider: + var exportedKeyMaterial = Cert.PrivateKey.ToXmlString( /* includePrivateParameters = */ true); + var key = new RSACryptoServiceProvider(); + key.PersistKeyInCsp = false; + key.FromXmlString(exportedKeyMaterial); + + SignedXml signedXml = new SignedXml(Document); + signedXml.SigningKey = key; + + // Add a signing reference, the uri is empty and so the whole document + // is signed. + Reference reference = new Reference(); + reference.AddTransform(new XmlDsigEnvelopedSignatureTransform()); + reference.Uri = ""; + signedXml.AddReference(reference); + + // Add the certificate as key info, because of this the certificate + // with the public key will be added in the signature part. + KeyInfo keyInfo = new KeyInfo(); + keyInfo.AddClause(new KeyInfoX509Data(Cert)); + signedXml.KeyInfo = keyInfo; + + // Generate the signature. + signedXml.ComputeSignature(); + + // Get the XML representation of the signature and save + // it to an XmlElement object. + XmlElement xmlDigitalSignature = signedXml.GetXml(); + + Document.DocumentElement.AppendChild( + Document.ImportNode(xmlDigitalSignature, true)); + + SignedXML = Document.OuterXml; + return SignedXML; + } + + private static byte[] EncryptDataAES(byte[] toEncrypt, byte[] key) + { + IBufferedCipher cipher = CipherUtilities.GetCipher("AES/ECB/PKCS7"); + byte[] iv = { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, + (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, + (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, + (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 }; + + cipher.Init(true, new KeyParameter(key)); + + int outputSize = cipher.GetOutputSize(toEncrypt.Length); + byte[] tempOP = new byte[outputSize]; + int processLen = cipher.ProcessBytes(toEncrypt, 0, toEncrypt.Length, tempOP, 0); + int outputLen = cipher.DoFinal(tempOP, processLen); + + byte[] result = new byte[processLen + outputLen]; + System.Array.Copy(tempOP, 0, result, 0, result.Length); + return result; + } + + private static byte[] Generatehash256(string text) + { + byte[] message = Encoding.UTF8.GetBytes(text); + + UnicodeEncoding UE = new UnicodeEncoding(); + byte[] hashValue; + SHA256Managed hashString = new SHA256Managed(); + hashValue = hashString.ComputeHash(message); + return hashValue; + } + + #endregion + } +} --- /dev/null +++ b/AadhaarService/RemoteServices/App_Code/AuthDemographic.cs @@ -0,0 +1,150 @@ +using ClassLibrary1; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Threading.Tasks; +using System.Xml; + +namespace AllAuthClass +{ + public class AuthDemographic + { + private void SetAttribute(XmlDocument XD, XmlNode XN, string AttName, string AttValue) + { + XmlAttribute Att = XN.Attributes.Append(XD.CreateAttribute(AttName)); + Att.InnerText = AttValue; + } + + public string GenPIDXML_Demographic(string PersonName = "", string PersonGender = "", string PersonDOB = "", string PersonPhone = "", string MatchScheme = "E", string MatchValue = "100", string PersonPincode = "") + { + + string ts = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss"); + XmlDocument XDPid = new XmlDocument(); + XmlNode docNode = XDPid.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDPid.AppendChild(docNode); + XmlNode Root = XDPid.AppendChild(XDPid.CreateElement("Pid")); + SetAttribute(XDPid, Root, "ts", ts); + + XmlNode Demo = Root.AppendChild(XDPid.CreateElement("Demo")); + //if (!string.IsNullOrEmpty(PersonName)) + //{ + XmlNode Pi = Demo.AppendChild(XDPid.CreateElement("Pi")); + SetAttribute(XDPid, Pi, "ms", MatchScheme); + SetAttribute(XDPid, Pi, "mv", MatchValue); + + if (!string.IsNullOrEmpty(PersonName)) + SetAttribute(XDPid, Pi, "name", PersonName.Trim()); + if (!string.IsNullOrEmpty(PersonGender)) + SetAttribute(XDPid, Pi, "gender", PersonGender); + if (!string.IsNullOrEmpty(PersonDOB)) + SetAttribute(XDPid, Pi, "dob", PersonDOB); + if (!string.IsNullOrEmpty(PersonPhone)) + SetAttribute(XDPid, Pi, "phone", PersonPhone); + + if (!string.IsNullOrEmpty(PersonPincode)) + { + XmlNode Pa = Demo.AppendChild(XDPid.CreateElement("Pa")); + MatchScheme = "E";//Default Value + SetAttribute(XDPid, Pa, "ms", MatchScheme); + if (!string.IsNullOrEmpty(PersonPincode)) + SetAttribute(XDPid, Pa, "pc", PersonPincode); + //} + + } + return XDPid.InnerXml; + } + + + private static string GetSHA1HashData(string text) + { + Encoding enc = Encoding.Default; + byte[] buffer = enc.GetBytes(text); + SHA1CryptoServiceProvider cryptoTransformSha1 = new SHA1CryptoServiceProvider(); + string hash = BitConverter.ToString(cryptoTransformSha1.ComputeHash(buffer)).Replace("-", ""); + return hash; + } + + + public string GenAuthXML_Demographic(string aadharNo="", string PersonName="", string PersonPincode="", string publicKey="", string AllDetailsEntered="", string pid="") + { + //Generate Own Transaction ID for Identification of rach transaction + string TxnHashVal = GetSHA1HashData(AllDetailsEntered); + + Enc xx = new Enc(Convert.FromBase64String(publicKey)); + //Generate Session Key + byte[] sessionKey = xx.generateSessionKey(); + //Now Encrypt Session Key using Public Certificate of UIDAI + byte[] encryptedSessionKey = xx.encryptUsingPublicKey(sessionKey); + + byte[] pidXmlBytes = Encoding.UTF8.GetBytes(pid); + //Encrypt PID block using Session Key + byte[] encXMLPIDData = xx.encryptUsingSessionKey(sessionKey, pidXmlBytes); + //Calculate HMAC of PID Block + byte[] hmac = xx.generateSha256Hash(pidXmlBytes); + //Encrypt HMAC using Session Key + byte[] encryptedHmacBytes = xx.encryptUsingSessionKey(sessionKey, hmac); + //Get Certificate Identifier from Public Key + string certificateIdentifier = xx.getCertificateIdentifier(); + XmlDocument XDAuth = new XmlDocument(); + XmlNode docNode = XDAuth.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDAuth.AppendChild(docNode); + XmlNode Root = XDAuth.AppendChild(XDAuth.CreateElement("Auth", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Root, "uid", aadharNo.Trim()); + SetAttribute(XDAuth, Root, "tid", "public"); + SetAttribute(XDAuth, Root, "sa", "NICDEM"); + SetAttribute(XDAuth, Root, "txn", TxnHashVal); + SetAttribute(XDAuth, Root, "xmlns", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0"); + XmlNode Uses = Root.AppendChild(XDAuth.CreateElement("Uses", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + XDAuth.DocumentElement.AppendChild(Uses); + + + if (!string.IsNullOrEmpty(PersonPincode) && !string.IsNullOrEmpty(PersonName)) + { + SetAttribute(XDAuth, Uses, "pi", "y"); + SetAttribute(XDAuth, Uses, "pa", "y"); + } + else + { + if (!string.IsNullOrEmpty(PersonPincode)) + { + SetAttribute(XDAuth, Uses, "pi", "n"); + SetAttribute(XDAuth, Uses, "pa", "y"); + + } + else + { + SetAttribute(XDAuth, Uses, "pi", "y"); + SetAttribute(XDAuth, Uses, "pa", "n"); + } + } + SetAttribute(XDAuth, Uses, "pfa", "n"); + SetAttribute(XDAuth, Uses, "bio", "n"); + SetAttribute(XDAuth, Uses, "bt", ""); + SetAttribute(XDAuth, Uses, "pin", "n"); + SetAttribute(XDAuth, Uses, "otp", "n"); + XmlNode Meta = Root.AppendChild(XDAuth.CreateElement("Meta", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Meta, "udc", "NICTEST"); + SetAttribute(XDAuth, Meta, "pip", "127.0.0.1"); + SetAttribute(XDAuth, Meta, "fdc", "NC"); + SetAttribute(XDAuth, Meta, "idc", "NA"); + SetAttribute(XDAuth, Meta, "lot", "P"); + SetAttribute(XDAuth, Meta, "lov", "110092"); + XmlNode Skey = Root.AppendChild(XDAuth.CreateElement("Skey", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Skey, "ci", certificateIdentifier); + Skey.InnerXml = Convert.ToBase64String(encryptedSessionKey); + XmlNode Data = Root.AppendChild(XDAuth.CreateElement("Data", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Data, "type", "X"); + Data.InnerXml = Convert.ToBase64String(encXMLPIDData); + + XmlNode Hmac2 = Root.AppendChild(XDAuth.CreateElement("Hmac", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + Hmac2.InnerXml = Convert.ToBase64String(encryptedHmacBytes); + + return XDAuth.OuterXml; + } + + + + } +} --- /dev/null +++ b/AadhaarService/RemoteServices/App_Code/AuthKYC-OTP.cs @@ -0,0 +1,180 @@ +using ClassLibrary1; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml; + +namespace AllAuthClass +{ + public class AuthKYC_OTP + { + private void SetAttribute(XmlDocument XD, XmlNode XN, string AttName, string AttValue) + { + XmlAttribute Att = XN.Attributes.Append(XD.CreateAttribute(AttName)); + Att.InnerText = AttValue; + } + public string GenPIDXML_KYC_OTP(string OTP = "", string ts = "") + { + XmlDocument XDPid = new XmlDocument(); + XmlNode docNode = XDPid.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDPid.AppendChild(docNode); + XmlNode Root = XDPid.AppendChild(XDPid.CreateElement("Pid")); + SetAttribute(XDPid, Root, "ts", ts); + XmlNode Pv = Root.AppendChild(XDPid.CreateElement("Pv")); + SetAttribute(XDPid, Pv, "otp", OTP); + return XDPid.InnerXml; + } + + public string GenAuthXML_KYC_OTP(string aadharNo = "", string publicKey = "", string pid = "", string txn = "") + { + + + if (!string.IsNullOrEmpty(aadharNo)) + { + txn = aadharNo + System.DateTime.Now.ToString("yyyyMMddHHmmss:fff"); + txn = "UKC:" + txn; + } + else + { + txn = "UKC:" + txn; + } + + + + Enc xx = new Enc(Convert.FromBase64String(publicKey)); + //Generate Session Key + byte[] sessionKey = xx.generateSessionKey(); + //Now Encrypt Session Key using Public Certificate of UIDAI + byte[] encryptedSessionKey = xx.encryptUsingPublicKey(sessionKey); + + byte[] pidXmlBytes = Encoding.UTF8.GetBytes(pid); + //Encrypt PID block using Session Key + byte[] encXMLPIDData = xx.encryptUsingSessionKey(sessionKey, pidXmlBytes); + //Calculate HMAC of PID Block + byte[] hmac = xx.generateSha256Hash(pidXmlBytes); + //Encrypt HMAC using Session Key + byte[] encryptedHmacBytes = xx.encryptUsingSessionKey(sessionKey, hmac); + //Get Certificate Identifier from Public Key + string certificateIdentifier = xx.getCertificateIdentifier(); + + + XmlDocument XDAuth = new XmlDocument(); + XmlNode docNode = XDAuth.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDAuth.AppendChild(docNode); + XmlNode Root = XDAuth.AppendChild(XDAuth.CreateElement("Auth", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Root, "uid", aadharNo.Trim()); + SetAttribute(XDAuth, Root, "tid", "public"); + SetAttribute(XDAuth, Root, "ac", "STGNIC0011"); + SetAttribute(XDAuth, Root, "sa", "AIMS"); + SetAttribute(XDAuth, Root, "ver", "1.6"); + SetAttribute(XDAuth, Root, "txn", txn); + SetAttribute(XDAuth, Root, "lk", "AIMS"); + SetAttribute(XDAuth, Root, "xmlns", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0"); + + + XmlNode Meta = Root.AppendChild(XDAuth.CreateElement("Meta", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Meta, "udc", "NICTEST"); + SetAttribute(XDAuth, Meta, "fdc", "NC"); + SetAttribute(XDAuth, Meta, "idc", "NA"); + SetAttribute(XDAuth, Meta, "pip", "127.0.0.1"); + SetAttribute(XDAuth, Meta, "lot", "P"); + SetAttribute(XDAuth, Meta, "lov", "110092"); + + XmlNode Skey = Root.AppendChild(XDAuth.CreateElement("Skey", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Skey, "ci", certificateIdentifier); + Skey.InnerXml = Convert.ToBase64String(encryptedSessionKey); + + XmlNode Uses = Root.AppendChild(XDAuth.CreateElement("Uses", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + XDAuth.DocumentElement.AppendChild(Uses); + SetAttribute(XDAuth, Uses, "otp", "y"); + SetAttribute(XDAuth, Uses, "pin", "n"); + SetAttribute(XDAuth, Uses, "pfa", "n"); + SetAttribute(XDAuth, Uses, "pa", "n"); + SetAttribute(XDAuth, Uses, "pi", "n"); + SetAttribute(XDAuth, Uses, "bio", "n"); + + + XmlNode Data = Root.AppendChild(XDAuth.CreateElement("Data", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Data, "type", "X"); + Data.InnerXml = Convert.ToBase64String(encXMLPIDData); + + XmlNode Hmac2 = Root.AppendChild(XDAuth.CreateElement("Hmac", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + Hmac2.InnerXml = Convert.ToBase64String(encryptedHmacBytes); + + return XDAuth.OuterXml; + } + + public string GenKycXML(string allRad = "", string ts = "") + { + + XmlDocument XDKyc = new XmlDocument(); + XmlNode docNode = XDKyc.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDKyc.AppendChild(docNode); + + XmlNode Root = XDKyc.AppendChild(XDKyc.CreateElement("Kyc")); + SetAttribute(XDKyc, Root, "xmlns", "http://www.uidai.gov.in/kyc/uid-kyc-request/1.0"); + SetAttribute(XDKyc, Root, "ver", "1.0"); + SetAttribute(XDKyc, Root, "ts", ts); + SetAttribute(XDKyc, Root, "ra", "O"); + SetAttribute(XDKyc, Root, "rc", "Y"); + SetAttribute(XDKyc, Root, "mec", "Y"); + SetAttribute(XDKyc, Root, "lr", "Y"); + SetAttribute(XDKyc, Root, "de", "N"); + XmlNode Rad = Root.AppendChild(XDKyc.CreateElement("Rad")); + byte[] allRadXmlBytes = Encoding.UTF8.GetBytes(allRad); + Rad.InnerXml = Convert.ToBase64String(allRadXmlBytes); + return XDKyc.OuterXml; + + + } + public string GeneSignXML(string alldata = "", string ts = "") + { + XmlDocument XDKyc = new XmlDocument(); + XmlNode docNode = XDKyc.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDKyc.AppendChild(docNode); + XmlNode Root = XDKyc.AppendChild(XDKyc.CreateElement("Esign")); + SetAttribute(XDKyc, Root, "ver", "1.0"); + SetAttribute(XDKyc, Root, "sc", "Y"); + SetAttribute(XDKyc, Root, "ts", ts); + SetAttribute(XDKyc, Root, "txn", "1de27731-17a3-47b5-b451-b05f3c0cf0g5"); + SetAttribute(XDKyc, Root, "aspId", "ASPDIETY"); + SetAttribute(XDKyc, Root, "esignClass", "1"); + SetAttribute(XDKyc, Root, "preferredCa", "emudra"); + SetAttribute(XDKyc, Root, "gatewayPin", ""); + XmlNode Root1 = Root.AppendChild(XDKyc.CreateElement("Input")); + Root1.InnerXml = "10c4b860e03ae471c5aba112ba7f5cd0dad896b5652eb1ba83dda7f309733c90"; + XmlNode Rad = Root.AppendChild(XDKyc.CreateElement("Aadhaar")); + byte[] allRadXmlBytes = Encoding.UTF8.GetBytes(alldata); + Rad.InnerXml = Convert.ToBase64String(allRadXmlBytes); + XmlNode Rad1 = Root.AppendChild(XDKyc.CreateElement("Signature")); + SetAttribute(XDKyc, Rad1, "xmlns", "http://www.w3.org/2000/09/xmldsig#"); + XmlNode Rad2 = Rad1.AppendChild(XDKyc.CreateElement("SignedInfo")); + XmlNode Rad3 = Rad2.AppendChild(XDKyc.CreateElement("CanonicalizationMethod")); + SetAttribute(XDKyc, Rad3, "Algorithm", "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"); + XmlNode Rad4 = Rad2.AppendChild(XDKyc.CreateElement("SignatureMethod")); + SetAttribute(XDKyc,Rad4,"Algorithm","http://www.w3.org/2000/09/xmldsig#rsa-sha1"); + XmlNode Rad5 = Rad2.AppendChild(XDKyc.CreateElement("Reference")); + SetAttribute(XDKyc, Rad5, "URI", ""); + XmlNode Rad6 = Rad5.AppendChild(XDKyc.CreateElement("Transforms")); + XmlNode Rad7 = Rad6.AppendChild(XDKyc.CreateElement("Transform")); + SetAttribute(XDKyc, Rad7, "Algorithm", "http://www.w3.org/2000/09/xmldsig#enveloped-signature"); + XmlNode Rad8 = Rad6.AppendChild(XDKyc.CreateElement("Transform")); + SetAttribute(XDKyc, Rad8, "Algorithm", "http://www.w3.org/2001/10/xml-exc-c14n#"); + XmlNode Rad9 = Rad5.AppendChild(XDKyc.CreateElement("DigestMethod")); + SetAttribute(XDKyc, Rad9, "Algorithm", "http://www.w3.org/2000/09/xmldsig#sha1"); + XmlNode Rad10 = Rad5.AppendChild(XDKyc.CreateElement("DigestValue")); + Rad10.InnerXml = "0fircy1Ie03VMnoWj5PmH2p6zpM="; + XmlNode Rad11 = Rad1.AppendChild(XDKyc.CreateElement("SignatureValue")); + Rad11.InnerXml = "k0WldtTOzWnEftGSZ9c1pDLe1ojHGZ+E4CuJYWofV5pw9OqzvZNAwr3yJiIokcYDlam28b2vwUHMUs1jlPIuru0nEzYsTn2D8UHzmzKgrIi4NrKdFxiRlpzQhIaRXSybhOrRNIZFU7MhfQjqdpwNJcPw5F1de772C2Ubqptu1sg6sFxN8yWYUMZPd3qRn/9ZDY81U3vLRa461yZMEUgCwfflNYnjQSY2lm/YbcoyyoeLObgmWYmSX1MqiCYPl3N27BIic4s/7ZaKzmbfu0ckUT9NlMVbscwAY50U2Zup77sJUiPVCUbs6zTB6x5f71OF4NEhL1E3qRdzrSub4tspoA=="; + XmlNode Rad12 = Rad1.AppendChild(XDKyc.CreateElement("KeyInfo")); + XmlNode Rad13 = Rad12.AppendChild(XDKyc.CreateElement("X509Data")); + XmlNode Rad14 = Rad13.AppendChild(XDKyc.CreateElement("X509SubjectName")); + Rad14.InnerXml = "CN=DS DEPARTMENT OF ELECTRONICS AND INFORMATION TECHNOLOGY 01, OID.2.5.4.51=ELECTRONICS NIKETAN 6 CGO COMPLEX, STREET=LODHI ROAD, S=Delhi, PostalCode=110003, OU=CID - 940960, O=DEPARTMENT OF ELECTRONICS AND INFORMATION TECHNOLOGY, C=IN"; + XmlNode Rad15 = Rad13.AppendChild(XDKyc.CreateElement("X509Certificate")); + Rad15.InnerXml = "MIIHKjCCBhKgAwIBAgIEUy8rWjANBgkqhkiG9w0BAQsFADCB/DELMAkGA1UEBhMCSU4xQTA/BgNVBAoTOEd1amFyYXQgTmFybWFkYSBWYWxsZXkgRmVydGlsaXplcnMgYW5kIENoZW1pY2FscyBMaW1pdGVkMR0wGwYDVQQLExRDZXJ0aWZ5aW5nIEF1dGhvcml0eTEPMA0GA1UEERMGMzgwMDU0MRAwDgYDVQQIEwdHdWphcmF0MSYwJAYDVQQJEx1Cb2Rha2RldiwgUyBHIFJvYWQsIEFobWVkYWJhZDEcMBoGA1UEMxMTMzAxLCBHTkZDIEluZm90b3dlcjEiMCAGA1UEAxMZKG4pQ29kZSBTb2x1dGlvbnMgQ0EgMjAxNDAeFw0xNTA2MjkwNTI1MTBaFw0xNzA2MjcwMTA1MDVaMIIBCjELMAkGA1UEBhMCSU4xPTA7BgNVBAoTNERFUEFSVE1FTlQgT0YgRUxFQ1RST05JQ1MgQU5EIElORk9STUFUSU9OIFRFQ0hOT0xPR1kxFTATBgNVBAsTDENJRCAtIDk0MDk2MDEPMA0GA1UEERMGMTEwMDAzMQ4wDAYDVQQIEwVEZWxoaTETMBEGA1UECRMKTE9ESEkgUk9BRDEqMCgGA1UEMxMhRUxFQ1RST05JQ1MgTklLRVRBTiA2IENHTyBDT01QTEVYMUMwQQYDVQQDEzpEUyBERVBBUlRNRU5UIE9GIEVMRUNUUk9OSUNTIEFORCBJTkZPUk1BVElPTiBURUNITk9MT0dZIDAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyY29qdE/d5XjLNEYyxvJGrdySWm4zMPRxeB0mpUE5j/TpjWVToVpwO1uOjyymXtimLm1iHgAUaqEGwH2uocHfH9flolqp9SbYsyx0B15M5UoQhJ2aZIpBn2NXaQoFBo7KDKIvnfuCWDytmc9LhYheBgA2S82GBth+rCISAZ0uWJOWk9Nw/PDHqQ1KWrUcI+5aEswBptD2zkwqXRn0QReivQ4xesG/D3Dr5d4/ZEfxmCLFhSoZoBHz7rquDIUBdXn7THlsGsB/EdjdMOV1sblQVQ2Hu+hAzC1+aLExUbcvd+WpVaHSy8SuzcWeUvsL8UjgJuMaDs7SkI9TdVCRbVU9QIDAQABo4ICoTCCAp0wDgYDVR0PAQH/BAQDAgbAMC0GA1UdJQEB/wQjMCEGCCsGAQUFBwMEBgorBgEEAYI3CgMMBgkqhkiG9y8BAQUwbgYDVR0gBGcwZTBjBgZggmRkCgEwWTBXBggrBgEFBQcCAjBLGklUaGlzIGNlcnRpZmljYXRlcyBwcm92aWRlcyBoaWdoZXIgbGV2ZWwgb2YgYXNzdXJhbmNlIGZvciBkb2N1bWVudCBzaWduaW5nMIIBbgYDVR0fBIIBZTCCAWEwggEeoIIBGqCCARakggESMIIBDjELMAkGA1UEBhMCSU4xQTA/BgNVBAoTOEd1amFyYXQgTmFybWFkYSBWYWxsZXkgRmVydGlsaXplcnMgYW5kIENoZW1pY2FscyBMaW1pdGVkMR0wGwYDVQQLExRDZXJ0aWZ5aW5nIEF1dGhvcml0eTEPMA0GA1UEERMGMzgwMDU0MRAwDgYDVQQIEwdHdWphcmF0MSYwJAYDVQQJEx1Cb2Rha2RldiwgUyBHIFJvYWQsIEFobWVkYWJhZDEcMBoGA1UEMxMTMzAxLCBHTkZDIEluZm90b3dlcjEiMCAGA1UEAxMZKG4pQ29kZSBTb2x1dGlvbnMgQ0EgMjAxNDEQMA4GA1UEAxMHQ1JMMTE0NzA9oDugOYY3aHR0cHM6Ly93d3cubmNvZGVzb2x1dGlvbnMuY29tL3JlcG9zaXRvcnkvbmNvZGVjYTE0LmNybDArBgNVHRAEJDAigA8yMDE1MDYyOTA1MjUxMFqBDzIwMTcwNjI3MDEwNTA1WjATBgNVHSMEDDAKgAhNB77xnp37vTAdBgNVHQ4EFgQUYmpCE25+aCAt7d37ucF62RvD6Y8wGQYJKoZIhvZ9B0EABAwwChsEVjguMQMCAygwDQYJKoZIhvcNAQELBQADggEBAA7SBGJ0Xl+q9rIUzxBGHIfyEpZ4OQw06YO7a6XGtqDZESAco61v8IA4JCV6B2+Uz9f05pZ4d033u1C9c+sT8goZqej0yeRpLKVgqy7qKeOX9Ldq6biPIc2Ow+jSvw9TF4TrelQgrkAFqx8M3Dbs1xuvi8lTpdK90rQCag4zdTLIlFtMRsenW7YWFvEHlIPGnKfsFXM2Gzbuu4A7LjQoqf0GcJ5zMt81RKuX9bcgN4/o7sx/nJF7KIFcEAGGc1grWMxR42BLvrYl2wx5z9z8zqrc2gl77nod++ber6uN1/oMBr/nKpXwamU6ZENElllARj1wzO4AbAl+EWQlW/Cm0q4="; + return XDKyc.OuterXml; + } + } +} --- /dev/null +++ b/AadhaarService/RemoteServices/App_Code/AuthOTP.cs @@ -0,0 +1,160 @@ +using ClassLibrary1; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml; + +namespace AllAuthClass +{ + public class AuthOTP + { + private void SetAttribute(XmlDocument XD, XmlNode XN, string AttName, string AttValue) + { + XmlAttribute Att = XN.Attributes.Append(XD.CreateAttribute(AttName)); + Att.InnerText = AttValue; + } + + public string GenPIDXML_OTP(string OTP = "", string ts = "") + { + XmlDocument XDPid = new XmlDocument(); + XmlNode docNode = XDPid.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDPid.AppendChild(docNode); + XmlNode Root = XDPid.AppendChild(XDPid.CreateElement("Pid")); + SetAttribute(XDPid, Root, "ts", ts); + SetAttribute(XDPid, Root, "ver", "1.0"); + XmlNode Pv = Root.AppendChild(XDPid.CreateElement("Pv")); + SetAttribute(XDPid, Pv, "otp", OTP); + return XDPid.InnerXml; + } + + public string GenAuthXML_OTP(string aadharNo = "", string publicKey = "", string pid = "", string txn = "") + { + + + if (!string.IsNullOrEmpty(aadharNo)) + txn = aadharNo + System.DateTime.Now.ToString("yyyyMMddHHmmss:fff"); + + + + + Enc xx = new Enc(Convert.FromBase64String(publicKey)); + //Generate Session Key + byte[] sessionKey = xx.generateSessionKey(); + //Now Encrypt Session Key using Public Certificate of UIDAI + byte[] encryptedSessionKey = xx.encryptUsingPublicKey(sessionKey); + + byte[] pidXmlBytes = Encoding.UTF8.GetBytes(pid); + //Encrypt PID block using Session Key + byte[] encXMLPIDData = xx.encryptUsingSessionKey(sessionKey, pidXmlBytes); + //Calculate HMAC of PID Block + byte[] hmac = xx.generateSha256Hash(pidXmlBytes); + //Encrypt HMAC using Session Key + byte[] encryptedHmacBytes = xx.encryptUsingSessionKey(sessionKey, hmac); + //Get Certificate Identifier from Public Key + string certificateIdentifier = xx.getCertificateIdentifier(); + + + XmlDocument XDAuth = new XmlDocument(); + XmlNode docNode = XDAuth.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDAuth.AppendChild(docNode); + XmlNode Root = XDAuth.AppendChild(XDAuth.CreateElement("Auth", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Root, "uid", aadharNo.Trim()); + SetAttribute(XDAuth, Root, "tid", "public"); + SetAttribute(XDAuth, Root, "ac", "STGNIC0011"); + SetAttribute(XDAuth, Root, "sa", "AIMS"); + SetAttribute(XDAuth, Root, "ver", "1.6"); + SetAttribute(XDAuth, Root, "txn", txn); + SetAttribute(XDAuth, Root, "lk", "AIMS"); + SetAttribute(XDAuth, Root, "xmlns", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0"); + + + XmlNode Meta = Root.AppendChild(XDAuth.CreateElement("Meta", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Meta, "udc", "NICTEST"); + SetAttribute(XDAuth, Meta, "fdc", "NC"); + SetAttribute(XDAuth, Meta, "idc", "NA"); + SetAttribute(XDAuth, Meta, "pip", "127.0.0.1"); + SetAttribute(XDAuth, Meta, "lot", "P"); + SetAttribute(XDAuth, Meta, "lov", "110092"); + + XmlNode Skey = Root.AppendChild(XDAuth.CreateElement("Skey", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Skey, "ci", certificateIdentifier); + Skey.InnerXml = Convert.ToBase64String(encryptedSessionKey); + + XmlNode Uses = Root.AppendChild(XDAuth.CreateElement("Uses", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + XDAuth.DocumentElement.AppendChild(Uses); + SetAttribute(XDAuth, Uses, "otp", "y"); + SetAttribute(XDAuth, Uses, "pin", "n"); + SetAttribute(XDAuth, Uses, "pfa", "n"); + SetAttribute(XDAuth, Uses, "pa", "n"); + SetAttribute(XDAuth, Uses, "pi", "n"); + SetAttribute(XDAuth, Uses, "bio", "n"); + + + XmlNode Data = Root.AppendChild(XDAuth.CreateElement("Data", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + SetAttribute(XDAuth, Data, "type", "X"); + Data.InnerXml = Convert.ToBase64String(encXMLPIDData); + + XmlNode Hmac2 = Root.AppendChild(XDAuth.CreateElement("Hmac", "http://www.uidai.gov.in/authentication/uid-auth-request/1.0")); + Hmac2.InnerXml = Convert.ToBase64String(encryptedHmacBytes); + + return XDAuth.OuterXml; + } + + + + public string GenOTPXML(string aadharNo) + { + XmlDocument XDOtp = new XmlDocument(); + XmlNode docNode = XDOtp.CreateXmlDeclaration("1.0", "UTF-8", "yes"); + XDOtp.AppendChild(docNode); + XmlNode Root = XDOtp.AppendChild(XDOtp.CreateElement("OTP")); + SetAttribute(XDOtp, Root, "ts","2015-07-10T12:33:16"); + SetAttribute(XDOtp, Root, "ver", "1.0"); + SetAttribute(XDOtp, Root, "txn", "fhg65465454fdgfgrahj"); + SetAttribute(XDOtp, Root, "aspId", "ASPDIETY"); + SetAttribute(XDOtp, Root, "uid",aadharNo.Trim()); + XmlNode Rad1 = Root.AppendChild(XDOtp.CreateElement("Signature")); + SetAttribute(XDOtp, Rad1, "xmlns", "http://www.w3.org/2000/09/xmldsig#"); + XmlNode Rad2 = Rad1.AppendChild(XDOtp.CreateElement("SignedInfo")); + XmlNode Rad3 = Rad2.AppendChild(XDOtp.CreateElement("CanonicalizationMethod")); + SetAttribute(XDOtp, Rad3, "Algorithm", "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"); + XmlNode Rad4 = Rad2.AppendChild(XDOtp.CreateElement("SignatureMethod")); + SetAttribute(XDOtp, Rad4, "Algorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1"); + XmlNode Rad5 = Rad2.AppendChild(XDOtp.CreateElement("Reference")); + SetAttribute(XDOtp, Rad5, "URI", ""); + XmlNode Rad6 = Rad5.AppendChild(XDOtp.CreateElement("Transforms")); + XmlNode Rad7 = Rad6.AppendChild(XDOtp.CreateElement("Transform")); + SetAttribute(XDOtp, Rad7, "Algorithm", "http://www.w3.org/2000/09/xmldsig#enveloped-signature"); + XmlNode Rad8 = Rad6.AppendChild(XDOtp.CreateElement("Transform")); + SetAttribute(XDOtp, Rad8, "Algorithm", "http://www.w3.org/2001/10/xml-exc-c14n#"); + XmlNode Rad9 = Rad5.AppendChild(XDOtp.CreateElement("DigestMethod")); + SetAttribute(XDOtp, Rad9, "Algorithm", "http://www.w3.org/2000/09/xmldsig#sha1"); + XmlNode Rad10 = Rad5.AppendChild(XDOtp.CreateElement("DigestValue")); + Rad10.InnerXml = "0fircy1Ie03VMnoWj5PmH2p6zpM="; + XmlNode Rad11 = Rad1.AppendChild(XDOtp.CreateElement("SignatureValue")); + Rad11.InnerXml = "k0WldtTOzWnEftGSZ9c1pDLe1ojHGZ+E4CuJYWofV5pw9OqzvZNAwr3yJiIokcYDlam28b2vwUHMUs1jlPIuru0nEzYsTn2D8UHzmzKgrIi4NrKdFxiRlpzQhIaRXSybhOrRNIZFU7MhfQjqdpwNJcPw5F1de772C2Ubqptu1sg6sFxN8yWYUMZPd3qRn/9ZDY81U3vLRa461yZMEUgCwfflNYnjQSY2lm/YbcoyyoeLObgmWYmSX1MqiCYPl3N27BIic4s/7ZaKzmbfu0ckUT9NlMVbscwAY50U2Zup77sJUiPVCUbs6zTB6x5f71OF4NEhL1E3qRdzrSub4tspoA=="; + XmlNode Rad12 = Rad1.AppendChild(XDOtp.CreateElement("KeyInfo")); + XmlNode Rad13 = Rad12.AppendChild(XDOtp.CreateElement("X509Data")); + XmlNode Rad14 = Rad13.AppendChild(XDOtp.CreateElement("X509SubjectName")); + Rad14.InnerXml = "CN=DS DEPARTMENT OF ELECTRONICS AND INFORMATION TECHNOLOGY 01, OID.2.5.4.51=ELECTRONICS NIKETAN 6 CGO COMPLEX, STREET=LODHI ROAD, S=Delhi, PostalCode=110003, OU=CID - 940960, O=DEPARTMENT OF ELECTRONICS AND INFORMATION TECHNOLOGY, C=IN"; + XmlNode Rad15 = Rad13.AppendChild(XDOtp.CreateElement("X509Certificate")); + Rad15.InnerXml = "MIIHKjCCBhKgAwIBAgIEUy8rWjANBgkqhkiG9w0BAQsFADCB/DELMAkGA1UEBhMCSU4xQTA/BgNVBAoTOEd1amFyYXQgTmFybWFkYSBWYWxsZXkgRmVydGlsaXplcnMgYW5kIENoZW1pY2FscyBMaW1pdGVkMR0wGwYDVQQLExRDZXJ0aWZ5aW5nIEF1dGhvcml0eTEPMA0GA1UEERMGMzgwMDU0MRAwDgYDVQQIEwdHdWphcmF0MSYwJAYDVQQJEx1Cb2Rha2RldiwgUyBHIFJvYWQsIEFobWVkYWJhZDEcMBoGA1UEMxMTMzAxLCBHTkZDIEluZm90b3dlcjEiMCAGA1UEAxMZKG4pQ29kZSBTb2x1dGlvbnMgQ0EgMjAxNDAeFw0xNTA2MjkwNTI1MTBaFw0xNzA2MjcwMTA1MDVaMIIBCjELMAkGA1UEBhMCSU4xPTA7BgNVBAoTNERFUEFSVE1FTlQgT0YgRUxFQ1RST05JQ1MgQU5EIElORk9STUFUSU9OIFRFQ0hOT0xPR1kxFTATBgNVBAsTDENJRCAtIDk0MDk2MDEPMA0GA1UEERMGMTEwMDAzMQ4wDAYDVQQIEwVEZWxoaTETMBEGA1UECRMKTE9ESEkgUk9BRDEqMCgGA1UEMxMhRUxFQ1RST05JQ1MgTklLRVRBTiA2IENHTyBDT01QTEVYMUMwQQYDVQQDEzpEUyBERVBBUlRNRU5UIE9GIEVMRUNUUk9OSUNTIEFORCBJTkZPUk1BVElPTiBURUNITk9MT0dZIDAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyY29qdE/d5XjLNEYyxvJGrdySWm4zMPRxeB0mpUE5j/TpjWVToVpwO1uOjyymXtimLm1iHgAUaqEGwH2uocHfH9flolqp9SbYsyx0B15M5UoQhJ2aZIpBn2NXaQoFBo7KDKIvnfuCWDytmc9LhYheBgA2S82GBth+rCISAZ0uWJOWk9Nw/PDHqQ1KWrUcI+5aEswBptD2zkwqXRn0QReivQ4xesG/D3Dr5d4/ZEfxmCLFhSoZoBHz7rquDIUBdXn7THlsGsB/EdjdMOV1sblQVQ2Hu+hAzC1+aLExUbcvd+WpVaHSy8SuzcWeUvsL8UjgJuMaDs7SkI9TdVCRbVU9QIDAQABo4ICoTCCAp0wDgYDVR0PAQH/BAQDAgbAMC0GA1UdJQEB/wQjMCEGCCsGAQUFBwMEBgorBgEEAYI3CgMMBgkqhkiG9y8BAQUwbgYDVR0gBGcwZTBjBgZggmRkCgEwWTBXBggrBgEFBQcCAjBLGklUaGlzIGNlcnRpZmljYXRlcyBwcm92aWRlcyBoaWdoZXIgbGV2ZWwgb2YgYXNzdXJhbmNlIGZvciBkb2N1bWVudCBzaWduaW5nMIIBbgYDVR0fBIIBZTCCAWEwggEeoIIBGqCCARakggESMIIBDjELMAkGA1UEBhMCSU4xQTA/BgNVBAoTOEd1amFyYXQgTmFybWFkYSBWYWxsZXkgRmVydGlsaXplcnMgYW5kIENoZW1pY2FscyBMaW1pdGVkMR0wGwYDVQQLExRDZXJ0aWZ5aW5nIEF1dGhvcml0eTEPMA0GA1UEERMGMzgwMDU0MRAwDgYDVQQIEwdHdWphcmF0MSYwJAYDVQQJEx1Cb2Rha2RldiwgUyBHIFJvYWQsIEFobWVkYWJhZDEcMBoGA1UEMxMTMzAxLCBHTkZDIEluZm90b3dlcjEiMCAGA1UEAxMZKG4pQ29kZSBTb2x1dGlvbnMgQ0EgMjAxNDEQMA4GA1UEAxMHQ1JMMTE0NzA9oDugOYY3aHR0cHM6Ly93d3cubmNvZGVzb2x1dGlvbnMuY29tL3JlcG9zaXRvcnkvbmNvZGVjYTE0LmNybDArBgNVHRAEJDAigA8yMDE1MDYyOTA1MjUxMFqBDzIwMTcwNjI3MDEwNTA1WjATBgNVHSMEDDAKgAhNB77xnp37vTAdBgNVHQ4EFgQUYmpCE25+aCAt7d37ucF62RvD6Y8wGQYJKoZIhvZ9B0EABAwwChsEVjguMQMCAygwDQYJKoZIhvcNAQELBQADggEBAA7SBGJ0Xl+q9rIUzxBGHIfyEpZ4OQw06YO7a6XGtqDZESAco61v8IA4JCV6B2+Uz9f05pZ4d033u1C9c+sT8goZqej0yeRpLKVgqy7qKeOX9Ldq6biPIc2Ow+jSvw9TF4TrelQgrkAFqx8M3Dbs1xuvi8lTpdK90rQCag4zdTLIlFtMRsenW7YWFvEHlIPGnKfsFXM2Gzbuu4A7LjQoqf0GcJ5zMt81RKuX9bcgN4/o7sx/nJF7KIFcEAGGc1grWMxR42BLvrYl2wx5z9z8zqrc2gl77nod++ber6uN1/oMBr/nKpXwamU6ZENElllARj1wzO4AbAl+EWQlW/Cm0q4="; + return XDOtp.InnerXml; + } + + public string GenOTPResXML() + { + XmlDocument XDOtpRes = new XmlDocument(); + XmlNode Root = XDOtpRes.AppendChild(XDOtpRes.CreateElement("OtpRes")); + SetAttribute(XDOtpRes, Root, "ret", ""); + SetAttribute(XDOtpRes, Root, "code", ""); + SetAttribute(XDOtpRes, Root, "txn", ""); + SetAttribute(XDOtpRes, Root, "err", ""); + SetAttribute(XDOtpRes, Root, "ts", ""); + return XDOtpRes.InnerXml; + } + } + +} \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/App_Code/Commonfun.cs @@ -0,0 +1,337 @@ +using System; +using System.IO; +using System.Net; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Text.RegularExpressions; +using System.Web; +using System.Xml; + +namespace AllAuthClass +{ + public class Commonfun + { + public Commonfun() + { + // + // TODO: Add constructor logic here + // + } + public Boolean isNumericAadhaar(string aadhaar) + { + System.Text.RegularExpressions.Regex expr; + expr = new Regex(@"^\d{12}$"); + if (expr.IsMatch(aadhaar)) + { + return true; + } + else return false; + } + + + public Boolean isValidAadhaar(string aadhaar) + { + if (aadhaar.Length == 12) + { + if (isNumericAadhaar(aadhaar)) + { + if (Verhoeff.validateVerhoeff(aadhaar)) + { + return true; + } + } + } + return false; + } + + public string getHttpWebRequesturl() + { + return System.Configuration.ConfigurationManager.AppSettings["ServiceURL"].ToString(); + } + + public string getHttpOTPRequesturl() + { + return System.Configuration.ConfigurationManager.AppSettings["OTPURL"].ToString(); + } + public string readFicate() + { + + // Read The the certificate from path + WebClient client = new WebClient(); + Stream stream = client.OpenRead(System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["Certificate"].ToString())); + StreamReader reader = new StreamReader(stream); + String content = reader.ReadToEnd(); + content = content.Replace("-----BEGIN CERTIFICATE-----", ""); + content = content.Replace("-----END CERTIFICATE-----", ""); + content = content.Replace("\r\n", ""); + return content; + } + + public string Postauthxml_OnAUA(string authxml, string HttpWebRequesturl) + { + X509Certificate cert = X509Certificate.CreateFromCertFile(System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["ClientCertificate"].ToString())); + HttpWebRequesturl = getHttpWebRequesturl(); + string Urlencoded = HttpUtility.UrlEncode(HttpWebRequesturl); + HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(Urlencoded); + req.Method = "POST"; + req.ProtocolVersion = HttpVersion.Version11; + req.ContentType = "application/xml"; + req.ClientCertificates.Add(cert); + // d1 = DateTime.Now; + + System.Net.ServicePointManager.CertificatePolicy = + new TrustAllCertificatePolicy(); + string content = authxml; + + req.ContentLength = content.Length; + Stream wri = req.GetRequestStream(); + byte[] array = Encoding.UTF8.GetBytes(content); + wri.Write(array, 0, array.Length); + wri.Flush(); + wri.Close(); + HttpWebResponse HttpWResp = (HttpWebResponse)req.GetResponse(); + int resCode = Convert.ToInt32(HttpWResp.StatusCode); + StreamReader reader = new StreamReader(HttpWResp.GetResponseStream(), System.Text.Encoding.UTF8); + string resultData = reader.ReadToEnd(); + // d2 = DateTime.Now; + string decodedresult = resultData; + + return decodedresult; + + } + + public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy + { + public TrustAllCertificatePolicy() + { } + public bool CheckValidationResult(ServicePoint sp, + System.Security.Cryptography.X509Certificates. + X509Certificate cert, WebRequest req, int problem) + { + + return true; + } + } + public string ParseRespXML(string ResponseXML) + { + + string ResRet = ""; + string Response = ""; + string Err = ""; + string output = ""; + + XmlDocument Doc = new XmlDocument(); + Doc.LoadXml(ResponseXML); + + XmlElement root = Doc.DocumentElement; + XmlNode ret_Y = root.SelectSingleNode("@ret"); + if (ret_Y == null) + { + ResRet = "Some Major Problem Occured"; + } + else + { + + if (String.Compare(ret_Y.Value.ToString(), "y", StringComparison.OrdinalIgnoreCase) == 0) + { + ResRet = "Your Authentication is Successful "; + Response = ret_Y.Value.ToString(); + Err = ""; + output = Response; + // DisplayKYCData(ResponseXML); + } + else if (String.Compare(ret_Y.Value.ToString(), "n", StringComparison.OrdinalIgnoreCase) == 0) + { + Response = ret_Y.Value.ToString(); + + XmlNode ret_err = root.SelectSingleNode("@err"); + + Err = ret_err.Value.ToString(); + ResRet = "Your Authentication Failed and the Error Code is:- " + Convert.ToString(ret_err.Value); + output = GetAuthErrorDescription(Err); + } + else + { + ResRet = "Some Major Problem Occured"; + + } + } + + return output; + } + + + public string GetAuthErrorDescription(string err) + { + switch (err) + { + case "100": + return "100 - Pi (basic) attributes of demographic data did not match."; + case "200": + return "200 - Pa (address) attributes of demographic data did not match"; + case "300": + return "300 - Biometric data did not match"; + case "310": + return "310 - Duplicate fingers used"; + case "311": + return "311 - Duplicate Irises used."; + case "312": + return "312 - FMR and FIR cannot be used in same transaction"; + case "313": + return "313 - Single FIR record contains more than one finger"; + case "314": + return "314 - Number of FMR/FIR should not exceed 10"; + case "315": + return "315 - Number of IIR should not exceed 2"; + case "400": + return "400 - Invalid OTP value"; + case "401": + return "401 - Invalid TKN value"; + case "500": + return "500 - Invalid encryption of Skey"; + case "501": + return "501 - Invalid certificate identifier in ci attribute of Skey"; + case "502": + return "502 - Invalid encryption of Pid"; + case "503": + return "503 - Invalid encryption of Hmac"; + case "504": + return "504 - Session key re-initiation required due texpiry or key out of sync"; + case "505": + return "505 - Synchronized Key usage not allowed for the AUA"; + case "510": + return "510 - Invalid Auth XML format"; + case "511": + return "511 - Invalid PID XML format"; + case "520": + return "520 - Invalid device"; + case "521": + return "521 - Invalid FDC code under Meta tag"; + case "522": + return "522 - Invalid IDC code under Meta tag"; + case "530": + return "530 - Invalid authenticator code"; + case "540": + return "540 - Invalid Auth XML version"; + case "541": + return "541 - Invalid PID XML version"; + case "542": + return "542 - AUA not authorized for ASA. This error will be returned if AUA and ASA dnot have linking in the portal"; + case "543": + return "543 - Sub-AUA not associated with AUA. This error will be returned if Sub-AUA specified in sa attribute is not added as Sub-AUA in portal"; + case "550": + return "550 - Invalid Uses element attributes"; + case "551": + return "551 - Invalid tid value for registered device"; + case "552": + return "552 - Invalid registered device key, please reset"; + case "553": + return "553 - Invalid registered device HOTP, please reset"; + case "554": + return "554 - Invalid registered device encryption"; + case "555": + return "555 - Mandatory reset required for registered device"; + case "561": + return "561 - Request expired (Pid->ts value is older than N hours where N is a configured threshold in authentication server)"; + case "562": + return "562 - Timestamp value is future time (value specified Pid->ts is ahead of authentication server time beyond acceptable threshold)"; + case "563": + return "563 - Duplicate request (this error occurs when exactly same authentication request was re-sent by AUA)"; + case "564": + return "564 - HMAC Validation failed"; + case "565": + return "565 - AUA license has expired"; + case "566": + return "566 - Invalid non-decryptable license key"; + case "567": + return "567 - Invalid input (this error occurs when some unsupported characters were found in Indian language values, lname or lav)"; + case "568": + return "568 - Unsupported Language"; + case "569": + return "569 - Digital signature verification failed (means that authentication request XML was modified after it was signed)"; + case "570": + return "570 - Invalid key infin digital signature (this means that certificate used for signing the authentication request is not valid – it is either expired, or does not belong tthe AUA or is not created by a well-known Certification Authority)"; + case "571": + return "571 - PIN Requires reset (this error will be returned if resident is using the default PIN which needs tbe reset before usage)"; + case "572": + return "572 - Invalid biometric position"; + case "573": + return "573 - Pi usage not allowed as per license"; + case "574": + return "574 - Pa usage not allowed as per license"; + case "575": + return "575 - Pfa usage not allowed as per license"; + case "576": + return "576 - FMR usage not allowed as per license"; + case "577": + return "577 - FIR usage not allowed as per license"; + case "578": + return "578 - IIR usage not allowed as per license"; + case "579": + return "579 - OTP usage not allowed as per license"; + case "580": + return "580 - PIN usage not allowed as per license"; + case "581": + return "581 - Fuzzy matching usage not allowed as per license"; + case "582": + return "582 - Local language usage not allowed as per license"; + case "584": + return "584 - Invalid pincode in LOV attribute under Meta tag"; + case "585": + return "585 - Invalid geo-code in LOV attribute under Meta tag"; + case "710": + return "710 - Missing Pi data as specified in Uses"; + case "720": + return "720 - Missing Pa data as specified in Uses"; + case "721": + return "721 - Missing Pfa data as specified in Uses"; + case "730": + return "730 - Missing PIN data as specified in Uses"; + case "740": + return "740 - Missing OTP data as specified in Uses"; + case "800": + return "800 - Invalid biometric data"; + case "810": + return "810 - Missing biometric data as specified in Uses"; + case "811": + return "811 - Missing biometric data in CIDR for the given Aadhaar number"; + case "812": + return "812 - Resident has not done Best Finger Detection. Application should initiate BFD application thelp resident identify their best fingers. See Aadhaar Best Finger Detection API specification."; + case "820": + return "820 - Missing or empty value for bt attribute in Uses element"; + case "821": + return "821 - Invalid value in the bt attribute of Uses element"; + case "901": + return "901 - Nauthentication data found in the request (this corresponds ta scenariwherein none of the auth data – Demo, Pv, or Bios – is present)"; + case "902": + return "902 - Invalid dob value in the Pi element (this corresponds ta scenarios wherein dob attribute is not of the format YYYY or YYYY-MM-DD, or the age of resident is not in valid range)"; + case "910": + return "910 - Invalid mv value in the Pi element"; + case "911": + return "911 - Invalid mv value in the Pfa element"; + case "912": + return "912 - Invalid ms value"; + case "913": + return "913 - Both Pa and Pfa are present in the authentication request (Pa and Pfa are mutually exclusive)"; + case "930 t939": + return "930 t939 - Technical error that are internal tauthentication server"; + case "940": + return "940 - Unauthorized ASA channel"; + case "941": + return "941 - Unspecified ASA channel"; + case "980": + return "980 - Unsupported option"; + case "997": + return "997 - Invalid Aadhaar status (Aadhaar is not in authenticatable status)"; + case "998": + return "998 - Invalid Aadhaar Number"; + case "999": + + return "999 - Unknown error"; + default: + return "Some Problem Occured"; + } + } + } + +} \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/App_Code/Verhoeff.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AllAuthClass +{ + public static class Verhoeff + { + + // The multiplication table + static int[,] d = new int[,] + { + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, + {1, 2, 3, 4, 0, 6, 7, 8, 9, 5}, + {2, 3, 4, 0, 1, 7, 8, 9, 5, 6}, + {3, 4, 0, 1, 2, 8, 9, 5, 6, 7}, + {4, 0, 1, 2, 3, 9, 5, 6, 7, 8}, + {5, 9, 8, 7, 6, 0, 4, 3, 2, 1}, + {6, 5, 9, 8, 7, 1, 0, 4, 3, 2}, + {7, 6, 5, 9, 8, 2, 1, 0, 4, 3}, + {8, 7, 6, 5, 9, 3, 2, 1, 0, 4}, + {9, 8, 7, 6, 5, 4, 3, 2, 1, 0} + }; + + // The permutation table + static int[,] p = new int[,] + { + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, + {1, 5, 7, 6, 2, 8, 3, 0, 9, 4}, + {5, 8, 0, 3, 7, 9, 6, 1, 4, 2}, + {8, 9, 1, 6, 0, 4, 3, 5, 2, 7}, + {9, 4, 5, 3, 1, 2, 6, 8, 7, 0}, + {4, 2, 8, 6, 5, 7, 3, 9, 0, 1}, + {2, 7, 9, 3, 8, 0, 6, 4, 1, 5}, + {7, 0, 4, 6, 9, 1, 3, 2, 5, 8} + }; + + // The inverse table + static int[] inv = { 0, 4, 3, 2, 1, 5, 6, 7, 8, 9 }; + + + /// + /// Validates that an entered number is Verhoeff compliant. + /// NB: Make sure the check digit is the last one! + /// + /// + /// True if Verhoeff compliant, otherwise false + public static bool validateVerhoeff(string num) + { + int c = 0; + int[] myArray = StringToReversedIntArray(num); + + for (int i = 0; i < myArray.Length; i++) + { + c = d[c, p[(i % 8), myArray[i]]]; + } + + return c == 0; + + } + + /// + /// For a given number generates a Verhoeff digit + /// Append this check digit to num + /// + /// + /// Verhoeff check digit as string + public static string generateVerhoeff(string num) + { + int c = 0; + int[] myArray = StringToReversedIntArray(num); + + for (int i = 0; i < myArray.Length; i++) + { + c = d[c, p[((i + 1) % 8), myArray[i]]]; + } + + return inv[c].ToString(); + } + + + /// + /// Converts a string to a reversed integer array. + /// + /// + /// Reversed integer array + private static int[] StringToReversedIntArray(string num) + { + int[] myArray = new int[num.Length]; + + for (int i = 0; i < num.Length; i++) + { + myArray[i] = int.Parse(num.Substring(i, 1)); + } + + Array.Reverse(myArray); + + return myArray; + + } + } +} \ No newline at end of file Binary files /dev/null and b/AadhaarService/RemoteServices/Bin/ClassLibrary1.dll differ Binary files /dev/null and b/AadhaarService/RemoteServices/Bin/ClassLibrary1.dll.refresh differ Binary files /dev/null and b/AadhaarService/RemoteServices/Bin/Newtonsoft.Json.dll differ Binary files /dev/null and b/AadhaarService/RemoteServices/Bin/itextsharp.dll differ Binary files /dev/null and b/AadhaarService/RemoteServices/Bin/itextsharp.dll.refresh differ Binary files /dev/null and b/AadhaarService/RemoteServices/Bin/system.security.dll differ Binary files /dev/null and b/AadhaarService/RemoteServices/Files/ClientSigned15072015191325.pdf differ Binary files /dev/null and b/AadhaarService/RemoteServices/Files/DocSigner.pfx differ Binary files /dev/null and b/AadhaarService/RemoteServices/Files/Test-Class2DocumentSigner2014.pfx differ --- /dev/null +++ b/AadhaarService/RemoteServices/Files/UIDAI.cer @@ -0,0 +1,28 @@ +-----BEGIN CERTIFICATE----- +MIIEsjCCA5qgAwIBAgIIG7uxiAIAUYAwDQYJKoZIhvcNAQELBQAwczELMAkGA1UE +BhMCSU4xIjAgBgNVBAoTGVNpZnkgVGVjaG5vbG9naWVzIExpbWl0ZWQxDzANBgNV +BAsTBlN1Yi1DQTEvMC0GA1UEAxMmU2FmZVNjcnlwdCBzdWItQ0EgZm9yIFJDQUkg +Q2xhc3MzIDIwMTQwHhcNMTUwMjI3MTMxMDQwWhcNMTcwMjI3MTMxMDQwWjB4MQsw +CQYDVQQGEwJJTjEgMB4GA1UEChMXVUlEQUkgVEVDSE5PTE9HWSBDRU5UUkUxDzAN +BgNVBBETBjU2MDEwMzESMBAGA1UECBMJS2FybmF0YWthMSIwIAYDVQQDExlTSVJJ +U0ggQ0hPVURIQVJZIEpBUlVCVUxBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB +CgKCAQEAx3l+hOh1oXg8SeW2Ix3Lnd1wZs0NaXN1rhht26vX8DKu31orLFYL+u+g +GpR7KUBoMyG7wNM/9czJkKit+vvA8cNimGSwZePF3Nq0QJ9eh1X+66vLFdiOQK42 +AUiM+Zh3+Tn7iKNTuP+b92q7UVCLIIVanyeQec2zM0Cg9CK+x77sWS9X0hUrCAWS +krAaSRWUCLwzatR5m/04M4pzP76dumcXo5dZNp3kwvKmZuPgGkgJ4aoT45w64V9p +ZjL9EqdvXzYVeGMDThE3x6wsIHU+Xgl1n5DYIS4/FZFAti31Jg+Xn7e8vmsDElia +etiorfeWUByUyAM4h143jEs6lTu2FwIDAQABo4IBQzCCAT8wDgYDVR0PAQH/BAQD +AgUgMBMGA1UdIwQMMAqACETAUaMKIW3iMBEGA1UdDgQKBAhO2CfCXlbODDAhBgNV +HREEGjAYgRZzaXJpc2guanNAdWlkYWkubmV0LmluMEcGA1UdHwRAMD4wPKA6oDiG +Nmh0dHA6Ly9jcmwuc2FmZXNjcnlwdC5jb20vU2FmZVNjcnlwdFJDQUlDbGFzczMy +MDE0LmNybDCBgwYIKwYBBQUHAQEEdzB1MEsGCCsGAQUFBzAChj9odHRwczovL3d3 +dy5zYWZlc2NyeXB0LmNvbS9kcnVwYWwvZG93bmxvYWQvU2FmZVNjcnlwdENBMjAx +NC5jZXIwJgYIKwYBBQUHMAGGGmh0dHA6Ly9vY3NwLnNhZmVzY3J5cHQuY29tMBMG +A1UdIAQMMAowCAYGYIJkZAIDMA0GCSqGSIb3DQEBCwUAA4IBAQBlJUKyzscxrh2a +GWqLC6uQ0WgRgHwkd2BRmEiuqg9kTwI3Ys6NgIVzX4rO9u9Bo6TkTa5chqd8EmeA +JYd57jl8vX6Atob/nLP1A31OUA+TZkY1VM8GeyKFbzy3vM5sYt7wZjxK/WbJZuHu +B+PzY2tXcNBu6rE9JGllS9rLQtVj9Zelnqz6cXtwF7EfbXrr42KoIGg+d2mF97xE +GKvEy1VQXaHzWZ7Miyz5++W86QIQcanoUR56BSg3tI+UEW6V7LiYdzZBF6KSqhJw +mdRkRpM3Kcve6pKjI1QP036cUvG5aq6/ewQWTPt/xVFX48FGc660BGAGC4XkXMVG +F0CxtVqX +-----END CERTIFICATE----- \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/Files/UIDAI2.cer @@ -0,0 +1,27 @@ +-----BEGIN CERTIFICATE----- +MIIErDCCA5SgAwIBAgIKFh9MnUukpTm2bDANBgkqhkiG9w0BAQsFADBmMQswCQYD +VQQGEwJJTjEkMCIGA1UEChMbTmF0aW9uYWwgSW5mb3JtYXRpY3MgQ2VudHJlMQ8w +DQYDVQQLEwZTdWItQ0ExIDAeBgNVBAMTF05JQyBzdWItQ0EgZm9yIE5JQyAyMDEx +MB4XDTEzMDgwNjA2NTg0MVoXDTE1MDgwNTA2NTg0MVoweDELMAkGA1UEBhMCSU4x +DjAMBgNVBAoTBVVJREFJMRowGAYDVQQLExFURUNITk9MT0dZIENFTlRFUjEPMA0G +A1UEERMGNTYwMTAzMRIwEAYDVQQIEwlLQVJOQVRBS0ExGDAWBgNVBAMTD1N1ZGhp +ciBOYXJheWFuYTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALpngEVc +Bq/SHc2Xt1CH/5pykI+otZCaJskY9+b4GjXH0Pc/533qWatu9veqJKDig1Sil56G +sSF3CqWrtTNvJlsj4jpLHsIVy/Gg7DgZ0FJ/9aj8OkLs6rbb4+mclPPbZphpCr7O +wGwIZqioqRtp8dmoMvKcdze9dr1OOCipAvCgGBXKv6chcSGLQXp3Fma27Mvt2mHw +IMS7jJnAgStD/Fnbxf30N1y9pOxdQpD/8p904OFICWyXdAjUHkqGWZnYVRk2P6FG +tKJZhYhcG+h2F93SNve5NMbJ6t/N321pmrAmsm7n/uWG26pD8r9uw0Px8/u1tzN7 +hXQihIMrlC4ZVCcCAwEAAaOCAUgwggFEMB0GA1UdDgQWBBTfC0WfcFs78h0m4YyN +yr3mOmlsBjAfBgNVHSMEGDAWgBT6gA8c/HOkx2mQE67vPBCtqq8ZhDAOBgNVHQ8B +Af8EBAMCBSAwIQYDVR0RBBowGIEWc3VkaGlyLnVpZGFpQGdtYWlsLmNvbTA4BgNV +HSAEMTAvMC0GBmCCZGQCAzAjMCEGCCsGAQUFBwICMBUaE0NsYXNzIDMgQ2VydGlm +aWNhdGUwUgYIKwYBBQUHAQEERjBEMEIGCCsGAQUFBzAChjZodHRwOi8vbmljY2Eu +bmljLmluL2NlcnQvY2VydF8xNDI5MjZEMkZGMTQ0MzlCMzhGOS5jZXIwQQYDVR0f +BDowODA2oDSgMoYwaHR0cDovL25pY2NhLm5pYy5pbi9jcmxfMTQyOTI2RDJGRjE0 +NDM5QjM4RjkuY3JsMA0GCSqGSIb3DQEBCwUAA4IBAQCveoLaOw0fSqZWqiU4jJeP +OUotDDP83LNPgVddqMkuAQUgX5WPYFWwmvZEwDlptlt/PJyc38a8oLlzjM/01yS9 +eh1AwgOOvmpz9EmT5Z78cpbTMjE9FPGMNGoOaX7aXgT7R5xAst8Cv1oZQ7Wb64Iu +8/BU07P8lSOPV5Gi8SocSloyEMrWXnWR5eIdLDWac/qHdoga1WbBsPVupBfXTWma +zuaCAk8TF2/d8+6HiXyhRjS5TVckiidnau2id2cWk6SM9LfusfpmRfHQ/7iUy3AS +NbB4LZKlOGiJ5U75Qqj1Bs4Df0Eepa+ahV/zsDeeWy+d1tpmzsePuJgVeoh7yeCq +-----END CERTIFICATE----- --- /dev/null +++ b/AadhaarService/RemoteServices/Files/elocker-test.cer @@ -0,0 +1,41 @@ +Bag Attributes + localKeyID: 01 00 00 00 + 1.3.6.1.4.1.311.17.3.92: 00 08 00 00 + 1.3.6.1.4.1.311.17.3.20: 25 CE E0 A5 BA 6D 30 44 FD 3C C2 DA 35 01 A7 A0 26 41 EE 68 + 1.3.6.1.4.1.311.17.3.71: 44 00 53 00 4B 00 2D 00 31 00 30 00 2D 00 31 00 31 00 2D 00 30 00 33 00 33 00 2E 00 65 00 6D 00 75 00 64 00 68 00 72 00 61 00 2E 00 6C 00 6F 00 63 00 61 00 6C 00 00 00 + 1.3.6.1.4.1.311.17.3.75: 35 00 45 00 37 00 44 00 34 00 39 00 41 00 36 00 45 00 33 00 37 00 45 00 33 00 35 00 30 00 36 00 31 00 33 00 42 00 39 00 45 00 36 00 36 00 33 00 43 00 35 00 31 00 33 00 36 00 31 00 44 00 35 00 5F 00 00 00 +subject=/C=IN/postalCode=560103/ST=KARNATAKA/street=BANGALORE/OU=Test Tech/O=eMudhra Test/CN=DS eMudhra Test (1)/houseIdentifier=no 56 test test test +issuer=/C=IN/O=eMudhra Consumer Services Limited/OU=Certifying Authority/CN=e-Mudhra Sub CA Class 2 for Document Signer 2014 +-----BEGIN CERTIFICATE----- +MIIFuTCCBKGgAwIBAgIDGvtPMA0GCSqGSIb3DQEBCwUAMIGTMQswCQYDVQQGEwJJ +TjEqMCgGA1UEChMhZU11ZGhyYSBDb25zdW1lciBTZXJ2aWNlcyBMaW1pdGVkMR0w +GwYDVQQLExRDZXJ0aWZ5aW5nIEF1dGhvcml0eTE5MDcGA1UEAxMwZS1NdWRocmEg +U3ViIENBIENsYXNzIDIgZm9yIERvY3VtZW50IFNpZ25lciAyMDE0MB4XDTE1MDYy +NTA4MDA1MVoXDTE2MDYyNTA4MDA1MVowga4xCzAJBgNVBAYTAklOMQ8wDQYDVQQR +DAY1NjAxMDMxEjAQBgNVBAgMCUtBUk5BVEFLQTESMBAGA1UECQwJQkFOR0FMT1JF +MRIwEAYDVQQLDAlUZXN0IFRlY2gxFTATBgNVBAoMDGVNdWRocmEgVGVzdDEcMBoG +A1UEAwwTRFMgZU11ZGhyYSBUZXN0ICgxKTEdMBsGA1UEMwwUbm8gNTYgdGVzdCB0 +ZXN0IHRlc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtbyRV/szA +/5GPtdNq5bAn7hXcH8zrRYdzFIJVohyUbBm7jvDCGsPtCi43kzhtiYpPLRp6ApI9 +DEqtDV/7DfcIRzmLViUpcQO3xejpLGBMXQjo5N2RuuU9b5Z1516NIAhwjWhewCoA +RG2SvCm9R5bCmBSyOhMyfadCcA8QZEsSfIxGF9VfS8GxXfNAk/fShuAuDN/0taUX +xvEPPbH6KnBsXhKbXcnUsoxavKacQAY8t3Z5IhPeEenLmPI9294t0E7bhuo1xoz5 +Jz4iqhG+SPVxRQofKJpQxOQxagpweon5+5s24AlsLEOJwE1sBnBhtnPwgHNWw39I +LKcvWK4TrUcNAgMBAAGjggH3MIIB8zATBgNVHSMEDDAKgAhNpkTIpuIACDB4Bggr +BgEFBQcBAQRsMGowJQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLmUtbXVkaHJhLmNv +bS8wQQYIKwYBBQUHMAKGNWh0dHA6Ly93d3cuZS1tdWRocmEuY29tL3JlcG9zaXRv +cnkvY2FjZXJ0cy9kb2NjbDIuY3J0MIHGBgNVHSAEgb4wgbswIQYGYIJkZAICMBcw +FQYIKwYBBQUHAgIwCRoHQ2xhc3MgMjBEBgZggmRkCgEwOjA4BggrBgEFBQcCAjAs +GipPcmdhbmlzYXRpb25hbCBEb2N1bWVudCBTaWduZXIgQ2VydGlmaWNhdGUwUAYH +YIJkZAEIAjBFMEMGCCsGAQUFBwIBFjdodHRwOi8vd3d3LmUtbXVkaHJhLmNvbS9y +ZXBvc2l0b3J5L2Nwcy9lLU11ZGhyYV9DUFMucGRmMEMGA1UdHwQ8MDowOKA2oDSG +Mmh0dHA6Ly93d3cuZS1tdWRocmEuY29tL3JlcG9zaXRvcnkvY3Jscy9kb2NjbDIu +Y3JsMB0GA1UdDgQWBBQlzuClum0wRP08wto1AaegJkHuaDAOBgNVHQ8BAf8EBAMC +BsAwJQYDVR0RBB4wHIEadGVzdGRvY3NpZ25lckBlLW11ZGhyYS5jb20wDQYJKoZI +hvcNAQELBQADggEBALfz5o3wAtExwmMExiDpLCC+CFfC7keBXPP0DC52oEuiNqGs +pAohtB1PMQaHOai15zMZNm8TlxKcibVthJeRNhVV57HPJfAQvErn5AfUQIjg4N44 +r3JkZNOnIujeR0CbLCuBsydj+AmjWLffSSLIZ2E3QOaOgRWl35hKDcRe5hdDRn1k +STiAND0D3inOqyhvbEcrwZn459/vz2NKMOBSp+JJ6vmAByhXUEqA+PRXYV5H67Bh +8iY4fF5GlGXvGQme8/8VGAn1V3ikpKzvrOm0/DEVjX0I4ck2HbhWjyS7UA9x90yg +ikKO6c3S2HfjA51g2qBpDGwPFTL9oqptO/vHtyg= +-----END CERTIFICATE----- --- /dev/null +++ b/AadhaarService/RemoteServices/Files/logfile.csv @@ -0,0 +1,31 @@ +Aadhaar Number,OTP,Status,Message,Date/Time +944525645439,636882,true,Signed PDF generated,15-09-2015 17:53:48 +944525645439,667832,true,Signed PDF generated,15-09-2015 17:55:32 +944525645439,545675,false,Invalid OTP value,15-09-2015 17:57:03 +754303169706,220165,true,Signed PDF generated,01-11-2015 16:47:06 +754303169706,220165,false,Invalid OTP value,01-11-2015 16:52:23 +754303169706,220165,false,Invalid OTP value,01-11-2015 16:54:20 +910369858305,366545,true,Signed PDF generated,19-11-2015 14:39:32 +910369858305,366545,false,Invalid OTP value,19-11-2015 15:41:10 +910369858305,366545,false,Invalid OTP value,19-11-2015 15:42:16 +910369858305,366545,false,Invalid OTP value,19-11-2015 15:42:51 +910369858305,148111,false,Duplicate Transaction ID for the given ASP.,20-11-2015 11:22:41 +910369858305,148111,false,Invalid OTP value,20-11-2015 11:25:27 +910369858305,148111,false,Invalid OTP value,20-11-2015 11:26:45 +910369858305,,false,Error from KSA Server,20-11-2015 11:35:45 +910369858305,,false,Error from KSA Server,20-11-2015 12:30:24 +910369858305,,false,Invalid PID XML format,20-11-2015 12:40:09 +910369858305,,false,Error from KSA Server,20-11-2015 14:25:09 +910369858305,,false,Error from KSA Server,20-11-2015 14:35:34 +910369858305,,false,Invalid PID XML format,20-11-2015 14:37:57 +910369858305,796228,true,Signed PDF generated,20-11-2015 14:50:11 +910369858305,796228,false,Invalid OTP value,20-11-2015 14:58:23 +910369858305,796228,false,Invalid OTP value,20-11-2015 14:58:38 +910369858305,875024,false,Request Time Stamp is not valid. Please check the server time.,20-11-2015 17:27:20 +910369858305,,false,Invalid PID XML format,23-11-2015 09:26:59 +910369858305,918536,true,Signed PDF generated,23-11-2015 09:59:51 +910369858305,173708,false,Request Time Stamp is not valid. Please check the server time.,23-11-2015 14:33:33 +910369858305,323948,false,Invalid OTP value,30-11-2015 14:52:25 +910369858305,323948,false,Invalid OTP value,30-11-2015 14:52:42 +910369858305,787637,true,Signed PDF generated,30-11-2015 15:08:05 +910369858305,314148,true,Signed PDF generated,04-04-2016 14:30:39 --- /dev/null +++ b/AadhaarService/RemoteServices/Files/test.pdf @@ -0,0 +1,152 @@ +%PDF-1.3 +3 0 obj +<> +endobj +4 0 obj +<> +stream +0.20 w +0 G +q +q BT 0 g 40.00 712.00 Td +0.5 -12.00 Td +/F9 12.00 Tf (undefined) Tj +ET Q +Q +endstream +endobj +1 0 obj +<> +endobj +5 0 obj +<> +endobj +6 0 obj +<> +endobj +7 0 obj +<> +endobj +8 0 obj +<> +endobj +9 0 obj +<> +endobj +10 0 obj +<> +endobj +11 0 obj +<> +endobj +12 0 obj +<> +endobj +13 0 obj +<> +endobj +14 0 obj +<> +endobj +15 0 obj +<> +endobj +16 0 obj +<> +endobj +2 0 obj +<< +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +/Font << +/F1 5 0 R +/F2 6 0 R +/F3 7 0 R +/F4 8 0 R +/F5 9 0 R +/F6 10 0 R +/F7 11 0 R +/F8 12 0 R +/F9 13 0 R +/F10 14 0 R +/F11 15 0 R +/F12 16 0 R +>> +/XObject << +>> +>> +endobj +17 0 obj +<< +/Producer (jsPDF 1.0.272-debug 2014-09-29T15:09:diegocr) +/CreationDate (D:20150620152145+05'30') +>> +endobj +18 0 obj +<< +/Type /Catalog +/Pages 1 0 R +/OpenAction [3 0 R /FitH null] +/PageLayout /OneColumn +>> +endobj +xref +0 19 +0000000000 65535 f +0000000251 00000 n +0000001450 00000 n +0000000009 00000 n +0000000117 00000 n +0000000308 00000 n +0000000398 00000 n +0000000493 00000 n +0000000591 00000 n +0000000693 00000 n +0000000781 00000 n +0000000875 00000 n +0000000972 00000 n +0000001073 00000 n +0000001166 00000 n +0000001258 00000 n +0000001352 00000 n +0000001674 00000 n +0000001793 00000 n +trailer +<< +/Size 19 +/Root 18 0 R +/Info 17 0 R +>> +startxref +1897 +%%EOF \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/Files/uidai_preprod.cer @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDijCCAnKgAwIBAgICBNIwDQYJKoZIhvcNAQEFBQAwfjELMAkGA1UEBhMCSU4x +EjAQBgNVBAgTCUtBUk5BVEFLQTESMBAGA1UEBxMJQmFuZ2Fsb3JlMQ4wDAYDVQQK +EwVVSURBSTEUMBIGA1UECxMLVGVjaCBDZW50ZXIxITAfBgNVBAMTGEF1dGggQmVu +Y2htYXJraW5nIFNlcnZlcjAeFw0xNDEwMTQwMDAwMDBaFw0xNTExMTAwMDAwMDBa +MH4xCzAJBgNVBAYTAklOMRIwEAYDVQQIEwlLQVJOQVRBS0ExEjAQBgNVBAcTCUJh +bmdhbG9yZTEOMAwGA1UEChMFVUlEQUkxFDASBgNVBAsTC1RlY2ggQ2VudGVyMSEw +HwYDVQQDExhBdXRoIEJlbmNobWFya2luZyBTZXJ2ZXIwggEiMA0GCSqGSIb3DQEB +AQUAA4IBDwAwggEKAoIBAQDcGsICTAFhgR2blgG/KpQldEpBFO++SsPWGijD+kre +LxnpkY3ORNGE11PzgJDPW+QmLwvLapAsvc2pmwDDrbfd2+gQLT317aS3LGUHKjL0 +gsgmJT45pMLZSS34iw+uasIrvOBvSbVcwHBNvTrzVjIbjVq6Wm1M3FsHXicUw0OG +8zQVXEZ8XFs2qp5N4Dyr5jOWeT/9AOFVach8sjxuxiZssgWcs7pg549gu8nAYGUn +MzSYFd07Kp6X6JCkyHt2PylgjedyxDutGK2W1jwOg8+WRN5C5XzvGA+T09nHJuMB +n4Csdh9cizbz31aAt7mmeD6GZ0u+pcMDJaHcwevMpTgTAgMBAAGjEjAQMA4GA1Ud +DwEB/wQEAwICBDANBgkqhkiG9w0BAQUFAAOCAQEAUGYiBn3Hmn8PDbcZ0eQsF1cK +4BMd8IDUjjUV3sNgH3xIizBPYf2UdsTsJKJu7Nxi+pnjXBZu9Dirzl+FSa234z/d +DS7wE4FCKCBdfQ0fqYji/kLyMqNtmgSzLqDnNcIE+IdmQFBXVE9rOW5/qxTvcinF +4Dq6Pz9XjZ8eOuXyAjbx7ybOVboXFx3sCGiJt5IWx9mxPaHB770dKRxBbrC8Ws2L +LWE4JJpVpK8pV05kk1cvpYl0k6vxUDnzuZ9fG57BkT/kALFYq9Iq4fg3emKKNyJW +aB/I1le22TChuW6Kmnrrd2LZrYZct5lKR5AYKGAwZRWp9zy8Vbv6ALXX6H3gEA== +-----END CERTIFICATE----- --- /dev/null +++ b/AadhaarService/RemoteServices/OTP.aspx @@ -0,0 +1 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OTP.aspx.cs" Inherits="OTP" %> \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/OTP.aspx.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; +using System.Collections.Specialized; + +public partial class OTP : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + try + { + if (Request.Form.Keys.Count > 0) + { + string aadhaar_no = Request.Form[0].ToString(); + Response.Write(generateotp(aadhaar_no)); + + } + else + { + Response.Write("GET Method not allowed. Please POST required parameters as per API specification Document."); + } + } + catch(Exception ex) + { + Response.Write(ex.Message); + } + } + + private string generateotp(string strAdhaar) + { + string strotp= ""; + Aadhaar aadhar = new Aadhaar(); + strotp = aadhar.GetOTP(strAdhaar); + return strotp; + } + + + +} \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/css/bootstrap.css @@ -0,0 +1,6322 @@ +/*! + * Bootstrap v3.3.1 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +/*! + * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=4641520822057f61f599) + * Config saved to config.json and https://gist.github.com/4641520822057f61f599 + */ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ +html { + font-family: sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} +body { + margin: 0; +} +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; +} +audio:not([controls]) { + display: none; + height: 0; +} +[hidden], +template { + display: none; +} +a { + background-color: transparent; +} +a:active, +a:hover { + outline: 0; +} +abbr[title] { + border-bottom: 1px dotted; +} +b, +strong { + font-weight: bold; +} +dfn { + font-style: italic; +} +h1 { + font-size: 2em; + margin: 0.67em 0; +} +mark { + background: #ff0; + color: #000; +} +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: 1em 40px; +} +hr { + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} +pre { + overflow: auto; +} +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} +button, +input, +optgroup, +select, +textarea { + color: inherit; + font: inherit; + margin: 0; +} +button { + overflow: visible; +} +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; +} +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} +input { + line-height: normal; +} +input[type="checkbox"], +input[type="radio"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0; +} +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +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; +} +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} +legend { + border: 0; + padding: 0; +} +textarea { + overflow: auto; +} +optgroup { + font-weight: bold; +} +table { + border-collapse: collapse; + border-spacing: 0; +} +td, +th { + padding: 0; +} +/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ +@media print { + *, + *:before, + *:after { + background: transparent !important; + color: #000 !important; + -webkit-box-shadow: none !important; + box-shadow: none !important; + text-shadow: none !important; + } + a, + a:visited { + text-decoration: underline; + } + a[href]:after { + content: " (" attr(href) ")"; + } + abbr[title]:after { + content: " (" attr(title) ")"; + } + a[href^="#"]:after, + a[href^="javascript:"]: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; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } + select { + background: #fff !important; + } + .navbar { + display: none; + } + .btn > .caret, + .dropup > .btn > .caret { + border-top-color: #000 !important; + } + .label { + border: 1px solid #000; + } + .table { + border-collapse: collapse !important; + } + .table td, + .table th { + background-color: #fff !important; + } + .table-bordered th, + .table-bordered td { + border: 1px solid #ddd !important; + } +} +@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; + -moz-osx-font-smoothing: grayscale; +} +.glyphicon-asterisk:before { + content: "\2a"; +} +.glyphicon-plus:before { + content: "\2b"; +} +.glyphicon-euro:before, +.glyphicon-eur: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-lock:before { + content: "\e033"; +} +.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-bookmark:before { + content: "\e044"; +} +.glyphicon-print:before { + content: "\e045"; +} +.glyphicon-camera:before { + content: "\e046"; +} +.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-fire:before { + content: "\e104"; +} +.glyphicon-eye-open:before { + content: "\e105"; +} +.glyphicon-eye-close:before { + content: "\e106"; +} +.glyphicon-warning-sign:before { + content: "\e107"; +} +.glyphicon-plane:before { + content: "\e108"; +} +.glyphicon-calendar:before { + content: "\e109"; +} +.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-bell:before { + content: "\e123"; +} +.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-wrench:before { + content: "\e136"; +} +.glyphicon-tasks:before { + content: "\e137"; +} +.glyphicon-filter:before { + content: "\e138"; +} +.glyphicon-briefcase:before { + content: "\e139"; +} +.glyphicon-fullscreen:before { + content: "\e140"; +} +.glyphicon-dashboard:before { + content: "\e141"; +} +.glyphicon-paperclip:before { + content: "\e142"; +} +.glyphicon-heart-empty:before { + content: "\e143"; +} +.glyphicon-link:before { + content: "\e144"; +} +.glyphicon-phone:before { + content: "\e145"; +} +.glyphicon-pushpin:before { + content: "\e146"; +} +.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"; +} +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +*:before, +*:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +html { + font-size: 10px; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.42857143; + color: #333333; + background-color: #ffffff; +} +input, +button, +select, +textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +a { + color: #337ab7; + text-decoration: none; +} +a:hover, +a:focus { + color: #23527c; + text-decoration: underline; +} +a:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +figure { + margin: 0; +} +img { + vertical-align: middle; +} +.img-responsive, +.thumbnail > img, +.thumbnail a > img, +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + display: block; + max-width: 100%; + height: auto; +} +.img-rounded { + border-radius: 6px; +} +.img-thumbnail { + padding: 4px; + line-height: 1.42857143; + background-color: #ffffff; + border: 1px solid #dddddd; + border-radius: 4px; + -webkit-transition: all 0.2s ease-in-out; + -o-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; +} +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; +} +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit; +} +h1 small, +h2 small, +h3 small, +h4 small, +h5 small, +h6 small, +.h1 small, +.h2 small, +.h3 small, +.h4 small, +.h5 small, +.h6 small, +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: #777777; +} +h1, +.h1, +h2, +.h2, +h3, +.h3 { + margin-top: 20px; + margin-bottom: 10px; +} +h1 small, +.h1 small, +h2 small, +.h2 small, +h3 small, +.h3 small, +h1 .small, +.h1 .small, +h2 .small, +.h2 .small, +h3 .small, +.h3 .small { + font-size: 65%; +} +h4, +.h4, +h5, +.h5, +h6, +.h6 { + margin-top: 10px; + margin-bottom: 10px; +} +h4 small, +.h4 small, +h5 small, +.h5 small, +h6 small, +.h6 small, +h4 .small, +.h4 .small, +h5 .small, +.h5 .small, +h6 .small, +.h6 .small { + font-size: 75%; +} +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; +} +p { + margin: 0 0 10px; +} +.lead { + margin-bottom: 20px; + font-size: 16px; + font-weight: 300; + line-height: 1.4; +} +@media (min-width: 768px) { + .lead { + font-size: 21px; + } +} +small, +.small { + font-size: 85%; +} +mark, +.mark { + background-color: #fcf8e3; + padding: .2em; +} +.text-left { + text-align: left; +} +.text-right { + text-align: right; +} +.text-center { + text-align: center; +} +.text-justify { + text-align: justify; +} +.text-nowrap { + white-space: nowrap; +} +.text-lowercase { + text-transform: lowercase; +} +.text-uppercase { + text-transform: uppercase; +} +.text-capitalize { + text-transform: capitalize; +} +.text-muted { + color: #777777; +} +.text-primary { + color: #337ab7; +} +a.text-primary:hover { + color: #286090; +} +.text-success { + color: #3c763d; +} +a.text-success:hover { + color: #2b542c; +} +.text-info { + color: #31708f; +} +a.text-info:hover { + color: #245269; +} +.text-warning { + color: #8a6d3b; +} +a.text-warning:hover { + color: #66512c; +} +.text-danger { + color: #a94442; +} +a.text-danger:hover { + color: #843534; +} +.bg-primary { + color: #fff; + background-color: #337ab7; +} +a.bg-primary:hover { + background-color: #286090; +} +.bg-success { + background-color: #dff0d8; +} +a.bg-success:hover { + background-color: #c1e2b3; +} +.bg-info { + background-color: #d9edf7; +} +a.bg-info:hover { + background-color: #afd9ee; +} +.bg-warning { + background-color: #fcf8e3; +} +a.bg-warning:hover { + background-color: #f7ecb5; +} +.bg-danger { + background-color: #f2dede; +} +a.bg-danger:hover { + background-color: #e4b9b9; +} +.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; + margin-left: -5px; +} +.list-inline > li { + display: inline-block; + padding-left: 5px; + padding-right: 5px; +} +dl { + margin-top: 0; + margin-bottom: 20px; +} +dt, +dd { + line-height: 1.42857143; +} +dt { + font-weight: bold; +} +dd { + margin-left: 0; +} +@media (min-width: 768px) { + .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; + } +} +abbr[title], +abbr[data-original-title] { + cursor: help; + border-bottom: 1px dotted #777777; +} +.initialism { + font-size: 90%; + text-transform: uppercase; +} +blockquote { + padding: 10px 20px; + margin: 0 0 20px; + font-size: 17.5px; + border-left: 5px solid #eeeeee; +} +blockquote p:last-child, +blockquote ul:last-child, +blockquote ol:last-child { + margin-bottom: 0; +} +blockquote footer, +blockquote small, +blockquote .small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #777777; +} +blockquote footer:before, +blockquote small:before, +blockquote .small:before { + content: '\2014 \00A0'; +} +.blockquote-reverse, +blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + border-right: 5px solid #eeeeee; + border-left: 0; + text-align: right; +} +.blockquote-reverse footer:before, +blockquote.pull-right footer:before, +.blockquote-reverse small:before, +blockquote.pull-right small:before, +.blockquote-reverse .small:before, +blockquote.pull-right .small:before { + content: ''; +} +.blockquote-reverse footer:after, +blockquote.pull-right footer:after, +.blockquote-reverse small:after, +blockquote.pull-right small:after, +.blockquote-reverse .small:after, +blockquote.pull-right .small:after { + content: '\00A0 \2014'; +} +address { + margin-bottom: 20px; + font-style: normal; + line-height: 1.42857143; +} +code, +kbd, +pre, +samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; +} +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 4px; +} +kbd { + padding: 2px 4px; + font-size: 90%; + color: #ffffff; + background-color: #333333; + border-radius: 3px; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); +} +kbd kbd { + padding: 0; + font-size: 100%; + font-weight: bold; + -webkit-box-shadow: none; + box-shadow: none; +} +pre { + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 1.42857143; + word-break: break-all; + word-wrap: break-word; + color: #333333; + background-color: #f5f5f5; + border: 1px solid #cccccc; + border-radius: 4px; +} +pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; +} +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} +.container { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; +} +@media (min-width: 768px) { + .container { + width: 750px; + } +} +@media (min-width: 992px) { + .container { + width: 970px; + } +} +@media (min-width: 1200px) { + .container { + width: 1170px; + } +} +.container-fluid { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; +} +.row { + margin-left: -15px; + margin-right: -15px; +} +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .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, .col-xs-12 { + float: left; +} +.col-xs-12 { + width: 100%; +} +.col-xs-11 { + width: 91.66666667%; +} +.col-xs-10 { + width: 83.33333333%; +} +.col-xs-9 { + width: 75%; +} +.col-xs-8 { + width: 66.66666667%; +} +.col-xs-7 { + width: 58.33333333%; +} +.col-xs-6 { + width: 50%; +} +.col-xs-5 { + width: 41.66666667%; +} +.col-xs-4 { + width: 33.33333333%; +} +.col-xs-3 { + width: 25%; +} +.col-xs-2 { + width: 16.66666667%; +} +.col-xs-1 { + width: 8.33333333%; +} +.col-xs-pull-12 { + right: 100%; +} +.col-xs-pull-11 { + right: 91.66666667%; +} +.col-xs-pull-10 { + right: 83.33333333%; +} +.col-xs-pull-9 { + right: 75%; +} +.col-xs-pull-8 { + right: 66.66666667%; +} +.col-xs-pull-7 { + right: 58.33333333%; +} +.col-xs-pull-6 { + right: 50%; +} +.col-xs-pull-5 { + right: 41.66666667%; +} +.col-xs-pull-4 { + right: 33.33333333%; +} +.col-xs-pull-3 { + right: 25%; +} +.col-xs-pull-2 { + right: 16.66666667%; +} +.col-xs-pull-1 { + right: 8.33333333%; +} +.col-xs-pull-0 { + right: auto; +} +.col-xs-push-12 { + left: 100%; +} +.col-xs-push-11 { + left: 91.66666667%; +} +.col-xs-push-10 { + left: 83.33333333%; +} +.col-xs-push-9 { + left: 75%; +} +.col-xs-push-8 { + left: 66.66666667%; +} +.col-xs-push-7 { + left: 58.33333333%; +} +.col-xs-push-6 { + left: 50%; +} +.col-xs-push-5 { + left: 41.66666667%; +} +.col-xs-push-4 { + left: 33.33333333%; +} +.col-xs-push-3 { + left: 25%; +} +.col-xs-push-2 { + left: 16.66666667%; +} +.col-xs-push-1 { + left: 8.33333333%; +} +.col-xs-push-0 { + left: auto; +} +.col-xs-offset-12 { + margin-left: 100%; +} +.col-xs-offset-11 { + margin-left: 91.66666667%; +} +.col-xs-offset-10 { + margin-left: 83.33333333%; +} +.col-xs-offset-9 { + margin-left: 75%; +} +.col-xs-offset-8 { + margin-left: 66.66666667%; +} +.col-xs-offset-7 { + margin-left: 58.33333333%; +} +.col-xs-offset-6 { + margin-left: 50%; +} +.col-xs-offset-5 { + margin-left: 41.66666667%; +} +.col-xs-offset-4 { + margin-left: 33.33333333%; +} +.col-xs-offset-3 { + margin-left: 25%; +} +.col-xs-offset-2 { + margin-left: 16.66666667%; +} +.col-xs-offset-1 { + margin-left: 8.33333333%; +} +.col-xs-offset-0 { + margin-left: 0%; +} +@media (min-width: 768px) { + .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 { + float: left; + } + .col-sm-12 { + width: 100%; + } + .col-sm-11 { + width: 91.66666667%; + } + .col-sm-10 { + width: 83.33333333%; + } + .col-sm-9 { + width: 75%; + } + .col-sm-8 { + width: 66.66666667%; + } + .col-sm-7 { + width: 58.33333333%; + } + .col-sm-6 { + width: 50%; + } + .col-sm-5 { + width: 41.66666667%; + } + .col-sm-4 { + width: 33.33333333%; + } + .col-sm-3 { + width: 25%; + } + .col-sm-2 { + width: 16.66666667%; + } + .col-sm-1 { + width: 8.33333333%; + } + .col-sm-pull-12 { + right: 100%; + } + .col-sm-pull-11 { + right: 91.66666667%; + } + .col-sm-pull-10 { + right: 83.33333333%; + } + .col-sm-pull-9 { + right: 75%; + } + .col-sm-pull-8 { + right: 66.66666667%; + } + .col-sm-pull-7 { + right: 58.33333333%; + } + .col-sm-pull-6 { + right: 50%; + } + .col-sm-pull-5 { + right: 41.66666667%; + } + .col-sm-pull-4 { + right: 33.33333333%; + } + .col-sm-pull-3 { + right: 25%; + } + .col-sm-pull-2 { + right: 16.66666667%; + } + .col-sm-pull-1 { + right: 8.33333333%; + } + .col-sm-pull-0 { + right: auto; + } + .col-sm-push-12 { + left: 100%; + } + .col-sm-push-11 { + left: 91.66666667%; + } + .col-sm-push-10 { + left: 83.33333333%; + } + .col-sm-push-9 { + left: 75%; + } + .col-sm-push-8 { + left: 66.66666667%; + } + .col-sm-push-7 { + left: 58.33333333%; + } + .col-sm-push-6 { + left: 50%; + } + .col-sm-push-5 { + left: 41.66666667%; + } + .col-sm-push-4 { + left: 33.33333333%; + } + .col-sm-push-3 { + left: 25%; + } + .col-sm-push-2 { + left: 16.66666667%; + } + .col-sm-push-1 { + left: 8.33333333%; + } + .col-sm-push-0 { + left: auto; + } + .col-sm-offset-12 { + margin-left: 100%; + } + .col-sm-offset-11 { + margin-left: 91.66666667%; + } + .col-sm-offset-10 { + margin-left: 83.33333333%; + } + .col-sm-offset-9 { + margin-left: 75%; + } + .col-sm-offset-8 { + margin-left: 66.66666667%; + } + .col-sm-offset-7 { + margin-left: 58.33333333%; + } + .col-sm-offset-6 { + margin-left: 50%; + } + .col-sm-offset-5 { + margin-left: 41.66666667%; + } + .col-sm-offset-4 { + margin-left: 33.33333333%; + } + .col-sm-offset-3 { + margin-left: 25%; + } + .col-sm-offset-2 { + margin-left: 16.66666667%; + } + .col-sm-offset-1 { + margin-left: 8.33333333%; + } + .col-sm-offset-0 { + margin-left: 0%; + } +} +@media (min-width: 992px) { + .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 { + float: left; + } + .col-md-12 { + width: 100%; + } + .col-md-11 { + width: 91.66666667%; + } + .col-md-10 { + width: 83.33333333%; + } + .col-md-9 { + width: 75%; + } + .col-md-8 { + width: 66.66666667%; + } + .col-md-7 { + width: 58.33333333%; + } + .col-md-6 { + width: 50%; + } + .col-md-5 { + width: 41.66666667%; + } + .col-md-4 { + width: 33.33333333%; + } + .col-md-3 { + width: 25%; + } + .col-md-2 { + width: 16.66666667%; + } + .col-md-1 { + width: 8.33333333%; + } + .col-md-pull-12 { + right: 100%; + } + .col-md-pull-11 { + right: 91.66666667%; + } + .col-md-pull-10 { + right: 83.33333333%; + } + .col-md-pull-9 { + right: 75%; + } + .col-md-pull-8 { + right: 66.66666667%; + } + .col-md-pull-7 { + right: 58.33333333%; + } + .col-md-pull-6 { + right: 50%; + } + .col-md-pull-5 { + right: 41.66666667%; + } + .col-md-pull-4 { + right: 33.33333333%; + } + .col-md-pull-3 { + right: 25%; + } + .col-md-pull-2 { + right: 16.66666667%; + } + .col-md-pull-1 { + right: 8.33333333%; + } + .col-md-pull-0 { + right: auto; + } + .col-md-push-12 { + left: 100%; + } + .col-md-push-11 { + left: 91.66666667%; + } + .col-md-push-10 { + left: 83.33333333%; + } + .col-md-push-9 { + left: 75%; + } + .col-md-push-8 { + left: 66.66666667%; + } + .col-md-push-7 { + left: 58.33333333%; + } + .col-md-push-6 { + left: 50%; + } + .col-md-push-5 { + left: 41.66666667%; + } + .col-md-push-4 { + left: 33.33333333%; + } + .col-md-push-3 { + left: 25%; + } + .col-md-push-2 { + left: 16.66666667%; + } + .col-md-push-1 { + left: 8.33333333%; + } + .col-md-push-0 { + left: auto; + } + .col-md-offset-12 { + margin-left: 100%; + } + .col-md-offset-11 { + margin-left: 91.66666667%; + } + .col-md-offset-10 { + margin-left: 83.33333333%; + } + .col-md-offset-9 { + margin-left: 75%; + } + .col-md-offset-8 { + margin-left: 66.66666667%; + } + .col-md-offset-7 { + margin-left: 58.33333333%; + } + .col-md-offset-6 { + margin-left: 50%; + } + .col-md-offset-5 { + margin-left: 41.66666667%; + } + .col-md-offset-4 { + margin-left: 33.33333333%; + } + .col-md-offset-3 { + margin-left: 25%; + } + .col-md-offset-2 { + margin-left: 16.66666667%; + } + .col-md-offset-1 { + margin-left: 8.33333333%; + } + .col-md-offset-0 { + margin-left: 0%; + } +} +@media (min-width: 1200px) { + .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 { + float: left; + } + .col-lg-12 { + width: 100%; + } + .col-lg-11 { + width: 91.66666667%; + } + .col-lg-10 { + width: 83.33333333%; + } + .col-lg-9 { + width: 75%; + } + .col-lg-8 { + width: 66.66666667%; + } + .col-lg-7 { + width: 58.33333333%; + } + .col-lg-6 { + width: 50%; + } + .col-lg-5 { + width: 41.66666667%; + } + .col-lg-4 { + width: 33.33333333%; + } + .col-lg-3 { + width: 25%; + } + .col-lg-2 { + width: 16.66666667%; + } + .col-lg-1 { + width: 8.33333333%; + } + .col-lg-pull-12 { + right: 100%; + } + .col-lg-pull-11 { + right: 91.66666667%; + } + .col-lg-pull-10 { + right: 83.33333333%; + } + .col-lg-pull-9 { + right: 75%; + } + .col-lg-pull-8 { + right: 66.66666667%; + } + .col-lg-pull-7 { + right: 58.33333333%; + } + .col-lg-pull-6 { + right: 50%; + } + .col-lg-pull-5 { + right: 41.66666667%; + } + .col-lg-pull-4 { + right: 33.33333333%; + } + .col-lg-pull-3 { + right: 25%; + } + .col-lg-pull-2 { + right: 16.66666667%; + } + .col-lg-pull-1 { + right: 8.33333333%; + } + .col-lg-pull-0 { + right: auto; + } + .col-lg-push-12 { + left: 100%; + } + .col-lg-push-11 { + left: 91.66666667%; + } + .col-lg-push-10 { + left: 83.33333333%; + } + .col-lg-push-9 { + left: 75%; + } + .col-lg-push-8 { + left: 66.66666667%; + } + .col-lg-push-7 { + left: 58.33333333%; + } + .col-lg-push-6 { + left: 50%; + } + .col-lg-push-5 { + left: 41.66666667%; + } + .col-lg-push-4 { + left: 33.33333333%; + } + .col-lg-push-3 { + left: 25%; + } + .col-lg-push-2 { + left: 16.66666667%; + } + .col-lg-push-1 { + left: 8.33333333%; + } + .col-lg-push-0 { + left: auto; + } + .col-lg-offset-12 { + margin-left: 100%; + } + .col-lg-offset-11 { + margin-left: 91.66666667%; + } + .col-lg-offset-10 { + margin-left: 83.33333333%; + } + .col-lg-offset-9 { + margin-left: 75%; + } + .col-lg-offset-8 { + margin-left: 66.66666667%; + } + .col-lg-offset-7 { + margin-left: 58.33333333%; + } + .col-lg-offset-6 { + margin-left: 50%; + } + .col-lg-offset-5 { + margin-left: 41.66666667%; + } + .col-lg-offset-4 { + margin-left: 33.33333333%; + } + .col-lg-offset-3 { + margin-left: 25%; + } + .col-lg-offset-2 { + margin-left: 16.66666667%; + } + .col-lg-offset-1 { + margin-left: 8.33333333%; + } + .col-lg-offset-0 { + margin-left: 0%; + } +} +table { + background-color: transparent; +} +caption { + padding-top: 8px; + padding-bottom: 8px; + color: #777777; + text-align: left; +} +th { + text-align: left; +} +.table { + width: 100%; + max-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.42857143; + 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) { + background-color: #f9f9f9; +} +.table-hover > tbody > tr:hover { + background-color: #f5f5f5; +} +table col[class*="col-"] { + position: static; + float: none; + display: table-column; +} +table td[class*="col-"], +table th[class*="col-"] { + position: static; + 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-hover > tbody > tr > td.active:hover, +.table-hover > tbody > tr > th.active:hover, +.table-hover > tbody > tr.active:hover > td, +.table-hover > tbody > tr:hover > .active, +.table-hover > tbody > tr.active:hover > th { + background-color: #e8e8e8; +} +.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; +} +.table-hover > tbody > tr > td.success:hover, +.table-hover > tbody > tr > th.success:hover, +.table-hover > tbody > tr.success:hover > td, +.table-hover > tbody > tr:hover > .success, +.table-hover > tbody > tr.success:hover > th { + background-color: #d0e9c6; +} +.table > thead > tr > td.info, +.table > tbody > tr > td.info, +.table > tfoot > tr > td.info, +.table > thead > tr > th.info, +.table > tbody > tr > th.info, +.table > tfoot > tr > th.info, +.table > thead > tr.info > td, +.table > tbody > tr.info > td, +.table > tfoot > tr.info > td, +.table > thead > tr.info > th, +.table > tbody > tr.info > th, +.table > tfoot > tr.info > th { + background-color: #d9edf7; +} +.table-hover > tbody > tr > td.info:hover, +.table-hover > tbody > tr > th.info:hover, +.table-hover > tbody > tr.info:hover > td, +.table-hover > tbody > tr:hover > .info, +.table-hover > tbody > tr.info:hover > th { + background-color: #c4e3f3; +} +.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; +} +.table-hover > tbody > tr > td.warning:hover, +.table-hover > tbody > tr > th.warning:hover, +.table-hover > tbody > tr.warning:hover > td, +.table-hover > tbody > tr:hover > .warning, +.table-hover > tbody > tr.warning:hover > th { + background-color: #faf2cc; +} +.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; +} +.table-hover > tbody > tr > td.danger:hover, +.table-hover > tbody > tr > th.danger:hover, +.table-hover > tbody > tr.danger:hover > td, +.table-hover > tbody > tr:hover > .danger, +.table-hover > tbody > tr.danger:hover > th { + background-color: #ebcccc; +} +.table-responsive { + overflow-x: auto; + min-height: 0.01%; +} +@media screen and (max-width: 767px) { + .table-responsive { + width: 100%; + margin-bottom: 15px; + overflow-y: hidden; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #dddddd; + } + .table-responsive > .table { + margin-bottom: 0; + } + .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 > tbody > tr:last-child > th, + .table-responsive > .table-bordered > tfoot > tr:last-child > th, + .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; + min-width: 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; + max-width: 100%; + 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; + line-height: normal; +} +input[type="file"] { + display: block; +} +input[type="range"] { + display: block; + width: 100%; +} +select[multiple], +select[size] { + height: auto; +} +input[type="file"]:focus, +input[type="radio"]:focus, +input[type="checkbox"]:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +output { + display: block; + padding-top: 7px; + font-size: 14px; + line-height: 1.42857143; + color: #555555; +} +.form-control { + display: block; + width: 100%; + height: 34px; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + color: #555555; + background-color: #ffffff; + background-image: none; + 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, -webkit-box-shadow ease-in-out .15s; + -o-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::-moz-placeholder { + color: #999999; + opacity: 1; +} +.form-control:-ms-input-placeholder { + color: #999999; +} +.form-control::-webkit-input-placeholder { + color: #999999; +} +.form-control[disabled], +.form-control[readonly], +fieldset[disabled] .form-control { + cursor: not-allowed; + background-color: #eeeeee; + opacity: 1; +} +textarea.form-control { + height: auto; +} +input[type="search"] { + -webkit-appearance: none; +} +@media screen and (-webkit-min-device-pixel-ratio: 0) { + input[type="date"], + input[type="time"], + input[type="datetime-local"], + input[type="month"] { + line-height: 34px; + } + input[type="date"].input-sm, + input[type="time"].input-sm, + input[type="datetime-local"].input-sm, + input[type="month"].input-sm { + line-height: 30px; + } + input[type="date"].input-lg, + input[type="time"].input-lg, + input[type="datetime-local"].input-lg, + input[type="month"].input-lg { + line-height: 46px; + } +} +.form-group { + margin-bottom: 15px; +} +.radio, +.checkbox { + position: relative; + display: block; + margin-top: 10px; + margin-bottom: 10px; +} +.radio label, +.checkbox label { + min-height: 20px; + padding-left: 20px; + 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"] { + position: absolute; + margin-left: -20px; + margin-top: 4px \9; +} +.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], +input[type="radio"].disabled, +input[type="checkbox"].disabled, +fieldset[disabled] input[type="radio"], +fieldset[disabled] input[type="checkbox"] { + cursor: not-allowed; +} +.radio-inline.disabled, +.checkbox-inline.disabled, +fieldset[disabled] .radio-inline, +fieldset[disabled] .checkbox-inline { + cursor: not-allowed; +} +.radio.disabled label, +.checkbox.disabled label, +fieldset[disabled] .radio label, +fieldset[disabled] .checkbox label { + cursor: not-allowed; +} +.form-control-static { + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0; +} +.form-control-static.input-lg, +.form-control-static.input-sm { + padding-left: 0; + padding-right: 0; +} +.input-sm, +.form-group-sm .form-control { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-sm, +select.form-group-sm .form-control { + height: 30px; + line-height: 30px; +} +textarea.input-sm, +textarea.form-group-sm .form-control, +select[multiple].input-sm, +select[multiple].form-group-sm .form-control { + height: auto; +} +.input-lg, +.form-group-lg .form-control { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px; +} +select.input-lg, +select.form-group-lg .form-control { + height: 46px; + line-height: 46px; +} +textarea.input-lg, +textarea.form-group-lg .form-control, +select[multiple].input-lg, +select[multiple].form-group-lg .form-control { + height: auto; +} +.has-feedback { + position: relative; +} +.has-feedback .form-control { + padding-right: 42.5px; +} +.form-control-feedback { + position: absolute; + top: 0; + right: 0; + z-index: 2; + display: block; + width: 34px; + height: 34px; + line-height: 34px; + text-align: center; + pointer-events: none; +} +.input-lg + .form-control-feedback { + width: 46px; + height: 46px; + line-height: 46px; +} +.input-sm + .form-control-feedback { + width: 30px; + height: 30px; + line-height: 30px; +} +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline, +.has-success.radio label, +.has-success.checkbox label, +.has-success.radio-inline label, +.has-success.checkbox-inline label { + color: #3c763d; +} +.has-success .form-control { + border-color: #3c763d; + -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: #2b542c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; +} +.has-success .input-group-addon { + color: #3c763d; + border-color: #3c763d; + background-color: #dff0d8; +} +.has-success .form-control-feedback { + color: #3c763d; +} +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline, +.has-warning.radio label, +.has-warning.checkbox label, +.has-warning.radio-inline label, +.has-warning.checkbox-inline label { + color: #8a6d3b; +} +.has-warning .form-control { + border-color: #8a6d3b; + -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: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; +} +.has-warning .input-group-addon { + color: #8a6d3b; + border-color: #8a6d3b; + background-color: #fcf8e3; +} +.has-warning .form-control-feedback { + color: #8a6d3b; +} +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline, +.has-error.radio label, +.has-error.checkbox label, +.has-error.radio-inline label, +.has-error.checkbox-inline label { + color: #a94442; +} +.has-error .form-control { + border-color: #a94442; + -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: #843534; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; +} +.has-error .input-group-addon { + color: #a94442; + border-color: #a94442; + background-color: #f2dede; +} +.has-error .form-control-feedback { + color: #a94442; +} +.has-feedback label ~ .form-control-feedback { + top: 25px; +} +.has-feedback label.sr-only ~ .form-control-feedback { + top: 0; +} +.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; + width: auto; + vertical-align: middle; + } + .form-inline .form-control-static { + display: inline-block; + } + .form-inline .input-group { + display: inline-table; + vertical-align: middle; + } + .form-inline .input-group .input-group-addon, + .form-inline .input-group .input-group-btn, + .form-inline .input-group .form-control { + width: auto; + } + .form-inline .input-group > .form-control { + width: 100%; + } + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio, + .form-inline .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio label, + .form-inline .checkbox label { + padding-left: 0; + } + .form-inline .radio input[type="radio"], + .form-inline .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .form-inline .has-feedback .form-control-feedback { + top: 0; + } +} +.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 .radio, +.form-horizontal .checkbox { + min-height: 27px; +} +.form-horizontal .form-group { + margin-left: -15px; + margin-right: -15px; +} +@media (min-width: 768px) { + .form-horizontal .control-label { + text-align: right; + margin-bottom: 0; + padding-top: 7px; + } +} +.form-horizontal .has-feedback .form-control-feedback { + right: 15px; +} +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 14.3px; + } +} +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; + } +} +.btn { + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + border-radius: 4px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.btn:focus, +.btn:active:focus, +.btn.active:focus, +.btn.focus, +.btn:active.focus, +.btn.active.focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.btn:hover, +.btn:focus, +.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.focus, +.btn-default:active, +.btn-default.active, +.open > .dropdown-toggle.btn-default { + color: #333333; + background-color: #e6e6e6; + 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.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-default .badge { + color: #ffffff; + background-color: #333333; +} +.btn-primary { + color: #ffffff; + background-color: #337ab7; + border-color: #2e6da4; +} +.btn-primary:hover, +.btn-primary:focus, +.btn-primary.focus, +.btn-primary:active, +.btn-primary.active, +.open > .dropdown-toggle.btn-primary { + color: #ffffff; + background-color: #286090; + border-color: #204d74; +} +.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.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: #337ab7; + border-color: #2e6da4; +} +.btn-primary .badge { + color: #337ab7; + background-color: #ffffff; +} +.btn-success { + color: #ffffff; + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success:hover, +.btn-success:focus, +.btn-success.focus, +.btn-success:active, +.btn-success.active, +.open > .dropdown-toggle.btn-success { + color: #ffffff; + background-color: #449d44; + 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.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-success .badge { + color: #5cb85c; + background-color: #ffffff; +} +.btn-info { + color: #ffffff; + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info:hover, +.btn-info:focus, +.btn-info.focus, +.btn-info:active, +.btn-info.active, +.open > .dropdown-toggle.btn-info { + color: #ffffff; + background-color: #31b0d5; + 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.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-info .badge { + color: #5bc0de; + background-color: #ffffff; +} +.btn-warning { + color: #ffffff; + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning:hover, +.btn-warning:focus, +.btn-warning.focus, +.btn-warning:active, +.btn-warning.active, +.open > .dropdown-toggle.btn-warning { + color: #ffffff; + background-color: #ec971f; + 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.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-warning .badge { + color: #f0ad4e; + background-color: #ffffff; +} +.btn-danger { + color: #ffffff; + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger:hover, +.btn-danger:focus, +.btn-danger.focus, +.btn-danger:active, +.btn-danger.active, +.open > .dropdown-toggle.btn-danger { + color: #ffffff; + background-color: #c9302c; + 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.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-danger .badge { + color: #d9534f; + background-color: #ffffff; +} +.btn-link { + color: #337ab7; + font-weight: normal; + border-radius: 0; +} +.btn-link, +.btn-link:active, +.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: #23527c; + 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: #777777; + text-decoration: none; +} +.btn-lg, +.btn-group-lg > .btn { + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px; +} +.btn-sm, +.btn-group-sm > .btn { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-xs, +.btn-group-xs > .btn { + padding: 1px 5px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-block { + display: block; + width: 100%; +} +.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; + -o-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; +} +.fade.in { + opacity: 1; +} +.collapse { + display: none; + visibility: hidden; +} +.collapse.in { + display: block; + visibility: visible; +} +tr.collapse.in { + display: table-row; +} +tbody.collapse.in { + display: table-row-group; +} +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition-property: height, visibility; + -o-transition-property: height, visibility; + transition-property: height, visibility; + -webkit-transition-duration: 0.35s; + -o-transition-duration: 0.35s; + transition-duration: 0.35s; + -webkit-transition-timing-function: ease; + -o-transition-timing-function: ease; + transition-timing-function: ease; +} +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px solid; + border-right: 4px solid transparent; + border-left: 4px solid transparent; +} +.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; + text-align: left; + 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); + -webkit-background-clip: padding-box; + 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.42857143; + color: #333333; + white-space: nowrap; +} +.dropdown-menu > li > a:hover, +.dropdown-menu > li > a:focus { + text-decoration: none; + color: #262626; + background-color: #f5f5f5; +} +.dropdown-menu > .active > a, +.dropdown-menu > .active > a:hover, +.dropdown-menu > .active > a:focus { + color: #ffffff; + text-decoration: none; + outline: 0; + background-color: #337ab7; +} +.dropdown-menu > .disabled > a, +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { + color: #777777; +} +.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-menu-right { + left: auto; + right: 0; +} +.dropdown-menu-left { + left: 0; + right: auto; +} +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 12px; + line-height: 1.42857143; + color: #777777; + white-space: nowrap; +} +.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; + border-bottom: 4px solid; + content: ""; +} +.dropup .dropdown-menu, +.navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 1px; +} +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + left: auto; + right: 0; + } + .navbar-right .dropdown-menu-left { + left: 0; + right: auto; + } +} +.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 + .btn, +.btn-group .btn + .btn-group, +.btn-group .btn-group + .btn, +.btn-group .btn-group + .btn-group { + margin-left: -1px; +} +.btn-toolbar { + margin-left: -5px; +} +.btn-toolbar .btn-group, +.btn-toolbar .input-group { + float: left; +} +.btn-toolbar > .btn, +.btn-toolbar > .btn-group, +.btn-toolbar > .input-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 > .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-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none; +} +.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, +.btn-group-vertical > .btn-group > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; +} +.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:not(:last-child) > .btn:last-child, +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group-vertical > .btn-group:last-child:not(:first-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, +.btn-group-justified > .btn-group { + float: none; + display: table-cell; + width: 1%; +} +.btn-group-justified > .btn-group .btn { + width: 100%; +} +.btn-group-justified > .btn-group .dropdown-menu { + left: auto; +} +[data-toggle="buttons"] > .btn input[type="radio"], +[data-toggle="buttons"] > .btn-group > .btn input[type="radio"], +[data-toggle="buttons"] > .btn input[type="checkbox"], +[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { + position: absolute; + clip: rect(0, 0, 0, 0); + pointer-events: none; +} +.input-group { + position: relative; + display: table; + border-collapse: separate; +} +.input-group[class*="col-"] { + float: none; + padding-left: 0; + padding-right: 0; +} +.input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; +} +.input-group-lg > .form-control, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .btn { + height: 46px; + 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: 46px; + line-height: 46px; +} +textarea.input-group-lg > .form-control, +textarea.input-group-lg > .input-group-addon, +textarea.input-group-lg > .input-group-btn > .btn, +select[multiple].input-group-lg > .form-control, +select[multiple].input-group-lg > .input-group-addon, +select[multiple].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, +select[multiple].input-group-sm > .form-control, +select[multiple].input-group-sm > .input-group-addon, +select[multiple].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; + color: #555555; + 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 > .btn-group > .btn, +.input-group-btn:first-child > .dropdown-toggle, +.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), +.input-group-btn:last-child > .btn-group:not(:last-child) > .btn { + 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 > .btn-group > .btn, +.input-group-btn:last-child > .dropdown-toggle, +.input-group-btn:first-child > .btn:not(:first-child), +.input-group-btn:first-child > .btn-group:not(:first-child) > .btn { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} +.input-group-addon:last-child { + border-left: 0; +} +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; +} +.input-group-btn > .btn { + position: relative; +} +.input-group-btn > .btn + .btn { + margin-left: -1px; +} +.input-group-btn > .btn:hover, +.input-group-btn > .btn:focus, +.input-group-btn > .btn:active { + z-index: 2; +} +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group { + margin-right: -1px; +} +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group { + margin-left: -1px; +} +.nav { + margin-bottom: 0; + padding-left: 0; + list-style: none; +} +.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: #777777; +} +.nav > li.disabled > a:hover, +.nav > li.disabled > a:focus { + color: #777777; + 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: #337ab7; +} +.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.42857143; + 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; + margin-bottom: 5px; +} +.nav-tabs.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-tabs.nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs.nav-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs.nav-justified > .active > a, +.nav-tabs.nav-justified > .active > a:hover, +.nav-tabs.nav-justified > .active > a:focus { + border: 1px solid #dddddd; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li > a { + border-bottom: 1px solid #dddddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs.nav-justified > .active > a, + .nav-tabs.nav-justified > .active > a:hover, + .nav-tabs.nav-justified > .active > a:focus { + border-bottom-color: #ffffff; + } +} +.nav-pills > li { + float: left; +} +.nav-pills > li > a { + border-radius: 4px; +} +.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: #337ab7; +} +.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; + margin-bottom: 5px; +} +.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs-justified { + border-bottom: 0; +} +.nav-tabs-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs-justified > .active > a, +.nav-tabs-justified > .active > a:hover, +.nav-tabs-justified > .active > a:focus { + border: 1px solid #dddddd; +} +@media (min-width: 768px) { + .nav-tabs-justified > li > a { + border-bottom: 1px solid #dddddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs-justified > .active > a, + .nav-tabs-justified > .active > a:hover, + .nav-tabs-justified > .active > a:focus { + border-bottom-color: #ffffff; + } +} +.tab-content > .tab-pane { + display: none; + visibility: hidden; +} +.tab-content > .active { + display: block; + visibility: visible; +} +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-right-radius: 0; + border-top-left-radius: 0; +} +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 20px; + border: 1px solid transparent; +} +@media (min-width: 768px) { + .navbar { + border-radius: 4px; + } +} +@media (min-width: 768px) { + .navbar-header { + float: left; + } +} +.navbar-collapse { + overflow-x: visible; + padding-right: 15px; + padding-left: 15px; + border-top: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); + -webkit-overflow-scrolling: touch; +} +.navbar-collapse.in { + overflow-y: auto; +} +@media (min-width: 768px) { + .navbar-collapse { + width: auto; + border-top: 0; + -webkit-box-shadow: none; + box-shadow: none; + } + .navbar-collapse.collapse { + display: block !important; + visibility: visible !important; + height: auto !important; + padding-bottom: 0; + overflow: visible !important; + } + .navbar-collapse.in { + overflow-y: visible; + } + .navbar-fixed-top .navbar-collapse, + .navbar-static-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + padding-left: 0; + padding-right: 0; + } +} +.navbar-fixed-top .navbar-collapse, +.navbar-fixed-bottom .navbar-collapse { + max-height: 340px; +} +@media (max-device-width: 480px) and (orientation: landscape) { + .navbar-fixed-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + max-height: 200px; + } +} +.container > .navbar-header, +.container-fluid > .navbar-header, +.container > .navbar-collapse, +.container-fluid > .navbar-collapse { + margin-right: -15px; + margin-left: -15px; +} +@media (min-width: 768px) { + .container > .navbar-header, + .container-fluid > .navbar-header, + .container > .navbar-collapse, + .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; + } +} +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px; +} +@media (min-width: 768px) { + .navbar-static-top { + border-radius: 0; + } +} +.navbar-fixed-top, +.navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; +} +@media (min-width: 768px) { + .navbar-fixed-top, + .navbar-fixed-bottom { + border-radius: 0; + } +} +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px; +} +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0; +} +.navbar-brand { + float: left; + padding: 15px 15px; + font-size: 18px; + line-height: 20px; + height: 50px; +} +.navbar-brand:hover, +.navbar-brand:focus { + text-decoration: none; +} +.navbar-brand > img { + display: block; +} +@media (min-width: 768px) { + .navbar > .container .navbar-brand, + .navbar > .container-fluid .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; + background-image: none; + border: 1px solid transparent; + border-radius: 4px; +} +.navbar-toggle:focus { + outline: 0; +} +.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: 768px) { + .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; + -webkit-box-shadow: none; + 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: 768px) { + .navbar-nav { + float: left; + margin: 0; + } + .navbar-nav > li { + float: left; + } + .navbar-nav > li > a { + padding-top: 15px; + padding-bottom: 15px; + } +} +.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; + width: auto; + vertical-align: middle; + } + .navbar-form .form-control-static { + display: inline-block; + } + .navbar-form .input-group { + display: inline-table; + vertical-align: middle; + } + .navbar-form .input-group .input-group-addon, + .navbar-form .input-group .input-group-btn, + .navbar-form .input-group .form-control { + width: auto; + } + .navbar-form .input-group > .form-control { + width: 100%; + } + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio, + .navbar-form .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio label, + .navbar-form .checkbox label { + padding-left: 0; + } + .navbar-form .radio input[type="radio"], + .navbar-form .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .navbar-form .has-feedback .form-control-feedback { + top: 0; + } +} +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; + } + .navbar-form .form-group:last-child { + margin-bottom: 0; + } +} +@media (min-width: 768px) { + .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-top-right-radius: 4px; + border-top-left-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.navbar-btn { + margin-top: 8px; + margin-bottom: 8px; +} +.navbar-btn.btn-sm { + margin-top: 10px; + margin-bottom: 10px; +} +.navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px; +} +.navbar-text { + margin-top: 15px; + margin-bottom: 15px; +} +@media (min-width: 768px) { + .navbar-text { + float: left; + margin-left: 15px; + margin-right: 15px; + } +} +@media (min-width: 768px) { + .navbar-left { + float: left !important; + } + .navbar-right { + float: right !important; + margin-right: -15px; + } + .navbar-right ~ .navbar-right { + margin-right: 0; + } +} +.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: #888888; +} +.navbar-default .navbar-collapse, +.navbar-default .navbar-form { + border-color: #e7e7e7; +} +.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; +} +@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-default .btn-link { + color: #777777; +} +.navbar-default .btn-link:hover, +.navbar-default .btn-link:focus { + color: #333333; +} +.navbar-default .btn-link[disabled]:hover, +fieldset[disabled] .navbar-default .btn-link:hover, +.navbar-default .btn-link[disabled]:focus, +fieldset[disabled] .navbar-default .btn-link:focus { + color: #cccccc; +} +.navbar-inverse { + background-color: #222222; + border-color: #080808; +} +.navbar-inverse .navbar-brand { + color: #9d9d9d; +} +.navbar-inverse .navbar-brand:hover, +.navbar-inverse .navbar-brand:focus { + color: #ffffff; + background-color: transparent; +} +.navbar-inverse .navbar-text { + color: #9d9d9d; +} +.navbar-inverse .navbar-nav > li > a { + color: #9d9d9d; +} +.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; +} +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { + border-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { + color: #9d9d9d; + } + .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: #9d9d9d; +} +.navbar-inverse .navbar-link:hover { + color: #ffffff; +} +.navbar-inverse .btn-link { + color: #9d9d9d; +} +.navbar-inverse .btn-link:hover, +.navbar-inverse .btn-link:focus { + color: #ffffff; +} +.navbar-inverse .btn-link[disabled]:hover, +fieldset[disabled] .navbar-inverse .btn-link:hover, +.navbar-inverse .btn-link[disabled]:focus, +fieldset[disabled] .navbar-inverse .btn-link:focus { + color: #444444; +} +.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: #777777; +} +.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.42857143; + text-decoration: none; + color: #337ab7; + 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 { + color: #23527c; + background-color: #eeeeee; + border-color: #dddddd; +} +.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: #337ab7; + border-color: #337ab7; + cursor: default; +} +.pagination > .disabled > span, +.pagination > .disabled > span:hover, +.pagination > .disabled > span:focus, +.pagination > .disabled > a, +.pagination > .disabled > a:hover, +.pagination > .disabled > a:focus { + color: #777777; + 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 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: #777777; + 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; +} +a.label:hover, +a.label:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; +} +.label:empty { + display: none; +} +.btn .label { + position: relative; + top: -1px; +} +.label-default { + background-color: #777777; +} +.label-default[href]:hover, +.label-default[href]:focus { + background-color: #5e5e5e; +} +.label-primary { + background-color: #337ab7; +} +.label-primary[href]:hover, +.label-primary[href]:focus { + background-color: #286090; +} +.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: #777777; + border-radius: 10px; +} +.badge:empty { + display: none; +} +.btn .badge { + position: relative; + top: -1px; +} +.btn-xs .badge { + top: 0; + padding: 1px 5px; +} +a.badge:hover, +a.badge:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; +} +.list-group-item.active > .badge, +.nav-pills > .active > a > .badge { + color: #337ab7; + background-color: #ffffff; +} +.list-group-item > .badge { + float: right; +} +.list-group-item > .badge + .badge { + margin-right: 5px; +} +.nav-pills > li > a > .badge { + margin-left: 3px; +} +.jumbotron { + padding: 30px 15px; + margin-bottom: 30px; + color: inherit; + background-color: #eeeeee; +} +.jumbotron h1, +.jumbotron .h1 { + color: inherit; +} +.jumbotron p { + margin-bottom: 15px; + font-size: 21px; + font-weight: 200; +} +.jumbotron > hr { + border-top-color: #d5d5d5; +} +.container .jumbotron, +.container-fluid .jumbotron { + border-radius: 6px; +} +.jumbotron .container { + max-width: 100%; +} +@media screen and (min-width: 768px) { + .jumbotron { + padding: 48px 0; + } + .container .jumbotron, + .container-fluid .jumbotron { + padding-left: 60px; + padding-right: 60px; + } + .jumbotron h1, + .jumbotron .h1 { + font-size: 63px; + } +} +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 20px; + line-height: 1.42857143; + background-color: #ffffff; + border: 1px solid #dddddd; + border-radius: 4px; + -webkit-transition: border 0.2s ease-in-out; + -o-transition: border 0.2s ease-in-out; + transition: border 0.2s ease-in-out; +} +.thumbnail > img, +.thumbnail a > img { + margin-left: auto; + margin-right: auto; +} +a.thumbnail:hover, +a.thumbnail:focus, +a.thumbnail.active { + border-color: #337ab7; +} +.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, +.alert-dismissible { + padding-right: 35px; +} +.alert-dismissable .close, +.alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; +} +.alert-success { + background-color: #dff0d8; + border-color: #d6e9c6; + color: #3c763d; +} +.alert-success hr { + border-top-color: #c9e2b3; +} +.alert-success .alert-link { + color: #2b542c; +} +.alert-info { + background-color: #d9edf7; + border-color: #bce8f1; + color: #31708f; +} +.alert-info hr { + border-top-color: #a6e1ec; +} +.alert-info .alert-link { + color: #245269; +} +.alert-warning { + background-color: #fcf8e3; + border-color: #faebcc; + color: #8a6d3b; +} +.alert-warning hr { + border-top-color: #f7e1b5; +} +.alert-warning .alert-link { + color: #66512c; +} +.alert-danger { + background-color: #f2dede; + border-color: #ebccd1; + color: #a94442; +} +.alert-danger hr { + border-top-color: #e4b9c0; +} +.alert-danger .alert-link { + color: #843534; +} +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@-o-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 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; + line-height: 20px; + color: #ffffff; + text-align: center; + background-color: #337ab7; + -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; + -o-transition: width 0.6s ease; + transition: width 0.6s ease; +} +.progress-striped .progress-bar, +.progress-bar-striped { + 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: -o-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); + -webkit-background-size: 40px 40px; + background-size: 40px 40px; +} +.progress.active .progress-bar, +.progress-bar.active { + -webkit-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-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: -o-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-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: -o-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-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: -o-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-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: -o-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 { + margin-top: 15px; +} +.media:first-child { + margin-top: 0; +} +.media-right, +.media > .pull-right { + padding-left: 10px; +} +.media-left, +.media > .pull-left { + padding-right: 10px; +} +.media-left, +.media-right, +.media-body { + display: table-cell; + vertical-align: top; +} +.media-middle { + vertical-align: middle; +} +.media-bottom { + vertical-align: bottom; +} +.media-heading { + margin-top: 0; + margin-bottom: 5px; +} +.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; +} +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; + color: #555555; + background-color: #f5f5f5; +} +.list-group-item.disabled, +.list-group-item.disabled:hover, +.list-group-item.disabled:focus { + background-color: #eeeeee; + color: #777777; + cursor: not-allowed; +} +.list-group-item.disabled .list-group-item-heading, +.list-group-item.disabled:hover .list-group-item-heading, +.list-group-item.disabled:focus .list-group-item-heading { + color: inherit; +} +.list-group-item.disabled .list-group-item-text, +.list-group-item.disabled:hover .list-group-item-text, +.list-group-item.disabled:focus .list-group-item-text { + color: #777777; +} +.list-group-item.active, +.list-group-item.active:hover, +.list-group-item.active:focus { + z-index: 2; + color: #ffffff; + background-color: #337ab7; + border-color: #337ab7; +} +.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, +.list-group-item.active .list-group-item-heading > small, +.list-group-item.active:hover .list-group-item-heading > small, +.list-group-item.active:focus .list-group-item-heading > small, +.list-group-item.active .list-group-item-heading > .small, +.list-group-item.active:hover .list-group-item-heading > .small, +.list-group-item.active:focus .list-group-item-heading > .small { + 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: #c7ddef; +} +.list-group-item-success { + color: #3c763d; + background-color: #dff0d8; +} +a.list-group-item-success { + color: #3c763d; +} +a.list-group-item-success .list-group-item-heading { + color: inherit; +} +a.list-group-item-success:hover, +a.list-group-item-success:focus { + color: #3c763d; + background-color: #d0e9c6; +} +a.list-group-item-success.active, +a.list-group-item-success.active:hover, +a.list-group-item-success.active:focus { + color: #fff; + background-color: #3c763d; + border-color: #3c763d; +} +.list-group-item-info { + color: #31708f; + background-color: #d9edf7; +} +a.list-group-item-info { + color: #31708f; +} +a.list-group-item-info .list-group-item-heading { + color: inherit; +} +a.list-group-item-info:hover, +a.list-group-item-info:focus { + color: #31708f; + background-color: #c4e3f3; +} +a.list-group-item-info.active, +a.list-group-item-info.active:hover, +a.list-group-item-info.active:focus { + color: #fff; + background-color: #31708f; + border-color: #31708f; +} +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; +} +a.list-group-item-warning { + color: #8a6d3b; +} +a.list-group-item-warning .list-group-item-heading { + color: inherit; +} +a.list-group-item-warning:hover, +a.list-group-item-warning:focus { + color: #8a6d3b; + background-color: #faf2cc; +} +a.list-group-item-warning.active, +a.list-group-item-warning.active:hover, +a.list-group-item-warning.active:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; +} +.list-group-item-danger { + color: #a94442; + background-color: #f2dede; +} +a.list-group-item-danger { + color: #a94442; +} +a.list-group-item-danger .list-group-item-heading { + color: inherit; +} +a.list-group-item-danger:hover, +a.list-group-item-danger:focus { + color: #a94442; + background-color: #ebcccc; +} +a.list-group-item-danger.active, +a.list-group-item-danger.active:hover, +a.list-group-item-danger.active:focus { + color: #fff; + background-color: #a94442; + border-color: #a94442; +} +.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-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-right-radius: 3px; + border-top-left-radius: 3px; +} +.panel-heading > .dropdown .dropdown-toggle { + color: inherit; +} +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 16px; + color: inherit; +} +.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 > .list-group, +.panel > .panel-collapse > .list-group { + margin-bottom: 0; +} +.panel > .list-group .list-group-item, +.panel > .panel-collapse > .list-group .list-group-item { + border-width: 1px 0; + border-radius: 0; +} +.panel > .list-group:first-child .list-group-item:first-child, +.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-right-radius: 3px; + border-top-left-radius: 3px; +} +.panel > .list-group:last-child .list-group-item:last-child, +.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel-heading + .list-group .list-group-item:first-child { + border-top-width: 0; +} +.list-group + .panel-footer { + border-top-width: 0; +} +.panel > .table, +.panel > .table-responsive > .table, +.panel > .panel-collapse > .table { + margin-bottom: 0; +} +.panel > .table caption, +.panel > .table-responsive > .table caption, +.panel > .panel-collapse > .table caption { + padding-left: 15px; + padding-right: 15px; +} +.panel > .table:first-child, +.panel > .table-responsive:first-child > .table:first-child { + border-top-right-radius: 3px; + border-top-left-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 3px; +} +.panel > .table:last-child, +.panel > .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 3px; +} +.panel > .panel-body + .table, +.panel > .panel-body + .table-responsive, +.panel > .table + .panel-body, +.panel > .table-responsive + .panel-body { + border-top: 1px solid #dddddd; +} +.panel > .table > tbody:first-child > tr:first-child th, +.panel > .table > tbody:first-child > tr:first-child td { + border-top: 0; +} +.panel > .table-bordered, +.panel > .table-responsive > .table-bordered { + border: 0; +} +.panel > .table-bordered > thead > tr > th:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:first-child, +.panel > .table-bordered > tbody > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, +.panel > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-bordered > thead > tr > td:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:first-child, +.panel > .table-bordered > tbody > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, +.panel > .table-bordered > tfoot > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; +} +.panel > .table-bordered > thead > tr > th:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:last-child, +.panel > .table-bordered > tbody > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, +.panel > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-bordered > thead > tr > td:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:last-child, +.panel > .table-bordered > tbody > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, +.panel > .table-bordered > tfoot > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; +} +.panel > .table-bordered > thead > tr:first-child > td, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > td, +.panel > .table-bordered > tbody > tr:first-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, +.panel > .table-bordered > thead > tr:first-child > th, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > th, +.panel > .table-bordered > tbody > tr:first-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { + border-bottom: 0; +} +.panel > .table-bordered > tbody > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, +.panel > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-bordered > tbody > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, +.panel > .table-bordered > tfoot > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; +} +.panel > .table-responsive { + border: 0; + margin-bottom: 0; +} +.panel-group { + margin-bottom: 20px; +} +.panel-group .panel { + margin-bottom: 0; + border-radius: 4px; +} +.panel-group .panel + .panel { + margin-top: 5px; +} +.panel-group .panel-heading { + border-bottom: 0; +} +.panel-group .panel-heading + .panel-collapse > .panel-body, +.panel-group .panel-heading + .panel-collapse > .list-group { + 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-heading .badge { + color: #f5f5f5; + background-color: #333333; +} +.panel-default > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #dddddd; +} +.panel-primary { + border-color: #337ab7; +} +.panel-primary > .panel-heading { + color: #ffffff; + background-color: #337ab7; + border-color: #337ab7; +} +.panel-primary > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #337ab7; +} +.panel-primary > .panel-heading .badge { + color: #337ab7; + background-color: #ffffff; +} +.panel-primary > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #337ab7; +} +.panel-success { + border-color: #d6e9c6; +} +.panel-success > .panel-heading { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.panel-success > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #d6e9c6; +} +.panel-success > .panel-heading .badge { + color: #dff0d8; + background-color: #3c763d; +} +.panel-success > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #d6e9c6; +} +.panel-info { + border-color: #bce8f1; +} +.panel-info > .panel-heading { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.panel-info > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #bce8f1; +} +.panel-info > .panel-heading .badge { + color: #d9edf7; + background-color: #31708f; +} +.panel-info > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #bce8f1; +} +.panel-warning { + border-color: #faebcc; +} +.panel-warning > .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.panel-warning > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #faebcc; +} +.panel-warning > .panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b; +} +.panel-warning > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #faebcc; +} +.panel-danger { + border-color: #ebccd1; +} +.panel-danger > .panel-heading { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.panel-danger > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #ebccd1; +} +.panel-danger > .panel-heading .badge { + color: #f2dede; + background-color: #a94442; +} +.panel-danger > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #ebccd1; +} +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; +} +.embed-responsive .embed-responsive-item, +.embed-responsive iframe, +.embed-responsive embed, +.embed-responsive object, +.embed-responsive video { + position: absolute; + top: 0; + left: 0; + bottom: 0; + height: 100%; + width: 100%; + border: 0; +} +.embed-responsive.embed-responsive-16by9 { + padding-bottom: 56.25%; +} +.embed-responsive.embed-responsive-4by3 { + padding-bottom: 75%; +} +.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; +} +.modal { + display: none; + overflow: hidden; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + -webkit-overflow-scrolling: touch; + outline: 0; +} +.modal.fade .modal-dialog { + -webkit-transform: translate(0, -25%); + -ms-transform: translate(0, -25%); + -o-transform: translate(0, -25%); + transform: translate(0, -25%); + -webkit-transition: -webkit-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); + -o-transform: translate(0, 0); + transform: translate(0, 0); +} +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; +} +.modal-dialog { + position: relative; + width: auto; + margin: 10px; +} +.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); + -webkit-background-clip: padding-box; + background-clip: padding-box; + outline: 0; +} +.modal-backdrop { + position: absolute; + top: 0; + right: 0; + left: 0; + 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.42857143px; +} +.modal-header .close { + margin-top: -2px; +} +.modal-title { + margin: 0; + line-height: 1.42857143; +} +.modal-body { + position: relative; + padding: 15px; +} +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; +} +.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; +} +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; +} +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; + } + .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); + } + .modal-sm { + width: 300px; + } +} +@media (min-width: 992px) { + .modal-lg { + width: 900px; + } +} +.tooltip { + position: absolute; + z-index: 1070; + display: block; + visibility: visible; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 12px; + font-weight: normal; + 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; + right: 5px; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000000; +} +.tooltip.top-right .tooltip-arrow { + bottom: 0; + left: 5px; + margin-bottom: -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; + right: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} +.tooltip.bottom-right .tooltip-arrow { + top: 0; + left: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + font-weight: normal; + line-height: 1.42857143; + text-align: left; + background-color: #ffffff; + -webkit-background-clip: padding-box; + 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; + 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; + -o-transition: 0.6s ease-in-out left; + transition: 0.6s ease-in-out left; +} +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + line-height: 1; +} +@media all and (transform-3d), (-webkit-transform-3d) { + .carousel-inner > .item { + -webkit-transition: -webkit-transform 0.6s ease-in-out; + -o-transition: -o-transform 0.6s ease-in-out; + transition: transform 0.6s ease-in-out; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-perspective: 1000; + perspective: 1000; + } + .carousel-inner > .item.next, + .carousel-inner > .item.active.right { + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); + left: 0; + } + .carousel-inner > .item.prev, + .carousel-inner > .item.active.left { + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); + left: 0; + } + .carousel-inner > .item.next.left, + .carousel-inner > .item.prev.right, + .carousel-inner > .item.active { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + left: 0; + } +} +.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-repeat: repeat-x; + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); +} +.carousel-control.right { + left: auto; + right: 0; + background-repeat: repeat-x; + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); +} +.carousel-control:hover, +.carousel-control:focus { + outline: 0; + 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%; + z-index: 5; + display: inline-block; +} +.carousel-control .icon-prev, +.carousel-control .glyphicon-chevron-left { + left: 50%; + margin-left: -10px; +} +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-right { + right: 50%; + margin-right: -10px; +} +.carousel-control .icon-prev, +.carousel-control .icon-next { + width: 20px; + height: 20px; + margin-top: -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; + background-color: #000 \9; + background-color: rgba(0, 0, 0, 0); +} +.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 .glyphicon-chevron-left, + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-prev, + .carousel-control .icon-next { + width: 30px; + height: 30px; + margin-top: -15px; + font-size: 30px; + } + .carousel-control .glyphicon-chevron-left, + .carousel-control .icon-prev { + margin-left: -15px; + } + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-next { + margin-right: -15px; + } + .carousel-caption { + left: 20%; + right: 20%; + padding-bottom: 30px; + } + .carousel-indicators { + bottom: 20px; + } +} +.clearfix:before, +.clearfix:after, +.dl-horizontal dd:before, +.dl-horizontal dd:after, +.container:before, +.container:after, +.container-fluid:before, +.container-fluid:after, +.row:before, +.row:after, +.form-horizontal .form-group:before, +.form-horizontal .form-group:after, +.btn-toolbar:before, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:before, +.btn-group-vertical > .btn-group:after, +.nav:before, +.nav:after, +.navbar:before, +.navbar:after, +.navbar-header:before, +.navbar-header:after, +.navbar-collapse:before, +.navbar-collapse:after, +.pager:before, +.pager:after, +.panel-body:before, +.panel-body:after, +.modal-footer:before, +.modal-footer:after { + content: " "; + display: table; +} +.clearfix:after, +.dl-horizontal dd:after, +.container:after, +.container-fluid:after, +.row:after, +.form-horizontal .form-group:after, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:after, +.nav:after, +.navbar:after, +.navbar-header:after, +.navbar-collapse:after, +.pager:after, +.panel-body:after, +.modal-footer:after { + clear: both; +} +.center-block { + display: block; + margin-left: auto; + margin-right: auto; +} +.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; +} +.hidden { + display: none !important; + visibility: hidden !important; +} +.affix { + position: fixed; +} +@-ms-viewport { + width: device-width; +} +.visible-xs, +.visible-sm, +.visible-md, +.visible-lg { + display: none !important; +} +.visible-xs-block, +.visible-xs-inline, +.visible-xs-inline-block, +.visible-sm-block, +.visible-sm-inline, +.visible-sm-inline-block, +.visible-md-block, +.visible-md-inline, +.visible-md-inline-block, +.visible-lg-block, +.visible-lg-inline, +.visible-lg-inline-block { + display: none !important; +} +@media (max-width: 767px) { + .visible-xs { + display: block !important; + } + table.visible-xs { + display: table; + } + tr.visible-xs { + display: table-row !important; + } + th.visible-xs, + td.visible-xs { + display: table-cell !important; + } +} +@media (max-width: 767px) { + .visible-xs-block { + display: block !important; + } +} +@media (max-width: 767px) { + .visible-xs-inline { + display: inline !important; + } +} +@media (max-width: 767px) { + .visible-xs-inline-block { + display: inline-block !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important; + } + table.visible-sm { + display: table; + } + tr.visible-sm { + display: table-row !important; + } + th.visible-sm, + td.visible-sm { + display: table-cell !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-block { + display: block !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline { + display: inline !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline-block { + display: inline-block !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md { + display: block !important; + } + table.visible-md { + display: table; + } + tr.visible-md { + display: table-row !important; + } + th.visible-md, + td.visible-md { + display: table-cell !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-block { + display: block !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-inline { + display: inline !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md-inline-block { + display: inline-block !important; + } +} +@media (min-width: 1200px) { + .visible-lg { + display: block !important; + } + table.visible-lg { + display: table; + } + tr.visible-lg { + display: table-row !important; + } + th.visible-lg, + td.visible-lg { + display: table-cell !important; + } +} +@media (min-width: 1200px) { + .visible-lg-block { + display: block !important; + } +} +@media (min-width: 1200px) { + .visible-lg-inline { + display: inline !important; + } +} +@media (min-width: 1200px) { + .visible-lg-inline-block { + display: inline-block !important; + } +} +@media (max-width: 767px) { + .hidden-xs { + display: none !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-md { + display: none !important; + } +} +@media (min-width: 1200px) { + .hidden-lg { + display: none !important; + } +} +.visible-print { + display: none !important; +} +@media print { + .visible-print { + display: block !important; + } + table.visible-print { + display: table; + } + tr.visible-print { + display: table-row !important; + } + th.visible-print, + td.visible-print { + display: table-cell !important; + } +} +.visible-print-block { + display: none !important; +} +@media print { + .visible-print-block { + display: block !important; + } +} +.visible-print-inline { + display: none !important; +} +@media print { + .visible-print-inline { + display: inline !important; + } +} +.visible-print-inline-block { + display: none !important; +} +@media print { + .visible-print-inline-block { + display: inline-block !important; + } +} +@media print { + .hidden-print { + display: none !important; + } +} Binary files /dev/null and b/AadhaarService/RemoteServices/e-Sign.png differ --- /dev/null +++ b/AadhaarService/RemoteServices/eSign.aspx @@ -0,0 +1,84 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="eSign.aspx.cs" Inherits="eSign" %> + + + + eSign + + + + + + +
+ +
+ × + Success! OTP generated SuccessFully. +
+
+ +
+ × + Failed! Something went wrong. +
+
+ +
+ × + Info! Aadhaar Number cannot be empty. +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
Aadhaar Number
+
+
OTP
+
+
+
MIME Type
+
+
Document
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + --- /dev/null +++ b/AadhaarService/RemoteServices/eSign.aspx.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Data; +using iTextSharp.text; +using iTextSharp.text.pdf; + +public partial class eSign : System.Web.UI.Page +{ + Aadhaar aadhar = new Aadhaar(); + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + } + } + protected void btnsubmit_Click(object sender, EventArgs e) + { + try + { + string pdffile = null; + byte[] fileData = null; + if (uploadpdf.PostedFile != null) + { + HttpPostedFile myFile = uploadpdf.PostedFile; + using (var binaryReader = new BinaryReader(Request.Files[0].InputStream)) + { + fileData = binaryReader.ReadBytes(Request.Files[0].ContentLength); + } + if (txtmimetype.Text == "application/pdf") + { + pdffile = aadhar.eSignWithOTP(txtaadhar.Text, txtotp.Text, fileData,"Puneet Kumar"); + } + else + { + iTextSharp.text.Image image = iTextSharp.text.Image.GetInstance(fileData); + float h = image.ScaledHeight; + float w = image.ScaledWidth; + float scalePercent; + using (System.IO.MemoryStream memoryStream = new System.IO.MemoryStream()) + { + Rectangle defaultPageSize = PageSize.A4; + using (Document document = new Document(defaultPageSize)) + { + PdfWriter.GetInstance(document,memoryStream); + document.Open(); + // if you don't account for the left/right margins, the image will + // run off the current page + float width = defaultPageSize.Width + - document.RightMargin + - document.LeftMargin + ; + float height = defaultPageSize.Height + - document.TopMargin + - document.BottomMargin + ; + // scale percentage is dependent on whether the image is + // 'portrait' or 'landscape' + if (h > w) + { + // only scale image if it's height is __greater__ than + // the document's height, accounting for margins + if (h > height) + { + scalePercent = height / h; + image.ScaleAbsolute(w * scalePercent, h * scalePercent); + } + } + else + { + // same for image width + if (w > width) + { + scalePercent = width / w; + image.ScaleAbsolute(w * scalePercent, h * scalePercent); + } + } + document.Add(image); + document.Close(); + byte[] bytes = memoryStream.ToArray(); + memoryStream.Close(); + pdffile = aadhar.eSignWithOTP(txtaadhar.Text, txtotp.Text, bytes,"Puneet Kumar"); + + } + + } + + } + + + } + if (pdffile != null) + { + string status = ""; + string doc_Content = ""; + Dictionary jsonresult = JsonConvert.DeserializeObject> (pdffile); + status = jsonresult ["status"]; + doc_Content=jsonresult ["doc_content"]; + if (status == "True") + { + Literal1.Text = ""; + } + else + { + Literal1.Text = "

No pdf generated.

"; + } + + } + + } + catch(Exception ex) + { + Literal1.Text = ex.Message; + } + + } + protected void btngenerateotp_Click(object sender, EventArgs e) + { + try + { + string otpmessage = ""; + if (txtaadhar.Text != null && txtaadhar.Text != "") + { + otpmessage = aadhar.GetOTP(txtaadhar.Text); + } + else + { + EmptyAadharPanel.CssClass = "show"; + } + if (!string.IsNullOrEmpty(otpmessage)) + { + string status = ""; + string msg = ""; + Dictionary jsonresult = JsonConvert.DeserializeObject>(otpmessage); + status = jsonresult["status"]; + msg = jsonresult["msg"]; + if (status == "True") + { + SuccessMessagePanel.CssClass = "show"; + } + else + { + FailMessagePanel.CssClass = "show"; + } + + } + + } + catch (Exception ex) + { + } + } +} \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/eSignDG.aspx @@ -0,0 +1 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="eSignDG.aspx.cs" Inherits="eSignDG" %> \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/eSignDG.aspx.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; +using System.Collections.Specialized; +using iTextSharp.text; +using iTextSharp.text.pdf; + +public partial class eSignDG : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + try + { + if (Request.Form.Keys.Count > 0) + { + string aadhaar_no = Request.Form[0].ToString(); + string otp = Request.Form[1].ToString(); + string pdfbase64req = Request.Form[2].ToString(); + string mimetype = Request.Form[3].ToString(); + string signername = Request.Form[4].ToString(); + string pdfbase64 = pdfbase64req.ToString().Replace(" ", "+"); + //Response.Write("AadharNo:" + aadhaar_no); + //Response.Write("OTP:" + otp); + //Response.Write("PDF:" + pdfbase64req); + byte[] sPDFDecoded = Convert.FromBase64String(pdfbase64); + if (mimetype == "application/pdf") + { + Response.Write(signedpdf(aadhaar_no, otp, sPDFDecoded,signername)); + } + else + { + iTextSharp.text.Image image = iTextSharp.text.Image.GetInstance(sPDFDecoded); + float h = image.ScaledHeight; + float w = image.ScaledWidth; + float scalePercent; + using (System.IO.MemoryStream memoryStream = new System.IO.MemoryStream()) + { + Rectangle defaultPageSize = PageSize.A4; + using (Document document = new Document(defaultPageSize)) + { + PdfWriter.GetInstance(document, memoryStream); + document.Open(); + float width = defaultPageSize.Width + - document.RightMargin + - document.LeftMargin + ; + float height = defaultPageSize.Height + - document.TopMargin + - document.BottomMargin + ; + if (h > w) + { + // only scale image if it's height is __greater__ than + // the document's height, accounting for margins + if (h > height) + { + scalePercent = height / h; + image.ScaleAbsolute(w * scalePercent, h * scalePercent); + } + } + else + { + // same for image width + if (w > width) + { + scalePercent = width / w; + image.ScaleAbsolute(w * scalePercent, h * scalePercent); + } + } + document.Add(image); + document.Close(); + byte[] bytes = memoryStream.ToArray(); + memoryStream.Close(); + Response.Write(signedpdf(aadhaar_no, otp, bytes,signername)); + } + } + } + + } + else + { + Response.Write("GET Method not allowed. Please POST required parameters as per API specification Document."); + } + } + catch(Exception ex) + { + Response.Write(ex.Message); + } + } + + private string signedpdf(string strAdhaar, string strOTP, byte[] strPDFBase64String,string signer_name) + { + string strSignedpdf = ""; + Aadhaar aadhar = new Aadhaar(); + byte[] fileData = null; + fileData = strPDFBase64String; + strSignedpdf = aadhar.eSignWithOTP(strAdhaar, strOTP, fileData,signer_name); + return strSignedpdf; + } + + + +} \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/js/bootstrap.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.3.5 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under the MIT license + */ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.5",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.5",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.5",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.5",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.5",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.5",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.5",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); \ No newline at end of file --- /dev/null +++ b/AadhaarService/RemoteServices/js/jquery-1.11.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h; +if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),hb=/^\s+/,ib=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jb=/<([\w:]+)/,kb=/\s*$/g,rb={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:k.htmlSerialize?[0,"",""]:[1,"X
","
"]},sb=db(y),tb=sb.appendChild(y.createElement("div"));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xb(b).text=a.text,yb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&&Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,"script"),d.length>0&&zb(d,!i&&ub(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(jb.exec(f)||["",""])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&hb.test(f)&&p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f="table"!==i||kb.test(f)?""!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ub(p,"input"),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),"script"),g&&zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&zb(ub(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,""):void 0;if(!("string"!=typeof a||mb.test(a)||!k.htmlSerialize&&gb.test(a)||!k.leadingWhitespace&&hb.test(a)||rb[(jb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ib,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&nb.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ub(i,"script"),xb),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ub(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f>j;j++)d=g[j],ob.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qb,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(Cb||m("