code
stringlengths
4
1.01M
import org.junit.*; import play.mvc.*; import play.test.*; import static play.test.Helpers.*; import static org.junit.Assert.*; import static org.fluentlenium.core.filter.FilterConstructor.*; public class IntegrationTest { /** * add your integration test here * in this example we just check if the welcome page is being shown */ @Test public void test() { running(testServer(3333, fakeApplication(inMemoryDatabase())), HTMLUNIT, browser -> { browser.goTo("http://localhost:3333"); assertTrue(browser.pageSource().contains("Your new application is ready.")); }); } }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.common.errors; public class ReplicaNotAvailableException extends ApiException { private static final long serialVersionUID = 1L; public ReplicaNotAvailableException(String message) { super(message); } public ReplicaNotAvailableException(String message, Throwable cause) { super(message, cause); } public ReplicaNotAvailableException(Throwable cause) { super(cause); } }
<!DOCTYPE html> <!-- Copyright (c) 2012 Intel Corporation. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of works must retain the original copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the original copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors may be used to endorse or promote products derived from this work without specific prior written permission. THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Authors: Ge, WeiX A <weix.a.ge@intel.com> Li, HaoX <haox.li@intel.com> --> <html> <head> <title>WebSocket Test: websocket_WebSocket_OPEN_type</title> <link rel="author" title="Intel" href="http://www.intel.com" /> <link rel="help" href="http://www.w3.org/TR/2012/CR-websockets-20120920/#dom-websocket-open" /> <meta name="flags" content=" " /> <meta name="assert" content="Check if WebSocket.OPEN attribute is of type number" /> <script type="text/javascript" src="../resources/testharness.js"></script> <script type="text/javascript" src="../resources/testharnessreport.js"></script> <script type="text/javascript" src="support/websocket.js"></script> </head> <body> <div id="log"></div> <script type="text/javascript"> test(function () { var webSocket = CreateWebSocket(); assert_true("OPEN" in WebSocket, "WebSocket.OPEN attribute exists"); assert_equals(typeof webSocket.OPEN, "number", "WebSocket.OPEN attribute type"); }); </script> </body> </html>
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_ #define LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_ #include <pthread.h> #include "nacl_io/mount.h" #include "nacl_io/pepper_interface.h" #include "nacl_io/typed_mount_factory.h" #include "sdk_util/simple_lock.h" namespace nacl_io { class MountNode; class MountHtml5Fs : public Mount { public: virtual Error Access(const Path& path, int a_mode); virtual Error Open(const Path& path, int mode, ScopedMountNode* out_node); virtual Error Unlink(const Path& path); virtual Error Mkdir(const Path& path, int permissions); virtual Error Rmdir(const Path& path); virtual Error Remove(const Path& path); PP_Resource filesystem_resource() { return filesystem_resource_; } protected: MountHtml5Fs(); virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi); virtual void Destroy(); Error BlockUntilFilesystemOpen(); private: static void FilesystemOpenCallbackThunk(void* user_data, int32_t result); void FilesystemOpenCallback(int32_t result); PP_Resource filesystem_resource_; bool filesystem_open_has_result_; // protected by lock_. Error filesystem_open_error_; // protected by lock_. pthread_cond_t filesystem_open_cond_; sdk_util::SimpleLock filesysem_open_lock_; friend class TypedMountFactory<MountHtml5Fs>; }; } // namespace nacl_io #endif // LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_
// AFHTTPRequestOperationManager.h // Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #import <Foundation/Foundation.h> #import <SystemConfiguration/SystemConfiguration.h> #import <Availability.h> #if __IPHONE_OS_VERSION_MIN_REQUIRED #import <MobileCoreServices/MobileCoreServices.h> #else #import <CoreServices/CoreServices.h> #endif #import "AFHTTPRequestOperation.h" #import "AFURLResponseSerialization.h" #import "AFURLRequestSerialization.h" #import "AFSecurityPolicy.h" #import "AFNetworkReachabilityManager.h" #ifndef NS_DESIGNATED_INITIALIZER #if __has_attribute(objc_designated_initializer) #define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) #else #define NS_DESIGNATED_INITIALIZER #endif #endif /** `AFHTTPRequestOperationManager` encapsulates the common patterns of communicating with a web application over HTTP, including request creation, response serialization, network reachability monitoring, and security, as well as request operation management. ## Subclassing Notes Developers targeting iOS 7 or Mac OS X 10.9 or later that deal extensively with a web service are encouraged to subclass `AFHTTPSessionManager`, providing a class method that returns a shared singleton object on which authentication and other configuration can be shared across the application. For developers targeting iOS 6 or Mac OS X 10.8 or earlier, `AFHTTPRequestOperationManager` may be used to similar effect. ## Methods to Override To change the behavior of all request operation construction for an `AFHTTPRequestOperationManager` subclass, override `HTTPRequestOperationWithRequest:success:failure`. ## Serialization Requests created by an HTTP client will contain default headers and encode parameters according to the `requestSerializer` property, which is an object conforming to `<AFURLRequestSerialization>`. Responses received from the server are automatically validated and serialized by the `responseSerializers` property, which is an object conforming to `<AFURLResponseSerialization>` ## URL Construction Using Relative Paths For HTTP convenience methods, the request serializer constructs URLs from the path relative to the `-baseURL`, using `NSURL +URLWithString:relativeToURL:`, when provided. If `baseURL` is `nil`, `path` needs to resolve to a valid `NSURL` object using `NSURL +URLWithString:`. Below are a few examples of how `baseURL` and relative paths interact: NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"]; [NSURL URLWithString:@"foo" relativeToURL:baseURL]; // http://example.com/v1/foo [NSURL URLWithString:@"foo?bar=baz" relativeToURL:baseURL]; // http://example.com/v1/foo?bar=baz [NSURL URLWithString:@"/foo" relativeToURL:baseURL]; // http://example.com/foo [NSURL URLWithString:@"foo/" relativeToURL:baseURL]; // http://example.com/v1/foo [NSURL URLWithString:@"/foo/" relativeToURL:baseURL]; // http://example.com/foo/ [NSURL URLWithString:@"http://example2.com/" relativeToURL:baseURL]; // http://example2.com/ Also important to note is that a trailing slash will be added to any `baseURL` without one. This would otherwise cause unexpected behavior when constructing URLs using paths without a leading slash. ## Network Reachability Monitoring Network reachability status and change monitoring is available through the `reachabilityManager` property. Applications may choose to monitor network reachability conditions in order to prevent or suspend any outbound requests. See `AFNetworkReachabilityManager` for more details. ## NSSecureCoding & NSCopying Caveats `AFHTTPRequestOperationManager` conforms to the `NSSecureCoding` and `NSCopying` protocols, allowing operations to be archived to disk, and copied in memory, respectively. There are a few minor caveats to keep in mind, however: - Archives and copies of HTTP clients will be initialized with an empty operation queue. - NSSecureCoding cannot serialize / deserialize block properties, so an archive of an HTTP client will not include any reachability callback block that may be set. */ @interface AFHTTPRequestOperationManager : NSObject <NSSecureCoding, NSCopying> /** The URL used to monitor reachability, and construct requests from relative paths in methods like `requestWithMethod:URLString:parameters:`, and the `GET` / `POST` / et al. convenience methods. */ @property (readonly, nonatomic, strong) NSURL *baseURL; /** Requests created with `requestWithMethod:URLString:parameters:` & `multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:` are constructed with a set of default headers using a parameter serialization specified by this property. By default, this is set to an instance of `AFHTTPRequestSerializer`, which serializes query string parameters for `GET`, `HEAD`, and `DELETE` requests, or otherwise URL-form-encodes HTTP message bodies. @warning `requestSerializer` must not be `nil`. */ @property (nonatomic, strong) AFHTTPRequestSerializer <AFURLRequestSerialization> * requestSerializer; /** Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to a JSON serializer, which serializes data from responses with a `application/json` MIME type, and falls back to the raw data object. The serializer validates the status code to be in the `2XX` range, denoting success. If the response serializer generates an error in `-responseObjectForResponse:data:error:`, the `failure` callback of the session task or request operation will be executed; otherwise, the `success` callback will be executed. @warning `responseSerializer` must not be `nil`. */ @property (nonatomic, strong) AFHTTPResponseSerializer <AFURLResponseSerialization> * responseSerializer; /** The operation queue on which request operations are scheduled and run. */ @property (nonatomic, strong) NSOperationQueue *operationQueue; ///------------------------------- /// @name Managing URL Credentials ///------------------------------- /** Whether request operations should consult the credential storage for authenticating the connection. `YES` by default. @see AFURLConnectionOperation -shouldUseCredentialStorage */ @property (nonatomic, assign) BOOL shouldUseCredentialStorage; /** The credential used by request operations for authentication challenges. @see AFURLConnectionOperation -credential */ @property (nonatomic, strong) NSURLCredential *credential; ///------------------------------- /// @name Managing Security Policy ///------------------------------- /** The security policy used by created request operations to evaluate server trust for secure connections. `AFHTTPRequestOperationManager` uses the `defaultPolicy` unless otherwise specified. */ @property (nonatomic, strong) AFSecurityPolicy *securityPolicy; ///------------------------------------ /// @name Managing Network Reachability ///------------------------------------ /** The network reachability manager. `AFHTTPRequestOperationManager` uses the `sharedManager` by default. */ @property (readwrite, nonatomic, strong) AFNetworkReachabilityManager *reachabilityManager; ///------------------------------- /// @name Managing Callback Queues ///------------------------------- /** The dispatch queue for the `completionBlock` of request operations. If `NULL` (default), the main queue is used. */ #if OS_OBJECT_HAVE_OBJC_SUPPORT @property (nonatomic, strong) dispatch_queue_t completionQueue; #else @property (nonatomic, assign) dispatch_queue_t completionQueue; #endif /** The dispatch group for the `completionBlock` of request operations. If `NULL` (default), a private dispatch group is used. */ #if OS_OBJECT_HAVE_OBJC_SUPPORT @property (nonatomic, strong) dispatch_group_t completionGroup; #else @property (nonatomic, assign) dispatch_group_t completionGroup; #endif ///--------------------------------------------- /// @name Creating and Initializing HTTP Clients ///--------------------------------------------- /** Creates and returns an `AFHTTPRequestOperationManager` object. */ + (instancetype)manager; /** Initializes an `AFHTTPRequestOperationManager` object with the specified base URL. This is the designated initializer. @param url The base URL for the HTTP client. @return The newly-initialized HTTP client */ - (instancetype)initWithBaseURL:(NSURL *)url NS_DESIGNATED_INITIALIZER; ///--------------------------------------- /// @name Managing HTTP Request Operations ///--------------------------------------- /** Creates an `AFHTTPRequestOperation`, and sets the response serializers to that of the HTTP client. @param request The request object to be loaded asynchronously during execution of the operation. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the created request operation and the object created from the response data of request. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes two arguments:, the created request operation and the `NSError` object describing the network or parsing error that occurred. */ - (AFHTTPRequestOperation *)HTTPRequestOperationWithRequest:(NSURLRequest *)request success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; ///--------------------------- /// @name Making HTTP Requests ///--------------------------- /** Creates and runs an `AFHTTPRequestOperation` with a `GET` request. @param URLString The URL string used to create the request URL. @param parameters The parameters to be encoded according to the client request serializer. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. @see -HTTPRequestOperationWithRequest:success:failure: */ - (AFHTTPRequestOperation *)GET:(NSString *)URLString parameters:(id)parameters success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; /** Creates and runs an `AFHTTPRequestOperation` with a `HEAD` request. @param URLString The URL string used to create the request URL. @param parameters The parameters to be encoded according to the client request serializer. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes a single arguments: the request operation. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. @see -HTTPRequestOperationWithRequest:success:failure: */ - (AFHTTPRequestOperation *)HEAD:(NSString *)URLString parameters:(id)parameters success:(void (^)(AFHTTPRequestOperation *operation))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; /** Creates and runs an `AFHTTPRequestOperation` with a `POST` request. @param URLString The URL string used to create the request URL. @param parameters The parameters to be encoded according to the client request serializer. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. @see -HTTPRequestOperationWithRequest:success:failure: */ - (AFHTTPRequestOperation *)POST:(NSString *)URLString parameters:(id)parameters success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; /** Creates and runs an `AFHTTPRequestOperation` with a multipart `POST` request. @param URLString The URL string used to create the request URL. @param parameters The parameters to be encoded according to the client request serializer. @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. @see -HTTPRequestOperationWithRequest:success:failure: */ - (AFHTTPRequestOperation *)POST:(NSString *)URLString parameters:(id)parameters constructingBodyWithBlock:(void (^)(id <AFMultipartFormData> formData))block success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; /** Creates and runs an `AFHTTPRequestOperation` with a `PUT` request. @param URLString The URL string used to create the request URL. @param parameters The parameters to be encoded according to the client request serializer. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. @see -HTTPRequestOperationWithRequest:success:failure: */ - (AFHTTPRequestOperation *)PUT:(NSString *)URLString parameters:(id)parameters success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; /** Creates and runs an `AFHTTPRequestOperation` with a `PATCH` request. @param URLString The URL string used to create the request URL. @param parameters The parameters to be encoded according to the client request serializer. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. @see -HTTPRequestOperationWithRequest:success:failure: */ - (AFHTTPRequestOperation *)PATCH:(NSString *)URLString parameters:(id)parameters success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; /** Creates and runs an `AFHTTPRequestOperation` with a `DELETE` request. @param URLString The URL string used to create the request URL. @param parameters The parameters to be encoded according to the client request serializer. @param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes two arguments: the request operation, and the response object created by the client response serializer. @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the request operation and the error describing the network or parsing error that occurred. @see -HTTPRequestOperationWithRequest:success:failure: */ - (AFHTTPRequestOperation *)DELETE:(NSString *)URLString parameters:(id)parameters success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure; @end
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css"> <link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css"> <script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"> </script> <script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"> </script> <title>KeyTable examples - Spreadsheet like keyboard navigation for DataTables</title> </head> <body class="dt-example"> <div class="container"> <section> <h1>KeyTable example <span>Spreadsheet like keyboard navigation for DataTables</span></h1> <div class="info"> <p>KeyTable provides Excel like cell navigation on any table. Events (focus, blur, action etc) can be assigned to individual cells, columns, rows or all cells.</p> </div> </section> </div> <section> <div class="footer"> <div class="gradient"></div> <div class="liner"> <div class="toc"> <div class="toc-group"> <h3><a href="./initialisation/index.html">Initialisation</a></h3> <ul class="toc"> <li> <a href="./initialisation/simple.html">Basic initialisation</a> </li> <li> <a href="./initialisation/events.html">Events</a> </li> <li> <a href="./initialisation/scrolling.html">Scrolling table</a> </li> <li> <a href="./initialisation/scroller.html">Scroller integration</a> </li> <li> <a href="./initialisation/server-side.html">Server-side processing</a> </li> <li> <a href="./initialisation/stateSave.html">State saving</a> </li> <li> <a href="./initialisation/blurable.html">Keep focus (no blur)</a> </li> </ul> </div> <div class="toc-group"> <h3><a href="./styling/index.html">Styling</a></h3> <ul class="toc"> <li> <a href="./styling/focusStyle.html">Focus cell custom styling</a> </li> <li> <a href="./styling/bootstrap.html">Bootstrap styling</a> </li> <li> <a href="./styling/semanticui.html">Semantic UI styling</a> </li> <li> <a href="./styling/foundation.html">Foundation styling</a> </li> <li> <a href="./styling/bootstrap4.html">Bootstrap 4 styling</a> </li> <li> <a href="./styling/jqueryui.html">jQuery UI styling</a> </li> </ul> </div> </div> <div class="epilogue"> <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br> Additionally, there are a wide range of <a href="http://www.datatables.net/extensions">extensions</a> and <a href= "http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p> <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2016<br> DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p> </div> </div> </div> </section> </body> </html>
<?php /* * This file is part of Respect/Validation. * * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net> * * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; /** * Validator for Serbia subdivision code. * * ISO 3166-1 alpha-2: RS * * @link http://www.geonames.org/RS/administrative-division-serbia.html */ class RsSubdivisionCode extends AbstractSearcher { public $haystack = [ 'KM', // Kosovo 'VO', // Vojvodina '00', // Beograd '01', // Severnobački okrug '02', // Srednjebanatski okrug '03', // Severnobanatski okrug '04', // Južnobanatski okrug '05', // Zapadno-Bački Okrug '06', // Južnobački okrug '07', // Srem '08', // Mačvanski okrug '09', // Kolubarski okrug '10', // Podunavski okrug '11', // Braničevski okrug '12', // Šumadija '13', // Pomoravski okrug '14', // Borski okrug '15', // Zaječar '16', // Zlatibor '17', // Moravički okrug '18', // Raški okrug '19', // Rasinski okrug '20', // Nišavski okrug '21', // Toplica '22', // Pirotski okrug '23', // Jablanički okrug '24', // Pčinjski okrug '25', // Kosovski okrug '26', // Pećki okrug '27', // Prizrenski okrug '28', // Kosovsko-Mitrovački okrug '29', // Kosovsko-Pomoravski okrug ]; public $compareIdentical = true; }
ej.addCulture( "az-Latn-AZ", { name: "az-Latn-AZ", englishName: "Azerbaijani (Latin, Azerbaijan)", nativeName: "Azərbaycan dili (Azərbaycan)", language: "az-Latn", numberFormat: { ",": " ", ".": ",", percent: { pattern: ["-n%","n%"], ",": " ", ".": "," }, currency: { pattern: ["-n $","n $"], ",": " ", ".": ",", symbol: "manat" } }, calendars: { standard: { "/": ".", firstDay: 1, days: { names: ["bazar","Bazar ertəsi","çərşənbə axşamı","çərşənbə","Cümə axşamı","Cümə","şənbə"], namesAbbr: ["B","Be","Ça","Ç","Ca","C","Ş"], namesShort: ["B","Be","Ça","Ç","Ca","C","Ş"] }, months: { names: ["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""], namesAbbr: ["Yan","Fev","Mar","Apr","May","İyun","İyul","Avg","Sen","Okt","Noy","Dek",""] }, AM: null, PM: null, patterns: { d: "dd.MM.yyyy", D: "dd MMMM yyyy'-cü il'", t: "HH:mm", T: "HH:mm:ss", f: "dd MMMM yyyy'-cü il' HH:mm", F: "dd MMMM yyyy'-cü il' HH:mm:ss", M: "d MMMM" } }, Hijri: { name: "Hijri", "/": ".", firstDay: 1, days: { names: ["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"], namesAbbr: ["B","Be","Ça","Ç","Ca","C","Ş"], namesShort: ["B","Be","Ça","Ç","Ca","C","Ş"] }, months: { names: ["Məhərrəm","Səfər","Rəbiüləvvəl","Rəbiülaxır","Cəmadiyələvvəl","Cəmadiyəlaxır","Rəcəb","Şaban","Ramazan","Şəvval","Zilqədə","Zilhiccə",""], namesAbbr: ["Məhərrəm","Səfər","Rəbiüləvvəl","Rəbiülaxır","Cəmadiyələvvəl","Cəmadiyəlaxır","Rəcəb","Şaban","Ramazan","Şəvval","Zilqədə","Zilhiccə",""] }, AM: null, PM: null, twoDigitYearMax: 1451, patterns: { d: "dd.MM.yyyy", D: "d MMMM yyyy", t: "HH:mm", T: "HH:mm:ss", f: "d MMMM yyyy HH:mm", F: "d MMMM yyyy HH:mm:ss", M: "d MMMM" }, convert: { // Adapted to Script from System.Globalization.HijriCalendar ticks1970: 62135596800000, // number of days leading up to each month monthDays: [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355], minDate: -42521673600000, maxDate: 253402300799999, // The number of days to add or subtract from the calendar to accommodate the variances // in the start and the end of Ramadan and to accommodate the date difference between // countries/regions. May be dynamically adjusted based on user preference, but should // remain in the range of -2 to 2, inclusive. hijriAdjustment: 0, toGregorian: function(hyear, hmonth, hday) { var daysSinceJan0101 = this.daysToYear(hyear) + this.monthDays[hmonth] + hday - 1 - this.hijriAdjustment; // 86400000 = ticks per day var gdate = new Date(daysSinceJan0101 * 86400000 - this.ticks1970); // adjust for timezone, because we are interested in the gregorian date for the same timezone // but ticks in javascript is always from GMT, unlike the server were ticks counts from the base // date in the current timezone. gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset()); return gdate; }, fromGregorian: function(gdate) { if ((gdate < this.minDate) || (gdate > this.maxDate)) return null; var ticks = this.ticks1970 + (gdate-0) - gdate.getTimezoneOffset() * 60000, daysSinceJan0101 = Math.floor(ticks / 86400000) + 1 + this.hijriAdjustment; // very particular formula determined by someone smart, adapted from the server-side implementation. // it approximates the hijri year. var hday, hmonth, hyear = Math.floor(((daysSinceJan0101 - 227013) * 30) / 10631) + 1, absDays = this.daysToYear(hyear), daysInYear = this.isLeapYear(hyear) ? 355 : 354; // hyear is just approximate, it may need adjustment up or down by 1. if (daysSinceJan0101 < absDays) { hyear--; absDays -= daysInYear; } else if (daysSinceJan0101 === absDays) { hyear--; absDays = this.daysToYear(hyear); } else { if (daysSinceJan0101 > (absDays + daysInYear)) { absDays += daysInYear; hyear++; } } // determine month by looking at how many days into the hyear we are // monthDays contains the number of days up to each month. hmonth = 0; var daysIntoYear = daysSinceJan0101 - absDays; while (hmonth <= 11 && daysIntoYear > this.monthDays[hmonth]) { hmonth++; } hmonth--; hday = daysIntoYear - this.monthDays[hmonth]; return [hyear, hmonth, hday]; }, daysToYear: function(year) { // calculates how many days since Jan 1, 0001 var yearsToYear30 = Math.floor((year - 1) / 30) * 30, yearsInto30 = year - yearsToYear30 - 1, days = Math.floor((yearsToYear30 * 10631) / 30) + 227013; while (yearsInto30 > 0) { days += (this.isLeapYear(yearsInto30) ? 355 : 354); yearsInto30--; } return days; }, isLeapYear: function(year) { return ((((year * 11) + 14) % 30) < 11); } } } } });
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="refresh" content="0;URL=../../../../../libc/type.clock_t.html"> </head> <body> <p>Redirecting to <a href="../../../../../libc/type.clock_t.html">../../../../../libc/type.clock_t.html</a>...</p> <script>location.replace("../../../../../libc/type.clock_t.html" + location.search + location.hash);</script> </body> </html>
/* Norwegian initialisation for the jQuery UI date picker plugin. */ /* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ jQuery(function($){ $.datepicker.regional['no'] = { closeText: 'Lukk', prevText: '&laquo;Forrige', nextText: 'Neste&raquo;', currentText: 'I dag', monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'], monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'], dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'], dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'], dayNamesMin: ['sø','ma','ti','on','to','fr','lø'], weekHeader: 'Uke', dateFormat: 'dd.mm.yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: '' }; $.datepicker.setDefaults($.datepicker.regional['no']); });
<?php /** * @package Joomla.Plugin * @subpackage System.p3p * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Joomla! P3P Header Plugin. * * @since 1.6 * @deprecate 4.0 Obsolete */ class PlgSystemP3p extends JPlugin { /** * After initialise. * * @return void * * @since 1.6 * @deprecate 4.0 Obsolete */ public function onAfterInitialise() { // Get the header. $header = $this->params->get('header', 'NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'); $header = trim($header); // Bail out on empty header (why would anyone do that?!). if (empty($header)) { return; } // Replace any existing P3P headers in the response. JFactory::getApplication()->setHeader('P3P', 'CP="' . $header . '"', true); } }
<?php /** * @package Joomla.Libraries * @subpackage Editor * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * JEditor class to handle WYSIWYG editors * * @package Joomla.Libraries * @subpackage Editor * @since 1.5 */ class JEditor extends JObject { /** * An array of Observer objects to notify * * @var array * @since 1.5 */ protected $_observers = array(); /** * The state of the observable object * * @var mixed * @since 1.5 */ protected $_state = null; /** * A multi dimensional array of [function][] = key for observers * * @var array * @since 1.5 */ protected $_methods = array(); /** * Editor Plugin object * * @var object * @since 1.5 */ protected $_editor = null; /** * Editor Plugin name * * @var string * @since 1.5 */ protected $_name = null; /** * Object asset * * @var string * @since 1.6 */ protected $asset = null; /** * Object author * * @var string * @since 1.6 */ protected $author = null; /** * @var array JEditor instances container. * @since 2.5 */ protected static $instances = array(); /** * Constructor * * @param string $editor The editor name */ public function __construct($editor = 'none') { $this->_name = $editor; } /** * Returns the global Editor object, only creating it * if it doesn't already exist. * * @param string $editor The editor to use. * * @return JEditor The Editor object. * * @since 1.5 */ public static function getInstance($editor = 'none') { $signature = serialize($editor); if (empty(self::$instances[$signature])) { self::$instances[$signature] = new JEditor($editor); } return self::$instances[$signature]; } /** * Get the state of the JEditor object * * @return mixed The state of the object. * * @since 1.5 */ public function getState() { return $this->_state; } /** * Attach an observer object * * @param object $observer An observer object to attach * * @return void * * @since 1.5 */ public function attach($observer) { if (is_array($observer)) { if (!isset($observer['handler']) || !isset($observer['event']) || !is_callable($observer['handler'])) { return; } // Make sure we haven't already attached this array as an observer foreach ($this->_observers as $check) { if (is_array($check) && $check['event'] == $observer['event'] && $check['handler'] == $observer['handler']) { return; } } $this->_observers[] = $observer; end($this->_observers); $methods = array($observer['event']); } else { if (!($observer instanceof JEditor)) { return; } // Make sure we haven't already attached this object as an observer $class = get_class($observer); foreach ($this->_observers as $check) { if ($check instanceof $class) { return; } } $this->_observers[] = $observer; $methods = array_diff(get_class_methods($observer), get_class_methods('JPlugin')); } $key = key($this->_observers); foreach ($methods as $method) { $method = strtolower($method); if (!isset($this->_methods[$method])) { $this->_methods[$method] = array(); } $this->_methods[$method][] = $key; } } /** * Detach an observer object * * @param object $observer An observer object to detach. * * @return boolean True if the observer object was detached. * * @since 1.5 */ public function detach($observer) { $retval = false; $key = array_search($observer, $this->_observers); if ($key !== false) { unset($this->_observers[$key]); $retval = true; foreach ($this->_methods as &$method) { $k = array_search($key, $method); if ($k !== false) { unset($method[$k]); } } } return $retval; } /** * Initialise the editor * * @return void * * @since 1.5 */ public function initialise() { // Check if editor is already loaded if (is_null(($this->_editor))) { return; } $args['event'] = 'onInit'; $return = ''; $results[] = $this->_editor->update($args); foreach ($results as $result) { if (trim($result)) { // @todo remove code: $return .= $result; $return = $result; } } $document = JFactory::getDocument(); $document->addCustomTag($return); } /** * Display the editor area. * * @param string $name The control name. * @param string $html The contents of the text area. * @param string $width The width of the text area (px or %). * @param string $height The height of the text area (px or %). * @param integer $col The number of columns for the textarea. * @param integer $row The number of rows for the textarea. * @param boolean $buttons True and the editor buttons will be displayed. * @param string $id An optional ID for the textarea (note: since 1.6). If not supplied the name is used. * @param string $asset The object asset * @param object $author The author. * @param array $params Associative array of editor parameters. * * @return string * * @since 1.5 */ public function display($name, $html, $width, $height, $col, $row, $buttons = true, $id = null, $asset = null, $author = null, $params = array()) { $this->asset = $asset; $this->author = $author; $this->_loadEditor($params); // Check whether editor is already loaded if (is_null(($this->_editor))) { return; } // Backwards compatibility. Width and height should be passed without a semicolon from now on. // If editor plugins need a unit like "px" for CSS styling, they need to take care of that $width = str_replace(';', '', $width); $height = str_replace(';', '', $height); $return = null; $args['name'] = $name; $args['content'] = $html; $args['width'] = $width; $args['height'] = $height; $args['col'] = $col; $args['row'] = $row; $args['buttons'] = $buttons; $args['id'] = $id ? $id : $name; $args['event'] = 'onDisplay'; $results[] = $this->_editor->update($args); foreach ($results as $result) { if (trim($result)) { $return .= $result; } } return $return; } /** * Save the editor content * * @param string $editor The name of the editor control * * @return string * * @since 1.5 */ public function save($editor) { $this->_loadEditor(); // Check whether editor is already loaded if (is_null(($this->_editor))) { return; } $args[] = $editor; $args['event'] = 'onSave'; $return = ''; $results[] = $this->_editor->update($args); foreach ($results as $result) { if (trim($result)) { $return .= $result; } } return $return; } /** * Get the editor contents * * @param string $editor The name of the editor control * * @return string * * @since 1.5 */ public function getContent($editor) { $this->_loadEditor(); $args['name'] = $editor; $args['event'] = 'onGetContent'; $return = ''; $results[] = $this->_editor->update($args); foreach ($results as $result) { if (trim($result)) { $return .= $result; } } return $return; } /** * Set the editor contents * * @param string $editor The name of the editor control * @param string $html The contents of the text area * * @return string * * @since 1.5 */ public function setContent($editor, $html) { $this->_loadEditor(); $args['name'] = $editor; $args['html'] = $html; $args['event'] = 'onSetContent'; $return = ''; $results[] = $this->_editor->update($args); foreach ($results as $result) { if (trim($result)) { $return .= $result; } } return $return; } /** * Get the editor extended buttons (usually from plugins) * * @param string $editor The name of the editor. * @param mixed $buttons Can be boolean or array, if boolean defines if the buttons are * displayed, if array defines a list of buttons not to show. * * @return array * * @since 1.5 */ public function getButtons($editor, $buttons = true) { $result = array(); if (is_bool($buttons) && !$buttons) { return $result; } // Get plugins $plugins = JPluginHelper::getPlugin('editors-xtd'); foreach ($plugins as $plugin) { if (is_array($buttons) && in_array($plugin->name, $buttons)) { continue; } JPluginHelper::importPlugin('editors-xtd', $plugin->name, false); $className = 'plgButton' . $plugin->name; if (class_exists($className)) { $plugin = new $className($this, (array) $plugin); } // Try to authenticate if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author)) { $result[] = $temp; } } return $result; } /** * Load the editor * * @param array $config Associative array of editor config paramaters * * @return mixed * * @since 1.5 */ protected function _loadEditor($config = array()) { // Check whether editor is already loaded if (!is_null(($this->_editor))) { return; } // Build the path to the needed editor plugin $name = JFilterInput::getInstance()->clean($this->_name, 'cmd'); $path = JPATH_PLUGINS . '/editors/' . $name . '.php'; if (!is_file($path)) { $path = JPATH_PLUGINS . '/editors/' . $name . '/' . $name . '.php'; if (!is_file($path)) { JLog::add(JText::_('JLIB_HTML_EDITOR_CANNOT_LOAD'), JLog::WARNING, 'jerror'); return false; } } // Require plugin file require_once $path; // Get the plugin $plugin = JPluginHelper::getPlugin('editors', $this->_name); $params = new JRegistry; $params->loadString($plugin->params); $params->loadArray($config); $plugin->params = $params; // Build editor plugin classname $name = 'plgEditor' . $this->_name; if ($this->_editor = new $name($this, (array) $plugin)) { // Load plugin parameters $this->initialise(); JPluginHelper::importPlugin('editors-xtd'); } } }
<?php /** * @package Joomla.Administrator * @subpackage com_finder * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Indexer model class for Finder. * * @since 2.5 */ class FinderModelIndexer extends JModelLegacy { }
/* Test the `vbics8' ARM Neon intrinsic. */ /* This file was autogenerated by neon-testgen. */ /* { dg-do assemble } */ /* { dg-require-effective-target arm_neon_ok } */ /* { dg-options "-save-temps -O2" } */ /* { dg-add-options arm_neon } */ #include "arm_neon.h" int8x8_t out_int8x8_t; int8x8_t arg0_int8x8_t; int8x8_t arg1_int8x8_t; void test_vbics8 (void) { out_int8x8_t = vbic_s8 (arg0_int8x8_t, arg1_int8x8_t); } /* { dg-final { scan-assembler "vbic\[ \]+\[dD\]\[0-9\]+, \[dD\]\[0-9\]+, \[dD\]\[0-9\]+!?\(\[ \]+@\[a-zA-Z0-9 \]+\)?\n" } } */ /* { dg-final { cleanup-saved-temps } } */
// x86.cpp #include "StdAfx.h" #include "x86.h" UInt32 CBCJ_x86_Encoder::SubFilter(Byte *data, UInt32 size) { return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 1); } UInt32 CBCJ_x86_Decoder::SubFilter(Byte *data, UInt32 size) { return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 0); }
<!doctype html> <meta name=timeout content=long> <script src=/resources/testharness.js></script> <script src=/resources/testharnessreport.js></script> <script src=resources/encodings.js></script> <div id=log></div> <script> var singleByteEncodings = encodings_table.filter(function(group) { return group.heading === "Legacy single-byte encodings"; })[0].encodings, // https://encoding.spec.whatwg.org/indexes.json singleByteIndexes = { "IBM866":[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160], "ISO-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729], "ISO-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729], "ISO-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729], "ISO-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119], "ISO-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null], "ISO-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null], "ISO-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null], "ISO-8859-10":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,254,312], "ISO-8859-13":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,8217], "ISO-8859-14":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255], "ISO-8859-15":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255], "ISO-8859-16":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255], "KOI8-R":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,1025,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066], "KOI8-U":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,1108,9556,1110,1111,9559,9560,9561,9562,9563,1169,9565,9566,9567,9568,9569,1025,1028,9571,1030,1031,9574,9575,9576,9577,9578,1168,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066], "macintosh":[196,197,199,201,209,214,220,225,224,226,228,227,229,231,233,232,234,235,237,236,238,239,241,243,242,244,246,245,250,249,251,252,8224,176,162,163,167,8226,182,223,174,169,8482,180,168,8800,198,216,8734,177,8804,8805,165,181,8706,8721,8719,960,8747,170,186,937,230,248,191,161,172,8730,402,8776,8710,171,187,8230,160,192,195,213,338,339,8211,8212,8220,8221,8216,8217,247,9674,255,376,8260,8364,8249,8250,64257,64258,8225,183,8218,8222,8240,194,202,193,203,200,205,206,207,204,211,212,63743,210,218,219,217,305,710,732,175,728,729,730,184,733,731,711], "windows-874":[8364,129,130,131,132,8230,134,135,136,137,138,139,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,153,154,155,156,157,158,159,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,null,null,null,null,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,null,null,null,null], "windows-1250":[8364,129,8218,131,8222,8230,8224,8225,136,8240,352,8249,346,356,381,377,144,8216,8217,8220,8221,8226,8211,8212,152,8482,353,8250,347,357,382,378,160,711,728,321,164,260,166,167,168,169,350,171,172,173,174,379,176,177,731,322,180,181,182,183,184,261,351,187,317,733,318,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729], "windows-1251":[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,152,8482,1113,8250,1114,1116,1115,1119,160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031,176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103], "windows-1252":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255], "windows-1253":[8364,129,8218,402,8222,8230,8224,8225,136,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,157,158,159,160,901,902,163,164,165,166,167,168,169,null,171,172,173,174,8213,176,177,178,179,900,181,182,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null], "windows-1254":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255], "windows-1255":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,156,157,158,159,160,161,162,163,8362,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,191,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1520,1521,1522,1523,1524,null,null,null,null,null,null,null,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null], "windows-1256":[8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672,1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722,160,1548,162,163,164,165,166,167,168,169,1726,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,1563,187,188,189,190,1567,1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,215,1591,1592,1593,1594,1600,1601,1602,1603,224,1604,226,1605,1606,1607,1608,231,232,233,234,235,1609,1610,238,239,1611,1612,1613,1614,244,1615,1616,247,1617,249,1618,251,252,8206,8207,1746], "windows-1257":[8364,129,8218,131,8222,8230,8224,8225,136,8240,138,8249,140,168,711,184,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,175,731,159,160,null,162,163,164,null,166,167,216,169,342,171,172,173,174,198,176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,729], "windows-1258":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207,272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223,224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239,273,241,803,243,244,417,246,247,248,249,250,251,252,432,8363,255], "x-mac-cyrillic":[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,8224,176,1168,163,167,8226,182,1030,174,169,8482,1026,1106,8800,1027,1107,8734,177,8804,8805,1110,181,1169,1032,1028,1108,1031,1111,1033,1113,1034,1114,1112,1029,172,8730,402,8776,8710,171,187,8230,160,1035,1115,1036,1116,1109,8211,8212,8220,8221,8216,8217,247,8222,1038,1118,1039,1119,8470,1025,1105,1103,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,8364] } // For TextDecoder tests var buffer = new ArrayBuffer(255), view = new Uint8Array(buffer) for(var i = 0, l = view.byteLength; i < l; i++) { view[i] = i } // For XMLHttpRequest and TextDecoder tests function assert_decode(data, encoding) { if(encoding == "ISO-8859-8-I") { encoding = "ISO-8859-8" } for(var i = 0, l = data.length; i < l; i++) { var cp = data.charCodeAt(i), expectedCp = (i < 0x80) ? i : singleByteIndexes[encoding][i-0x80] if(expectedCp == null) { expectedCp = 0xFFFD } assert_equals(cp, expectedCp, encoding + ":" + i) } } // Setting up all the tests for(var i = 0, l = singleByteEncodings.length; i < l; i++) { var encoding = singleByteEncodings[i] for(var ii = 0, ll = encoding.labels.length; ii < ll; ii++) { var label = encoding.labels[ii] async_test(function(t) { var xhr = new XMLHttpRequest, name = encoding.name // need scoped variable xhr.open("GET", "resources/single-byte-raw.py?label=" + label) xhr.send(null) xhr.onload = t.step_func_done(function() { assert_decode(xhr.responseText, name) }) }, encoding.name + ": " + label + " (XMLHttpRequest)") test(function() { var d = new TextDecoder(label), data = d.decode(view) assert_equals(d.encoding, encoding.name.toLowerCase()) // ASCII names only, so safe assert_decode(data, encoding.name) }, encoding.name + ": " + label + " (TextDecoder)") async_test(function(t) { var frame = document.createElement("iframe"), name = encoding.name; frame.src = "resources/text-plain-charset.py?label=" + label frame.onload = t.step_func_done(function() { assert_equals(frame.contentDocument.characterSet, name) assert_equals(frame.contentDocument.inputEncoding, name) }) t.add_cleanup(function() { document.body.removeChild(frame) }) document.body.appendChild(frame) }, encoding.name + ": " + label + " (document.characterSet and document.inputEncoding)") } } </script>
package net.londatiga.android; import android.graphics.drawable.Drawable; import android.view.View; import android.view.View.OnClickListener; /** * Action item, displayed as menu with icon and text. * * @author Lorensius. W. L. T * */ public class ActionItem { private Drawable icon; private String title; private OnClickListener listener; /** * Constructor */ public ActionItem() { } /** * Constructor * * @param icon {@link Drawable} action icon */ public ActionItem(Drawable icon) { this.icon = icon; } /** * Set action title * * @param title action title */ public void setTitle(String title) { this.title = title; } /** * Get action title * * @return action title */ public String getTitle() { return this.title; } /** * Set action icon * * @param icon {@link Drawable} action icon */ public void setIcon(Drawable icon) { this.icon = icon; } /** * Get action icon * * @return {@link Drawable} action icon */ public Drawable getIcon() { return this.icon; } /** * Set on click listener * * @param listener on click listener {@link View.OnClickListener} */ public void setOnClickListener(OnClickListener listener) { this.listener = listener; } /** * Get on click listener * * @return on click listener {@link View.OnClickListener} */ public OnClickListener getListener() { return this.listener; } }
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Text; using Org.Apache.REEF.Common.Avro; using Org.Apache.REEF.Utilities.Logging; namespace Org.Apache.REEF.Common.Evaluator { public sealed class DriverInformation { private static readonly Logger LOGGER = Logger.GetLogger(typeof(DriverInformation)); private readonly string _rid; private readonly string _startTime; private readonly string _nameServerId; private readonly IList<AvroReefServiceInfo> _services; public DriverInformation(string rid, string startTime, IList<AvroReefServiceInfo> services) { _rid = rid; _startTime = startTime; _services = services; if (_services == null) { LOGGER.Log(Level.Warning, "no services information from driver."); } else { AvroReefServiceInfo nameServerInfo = _services.FirstOrDefault( s => s.serviceName.Equals(Constants.NameServerServiceName, StringComparison.OrdinalIgnoreCase)); if (nameServerInfo != null) { _nameServerId = nameServerInfo.serviceInfo; } } } public string DriverRemoteIdentifier { get { return _rid; } } public string DriverStartTime { get { return _startTime; } } public string NameServerId { get { return _nameServerId; } } public static DriverInformation GetDriverInformationFromHttp(Uri queryUri) { while (queryUri != null) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(queryUri); request.AllowAutoRedirect = true; request.KeepAlive = false; request.ContentType = "text/html"; queryUri = null; try { using (HttpWebResponse webResponse = (HttpWebResponse)request.GetResponse()) { var refresh = webResponse.Headers.AllKeys.FirstOrDefault(k => k.Equals("refresh", StringComparison.OrdinalIgnoreCase)); if (refresh != null) { var refreshContent = webResponse.Headers.GetValues(refresh); foreach (var refreshParam in refreshContent.SelectMany(content => content.Split(';').Select(c => c.Trim()))) { var refreshKeyValue = refreshParam.Split('=').Select(kv => kv.Trim()).ToArray(); if (refreshKeyValue.Length == 2 && refreshKeyValue[0].Equals("url", StringComparison.OrdinalIgnoreCase)) { queryUri = new Uri(refreshKeyValue[1]); break; } } } // We have received a redirect URI, look there instead. if (queryUri != null) { LOGGER.Log(Level.Verbose, "Received redirect URI:[{0}], redirecting...", queryUri); continue; } Stream stream = webResponse.GetResponseStream(); if (stream == null || !stream.CanRead) { return null; } using (StreamReader streamReader = new StreamReader(stream, Encoding.UTF8)) { var driverInformation = streamReader.ReadToEnd(); LOGGER.Log(Level.Verbose, "Http response line: {0}", driverInformation); AvroDriverInfo info = null; try { info = AvroJsonSerializer<AvroDriverInfo>.FromString(driverInformation); } catch (Exception e) { Utilities.Diagnostics.Exceptions.CaughtAndThrow( e, Level.Error, string.Format(CultureInfo.InvariantCulture, "Cannot read content: {0}.", driverInformation), LOGGER); } if (info == null) { LOGGER.Log(Level.Info, "Cannot read content: {0}.", driverInformation); return null; } return new DriverInformation(info.remoteId, info.startTime, info.services); } } } catch (WebException) { LOGGER.Log(Level.Warning, "In RECOVERY mode, cannot connect to [{0}] for driver information, will try again later.", queryUri); return null; } } return null; } } }
// Copyright 2007 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.opengse.parser; import java.util.ArrayList; import java.util.BitSet; /** * The {@code Chset} (character set) parser matches the current character * in the parse buffer against an arbitrary character set. The character set is * represented as a sorted array of ranges for which a match should be * successful. Matching takes O(log nranges) time. There are predefined * character sets for matching any character ({@code ANYCHAR}), no * characters ({@code NOTHING}) and some standard 7-bit ASCII ranges * ({@code ALNUM}, {@code ALPHA}, {@code DIGIT}, * {@code XDIGIT}, {@code LOWER}, {@code UPPER}, * {@code WHITESPACE}), and {@code ASCII}. * * Note that the character set parser only matches a single character of the * parse buffer. The {@code Sequence} or }Repeat} parsers need * to be used to match more than one character. * * The following matches vowels and digits: * <pre> {@code * Parser p = new Chset("uoiea0-9"); * p.parse("a") -> matches "a" * p.parse("3") -> matches "3" * p.parse("b") -> no match * } </pre> * * @see Parser * @author Peter Mattis */ public final class Chset extends Parser<Object> implements Cloneable { protected static final char MIN_CHAR = 0; protected static final char MAX_CHAR = 65535; private static final char MAX_ASCII_CHAR = 127; public static final Chset ANYCHAR = new Chset(MIN_CHAR, MAX_CHAR); public static final Chset NOTHING = new Chset(); public static final Chset ALNUM = new Chset("a-zA-Z0-9"); public static final Chset ALPHA = new Chset("a-zA-Z"); public static final Chset DIGIT = new Chset("0-9"); public static final Chset XDIGIT = new Chset("0-9a-fA-F"); public static final Chset LOWER = new Chset("a-z"); public static final Chset UPPER = new Chset("A-Z"); public static final Chset WHITESPACE = new Chset(" \t\r\n\f"); public static final Chset ASCII = new Chset(MIN_CHAR, MAX_ASCII_CHAR); private final ArrayList<Range> ranges = new ArrayList<Range>(); /** * A secondary representation for ASCII members of the character set. * Maintaining this bitmap allows us to check ASCII characters for set * membership quickly. */ private final BitSet asciiSet = new BitSet(MAX_ASCII_CHAR + 1); /** * Class constructor for an empty character set. */ public Chset() { super(); } /** * Class constructor for a character literal. * * @param ch The character literal for this character set to match against. */ public Chset(char ch) { this(ch, ch); } /** * Class constructor for a single character range. The range is inclusive: * all character including {@code min} and {@code max} match. * * @param min The beginning of the character range. * @param max The end of the character range. */ public Chset(char min, char max) { super(); ranges.add(new Range(min, max)); refreshAsciiSet(); } /** * Class constructor that initializes a {@code Chset} from a string * specification. * * @param spec The string specification to initialize the {@code Chset} * from. */ public Chset(String spec) { for (int i = 0; i < spec.length();) { final char s = spec.charAt(i); if ((i + 1) < spec.length()) { final char n = spec.charAt(i + 1); if (n == '-') { if ((i + 2) < spec.length()) { final char e = spec.charAt(i + 2); set(new Range(s, e)); i += 3; continue; } else { set(new Range(s, s)); set(new Range('-', '-')); break; } } } set(new Range(s, s)); i += 1; } } /** * Returns a clone character set of {@code this}. */ @Override public Chset clone() { Chset n = new Chset(); for (Range r : ranges) { n.ranges.add(new Range(r.first, r.last)); } return n; } /** * Matches {@code buf[start]} against the character set. * * @see Parser#parse */ @Override public int parse(char[] buf, int start, int end, Object data) { if ((start < end) && checkInCharacterSet(buf[start])) { return 1; } return NO_MATCH; } /** * Tests to see if a single character matches the character set. * * @param ch The character to test. */ public boolean checkInCharacterSet(char ch) { if (ch <= MAX_ASCII_CHAR) { return asciiSet.get(ch); } return checkInRanges(ch); } /** * Tests to see if a single character matches the character set, but only * looks at the ranges representation. * * @param ch The character to test. */ protected boolean checkInRanges(char ch) { int rangeSize = ranges.size(); if (rangeSize == 0) { return false; } else if (rangeSize == 1) { // Optimization for a common simple case -- we don't need to do a find(). return ranges.get(0).includes(ch); } else { int pos = find(ch); // We need to test both the range at the position the character would be // inserted at and the preceding range due to the semantics of find(). // For example, if the Chset contains a single range of [10-19], then // find() will return 1 for the range [11-11] and we'll want to test // against 'pos - 1'. if ((pos != rangeSize) && ranges.get(pos).includes(ch)) { return true; } if ((pos != 0) && ranges.get(pos - 1).includes(ch)) { return true; } return false; } } /** * @see #set(Range) */ protected void set(char min, char max) { set(new Range(min, max)); } /** * Sets the specified range of characters in the character set so that * subsequent calls to {@code test} for characters within the range will * return {@code true}. * * @see #union */ private void set(Range r) { if (ranges.isEmpty()) { ranges.add(r); refreshAsciiSet(); return; } int pos = find(r.first); if (((pos != ranges.size()) && ranges.get(pos).includes(r)) || ((pos != 0) && ranges.get(pos - 1).includes(r))) { return; } if ((pos != 0) && ranges.get(pos - 1).mergeable(r)) { merge(pos - 1, r); } else if ((pos != ranges.size()) && ranges.get(pos).mergeable(r)) { merge(pos, r); } else { ranges.add(pos, r); } refreshAsciiSet(); } /** * @see #clear(Range) */ protected void clear(char min, char max) { clear(new Range(min, max)); } /** * Clears the specified range of characters from the character set so that * subsequent calls to {@code test} for characters within the range will * return {@code false}. * * @see #difference(Chset, Chset) */ private void clear(Range r) { if (ranges.isEmpty()) { return; } int pos = find(r.first); if (pos > 0) { Range prev = ranges.get(pos - 1); if (prev.includes(r.first)) { if (prev.last > r.last) { Range n = new Range(r.last + 1, prev.last); prev.last = r.first - 1; ranges.add(pos, n); refreshAsciiSet(); return; } else { prev.last = r.first - 1; } } } while ((pos < ranges.size()) && r.includes(ranges.get(pos))) { ranges.remove(pos); } if ((pos < ranges.size()) && ranges.get(pos).includes(r.last)) { ranges.get(pos).first = r.last + 1; } refreshAsciiSet(); } /** * Reconstructs the BitSet representation of the ASCII characters in the * set, so that it matches what's stored in ranges. */ private void refreshAsciiSet() { asciiSet.clear(); for (char ch = MIN_CHAR; ch <= MAX_ASCII_CHAR; ch++) { if (checkInRanges(ch)) { asciiSet.set(ch); } } } /** * Returns the size of the range array. */ protected int size() { return ranges.size(); } /** * Find the position in the range array for which the beginning of the * specified range is greater than or equal to the range at that position. In * other words, it returns the insertion point for the specified range. * * @param first The start of the range to find the insertion point for. * * @see #checkInCharacterSet(char) * @see #set(char, char) * @see #clear(char, char) * @see java.util.Arrays#binarySearch(char[], char) */ private int find(int first) { int s = 0; int e = ranges.size() - 1; while (s <= e) { int m = (s + e) / 2; // equivalent to: m = s + (e - s) / 2; Range r = ranges.get(m); if (r.first < first) { s = m + 1; } else if (r.first > first) { e = m - 1; } else { return m; } } return s; } /** * Merge the specified range with the range at the specified position in the * range array. After performing the merge operation, we iterate down the * range array and continue merging any newly mergeable ranges. The specified * range and the range at the specified position in the range array must be * mergeable. * * @see #set(Range) * @see #clear(Range) */ private void merge(int pos, Range r) { Range t = ranges.get(pos); t.merge(r); pos += 1; while ((pos < ranges.size()) && t.mergeable(ranges.get(pos))) { t.merge(ranges.get(pos)); ranges.remove(pos); } } /** * Creates a new character set which matches a character if that character * does not match the {@code subject} character set. This operation is * implemented by taking the difference of the {@code ANYCHAR} character * set and the {@code subject} character set. * <pre> * ~subject --> anychar - subject * </pre> * * @param subject The source character set. */ public static Chset not(Chset subject) { return difference(ANYCHAR, subject); } /** * Creates a new character set which matches a character if that character * matches either the {@code left} or {@code right} character sets. * * left | right * * * @param left The left source character set. * * @param right The right source character set. */ public static Chset union(Chset left, Chset right) { Chset n = left.clone(); for (Range r : right.ranges) { n.set(r); } return n; } /** * Creates a new character set which matches a character if that character * matches the {@code left} character set but does not match the * {@code right} character set. * * left - right * * @param left The left source character set. * * @param right The right source character set. */ public static Chset difference(Chset left, Chset right) { Chset n = left.clone(); for (Range r : right.ranges) { n.clear(r); } return n; } /** * Creates a new character set which matches a character if that character * matches both the {@code left} and {@code right} character sets. * * left & right --> left - ~right * * @param left The left source character set. * * @param right The right source character set. */ public static Chset intersection(Chset left, Chset right) { return difference(left, not(right)); } /** * Creates a new character set which matches a character if that character * matches the {@code left} character set or the {@code right} * character set, but not both. * * left ^ right --> (left - right) | (right - left) * * @param left The left source character set. * * @param right The right source character set. */ public static Chset xor(Chset left, Chset right) { return union(difference(left, right), difference(right, left)); } @Override public String toString() { StringBuffer buf = new StringBuffer(); for (int i = 0; i < ranges.size(); i++) { Range r = ranges.get(i); if (i > 0) { buf.append(" "); } buf.append(r.first); buf.append("-"); buf.append(r.last); } return buf.toString(); } /** * The {@code Range} class represents a range from * {@code [first,last]}. It is used by the {@code Chset} class to * implement character sets for large alphabets where a bitmap based approach * would be too expensive in terms of memory. The {@code first} and * {@code last} member variables are specified as integers to avoid * casting that would be necessary if they were specified as characters due to * java's type promotion rules. * * @author Peter Mattis */ static class Range { int first; int last; /** * Class constructor. * * @param first The beginning of the range. * * @param last The end of the range. */ Range(int first, int last) { if (first > last) { throw new IllegalArgumentException("descending ranges not supported: " + first + "-" + last); } this.first = first; this.last = last; } /** * Tests whether the specified character lies within the target range. * * @param ch The character to test for inclusion. * * @see #checkInCharacterSet(char) * @see #set(char, char) * @see #clear(char, char) */ boolean includes(int ch) { return (first <= ch) && (ch <= last); } /** * Tests whether the specified range lies entirely within the target range. * * @param r The range to test for inclusion. * * @see #set(Range) * @see #clear(char, char) */ boolean includes(Range r) { return (first <= r.first) && (r.last <= last); } /** * Tests whether the specified range is mergeable with the target range. Two * ranges are mergeable if they can be replaced with a single range that * spans exactly the same range of values. * * @param r The range to test for mergeability with. * * @see #set(Range) */ boolean mergeable(Range r) { /* * A range is mergeable if there are no gaps between the ranges. If * there is a gap, then it will be obvious as the difference in the * extremes will be greater than the sum of the ranges. */ return (1 + Math.max(last, r.last) - Math.min(first, r.first)) <= ((1 + r.last - r.first) + (1 + last - first)); } /** * Merges the specified range with the target range. This function is simple * minded and will produce unexpected results if the ranges being merged are * not {@link #mergeable(Range)}. * * @param r The range to merge with. * * @see #set(char, char) * @see #merge(int, Range) */ void merge(Range r) { first = Math.min(first, r.first); last = Math.max(last, r.last); } } }
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Generate some standard test data for debugging TensorBoard. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import bisect import math import os import os.path import random import shutil import numpy as np from six.moves import xrange # pylint: disable=redefined-builtin import tensorflow as tf tf.flags.DEFINE_string("target", None, """The directoy where serialized data will be written""") tf.flags.DEFINE_boolean("overwrite", False, """Whether to remove and overwrite TARGET if it already exists.""") FLAGS = tf.flags.FLAGS # Hardcode a start time and reseed so script always generates the same data. _start_time = 0 random.seed(0) def _MakeHistogramBuckets(): v = 1E-12 buckets = [] neg_buckets = [] while v < 1E20: buckets.append(v) neg_buckets.append(-v) v *= 1.1 # Should include DBL_MAX, but won't bother for test data. return neg_buckets[::-1] + [0] + buckets def _MakeHistogram(values): """Convert values into a histogram proto using logic from histogram.cc.""" limits = _MakeHistogramBuckets() counts = [0] * len(limits) for v in values: idx = bisect.bisect_left(limits, v) counts[idx] += 1 limit_counts = [(limits[i], counts[i]) for i in xrange(len(limits)) if counts[i]] bucket_limit = [lc[0] for lc in limit_counts] bucket = [lc[1] for lc in limit_counts] sum_sq = sum(v * v for v in values) return tf.HistogramProto(min=min(values), max=max(values), num=len(values), sum=sum(values), sum_squares=sum_sq, bucket_limit=bucket_limit, bucket=bucket) def WriteScalarSeries(writer, tag, f, n=5): """Write a series of scalar events to writer, using f to create values.""" step = 0 wall_time = _start_time for i in xrange(n): v = f(i) value = tf.Summary.Value(tag=tag, simple_value=v) summary = tf.Summary(value=[value]) event = tf.Event(wall_time=wall_time, step=step, summary=summary) writer.add_event(event) step += 1 wall_time += 10 def WriteHistogramSeries(writer, tag, mu_sigma_tuples, n=20): """Write a sequence of normally distributed histograms to writer.""" step = 0 wall_time = _start_time for [mean, stddev] in mu_sigma_tuples: data = [random.normalvariate(mean, stddev) for _ in xrange(n)] histo = _MakeHistogram(data) summary = tf.Summary(value=[tf.Summary.Value(tag=tag, histo=histo)]) event = tf.Event(wall_time=wall_time, step=step, summary=summary) writer.add_event(event) step += 10 wall_time += 100 def WriteImageSeries(writer, tag, n_images=1): """Write a few dummy images to writer.""" step = 0 session = tf.Session() p = tf.placeholder("uint8", (1, 4, 4, 3)) s = tf.image_summary(tag, p) for _ in xrange(n_images): im = np.random.random_integers(0, 255, (1, 4, 4, 3)) summ = session.run(s, feed_dict={p: im}) writer.add_summary(summ, step) step += 20 session.close() def WriteAudioSeries(writer, tag, n_audio=1): """Write a few dummy audio clips to writer.""" step = 0 session = tf.Session() min_frequency_hz = 440 max_frequency_hz = 880 sample_rate = 4000 duration_frames = sample_rate * 0.5 # 0.5 seconds. frequencies_per_run = 1 num_channels = 2 p = tf.placeholder("float32", (frequencies_per_run, duration_frames, num_channels)) s = tf.audio_summary(tag, p, sample_rate) for _ in xrange(n_audio): # Generate a different frequency for each channel to show stereo works. frequencies = np.random.random_integers( min_frequency_hz, max_frequency_hz, size=(frequencies_per_run, num_channels)) tiled_frequencies = np.tile(frequencies, (1, duration_frames)) tiled_increments = np.tile( np.arange(0, duration_frames), (num_channels, 1)).T.reshape( 1, duration_frames * num_channels) tones = np.sin(2.0 * np.pi * tiled_frequencies * tiled_increments / sample_rate) tones = tones.reshape(frequencies_per_run, duration_frames, num_channels) summ = session.run(s, feed_dict={p: tones}) writer.add_summary(summ, step) step += 20 session.close() def GenerateTestData(path): """Generates the test data directory.""" run1_path = os.path.join(path, "run1") os.makedirs(run1_path) writer1 = tf.train.SummaryWriter(run1_path) WriteScalarSeries(writer1, "foo/square", lambda x: x * x) WriteScalarSeries(writer1, "bar/square", lambda x: x * x) WriteScalarSeries(writer1, "foo/sin", math.sin) WriteScalarSeries(writer1, "foo/cos", math.cos) WriteHistogramSeries(writer1, "histo1", [[0, 1], [0.3, 1], [0.5, 1], [0.7, 1], [1, 1]]) WriteImageSeries(writer1, "im1") WriteImageSeries(writer1, "im2") WriteAudioSeries(writer1, "au1") run2_path = os.path.join(path, "run2") os.makedirs(run2_path) writer2 = tf.train.SummaryWriter(run2_path) WriteScalarSeries(writer2, "foo/square", lambda x: x * x * 2) WriteScalarSeries(writer2, "bar/square", lambda x: x * x * 3) WriteScalarSeries(writer2, "foo/cos", lambda x: math.cos(x) * 2) WriteHistogramSeries(writer2, "histo1", [[0, 2], [0.3, 2], [0.5, 2], [0.7, 2], [1, 2]]) WriteHistogramSeries(writer2, "histo2", [[0, 1], [0.3, 1], [0.5, 1], [0.7, 1], [1, 1]]) WriteImageSeries(writer2, "im1") WriteAudioSeries(writer2, "au2") graph_def = tf.GraphDef() node1 = graph_def.node.add() node1.name = "a" node1.op = "matmul" node2 = graph_def.node.add() node2.name = "b" node2.op = "matmul" node2.input.extend(["a:0"]) writer1.add_graph(graph_def) node3 = graph_def.node.add() node3.name = "c" node3.op = "matmul" node3.input.extend(["a:0", "b:0"]) writer2.add_graph(graph_def) writer1.close() writer2.close() def main(unused_argv=None): target = FLAGS.target if not target: print("The --target flag is required.") return -1 if os.path.exists(target): if FLAGS.overwrite: if os.path.isdir(target): shutil.rmtree(target) else: os.remove(target) else: print("Refusing to overwrite target %s without --overwrite" % target) return -2 GenerateTestData(target) if __name__ == "__main__": tf.app.run()
BOARD ?= nucleo_f103rb CONF_FILE = prj.conf include ${ZEPHYR_BASE}/Makefile.inc
<?php /** * Validates the value for the CSS property text-decoration * @note This class could be generalized into a version that acts sort of * like Enum except you can compound the allowed values. */ class HTMLPurifier_AttrDef_CSS_TextDecoration extends HTMLPurifier_AttrDef { public function validate($string, $config, $context) { static $allowed_values = array( 'line-through' => true, 'overline' => true, 'underline' => true, ); $string = strtolower($this->parseCDATA($string)); if ($string === 'none') return $string; $parts = explode(' ', $string); $final = ''; foreach ($parts as $part) { if (isset($allowed_values[$part])) { $final .= $part . ' '; } } $final = rtrim($final); if ($final === '') return false; return $final; } }
<html> <title>positiveClassTypeCast</title> <body> <!-- we are using 'class' and 'type' together and 'class' is assignable to type--> 0 </body> </html>
/** * @fileoverview Rule to check for tabs inside a file * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ const regex = /\t/; //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "disallow all tabs", category: "Stylistic Issues", recommended: false }, schema: [] }, create(context) { return { Program(node) { context.getSourceLines().forEach((line, index) => { const match = regex.exec(line); if (match) { context.report({ node, loc: { line: index + 1, column: match.index + 1 }, message: "Unexpected tab character." }); } }); } }; } };
#!/usr/bin/env python # # Copyright 2009 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """Escaping/unescaping methods for HTML, JSON, URLs, and others. Also includes a few other miscellaneous string manipulation functions that have crept in over time. """ from __future__ import absolute_import, division, print_function import json import re from tornado.util import PY3, unicode_type, basestring_type if PY3: from urllib.parse import parse_qs as _parse_qs import html.entities as htmlentitydefs import urllib.parse as urllib_parse unichr = chr else: from urlparse import parse_qs as _parse_qs import htmlentitydefs import urllib as urllib_parse try: import typing # noqa except ImportError: pass _XHTML_ESCAPE_RE = re.compile('[&<>"\']') _XHTML_ESCAPE_DICT = {'&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', '\'': '&#39;'} def xhtml_escape(value): """Escapes a string so it is valid within HTML or XML. Escapes the characters ``<``, ``>``, ``"``, ``'``, and ``&``. When used in attribute values the escaped strings must be enclosed in quotes. .. versionchanged:: 3.2 Added the single quote to the list of escaped characters. """ return _XHTML_ESCAPE_RE.sub(lambda match: _XHTML_ESCAPE_DICT[match.group(0)], to_basestring(value)) def xhtml_unescape(value): """Un-escapes an XML-escaped string.""" return re.sub(r"&(#?)(\w+?);", _convert_entity, _unicode(value)) # The fact that json_encode wraps json.dumps is an implementation detail. # Please see https://github.com/tornadoweb/tornado/pull/706 # before sending a pull request that adds **kwargs to this function. def json_encode(value): """JSON-encodes the given Python object.""" # JSON permits but does not require forward slashes to be escaped. # This is useful when json data is emitted in a <script> tag # in HTML, as it prevents </script> tags from prematurely terminating # the javascript. Some json libraries do this escaping by default, # although python's standard library does not, so we do it here. # http://stackoverflow.com/questions/1580647/json-why-are-forward-slashes-escaped return json.dumps(value).replace("</", "<\\/") def json_decode(value): """Returns Python objects for the given JSON string.""" return json.loads(to_basestring(value)) def squeeze(value): """Replace all sequences of whitespace chars with a single space.""" return re.sub(r"[\x00-\x20]+", " ", value).strip() def url_escape(value, plus=True): """Returns a URL-encoded version of the given value. If ``plus`` is true (the default), spaces will be represented as "+" instead of "%20". This is appropriate for query strings but not for the path component of a URL. Note that this default is the reverse of Python's urllib module. .. versionadded:: 3.1 The ``plus`` argument """ quote = urllib_parse.quote_plus if plus else urllib_parse.quote return quote(utf8(value)) # python 3 changed things around enough that we need two separate # implementations of url_unescape. We also need our own implementation # of parse_qs since python 3's version insists on decoding everything. if not PY3: def url_unescape(value, encoding='utf-8', plus=True): """Decodes the given value from a URL. The argument may be either a byte or unicode string. If encoding is None, the result will be a byte string. Otherwise, the result is a unicode string in the specified encoding. If ``plus`` is true (the default), plus signs will be interpreted as spaces (literal plus signs must be represented as "%2B"). This is appropriate for query strings and form-encoded values but not for the path component of a URL. Note that this default is the reverse of Python's urllib module. .. versionadded:: 3.1 The ``plus`` argument """ unquote = (urllib_parse.unquote_plus if plus else urllib_parse.unquote) if encoding is None: return unquote(utf8(value)) else: return unicode_type(unquote(utf8(value)), encoding) parse_qs_bytes = _parse_qs else: def url_unescape(value, encoding='utf-8', plus=True): """Decodes the given value from a URL. The argument may be either a byte or unicode string. If encoding is None, the result will be a byte string. Otherwise, the result is a unicode string in the specified encoding. If ``plus`` is true (the default), plus signs will be interpreted as spaces (literal plus signs must be represented as "%2B"). This is appropriate for query strings and form-encoded values but not for the path component of a URL. Note that this default is the reverse of Python's urllib module. .. versionadded:: 3.1 The ``plus`` argument """ if encoding is None: if plus: # unquote_to_bytes doesn't have a _plus variant value = to_basestring(value).replace('+', ' ') return urllib_parse.unquote_to_bytes(value) else: unquote = (urllib_parse.unquote_plus if plus else urllib_parse.unquote) return unquote(to_basestring(value), encoding=encoding) def parse_qs_bytes(qs, keep_blank_values=False, strict_parsing=False): """Parses a query string like urlparse.parse_qs, but returns the values as byte strings. Keys still become type str (interpreted as latin1 in python3!) because it's too painful to keep them as byte strings in python3 and in practice they're nearly always ascii anyway. """ # This is gross, but python3 doesn't give us another way. # Latin1 is the universal donor of character encodings. result = _parse_qs(qs, keep_blank_values, strict_parsing, encoding='latin1', errors='strict') encoded = {} for k, v in result.items(): encoded[k] = [i.encode('latin1') for i in v] return encoded _UTF8_TYPES = (bytes, type(None)) def utf8(value): # type: (typing.Union[bytes,unicode_type,None])->typing.Union[bytes,None] """Converts a string argument to a byte string. If the argument is already a byte string or None, it is returned unchanged. Otherwise it must be a unicode string and is encoded as utf8. """ if isinstance(value, _UTF8_TYPES): return value if not isinstance(value, unicode_type): raise TypeError( "Expected bytes, unicode, or None; got %r" % type(value) ) return value.encode("utf-8") _TO_UNICODE_TYPES = (unicode_type, type(None)) def to_unicode(value): """Converts a string argument to a unicode string. If the argument is already a unicode string or None, it is returned unchanged. Otherwise it must be a byte string and is decoded as utf8. """ if isinstance(value, _TO_UNICODE_TYPES): return value if not isinstance(value, bytes): raise TypeError( "Expected bytes, unicode, or None; got %r" % type(value) ) return value.decode("utf-8") # to_unicode was previously named _unicode not because it was private, # but to avoid conflicts with the built-in unicode() function/type _unicode = to_unicode # When dealing with the standard library across python 2 and 3 it is # sometimes useful to have a direct conversion to the native string type if str is unicode_type: native_str = to_unicode else: native_str = utf8 _BASESTRING_TYPES = (basestring_type, type(None)) def to_basestring(value): """Converts a string argument to a subclass of basestring. In python2, byte and unicode strings are mostly interchangeable, so functions that deal with a user-supplied argument in combination with ascii string constants can use either and should return the type the user supplied. In python3, the two types are not interchangeable, so this method is needed to convert byte strings to unicode. """ if isinstance(value, _BASESTRING_TYPES): return value if not isinstance(value, bytes): raise TypeError( "Expected bytes, unicode, or None; got %r" % type(value) ) return value.decode("utf-8") def recursive_unicode(obj): """Walks a simple data structure, converting byte strings to unicode. Supports lists, tuples, and dictionaries. """ if isinstance(obj, dict): return dict((recursive_unicode(k), recursive_unicode(v)) for (k, v) in obj.items()) elif isinstance(obj, list): return list(recursive_unicode(i) for i in obj) elif isinstance(obj, tuple): return tuple(recursive_unicode(i) for i in obj) elif isinstance(obj, bytes): return to_unicode(obj) else: return obj # I originally used the regex from # http://daringfireball.net/2010/07/improved_regex_for_matching_urls # but it gets all exponential on certain patterns (such as too many trailing # dots), causing the regex matcher to never return. # This regex should avoid those problems. # Use to_unicode instead of tornado.util.u - we don't want backslashes getting # processed as escapes. _URL_RE = re.compile(to_unicode(r"""\b((?:([\w-]+):(/{1,3})|www[.])(?:(?:(?:[^\s&()]|&amp;|&quot;)*(?:[^!"#$%&'()*+,.:;<=>?@\[\]^`{|}~\s]))|(?:\((?:[^\s&()]|&amp;|&quot;)*\)))+)""")) def linkify(text, shorten=False, extra_params="", require_protocol=False, permitted_protocols=["http", "https"]): """Converts plain text into HTML with links. For example: ``linkify("Hello http://tornadoweb.org!")`` would return ``Hello <a href="http://tornadoweb.org">http://tornadoweb.org</a>!`` Parameters: * ``shorten``: Long urls will be shortened for display. * ``extra_params``: Extra text to include in the link tag, or a callable taking the link as an argument and returning the extra text e.g. ``linkify(text, extra_params='rel="nofollow" class="external"')``, or:: def extra_params_cb(url): if url.startswith("http://example.com"): return 'class="internal"' else: return 'class="external" rel="nofollow"' linkify(text, extra_params=extra_params_cb) * ``require_protocol``: Only linkify urls which include a protocol. If this is False, urls such as www.facebook.com will also be linkified. * ``permitted_protocols``: List (or set) of protocols which should be linkified, e.g. ``linkify(text, permitted_protocols=["http", "ftp", "mailto"])``. It is very unsafe to include protocols such as ``javascript``. """ if extra_params and not callable(extra_params): extra_params = " " + extra_params.strip() def make_link(m): url = m.group(1) proto = m.group(2) if require_protocol and not proto: return url # not protocol, no linkify if proto and proto not in permitted_protocols: return url # bad protocol, no linkify href = m.group(1) if not proto: href = "http://" + href # no proto specified, use http if callable(extra_params): params = " " + extra_params(href).strip() else: params = extra_params # clip long urls. max_len is just an approximation max_len = 30 if shorten and len(url) > max_len: before_clip = url if proto: proto_len = len(proto) + 1 + len(m.group(3) or "") # +1 for : else: proto_len = 0 parts = url[proto_len:].split("/") if len(parts) > 1: # Grab the whole host part plus the first bit of the path # The path is usually not that interesting once shortened # (no more slug, etc), so it really just provides a little # extra indication of shortening. url = url[:proto_len] + parts[0] + "/" + \ parts[1][:8].split('?')[0].split('.')[0] if len(url) > max_len * 1.5: # still too long url = url[:max_len] if url != before_clip: amp = url.rfind('&') # avoid splitting html char entities if amp > max_len - 5: url = url[:amp] url += "..." if len(url) >= len(before_clip): url = before_clip else: # full url is visible on mouse-over (for those who don't # have a status bar, such as Safari by default) params += ' title="%s"' % href return u'<a href="%s"%s>%s</a>' % (href, params, url) # First HTML-escape so that our strings are all safe. # The regex is modified to avoid character entites other than &amp; so # that we won't pick up &quot;, etc. text = _unicode(xhtml_escape(text)) return _URL_RE.sub(make_link, text) def _convert_entity(m): if m.group(1) == "#": try: if m.group(2)[:1].lower() == 'x': return unichr(int(m.group(2)[1:], 16)) else: return unichr(int(m.group(2))) except ValueError: return "&#%s;" % m.group(2) try: return _HTML_UNICODE_MAP[m.group(2)] except KeyError: return "&%s;" % m.group(2) def _build_unicode_map(): unicode_map = {} for name, value in htmlentitydefs.name2codepoint.items(): unicode_map[name] = unichr(value) return unicode_map _HTML_UNICODE_MAP = _build_unicode_map()
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/ozone/platform/dri/dri_cursor.h" #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" #include "ui/gfx/geometry/point.h" #include "ui/gfx/geometry/point_conversions.h" #include "ui/gfx/geometry/point_f.h" #include "ui/ozone/platform/dri/dri_surface_factory.h" #include "ui/ozone/platform/dri/dri_window.h" #include "ui/ozone/platform/dri/dri_window_manager.h" #include "ui/ozone/platform/dri/hardware_cursor_delegate.h" namespace ui { DriCursor::DriCursor(HardwareCursorDelegate* hardware, DriWindowManager* window_manager) : hardware_(hardware), window_manager_(window_manager), cursor_window_(gfx::kNullAcceleratedWidget) { } DriCursor::~DriCursor() { } void DriCursor::SetCursor(gfx::AcceleratedWidget widget, PlatformCursor platform_cursor) { DCHECK_NE(widget, gfx::kNullAcceleratedWidget); scoped_refptr<BitmapCursorOzone> cursor = BitmapCursorFactoryOzone::GetBitmapCursor(platform_cursor); if (cursor_ == cursor || cursor_window_ != widget) return; cursor_ = cursor; ShowCursor(); } void DriCursor::ShowCursor() { DCHECK_NE(cursor_window_, gfx::kNullAcceleratedWidget); if (cursor_.get()) hardware_->SetHardwareCursor(cursor_window_, cursor_->bitmaps(), bitmap_location(), cursor_->frame_delay_ms()); else HideCursor(); } void DriCursor::HideCursor() { DCHECK_NE(cursor_window_, gfx::kNullAcceleratedWidget); hardware_->SetHardwareCursor( cursor_window_, std::vector<SkBitmap>(), gfx::Point(), 0); } void DriCursor::MoveCursorTo(gfx::AcceleratedWidget widget, const gfx::PointF& location) { if (widget != cursor_window_ && cursor_window_ != gfx::kNullAcceleratedWidget) HideCursor(); cursor_window_ = widget; cursor_location_ = location; if (cursor_window_ == gfx::kNullAcceleratedWidget) return; DriWindow* window = window_manager_->GetWindow(cursor_window_); const gfx::Size& size = window->GetBounds().size(); cursor_location_.SetToMax(gfx::PointF(0, 0)); // Right and bottom edges are exclusive. cursor_location_.SetToMin(gfx::PointF(size.width() - 1, size.height() - 1)); if (cursor_.get()) hardware_->MoveHardwareCursor(cursor_window_, bitmap_location()); } void DriCursor::MoveCursor(const gfx::Vector2dF& delta) { MoveCursorTo(cursor_window_, cursor_location_ + delta); } gfx::AcceleratedWidget DriCursor::GetCursorWindow() { return cursor_window_; } bool DriCursor::IsCursorVisible() { return cursor_.get(); } gfx::PointF DriCursor::location() { return cursor_location_; } gfx::Point DriCursor::bitmap_location() { return gfx::ToFlooredPoint(cursor_location_) - cursor_->hotspot().OffsetFromOrigin(); } } // namespace ui
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var cordovaConfig = require("./cordova-config"); describe('parseConfig function', function () { it('should return {} when the config does not contain a widget', function () { var result = cordovaConfig.parseConfig({}); expect(result).toEqual({}); }); it('should return a CordovaProject without id or version if config.$ does not exist', function () { var result = cordovaConfig.parseConfig({ widget: { name: ['thename'], } }); expect(result).toEqual({ name: 'thename', }); }); it('should return a CordovaProject on success', function () { var result = cordovaConfig.parseConfig({ widget: { name: ['thename'], $: { id: 'theid', version: 'theversion' } } }); expect(result).toEqual({ name: 'thename', id: 'theid', version: 'theversion' }); }); }); /* describe('buildCordovaConfig', () => { it('should read the config.xml file', (done) => { let fs: any = jest.genMockFromModule('fs'); fs.readFile = jest.fn().mockReturnValue('blah'); jest.mock('xml2js', function() { return { Parser: function() { return { parseString: function (data, cb) { cb(null, 'parseConfigData'); } }; } }; }); function daCallback() { expect(fs.readfile).toHaveBeenCalledWith('config.xml'); done(); } cordovaConfig.buildCordovaConfig(daCallback, daCallback); }); }); */
// Copyright (c) 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // contained_range_map.h: Hierarchically-organized range maps. // // A contained range map is similar to a standard range map, except it allows // objects to be organized hierarchically. A contained range map allows // objects to contain other objects. It is not sensitive to the order that // objects are added to the map: larger, more general, containing objects // may be added either before or after smaller, more specific, contained // ones. // // Contained range maps guarantee that each object may only contain smaller // objects than itself, and that a parent object may only contain child // objects located entirely within the parent's address space. Attempts // to introduce objects (via StoreRange) that violate these rules will fail. // Retrieval (via RetrieveRange) always returns the most specific (smallest) // object that contains the address being queried. Note that while it is // not possible to insert two objects into a map that have exactly the same // geometry (base address and size), it is possible to completely mask a // larger object by inserting smaller objects that entirely fill the larger // object's address space. // // Internally, contained range maps are implemented as a tree. Each tree // node except for the root node describes an object in the map. Each node // maintains its list of children in a map similar to a standard range map, // keyed by the highest address that each child occupies. Each node's // children occupy address ranges entirely within the node. The root node // is the only node directly accessible to the user, and represents the // entire address space. // // Author: Mark Mentovai #ifndef PROCESSOR_CONTAINED_RANGE_MAP_H__ #define PROCESSOR_CONTAINED_RANGE_MAP_H__ #include <map> namespace google_breakpad { // Forward declarations (for later friend declarations of specialized template). template<class, class> class ContainedRangeMapSerializer; template<typename AddressType, typename EntryType> class ContainedRangeMap { public: // The default constructor creates a ContainedRangeMap with no geometry // and no entry, and as such is only suitable for the root node of a // ContainedRangeMap tree. ContainedRangeMap() : base_(), entry_(), map_(NULL) {} ~ContainedRangeMap(); // Inserts a range into the map. If the new range is encompassed by // an existing child range, the new range is passed into the child range's // StoreRange method. If the new range encompasses any existing child // ranges, those child ranges are moved to the new range, becoming // grandchildren of this ContainedRangeMap. Returns false for a // parameter error, or if the ContainedRangeMap hierarchy guarantees // would be violated. bool StoreRange(const AddressType &base, const AddressType &size, const EntryType &entry); // Retrieves the most specific (smallest) descendant range encompassing // the specified address. This method will only return entries held by // child ranges, and not the entry contained by |this|. This is necessary // to support a sparsely-populated root range. If no descendant range // encompasses the address, returns false. bool RetrieveRange(const AddressType &address, EntryType *entry) const; // Removes all children. Note that Clear only removes descendants, // leaving the node on which it is called intact. Because the only // meaningful things contained by a root node are descendants, this // is sufficient to restore an entire ContainedRangeMap to its initial // empty state when called on the root node. void Clear(); private: friend class ContainedRangeMapSerializer<AddressType, EntryType>; friend class ModuleComparer; // AddressToRangeMap stores pointers. This makes reparenting simpler in // StoreRange, because it doesn't need to copy entire objects. typedef std::map<AddressType, ContainedRangeMap *> AddressToRangeMap; typedef typename AddressToRangeMap::const_iterator MapConstIterator; typedef typename AddressToRangeMap::iterator MapIterator; typedef typename AddressToRangeMap::value_type MapValue; // Creates a new ContainedRangeMap with the specified base address, entry, // and initial child map, which may be NULL. This is only used internally // by ContainedRangeMap when it creates a new child. ContainedRangeMap(const AddressType &base, const EntryType &entry, AddressToRangeMap *map) : base_(base), entry_(entry), map_(map) {} // The base address of this range. The high address does not need to // be stored, because it is used as the key to an object in its parent's // map, and all ContainedRangeMaps except for the root range are contained // within maps. The root range does not actually contain an entry, so its // base_ field is meaningless, and the fact that it has no parent and thus // no key is unimportant. For this reason, the base_ field should only be // is accessed on child ContainedRangeMap objects, and never on |this|. const AddressType base_; // The entry corresponding to this range. The root range does not // actually contain an entry, so its entry_ field is meaningless. For // this reason, the entry_ field should only be accessed on child // ContainedRangeMap objects, and never on |this|. const EntryType entry_; // The map containing child ranges, keyed by each child range's high // address. This is a pointer to avoid allocating map structures for // leaf nodes, where they are not needed. AddressToRangeMap *map_; }; } // namespace google_breakpad #endif // PROCESSOR_CONTAINED_RANGE_MAP_H__
import * as R from 'ramda'; () => { function isEven(n: number) { return n % 2 === 0; } // $ExpectType (n: number) => boolean const isOdd = R.complement(isEven); isOdd(21); // => true isOdd(42); // => false function isLengthEqual(value: string, length: number): boolean { return value.length === length; } const isLengthNotEqual = R.complement(isLengthEqual); // $ExpectError isLengthNotEqual("FOO", "BAR"); isLengthNotEqual("BAZ", 4); // => true // $ExpectType (value: any) => boolean R.complement(R.isNil); };
--- layout: page title: "JavaScript user_error function" comments: true sharing: true footer: true alias: - /functions/view/user_error:843 - /functions/view/user_error - /functions/view/843 - /functions/user_error:843 - /functions/843 --- <!-- Generated by Rakefile:build --> A JavaScript equivalent of PHP's user_error {% codeblock errorfunc/user_error.js lang:js https://raw.github.com/kvz/phpjs/master/functions/errorfunc/user_error.js raw on github %} function user_error (error_msg, error_type) { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // - depends on: trigger_error // * example 1: user_error('Cannot divide by zero', 256); // * returns 1: true return this.trigger_error(error_msg, error_type); } {% endcodeblock %} - [view on github](https://github.com/kvz/phpjs/blob/master/functions/errorfunc/user_error.js) - [edit on github](https://github.com/kvz/phpjs/edit/master/functions/errorfunc/user_error.js) ### Example 1 This code {% codeblock lang:js example %} user_error('Cannot divide by zero', 256); {% endcodeblock %} Should return {% codeblock lang:js returns %} true {% endcodeblock %} ### Other PHP functions in the errorfunc extension {% render_partial _includes/custom/errorfunc.html %}
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ /* Document ========================================================================== */ /** * 1. Correct the line height in all browsers. * 2. Prevent adjustments of font size after orientation changes in * IE on Windows Phone and in iOS. */ html { line-height: 1.15; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } /* Sections ========================================================================== */ /** * Remove the margin in all browsers (opinionated). */ body { margin: 0; } /** * Add the correct display in IE 9-. */ article, aside, footer, header, nav, section { display: block; } /** * Correct the font size and margin on `h1` elements within `section` and * `article` contexts in Chrome, Firefox, and Safari. */ h1 { font-size: 2em; margin: .67em 0; } /* Grouping content ========================================================================== */ /** * Add the correct display in IE 9-. * 1. Add the correct display in IE. */ figcaption, figure, main { /* 1 */ display: block; } /** * Add the correct margin in IE 8. */ figure { margin: 1em 40px; } /** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */ hr { box-sizing: content-box; /* 1 */ height: 0; /* 1 */ overflow: visible; /* 2 */ } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ pre { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /* Text-level semantics ========================================================================== */ /** * 1. Remove the gray background on active links in IE 10. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. */ a { background-color: transparent; /* 1 */ -webkit-text-decoration-skip: objects; /* 2 */ } /** * 1. Remove the bottom border in Chrome 57- and Firefox 39-. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */ abbr[title] { border-bottom: none; /* 1 */ text-decoration: underline; /* 2 */ -webkit-text-decoration: underline dotted; text-decoration: underline dotted; /* 2 */ } /** * Prevent the duplicate application of `bolder` by the next rule in Safari 6. */ b, strong { font-weight: inherit; } /** * Add the correct font weight in Chrome, Edge, and Safari. */ b, strong { font-weight: bolder; } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ code, kbd, samp { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /** * Add the correct font style in Android 4.3-. */ dfn { font-style: italic; } /** * Add the correct background and color in IE 9-. */ mark { background-color: #ff0; color: #000; } /** * Add the correct font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` elements from affecting the line height in * all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } /* Embedded content ========================================================================== */ /** * Add the correct display in IE 9-. */ audio, video { display: inline-block; } /** * Add the correct display in iOS 4-7. */ audio:not([controls]) { display: none; height: 0; } /** * Remove the border on images inside links in IE 10-. */ img { border-style: none; } /** * Hide the overflow in IE. */ svg:not(:root) { overflow: hidden; } /* Forms ========================================================================== */ /** * 1. Change the font styles in all browsers (opinionated). * 2. Remove the margin in Firefox and Safari. */ button, input, optgroup, select, textarea { font-family: sans-serif; /* 1 */ font-size: 100%; /* 1 */ line-height: 1.15; /* 1 */ margin: 0; /* 2 */ } /** * Show the overflow in IE. * 1. Show the overflow in Edge. */ button, input { /* 1 */ overflow: visible; } /** * Remove the inheritance of text transform in Edge, Firefox, and IE. * 1. Remove the inheritance of text transform in Firefox. */ button, select { /* 1 */ text-transform: none; } /** * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` * controls in Android 4. * 2. Correct the inability to style clickable types in iOS and Safari. */ button, html [type="button"], /* 1 */ [type="reset"], [type="submit"] { -webkit-appearance: button; /* 2 */ } /** * Remove the inner border and padding in Firefox. */ button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } /** * Restore the focus styles unset by the previous rule. */ button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; } /** * Correct the padding in Firefox. */ fieldset { padding: .35em .75em .625em; } /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. * 3. Remove the padding so developers are not caught out when they zero out * `fieldset` elements in all browsers. */ legend { box-sizing: border-box; /* 1 */ color: inherit; /* 2 */ display: table; /* 1 */ max-width: 100%; /* 1 */ padding: 0; /* 3 */ white-space: normal; /* 1 */ } /** * 1. Add the correct display in IE 9-. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } /** * Remove the default vertical scrollbar in IE. */ textarea { overflow: auto; } /** * 1. Add the correct box sizing in IE 10-. * 2. Remove the padding in IE 10-. */ [type="checkbox"], [type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Correct the cursor style of increment and decrement buttons in Chrome. */ [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } /** * 1. Correct the odd appearance in Chrome and Safari. * 2. Correct the outline style in Safari. */ [type="search"] { -webkit-appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */ } /** * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. */ [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /** * 1. Correct the inability to style clickable types in iOS and Safari. * 2. Change font properties to `inherit` in Safari. */ ::-webkit-file-upload-button { -webkit-appearance: button; /* 1 */ font: inherit; /* 2 */ } /* Interactive ========================================================================== */ /* * Add the correct display in IE 9-. * 1. Add the correct display in Edge, IE, and Firefox. */ details, /* 1 */ menu { display: block; } /* * Add the correct display in all browsers. */ summary { display: list-item; } /* Scripting ========================================================================== */ /** * Add the correct display in IE 9-. */ canvas { display: inline-block; } /** * Add the correct display in IE. */ template { display: none; } /* Hidden ========================================================================== */ /** * Add the correct display in IE 10-. */ [hidden] { display: none; } /** * Manually forked from SUIT CSS Base: https://github.com/suitcss/base * A thin layer on top of normalize.css that provides a starting point more * suitable for web applications. */ /** * 1. Prevent padding and border from affecting element width * https://goo.gl/pYtbK7 * 2. Change the default font family in all browsers (opinionated) */ html { box-sizing: border-box; /* 1 */ font-family: sans-serif; /* 2 */ } *, *::before, *::after { box-sizing: inherit; } /** * Removes the default spacing and border for appropriate elements. */ blockquote, dl, dd, h1, h2, h3, h4, h5, h6, figure, p, pre { margin: 0; } button { background: transparent; padding: 0; } /** * Work around a Firefox/IE bug where the transparent `button` background * results in a loss of the default `button` focus styles. */ button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; } fieldset { margin: 0; padding: 0; } ol, ul { margin: 0; } /** * Suppress the focus outline on elements that cannot be accessed via keyboard. * This prevents an unwanted focus outline from appearing around elements that * might still respond to pointer events. */ [tabindex="-1"]:focus { outline: none !important; } /** * Tailwind custom reset styles */ /** * Allow adding a border to an element by just adding a border-width. * * By default, the way the browser specifies that an element should have no * border is by setting it's border-style to `none` in the user-agent * stylesheet. * * In order to easily add borders to elements by just setting the `border-width` * property, we change the default border-style for all elements to `solid`, and * use border-width to hide them instead. This way our `border` utilities only * need to set the `border-width` property instead of the entire `border` * shorthand, making our border utilities much more straightforward to compose. * * https://github.com/tailwindcss/tailwindcss/pull/116 */ *, *::before, *::after { border-width: 0; border-style: solid; border-color: #dae1e7; } /** * Undo the `border-style: none` reset that Normalize applies to images so that * our `border-{width}` utilities have the expected effect. * * The Normalize reset is unnecessary for us since we default the border-width * to 0 on all elements. * * https://github.com/tailwindcss/tailwindcss/issues/362 */ img { border-style: solid; } /** * Temporary reset for a change introduced in Chrome 62 but now reverted. * * We can remove this when the reversion is in a normal Chrome release. */ button, [type="button"], [type="reset"], [type="submit"] { border-radius: 0; } textarea { resize: vertical; } img { max-width: 100%; } button, input, optgroup, select, textarea { font-family: inherit; } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: inherit; opacity: .5; } input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: inherit; opacity: .5; } input::-ms-input-placeholder, textarea::-ms-input-placeholder { color: inherit; opacity: .5; } input::placeholder, textarea::placeholder { color: inherit; opacity: .5; } button, [role=button] { cursor: pointer; } .container { width: 100%; } @media (min-width: 576px) { .container { max-width: 576px; } } @media (min-width: 768px) { .container { max-width: 768px; } } @media (min-width: 992px) { .container { max-width: 992px; } } @media (min-width: 1200px) { .container { max-width: 1200px; } } .list-reset { list-style: none; padding: 0; } .appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .bg-fixed { background-attachment: fixed; } .bg-local { background-attachment: local; } .bg-scroll { background-attachment: scroll; } .bg-transparent { background-color: transparent; } .bg-black { background-color: #22292f; } .bg-grey-darkest { background-color: #3d4852; } .bg-grey-darker { background-color: #606f7b; } .bg-grey-dark { background-color: #8795a1; } .bg-grey { background-color: #b8c2cc; } .bg-grey-light { background-color: #dae1e7; } .bg-grey-lighter { background-color: #f1f5f8; } .bg-grey-lightest { background-color: #f8fafc; } .bg-white { background-color: #fff; } .bg-red-darkest { background-color: #3b0d0c; } .bg-red-darker { background-color: #621b18; } .bg-red-dark { background-color: #cc1f1a; } .bg-red { background-color: #e3342f; } .bg-red-light { background-color: #ef5753; } .bg-red-lighter { background-color: #f9acaa; } .bg-red-lightest { background-color: #fcebea; } .bg-orange-darkest { background-color: #462a16; } .bg-orange-darker { background-color: #613b1f; } .bg-orange-dark { background-color: #de751f; } .bg-orange { background-color: #f6993f; } .bg-orange-light { background-color: #faad63; } .bg-orange-lighter { background-color: #fcd9b6; } .bg-orange-lightest { background-color: #fff5eb; } .bg-yellow-darkest { background-color: #453411; } .bg-yellow-darker { background-color: #684f1d; } .bg-yellow-dark { background-color: #f2d024; } .bg-yellow { background-color: #ffed4a; } .bg-yellow-light { background-color: #fff382; } .bg-yellow-lighter { background-color: #fff9c2; } .bg-yellow-lightest { background-color: #fcfbeb; } .bg-green-darkest { background-color: #0f2f21; } .bg-green-darker { background-color: #1a4731; } .bg-green-dark { background-color: #1f9d55; } .bg-green { background-color: #38c172; } .bg-green-light { background-color: #51d88a; } .bg-green-lighter { background-color: #a2f5bf; } .bg-green-lightest { background-color: #e3fcec; } .bg-teal-darkest { background-color: #0d3331; } .bg-teal-darker { background-color: #20504f; } .bg-teal-dark { background-color: #38a89d; } .bg-teal { background-color: #4dc0b5; } .bg-teal-light { background-color: #64d5ca; } .bg-teal-lighter { background-color: #a0f0ed; } .bg-teal-lightest { background-color: #e8fffe; } .bg-blue-darkest { background-color: #12283a; } .bg-blue-darker { background-color: #1c3d5a; } .bg-blue-dark { background-color: #2779bd; } .bg-blue { background-color: #3490dc; } .bg-blue-light { background-color: #6cb2eb; } .bg-blue-lighter { background-color: #bcdefa; } .bg-blue-lightest { background-color: #eff8ff; } .bg-indigo-darkest { background-color: #191e38; } .bg-indigo-darker { background-color: #2f365f; } .bg-indigo-dark { background-color: #5661b3; } .bg-indigo { background-color: #6574cd; } .bg-indigo-light { background-color: #7886d7; } .bg-indigo-lighter { background-color: #b2b7ff; } .bg-indigo-lightest { background-color: #e6e8ff; } .bg-purple-darkest { background-color: #21183c; } .bg-purple-darker { background-color: #382b5f; } .bg-purple-dark { background-color: #794acf; } .bg-purple { background-color: #9561e2; } .bg-purple-light { background-color: #a779e9; } .bg-purple-lighter { background-color: #d6bbfc; } .bg-purple-lightest { background-color: #f3ebff; } .bg-pink-darkest { background-color: #451225; } .bg-pink-darker { background-color: #6f213f; } .bg-pink-dark { background-color: #eb5286; } .bg-pink { background-color: #f66d9b; } .bg-pink-light { background-color: #fa7ea8; } .bg-pink-lighter { background-color: #ffbbca; } .bg-pink-lightest { background-color: #ffebef; } .hover\:bg-transparent:hover { background-color: transparent; } .hover\:bg-black:hover { background-color: #22292f; } .hover\:bg-grey-darkest:hover { background-color: #3d4852; } .hover\:bg-grey-darker:hover { background-color: #606f7b; } .hover\:bg-grey-dark:hover { background-color: #8795a1; } .hover\:bg-grey:hover { background-color: #b8c2cc; } .hover\:bg-grey-light:hover { background-color: #dae1e7; } .hover\:bg-grey-lighter:hover { background-color: #f1f5f8; } .hover\:bg-grey-lightest:hover { background-color: #f8fafc; } .hover\:bg-white:hover { background-color: #fff; } .hover\:bg-red-darkest:hover { background-color: #3b0d0c; } .hover\:bg-red-darker:hover { background-color: #621b18; } .hover\:bg-red-dark:hover { background-color: #cc1f1a; } .hover\:bg-red:hover { background-color: #e3342f; } .hover\:bg-red-light:hover { background-color: #ef5753; } .hover\:bg-red-lighter:hover { background-color: #f9acaa; } .hover\:bg-red-lightest:hover { background-color: #fcebea; } .hover\:bg-orange-darkest:hover { background-color: #462a16; } .hover\:bg-orange-darker:hover { background-color: #613b1f; } .hover\:bg-orange-dark:hover { background-color: #de751f; } .hover\:bg-orange:hover { background-color: #f6993f; } .hover\:bg-orange-light:hover { background-color: #faad63; } .hover\:bg-orange-lighter:hover { background-color: #fcd9b6; } .hover\:bg-orange-lightest:hover { background-color: #fff5eb; } .hover\:bg-yellow-darkest:hover { background-color: #453411; } .hover\:bg-yellow-darker:hover { background-color: #684f1d; } .hover\:bg-yellow-dark:hover { background-color: #f2d024; } .hover\:bg-yellow:hover { background-color: #ffed4a; } .hover\:bg-yellow-light:hover { background-color: #fff382; } .hover\:bg-yellow-lighter:hover { background-color: #fff9c2; } .hover\:bg-yellow-lightest:hover { background-color: #fcfbeb; } .hover\:bg-green-darkest:hover { background-color: #0f2f21; } .hover\:bg-green-darker:hover { background-color: #1a4731; } .hover\:bg-green-dark:hover { background-color: #1f9d55; } .hover\:bg-green:hover { background-color: #38c172; } .hover\:bg-green-light:hover { background-color: #51d88a; } .hover\:bg-green-lighter:hover { background-color: #a2f5bf; } .hover\:bg-green-lightest:hover { background-color: #e3fcec; } .hover\:bg-teal-darkest:hover { background-color: #0d3331; } .hover\:bg-teal-darker:hover { background-color: #20504f; } .hover\:bg-teal-dark:hover { background-color: #38a89d; } .hover\:bg-teal:hover { background-color: #4dc0b5; } .hover\:bg-teal-light:hover { background-color: #64d5ca; } .hover\:bg-teal-lighter:hover { background-color: #a0f0ed; } .hover\:bg-teal-lightest:hover { background-color: #e8fffe; } .hover\:bg-blue-darkest:hover { background-color: #12283a; } .hover\:bg-blue-darker:hover { background-color: #1c3d5a; } .hover\:bg-blue-dark:hover { background-color: #2779bd; } .hover\:bg-blue:hover { background-color: #3490dc; } .hover\:bg-blue-light:hover { background-color: #6cb2eb; } .hover\:bg-blue-lighter:hover { background-color: #bcdefa; } .hover\:bg-blue-lightest:hover { background-color: #eff8ff; } .hover\:bg-indigo-darkest:hover { background-color: #191e38; } .hover\:bg-indigo-darker:hover { background-color: #2f365f; } .hover\:bg-indigo-dark:hover { background-color: #5661b3; } .hover\:bg-indigo:hover { background-color: #6574cd; } .hover\:bg-indigo-light:hover { background-color: #7886d7; } .hover\:bg-indigo-lighter:hover { background-color: #b2b7ff; } .hover\:bg-indigo-lightest:hover { background-color: #e6e8ff; } .hover\:bg-purple-darkest:hover { background-color: #21183c; } .hover\:bg-purple-darker:hover { background-color: #382b5f; } .hover\:bg-purple-dark:hover { background-color: #794acf; } .hover\:bg-purple:hover { background-color: #9561e2; } .hover\:bg-purple-light:hover { background-color: #a779e9; } .hover\:bg-purple-lighter:hover { background-color: #d6bbfc; } .hover\:bg-purple-lightest:hover { background-color: #f3ebff; } .hover\:bg-pink-darkest:hover { background-color: #451225; } .hover\:bg-pink-darker:hover { background-color: #6f213f; } .hover\:bg-pink-dark:hover { background-color: #eb5286; } .hover\:bg-pink:hover { background-color: #f66d9b; } .hover\:bg-pink-light:hover { background-color: #fa7ea8; } .hover\:bg-pink-lighter:hover { background-color: #ffbbca; } .hover\:bg-pink-lightest:hover { background-color: #ffebef; } .bg-bottom { background-position: bottom; } .bg-center { background-position: center; } .bg-left { background-position: left; } .bg-left-bottom { background-position: left bottom; } .bg-left-top { background-position: left top; } .bg-right { background-position: right; } .bg-right-bottom { background-position: right bottom; } .bg-right-top { background-position: right top; } .bg-top { background-position: top; } .bg-repeat { background-repeat: repeat; } .bg-no-repeat { background-repeat: no-repeat; } .bg-repeat-x { background-repeat: repeat-x; } .bg-repeat-y { background-repeat: repeat-y; } .bg-auto { background-size: auto; } .bg-cover { background-size: cover; } .bg-contain { background-size: contain; } .border-transparent { border-color: transparent; } .border-black { border-color: #22292f; } .border-grey-darkest { border-color: #3d4852; } .border-grey-darker { border-color: #606f7b; } .border-grey-dark { border-color: #8795a1; } .border-grey { border-color: #b8c2cc; } .border-grey-light { border-color: #dae1e7; } .border-grey-lighter { border-color: #f1f5f8; } .border-grey-lightest { border-color: #f8fafc; } .border-white { border-color: #fff; } .border-red-darkest { border-color: #3b0d0c; } .border-red-darker { border-color: #621b18; } .border-red-dark { border-color: #cc1f1a; } .border-red { border-color: #e3342f; } .border-red-light { border-color: #ef5753; } .border-red-lighter { border-color: #f9acaa; } .border-red-lightest { border-color: #fcebea; } .border-orange-darkest { border-color: #462a16; } .border-orange-darker { border-color: #613b1f; } .border-orange-dark { border-color: #de751f; } .border-orange { border-color: #f6993f; } .border-orange-light { border-color: #faad63; } .border-orange-lighter { border-color: #fcd9b6; } .border-orange-lightest { border-color: #fff5eb; } .border-yellow-darkest { border-color: #453411; } .border-yellow-darker { border-color: #684f1d; } .border-yellow-dark { border-color: #f2d024; } .border-yellow { border-color: #ffed4a; } .border-yellow-light { border-color: #fff382; } .border-yellow-lighter { border-color: #fff9c2; } .border-yellow-lightest { border-color: #fcfbeb; } .border-green-darkest { border-color: #0f2f21; } .border-green-darker { border-color: #1a4731; } .border-green-dark { border-color: #1f9d55; } .border-green { border-color: #38c172; } .border-green-light { border-color: #51d88a; } .border-green-lighter { border-color: #a2f5bf; } .border-green-lightest { border-color: #e3fcec; } .border-teal-darkest { border-color: #0d3331; } .border-teal-darker { border-color: #20504f; } .border-teal-dark { border-color: #38a89d; } .border-teal { border-color: #4dc0b5; } .border-teal-light { border-color: #64d5ca; } .border-teal-lighter { border-color: #a0f0ed; } .border-teal-lightest { border-color: #e8fffe; } .border-blue-darkest { border-color: #12283a; } .border-blue-darker { border-color: #1c3d5a; } .border-blue-dark { border-color: #2779bd; } .border-blue { border-color: #3490dc; } .border-blue-light { border-color: #6cb2eb; } .border-blue-lighter { border-color: #bcdefa; } .border-blue-lightest { border-color: #eff8ff; } .border-indigo-darkest { border-color: #191e38; } .border-indigo-darker { border-color: #2f365f; } .border-indigo-dark { border-color: #5661b3; } .border-indigo { border-color: #6574cd; } .border-indigo-light { border-color: #7886d7; } .border-indigo-lighter { border-color: #b2b7ff; } .border-indigo-lightest { border-color: #e6e8ff; } .border-purple-darkest { border-color: #21183c; } .border-purple-darker { border-color: #382b5f; } .border-purple-dark { border-color: #794acf; } .border-purple { border-color: #9561e2; } .border-purple-light { border-color: #a779e9; } .border-purple-lighter { border-color: #d6bbfc; } .border-purple-lightest { border-color: #f3ebff; } .border-pink-darkest { border-color: #451225; } .border-pink-darker { border-color: #6f213f; } .border-pink-dark { border-color: #eb5286; } .border-pink { border-color: #f66d9b; } .border-pink-light { border-color: #fa7ea8; } .border-pink-lighter { border-color: #ffbbca; } .border-pink-lightest { border-color: #ffebef; } .hover\:border-transparent:hover { border-color: transparent; } .hover\:border-black:hover { border-color: #22292f; } .hover\:border-grey-darkest:hover { border-color: #3d4852; } .hover\:border-grey-darker:hover { border-color: #606f7b; } .hover\:border-grey-dark:hover { border-color: #8795a1; } .hover\:border-grey:hover { border-color: #b8c2cc; } .hover\:border-grey-light:hover { border-color: #dae1e7; } .hover\:border-grey-lighter:hover { border-color: #f1f5f8; } .hover\:border-grey-lightest:hover { border-color: #f8fafc; } .hover\:border-white:hover { border-color: #fff; } .hover\:border-red-darkest:hover { border-color: #3b0d0c; } .hover\:border-red-darker:hover { border-color: #621b18; } .hover\:border-red-dark:hover { border-color: #cc1f1a; } .hover\:border-red:hover { border-color: #e3342f; } .hover\:border-red-light:hover { border-color: #ef5753; } .hover\:border-red-lighter:hover { border-color: #f9acaa; } .hover\:border-red-lightest:hover { border-color: #fcebea; } .hover\:border-orange-darkest:hover { border-color: #462a16; } .hover\:border-orange-darker:hover { border-color: #613b1f; } .hover\:border-orange-dark:hover { border-color: #de751f; } .hover\:border-orange:hover { border-color: #f6993f; } .hover\:border-orange-light:hover { border-color: #faad63; } .hover\:border-orange-lighter:hover { border-color: #fcd9b6; } .hover\:border-orange-lightest:hover { border-color: #fff5eb; } .hover\:border-yellow-darkest:hover { border-color: #453411; } .hover\:border-yellow-darker:hover { border-color: #684f1d; } .hover\:border-yellow-dark:hover { border-color: #f2d024; } .hover\:border-yellow:hover { border-color: #ffed4a; } .hover\:border-yellow-light:hover { border-color: #fff382; } .hover\:border-yellow-lighter:hover { border-color: #fff9c2; } .hover\:border-yellow-lightest:hover { border-color: #fcfbeb; } .hover\:border-green-darkest:hover { border-color: #0f2f21; } .hover\:border-green-darker:hover { border-color: #1a4731; } .hover\:border-green-dark:hover { border-color: #1f9d55; } .hover\:border-green:hover { border-color: #38c172; } .hover\:border-green-light:hover { border-color: #51d88a; } .hover\:border-green-lighter:hover { border-color: #a2f5bf; } .hover\:border-green-lightest:hover { border-color: #e3fcec; } .hover\:border-teal-darkest:hover { border-color: #0d3331; } .hover\:border-teal-darker:hover { border-color: #20504f; } .hover\:border-teal-dark:hover { border-color: #38a89d; } .hover\:border-teal:hover { border-color: #4dc0b5; } .hover\:border-teal-light:hover { border-color: #64d5ca; } .hover\:border-teal-lighter:hover { border-color: #a0f0ed; } .hover\:border-teal-lightest:hover { border-color: #e8fffe; } .hover\:border-blue-darkest:hover { border-color: #12283a; } .hover\:border-blue-darker:hover { border-color: #1c3d5a; } .hover\:border-blue-dark:hover { border-color: #2779bd; } .hover\:border-blue:hover { border-color: #3490dc; } .hover\:border-blue-light:hover { border-color: #6cb2eb; } .hover\:border-blue-lighter:hover { border-color: #bcdefa; } .hover\:border-blue-lightest:hover { border-color: #eff8ff; } .hover\:border-indigo-darkest:hover { border-color: #191e38; } .hover\:border-indigo-darker:hover { border-color: #2f365f; } .hover\:border-indigo-dark:hover { border-color: #5661b3; } .hover\:border-indigo:hover { border-color: #6574cd; } .hover\:border-indigo-light:hover { border-color: #7886d7; } .hover\:border-indigo-lighter:hover { border-color: #b2b7ff; } .hover\:border-indigo-lightest:hover { border-color: #e6e8ff; } .hover\:border-purple-darkest:hover { border-color: #21183c; } .hover\:border-purple-darker:hover { border-color: #382b5f; } .hover\:border-purple-dark:hover { border-color: #794acf; } .hover\:border-purple:hover { border-color: #9561e2; } .hover\:border-purple-light:hover { border-color: #a779e9; } .hover\:border-purple-lighter:hover { border-color: #d6bbfc; } .hover\:border-purple-lightest:hover { border-color: #f3ebff; } .hover\:border-pink-darkest:hover { border-color: #451225; } .hover\:border-pink-darker:hover { border-color: #6f213f; } .hover\:border-pink-dark:hover { border-color: #eb5286; } .hover\:border-pink:hover { border-color: #f66d9b; } .hover\:border-pink-light:hover { border-color: #fa7ea8; } .hover\:border-pink-lighter:hover { border-color: #ffbbca; } .hover\:border-pink-lightest:hover { border-color: #ffebef; } .rounded-none { border-radius: 0; } .rounded-sm { border-radius: .125rem; } .rounded { border-radius: .25rem; } .rounded-lg { border-radius: .5rem; } .rounded-full { border-radius: 9999px; } .rounded-t-none { border-top-left-radius: 0; border-top-right-radius: 0; } .rounded-r-none { border-top-right-radius: 0; border-bottom-right-radius: 0; } .rounded-b-none { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .rounded-l-none { border-top-left-radius: 0; border-bottom-left-radius: 0; } .rounded-t-sm { border-top-left-radius: .125rem; border-top-right-radius: .125rem; } .rounded-r-sm { border-top-right-radius: .125rem; border-bottom-right-radius: .125rem; } .rounded-b-sm { border-bottom-right-radius: .125rem; border-bottom-left-radius: .125rem; } .rounded-l-sm { border-top-left-radius: .125rem; border-bottom-left-radius: .125rem; } .rounded-t { border-top-left-radius: .25rem; border-top-right-radius: .25rem; } .rounded-r { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; } .rounded-b { border-bottom-right-radius: .25rem; border-bottom-left-radius: .25rem; } .rounded-l { border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; } .rounded-t-lg { border-top-left-radius: .5rem; border-top-right-radius: .5rem; } .rounded-r-lg { border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; } .rounded-b-lg { border-bottom-right-radius: .5rem; border-bottom-left-radius: .5rem; } .rounded-l-lg { border-top-left-radius: .5rem; border-bottom-left-radius: .5rem; } .rounded-t-full { border-top-left-radius: 9999px; border-top-right-radius: 9999px; } .rounded-r-full { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; } .rounded-b-full { border-bottom-right-radius: 9999px; border-bottom-left-radius: 9999px; } .rounded-l-full { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; } .rounded-tl-none { border-top-left-radius: 0; } .rounded-tr-none { border-top-right-radius: 0; } .rounded-br-none { border-bottom-right-radius: 0; } .rounded-bl-none { border-bottom-left-radius: 0; } .rounded-tl-sm { border-top-left-radius: .125rem; } .rounded-tr-sm { border-top-right-radius: .125rem; } .rounded-br-sm { border-bottom-right-radius: .125rem; } .rounded-bl-sm { border-bottom-left-radius: .125rem; } .rounded-tl { border-top-left-radius: .25rem; } .rounded-tr { border-top-right-radius: .25rem; } .rounded-br { border-bottom-right-radius: .25rem; } .rounded-bl { border-bottom-left-radius: .25rem; } .rounded-tl-lg { border-top-left-radius: .5rem; } .rounded-tr-lg { border-top-right-radius: .5rem; } .rounded-br-lg { border-bottom-right-radius: .5rem; } .rounded-bl-lg { border-bottom-left-radius: .5rem; } .rounded-tl-full { border-top-left-radius: 9999px; } .rounded-tr-full { border-top-right-radius: 9999px; } .rounded-br-full { border-bottom-right-radius: 9999px; } .rounded-bl-full { border-bottom-left-radius: 9999px; } .border-solid { border-style: solid; } .border-dashed { border-style: dashed; } .border-dotted { border-style: dotted; } .border-none { border-style: none; } .border-0 { border-width: 0; } .border-2 { border-width: 2px; } .border-4 { border-width: 4px; } .border-8 { border-width: 8px; } .border { border-width: 1px; } .border-t-0 { border-top-width: 0; } .border-r-0 { border-right-width: 0; } .border-b-0 { border-bottom-width: 0; } .border-l-0 { border-left-width: 0; } .border-t-2 { border-top-width: 2px; } .border-r-2 { border-right-width: 2px; } .border-b-2 { border-bottom-width: 2px; } .border-l-2 { border-left-width: 2px; } .border-t-4 { border-top-width: 4px; } .border-r-4 { border-right-width: 4px; } .border-b-4 { border-bottom-width: 4px; } .border-l-4 { border-left-width: 4px; } .border-t-8 { border-top-width: 8px; } .border-r-8 { border-right-width: 8px; } .border-b-8 { border-bottom-width: 8px; } .border-l-8 { border-left-width: 8px; } .border-t { border-top-width: 1px; } .border-r { border-right-width: 1px; } .border-b { border-bottom-width: 1px; } .border-l { border-left-width: 1px; } .cursor-auto { cursor: auto; } .cursor-default { cursor: default; } .cursor-pointer { cursor: pointer; } .cursor-wait { cursor: wait; } .cursor-move { cursor: move; } .cursor-not-allowed { cursor: not-allowed; } .block { display: block; } .inline-block { display: inline-block; } .inline { display: inline; } .table { display: table; } .table-row { display: table-row; } .table-cell { display: table-cell; } .hidden { display: none; } .flex { display: flex; } .inline-flex { display: inline-flex; } .flex-row { flex-direction: row; } .flex-row-reverse { flex-direction: row-reverse; } .flex-col { flex-direction: column; } .flex-col-reverse { flex-direction: column-reverse; } .flex-wrap { flex-wrap: wrap; } .flex-wrap-reverse { flex-wrap: wrap-reverse; } .flex-no-wrap { flex-wrap: nowrap; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; } .items-center { align-items: center; } .items-baseline { align-items: baseline; } .items-stretch { align-items: stretch; } .self-auto { align-self: auto; } .self-start { align-self: flex-start; } .self-end { align-self: flex-end; } .self-center { align-self: center; } .self-stretch { align-self: stretch; } .justify-start { justify-content: flex-start; } .justify-end { justify-content: flex-end; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .justify-around { justify-content: space-around; } .content-center { align-content: center; } .content-start { align-content: flex-start; } .content-end { align-content: flex-end; } .content-between { align-content: space-between; } .content-around { align-content: space-around; } .flex-1 { flex: 1; } .flex-auto { flex: auto; } .flex-initial { flex: initial; } .flex-none { flex: none; } .flex-grow { flex-grow: 1; } .flex-shrink { flex-shrink: 1; } .flex-no-grow { flex-grow: 0; } .flex-no-shrink { flex-shrink: 0; } .float-right { float: right; } .float-left { float: left; } .float-none { float: none; } .clearfix:after { content: ""; display: table; clear: both; } .font-sans { font-family: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } .font-serif { font-family: Constantia, Lucida Bright, Lucidabright, Lucida Serif, Lucida, DejaVu Serif, Bitstream Vera Serif, Liberation Serif, Georgia, serif; } .font-mono { font-family: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; } .font-hairline { font-weight: 100; } .font-thin { font-weight: 200; } .font-light { font-weight: 300; } .font-normal { font-weight: 400; } .font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; } .font-black { font-weight: 900; } .hover\:font-hairline:hover { font-weight: 100; } .hover\:font-thin:hover { font-weight: 200; } .hover\:font-light:hover { font-weight: 300; } .hover\:font-normal:hover { font-weight: 400; } .hover\:font-medium:hover { font-weight: 500; } .hover\:font-semibold:hover { font-weight: 600; } .hover\:font-bold:hover { font-weight: 700; } .hover\:font-extrabold:hover { font-weight: 800; } .hover\:font-black:hover { font-weight: 900; } .h-1 { height: .25rem; } .h-2 { height: .5rem; } .h-3 { height: .75rem; } .h-4 { height: 1rem; } .h-6 { height: 1.5rem; } .h-8 { height: 2rem; } .h-10 { height: 2.5rem; } .h-12 { height: 3rem; } .h-16 { height: 4rem; } .h-24 { height: 6rem; } .h-32 { height: 8rem; } .h-48 { height: 12rem; } .h-64 { height: 16rem; } .h-auto { height: auto; } .h-px { height: 1px; } .h-full { height: 100%; } .h-screen { height: 100vh; } .leading-none { line-height: 1; } .leading-tight { line-height: 1.25; } .leading-normal { line-height: 1.5; } .leading-loose { line-height: 2; } .m-0 { margin: 0; } .m-1 { margin: .25rem; } .m-2 { margin: .5rem; } .m-3 { margin: .75rem; } .m-4 { margin: 1rem; } .m-6 { margin: 1.5rem; } .m-8 { margin: 2rem; } .m-auto { margin: auto; } .m-px { margin: 1px; } .my-0 { margin-top: 0; margin-bottom: 0; } .mx-0 { margin-left: 0; margin-right: 0; } .my-1 { margin-top: .25rem; margin-bottom: .25rem; } .mx-1 { margin-left: .25rem; margin-right: .25rem; } .my-2 { margin-top: .5rem; margin-bottom: .5rem; } .mx-2 { margin-left: .5rem; margin-right: .5rem; } .my-3 { margin-top: .75rem; margin-bottom: .75rem; } .mx-3 { margin-left: .75rem; margin-right: .75rem; } .my-4 { margin-top: 1rem; margin-bottom: 1rem; } .mx-4 { margin-left: 1rem; margin-right: 1rem; } .my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; } .mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; } .my-8 { margin-top: 2rem; margin-bottom: 2rem; } .mx-8 { margin-left: 2rem; margin-right: 2rem; } .my-auto { margin-top: auto; margin-bottom: auto; } .mx-auto { margin-left: auto; margin-right: auto; } .my-px { margin-top: 1px; margin-bottom: 1px; } .mx-px { margin-left: 1px; margin-right: 1px; } .mt-0 { margin-top: 0; } .mr-0 { margin-right: 0; } .mb-0 { margin-bottom: 0; } .ml-0 { margin-left: 0; } .mt-1 { margin-top: .25rem; } .mr-1 { margin-right: .25rem; } .mb-1 { margin-bottom: .25rem; } .ml-1 { margin-left: .25rem; } .mt-2 { margin-top: .5rem; } .mr-2 { margin-right: .5rem; } .mb-2 { margin-bottom: .5rem; } .ml-2 { margin-left: .5rem; } .mt-3 { margin-top: .75rem; } .mr-3 { margin-right: .75rem; } .mb-3 { margin-bottom: .75rem; } .ml-3 { margin-left: .75rem; } .mt-4 { margin-top: 1rem; } .mr-4 { margin-right: 1rem; } .mb-4 { margin-bottom: 1rem; } .ml-4 { margin-left: 1rem; } .mt-6 { margin-top: 1.5rem; } .mr-6 { margin-right: 1.5rem; } .mb-6 { margin-bottom: 1.5rem; } .ml-6 { margin-left: 1.5rem; } .mt-8 { margin-top: 2rem; } .mr-8 { margin-right: 2rem; } .mb-8 { margin-bottom: 2rem; } .ml-8 { margin-left: 2rem; } .mt-auto { margin-top: auto; } .mr-auto { margin-right: auto; } .mb-auto { margin-bottom: auto; } .ml-auto { margin-left: auto; } .mt-px { margin-top: 1px; } .mr-px { margin-right: 1px; } .mb-px { margin-bottom: 1px; } .ml-px { margin-left: 1px; } .max-h-full { max-height: 100%; } .max-h-screen { max-height: 100vh; } .max-w-xs { max-width: 20rem; } .max-w-sm { max-width: 30rem; } .max-w-md { max-width: 40rem; } .max-w-lg { max-width: 50rem; } .max-w-xl { max-width: 60rem; } .max-w-2xl { max-width: 70rem; } .max-w-3xl { max-width: 80rem; } .max-w-4xl { max-width: 90rem; } .max-w-5xl { max-width: 100rem; } .max-w-full { max-width: 100%; } .min-h-0 { min-height: 0; } .min-h-full { min-height: 100%; } .min-h-screen { min-height: 100vh; } .min-w-0 { min-width: 0; } .min-w-full { min-width: 100%; } .-m-0 { margin: 0; } .-m-1 { margin: -0.25rem; } .-m-2 { margin: -0.5rem; } .-m-3 { margin: -0.75rem; } .-m-4 { margin: -1rem; } .-m-6 { margin: -1.5rem; } .-m-8 { margin: -2rem; } .-m-px { margin: -1px; } .-my-0 { margin-top: 0; margin-bottom: 0; } .-mx-0 { margin-left: 0; margin-right: 0; } .-my-1 { margin-top: -0.25rem; margin-bottom: -0.25rem; } .-mx-1 { margin-left: -0.25rem; margin-right: -0.25rem; } .-my-2 { margin-top: -0.5rem; margin-bottom: -0.5rem; } .-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; } .-my-3 { margin-top: -0.75rem; margin-bottom: -0.75rem; } .-mx-3 { margin-left: -0.75rem; margin-right: -0.75rem; } .-my-4 { margin-top: -1rem; margin-bottom: -1rem; } .-mx-4 { margin-left: -1rem; margin-right: -1rem; } .-my-6 { margin-top: -1.5rem; margin-bottom: -1.5rem; } .-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; } .-my-8 { margin-top: -2rem; margin-bottom: -2rem; } .-mx-8 { margin-left: -2rem; margin-right: -2rem; } .-my-px { margin-top: -1px; margin-bottom: -1px; } .-mx-px { margin-left: -1px; margin-right: -1px; } .-mt-0 { margin-top: 0; } .-mr-0 { margin-right: 0; } .-mb-0 { margin-bottom: 0; } .-ml-0 { margin-left: 0; } .-mt-1 { margin-top: -0.25rem; } .-mr-1 { margin-right: -0.25rem; } .-mb-1 { margin-bottom: -0.25rem; } .-ml-1 { margin-left: -0.25rem; } .-mt-2 { margin-top: -0.5rem; } .-mr-2 { margin-right: -0.5rem; } .-mb-2 { margin-bottom: -0.5rem; } .-ml-2 { margin-left: -0.5rem; } .-mt-3 { margin-top: -0.75rem; } .-mr-3 { margin-right: -0.75rem; } .-mb-3 { margin-bottom: -0.75rem; } .-ml-3 { margin-left: -0.75rem; } .-mt-4 { margin-top: -1rem; } .-mr-4 { margin-right: -1rem; } .-mb-4 { margin-bottom: -1rem; } .-ml-4 { margin-left: -1rem; } .-mt-6 { margin-top: -1.5rem; } .-mr-6 { margin-right: -1.5rem; } .-mb-6 { margin-bottom: -1.5rem; } .-ml-6 { margin-left: -1.5rem; } .-mt-8 { margin-top: -2rem; } .-mr-8 { margin-right: -2rem; } .-mb-8 { margin-bottom: -2rem; } .-ml-8 { margin-left: -2rem; } .-mt-px { margin-top: -1px; } .-mr-px { margin-right: -1px; } .-mb-px { margin-bottom: -1px; } .-ml-px { margin-left: -1px; } .opacity-0 { opacity: 0; } .opacity-25 { opacity: .25; } .opacity-50 { opacity: .5; } .opacity-75 { opacity: .75; } .opacity-100 { opacity: 1; } .overflow-auto { overflow: auto; } .overflow-hidden { overflow: hidden; } .overflow-visible { overflow: visible; } .overflow-scroll { overflow: scroll; } .overflow-x-auto { overflow-x: auto; } .overflow-y-auto { overflow-y: auto; } .overflow-x-scroll { overflow-x: scroll; } .overflow-y-scroll { overflow-y: scroll; } .scrolling-touch { -webkit-overflow-scrolling: touch; } .scrolling-auto { -webkit-overflow-scrolling: auto; } .p-0 { padding: 0; } .p-1 { padding: .25rem; } .p-2 { padding: .5rem; } .p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .p-px { padding: 1px; } .py-0 { padding-top: 0; padding-bottom: 0; } .px-0 { padding-left: 0; padding-right: 0; } .py-1 { padding-top: .25rem; padding-bottom: .25rem; } .px-1 { padding-left: .25rem; padding-right: .25rem; } .py-2 { padding-top: .5rem; padding-bottom: .5rem; } .px-2 { padding-left: .5rem; padding-right: .5rem; } .py-3 { padding-top: .75rem; padding-bottom: .75rem; } .px-3 { padding-left: .75rem; padding-right: .75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .py-8 { padding-top: 2rem; padding-bottom: 2rem; } .px-8 { padding-left: 2rem; padding-right: 2rem; } .py-px { padding-top: 1px; padding-bottom: 1px; } .px-px { padding-left: 1px; padding-right: 1px; } .pt-0 { padding-top: 0; } .pr-0 { padding-right: 0; } .pb-0 { padding-bottom: 0; } .pl-0 { padding-left: 0; } .pt-1 { padding-top: .25rem; } .pr-1 { padding-right: .25rem; } .pb-1 { padding-bottom: .25rem; } .pl-1 { padding-left: .25rem; } .pt-2 { padding-top: .5rem; } .pr-2 { padding-right: .5rem; } .pb-2 { padding-bottom: .5rem; } .pl-2 { padding-left: .5rem; } .pt-3 { padding-top: .75rem; } .pr-3 { padding-right: .75rem; } .pb-3 { padding-bottom: .75rem; } .pl-3 { padding-left: .75rem; } .pt-4 { padding-top: 1rem; } .pr-4 { padding-right: 1rem; } .pb-4 { padding-bottom: 1rem; } .pl-4 { padding-left: 1rem; } .pt-6 { padding-top: 1.5rem; } .pr-6 { padding-right: 1.5rem; } .pb-6 { padding-bottom: 1.5rem; } .pl-6 { padding-left: 1.5rem; } .pt-8 { padding-top: 2rem; } .pr-8 { padding-right: 2rem; } .pb-8 { padding-bottom: 2rem; } .pl-8 { padding-left: 2rem; } .pt-px { padding-top: 1px; } .pr-px { padding-right: 1px; } .pb-px { padding-bottom: 1px; } .pl-px { padding-left: 1px; } .pointer-events-none { pointer-events: none; } .pointer-events-auto { pointer-events: auto; } .static { position: static; } .fixed { position: fixed; } .absolute { position: absolute; } .relative { position: relative; } .sticky { position: -webkit-sticky; position: sticky; } .pin-none { top: auto; right: auto; bottom: auto; left: auto; } .pin { top: 0; right: 0; bottom: 0; left: 0; } .pin-y { top: 0; bottom: 0; } .pin-x { right: 0; left: 0; } .pin-t { top: 0; } .pin-r { right: 0; } .pin-b { bottom: 0; } .pin-l { left: 0; } .resize-none { resize: none; } .resize-y { resize: vertical; } .resize-x { resize: horizontal; } .resize { resize: both; } .shadow { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1); } .shadow-md { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .12), 0 2px 4px 0 rgba(0, 0, 0, .08); } .shadow-lg { box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .11), 0 5px 15px 0 rgba(0, 0, 0, .08); } .shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .06); } .shadow-none { box-shadow: none; } .fill-current { fill: currentColor; } .stroke-current { stroke: currentColor; } .text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; } .text-justify { text-align: justify; } .text-transparent { color: transparent; } .text-black { color: #22292f; } .text-grey-darkest { color: #3d4852; } .text-grey-darker { color: #606f7b; } .text-grey-dark { color: #8795a1; } .text-grey { color: #b8c2cc; } .text-grey-light { color: #dae1e7; } .text-grey-lighter { color: #f1f5f8; } .text-grey-lightest { color: #f8fafc; } .text-white { color: #fff; } .text-red-darkest { color: #3b0d0c; } .text-red-darker { color: #621b18; } .text-red-dark { color: #cc1f1a; } .text-red { color: #e3342f; } .text-red-light { color: #ef5753; } .text-red-lighter { color: #f9acaa; } .text-red-lightest { color: #fcebea; } .text-orange-darkest { color: #462a16; } .text-orange-darker { color: #613b1f; } .text-orange-dark { color: #de751f; } .text-orange { color: #f6993f; } .text-orange-light { color: #faad63; } .text-orange-lighter { color: #fcd9b6; } .text-orange-lightest { color: #fff5eb; } .text-yellow-darkest { color: #453411; } .text-yellow-darker { color: #684f1d; } .text-yellow-dark { color: #f2d024; } .text-yellow { color: #ffed4a; } .text-yellow-light { color: #fff382; } .text-yellow-lighter { color: #fff9c2; } .text-yellow-lightest { color: #fcfbeb; } .text-green-darkest { color: #0f2f21; } .text-green-darker { color: #1a4731; } .text-green-dark { color: #1f9d55; } .text-green { color: #38c172; } .text-green-light { color: #51d88a; } .text-green-lighter { color: #a2f5bf; } .text-green-lightest { color: #e3fcec; } .text-teal-darkest { color: #0d3331; } .text-teal-darker { color: #20504f; } .text-teal-dark { color: #38a89d; } .text-teal { color: #4dc0b5; } .text-teal-light { color: #64d5ca; } .text-teal-lighter { color: #a0f0ed; } .text-teal-lightest { color: #e8fffe; } .text-blue-darkest { color: #12283a; } .text-blue-darker { color: #1c3d5a; } .text-blue-dark { color: #2779bd; } .text-blue { color: #3490dc; } .text-blue-light { color: #6cb2eb; } .text-blue-lighter { color: #bcdefa; } .text-blue-lightest { color: #eff8ff; } .text-indigo-darkest { color: #191e38; } .text-indigo-darker { color: #2f365f; } .text-indigo-dark { color: #5661b3; } .text-indigo { color: #6574cd; } .text-indigo-light { color: #7886d7; } .text-indigo-lighter { color: #b2b7ff; } .text-indigo-lightest { color: #e6e8ff; } .text-purple-darkest { color: #21183c; } .text-purple-darker { color: #382b5f; } .text-purple-dark { color: #794acf; } .text-purple { color: #9561e2; } .text-purple-light { color: #a779e9; } .text-purple-lighter { color: #d6bbfc; } .text-purple-lightest { color: #f3ebff; } .text-pink-darkest { color: #451225; } .text-pink-darker { color: #6f213f; } .text-pink-dark { color: #eb5286; } .text-pink { color: #f66d9b; } .text-pink-light { color: #fa7ea8; } .text-pink-lighter { color: #ffbbca; } .text-pink-lightest { color: #ffebef; } .hover\:text-transparent:hover { color: transparent; } .hover\:text-black:hover { color: #22292f; } .hover\:text-grey-darkest:hover { color: #3d4852; } .hover\:text-grey-darker:hover { color: #606f7b; } .hover\:text-grey-dark:hover { color: #8795a1; } .hover\:text-grey:hover { color: #b8c2cc; } .hover\:text-grey-light:hover { color: #dae1e7; } .hover\:text-grey-lighter:hover { color: #f1f5f8; } .hover\:text-grey-lightest:hover { color: #f8fafc; } .hover\:text-white:hover { color: #fff; } .hover\:text-red-darkest:hover { color: #3b0d0c; } .hover\:text-red-darker:hover { color: #621b18; } .hover\:text-red-dark:hover { color: #cc1f1a; } .hover\:text-red:hover { color: #e3342f; } .hover\:text-red-light:hover { color: #ef5753; } .hover\:text-red-lighter:hover { color: #f9acaa; } .hover\:text-red-lightest:hover { color: #fcebea; } .hover\:text-orange-darkest:hover { color: #462a16; } .hover\:text-orange-darker:hover { color: #613b1f; } .hover\:text-orange-dark:hover { color: #de751f; } .hover\:text-orange:hover { color: #f6993f; } .hover\:text-orange-light:hover { color: #faad63; } .hover\:text-orange-lighter:hover { color: #fcd9b6; } .hover\:text-orange-lightest:hover { color: #fff5eb; } .hover\:text-yellow-darkest:hover { color: #453411; } .hover\:text-yellow-darker:hover { color: #684f1d; } .hover\:text-yellow-dark:hover { color: #f2d024; } .hover\:text-yellow:hover { color: #ffed4a; } .hover\:text-yellow-light:hover { color: #fff382; } .hover\:text-yellow-lighter:hover { color: #fff9c2; } .hover\:text-yellow-lightest:hover { color: #fcfbeb; } .hover\:text-green-darkest:hover { color: #0f2f21; } .hover\:text-green-darker:hover { color: #1a4731; } .hover\:text-green-dark:hover { color: #1f9d55; } .hover\:text-green:hover { color: #38c172; } .hover\:text-green-light:hover { color: #51d88a; } .hover\:text-green-lighter:hover { color: #a2f5bf; } .hover\:text-green-lightest:hover { color: #e3fcec; } .hover\:text-teal-darkest:hover { color: #0d3331; } .hover\:text-teal-darker:hover { color: #20504f; } .hover\:text-teal-dark:hover { color: #38a89d; } .hover\:text-teal:hover { color: #4dc0b5; } .hover\:text-teal-light:hover { color: #64d5ca; } .hover\:text-teal-lighter:hover { color: #a0f0ed; } .hover\:text-teal-lightest:hover { color: #e8fffe; } .hover\:text-blue-darkest:hover { color: #12283a; } .hover\:text-blue-darker:hover { color: #1c3d5a; } .hover\:text-blue-dark:hover { color: #2779bd; } .hover\:text-blue:hover { color: #3490dc; } .hover\:text-blue-light:hover { color: #6cb2eb; } .hover\:text-blue-lighter:hover { color: #bcdefa; } .hover\:text-blue-lightest:hover { color: #eff8ff; } .hover\:text-indigo-darkest:hover { color: #191e38; } .hover\:text-indigo-darker:hover { color: #2f365f; } .hover\:text-indigo-dark:hover { color: #5661b3; } .hover\:text-indigo:hover { color: #6574cd; } .hover\:text-indigo-light:hover { color: #7886d7; } .hover\:text-indigo-lighter:hover { color: #b2b7ff; } .hover\:text-indigo-lightest:hover { color: #e6e8ff; } .hover\:text-purple-darkest:hover { color: #21183c; } .hover\:text-purple-darker:hover { color: #382b5f; } .hover\:text-purple-dark:hover { color: #794acf; } .hover\:text-purple:hover { color: #9561e2; } .hover\:text-purple-light:hover { color: #a779e9; } .hover\:text-purple-lighter:hover { color: #d6bbfc; } .hover\:text-purple-lightest:hover { color: #f3ebff; } .hover\:text-pink-darkest:hover { color: #451225; } .hover\:text-pink-darker:hover { color: #6f213f; } .hover\:text-pink-dark:hover { color: #eb5286; } .hover\:text-pink:hover { color: #f66d9b; } .hover\:text-pink-light:hover { color: #fa7ea8; } .hover\:text-pink-lighter:hover { color: #ffbbca; } .hover\:text-pink-lightest:hover { color: #ffebef; } .text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; } .text-base { font-size: 1rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; } .text-5xl { font-size: 3rem; } .italic { font-style: italic; } .roman { font-style: normal; } .uppercase { text-transform: uppercase; } .lowercase { text-transform: lowercase; } .capitalize { text-transform: capitalize; } .normal-case { text-transform: none; } .underline { text-decoration: underline; } .line-through { text-decoration: line-through; } .no-underline { text-decoration: none; } .antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .subpixel-antialiased { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .hover\:italic:hover { font-style: italic; } .hover\:roman:hover { font-style: normal; } .hover\:uppercase:hover { text-transform: uppercase; } .hover\:lowercase:hover { text-transform: lowercase; } .hover\:capitalize:hover { text-transform: capitalize; } .hover\:normal-case:hover { text-transform: none; } .hover\:underline:hover { text-decoration: underline; } .hover\:line-through:hover { text-decoration: line-through; } .hover\:no-underline:hover { text-decoration: none; } .hover\:antialiased:hover { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .hover\:subpixel-antialiased:hover { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .tracking-tight { letter-spacing: -0.05em; } .tracking-normal { letter-spacing: 0; } .tracking-wide { letter-spacing: .05em; } .select-none { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .select-text { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; } .align-baseline { vertical-align: baseline; } .align-top { vertical-align: top; } .align-middle { vertical-align: middle; } .align-bottom { vertical-align: bottom; } .align-text-top { vertical-align: text-top; } .align-text-bottom { vertical-align: text-bottom; } .visible { visibility: visible; } .invisible { visibility: hidden; } .whitespace-normal { white-space: normal; } .whitespace-no-wrap { white-space: nowrap; } .whitespace-pre { white-space: pre; } .whitespace-pre-line { white-space: pre-line; } .whitespace-pre-wrap { white-space: pre-wrap; } .break-words { word-wrap: break-word; } .break-normal { word-wrap: normal; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .w-1 { width: .25rem; } .w-2 { width: .5rem; } .w-3 { width: .75rem; } .w-4 { width: 1rem; } .w-6 { width: 1.5rem; } .w-8 { width: 2rem; } .w-10 { width: 2.5rem; } .w-12 { width: 3rem; } .w-16 { width: 4rem; } .w-24 { width: 6rem; } .w-32 { width: 8rem; } .w-48 { width: 12rem; } .w-64 { width: 16rem; } .w-auto { width: auto; } .w-px { width: 1px; } .w-1\/2 { width: 50%; } .w-1\/3 { width: 33.33333%; } .w-2\/3 { width: 66.66667%; } .w-1\/4 { width: 25%; } .w-3\/4 { width: 75%; } .w-1\/5 { width: 20%; } .w-2\/5 { width: 40%; } .w-3\/5 { width: 60%; } .w-4\/5 { width: 80%; } .w-1\/6 { width: 16.66667%; } .w-5\/6 { width: 83.33333%; } .w-full { width: 100%; } .w-screen { width: 100vw; } .z-0 { z-index: 0; } .z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-30 { z-index: 30; } .z-40 { z-index: 40; } .z-50 { z-index: 50; } .z-auto { z-index: auto; } @media (min-width: 576px) { .sm\:list-reset { list-style: none; padding: 0; } .sm\:appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .sm\:bg-fixed { background-attachment: fixed; } .sm\:bg-local { background-attachment: local; } .sm\:bg-scroll { background-attachment: scroll; } .sm\:bg-transparent { background-color: transparent; } .sm\:bg-black { background-color: #22292f; } .sm\:bg-grey-darkest { background-color: #3d4852; } .sm\:bg-grey-darker { background-color: #606f7b; } .sm\:bg-grey-dark { background-color: #8795a1; } .sm\:bg-grey { background-color: #b8c2cc; } .sm\:bg-grey-light { background-color: #dae1e7; } .sm\:bg-grey-lighter { background-color: #f1f5f8; } .sm\:bg-grey-lightest { background-color: #f8fafc; } .sm\:bg-white { background-color: #fff; } .sm\:bg-red-darkest { background-color: #3b0d0c; } .sm\:bg-red-darker { background-color: #621b18; } .sm\:bg-red-dark { background-color: #cc1f1a; } .sm\:bg-red { background-color: #e3342f; } .sm\:bg-red-light { background-color: #ef5753; } .sm\:bg-red-lighter { background-color: #f9acaa; } .sm\:bg-red-lightest { background-color: #fcebea; } .sm\:bg-orange-darkest { background-color: #462a16; } .sm\:bg-orange-darker { background-color: #613b1f; } .sm\:bg-orange-dark { background-color: #de751f; } .sm\:bg-orange { background-color: #f6993f; } .sm\:bg-orange-light { background-color: #faad63; } .sm\:bg-orange-lighter { background-color: #fcd9b6; } .sm\:bg-orange-lightest { background-color: #fff5eb; } .sm\:bg-yellow-darkest { background-color: #453411; } .sm\:bg-yellow-darker { background-color: #684f1d; } .sm\:bg-yellow-dark { background-color: #f2d024; } .sm\:bg-yellow { background-color: #ffed4a; } .sm\:bg-yellow-light { background-color: #fff382; } .sm\:bg-yellow-lighter { background-color: #fff9c2; } .sm\:bg-yellow-lightest { background-color: #fcfbeb; } .sm\:bg-green-darkest { background-color: #0f2f21; } .sm\:bg-green-darker { background-color: #1a4731; } .sm\:bg-green-dark { background-color: #1f9d55; } .sm\:bg-green { background-color: #38c172; } .sm\:bg-green-light { background-color: #51d88a; } .sm\:bg-green-lighter { background-color: #a2f5bf; } .sm\:bg-green-lightest { background-color: #e3fcec; } .sm\:bg-teal-darkest { background-color: #0d3331; } .sm\:bg-teal-darker { background-color: #20504f; } .sm\:bg-teal-dark { background-color: #38a89d; } .sm\:bg-teal { background-color: #4dc0b5; } .sm\:bg-teal-light { background-color: #64d5ca; } .sm\:bg-teal-lighter { background-color: #a0f0ed; } .sm\:bg-teal-lightest { background-color: #e8fffe; } .sm\:bg-blue-darkest { background-color: #12283a; } .sm\:bg-blue-darker { background-color: #1c3d5a; } .sm\:bg-blue-dark { background-color: #2779bd; } .sm\:bg-blue { background-color: #3490dc; } .sm\:bg-blue-light { background-color: #6cb2eb; } .sm\:bg-blue-lighter { background-color: #bcdefa; } .sm\:bg-blue-lightest { background-color: #eff8ff; } .sm\:bg-indigo-darkest { background-color: #191e38; } .sm\:bg-indigo-darker { background-color: #2f365f; } .sm\:bg-indigo-dark { background-color: #5661b3; } .sm\:bg-indigo { background-color: #6574cd; } .sm\:bg-indigo-light { background-color: #7886d7; } .sm\:bg-indigo-lighter { background-color: #b2b7ff; } .sm\:bg-indigo-lightest { background-color: #e6e8ff; } .sm\:bg-purple-darkest { background-color: #21183c; } .sm\:bg-purple-darker { background-color: #382b5f; } .sm\:bg-purple-dark { background-color: #794acf; } .sm\:bg-purple { background-color: #9561e2; } .sm\:bg-purple-light { background-color: #a779e9; } .sm\:bg-purple-lighter { background-color: #d6bbfc; } .sm\:bg-purple-lightest { background-color: #f3ebff; } .sm\:bg-pink-darkest { background-color: #451225; } .sm\:bg-pink-darker { background-color: #6f213f; } .sm\:bg-pink-dark { background-color: #eb5286; } .sm\:bg-pink { background-color: #f66d9b; } .sm\:bg-pink-light { background-color: #fa7ea8; } .sm\:bg-pink-lighter { background-color: #ffbbca; } .sm\:bg-pink-lightest { background-color: #ffebef; } .sm\:hover\:bg-transparent:hover { background-color: transparent; } .sm\:hover\:bg-black:hover { background-color: #22292f; } .sm\:hover\:bg-grey-darkest:hover { background-color: #3d4852; } .sm\:hover\:bg-grey-darker:hover { background-color: #606f7b; } .sm\:hover\:bg-grey-dark:hover { background-color: #8795a1; } .sm\:hover\:bg-grey:hover { background-color: #b8c2cc; } .sm\:hover\:bg-grey-light:hover { background-color: #dae1e7; } .sm\:hover\:bg-grey-lighter:hover { background-color: #f1f5f8; } .sm\:hover\:bg-grey-lightest:hover { background-color: #f8fafc; } .sm\:hover\:bg-white:hover { background-color: #fff; } .sm\:hover\:bg-red-darkest:hover { background-color: #3b0d0c; } .sm\:hover\:bg-red-darker:hover { background-color: #621b18; } .sm\:hover\:bg-red-dark:hover { background-color: #cc1f1a; } .sm\:hover\:bg-red:hover { background-color: #e3342f; } .sm\:hover\:bg-red-light:hover { background-color: #ef5753; } .sm\:hover\:bg-red-lighter:hover { background-color: #f9acaa; } .sm\:hover\:bg-red-lightest:hover { background-color: #fcebea; } .sm\:hover\:bg-orange-darkest:hover { background-color: #462a16; } .sm\:hover\:bg-orange-darker:hover { background-color: #613b1f; } .sm\:hover\:bg-orange-dark:hover { background-color: #de751f; } .sm\:hover\:bg-orange:hover { background-color: #f6993f; } .sm\:hover\:bg-orange-light:hover { background-color: #faad63; } .sm\:hover\:bg-orange-lighter:hover { background-color: #fcd9b6; } .sm\:hover\:bg-orange-lightest:hover { background-color: #fff5eb; } .sm\:hover\:bg-yellow-darkest:hover { background-color: #453411; } .sm\:hover\:bg-yellow-darker:hover { background-color: #684f1d; } .sm\:hover\:bg-yellow-dark:hover { background-color: #f2d024; } .sm\:hover\:bg-yellow:hover { background-color: #ffed4a; } .sm\:hover\:bg-yellow-light:hover { background-color: #fff382; } .sm\:hover\:bg-yellow-lighter:hover { background-color: #fff9c2; } .sm\:hover\:bg-yellow-lightest:hover { background-color: #fcfbeb; } .sm\:hover\:bg-green-darkest:hover { background-color: #0f2f21; } .sm\:hover\:bg-green-darker:hover { background-color: #1a4731; } .sm\:hover\:bg-green-dark:hover { background-color: #1f9d55; } .sm\:hover\:bg-green:hover { background-color: #38c172; } .sm\:hover\:bg-green-light:hover { background-color: #51d88a; } .sm\:hover\:bg-green-lighter:hover { background-color: #a2f5bf; } .sm\:hover\:bg-green-lightest:hover { background-color: #e3fcec; } .sm\:hover\:bg-teal-darkest:hover { background-color: #0d3331; } .sm\:hover\:bg-teal-darker:hover { background-color: #20504f; } .sm\:hover\:bg-teal-dark:hover { background-color: #38a89d; } .sm\:hover\:bg-teal:hover { background-color: #4dc0b5; } .sm\:hover\:bg-teal-light:hover { background-color: #64d5ca; } .sm\:hover\:bg-teal-lighter:hover { background-color: #a0f0ed; } .sm\:hover\:bg-teal-lightest:hover { background-color: #e8fffe; } .sm\:hover\:bg-blue-darkest:hover { background-color: #12283a; } .sm\:hover\:bg-blue-darker:hover { background-color: #1c3d5a; } .sm\:hover\:bg-blue-dark:hover { background-color: #2779bd; } .sm\:hover\:bg-blue:hover { background-color: #3490dc; } .sm\:hover\:bg-blue-light:hover { background-color: #6cb2eb; } .sm\:hover\:bg-blue-lighter:hover { background-color: #bcdefa; } .sm\:hover\:bg-blue-lightest:hover { background-color: #eff8ff; } .sm\:hover\:bg-indigo-darkest:hover { background-color: #191e38; } .sm\:hover\:bg-indigo-darker:hover { background-color: #2f365f; } .sm\:hover\:bg-indigo-dark:hover { background-color: #5661b3; } .sm\:hover\:bg-indigo:hover { background-color: #6574cd; } .sm\:hover\:bg-indigo-light:hover { background-color: #7886d7; } .sm\:hover\:bg-indigo-lighter:hover { background-color: #b2b7ff; } .sm\:hover\:bg-indigo-lightest:hover { background-color: #e6e8ff; } .sm\:hover\:bg-purple-darkest:hover { background-color: #21183c; } .sm\:hover\:bg-purple-darker:hover { background-color: #382b5f; } .sm\:hover\:bg-purple-dark:hover { background-color: #794acf; } .sm\:hover\:bg-purple:hover { background-color: #9561e2; } .sm\:hover\:bg-purple-light:hover { background-color: #a779e9; } .sm\:hover\:bg-purple-lighter:hover { background-color: #d6bbfc; } .sm\:hover\:bg-purple-lightest:hover { background-color: #f3ebff; } .sm\:hover\:bg-pink-darkest:hover { background-color: #451225; } .sm\:hover\:bg-pink-darker:hover { background-color: #6f213f; } .sm\:hover\:bg-pink-dark:hover { background-color: #eb5286; } .sm\:hover\:bg-pink:hover { background-color: #f66d9b; } .sm\:hover\:bg-pink-light:hover { background-color: #fa7ea8; } .sm\:hover\:bg-pink-lighter:hover { background-color: #ffbbca; } .sm\:hover\:bg-pink-lightest:hover { background-color: #ffebef; } .sm\:bg-bottom { background-position: bottom; } .sm\:bg-center { background-position: center; } .sm\:bg-left { background-position: left; } .sm\:bg-left-bottom { background-position: left bottom; } .sm\:bg-left-top { background-position: left top; } .sm\:bg-right { background-position: right; } .sm\:bg-right-bottom { background-position: right bottom; } .sm\:bg-right-top { background-position: right top; } .sm\:bg-top { background-position: top; } .sm\:bg-repeat { background-repeat: repeat; } .sm\:bg-no-repeat { background-repeat: no-repeat; } .sm\:bg-repeat-x { background-repeat: repeat-x; } .sm\:bg-repeat-y { background-repeat: repeat-y; } .sm\:bg-auto { background-size: auto; } .sm\:bg-cover { background-size: cover; } .sm\:bg-contain { background-size: contain; } .sm\:border-transparent { border-color: transparent; } .sm\:border-black { border-color: #22292f; } .sm\:border-grey-darkest { border-color: #3d4852; } .sm\:border-grey-darker { border-color: #606f7b; } .sm\:border-grey-dark { border-color: #8795a1; } .sm\:border-grey { border-color: #b8c2cc; } .sm\:border-grey-light { border-color: #dae1e7; } .sm\:border-grey-lighter { border-color: #f1f5f8; } .sm\:border-grey-lightest { border-color: #f8fafc; } .sm\:border-white { border-color: #fff; } .sm\:border-red-darkest { border-color: #3b0d0c; } .sm\:border-red-darker { border-color: #621b18; } .sm\:border-red-dark { border-color: #cc1f1a; } .sm\:border-red { border-color: #e3342f; } .sm\:border-red-light { border-color: #ef5753; } .sm\:border-red-lighter { border-color: #f9acaa; } .sm\:border-red-lightest { border-color: #fcebea; } .sm\:border-orange-darkest { border-color: #462a16; } .sm\:border-orange-darker { border-color: #613b1f; } .sm\:border-orange-dark { border-color: #de751f; } .sm\:border-orange { border-color: #f6993f; } .sm\:border-orange-light { border-color: #faad63; } .sm\:border-orange-lighter { border-color: #fcd9b6; } .sm\:border-orange-lightest { border-color: #fff5eb; } .sm\:border-yellow-darkest { border-color: #453411; } .sm\:border-yellow-darker { border-color: #684f1d; } .sm\:border-yellow-dark { border-color: #f2d024; } .sm\:border-yellow { border-color: #ffed4a; } .sm\:border-yellow-light { border-color: #fff382; } .sm\:border-yellow-lighter { border-color: #fff9c2; } .sm\:border-yellow-lightest { border-color: #fcfbeb; } .sm\:border-green-darkest { border-color: #0f2f21; } .sm\:border-green-darker { border-color: #1a4731; } .sm\:border-green-dark { border-color: #1f9d55; } .sm\:border-green { border-color: #38c172; } .sm\:border-green-light { border-color: #51d88a; } .sm\:border-green-lighter { border-color: #a2f5bf; } .sm\:border-green-lightest { border-color: #e3fcec; } .sm\:border-teal-darkest { border-color: #0d3331; } .sm\:border-teal-darker { border-color: #20504f; } .sm\:border-teal-dark { border-color: #38a89d; } .sm\:border-teal { border-color: #4dc0b5; } .sm\:border-teal-light { border-color: #64d5ca; } .sm\:border-teal-lighter { border-color: #a0f0ed; } .sm\:border-teal-lightest { border-color: #e8fffe; } .sm\:border-blue-darkest { border-color: #12283a; } .sm\:border-blue-darker { border-color: #1c3d5a; } .sm\:border-blue-dark { border-color: #2779bd; } .sm\:border-blue { border-color: #3490dc; } .sm\:border-blue-light { border-color: #6cb2eb; } .sm\:border-blue-lighter { border-color: #bcdefa; } .sm\:border-blue-lightest { border-color: #eff8ff; } .sm\:border-indigo-darkest { border-color: #191e38; } .sm\:border-indigo-darker { border-color: #2f365f; } .sm\:border-indigo-dark { border-color: #5661b3; } .sm\:border-indigo { border-color: #6574cd; } .sm\:border-indigo-light { border-color: #7886d7; } .sm\:border-indigo-lighter { border-color: #b2b7ff; } .sm\:border-indigo-lightest { border-color: #e6e8ff; } .sm\:border-purple-darkest { border-color: #21183c; } .sm\:border-purple-darker { border-color: #382b5f; } .sm\:border-purple-dark { border-color: #794acf; } .sm\:border-purple { border-color: #9561e2; } .sm\:border-purple-light { border-color: #a779e9; } .sm\:border-purple-lighter { border-color: #d6bbfc; } .sm\:border-purple-lightest { border-color: #f3ebff; } .sm\:border-pink-darkest { border-color: #451225; } .sm\:border-pink-darker { border-color: #6f213f; } .sm\:border-pink-dark { border-color: #eb5286; } .sm\:border-pink { border-color: #f66d9b; } .sm\:border-pink-light { border-color: #fa7ea8; } .sm\:border-pink-lighter { border-color: #ffbbca; } .sm\:border-pink-lightest { border-color: #ffebef; } .sm\:hover\:border-transparent:hover { border-color: transparent; } .sm\:hover\:border-black:hover { border-color: #22292f; } .sm\:hover\:border-grey-darkest:hover { border-color: #3d4852; } .sm\:hover\:border-grey-darker:hover { border-color: #606f7b; } .sm\:hover\:border-grey-dark:hover { border-color: #8795a1; } .sm\:hover\:border-grey:hover { border-color: #b8c2cc; } .sm\:hover\:border-grey-light:hover { border-color: #dae1e7; } .sm\:hover\:border-grey-lighter:hover { border-color: #f1f5f8; } .sm\:hover\:border-grey-lightest:hover { border-color: #f8fafc; } .sm\:hover\:border-white:hover { border-color: #fff; } .sm\:hover\:border-red-darkest:hover { border-color: #3b0d0c; } .sm\:hover\:border-red-darker:hover { border-color: #621b18; } .sm\:hover\:border-red-dark:hover { border-color: #cc1f1a; } .sm\:hover\:border-red:hover { border-color: #e3342f; } .sm\:hover\:border-red-light:hover { border-color: #ef5753; } .sm\:hover\:border-red-lighter:hover { border-color: #f9acaa; } .sm\:hover\:border-red-lightest:hover { border-color: #fcebea; } .sm\:hover\:border-orange-darkest:hover { border-color: #462a16; } .sm\:hover\:border-orange-darker:hover { border-color: #613b1f; } .sm\:hover\:border-orange-dark:hover { border-color: #de751f; } .sm\:hover\:border-orange:hover { border-color: #f6993f; } .sm\:hover\:border-orange-light:hover { border-color: #faad63; } .sm\:hover\:border-orange-lighter:hover { border-color: #fcd9b6; } .sm\:hover\:border-orange-lightest:hover { border-color: #fff5eb; } .sm\:hover\:border-yellow-darkest:hover { border-color: #453411; } .sm\:hover\:border-yellow-darker:hover { border-color: #684f1d; } .sm\:hover\:border-yellow-dark:hover { border-color: #f2d024; } .sm\:hover\:border-yellow:hover { border-color: #ffed4a; } .sm\:hover\:border-yellow-light:hover { border-color: #fff382; } .sm\:hover\:border-yellow-lighter:hover { border-color: #fff9c2; } .sm\:hover\:border-yellow-lightest:hover { border-color: #fcfbeb; } .sm\:hover\:border-green-darkest:hover { border-color: #0f2f21; } .sm\:hover\:border-green-darker:hover { border-color: #1a4731; } .sm\:hover\:border-green-dark:hover { border-color: #1f9d55; } .sm\:hover\:border-green:hover { border-color: #38c172; } .sm\:hover\:border-green-light:hover { border-color: #51d88a; } .sm\:hover\:border-green-lighter:hover { border-color: #a2f5bf; } .sm\:hover\:border-green-lightest:hover { border-color: #e3fcec; } .sm\:hover\:border-teal-darkest:hover { border-color: #0d3331; } .sm\:hover\:border-teal-darker:hover { border-color: #20504f; } .sm\:hover\:border-teal-dark:hover { border-color: #38a89d; } .sm\:hover\:border-teal:hover { border-color: #4dc0b5; } .sm\:hover\:border-teal-light:hover { border-color: #64d5ca; } .sm\:hover\:border-teal-lighter:hover { border-color: #a0f0ed; } .sm\:hover\:border-teal-lightest:hover { border-color: #e8fffe; } .sm\:hover\:border-blue-darkest:hover { border-color: #12283a; } .sm\:hover\:border-blue-darker:hover { border-color: #1c3d5a; } .sm\:hover\:border-blue-dark:hover { border-color: #2779bd; } .sm\:hover\:border-blue:hover { border-color: #3490dc; } .sm\:hover\:border-blue-light:hover { border-color: #6cb2eb; } .sm\:hover\:border-blue-lighter:hover { border-color: #bcdefa; } .sm\:hover\:border-blue-lightest:hover { border-color: #eff8ff; } .sm\:hover\:border-indigo-darkest:hover { border-color: #191e38; } .sm\:hover\:border-indigo-darker:hover { border-color: #2f365f; } .sm\:hover\:border-indigo-dark:hover { border-color: #5661b3; } .sm\:hover\:border-indigo:hover { border-color: #6574cd; } .sm\:hover\:border-indigo-light:hover { border-color: #7886d7; } .sm\:hover\:border-indigo-lighter:hover { border-color: #b2b7ff; } .sm\:hover\:border-indigo-lightest:hover { border-color: #e6e8ff; } .sm\:hover\:border-purple-darkest:hover { border-color: #21183c; } .sm\:hover\:border-purple-darker:hover { border-color: #382b5f; } .sm\:hover\:border-purple-dark:hover { border-color: #794acf; } .sm\:hover\:border-purple:hover { border-color: #9561e2; } .sm\:hover\:border-purple-light:hover { border-color: #a779e9; } .sm\:hover\:border-purple-lighter:hover { border-color: #d6bbfc; } .sm\:hover\:border-purple-lightest:hover { border-color: #f3ebff; } .sm\:hover\:border-pink-darkest:hover { border-color: #451225; } .sm\:hover\:border-pink-darker:hover { border-color: #6f213f; } .sm\:hover\:border-pink-dark:hover { border-color: #eb5286; } .sm\:hover\:border-pink:hover { border-color: #f66d9b; } .sm\:hover\:border-pink-light:hover { border-color: #fa7ea8; } .sm\:hover\:border-pink-lighter:hover { border-color: #ffbbca; } .sm\:hover\:border-pink-lightest:hover { border-color: #ffebef; } .sm\:rounded-none { border-radius: 0; } .sm\:rounded-sm { border-radius: .125rem; } .sm\:rounded { border-radius: .25rem; } .sm\:rounded-lg { border-radius: .5rem; } .sm\:rounded-full { border-radius: 9999px; } .sm\:rounded-t-none { border-top-left-radius: 0; border-top-right-radius: 0; } .sm\:rounded-r-none { border-top-right-radius: 0; border-bottom-right-radius: 0; } .sm\:rounded-b-none { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .sm\:rounded-l-none { border-top-left-radius: 0; border-bottom-left-radius: 0; } .sm\:rounded-t-sm { border-top-left-radius: .125rem; border-top-right-radius: .125rem; } .sm\:rounded-r-sm { border-top-right-radius: .125rem; border-bottom-right-radius: .125rem; } .sm\:rounded-b-sm { border-bottom-right-radius: .125rem; border-bottom-left-radius: .125rem; } .sm\:rounded-l-sm { border-top-left-radius: .125rem; border-bottom-left-radius: .125rem; } .sm\:rounded-t { border-top-left-radius: .25rem; border-top-right-radius: .25rem; } .sm\:rounded-r { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; } .sm\:rounded-b { border-bottom-right-radius: .25rem; border-bottom-left-radius: .25rem; } .sm\:rounded-l { border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; } .sm\:rounded-t-lg { border-top-left-radius: .5rem; border-top-right-radius: .5rem; } .sm\:rounded-r-lg { border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; } .sm\:rounded-b-lg { border-bottom-right-radius: .5rem; border-bottom-left-radius: .5rem; } .sm\:rounded-l-lg { border-top-left-radius: .5rem; border-bottom-left-radius: .5rem; } .sm\:rounded-t-full { border-top-left-radius: 9999px; border-top-right-radius: 9999px; } .sm\:rounded-r-full { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; } .sm\:rounded-b-full { border-bottom-right-radius: 9999px; border-bottom-left-radius: 9999px; } .sm\:rounded-l-full { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; } .sm\:rounded-tl-none { border-top-left-radius: 0; } .sm\:rounded-tr-none { border-top-right-radius: 0; } .sm\:rounded-br-none { border-bottom-right-radius: 0; } .sm\:rounded-bl-none { border-bottom-left-radius: 0; } .sm\:rounded-tl-sm { border-top-left-radius: .125rem; } .sm\:rounded-tr-sm { border-top-right-radius: .125rem; } .sm\:rounded-br-sm { border-bottom-right-radius: .125rem; } .sm\:rounded-bl-sm { border-bottom-left-radius: .125rem; } .sm\:rounded-tl { border-top-left-radius: .25rem; } .sm\:rounded-tr { border-top-right-radius: .25rem; } .sm\:rounded-br { border-bottom-right-radius: .25rem; } .sm\:rounded-bl { border-bottom-left-radius: .25rem; } .sm\:rounded-tl-lg { border-top-left-radius: .5rem; } .sm\:rounded-tr-lg { border-top-right-radius: .5rem; } .sm\:rounded-br-lg { border-bottom-right-radius: .5rem; } .sm\:rounded-bl-lg { border-bottom-left-radius: .5rem; } .sm\:rounded-tl-full { border-top-left-radius: 9999px; } .sm\:rounded-tr-full { border-top-right-radius: 9999px; } .sm\:rounded-br-full { border-bottom-right-radius: 9999px; } .sm\:rounded-bl-full { border-bottom-left-radius: 9999px; } .sm\:border-solid { border-style: solid; } .sm\:border-dashed { border-style: dashed; } .sm\:border-dotted { border-style: dotted; } .sm\:border-none { border-style: none; } .sm\:border-0 { border-width: 0; } .sm\:border-2 { border-width: 2px; } .sm\:border-4 { border-width: 4px; } .sm\:border-8 { border-width: 8px; } .sm\:border { border-width: 1px; } .sm\:border-t-0 { border-top-width: 0; } .sm\:border-r-0 { border-right-width: 0; } .sm\:border-b-0 { border-bottom-width: 0; } .sm\:border-l-0 { border-left-width: 0; } .sm\:border-t-2 { border-top-width: 2px; } .sm\:border-r-2 { border-right-width: 2px; } .sm\:border-b-2 { border-bottom-width: 2px; } .sm\:border-l-2 { border-left-width: 2px; } .sm\:border-t-4 { border-top-width: 4px; } .sm\:border-r-4 { border-right-width: 4px; } .sm\:border-b-4 { border-bottom-width: 4px; } .sm\:border-l-4 { border-left-width: 4px; } .sm\:border-t-8 { border-top-width: 8px; } .sm\:border-r-8 { border-right-width: 8px; } .sm\:border-b-8 { border-bottom-width: 8px; } .sm\:border-l-8 { border-left-width: 8px; } .sm\:border-t { border-top-width: 1px; } .sm\:border-r { border-right-width: 1px; } .sm\:border-b { border-bottom-width: 1px; } .sm\:border-l { border-left-width: 1px; } .sm\:cursor-auto { cursor: auto; } .sm\:cursor-default { cursor: default; } .sm\:cursor-pointer { cursor: pointer; } .sm\:cursor-wait { cursor: wait; } .sm\:cursor-move { cursor: move; } .sm\:cursor-not-allowed { cursor: not-allowed; } .sm\:block { display: block; } .sm\:inline-block { display: inline-block; } .sm\:inline { display: inline; } .sm\:table { display: table; } .sm\:table-row { display: table-row; } .sm\:table-cell { display: table-cell; } .sm\:hidden { display: none; } .sm\:flex { display: flex; } .sm\:inline-flex { display: inline-flex; } .sm\:flex-row { flex-direction: row; } .sm\:flex-row-reverse { flex-direction: row-reverse; } .sm\:flex-col { flex-direction: column; } .sm\:flex-col-reverse { flex-direction: column-reverse; } .sm\:flex-wrap { flex-wrap: wrap; } .sm\:flex-wrap-reverse { flex-wrap: wrap-reverse; } .sm\:flex-no-wrap { flex-wrap: nowrap; } .sm\:items-start { align-items: flex-start; } .sm\:items-end { align-items: flex-end; } .sm\:items-center { align-items: center; } .sm\:items-baseline { align-items: baseline; } .sm\:items-stretch { align-items: stretch; } .sm\:self-auto { align-self: auto; } .sm\:self-start { align-self: flex-start; } .sm\:self-end { align-self: flex-end; } .sm\:self-center { align-self: center; } .sm\:self-stretch { align-self: stretch; } .sm\:justify-start { justify-content: flex-start; } .sm\:justify-end { justify-content: flex-end; } .sm\:justify-center { justify-content: center; } .sm\:justify-between { justify-content: space-between; } .sm\:justify-around { justify-content: space-around; } .sm\:content-center { align-content: center; } .sm\:content-start { align-content: flex-start; } .sm\:content-end { align-content: flex-end; } .sm\:content-between { align-content: space-between; } .sm\:content-around { align-content: space-around; } .sm\:flex-1 { flex: 1; } .sm\:flex-auto { flex: auto; } .sm\:flex-initial { flex: initial; } .sm\:flex-none { flex: none; } .sm\:flex-grow { flex-grow: 1; } .sm\:flex-shrink { flex-shrink: 1; } .sm\:flex-no-grow { flex-grow: 0; } .sm\:flex-no-shrink { flex-shrink: 0; } .sm\:float-right { float: right; } .sm\:float-left { float: left; } .sm\:float-none { float: none; } .sm\:clearfix:after { content: ""; display: table; clear: both; } .sm\:font-sans { font-family: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } .sm\:font-serif { font-family: Constantia, Lucida Bright, Lucidabright, Lucida Serif, Lucida, DejaVu Serif, Bitstream Vera Serif, Liberation Serif, Georgia, serif; } .sm\:font-mono { font-family: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; } .sm\:font-hairline { font-weight: 100; } .sm\:font-thin { font-weight: 200; } .sm\:font-light { font-weight: 300; } .sm\:font-normal { font-weight: 400; } .sm\:font-medium { font-weight: 500; } .sm\:font-semibold { font-weight: 600; } .sm\:font-bold { font-weight: 700; } .sm\:font-extrabold { font-weight: 800; } .sm\:font-black { font-weight: 900; } .sm\:hover\:font-hairline:hover { font-weight: 100; } .sm\:hover\:font-thin:hover { font-weight: 200; } .sm\:hover\:font-light:hover { font-weight: 300; } .sm\:hover\:font-normal:hover { font-weight: 400; } .sm\:hover\:font-medium:hover { font-weight: 500; } .sm\:hover\:font-semibold:hover { font-weight: 600; } .sm\:hover\:font-bold:hover { font-weight: 700; } .sm\:hover\:font-extrabold:hover { font-weight: 800; } .sm\:hover\:font-black:hover { font-weight: 900; } .sm\:h-1 { height: .25rem; } .sm\:h-2 { height: .5rem; } .sm\:h-3 { height: .75rem; } .sm\:h-4 { height: 1rem; } .sm\:h-6 { height: 1.5rem; } .sm\:h-8 { height: 2rem; } .sm\:h-10 { height: 2.5rem; } .sm\:h-12 { height: 3rem; } .sm\:h-16 { height: 4rem; } .sm\:h-24 { height: 6rem; } .sm\:h-32 { height: 8rem; } .sm\:h-48 { height: 12rem; } .sm\:h-64 { height: 16rem; } .sm\:h-auto { height: auto; } .sm\:h-px { height: 1px; } .sm\:h-full { height: 100%; } .sm\:h-screen { height: 100vh; } .sm\:leading-none { line-height: 1; } .sm\:leading-tight { line-height: 1.25; } .sm\:leading-normal { line-height: 1.5; } .sm\:leading-loose { line-height: 2; } .sm\:m-0 { margin: 0; } .sm\:m-1 { margin: .25rem; } .sm\:m-2 { margin: .5rem; } .sm\:m-3 { margin: .75rem; } .sm\:m-4 { margin: 1rem; } .sm\:m-6 { margin: 1.5rem; } .sm\:m-8 { margin: 2rem; } .sm\:m-auto { margin: auto; } .sm\:m-px { margin: 1px; } .sm\:my-0 { margin-top: 0; margin-bottom: 0; } .sm\:mx-0 { margin-left: 0; margin-right: 0; } .sm\:my-1 { margin-top: .25rem; margin-bottom: .25rem; } .sm\:mx-1 { margin-left: .25rem; margin-right: .25rem; } .sm\:my-2 { margin-top: .5rem; margin-bottom: .5rem; } .sm\:mx-2 { margin-left: .5rem; margin-right: .5rem; } .sm\:my-3 { margin-top: .75rem; margin-bottom: .75rem; } .sm\:mx-3 { margin-left: .75rem; margin-right: .75rem; } .sm\:my-4 { margin-top: 1rem; margin-bottom: 1rem; } .sm\:mx-4 { margin-left: 1rem; margin-right: 1rem; } .sm\:my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; } .sm\:mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; } .sm\:my-8 { margin-top: 2rem; margin-bottom: 2rem; } .sm\:mx-8 { margin-left: 2rem; margin-right: 2rem; } .sm\:my-auto { margin-top: auto; margin-bottom: auto; } .sm\:mx-auto { margin-left: auto; margin-right: auto; } .sm\:my-px { margin-top: 1px; margin-bottom: 1px; } .sm\:mx-px { margin-left: 1px; margin-right: 1px; } .sm\:mt-0 { margin-top: 0; } .sm\:mr-0 { margin-right: 0; } .sm\:mb-0 { margin-bottom: 0; } .sm\:ml-0 { margin-left: 0; } .sm\:mt-1 { margin-top: .25rem; } .sm\:mr-1 { margin-right: .25rem; } .sm\:mb-1 { margin-bottom: .25rem; } .sm\:ml-1 { margin-left: .25rem; } .sm\:mt-2 { margin-top: .5rem; } .sm\:mr-2 { margin-right: .5rem; } .sm\:mb-2 { margin-bottom: .5rem; } .sm\:ml-2 { margin-left: .5rem; } .sm\:mt-3 { margin-top: .75rem; } .sm\:mr-3 { margin-right: .75rem; } .sm\:mb-3 { margin-bottom: .75rem; } .sm\:ml-3 { margin-left: .75rem; } .sm\:mt-4 { margin-top: 1rem; } .sm\:mr-4 { margin-right: 1rem; } .sm\:mb-4 { margin-bottom: 1rem; } .sm\:ml-4 { margin-left: 1rem; } .sm\:mt-6 { margin-top: 1.5rem; } .sm\:mr-6 { margin-right: 1.5rem; } .sm\:mb-6 { margin-bottom: 1.5rem; } .sm\:ml-6 { margin-left: 1.5rem; } .sm\:mt-8 { margin-top: 2rem; } .sm\:mr-8 { margin-right: 2rem; } .sm\:mb-8 { margin-bottom: 2rem; } .sm\:ml-8 { margin-left: 2rem; } .sm\:mt-auto { margin-top: auto; } .sm\:mr-auto { margin-right: auto; } .sm\:mb-auto { margin-bottom: auto; } .sm\:ml-auto { margin-left: auto; } .sm\:mt-px { margin-top: 1px; } .sm\:mr-px { margin-right: 1px; } .sm\:mb-px { margin-bottom: 1px; } .sm\:ml-px { margin-left: 1px; } .sm\:max-h-full { max-height: 100%; } .sm\:max-h-screen { max-height: 100vh; } .sm\:max-w-xs { max-width: 20rem; } .sm\:max-w-sm { max-width: 30rem; } .sm\:max-w-md { max-width: 40rem; } .sm\:max-w-lg { max-width: 50rem; } .sm\:max-w-xl { max-width: 60rem; } .sm\:max-w-2xl { max-width: 70rem; } .sm\:max-w-3xl { max-width: 80rem; } .sm\:max-w-4xl { max-width: 90rem; } .sm\:max-w-5xl { max-width: 100rem; } .sm\:max-w-full { max-width: 100%; } .sm\:min-h-0 { min-height: 0; } .sm\:min-h-full { min-height: 100%; } .sm\:min-h-screen { min-height: 100vh; } .sm\:min-w-0 { min-width: 0; } .sm\:min-w-full { min-width: 100%; } .sm\:-m-0 { margin: 0; } .sm\:-m-1 { margin: -0.25rem; } .sm\:-m-2 { margin: -0.5rem; } .sm\:-m-3 { margin: -0.75rem; } .sm\:-m-4 { margin: -1rem; } .sm\:-m-6 { margin: -1.5rem; } .sm\:-m-8 { margin: -2rem; } .sm\:-m-px { margin: -1px; } .sm\:-my-0 { margin-top: 0; margin-bottom: 0; } .sm\:-mx-0 { margin-left: 0; margin-right: 0; } .sm\:-my-1 { margin-top: -0.25rem; margin-bottom: -0.25rem; } .sm\:-mx-1 { margin-left: -0.25rem; margin-right: -0.25rem; } .sm\:-my-2 { margin-top: -0.5rem; margin-bottom: -0.5rem; } .sm\:-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; } .sm\:-my-3 { margin-top: -0.75rem; margin-bottom: -0.75rem; } .sm\:-mx-3 { margin-left: -0.75rem; margin-right: -0.75rem; } .sm\:-my-4 { margin-top: -1rem; margin-bottom: -1rem; } .sm\:-mx-4 { margin-left: -1rem; margin-right: -1rem; } .sm\:-my-6 { margin-top: -1.5rem; margin-bottom: -1.5rem; } .sm\:-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; } .sm\:-my-8 { margin-top: -2rem; margin-bottom: -2rem; } .sm\:-mx-8 { margin-left: -2rem; margin-right: -2rem; } .sm\:-my-px { margin-top: -1px; margin-bottom: -1px; } .sm\:-mx-px { margin-left: -1px; margin-right: -1px; } .sm\:-mt-0 { margin-top: 0; } .sm\:-mr-0 { margin-right: 0; } .sm\:-mb-0 { margin-bottom: 0; } .sm\:-ml-0 { margin-left: 0; } .sm\:-mt-1 { margin-top: -0.25rem; } .sm\:-mr-1 { margin-right: -0.25rem; } .sm\:-mb-1 { margin-bottom: -0.25rem; } .sm\:-ml-1 { margin-left: -0.25rem; } .sm\:-mt-2 { margin-top: -0.5rem; } .sm\:-mr-2 { margin-right: -0.5rem; } .sm\:-mb-2 { margin-bottom: -0.5rem; } .sm\:-ml-2 { margin-left: -0.5rem; } .sm\:-mt-3 { margin-top: -0.75rem; } .sm\:-mr-3 { margin-right: -0.75rem; } .sm\:-mb-3 { margin-bottom: -0.75rem; } .sm\:-ml-3 { margin-left: -0.75rem; } .sm\:-mt-4 { margin-top: -1rem; } .sm\:-mr-4 { margin-right: -1rem; } .sm\:-mb-4 { margin-bottom: -1rem; } .sm\:-ml-4 { margin-left: -1rem; } .sm\:-mt-6 { margin-top: -1.5rem; } .sm\:-mr-6 { margin-right: -1.5rem; } .sm\:-mb-6 { margin-bottom: -1.5rem; } .sm\:-ml-6 { margin-left: -1.5rem; } .sm\:-mt-8 { margin-top: -2rem; } .sm\:-mr-8 { margin-right: -2rem; } .sm\:-mb-8 { margin-bottom: -2rem; } .sm\:-ml-8 { margin-left: -2rem; } .sm\:-mt-px { margin-top: -1px; } .sm\:-mr-px { margin-right: -1px; } .sm\:-mb-px { margin-bottom: -1px; } .sm\:-ml-px { margin-left: -1px; } .sm\:opacity-0 { opacity: 0; } .sm\:opacity-25 { opacity: .25; } .sm\:opacity-50 { opacity: .5; } .sm\:opacity-75 { opacity: .75; } .sm\:opacity-100 { opacity: 1; } .sm\:overflow-auto { overflow: auto; } .sm\:overflow-hidden { overflow: hidden; } .sm\:overflow-visible { overflow: visible; } .sm\:overflow-scroll { overflow: scroll; } .sm\:overflow-x-auto { overflow-x: auto; } .sm\:overflow-y-auto { overflow-y: auto; } .sm\:overflow-x-scroll { overflow-x: scroll; } .sm\:overflow-y-scroll { overflow-y: scroll; } .sm\:scrolling-touch { -webkit-overflow-scrolling: touch; } .sm\:scrolling-auto { -webkit-overflow-scrolling: auto; } .sm\:p-0 { padding: 0; } .sm\:p-1 { padding: .25rem; } .sm\:p-2 { padding: .5rem; } .sm\:p-3 { padding: .75rem; } .sm\:p-4 { padding: 1rem; } .sm\:p-6 { padding: 1.5rem; } .sm\:p-8 { padding: 2rem; } .sm\:p-px { padding: 1px; } .sm\:py-0 { padding-top: 0; padding-bottom: 0; } .sm\:px-0 { padding-left: 0; padding-right: 0; } .sm\:py-1 { padding-top: .25rem; padding-bottom: .25rem; } .sm\:px-1 { padding-left: .25rem; padding-right: .25rem; } .sm\:py-2 { padding-top: .5rem; padding-bottom: .5rem; } .sm\:px-2 { padding-left: .5rem; padding-right: .5rem; } .sm\:py-3 { padding-top: .75rem; padding-bottom: .75rem; } .sm\:px-3 { padding-left: .75rem; padding-right: .75rem; } .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; } .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; } .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; } .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; } .sm\:py-px { padding-top: 1px; padding-bottom: 1px; } .sm\:px-px { padding-left: 1px; padding-right: 1px; } .sm\:pt-0 { padding-top: 0; } .sm\:pr-0 { padding-right: 0; } .sm\:pb-0 { padding-bottom: 0; } .sm\:pl-0 { padding-left: 0; } .sm\:pt-1 { padding-top: .25rem; } .sm\:pr-1 { padding-right: .25rem; } .sm\:pb-1 { padding-bottom: .25rem; } .sm\:pl-1 { padding-left: .25rem; } .sm\:pt-2 { padding-top: .5rem; } .sm\:pr-2 { padding-right: .5rem; } .sm\:pb-2 { padding-bottom: .5rem; } .sm\:pl-2 { padding-left: .5rem; } .sm\:pt-3 { padding-top: .75rem; } .sm\:pr-3 { padding-right: .75rem; } .sm\:pb-3 { padding-bottom: .75rem; } .sm\:pl-3 { padding-left: .75rem; } .sm\:pt-4 { padding-top: 1rem; } .sm\:pr-4 { padding-right: 1rem; } .sm\:pb-4 { padding-bottom: 1rem; } .sm\:pl-4 { padding-left: 1rem; } .sm\:pt-6 { padding-top: 1.5rem; } .sm\:pr-6 { padding-right: 1.5rem; } .sm\:pb-6 { padding-bottom: 1.5rem; } .sm\:pl-6 { padding-left: 1.5rem; } .sm\:pt-8 { padding-top: 2rem; } .sm\:pr-8 { padding-right: 2rem; } .sm\:pb-8 { padding-bottom: 2rem; } .sm\:pl-8 { padding-left: 2rem; } .sm\:pt-px { padding-top: 1px; } .sm\:pr-px { padding-right: 1px; } .sm\:pb-px { padding-bottom: 1px; } .sm\:pl-px { padding-left: 1px; } .sm\:pointer-events-none { pointer-events: none; } .sm\:pointer-events-auto { pointer-events: auto; } .sm\:static { position: static; } .sm\:fixed { position: fixed; } .sm\:absolute { position: absolute; } .sm\:relative { position: relative; } .sm\:sticky { position: -webkit-sticky; position: sticky; } .sm\:pin-none { top: auto; right: auto; bottom: auto; left: auto; } .sm\:pin { top: 0; right: 0; bottom: 0; left: 0; } .sm\:pin-y { top: 0; bottom: 0; } .sm\:pin-x { right: 0; left: 0; } .sm\:pin-t { top: 0; } .sm\:pin-r { right: 0; } .sm\:pin-b { bottom: 0; } .sm\:pin-l { left: 0; } .sm\:resize-none { resize: none; } .sm\:resize-y { resize: vertical; } .sm\:resize-x { resize: horizontal; } .sm\:resize { resize: both; } .sm\:shadow { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1); } .sm\:shadow-md { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .12), 0 2px 4px 0 rgba(0, 0, 0, .08); } .sm\:shadow-lg { box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .11), 0 5px 15px 0 rgba(0, 0, 0, .08); } .sm\:shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .06); } .sm\:shadow-none { box-shadow: none; } .sm\:text-left { text-align: left; } .sm\:text-center { text-align: center; } .sm\:text-right { text-align: right; } .sm\:text-justify { text-align: justify; } .sm\:text-transparent { color: transparent; } .sm\:text-black { color: #22292f; } .sm\:text-grey-darkest { color: #3d4852; } .sm\:text-grey-darker { color: #606f7b; } .sm\:text-grey-dark { color: #8795a1; } .sm\:text-grey { color: #b8c2cc; } .sm\:text-grey-light { color: #dae1e7; } .sm\:text-grey-lighter { color: #f1f5f8; } .sm\:text-grey-lightest { color: #f8fafc; } .sm\:text-white { color: #fff; } .sm\:text-red-darkest { color: #3b0d0c; } .sm\:text-red-darker { color: #621b18; } .sm\:text-red-dark { color: #cc1f1a; } .sm\:text-red { color: #e3342f; } .sm\:text-red-light { color: #ef5753; } .sm\:text-red-lighter { color: #f9acaa; } .sm\:text-red-lightest { color: #fcebea; } .sm\:text-orange-darkest { color: #462a16; } .sm\:text-orange-darker { color: #613b1f; } .sm\:text-orange-dark { color: #de751f; } .sm\:text-orange { color: #f6993f; } .sm\:text-orange-light { color: #faad63; } .sm\:text-orange-lighter { color: #fcd9b6; } .sm\:text-orange-lightest { color: #fff5eb; } .sm\:text-yellow-darkest { color: #453411; } .sm\:text-yellow-darker { color: #684f1d; } .sm\:text-yellow-dark { color: #f2d024; } .sm\:text-yellow { color: #ffed4a; } .sm\:text-yellow-light { color: #fff382; } .sm\:text-yellow-lighter { color: #fff9c2; } .sm\:text-yellow-lightest { color: #fcfbeb; } .sm\:text-green-darkest { color: #0f2f21; } .sm\:text-green-darker { color: #1a4731; } .sm\:text-green-dark { color: #1f9d55; } .sm\:text-green { color: #38c172; } .sm\:text-green-light { color: #51d88a; } .sm\:text-green-lighter { color: #a2f5bf; } .sm\:text-green-lightest { color: #e3fcec; } .sm\:text-teal-darkest { color: #0d3331; } .sm\:text-teal-darker { color: #20504f; } .sm\:text-teal-dark { color: #38a89d; } .sm\:text-teal { color: #4dc0b5; } .sm\:text-teal-light { color: #64d5ca; } .sm\:text-teal-lighter { color: #a0f0ed; } .sm\:text-teal-lightest { color: #e8fffe; } .sm\:text-blue-darkest { color: #12283a; } .sm\:text-blue-darker { color: #1c3d5a; } .sm\:text-blue-dark { color: #2779bd; } .sm\:text-blue { color: #3490dc; } .sm\:text-blue-light { color: #6cb2eb; } .sm\:text-blue-lighter { color: #bcdefa; } .sm\:text-blue-lightest { color: #eff8ff; } .sm\:text-indigo-darkest { color: #191e38; } .sm\:text-indigo-darker { color: #2f365f; } .sm\:text-indigo-dark { color: #5661b3; } .sm\:text-indigo { color: #6574cd; } .sm\:text-indigo-light { color: #7886d7; } .sm\:text-indigo-lighter { color: #b2b7ff; } .sm\:text-indigo-lightest { color: #e6e8ff; } .sm\:text-purple-darkest { color: #21183c; } .sm\:text-purple-darker { color: #382b5f; } .sm\:text-purple-dark { color: #794acf; } .sm\:text-purple { color: #9561e2; } .sm\:text-purple-light { color: #a779e9; } .sm\:text-purple-lighter { color: #d6bbfc; } .sm\:text-purple-lightest { color: #f3ebff; } .sm\:text-pink-darkest { color: #451225; } .sm\:text-pink-darker { color: #6f213f; } .sm\:text-pink-dark { color: #eb5286; } .sm\:text-pink { color: #f66d9b; } .sm\:text-pink-light { color: #fa7ea8; } .sm\:text-pink-lighter { color: #ffbbca; } .sm\:text-pink-lightest { color: #ffebef; } .sm\:hover\:text-transparent:hover { color: transparent; } .sm\:hover\:text-black:hover { color: #22292f; } .sm\:hover\:text-grey-darkest:hover { color: #3d4852; } .sm\:hover\:text-grey-darker:hover { color: #606f7b; } .sm\:hover\:text-grey-dark:hover { color: #8795a1; } .sm\:hover\:text-grey:hover { color: #b8c2cc; } .sm\:hover\:text-grey-light:hover { color: #dae1e7; } .sm\:hover\:text-grey-lighter:hover { color: #f1f5f8; } .sm\:hover\:text-grey-lightest:hover { color: #f8fafc; } .sm\:hover\:text-white:hover { color: #fff; } .sm\:hover\:text-red-darkest:hover { color: #3b0d0c; } .sm\:hover\:text-red-darker:hover { color: #621b18; } .sm\:hover\:text-red-dark:hover { color: #cc1f1a; } .sm\:hover\:text-red:hover { color: #e3342f; } .sm\:hover\:text-red-light:hover { color: #ef5753; } .sm\:hover\:text-red-lighter:hover { color: #f9acaa; } .sm\:hover\:text-red-lightest:hover { color: #fcebea; } .sm\:hover\:text-orange-darkest:hover { color: #462a16; } .sm\:hover\:text-orange-darker:hover { color: #613b1f; } .sm\:hover\:text-orange-dark:hover { color: #de751f; } .sm\:hover\:text-orange:hover { color: #f6993f; } .sm\:hover\:text-orange-light:hover { color: #faad63; } .sm\:hover\:text-orange-lighter:hover { color: #fcd9b6; } .sm\:hover\:text-orange-lightest:hover { color: #fff5eb; } .sm\:hover\:text-yellow-darkest:hover { color: #453411; } .sm\:hover\:text-yellow-darker:hover { color: #684f1d; } .sm\:hover\:text-yellow-dark:hover { color: #f2d024; } .sm\:hover\:text-yellow:hover { color: #ffed4a; } .sm\:hover\:text-yellow-light:hover { color: #fff382; } .sm\:hover\:text-yellow-lighter:hover { color: #fff9c2; } .sm\:hover\:text-yellow-lightest:hover { color: #fcfbeb; } .sm\:hover\:text-green-darkest:hover { color: #0f2f21; } .sm\:hover\:text-green-darker:hover { color: #1a4731; } .sm\:hover\:text-green-dark:hover { color: #1f9d55; } .sm\:hover\:text-green:hover { color: #38c172; } .sm\:hover\:text-green-light:hover { color: #51d88a; } .sm\:hover\:text-green-lighter:hover { color: #a2f5bf; } .sm\:hover\:text-green-lightest:hover { color: #e3fcec; } .sm\:hover\:text-teal-darkest:hover { color: #0d3331; } .sm\:hover\:text-teal-darker:hover { color: #20504f; } .sm\:hover\:text-teal-dark:hover { color: #38a89d; } .sm\:hover\:text-teal:hover { color: #4dc0b5; } .sm\:hover\:text-teal-light:hover { color: #64d5ca; } .sm\:hover\:text-teal-lighter:hover { color: #a0f0ed; } .sm\:hover\:text-teal-lightest:hover { color: #e8fffe; } .sm\:hover\:text-blue-darkest:hover { color: #12283a; } .sm\:hover\:text-blue-darker:hover { color: #1c3d5a; } .sm\:hover\:text-blue-dark:hover { color: #2779bd; } .sm\:hover\:text-blue:hover { color: #3490dc; } .sm\:hover\:text-blue-light:hover { color: #6cb2eb; } .sm\:hover\:text-blue-lighter:hover { color: #bcdefa; } .sm\:hover\:text-blue-lightest:hover { color: #eff8ff; } .sm\:hover\:text-indigo-darkest:hover { color: #191e38; } .sm\:hover\:text-indigo-darker:hover { color: #2f365f; } .sm\:hover\:text-indigo-dark:hover { color: #5661b3; } .sm\:hover\:text-indigo:hover { color: #6574cd; } .sm\:hover\:text-indigo-light:hover { color: #7886d7; } .sm\:hover\:text-indigo-lighter:hover { color: #b2b7ff; } .sm\:hover\:text-indigo-lightest:hover { color: #e6e8ff; } .sm\:hover\:text-purple-darkest:hover { color: #21183c; } .sm\:hover\:text-purple-darker:hover { color: #382b5f; } .sm\:hover\:text-purple-dark:hover { color: #794acf; } .sm\:hover\:text-purple:hover { color: #9561e2; } .sm\:hover\:text-purple-light:hover { color: #a779e9; } .sm\:hover\:text-purple-lighter:hover { color: #d6bbfc; } .sm\:hover\:text-purple-lightest:hover { color: #f3ebff; } .sm\:hover\:text-pink-darkest:hover { color: #451225; } .sm\:hover\:text-pink-darker:hover { color: #6f213f; } .sm\:hover\:text-pink-dark:hover { color: #eb5286; } .sm\:hover\:text-pink:hover { color: #f66d9b; } .sm\:hover\:text-pink-light:hover { color: #fa7ea8; } .sm\:hover\:text-pink-lighter:hover { color: #ffbbca; } .sm\:hover\:text-pink-lightest:hover { color: #ffebef; } .sm\:text-xs { font-size: .75rem; } .sm\:text-sm { font-size: .875rem; } .sm\:text-base { font-size: 1rem; } .sm\:text-lg { font-size: 1.125rem; } .sm\:text-xl { font-size: 1.25rem; } .sm\:text-2xl { font-size: 1.5rem; } .sm\:text-3xl { font-size: 1.875rem; } .sm\:text-4xl { font-size: 2.25rem; } .sm\:text-5xl { font-size: 3rem; } .sm\:italic { font-style: italic; } .sm\:roman { font-style: normal; } .sm\:uppercase { text-transform: uppercase; } .sm\:lowercase { text-transform: lowercase; } .sm\:capitalize { text-transform: capitalize; } .sm\:normal-case { text-transform: none; } .sm\:underline { text-decoration: underline; } .sm\:line-through { text-decoration: line-through; } .sm\:no-underline { text-decoration: none; } .sm\:antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .sm\:subpixel-antialiased { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .sm\:hover\:italic:hover { font-style: italic; } .sm\:hover\:roman:hover { font-style: normal; } .sm\:hover\:uppercase:hover { text-transform: uppercase; } .sm\:hover\:lowercase:hover { text-transform: lowercase; } .sm\:hover\:capitalize:hover { text-transform: capitalize; } .sm\:hover\:normal-case:hover { text-transform: none; } .sm\:hover\:underline:hover { text-decoration: underline; } .sm\:hover\:line-through:hover { text-decoration: line-through; } .sm\:hover\:no-underline:hover { text-decoration: none; } .sm\:hover\:antialiased:hover { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .sm\:hover\:subpixel-antialiased:hover { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .sm\:tracking-tight { letter-spacing: -0.05em; } .sm\:tracking-normal { letter-spacing: 0; } .sm\:tracking-wide { letter-spacing: .05em; } .sm\:select-none { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .sm\:select-text { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; } .sm\:align-baseline { vertical-align: baseline; } .sm\:align-top { vertical-align: top; } .sm\:align-middle { vertical-align: middle; } .sm\:align-bottom { vertical-align: bottom; } .sm\:align-text-top { vertical-align: text-top; } .sm\:align-text-bottom { vertical-align: text-bottom; } .sm\:visible { visibility: visible; } .sm\:invisible { visibility: hidden; } .sm\:whitespace-normal { white-space: normal; } .sm\:whitespace-no-wrap { white-space: nowrap; } .sm\:whitespace-pre { white-space: pre; } .sm\:whitespace-pre-line { white-space: pre-line; } .sm\:whitespace-pre-wrap { white-space: pre-wrap; } .sm\:break-words { word-wrap: break-word; } .sm\:break-normal { word-wrap: normal; } .sm\:truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sm\:w-1 { width: .25rem; } .sm\:w-2 { width: .5rem; } .sm\:w-3 { width: .75rem; } .sm\:w-4 { width: 1rem; } .sm\:w-6 { width: 1.5rem; } .sm\:w-8 { width: 2rem; } .sm\:w-10 { width: 2.5rem; } .sm\:w-12 { width: 3rem; } .sm\:w-16 { width: 4rem; } .sm\:w-24 { width: 6rem; } .sm\:w-32 { width: 8rem; } .sm\:w-48 { width: 12rem; } .sm\:w-64 { width: 16rem; } .sm\:w-auto { width: auto; } .sm\:w-px { width: 1px; } .sm\:w-1\/2 { width: 50%; } .sm\:w-1\/3 { width: 33.33333%; } .sm\:w-2\/3 { width: 66.66667%; } .sm\:w-1\/4 { width: 25%; } .sm\:w-3\/4 { width: 75%; } .sm\:w-1\/5 { width: 20%; } .sm\:w-2\/5 { width: 40%; } .sm\:w-3\/5 { width: 60%; } .sm\:w-4\/5 { width: 80%; } .sm\:w-1\/6 { width: 16.66667%; } .sm\:w-5\/6 { width: 83.33333%; } .sm\:w-full { width: 100%; } .sm\:w-screen { width: 100vw; } .sm\:z-0 { z-index: 0; } .sm\:z-10 { z-index: 10; } .sm\:z-20 { z-index: 20; } .sm\:z-30 { z-index: 30; } .sm\:z-40 { z-index: 40; } .sm\:z-50 { z-index: 50; } .sm\:z-auto { z-index: auto; } } @media (min-width: 768px) { .md\:list-reset { list-style: none; padding: 0; } .md\:appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .md\:bg-fixed { background-attachment: fixed; } .md\:bg-local { background-attachment: local; } .md\:bg-scroll { background-attachment: scroll; } .md\:bg-transparent { background-color: transparent; } .md\:bg-black { background-color: #22292f; } .md\:bg-grey-darkest { background-color: #3d4852; } .md\:bg-grey-darker { background-color: #606f7b; } .md\:bg-grey-dark { background-color: #8795a1; } .md\:bg-grey { background-color: #b8c2cc; } .md\:bg-grey-light { background-color: #dae1e7; } .md\:bg-grey-lighter { background-color: #f1f5f8; } .md\:bg-grey-lightest { background-color: #f8fafc; } .md\:bg-white { background-color: #fff; } .md\:bg-red-darkest { background-color: #3b0d0c; } .md\:bg-red-darker { background-color: #621b18; } .md\:bg-red-dark { background-color: #cc1f1a; } .md\:bg-red { background-color: #e3342f; } .md\:bg-red-light { background-color: #ef5753; } .md\:bg-red-lighter { background-color: #f9acaa; } .md\:bg-red-lightest { background-color: #fcebea; } .md\:bg-orange-darkest { background-color: #462a16; } .md\:bg-orange-darker { background-color: #613b1f; } .md\:bg-orange-dark { background-color: #de751f; } .md\:bg-orange { background-color: #f6993f; } .md\:bg-orange-light { background-color: #faad63; } .md\:bg-orange-lighter { background-color: #fcd9b6; } .md\:bg-orange-lightest { background-color: #fff5eb; } .md\:bg-yellow-darkest { background-color: #453411; } .md\:bg-yellow-darker { background-color: #684f1d; } .md\:bg-yellow-dark { background-color: #f2d024; } .md\:bg-yellow { background-color: #ffed4a; } .md\:bg-yellow-light { background-color: #fff382; } .md\:bg-yellow-lighter { background-color: #fff9c2; } .md\:bg-yellow-lightest { background-color: #fcfbeb; } .md\:bg-green-darkest { background-color: #0f2f21; } .md\:bg-green-darker { background-color: #1a4731; } .md\:bg-green-dark { background-color: #1f9d55; } .md\:bg-green { background-color: #38c172; } .md\:bg-green-light { background-color: #51d88a; } .md\:bg-green-lighter { background-color: #a2f5bf; } .md\:bg-green-lightest { background-color: #e3fcec; } .md\:bg-teal-darkest { background-color: #0d3331; } .md\:bg-teal-darker { background-color: #20504f; } .md\:bg-teal-dark { background-color: #38a89d; } .md\:bg-teal { background-color: #4dc0b5; } .md\:bg-teal-light { background-color: #64d5ca; } .md\:bg-teal-lighter { background-color: #a0f0ed; } .md\:bg-teal-lightest { background-color: #e8fffe; } .md\:bg-blue-darkest { background-color: #12283a; } .md\:bg-blue-darker { background-color: #1c3d5a; } .md\:bg-blue-dark { background-color: #2779bd; } .md\:bg-blue { background-color: #3490dc; } .md\:bg-blue-light { background-color: #6cb2eb; } .md\:bg-blue-lighter { background-color: #bcdefa; } .md\:bg-blue-lightest { background-color: #eff8ff; } .md\:bg-indigo-darkest { background-color: #191e38; } .md\:bg-indigo-darker { background-color: #2f365f; } .md\:bg-indigo-dark { background-color: #5661b3; } .md\:bg-indigo { background-color: #6574cd; } .md\:bg-indigo-light { background-color: #7886d7; } .md\:bg-indigo-lighter { background-color: #b2b7ff; } .md\:bg-indigo-lightest { background-color: #e6e8ff; } .md\:bg-purple-darkest { background-color: #21183c; } .md\:bg-purple-darker { background-color: #382b5f; } .md\:bg-purple-dark { background-color: #794acf; } .md\:bg-purple { background-color: #9561e2; } .md\:bg-purple-light { background-color: #a779e9; } .md\:bg-purple-lighter { background-color: #d6bbfc; } .md\:bg-purple-lightest { background-color: #f3ebff; } .md\:bg-pink-darkest { background-color: #451225; } .md\:bg-pink-darker { background-color: #6f213f; } .md\:bg-pink-dark { background-color: #eb5286; } .md\:bg-pink { background-color: #f66d9b; } .md\:bg-pink-light { background-color: #fa7ea8; } .md\:bg-pink-lighter { background-color: #ffbbca; } .md\:bg-pink-lightest { background-color: #ffebef; } .md\:hover\:bg-transparent:hover { background-color: transparent; } .md\:hover\:bg-black:hover { background-color: #22292f; } .md\:hover\:bg-grey-darkest:hover { background-color: #3d4852; } .md\:hover\:bg-grey-darker:hover { background-color: #606f7b; } .md\:hover\:bg-grey-dark:hover { background-color: #8795a1; } .md\:hover\:bg-grey:hover { background-color: #b8c2cc; } .md\:hover\:bg-grey-light:hover { background-color: #dae1e7; } .md\:hover\:bg-grey-lighter:hover { background-color: #f1f5f8; } .md\:hover\:bg-grey-lightest:hover { background-color: #f8fafc; } .md\:hover\:bg-white:hover { background-color: #fff; } .md\:hover\:bg-red-darkest:hover { background-color: #3b0d0c; } .md\:hover\:bg-red-darker:hover { background-color: #621b18; } .md\:hover\:bg-red-dark:hover { background-color: #cc1f1a; } .md\:hover\:bg-red:hover { background-color: #e3342f; } .md\:hover\:bg-red-light:hover { background-color: #ef5753; } .md\:hover\:bg-red-lighter:hover { background-color: #f9acaa; } .md\:hover\:bg-red-lightest:hover { background-color: #fcebea; } .md\:hover\:bg-orange-darkest:hover { background-color: #462a16; } .md\:hover\:bg-orange-darker:hover { background-color: #613b1f; } .md\:hover\:bg-orange-dark:hover { background-color: #de751f; } .md\:hover\:bg-orange:hover { background-color: #f6993f; } .md\:hover\:bg-orange-light:hover { background-color: #faad63; } .md\:hover\:bg-orange-lighter:hover { background-color: #fcd9b6; } .md\:hover\:bg-orange-lightest:hover { background-color: #fff5eb; } .md\:hover\:bg-yellow-darkest:hover { background-color: #453411; } .md\:hover\:bg-yellow-darker:hover { background-color: #684f1d; } .md\:hover\:bg-yellow-dark:hover { background-color: #f2d024; } .md\:hover\:bg-yellow:hover { background-color: #ffed4a; } .md\:hover\:bg-yellow-light:hover { background-color: #fff382; } .md\:hover\:bg-yellow-lighter:hover { background-color: #fff9c2; } .md\:hover\:bg-yellow-lightest:hover { background-color: #fcfbeb; } .md\:hover\:bg-green-darkest:hover { background-color: #0f2f21; } .md\:hover\:bg-green-darker:hover { background-color: #1a4731; } .md\:hover\:bg-green-dark:hover { background-color: #1f9d55; } .md\:hover\:bg-green:hover { background-color: #38c172; } .md\:hover\:bg-green-light:hover { background-color: #51d88a; } .md\:hover\:bg-green-lighter:hover { background-color: #a2f5bf; } .md\:hover\:bg-green-lightest:hover { background-color: #e3fcec; } .md\:hover\:bg-teal-darkest:hover { background-color: #0d3331; } .md\:hover\:bg-teal-darker:hover { background-color: #20504f; } .md\:hover\:bg-teal-dark:hover { background-color: #38a89d; } .md\:hover\:bg-teal:hover { background-color: #4dc0b5; } .md\:hover\:bg-teal-light:hover { background-color: #64d5ca; } .md\:hover\:bg-teal-lighter:hover { background-color: #a0f0ed; } .md\:hover\:bg-teal-lightest:hover { background-color: #e8fffe; } .md\:hover\:bg-blue-darkest:hover { background-color: #12283a; } .md\:hover\:bg-blue-darker:hover { background-color: #1c3d5a; } .md\:hover\:bg-blue-dark:hover { background-color: #2779bd; } .md\:hover\:bg-blue:hover { background-color: #3490dc; } .md\:hover\:bg-blue-light:hover { background-color: #6cb2eb; } .md\:hover\:bg-blue-lighter:hover { background-color: #bcdefa; } .md\:hover\:bg-blue-lightest:hover { background-color: #eff8ff; } .md\:hover\:bg-indigo-darkest:hover { background-color: #191e38; } .md\:hover\:bg-indigo-darker:hover { background-color: #2f365f; } .md\:hover\:bg-indigo-dark:hover { background-color: #5661b3; } .md\:hover\:bg-indigo:hover { background-color: #6574cd; } .md\:hover\:bg-indigo-light:hover { background-color: #7886d7; } .md\:hover\:bg-indigo-lighter:hover { background-color: #b2b7ff; } .md\:hover\:bg-indigo-lightest:hover { background-color: #e6e8ff; } .md\:hover\:bg-purple-darkest:hover { background-color: #21183c; } .md\:hover\:bg-purple-darker:hover { background-color: #382b5f; } .md\:hover\:bg-purple-dark:hover { background-color: #794acf; } .md\:hover\:bg-purple:hover { background-color: #9561e2; } .md\:hover\:bg-purple-light:hover { background-color: #a779e9; } .md\:hover\:bg-purple-lighter:hover { background-color: #d6bbfc; } .md\:hover\:bg-purple-lightest:hover { background-color: #f3ebff; } .md\:hover\:bg-pink-darkest:hover { background-color: #451225; } .md\:hover\:bg-pink-darker:hover { background-color: #6f213f; } .md\:hover\:bg-pink-dark:hover { background-color: #eb5286; } .md\:hover\:bg-pink:hover { background-color: #f66d9b; } .md\:hover\:bg-pink-light:hover { background-color: #fa7ea8; } .md\:hover\:bg-pink-lighter:hover { background-color: #ffbbca; } .md\:hover\:bg-pink-lightest:hover { background-color: #ffebef; } .md\:bg-bottom { background-position: bottom; } .md\:bg-center { background-position: center; } .md\:bg-left { background-position: left; } .md\:bg-left-bottom { background-position: left bottom; } .md\:bg-left-top { background-position: left top; } .md\:bg-right { background-position: right; } .md\:bg-right-bottom { background-position: right bottom; } .md\:bg-right-top { background-position: right top; } .md\:bg-top { background-position: top; } .md\:bg-repeat { background-repeat: repeat; } .md\:bg-no-repeat { background-repeat: no-repeat; } .md\:bg-repeat-x { background-repeat: repeat-x; } .md\:bg-repeat-y { background-repeat: repeat-y; } .md\:bg-auto { background-size: auto; } .md\:bg-cover { background-size: cover; } .md\:bg-contain { background-size: contain; } .md\:border-transparent { border-color: transparent; } .md\:border-black { border-color: #22292f; } .md\:border-grey-darkest { border-color: #3d4852; } .md\:border-grey-darker { border-color: #606f7b; } .md\:border-grey-dark { border-color: #8795a1; } .md\:border-grey { border-color: #b8c2cc; } .md\:border-grey-light { border-color: #dae1e7; } .md\:border-grey-lighter { border-color: #f1f5f8; } .md\:border-grey-lightest { border-color: #f8fafc; } .md\:border-white { border-color: #fff; } .md\:border-red-darkest { border-color: #3b0d0c; } .md\:border-red-darker { border-color: #621b18; } .md\:border-red-dark { border-color: #cc1f1a; } .md\:border-red { border-color: #e3342f; } .md\:border-red-light { border-color: #ef5753; } .md\:border-red-lighter { border-color: #f9acaa; } .md\:border-red-lightest { border-color: #fcebea; } .md\:border-orange-darkest { border-color: #462a16; } .md\:border-orange-darker { border-color: #613b1f; } .md\:border-orange-dark { border-color: #de751f; } .md\:border-orange { border-color: #f6993f; } .md\:border-orange-light { border-color: #faad63; } .md\:border-orange-lighter { border-color: #fcd9b6; } .md\:border-orange-lightest { border-color: #fff5eb; } .md\:border-yellow-darkest { border-color: #453411; } .md\:border-yellow-darker { border-color: #684f1d; } .md\:border-yellow-dark { border-color: #f2d024; } .md\:border-yellow { border-color: #ffed4a; } .md\:border-yellow-light { border-color: #fff382; } .md\:border-yellow-lighter { border-color: #fff9c2; } .md\:border-yellow-lightest { border-color: #fcfbeb; } .md\:border-green-darkest { border-color: #0f2f21; } .md\:border-green-darker { border-color: #1a4731; } .md\:border-green-dark { border-color: #1f9d55; } .md\:border-green { border-color: #38c172; } .md\:border-green-light { border-color: #51d88a; } .md\:border-green-lighter { border-color: #a2f5bf; } .md\:border-green-lightest { border-color: #e3fcec; } .md\:border-teal-darkest { border-color: #0d3331; } .md\:border-teal-darker { border-color: #20504f; } .md\:border-teal-dark { border-color: #38a89d; } .md\:border-teal { border-color: #4dc0b5; } .md\:border-teal-light { border-color: #64d5ca; } .md\:border-teal-lighter { border-color: #a0f0ed; } .md\:border-teal-lightest { border-color: #e8fffe; } .md\:border-blue-darkest { border-color: #12283a; } .md\:border-blue-darker { border-color: #1c3d5a; } .md\:border-blue-dark { border-color: #2779bd; } .md\:border-blue { border-color: #3490dc; } .md\:border-blue-light { border-color: #6cb2eb; } .md\:border-blue-lighter { border-color: #bcdefa; } .md\:border-blue-lightest { border-color: #eff8ff; } .md\:border-indigo-darkest { border-color: #191e38; } .md\:border-indigo-darker { border-color: #2f365f; } .md\:border-indigo-dark { border-color: #5661b3; } .md\:border-indigo { border-color: #6574cd; } .md\:border-indigo-light { border-color: #7886d7; } .md\:border-indigo-lighter { border-color: #b2b7ff; } .md\:border-indigo-lightest { border-color: #e6e8ff; } .md\:border-purple-darkest { border-color: #21183c; } .md\:border-purple-darker { border-color: #382b5f; } .md\:border-purple-dark { border-color: #794acf; } .md\:border-purple { border-color: #9561e2; } .md\:border-purple-light { border-color: #a779e9; } .md\:border-purple-lighter { border-color: #d6bbfc; } .md\:border-purple-lightest { border-color: #f3ebff; } .md\:border-pink-darkest { border-color: #451225; } .md\:border-pink-darker { border-color: #6f213f; } .md\:border-pink-dark { border-color: #eb5286; } .md\:border-pink { border-color: #f66d9b; } .md\:border-pink-light { border-color: #fa7ea8; } .md\:border-pink-lighter { border-color: #ffbbca; } .md\:border-pink-lightest { border-color: #ffebef; } .md\:hover\:border-transparent:hover { border-color: transparent; } .md\:hover\:border-black:hover { border-color: #22292f; } .md\:hover\:border-grey-darkest:hover { border-color: #3d4852; } .md\:hover\:border-grey-darker:hover { border-color: #606f7b; } .md\:hover\:border-grey-dark:hover { border-color: #8795a1; } .md\:hover\:border-grey:hover { border-color: #b8c2cc; } .md\:hover\:border-grey-light:hover { border-color: #dae1e7; } .md\:hover\:border-grey-lighter:hover { border-color: #f1f5f8; } .md\:hover\:border-grey-lightest:hover { border-color: #f8fafc; } .md\:hover\:border-white:hover { border-color: #fff; } .md\:hover\:border-red-darkest:hover { border-color: #3b0d0c; } .md\:hover\:border-red-darker:hover { border-color: #621b18; } .md\:hover\:border-red-dark:hover { border-color: #cc1f1a; } .md\:hover\:border-red:hover { border-color: #e3342f; } .md\:hover\:border-red-light:hover { border-color: #ef5753; } .md\:hover\:border-red-lighter:hover { border-color: #f9acaa; } .md\:hover\:border-red-lightest:hover { border-color: #fcebea; } .md\:hover\:border-orange-darkest:hover { border-color: #462a16; } .md\:hover\:border-orange-darker:hover { border-color: #613b1f; } .md\:hover\:border-orange-dark:hover { border-color: #de751f; } .md\:hover\:border-orange:hover { border-color: #f6993f; } .md\:hover\:border-orange-light:hover { border-color: #faad63; } .md\:hover\:border-orange-lighter:hover { border-color: #fcd9b6; } .md\:hover\:border-orange-lightest:hover { border-color: #fff5eb; } .md\:hover\:border-yellow-darkest:hover { border-color: #453411; } .md\:hover\:border-yellow-darker:hover { border-color: #684f1d; } .md\:hover\:border-yellow-dark:hover { border-color: #f2d024; } .md\:hover\:border-yellow:hover { border-color: #ffed4a; } .md\:hover\:border-yellow-light:hover { border-color: #fff382; } .md\:hover\:border-yellow-lighter:hover { border-color: #fff9c2; } .md\:hover\:border-yellow-lightest:hover { border-color: #fcfbeb; } .md\:hover\:border-green-darkest:hover { border-color: #0f2f21; } .md\:hover\:border-green-darker:hover { border-color: #1a4731; } .md\:hover\:border-green-dark:hover { border-color: #1f9d55; } .md\:hover\:border-green:hover { border-color: #38c172; } .md\:hover\:border-green-light:hover { border-color: #51d88a; } .md\:hover\:border-green-lighter:hover { border-color: #a2f5bf; } .md\:hover\:border-green-lightest:hover { border-color: #e3fcec; } .md\:hover\:border-teal-darkest:hover { border-color: #0d3331; } .md\:hover\:border-teal-darker:hover { border-color: #20504f; } .md\:hover\:border-teal-dark:hover { border-color: #38a89d; } .md\:hover\:border-teal:hover { border-color: #4dc0b5; } .md\:hover\:border-teal-light:hover { border-color: #64d5ca; } .md\:hover\:border-teal-lighter:hover { border-color: #a0f0ed; } .md\:hover\:border-teal-lightest:hover { border-color: #e8fffe; } .md\:hover\:border-blue-darkest:hover { border-color: #12283a; } .md\:hover\:border-blue-darker:hover { border-color: #1c3d5a; } .md\:hover\:border-blue-dark:hover { border-color: #2779bd; } .md\:hover\:border-blue:hover { border-color: #3490dc; } .md\:hover\:border-blue-light:hover { border-color: #6cb2eb; } .md\:hover\:border-blue-lighter:hover { border-color: #bcdefa; } .md\:hover\:border-blue-lightest:hover { border-color: #eff8ff; } .md\:hover\:border-indigo-darkest:hover { border-color: #191e38; } .md\:hover\:border-indigo-darker:hover { border-color: #2f365f; } .md\:hover\:border-indigo-dark:hover { border-color: #5661b3; } .md\:hover\:border-indigo:hover { border-color: #6574cd; } .md\:hover\:border-indigo-light:hover { border-color: #7886d7; } .md\:hover\:border-indigo-lighter:hover { border-color: #b2b7ff; } .md\:hover\:border-indigo-lightest:hover { border-color: #e6e8ff; } .md\:hover\:border-purple-darkest:hover { border-color: #21183c; } .md\:hover\:border-purple-darker:hover { border-color: #382b5f; } .md\:hover\:border-purple-dark:hover { border-color: #794acf; } .md\:hover\:border-purple:hover { border-color: #9561e2; } .md\:hover\:border-purple-light:hover { border-color: #a779e9; } .md\:hover\:border-purple-lighter:hover { border-color: #d6bbfc; } .md\:hover\:border-purple-lightest:hover { border-color: #f3ebff; } .md\:hover\:border-pink-darkest:hover { border-color: #451225; } .md\:hover\:border-pink-darker:hover { border-color: #6f213f; } .md\:hover\:border-pink-dark:hover { border-color: #eb5286; } .md\:hover\:border-pink:hover { border-color: #f66d9b; } .md\:hover\:border-pink-light:hover { border-color: #fa7ea8; } .md\:hover\:border-pink-lighter:hover { border-color: #ffbbca; } .md\:hover\:border-pink-lightest:hover { border-color: #ffebef; } .md\:rounded-none { border-radius: 0; } .md\:rounded-sm { border-radius: .125rem; } .md\:rounded { border-radius: .25rem; } .md\:rounded-lg { border-radius: .5rem; } .md\:rounded-full { border-radius: 9999px; } .md\:rounded-t-none { border-top-left-radius: 0; border-top-right-radius: 0; } .md\:rounded-r-none { border-top-right-radius: 0; border-bottom-right-radius: 0; } .md\:rounded-b-none { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .md\:rounded-l-none { border-top-left-radius: 0; border-bottom-left-radius: 0; } .md\:rounded-t-sm { border-top-left-radius: .125rem; border-top-right-radius: .125rem; } .md\:rounded-r-sm { border-top-right-radius: .125rem; border-bottom-right-radius: .125rem; } .md\:rounded-b-sm { border-bottom-right-radius: .125rem; border-bottom-left-radius: .125rem; } .md\:rounded-l-sm { border-top-left-radius: .125rem; border-bottom-left-radius: .125rem; } .md\:rounded-t { border-top-left-radius: .25rem; border-top-right-radius: .25rem; } .md\:rounded-r { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; } .md\:rounded-b { border-bottom-right-radius: .25rem; border-bottom-left-radius: .25rem; } .md\:rounded-l { border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; } .md\:rounded-t-lg { border-top-left-radius: .5rem; border-top-right-radius: .5rem; } .md\:rounded-r-lg { border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; } .md\:rounded-b-lg { border-bottom-right-radius: .5rem; border-bottom-left-radius: .5rem; } .md\:rounded-l-lg { border-top-left-radius: .5rem; border-bottom-left-radius: .5rem; } .md\:rounded-t-full { border-top-left-radius: 9999px; border-top-right-radius: 9999px; } .md\:rounded-r-full { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; } .md\:rounded-b-full { border-bottom-right-radius: 9999px; border-bottom-left-radius: 9999px; } .md\:rounded-l-full { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; } .md\:rounded-tl-none { border-top-left-radius: 0; } .md\:rounded-tr-none { border-top-right-radius: 0; } .md\:rounded-br-none { border-bottom-right-radius: 0; } .md\:rounded-bl-none { border-bottom-left-radius: 0; } .md\:rounded-tl-sm { border-top-left-radius: .125rem; } .md\:rounded-tr-sm { border-top-right-radius: .125rem; } .md\:rounded-br-sm { border-bottom-right-radius: .125rem; } .md\:rounded-bl-sm { border-bottom-left-radius: .125rem; } .md\:rounded-tl { border-top-left-radius: .25rem; } .md\:rounded-tr { border-top-right-radius: .25rem; } .md\:rounded-br { border-bottom-right-radius: .25rem; } .md\:rounded-bl { border-bottom-left-radius: .25rem; } .md\:rounded-tl-lg { border-top-left-radius: .5rem; } .md\:rounded-tr-lg { border-top-right-radius: .5rem; } .md\:rounded-br-lg { border-bottom-right-radius: .5rem; } .md\:rounded-bl-lg { border-bottom-left-radius: .5rem; } .md\:rounded-tl-full { border-top-left-radius: 9999px; } .md\:rounded-tr-full { border-top-right-radius: 9999px; } .md\:rounded-br-full { border-bottom-right-radius: 9999px; } .md\:rounded-bl-full { border-bottom-left-radius: 9999px; } .md\:border-solid { border-style: solid; } .md\:border-dashed { border-style: dashed; } .md\:border-dotted { border-style: dotted; } .md\:border-none { border-style: none; } .md\:border-0 { border-width: 0; } .md\:border-2 { border-width: 2px; } .md\:border-4 { border-width: 4px; } .md\:border-8 { border-width: 8px; } .md\:border { border-width: 1px; } .md\:border-t-0 { border-top-width: 0; } .md\:border-r-0 { border-right-width: 0; } .md\:border-b-0 { border-bottom-width: 0; } .md\:border-l-0 { border-left-width: 0; } .md\:border-t-2 { border-top-width: 2px; } .md\:border-r-2 { border-right-width: 2px; } .md\:border-b-2 { border-bottom-width: 2px; } .md\:border-l-2 { border-left-width: 2px; } .md\:border-t-4 { border-top-width: 4px; } .md\:border-r-4 { border-right-width: 4px; } .md\:border-b-4 { border-bottom-width: 4px; } .md\:border-l-4 { border-left-width: 4px; } .md\:border-t-8 { border-top-width: 8px; } .md\:border-r-8 { border-right-width: 8px; } .md\:border-b-8 { border-bottom-width: 8px; } .md\:border-l-8 { border-left-width: 8px; } .md\:border-t { border-top-width: 1px; } .md\:border-r { border-right-width: 1px; } .md\:border-b { border-bottom-width: 1px; } .md\:border-l { border-left-width: 1px; } .md\:cursor-auto { cursor: auto; } .md\:cursor-default { cursor: default; } .md\:cursor-pointer { cursor: pointer; } .md\:cursor-wait { cursor: wait; } .md\:cursor-move { cursor: move; } .md\:cursor-not-allowed { cursor: not-allowed; } .md\:block { display: block; } .md\:inline-block { display: inline-block; } .md\:inline { display: inline; } .md\:table { display: table; } .md\:table-row { display: table-row; } .md\:table-cell { display: table-cell; } .md\:hidden { display: none; } .md\:flex { display: flex; } .md\:inline-flex { display: inline-flex; } .md\:flex-row { flex-direction: row; } .md\:flex-row-reverse { flex-direction: row-reverse; } .md\:flex-col { flex-direction: column; } .md\:flex-col-reverse { flex-direction: column-reverse; } .md\:flex-wrap { flex-wrap: wrap; } .md\:flex-wrap-reverse { flex-wrap: wrap-reverse; } .md\:flex-no-wrap { flex-wrap: nowrap; } .md\:items-start { align-items: flex-start; } .md\:items-end { align-items: flex-end; } .md\:items-center { align-items: center; } .md\:items-baseline { align-items: baseline; } .md\:items-stretch { align-items: stretch; } .md\:self-auto { align-self: auto; } .md\:self-start { align-self: flex-start; } .md\:self-end { align-self: flex-end; } .md\:self-center { align-self: center; } .md\:self-stretch { align-self: stretch; } .md\:justify-start { justify-content: flex-start; } .md\:justify-end { justify-content: flex-end; } .md\:justify-center { justify-content: center; } .md\:justify-between { justify-content: space-between; } .md\:justify-around { justify-content: space-around; } .md\:content-center { align-content: center; } .md\:content-start { align-content: flex-start; } .md\:content-end { align-content: flex-end; } .md\:content-between { align-content: space-between; } .md\:content-around { align-content: space-around; } .md\:flex-1 { flex: 1; } .md\:flex-auto { flex: auto; } .md\:flex-initial { flex: initial; } .md\:flex-none { flex: none; } .md\:flex-grow { flex-grow: 1; } .md\:flex-shrink { flex-shrink: 1; } .md\:flex-no-grow { flex-grow: 0; } .md\:flex-no-shrink { flex-shrink: 0; } .md\:float-right { float: right; } .md\:float-left { float: left; } .md\:float-none { float: none; } .md\:clearfix:after { content: ""; display: table; clear: both; } .md\:font-sans { font-family: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } .md\:font-serif { font-family: Constantia, Lucida Bright, Lucidabright, Lucida Serif, Lucida, DejaVu Serif, Bitstream Vera Serif, Liberation Serif, Georgia, serif; } .md\:font-mono { font-family: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; } .md\:font-hairline { font-weight: 100; } .md\:font-thin { font-weight: 200; } .md\:font-light { font-weight: 300; } .md\:font-normal { font-weight: 400; } .md\:font-medium { font-weight: 500; } .md\:font-semibold { font-weight: 600; } .md\:font-bold { font-weight: 700; } .md\:font-extrabold { font-weight: 800; } .md\:font-black { font-weight: 900; } .md\:hover\:font-hairline:hover { font-weight: 100; } .md\:hover\:font-thin:hover { font-weight: 200; } .md\:hover\:font-light:hover { font-weight: 300; } .md\:hover\:font-normal:hover { font-weight: 400; } .md\:hover\:font-medium:hover { font-weight: 500; } .md\:hover\:font-semibold:hover { font-weight: 600; } .md\:hover\:font-bold:hover { font-weight: 700; } .md\:hover\:font-extrabold:hover { font-weight: 800; } .md\:hover\:font-black:hover { font-weight: 900; } .md\:h-1 { height: .25rem; } .md\:h-2 { height: .5rem; } .md\:h-3 { height: .75rem; } .md\:h-4 { height: 1rem; } .md\:h-6 { height: 1.5rem; } .md\:h-8 { height: 2rem; } .md\:h-10 { height: 2.5rem; } .md\:h-12 { height: 3rem; } .md\:h-16 { height: 4rem; } .md\:h-24 { height: 6rem; } .md\:h-32 { height: 8rem; } .md\:h-48 { height: 12rem; } .md\:h-64 { height: 16rem; } .md\:h-auto { height: auto; } .md\:h-px { height: 1px; } .md\:h-full { height: 100%; } .md\:h-screen { height: 100vh; } .md\:leading-none { line-height: 1; } .md\:leading-tight { line-height: 1.25; } .md\:leading-normal { line-height: 1.5; } .md\:leading-loose { line-height: 2; } .md\:m-0 { margin: 0; } .md\:m-1 { margin: .25rem; } .md\:m-2 { margin: .5rem; } .md\:m-3 { margin: .75rem; } .md\:m-4 { margin: 1rem; } .md\:m-6 { margin: 1.5rem; } .md\:m-8 { margin: 2rem; } .md\:m-auto { margin: auto; } .md\:m-px { margin: 1px; } .md\:my-0 { margin-top: 0; margin-bottom: 0; } .md\:mx-0 { margin-left: 0; margin-right: 0; } .md\:my-1 { margin-top: .25rem; margin-bottom: .25rem; } .md\:mx-1 { margin-left: .25rem; margin-right: .25rem; } .md\:my-2 { margin-top: .5rem; margin-bottom: .5rem; } .md\:mx-2 { margin-left: .5rem; margin-right: .5rem; } .md\:my-3 { margin-top: .75rem; margin-bottom: .75rem; } .md\:mx-3 { margin-left: .75rem; margin-right: .75rem; } .md\:my-4 { margin-top: 1rem; margin-bottom: 1rem; } .md\:mx-4 { margin-left: 1rem; margin-right: 1rem; } .md\:my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; } .md\:mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; } .md\:my-8 { margin-top: 2rem; margin-bottom: 2rem; } .md\:mx-8 { margin-left: 2rem; margin-right: 2rem; } .md\:my-auto { margin-top: auto; margin-bottom: auto; } .md\:mx-auto { margin-left: auto; margin-right: auto; } .md\:my-px { margin-top: 1px; margin-bottom: 1px; } .md\:mx-px { margin-left: 1px; margin-right: 1px; } .md\:mt-0 { margin-top: 0; } .md\:mr-0 { margin-right: 0; } .md\:mb-0 { margin-bottom: 0; } .md\:ml-0 { margin-left: 0; } .md\:mt-1 { margin-top: .25rem; } .md\:mr-1 { margin-right: .25rem; } .md\:mb-1 { margin-bottom: .25rem; } .md\:ml-1 { margin-left: .25rem; } .md\:mt-2 { margin-top: .5rem; } .md\:mr-2 { margin-right: .5rem; } .md\:mb-2 { margin-bottom: .5rem; } .md\:ml-2 { margin-left: .5rem; } .md\:mt-3 { margin-top: .75rem; } .md\:mr-3 { margin-right: .75rem; } .md\:mb-3 { margin-bottom: .75rem; } .md\:ml-3 { margin-left: .75rem; } .md\:mt-4 { margin-top: 1rem; } .md\:mr-4 { margin-right: 1rem; } .md\:mb-4 { margin-bottom: 1rem; } .md\:ml-4 { margin-left: 1rem; } .md\:mt-6 { margin-top: 1.5rem; } .md\:mr-6 { margin-right: 1.5rem; } .md\:mb-6 { margin-bottom: 1.5rem; } .md\:ml-6 { margin-left: 1.5rem; } .md\:mt-8 { margin-top: 2rem; } .md\:mr-8 { margin-right: 2rem; } .md\:mb-8 { margin-bottom: 2rem; } .md\:ml-8 { margin-left: 2rem; } .md\:mt-auto { margin-top: auto; } .md\:mr-auto { margin-right: auto; } .md\:mb-auto { margin-bottom: auto; } .md\:ml-auto { margin-left: auto; } .md\:mt-px { margin-top: 1px; } .md\:mr-px { margin-right: 1px; } .md\:mb-px { margin-bottom: 1px; } .md\:ml-px { margin-left: 1px; } .md\:max-h-full { max-height: 100%; } .md\:max-h-screen { max-height: 100vh; } .md\:max-w-xs { max-width: 20rem; } .md\:max-w-sm { max-width: 30rem; } .md\:max-w-md { max-width: 40rem; } .md\:max-w-lg { max-width: 50rem; } .md\:max-w-xl { max-width: 60rem; } .md\:max-w-2xl { max-width: 70rem; } .md\:max-w-3xl { max-width: 80rem; } .md\:max-w-4xl { max-width: 90rem; } .md\:max-w-5xl { max-width: 100rem; } .md\:max-w-full { max-width: 100%; } .md\:min-h-0 { min-height: 0; } .md\:min-h-full { min-height: 100%; } .md\:min-h-screen { min-height: 100vh; } .md\:min-w-0 { min-width: 0; } .md\:min-w-full { min-width: 100%; } .md\:-m-0 { margin: 0; } .md\:-m-1 { margin: -0.25rem; } .md\:-m-2 { margin: -0.5rem; } .md\:-m-3 { margin: -0.75rem; } .md\:-m-4 { margin: -1rem; } .md\:-m-6 { margin: -1.5rem; } .md\:-m-8 { margin: -2rem; } .md\:-m-px { margin: -1px; } .md\:-my-0 { margin-top: 0; margin-bottom: 0; } .md\:-mx-0 { margin-left: 0; margin-right: 0; } .md\:-my-1 { margin-top: -0.25rem; margin-bottom: -0.25rem; } .md\:-mx-1 { margin-left: -0.25rem; margin-right: -0.25rem; } .md\:-my-2 { margin-top: -0.5rem; margin-bottom: -0.5rem; } .md\:-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; } .md\:-my-3 { margin-top: -0.75rem; margin-bottom: -0.75rem; } .md\:-mx-3 { margin-left: -0.75rem; margin-right: -0.75rem; } .md\:-my-4 { margin-top: -1rem; margin-bottom: -1rem; } .md\:-mx-4 { margin-left: -1rem; margin-right: -1rem; } .md\:-my-6 { margin-top: -1.5rem; margin-bottom: -1.5rem; } .md\:-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; } .md\:-my-8 { margin-top: -2rem; margin-bottom: -2rem; } .md\:-mx-8 { margin-left: -2rem; margin-right: -2rem; } .md\:-my-px { margin-top: -1px; margin-bottom: -1px; } .md\:-mx-px { margin-left: -1px; margin-right: -1px; } .md\:-mt-0 { margin-top: 0; } .md\:-mr-0 { margin-right: 0; } .md\:-mb-0 { margin-bottom: 0; } .md\:-ml-0 { margin-left: 0; } .md\:-mt-1 { margin-top: -0.25rem; } .md\:-mr-1 { margin-right: -0.25rem; } .md\:-mb-1 { margin-bottom: -0.25rem; } .md\:-ml-1 { margin-left: -0.25rem; } .md\:-mt-2 { margin-top: -0.5rem; } .md\:-mr-2 { margin-right: -0.5rem; } .md\:-mb-2 { margin-bottom: -0.5rem; } .md\:-ml-2 { margin-left: -0.5rem; } .md\:-mt-3 { margin-top: -0.75rem; } .md\:-mr-3 { margin-right: -0.75rem; } .md\:-mb-3 { margin-bottom: -0.75rem; } .md\:-ml-3 { margin-left: -0.75rem; } .md\:-mt-4 { margin-top: -1rem; } .md\:-mr-4 { margin-right: -1rem; } .md\:-mb-4 { margin-bottom: -1rem; } .md\:-ml-4 { margin-left: -1rem; } .md\:-mt-6 { margin-top: -1.5rem; } .md\:-mr-6 { margin-right: -1.5rem; } .md\:-mb-6 { margin-bottom: -1.5rem; } .md\:-ml-6 { margin-left: -1.5rem; } .md\:-mt-8 { margin-top: -2rem; } .md\:-mr-8 { margin-right: -2rem; } .md\:-mb-8 { margin-bottom: -2rem; } .md\:-ml-8 { margin-left: -2rem; } .md\:-mt-px { margin-top: -1px; } .md\:-mr-px { margin-right: -1px; } .md\:-mb-px { margin-bottom: -1px; } .md\:-ml-px { margin-left: -1px; } .md\:opacity-0 { opacity: 0; } .md\:opacity-25 { opacity: .25; } .md\:opacity-50 { opacity: .5; } .md\:opacity-75 { opacity: .75; } .md\:opacity-100 { opacity: 1; } .md\:overflow-auto { overflow: auto; } .md\:overflow-hidden { overflow: hidden; } .md\:overflow-visible { overflow: visible; } .md\:overflow-scroll { overflow: scroll; } .md\:overflow-x-auto { overflow-x: auto; } .md\:overflow-y-auto { overflow-y: auto; } .md\:overflow-x-scroll { overflow-x: scroll; } .md\:overflow-y-scroll { overflow-y: scroll; } .md\:scrolling-touch { -webkit-overflow-scrolling: touch; } .md\:scrolling-auto { -webkit-overflow-scrolling: auto; } .md\:p-0 { padding: 0; } .md\:p-1 { padding: .25rem; } .md\:p-2 { padding: .5rem; } .md\:p-3 { padding: .75rem; } .md\:p-4 { padding: 1rem; } .md\:p-6 { padding: 1.5rem; } .md\:p-8 { padding: 2rem; } .md\:p-px { padding: 1px; } .md\:py-0 { padding-top: 0; padding-bottom: 0; } .md\:px-0 { padding-left: 0; padding-right: 0; } .md\:py-1 { padding-top: .25rem; padding-bottom: .25rem; } .md\:px-1 { padding-left: .25rem; padding-right: .25rem; } .md\:py-2 { padding-top: .5rem; padding-bottom: .5rem; } .md\:px-2 { padding-left: .5rem; padding-right: .5rem; } .md\:py-3 { padding-top: .75rem; padding-bottom: .75rem; } .md\:px-3 { padding-left: .75rem; padding-right: .75rem; } .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; } .md\:px-4 { padding-left: 1rem; padding-right: 1rem; } .md\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; } .md\:px-8 { padding-left: 2rem; padding-right: 2rem; } .md\:py-px { padding-top: 1px; padding-bottom: 1px; } .md\:px-px { padding-left: 1px; padding-right: 1px; } .md\:pt-0 { padding-top: 0; } .md\:pr-0 { padding-right: 0; } .md\:pb-0 { padding-bottom: 0; } .md\:pl-0 { padding-left: 0; } .md\:pt-1 { padding-top: .25rem; } .md\:pr-1 { padding-right: .25rem; } .md\:pb-1 { padding-bottom: .25rem; } .md\:pl-1 { padding-left: .25rem; } .md\:pt-2 { padding-top: .5rem; } .md\:pr-2 { padding-right: .5rem; } .md\:pb-2 { padding-bottom: .5rem; } .md\:pl-2 { padding-left: .5rem; } .md\:pt-3 { padding-top: .75rem; } .md\:pr-3 { padding-right: .75rem; } .md\:pb-3 { padding-bottom: .75rem; } .md\:pl-3 { padding-left: .75rem; } .md\:pt-4 { padding-top: 1rem; } .md\:pr-4 { padding-right: 1rem; } .md\:pb-4 { padding-bottom: 1rem; } .md\:pl-4 { padding-left: 1rem; } .md\:pt-6 { padding-top: 1.5rem; } .md\:pr-6 { padding-right: 1.5rem; } .md\:pb-6 { padding-bottom: 1.5rem; } .md\:pl-6 { padding-left: 1.5rem; } .md\:pt-8 { padding-top: 2rem; } .md\:pr-8 { padding-right: 2rem; } .md\:pb-8 { padding-bottom: 2rem; } .md\:pl-8 { padding-left: 2rem; } .md\:pt-px { padding-top: 1px; } .md\:pr-px { padding-right: 1px; } .md\:pb-px { padding-bottom: 1px; } .md\:pl-px { padding-left: 1px; } .md\:pointer-events-none { pointer-events: none; } .md\:pointer-events-auto { pointer-events: auto; } .md\:static { position: static; } .md\:fixed { position: fixed; } .md\:absolute { position: absolute; } .md\:relative { position: relative; } .md\:sticky { position: -webkit-sticky; position: sticky; } .md\:pin-none { top: auto; right: auto; bottom: auto; left: auto; } .md\:pin { top: 0; right: 0; bottom: 0; left: 0; } .md\:pin-y { top: 0; bottom: 0; } .md\:pin-x { right: 0; left: 0; } .md\:pin-t { top: 0; } .md\:pin-r { right: 0; } .md\:pin-b { bottom: 0; } .md\:pin-l { left: 0; } .md\:resize-none { resize: none; } .md\:resize-y { resize: vertical; } .md\:resize-x { resize: horizontal; } .md\:resize { resize: both; } .md\:shadow { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1); } .md\:shadow-md { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .12), 0 2px 4px 0 rgba(0, 0, 0, .08); } .md\:shadow-lg { box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .11), 0 5px 15px 0 rgba(0, 0, 0, .08); } .md\:shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .06); } .md\:shadow-none { box-shadow: none; } .md\:text-left { text-align: left; } .md\:text-center { text-align: center; } .md\:text-right { text-align: right; } .md\:text-justify { text-align: justify; } .md\:text-transparent { color: transparent; } .md\:text-black { color: #22292f; } .md\:text-grey-darkest { color: #3d4852; } .md\:text-grey-darker { color: #606f7b; } .md\:text-grey-dark { color: #8795a1; } .md\:text-grey { color: #b8c2cc; } .md\:text-grey-light { color: #dae1e7; } .md\:text-grey-lighter { color: #f1f5f8; } .md\:text-grey-lightest { color: #f8fafc; } .md\:text-white { color: #fff; } .md\:text-red-darkest { color: #3b0d0c; } .md\:text-red-darker { color: #621b18; } .md\:text-red-dark { color: #cc1f1a; } .md\:text-red { color: #e3342f; } .md\:text-red-light { color: #ef5753; } .md\:text-red-lighter { color: #f9acaa; } .md\:text-red-lightest { color: #fcebea; } .md\:text-orange-darkest { color: #462a16; } .md\:text-orange-darker { color: #613b1f; } .md\:text-orange-dark { color: #de751f; } .md\:text-orange { color: #f6993f; } .md\:text-orange-light { color: #faad63; } .md\:text-orange-lighter { color: #fcd9b6; } .md\:text-orange-lightest { color: #fff5eb; } .md\:text-yellow-darkest { color: #453411; } .md\:text-yellow-darker { color: #684f1d; } .md\:text-yellow-dark { color: #f2d024; } .md\:text-yellow { color: #ffed4a; } .md\:text-yellow-light { color: #fff382; } .md\:text-yellow-lighter { color: #fff9c2; } .md\:text-yellow-lightest { color: #fcfbeb; } .md\:text-green-darkest { color: #0f2f21; } .md\:text-green-darker { color: #1a4731; } .md\:text-green-dark { color: #1f9d55; } .md\:text-green { color: #38c172; } .md\:text-green-light { color: #51d88a; } .md\:text-green-lighter { color: #a2f5bf; } .md\:text-green-lightest { color: #e3fcec; } .md\:text-teal-darkest { color: #0d3331; } .md\:text-teal-darker { color: #20504f; } .md\:text-teal-dark { color: #38a89d; } .md\:text-teal { color: #4dc0b5; } .md\:text-teal-light { color: #64d5ca; } .md\:text-teal-lighter { color: #a0f0ed; } .md\:text-teal-lightest { color: #e8fffe; } .md\:text-blue-darkest { color: #12283a; } .md\:text-blue-darker { color: #1c3d5a; } .md\:text-blue-dark { color: #2779bd; } .md\:text-blue { color: #3490dc; } .md\:text-blue-light { color: #6cb2eb; } .md\:text-blue-lighter { color: #bcdefa; } .md\:text-blue-lightest { color: #eff8ff; } .md\:text-indigo-darkest { color: #191e38; } .md\:text-indigo-darker { color: #2f365f; } .md\:text-indigo-dark { color: #5661b3; } .md\:text-indigo { color: #6574cd; } .md\:text-indigo-light { color: #7886d7; } .md\:text-indigo-lighter { color: #b2b7ff; } .md\:text-indigo-lightest { color: #e6e8ff; } .md\:text-purple-darkest { color: #21183c; } .md\:text-purple-darker { color: #382b5f; } .md\:text-purple-dark { color: #794acf; } .md\:text-purple { color: #9561e2; } .md\:text-purple-light { color: #a779e9; } .md\:text-purple-lighter { color: #d6bbfc; } .md\:text-purple-lightest { color: #f3ebff; } .md\:text-pink-darkest { color: #451225; } .md\:text-pink-darker { color: #6f213f; } .md\:text-pink-dark { color: #eb5286; } .md\:text-pink { color: #f66d9b; } .md\:text-pink-light { color: #fa7ea8; } .md\:text-pink-lighter { color: #ffbbca; } .md\:text-pink-lightest { color: #ffebef; } .md\:hover\:text-transparent:hover { color: transparent; } .md\:hover\:text-black:hover { color: #22292f; } .md\:hover\:text-grey-darkest:hover { color: #3d4852; } .md\:hover\:text-grey-darker:hover { color: #606f7b; } .md\:hover\:text-grey-dark:hover { color: #8795a1; } .md\:hover\:text-grey:hover { color: #b8c2cc; } .md\:hover\:text-grey-light:hover { color: #dae1e7; } .md\:hover\:text-grey-lighter:hover { color: #f1f5f8; } .md\:hover\:text-grey-lightest:hover { color: #f8fafc; } .md\:hover\:text-white:hover { color: #fff; } .md\:hover\:text-red-darkest:hover { color: #3b0d0c; } .md\:hover\:text-red-darker:hover { color: #621b18; } .md\:hover\:text-red-dark:hover { color: #cc1f1a; } .md\:hover\:text-red:hover { color: #e3342f; } .md\:hover\:text-red-light:hover { color: #ef5753; } .md\:hover\:text-red-lighter:hover { color: #f9acaa; } .md\:hover\:text-red-lightest:hover { color: #fcebea; } .md\:hover\:text-orange-darkest:hover { color: #462a16; } .md\:hover\:text-orange-darker:hover { color: #613b1f; } .md\:hover\:text-orange-dark:hover { color: #de751f; } .md\:hover\:text-orange:hover { color: #f6993f; } .md\:hover\:text-orange-light:hover { color: #faad63; } .md\:hover\:text-orange-lighter:hover { color: #fcd9b6; } .md\:hover\:text-orange-lightest:hover { color: #fff5eb; } .md\:hover\:text-yellow-darkest:hover { color: #453411; } .md\:hover\:text-yellow-darker:hover { color: #684f1d; } .md\:hover\:text-yellow-dark:hover { color: #f2d024; } .md\:hover\:text-yellow:hover { color: #ffed4a; } .md\:hover\:text-yellow-light:hover { color: #fff382; } .md\:hover\:text-yellow-lighter:hover { color: #fff9c2; } .md\:hover\:text-yellow-lightest:hover { color: #fcfbeb; } .md\:hover\:text-green-darkest:hover { color: #0f2f21; } .md\:hover\:text-green-darker:hover { color: #1a4731; } .md\:hover\:text-green-dark:hover { color: #1f9d55; } .md\:hover\:text-green:hover { color: #38c172; } .md\:hover\:text-green-light:hover { color: #51d88a; } .md\:hover\:text-green-lighter:hover { color: #a2f5bf; } .md\:hover\:text-green-lightest:hover { color: #e3fcec; } .md\:hover\:text-teal-darkest:hover { color: #0d3331; } .md\:hover\:text-teal-darker:hover { color: #20504f; } .md\:hover\:text-teal-dark:hover { color: #38a89d; } .md\:hover\:text-teal:hover { color: #4dc0b5; } .md\:hover\:text-teal-light:hover { color: #64d5ca; } .md\:hover\:text-teal-lighter:hover { color: #a0f0ed; } .md\:hover\:text-teal-lightest:hover { color: #e8fffe; } .md\:hover\:text-blue-darkest:hover { color: #12283a; } .md\:hover\:text-blue-darker:hover { color: #1c3d5a; } .md\:hover\:text-blue-dark:hover { color: #2779bd; } .md\:hover\:text-blue:hover { color: #3490dc; } .md\:hover\:text-blue-light:hover { color: #6cb2eb; } .md\:hover\:text-blue-lighter:hover { color: #bcdefa; } .md\:hover\:text-blue-lightest:hover { color: #eff8ff; } .md\:hover\:text-indigo-darkest:hover { color: #191e38; } .md\:hover\:text-indigo-darker:hover { color: #2f365f; } .md\:hover\:text-indigo-dark:hover { color: #5661b3; } .md\:hover\:text-indigo:hover { color: #6574cd; } .md\:hover\:text-indigo-light:hover { color: #7886d7; } .md\:hover\:text-indigo-lighter:hover { color: #b2b7ff; } .md\:hover\:text-indigo-lightest:hover { color: #e6e8ff; } .md\:hover\:text-purple-darkest:hover { color: #21183c; } .md\:hover\:text-purple-darker:hover { color: #382b5f; } .md\:hover\:text-purple-dark:hover { color: #794acf; } .md\:hover\:text-purple:hover { color: #9561e2; } .md\:hover\:text-purple-light:hover { color: #a779e9; } .md\:hover\:text-purple-lighter:hover { color: #d6bbfc; } .md\:hover\:text-purple-lightest:hover { color: #f3ebff; } .md\:hover\:text-pink-darkest:hover { color: #451225; } .md\:hover\:text-pink-darker:hover { color: #6f213f; } .md\:hover\:text-pink-dark:hover { color: #eb5286; } .md\:hover\:text-pink:hover { color: #f66d9b; } .md\:hover\:text-pink-light:hover { color: #fa7ea8; } .md\:hover\:text-pink-lighter:hover { color: #ffbbca; } .md\:hover\:text-pink-lightest:hover { color: #ffebef; } .md\:text-xs { font-size: .75rem; } .md\:text-sm { font-size: .875rem; } .md\:text-base { font-size: 1rem; } .md\:text-lg { font-size: 1.125rem; } .md\:text-xl { font-size: 1.25rem; } .md\:text-2xl { font-size: 1.5rem; } .md\:text-3xl { font-size: 1.875rem; } .md\:text-4xl { font-size: 2.25rem; } .md\:text-5xl { font-size: 3rem; } .md\:italic { font-style: italic; } .md\:roman { font-style: normal; } .md\:uppercase { text-transform: uppercase; } .md\:lowercase { text-transform: lowercase; } .md\:capitalize { text-transform: capitalize; } .md\:normal-case { text-transform: none; } .md\:underline { text-decoration: underline; } .md\:line-through { text-decoration: line-through; } .md\:no-underline { text-decoration: none; } .md\:antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .md\:subpixel-antialiased { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .md\:hover\:italic:hover { font-style: italic; } .md\:hover\:roman:hover { font-style: normal; } .md\:hover\:uppercase:hover { text-transform: uppercase; } .md\:hover\:lowercase:hover { text-transform: lowercase; } .md\:hover\:capitalize:hover { text-transform: capitalize; } .md\:hover\:normal-case:hover { text-transform: none; } .md\:hover\:underline:hover { text-decoration: underline; } .md\:hover\:line-through:hover { text-decoration: line-through; } .md\:hover\:no-underline:hover { text-decoration: none; } .md\:hover\:antialiased:hover { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .md\:hover\:subpixel-antialiased:hover { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .md\:tracking-tight { letter-spacing: -0.05em; } .md\:tracking-normal { letter-spacing: 0; } .md\:tracking-wide { letter-spacing: .05em; } .md\:select-none { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .md\:select-text { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; } .md\:align-baseline { vertical-align: baseline; } .md\:align-top { vertical-align: top; } .md\:align-middle { vertical-align: middle; } .md\:align-bottom { vertical-align: bottom; } .md\:align-text-top { vertical-align: text-top; } .md\:align-text-bottom { vertical-align: text-bottom; } .md\:visible { visibility: visible; } .md\:invisible { visibility: hidden; } .md\:whitespace-normal { white-space: normal; } .md\:whitespace-no-wrap { white-space: nowrap; } .md\:whitespace-pre { white-space: pre; } .md\:whitespace-pre-line { white-space: pre-line; } .md\:whitespace-pre-wrap { white-space: pre-wrap; } .md\:break-words { word-wrap: break-word; } .md\:break-normal { word-wrap: normal; } .md\:truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .md\:w-1 { width: .25rem; } .md\:w-2 { width: .5rem; } .md\:w-3 { width: .75rem; } .md\:w-4 { width: 1rem; } .md\:w-6 { width: 1.5rem; } .md\:w-8 { width: 2rem; } .md\:w-10 { width: 2.5rem; } .md\:w-12 { width: 3rem; } .md\:w-16 { width: 4rem; } .md\:w-24 { width: 6rem; } .md\:w-32 { width: 8rem; } .md\:w-48 { width: 12rem; } .md\:w-64 { width: 16rem; } .md\:w-auto { width: auto; } .md\:w-px { width: 1px; } .md\:w-1\/2 { width: 50%; } .md\:w-1\/3 { width: 33.33333%; } .md\:w-2\/3 { width: 66.66667%; } .md\:w-1\/4 { width: 25%; } .md\:w-3\/4 { width: 75%; } .md\:w-1\/5 { width: 20%; } .md\:w-2\/5 { width: 40%; } .md\:w-3\/5 { width: 60%; } .md\:w-4\/5 { width: 80%; } .md\:w-1\/6 { width: 16.66667%; } .md\:w-5\/6 { width: 83.33333%; } .md\:w-full { width: 100%; } .md\:w-screen { width: 100vw; } .md\:z-0 { z-index: 0; } .md\:z-10 { z-index: 10; } .md\:z-20 { z-index: 20; } .md\:z-30 { z-index: 30; } .md\:z-40 { z-index: 40; } .md\:z-50 { z-index: 50; } .md\:z-auto { z-index: auto; } } @media (min-width: 992px) { .lg\:list-reset { list-style: none; padding: 0; } .lg\:appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .lg\:bg-fixed { background-attachment: fixed; } .lg\:bg-local { background-attachment: local; } .lg\:bg-scroll { background-attachment: scroll; } .lg\:bg-transparent { background-color: transparent; } .lg\:bg-black { background-color: #22292f; } .lg\:bg-grey-darkest { background-color: #3d4852; } .lg\:bg-grey-darker { background-color: #606f7b; } .lg\:bg-grey-dark { background-color: #8795a1; } .lg\:bg-grey { background-color: #b8c2cc; } .lg\:bg-grey-light { background-color: #dae1e7; } .lg\:bg-grey-lighter { background-color: #f1f5f8; } .lg\:bg-grey-lightest { background-color: #f8fafc; } .lg\:bg-white { background-color: #fff; } .lg\:bg-red-darkest { background-color: #3b0d0c; } .lg\:bg-red-darker { background-color: #621b18; } .lg\:bg-red-dark { background-color: #cc1f1a; } .lg\:bg-red { background-color: #e3342f; } .lg\:bg-red-light { background-color: #ef5753; } .lg\:bg-red-lighter { background-color: #f9acaa; } .lg\:bg-red-lightest { background-color: #fcebea; } .lg\:bg-orange-darkest { background-color: #462a16; } .lg\:bg-orange-darker { background-color: #613b1f; } .lg\:bg-orange-dark { background-color: #de751f; } .lg\:bg-orange { background-color: #f6993f; } .lg\:bg-orange-light { background-color: #faad63; } .lg\:bg-orange-lighter { background-color: #fcd9b6; } .lg\:bg-orange-lightest { background-color: #fff5eb; } .lg\:bg-yellow-darkest { background-color: #453411; } .lg\:bg-yellow-darker { background-color: #684f1d; } .lg\:bg-yellow-dark { background-color: #f2d024; } .lg\:bg-yellow { background-color: #ffed4a; } .lg\:bg-yellow-light { background-color: #fff382; } .lg\:bg-yellow-lighter { background-color: #fff9c2; } .lg\:bg-yellow-lightest { background-color: #fcfbeb; } .lg\:bg-green-darkest { background-color: #0f2f21; } .lg\:bg-green-darker { background-color: #1a4731; } .lg\:bg-green-dark { background-color: #1f9d55; } .lg\:bg-green { background-color: #38c172; } .lg\:bg-green-light { background-color: #51d88a; } .lg\:bg-green-lighter { background-color: #a2f5bf; } .lg\:bg-green-lightest { background-color: #e3fcec; } .lg\:bg-teal-darkest { background-color: #0d3331; } .lg\:bg-teal-darker { background-color: #20504f; } .lg\:bg-teal-dark { background-color: #38a89d; } .lg\:bg-teal { background-color: #4dc0b5; } .lg\:bg-teal-light { background-color: #64d5ca; } .lg\:bg-teal-lighter { background-color: #a0f0ed; } .lg\:bg-teal-lightest { background-color: #e8fffe; } .lg\:bg-blue-darkest { background-color: #12283a; } .lg\:bg-blue-darker { background-color: #1c3d5a; } .lg\:bg-blue-dark { background-color: #2779bd; } .lg\:bg-blue { background-color: #3490dc; } .lg\:bg-blue-light { background-color: #6cb2eb; } .lg\:bg-blue-lighter { background-color: #bcdefa; } .lg\:bg-blue-lightest { background-color: #eff8ff; } .lg\:bg-indigo-darkest { background-color: #191e38; } .lg\:bg-indigo-darker { background-color: #2f365f; } .lg\:bg-indigo-dark { background-color: #5661b3; } .lg\:bg-indigo { background-color: #6574cd; } .lg\:bg-indigo-light { background-color: #7886d7; } .lg\:bg-indigo-lighter { background-color: #b2b7ff; } .lg\:bg-indigo-lightest { background-color: #e6e8ff; } .lg\:bg-purple-darkest { background-color: #21183c; } .lg\:bg-purple-darker { background-color: #382b5f; } .lg\:bg-purple-dark { background-color: #794acf; } .lg\:bg-purple { background-color: #9561e2; } .lg\:bg-purple-light { background-color: #a779e9; } .lg\:bg-purple-lighter { background-color: #d6bbfc; } .lg\:bg-purple-lightest { background-color: #f3ebff; } .lg\:bg-pink-darkest { background-color: #451225; } .lg\:bg-pink-darker { background-color: #6f213f; } .lg\:bg-pink-dark { background-color: #eb5286; } .lg\:bg-pink { background-color: #f66d9b; } .lg\:bg-pink-light { background-color: #fa7ea8; } .lg\:bg-pink-lighter { background-color: #ffbbca; } .lg\:bg-pink-lightest { background-color: #ffebef; } .lg\:hover\:bg-transparent:hover { background-color: transparent; } .lg\:hover\:bg-black:hover { background-color: #22292f; } .lg\:hover\:bg-grey-darkest:hover { background-color: #3d4852; } .lg\:hover\:bg-grey-darker:hover { background-color: #606f7b; } .lg\:hover\:bg-grey-dark:hover { background-color: #8795a1; } .lg\:hover\:bg-grey:hover { background-color: #b8c2cc; } .lg\:hover\:bg-grey-light:hover { background-color: #dae1e7; } .lg\:hover\:bg-grey-lighter:hover { background-color: #f1f5f8; } .lg\:hover\:bg-grey-lightest:hover { background-color: #f8fafc; } .lg\:hover\:bg-white:hover { background-color: #fff; } .lg\:hover\:bg-red-darkest:hover { background-color: #3b0d0c; } .lg\:hover\:bg-red-darker:hover { background-color: #621b18; } .lg\:hover\:bg-red-dark:hover { background-color: #cc1f1a; } .lg\:hover\:bg-red:hover { background-color: #e3342f; } .lg\:hover\:bg-red-light:hover { background-color: #ef5753; } .lg\:hover\:bg-red-lighter:hover { background-color: #f9acaa; } .lg\:hover\:bg-red-lightest:hover { background-color: #fcebea; } .lg\:hover\:bg-orange-darkest:hover { background-color: #462a16; } .lg\:hover\:bg-orange-darker:hover { background-color: #613b1f; } .lg\:hover\:bg-orange-dark:hover { background-color: #de751f; } .lg\:hover\:bg-orange:hover { background-color: #f6993f; } .lg\:hover\:bg-orange-light:hover { background-color: #faad63; } .lg\:hover\:bg-orange-lighter:hover { background-color: #fcd9b6; } .lg\:hover\:bg-orange-lightest:hover { background-color: #fff5eb; } .lg\:hover\:bg-yellow-darkest:hover { background-color: #453411; } .lg\:hover\:bg-yellow-darker:hover { background-color: #684f1d; } .lg\:hover\:bg-yellow-dark:hover { background-color: #f2d024; } .lg\:hover\:bg-yellow:hover { background-color: #ffed4a; } .lg\:hover\:bg-yellow-light:hover { background-color: #fff382; } .lg\:hover\:bg-yellow-lighter:hover { background-color: #fff9c2; } .lg\:hover\:bg-yellow-lightest:hover { background-color: #fcfbeb; } .lg\:hover\:bg-green-darkest:hover { background-color: #0f2f21; } .lg\:hover\:bg-green-darker:hover { background-color: #1a4731; } .lg\:hover\:bg-green-dark:hover { background-color: #1f9d55; } .lg\:hover\:bg-green:hover { background-color: #38c172; } .lg\:hover\:bg-green-light:hover { background-color: #51d88a; } .lg\:hover\:bg-green-lighter:hover { background-color: #a2f5bf; } .lg\:hover\:bg-green-lightest:hover { background-color: #e3fcec; } .lg\:hover\:bg-teal-darkest:hover { background-color: #0d3331; } .lg\:hover\:bg-teal-darker:hover { background-color: #20504f; } .lg\:hover\:bg-teal-dark:hover { background-color: #38a89d; } .lg\:hover\:bg-teal:hover { background-color: #4dc0b5; } .lg\:hover\:bg-teal-light:hover { background-color: #64d5ca; } .lg\:hover\:bg-teal-lighter:hover { background-color: #a0f0ed; } .lg\:hover\:bg-teal-lightest:hover { background-color: #e8fffe; } .lg\:hover\:bg-blue-darkest:hover { background-color: #12283a; } .lg\:hover\:bg-blue-darker:hover { background-color: #1c3d5a; } .lg\:hover\:bg-blue-dark:hover { background-color: #2779bd; } .lg\:hover\:bg-blue:hover { background-color: #3490dc; } .lg\:hover\:bg-blue-light:hover { background-color: #6cb2eb; } .lg\:hover\:bg-blue-lighter:hover { background-color: #bcdefa; } .lg\:hover\:bg-blue-lightest:hover { background-color: #eff8ff; } .lg\:hover\:bg-indigo-darkest:hover { background-color: #191e38; } .lg\:hover\:bg-indigo-darker:hover { background-color: #2f365f; } .lg\:hover\:bg-indigo-dark:hover { background-color: #5661b3; } .lg\:hover\:bg-indigo:hover { background-color: #6574cd; } .lg\:hover\:bg-indigo-light:hover { background-color: #7886d7; } .lg\:hover\:bg-indigo-lighter:hover { background-color: #b2b7ff; } .lg\:hover\:bg-indigo-lightest:hover { background-color: #e6e8ff; } .lg\:hover\:bg-purple-darkest:hover { background-color: #21183c; } .lg\:hover\:bg-purple-darker:hover { background-color: #382b5f; } .lg\:hover\:bg-purple-dark:hover { background-color: #794acf; } .lg\:hover\:bg-purple:hover { background-color: #9561e2; } .lg\:hover\:bg-purple-light:hover { background-color: #a779e9; } .lg\:hover\:bg-purple-lighter:hover { background-color: #d6bbfc; } .lg\:hover\:bg-purple-lightest:hover { background-color: #f3ebff; } .lg\:hover\:bg-pink-darkest:hover { background-color: #451225; } .lg\:hover\:bg-pink-darker:hover { background-color: #6f213f; } .lg\:hover\:bg-pink-dark:hover { background-color: #eb5286; } .lg\:hover\:bg-pink:hover { background-color: #f66d9b; } .lg\:hover\:bg-pink-light:hover { background-color: #fa7ea8; } .lg\:hover\:bg-pink-lighter:hover { background-color: #ffbbca; } .lg\:hover\:bg-pink-lightest:hover { background-color: #ffebef; } .lg\:bg-bottom { background-position: bottom; } .lg\:bg-center { background-position: center; } .lg\:bg-left { background-position: left; } .lg\:bg-left-bottom { background-position: left bottom; } .lg\:bg-left-top { background-position: left top; } .lg\:bg-right { background-position: right; } .lg\:bg-right-bottom { background-position: right bottom; } .lg\:bg-right-top { background-position: right top; } .lg\:bg-top { background-position: top; } .lg\:bg-repeat { background-repeat: repeat; } .lg\:bg-no-repeat { background-repeat: no-repeat; } .lg\:bg-repeat-x { background-repeat: repeat-x; } .lg\:bg-repeat-y { background-repeat: repeat-y; } .lg\:bg-auto { background-size: auto; } .lg\:bg-cover { background-size: cover; } .lg\:bg-contain { background-size: contain; } .lg\:border-transparent { border-color: transparent; } .lg\:border-black { border-color: #22292f; } .lg\:border-grey-darkest { border-color: #3d4852; } .lg\:border-grey-darker { border-color: #606f7b; } .lg\:border-grey-dark { border-color: #8795a1; } .lg\:border-grey { border-color: #b8c2cc; } .lg\:border-grey-light { border-color: #dae1e7; } .lg\:border-grey-lighter { border-color: #f1f5f8; } .lg\:border-grey-lightest { border-color: #f8fafc; } .lg\:border-white { border-color: #fff; } .lg\:border-red-darkest { border-color: #3b0d0c; } .lg\:border-red-darker { border-color: #621b18; } .lg\:border-red-dark { border-color: #cc1f1a; } .lg\:border-red { border-color: #e3342f; } .lg\:border-red-light { border-color: #ef5753; } .lg\:border-red-lighter { border-color: #f9acaa; } .lg\:border-red-lightest { border-color: #fcebea; } .lg\:border-orange-darkest { border-color: #462a16; } .lg\:border-orange-darker { border-color: #613b1f; } .lg\:border-orange-dark { border-color: #de751f; } .lg\:border-orange { border-color: #f6993f; } .lg\:border-orange-light { border-color: #faad63; } .lg\:border-orange-lighter { border-color: #fcd9b6; } .lg\:border-orange-lightest { border-color: #fff5eb; } .lg\:border-yellow-darkest { border-color: #453411; } .lg\:border-yellow-darker { border-color: #684f1d; } .lg\:border-yellow-dark { border-color: #f2d024; } .lg\:border-yellow { border-color: #ffed4a; } .lg\:border-yellow-light { border-color: #fff382; } .lg\:border-yellow-lighter { border-color: #fff9c2; } .lg\:border-yellow-lightest { border-color: #fcfbeb; } .lg\:border-green-darkest { border-color: #0f2f21; } .lg\:border-green-darker { border-color: #1a4731; } .lg\:border-green-dark { border-color: #1f9d55; } .lg\:border-green { border-color: #38c172; } .lg\:border-green-light { border-color: #51d88a; } .lg\:border-green-lighter { border-color: #a2f5bf; } .lg\:border-green-lightest { border-color: #e3fcec; } .lg\:border-teal-darkest { border-color: #0d3331; } .lg\:border-teal-darker { border-color: #20504f; } .lg\:border-teal-dark { border-color: #38a89d; } .lg\:border-teal { border-color: #4dc0b5; } .lg\:border-teal-light { border-color: #64d5ca; } .lg\:border-teal-lighter { border-color: #a0f0ed; } .lg\:border-teal-lightest { border-color: #e8fffe; } .lg\:border-blue-darkest { border-color: #12283a; } .lg\:border-blue-darker { border-color: #1c3d5a; } .lg\:border-blue-dark { border-color: #2779bd; } .lg\:border-blue { border-color: #3490dc; } .lg\:border-blue-light { border-color: #6cb2eb; } .lg\:border-blue-lighter { border-color: #bcdefa; } .lg\:border-blue-lightest { border-color: #eff8ff; } .lg\:border-indigo-darkest { border-color: #191e38; } .lg\:border-indigo-darker { border-color: #2f365f; } .lg\:border-indigo-dark { border-color: #5661b3; } .lg\:border-indigo { border-color: #6574cd; } .lg\:border-indigo-light { border-color: #7886d7; } .lg\:border-indigo-lighter { border-color: #b2b7ff; } .lg\:border-indigo-lightest { border-color: #e6e8ff; } .lg\:border-purple-darkest { border-color: #21183c; } .lg\:border-purple-darker { border-color: #382b5f; } .lg\:border-purple-dark { border-color: #794acf; } .lg\:border-purple { border-color: #9561e2; } .lg\:border-purple-light { border-color: #a779e9; } .lg\:border-purple-lighter { border-color: #d6bbfc; } .lg\:border-purple-lightest { border-color: #f3ebff; } .lg\:border-pink-darkest { border-color: #451225; } .lg\:border-pink-darker { border-color: #6f213f; } .lg\:border-pink-dark { border-color: #eb5286; } .lg\:border-pink { border-color: #f66d9b; } .lg\:border-pink-light { border-color: #fa7ea8; } .lg\:border-pink-lighter { border-color: #ffbbca; } .lg\:border-pink-lightest { border-color: #ffebef; } .lg\:hover\:border-transparent:hover { border-color: transparent; } .lg\:hover\:border-black:hover { border-color: #22292f; } .lg\:hover\:border-grey-darkest:hover { border-color: #3d4852; } .lg\:hover\:border-grey-darker:hover { border-color: #606f7b; } .lg\:hover\:border-grey-dark:hover { border-color: #8795a1; } .lg\:hover\:border-grey:hover { border-color: #b8c2cc; } .lg\:hover\:border-grey-light:hover { border-color: #dae1e7; } .lg\:hover\:border-grey-lighter:hover { border-color: #f1f5f8; } .lg\:hover\:border-grey-lightest:hover { border-color: #f8fafc; } .lg\:hover\:border-white:hover { border-color: #fff; } .lg\:hover\:border-red-darkest:hover { border-color: #3b0d0c; } .lg\:hover\:border-red-darker:hover { border-color: #621b18; } .lg\:hover\:border-red-dark:hover { border-color: #cc1f1a; } .lg\:hover\:border-red:hover { border-color: #e3342f; } .lg\:hover\:border-red-light:hover { border-color: #ef5753; } .lg\:hover\:border-red-lighter:hover { border-color: #f9acaa; } .lg\:hover\:border-red-lightest:hover { border-color: #fcebea; } .lg\:hover\:border-orange-darkest:hover { border-color: #462a16; } .lg\:hover\:border-orange-darker:hover { border-color: #613b1f; } .lg\:hover\:border-orange-dark:hover { border-color: #de751f; } .lg\:hover\:border-orange:hover { border-color: #f6993f; } .lg\:hover\:border-orange-light:hover { border-color: #faad63; } .lg\:hover\:border-orange-lighter:hover { border-color: #fcd9b6; } .lg\:hover\:border-orange-lightest:hover { border-color: #fff5eb; } .lg\:hover\:border-yellow-darkest:hover { border-color: #453411; } .lg\:hover\:border-yellow-darker:hover { border-color: #684f1d; } .lg\:hover\:border-yellow-dark:hover { border-color: #f2d024; } .lg\:hover\:border-yellow:hover { border-color: #ffed4a; } .lg\:hover\:border-yellow-light:hover { border-color: #fff382; } .lg\:hover\:border-yellow-lighter:hover { border-color: #fff9c2; } .lg\:hover\:border-yellow-lightest:hover { border-color: #fcfbeb; } .lg\:hover\:border-green-darkest:hover { border-color: #0f2f21; } .lg\:hover\:border-green-darker:hover { border-color: #1a4731; } .lg\:hover\:border-green-dark:hover { border-color: #1f9d55; } .lg\:hover\:border-green:hover { border-color: #38c172; } .lg\:hover\:border-green-light:hover { border-color: #51d88a; } .lg\:hover\:border-green-lighter:hover { border-color: #a2f5bf; } .lg\:hover\:border-green-lightest:hover { border-color: #e3fcec; } .lg\:hover\:border-teal-darkest:hover { border-color: #0d3331; } .lg\:hover\:border-teal-darker:hover { border-color: #20504f; } .lg\:hover\:border-teal-dark:hover { border-color: #38a89d; } .lg\:hover\:border-teal:hover { border-color: #4dc0b5; } .lg\:hover\:border-teal-light:hover { border-color: #64d5ca; } .lg\:hover\:border-teal-lighter:hover { border-color: #a0f0ed; } .lg\:hover\:border-teal-lightest:hover { border-color: #e8fffe; } .lg\:hover\:border-blue-darkest:hover { border-color: #12283a; } .lg\:hover\:border-blue-darker:hover { border-color: #1c3d5a; } .lg\:hover\:border-blue-dark:hover { border-color: #2779bd; } .lg\:hover\:border-blue:hover { border-color: #3490dc; } .lg\:hover\:border-blue-light:hover { border-color: #6cb2eb; } .lg\:hover\:border-blue-lighter:hover { border-color: #bcdefa; } .lg\:hover\:border-blue-lightest:hover { border-color: #eff8ff; } .lg\:hover\:border-indigo-darkest:hover { border-color: #191e38; } .lg\:hover\:border-indigo-darker:hover { border-color: #2f365f; } .lg\:hover\:border-indigo-dark:hover { border-color: #5661b3; } .lg\:hover\:border-indigo:hover { border-color: #6574cd; } .lg\:hover\:border-indigo-light:hover { border-color: #7886d7; } .lg\:hover\:border-indigo-lighter:hover { border-color: #b2b7ff; } .lg\:hover\:border-indigo-lightest:hover { border-color: #e6e8ff; } .lg\:hover\:border-purple-darkest:hover { border-color: #21183c; } .lg\:hover\:border-purple-darker:hover { border-color: #382b5f; } .lg\:hover\:border-purple-dark:hover { border-color: #794acf; } .lg\:hover\:border-purple:hover { border-color: #9561e2; } .lg\:hover\:border-purple-light:hover { border-color: #a779e9; } .lg\:hover\:border-purple-lighter:hover { border-color: #d6bbfc; } .lg\:hover\:border-purple-lightest:hover { border-color: #f3ebff; } .lg\:hover\:border-pink-darkest:hover { border-color: #451225; } .lg\:hover\:border-pink-darker:hover { border-color: #6f213f; } .lg\:hover\:border-pink-dark:hover { border-color: #eb5286; } .lg\:hover\:border-pink:hover { border-color: #f66d9b; } .lg\:hover\:border-pink-light:hover { border-color: #fa7ea8; } .lg\:hover\:border-pink-lighter:hover { border-color: #ffbbca; } .lg\:hover\:border-pink-lightest:hover { border-color: #ffebef; } .lg\:rounded-none { border-radius: 0; } .lg\:rounded-sm { border-radius: .125rem; } .lg\:rounded { border-radius: .25rem; } .lg\:rounded-lg { border-radius: .5rem; } .lg\:rounded-full { border-radius: 9999px; } .lg\:rounded-t-none { border-top-left-radius: 0; border-top-right-radius: 0; } .lg\:rounded-r-none { border-top-right-radius: 0; border-bottom-right-radius: 0; } .lg\:rounded-b-none { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .lg\:rounded-l-none { border-top-left-radius: 0; border-bottom-left-radius: 0; } .lg\:rounded-t-sm { border-top-left-radius: .125rem; border-top-right-radius: .125rem; } .lg\:rounded-r-sm { border-top-right-radius: .125rem; border-bottom-right-radius: .125rem; } .lg\:rounded-b-sm { border-bottom-right-radius: .125rem; border-bottom-left-radius: .125rem; } .lg\:rounded-l-sm { border-top-left-radius: .125rem; border-bottom-left-radius: .125rem; } .lg\:rounded-t { border-top-left-radius: .25rem; border-top-right-radius: .25rem; } .lg\:rounded-r { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; } .lg\:rounded-b { border-bottom-right-radius: .25rem; border-bottom-left-radius: .25rem; } .lg\:rounded-l { border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; } .lg\:rounded-t-lg { border-top-left-radius: .5rem; border-top-right-radius: .5rem; } .lg\:rounded-r-lg { border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; } .lg\:rounded-b-lg { border-bottom-right-radius: .5rem; border-bottom-left-radius: .5rem; } .lg\:rounded-l-lg { border-top-left-radius: .5rem; border-bottom-left-radius: .5rem; } .lg\:rounded-t-full { border-top-left-radius: 9999px; border-top-right-radius: 9999px; } .lg\:rounded-r-full { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; } .lg\:rounded-b-full { border-bottom-right-radius: 9999px; border-bottom-left-radius: 9999px; } .lg\:rounded-l-full { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; } .lg\:rounded-tl-none { border-top-left-radius: 0; } .lg\:rounded-tr-none { border-top-right-radius: 0; } .lg\:rounded-br-none { border-bottom-right-radius: 0; } .lg\:rounded-bl-none { border-bottom-left-radius: 0; } .lg\:rounded-tl-sm { border-top-left-radius: .125rem; } .lg\:rounded-tr-sm { border-top-right-radius: .125rem; } .lg\:rounded-br-sm { border-bottom-right-radius: .125rem; } .lg\:rounded-bl-sm { border-bottom-left-radius: .125rem; } .lg\:rounded-tl { border-top-left-radius: .25rem; } .lg\:rounded-tr { border-top-right-radius: .25rem; } .lg\:rounded-br { border-bottom-right-radius: .25rem; } .lg\:rounded-bl { border-bottom-left-radius: .25rem; } .lg\:rounded-tl-lg { border-top-left-radius: .5rem; } .lg\:rounded-tr-lg { border-top-right-radius: .5rem; } .lg\:rounded-br-lg { border-bottom-right-radius: .5rem; } .lg\:rounded-bl-lg { border-bottom-left-radius: .5rem; } .lg\:rounded-tl-full { border-top-left-radius: 9999px; } .lg\:rounded-tr-full { border-top-right-radius: 9999px; } .lg\:rounded-br-full { border-bottom-right-radius: 9999px; } .lg\:rounded-bl-full { border-bottom-left-radius: 9999px; } .lg\:border-solid { border-style: solid; } .lg\:border-dashed { border-style: dashed; } .lg\:border-dotted { border-style: dotted; } .lg\:border-none { border-style: none; } .lg\:border-0 { border-width: 0; } .lg\:border-2 { border-width: 2px; } .lg\:border-4 { border-width: 4px; } .lg\:border-8 { border-width: 8px; } .lg\:border { border-width: 1px; } .lg\:border-t-0 { border-top-width: 0; } .lg\:border-r-0 { border-right-width: 0; } .lg\:border-b-0 { border-bottom-width: 0; } .lg\:border-l-0 { border-left-width: 0; } .lg\:border-t-2 { border-top-width: 2px; } .lg\:border-r-2 { border-right-width: 2px; } .lg\:border-b-2 { border-bottom-width: 2px; } .lg\:border-l-2 { border-left-width: 2px; } .lg\:border-t-4 { border-top-width: 4px; } .lg\:border-r-4 { border-right-width: 4px; } .lg\:border-b-4 { border-bottom-width: 4px; } .lg\:border-l-4 { border-left-width: 4px; } .lg\:border-t-8 { border-top-width: 8px; } .lg\:border-r-8 { border-right-width: 8px; } .lg\:border-b-8 { border-bottom-width: 8px; } .lg\:border-l-8 { border-left-width: 8px; } .lg\:border-t { border-top-width: 1px; } .lg\:border-r { border-right-width: 1px; } .lg\:border-b { border-bottom-width: 1px; } .lg\:border-l { border-left-width: 1px; } .lg\:cursor-auto { cursor: auto; } .lg\:cursor-default { cursor: default; } .lg\:cursor-pointer { cursor: pointer; } .lg\:cursor-wait { cursor: wait; } .lg\:cursor-move { cursor: move; } .lg\:cursor-not-allowed { cursor: not-allowed; } .lg\:block { display: block; } .lg\:inline-block { display: inline-block; } .lg\:inline { display: inline; } .lg\:table { display: table; } .lg\:table-row { display: table-row; } .lg\:table-cell { display: table-cell; } .lg\:hidden { display: none; } .lg\:flex { display: flex; } .lg\:inline-flex { display: inline-flex; } .lg\:flex-row { flex-direction: row; } .lg\:flex-row-reverse { flex-direction: row-reverse; } .lg\:flex-col { flex-direction: column; } .lg\:flex-col-reverse { flex-direction: column-reverse; } .lg\:flex-wrap { flex-wrap: wrap; } .lg\:flex-wrap-reverse { flex-wrap: wrap-reverse; } .lg\:flex-no-wrap { flex-wrap: nowrap; } .lg\:items-start { align-items: flex-start; } .lg\:items-end { align-items: flex-end; } .lg\:items-center { align-items: center; } .lg\:items-baseline { align-items: baseline; } .lg\:items-stretch { align-items: stretch; } .lg\:self-auto { align-self: auto; } .lg\:self-start { align-self: flex-start; } .lg\:self-end { align-self: flex-end; } .lg\:self-center { align-self: center; } .lg\:self-stretch { align-self: stretch; } .lg\:justify-start { justify-content: flex-start; } .lg\:justify-end { justify-content: flex-end; } .lg\:justify-center { justify-content: center; } .lg\:justify-between { justify-content: space-between; } .lg\:justify-around { justify-content: space-around; } .lg\:content-center { align-content: center; } .lg\:content-start { align-content: flex-start; } .lg\:content-end { align-content: flex-end; } .lg\:content-between { align-content: space-between; } .lg\:content-around { align-content: space-around; } .lg\:flex-1 { flex: 1; } .lg\:flex-auto { flex: auto; } .lg\:flex-initial { flex: initial; } .lg\:flex-none { flex: none; } .lg\:flex-grow { flex-grow: 1; } .lg\:flex-shrink { flex-shrink: 1; } .lg\:flex-no-grow { flex-grow: 0; } .lg\:flex-no-shrink { flex-shrink: 0; } .lg\:float-right { float: right; } .lg\:float-left { float: left; } .lg\:float-none { float: none; } .lg\:clearfix:after { content: ""; display: table; clear: both; } .lg\:font-sans { font-family: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } .lg\:font-serif { font-family: Constantia, Lucida Bright, Lucidabright, Lucida Serif, Lucida, DejaVu Serif, Bitstream Vera Serif, Liberation Serif, Georgia, serif; } .lg\:font-mono { font-family: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; } .lg\:font-hairline { font-weight: 100; } .lg\:font-thin { font-weight: 200; } .lg\:font-light { font-weight: 300; } .lg\:font-normal { font-weight: 400; } .lg\:font-medium { font-weight: 500; } .lg\:font-semibold { font-weight: 600; } .lg\:font-bold { font-weight: 700; } .lg\:font-extrabold { font-weight: 800; } .lg\:font-black { font-weight: 900; } .lg\:hover\:font-hairline:hover { font-weight: 100; } .lg\:hover\:font-thin:hover { font-weight: 200; } .lg\:hover\:font-light:hover { font-weight: 300; } .lg\:hover\:font-normal:hover { font-weight: 400; } .lg\:hover\:font-medium:hover { font-weight: 500; } .lg\:hover\:font-semibold:hover { font-weight: 600; } .lg\:hover\:font-bold:hover { font-weight: 700; } .lg\:hover\:font-extrabold:hover { font-weight: 800; } .lg\:hover\:font-black:hover { font-weight: 900; } .lg\:h-1 { height: .25rem; } .lg\:h-2 { height: .5rem; } .lg\:h-3 { height: .75rem; } .lg\:h-4 { height: 1rem; } .lg\:h-6 { height: 1.5rem; } .lg\:h-8 { height: 2rem; } .lg\:h-10 { height: 2.5rem; } .lg\:h-12 { height: 3rem; } .lg\:h-16 { height: 4rem; } .lg\:h-24 { height: 6rem; } .lg\:h-32 { height: 8rem; } .lg\:h-48 { height: 12rem; } .lg\:h-64 { height: 16rem; } .lg\:h-auto { height: auto; } .lg\:h-px { height: 1px; } .lg\:h-full { height: 100%; } .lg\:h-screen { height: 100vh; } .lg\:leading-none { line-height: 1; } .lg\:leading-tight { line-height: 1.25; } .lg\:leading-normal { line-height: 1.5; } .lg\:leading-loose { line-height: 2; } .lg\:m-0 { margin: 0; } .lg\:m-1 { margin: .25rem; } .lg\:m-2 { margin: .5rem; } .lg\:m-3 { margin: .75rem; } .lg\:m-4 { margin: 1rem; } .lg\:m-6 { margin: 1.5rem; } .lg\:m-8 { margin: 2rem; } .lg\:m-auto { margin: auto; } .lg\:m-px { margin: 1px; } .lg\:my-0 { margin-top: 0; margin-bottom: 0; } .lg\:mx-0 { margin-left: 0; margin-right: 0; } .lg\:my-1 { margin-top: .25rem; margin-bottom: .25rem; } .lg\:mx-1 { margin-left: .25rem; margin-right: .25rem; } .lg\:my-2 { margin-top: .5rem; margin-bottom: .5rem; } .lg\:mx-2 { margin-left: .5rem; margin-right: .5rem; } .lg\:my-3 { margin-top: .75rem; margin-bottom: .75rem; } .lg\:mx-3 { margin-left: .75rem; margin-right: .75rem; } .lg\:my-4 { margin-top: 1rem; margin-bottom: 1rem; } .lg\:mx-4 { margin-left: 1rem; margin-right: 1rem; } .lg\:my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; } .lg\:mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; } .lg\:my-8 { margin-top: 2rem; margin-bottom: 2rem; } .lg\:mx-8 { margin-left: 2rem; margin-right: 2rem; } .lg\:my-auto { margin-top: auto; margin-bottom: auto; } .lg\:mx-auto { margin-left: auto; margin-right: auto; } .lg\:my-px { margin-top: 1px; margin-bottom: 1px; } .lg\:mx-px { margin-left: 1px; margin-right: 1px; } .lg\:mt-0 { margin-top: 0; } .lg\:mr-0 { margin-right: 0; } .lg\:mb-0 { margin-bottom: 0; } .lg\:ml-0 { margin-left: 0; } .lg\:mt-1 { margin-top: .25rem; } .lg\:mr-1 { margin-right: .25rem; } .lg\:mb-1 { margin-bottom: .25rem; } .lg\:ml-1 { margin-left: .25rem; } .lg\:mt-2 { margin-top: .5rem; } .lg\:mr-2 { margin-right: .5rem; } .lg\:mb-2 { margin-bottom: .5rem; } .lg\:ml-2 { margin-left: .5rem; } .lg\:mt-3 { margin-top: .75rem; } .lg\:mr-3 { margin-right: .75rem; } .lg\:mb-3 { margin-bottom: .75rem; } .lg\:ml-3 { margin-left: .75rem; } .lg\:mt-4 { margin-top: 1rem; } .lg\:mr-4 { margin-right: 1rem; } .lg\:mb-4 { margin-bottom: 1rem; } .lg\:ml-4 { margin-left: 1rem; } .lg\:mt-6 { margin-top: 1.5rem; } .lg\:mr-6 { margin-right: 1.5rem; } .lg\:mb-6 { margin-bottom: 1.5rem; } .lg\:ml-6 { margin-left: 1.5rem; } .lg\:mt-8 { margin-top: 2rem; } .lg\:mr-8 { margin-right: 2rem; } .lg\:mb-8 { margin-bottom: 2rem; } .lg\:ml-8 { margin-left: 2rem; } .lg\:mt-auto { margin-top: auto; } .lg\:mr-auto { margin-right: auto; } .lg\:mb-auto { margin-bottom: auto; } .lg\:ml-auto { margin-left: auto; } .lg\:mt-px { margin-top: 1px; } .lg\:mr-px { margin-right: 1px; } .lg\:mb-px { margin-bottom: 1px; } .lg\:ml-px { margin-left: 1px; } .lg\:max-h-full { max-height: 100%; } .lg\:max-h-screen { max-height: 100vh; } .lg\:max-w-xs { max-width: 20rem; } .lg\:max-w-sm { max-width: 30rem; } .lg\:max-w-md { max-width: 40rem; } .lg\:max-w-lg { max-width: 50rem; } .lg\:max-w-xl { max-width: 60rem; } .lg\:max-w-2xl { max-width: 70rem; } .lg\:max-w-3xl { max-width: 80rem; } .lg\:max-w-4xl { max-width: 90rem; } .lg\:max-w-5xl { max-width: 100rem; } .lg\:max-w-full { max-width: 100%; } .lg\:min-h-0 { min-height: 0; } .lg\:min-h-full { min-height: 100%; } .lg\:min-h-screen { min-height: 100vh; } .lg\:min-w-0 { min-width: 0; } .lg\:min-w-full { min-width: 100%; } .lg\:-m-0 { margin: 0; } .lg\:-m-1 { margin: -0.25rem; } .lg\:-m-2 { margin: -0.5rem; } .lg\:-m-3 { margin: -0.75rem; } .lg\:-m-4 { margin: -1rem; } .lg\:-m-6 { margin: -1.5rem; } .lg\:-m-8 { margin: -2rem; } .lg\:-m-px { margin: -1px; } .lg\:-my-0 { margin-top: 0; margin-bottom: 0; } .lg\:-mx-0 { margin-left: 0; margin-right: 0; } .lg\:-my-1 { margin-top: -0.25rem; margin-bottom: -0.25rem; } .lg\:-mx-1 { margin-left: -0.25rem; margin-right: -0.25rem; } .lg\:-my-2 { margin-top: -0.5rem; margin-bottom: -0.5rem; } .lg\:-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; } .lg\:-my-3 { margin-top: -0.75rem; margin-bottom: -0.75rem; } .lg\:-mx-3 { margin-left: -0.75rem; margin-right: -0.75rem; } .lg\:-my-4 { margin-top: -1rem; margin-bottom: -1rem; } .lg\:-mx-4 { margin-left: -1rem; margin-right: -1rem; } .lg\:-my-6 { margin-top: -1.5rem; margin-bottom: -1.5rem; } .lg\:-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; } .lg\:-my-8 { margin-top: -2rem; margin-bottom: -2rem; } .lg\:-mx-8 { margin-left: -2rem; margin-right: -2rem; } .lg\:-my-px { margin-top: -1px; margin-bottom: -1px; } .lg\:-mx-px { margin-left: -1px; margin-right: -1px; } .lg\:-mt-0 { margin-top: 0; } .lg\:-mr-0 { margin-right: 0; } .lg\:-mb-0 { margin-bottom: 0; } .lg\:-ml-0 { margin-left: 0; } .lg\:-mt-1 { margin-top: -0.25rem; } .lg\:-mr-1 { margin-right: -0.25rem; } .lg\:-mb-1 { margin-bottom: -0.25rem; } .lg\:-ml-1 { margin-left: -0.25rem; } .lg\:-mt-2 { margin-top: -0.5rem; } .lg\:-mr-2 { margin-right: -0.5rem; } .lg\:-mb-2 { margin-bottom: -0.5rem; } .lg\:-ml-2 { margin-left: -0.5rem; } .lg\:-mt-3 { margin-top: -0.75rem; } .lg\:-mr-3 { margin-right: -0.75rem; } .lg\:-mb-3 { margin-bottom: -0.75rem; } .lg\:-ml-3 { margin-left: -0.75rem; } .lg\:-mt-4 { margin-top: -1rem; } .lg\:-mr-4 { margin-right: -1rem; } .lg\:-mb-4 { margin-bottom: -1rem; } .lg\:-ml-4 { margin-left: -1rem; } .lg\:-mt-6 { margin-top: -1.5rem; } .lg\:-mr-6 { margin-right: -1.5rem; } .lg\:-mb-6 { margin-bottom: -1.5rem; } .lg\:-ml-6 { margin-left: -1.5rem; } .lg\:-mt-8 { margin-top: -2rem; } .lg\:-mr-8 { margin-right: -2rem; } .lg\:-mb-8 { margin-bottom: -2rem; } .lg\:-ml-8 { margin-left: -2rem; } .lg\:-mt-px { margin-top: -1px; } .lg\:-mr-px { margin-right: -1px; } .lg\:-mb-px { margin-bottom: -1px; } .lg\:-ml-px { margin-left: -1px; } .lg\:opacity-0 { opacity: 0; } .lg\:opacity-25 { opacity: .25; } .lg\:opacity-50 { opacity: .5; } .lg\:opacity-75 { opacity: .75; } .lg\:opacity-100 { opacity: 1; } .lg\:overflow-auto { overflow: auto; } .lg\:overflow-hidden { overflow: hidden; } .lg\:overflow-visible { overflow: visible; } .lg\:overflow-scroll { overflow: scroll; } .lg\:overflow-x-auto { overflow-x: auto; } .lg\:overflow-y-auto { overflow-y: auto; } .lg\:overflow-x-scroll { overflow-x: scroll; } .lg\:overflow-y-scroll { overflow-y: scroll; } .lg\:scrolling-touch { -webkit-overflow-scrolling: touch; } .lg\:scrolling-auto { -webkit-overflow-scrolling: auto; } .lg\:p-0 { padding: 0; } .lg\:p-1 { padding: .25rem; } .lg\:p-2 { padding: .5rem; } .lg\:p-3 { padding: .75rem; } .lg\:p-4 { padding: 1rem; } .lg\:p-6 { padding: 1.5rem; } .lg\:p-8 { padding: 2rem; } .lg\:p-px { padding: 1px; } .lg\:py-0 { padding-top: 0; padding-bottom: 0; } .lg\:px-0 { padding-left: 0; padding-right: 0; } .lg\:py-1 { padding-top: .25rem; padding-bottom: .25rem; } .lg\:px-1 { padding-left: .25rem; padding-right: .25rem; } .lg\:py-2 { padding-top: .5rem; padding-bottom: .5rem; } .lg\:px-2 { padding-left: .5rem; padding-right: .5rem; } .lg\:py-3 { padding-top: .75rem; padding-bottom: .75rem; } .lg\:px-3 { padding-left: .75rem; padding-right: .75rem; } .lg\:py-4 { padding-top: 1rem; padding-bottom: 1rem; } .lg\:px-4 { padding-left: 1rem; padding-right: 1rem; } .lg\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .lg\:py-8 { padding-top: 2rem; padding-bottom: 2rem; } .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; } .lg\:py-px { padding-top: 1px; padding-bottom: 1px; } .lg\:px-px { padding-left: 1px; padding-right: 1px; } .lg\:pt-0 { padding-top: 0; } .lg\:pr-0 { padding-right: 0; } .lg\:pb-0 { padding-bottom: 0; } .lg\:pl-0 { padding-left: 0; } .lg\:pt-1 { padding-top: .25rem; } .lg\:pr-1 { padding-right: .25rem; } .lg\:pb-1 { padding-bottom: .25rem; } .lg\:pl-1 { padding-left: .25rem; } .lg\:pt-2 { padding-top: .5rem; } .lg\:pr-2 { padding-right: .5rem; } .lg\:pb-2 { padding-bottom: .5rem; } .lg\:pl-2 { padding-left: .5rem; } .lg\:pt-3 { padding-top: .75rem; } .lg\:pr-3 { padding-right: .75rem; } .lg\:pb-3 { padding-bottom: .75rem; } .lg\:pl-3 { padding-left: .75rem; } .lg\:pt-4 { padding-top: 1rem; } .lg\:pr-4 { padding-right: 1rem; } .lg\:pb-4 { padding-bottom: 1rem; } .lg\:pl-4 { padding-left: 1rem; } .lg\:pt-6 { padding-top: 1.5rem; } .lg\:pr-6 { padding-right: 1.5rem; } .lg\:pb-6 { padding-bottom: 1.5rem; } .lg\:pl-6 { padding-left: 1.5rem; } .lg\:pt-8 { padding-top: 2rem; } .lg\:pr-8 { padding-right: 2rem; } .lg\:pb-8 { padding-bottom: 2rem; } .lg\:pl-8 { padding-left: 2rem; } .lg\:pt-px { padding-top: 1px; } .lg\:pr-px { padding-right: 1px; } .lg\:pb-px { padding-bottom: 1px; } .lg\:pl-px { padding-left: 1px; } .lg\:pointer-events-none { pointer-events: none; } .lg\:pointer-events-auto { pointer-events: auto; } .lg\:static { position: static; } .lg\:fixed { position: fixed; } .lg\:absolute { position: absolute; } .lg\:relative { position: relative; } .lg\:sticky { position: -webkit-sticky; position: sticky; } .lg\:pin-none { top: auto; right: auto; bottom: auto; left: auto; } .lg\:pin { top: 0; right: 0; bottom: 0; left: 0; } .lg\:pin-y { top: 0; bottom: 0; } .lg\:pin-x { right: 0; left: 0; } .lg\:pin-t { top: 0; } .lg\:pin-r { right: 0; } .lg\:pin-b { bottom: 0; } .lg\:pin-l { left: 0; } .lg\:resize-none { resize: none; } .lg\:resize-y { resize: vertical; } .lg\:resize-x { resize: horizontal; } .lg\:resize { resize: both; } .lg\:shadow { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1); } .lg\:shadow-md { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .12), 0 2px 4px 0 rgba(0, 0, 0, .08); } .lg\:shadow-lg { box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .11), 0 5px 15px 0 rgba(0, 0, 0, .08); } .lg\:shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .06); } .lg\:shadow-none { box-shadow: none; } .lg\:text-left { text-align: left; } .lg\:text-center { text-align: center; } .lg\:text-right { text-align: right; } .lg\:text-justify { text-align: justify; } .lg\:text-transparent { color: transparent; } .lg\:text-black { color: #22292f; } .lg\:text-grey-darkest { color: #3d4852; } .lg\:text-grey-darker { color: #606f7b; } .lg\:text-grey-dark { color: #8795a1; } .lg\:text-grey { color: #b8c2cc; } .lg\:text-grey-light { color: #dae1e7; } .lg\:text-grey-lighter { color: #f1f5f8; } .lg\:text-grey-lightest { color: #f8fafc; } .lg\:text-white { color: #fff; } .lg\:text-red-darkest { color: #3b0d0c; } .lg\:text-red-darker { color: #621b18; } .lg\:text-red-dark { color: #cc1f1a; } .lg\:text-red { color: #e3342f; } .lg\:text-red-light { color: #ef5753; } .lg\:text-red-lighter { color: #f9acaa; } .lg\:text-red-lightest { color: #fcebea; } .lg\:text-orange-darkest { color: #462a16; } .lg\:text-orange-darker { color: #613b1f; } .lg\:text-orange-dark { color: #de751f; } .lg\:text-orange { color: #f6993f; } .lg\:text-orange-light { color: #faad63; } .lg\:text-orange-lighter { color: #fcd9b6; } .lg\:text-orange-lightest { color: #fff5eb; } .lg\:text-yellow-darkest { color: #453411; } .lg\:text-yellow-darker { color: #684f1d; } .lg\:text-yellow-dark { color: #f2d024; } .lg\:text-yellow { color: #ffed4a; } .lg\:text-yellow-light { color: #fff382; } .lg\:text-yellow-lighter { color: #fff9c2; } .lg\:text-yellow-lightest { color: #fcfbeb; } .lg\:text-green-darkest { color: #0f2f21; } .lg\:text-green-darker { color: #1a4731; } .lg\:text-green-dark { color: #1f9d55; } .lg\:text-green { color: #38c172; } .lg\:text-green-light { color: #51d88a; } .lg\:text-green-lighter { color: #a2f5bf; } .lg\:text-green-lightest { color: #e3fcec; } .lg\:text-teal-darkest { color: #0d3331; } .lg\:text-teal-darker { color: #20504f; } .lg\:text-teal-dark { color: #38a89d; } .lg\:text-teal { color: #4dc0b5; } .lg\:text-teal-light { color: #64d5ca; } .lg\:text-teal-lighter { color: #a0f0ed; } .lg\:text-teal-lightest { color: #e8fffe; } .lg\:text-blue-darkest { color: #12283a; } .lg\:text-blue-darker { color: #1c3d5a; } .lg\:text-blue-dark { color: #2779bd; } .lg\:text-blue { color: #3490dc; } .lg\:text-blue-light { color: #6cb2eb; } .lg\:text-blue-lighter { color: #bcdefa; } .lg\:text-blue-lightest { color: #eff8ff; } .lg\:text-indigo-darkest { color: #191e38; } .lg\:text-indigo-darker { color: #2f365f; } .lg\:text-indigo-dark { color: #5661b3; } .lg\:text-indigo { color: #6574cd; } .lg\:text-indigo-light { color: #7886d7; } .lg\:text-indigo-lighter { color: #b2b7ff; } .lg\:text-indigo-lightest { color: #e6e8ff; } .lg\:text-purple-darkest { color: #21183c; } .lg\:text-purple-darker { color: #382b5f; } .lg\:text-purple-dark { color: #794acf; } .lg\:text-purple { color: #9561e2; } .lg\:text-purple-light { color: #a779e9; } .lg\:text-purple-lighter { color: #d6bbfc; } .lg\:text-purple-lightest { color: #f3ebff; } .lg\:text-pink-darkest { color: #451225; } .lg\:text-pink-darker { color: #6f213f; } .lg\:text-pink-dark { color: #eb5286; } .lg\:text-pink { color: #f66d9b; } .lg\:text-pink-light { color: #fa7ea8; } .lg\:text-pink-lighter { color: #ffbbca; } .lg\:text-pink-lightest { color: #ffebef; } .lg\:hover\:text-transparent:hover { color: transparent; } .lg\:hover\:text-black:hover { color: #22292f; } .lg\:hover\:text-grey-darkest:hover { color: #3d4852; } .lg\:hover\:text-grey-darker:hover { color: #606f7b; } .lg\:hover\:text-grey-dark:hover { color: #8795a1; } .lg\:hover\:text-grey:hover { color: #b8c2cc; } .lg\:hover\:text-grey-light:hover { color: #dae1e7; } .lg\:hover\:text-grey-lighter:hover { color: #f1f5f8; } .lg\:hover\:text-grey-lightest:hover { color: #f8fafc; } .lg\:hover\:text-white:hover { color: #fff; } .lg\:hover\:text-red-darkest:hover { color: #3b0d0c; } .lg\:hover\:text-red-darker:hover { color: #621b18; } .lg\:hover\:text-red-dark:hover { color: #cc1f1a; } .lg\:hover\:text-red:hover { color: #e3342f; } .lg\:hover\:text-red-light:hover { color: #ef5753; } .lg\:hover\:text-red-lighter:hover { color: #f9acaa; } .lg\:hover\:text-red-lightest:hover { color: #fcebea; } .lg\:hover\:text-orange-darkest:hover { color: #462a16; } .lg\:hover\:text-orange-darker:hover { color: #613b1f; } .lg\:hover\:text-orange-dark:hover { color: #de751f; } .lg\:hover\:text-orange:hover { color: #f6993f; } .lg\:hover\:text-orange-light:hover { color: #faad63; } .lg\:hover\:text-orange-lighter:hover { color: #fcd9b6; } .lg\:hover\:text-orange-lightest:hover { color: #fff5eb; } .lg\:hover\:text-yellow-darkest:hover { color: #453411; } .lg\:hover\:text-yellow-darker:hover { color: #684f1d; } .lg\:hover\:text-yellow-dark:hover { color: #f2d024; } .lg\:hover\:text-yellow:hover { color: #ffed4a; } .lg\:hover\:text-yellow-light:hover { color: #fff382; } .lg\:hover\:text-yellow-lighter:hover { color: #fff9c2; } .lg\:hover\:text-yellow-lightest:hover { color: #fcfbeb; } .lg\:hover\:text-green-darkest:hover { color: #0f2f21; } .lg\:hover\:text-green-darker:hover { color: #1a4731; } .lg\:hover\:text-green-dark:hover { color: #1f9d55; } .lg\:hover\:text-green:hover { color: #38c172; } .lg\:hover\:text-green-light:hover { color: #51d88a; } .lg\:hover\:text-green-lighter:hover { color: #a2f5bf; } .lg\:hover\:text-green-lightest:hover { color: #e3fcec; } .lg\:hover\:text-teal-darkest:hover { color: #0d3331; } .lg\:hover\:text-teal-darker:hover { color: #20504f; } .lg\:hover\:text-teal-dark:hover { color: #38a89d; } .lg\:hover\:text-teal:hover { color: #4dc0b5; } .lg\:hover\:text-teal-light:hover { color: #64d5ca; } .lg\:hover\:text-teal-lighter:hover { color: #a0f0ed; } .lg\:hover\:text-teal-lightest:hover { color: #e8fffe; } .lg\:hover\:text-blue-darkest:hover { color: #12283a; } .lg\:hover\:text-blue-darker:hover { color: #1c3d5a; } .lg\:hover\:text-blue-dark:hover { color: #2779bd; } .lg\:hover\:text-blue:hover { color: #3490dc; } .lg\:hover\:text-blue-light:hover { color: #6cb2eb; } .lg\:hover\:text-blue-lighter:hover { color: #bcdefa; } .lg\:hover\:text-blue-lightest:hover { color: #eff8ff; } .lg\:hover\:text-indigo-darkest:hover { color: #191e38; } .lg\:hover\:text-indigo-darker:hover { color: #2f365f; } .lg\:hover\:text-indigo-dark:hover { color: #5661b3; } .lg\:hover\:text-indigo:hover { color: #6574cd; } .lg\:hover\:text-indigo-light:hover { color: #7886d7; } .lg\:hover\:text-indigo-lighter:hover { color: #b2b7ff; } .lg\:hover\:text-indigo-lightest:hover { color: #e6e8ff; } .lg\:hover\:text-purple-darkest:hover { color: #21183c; } .lg\:hover\:text-purple-darker:hover { color: #382b5f; } .lg\:hover\:text-purple-dark:hover { color: #794acf; } .lg\:hover\:text-purple:hover { color: #9561e2; } .lg\:hover\:text-purple-light:hover { color: #a779e9; } .lg\:hover\:text-purple-lighter:hover { color: #d6bbfc; } .lg\:hover\:text-purple-lightest:hover { color: #f3ebff; } .lg\:hover\:text-pink-darkest:hover { color: #451225; } .lg\:hover\:text-pink-darker:hover { color: #6f213f; } .lg\:hover\:text-pink-dark:hover { color: #eb5286; } .lg\:hover\:text-pink:hover { color: #f66d9b; } .lg\:hover\:text-pink-light:hover { color: #fa7ea8; } .lg\:hover\:text-pink-lighter:hover { color: #ffbbca; } .lg\:hover\:text-pink-lightest:hover { color: #ffebef; } .lg\:text-xs { font-size: .75rem; } .lg\:text-sm { font-size: .875rem; } .lg\:text-base { font-size: 1rem; } .lg\:text-lg { font-size: 1.125rem; } .lg\:text-xl { font-size: 1.25rem; } .lg\:text-2xl { font-size: 1.5rem; } .lg\:text-3xl { font-size: 1.875rem; } .lg\:text-4xl { font-size: 2.25rem; } .lg\:text-5xl { font-size: 3rem; } .lg\:italic { font-style: italic; } .lg\:roman { font-style: normal; } .lg\:uppercase { text-transform: uppercase; } .lg\:lowercase { text-transform: lowercase; } .lg\:capitalize { text-transform: capitalize; } .lg\:normal-case { text-transform: none; } .lg\:underline { text-decoration: underline; } .lg\:line-through { text-decoration: line-through; } .lg\:no-underline { text-decoration: none; } .lg\:antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .lg\:subpixel-antialiased { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .lg\:hover\:italic:hover { font-style: italic; } .lg\:hover\:roman:hover { font-style: normal; } .lg\:hover\:uppercase:hover { text-transform: uppercase; } .lg\:hover\:lowercase:hover { text-transform: lowercase; } .lg\:hover\:capitalize:hover { text-transform: capitalize; } .lg\:hover\:normal-case:hover { text-transform: none; } .lg\:hover\:underline:hover { text-decoration: underline; } .lg\:hover\:line-through:hover { text-decoration: line-through; } .lg\:hover\:no-underline:hover { text-decoration: none; } .lg\:hover\:antialiased:hover { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .lg\:hover\:subpixel-antialiased:hover { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .lg\:tracking-tight { letter-spacing: -0.05em; } .lg\:tracking-normal { letter-spacing: 0; } .lg\:tracking-wide { letter-spacing: .05em; } .lg\:select-none { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .lg\:select-text { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; } .lg\:align-baseline { vertical-align: baseline; } .lg\:align-top { vertical-align: top; } .lg\:align-middle { vertical-align: middle; } .lg\:align-bottom { vertical-align: bottom; } .lg\:align-text-top { vertical-align: text-top; } .lg\:align-text-bottom { vertical-align: text-bottom; } .lg\:visible { visibility: visible; } .lg\:invisible { visibility: hidden; } .lg\:whitespace-normal { white-space: normal; } .lg\:whitespace-no-wrap { white-space: nowrap; } .lg\:whitespace-pre { white-space: pre; } .lg\:whitespace-pre-line { white-space: pre-line; } .lg\:whitespace-pre-wrap { white-space: pre-wrap; } .lg\:break-words { word-wrap: break-word; } .lg\:break-normal { word-wrap: normal; } .lg\:truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lg\:w-1 { width: .25rem; } .lg\:w-2 { width: .5rem; } .lg\:w-3 { width: .75rem; } .lg\:w-4 { width: 1rem; } .lg\:w-6 { width: 1.5rem; } .lg\:w-8 { width: 2rem; } .lg\:w-10 { width: 2.5rem; } .lg\:w-12 { width: 3rem; } .lg\:w-16 { width: 4rem; } .lg\:w-24 { width: 6rem; } .lg\:w-32 { width: 8rem; } .lg\:w-48 { width: 12rem; } .lg\:w-64 { width: 16rem; } .lg\:w-auto { width: auto; } .lg\:w-px { width: 1px; } .lg\:w-1\/2 { width: 50%; } .lg\:w-1\/3 { width: 33.33333%; } .lg\:w-2\/3 { width: 66.66667%; } .lg\:w-1\/4 { width: 25%; } .lg\:w-3\/4 { width: 75%; } .lg\:w-1\/5 { width: 20%; } .lg\:w-2\/5 { width: 40%; } .lg\:w-3\/5 { width: 60%; } .lg\:w-4\/5 { width: 80%; } .lg\:w-1\/6 { width: 16.66667%; } .lg\:w-5\/6 { width: 83.33333%; } .lg\:w-full { width: 100%; } .lg\:w-screen { width: 100vw; } .lg\:z-0 { z-index: 0; } .lg\:z-10 { z-index: 10; } .lg\:z-20 { z-index: 20; } .lg\:z-30 { z-index: 30; } .lg\:z-40 { z-index: 40; } .lg\:z-50 { z-index: 50; } .lg\:z-auto { z-index: auto; } } @media (min-width: 1200px) { .xl\:list-reset { list-style: none; padding: 0; } .xl\:appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .xl\:bg-fixed { background-attachment: fixed; } .xl\:bg-local { background-attachment: local; } .xl\:bg-scroll { background-attachment: scroll; } .xl\:bg-transparent { background-color: transparent; } .xl\:bg-black { background-color: #22292f; } .xl\:bg-grey-darkest { background-color: #3d4852; } .xl\:bg-grey-darker { background-color: #606f7b; } .xl\:bg-grey-dark { background-color: #8795a1; } .xl\:bg-grey { background-color: #b8c2cc; } .xl\:bg-grey-light { background-color: #dae1e7; } .xl\:bg-grey-lighter { background-color: #f1f5f8; } .xl\:bg-grey-lightest { background-color: #f8fafc; } .xl\:bg-white { background-color: #fff; } .xl\:bg-red-darkest { background-color: #3b0d0c; } .xl\:bg-red-darker { background-color: #621b18; } .xl\:bg-red-dark { background-color: #cc1f1a; } .xl\:bg-red { background-color: #e3342f; } .xl\:bg-red-light { background-color: #ef5753; } .xl\:bg-red-lighter { background-color: #f9acaa; } .xl\:bg-red-lightest { background-color: #fcebea; } .xl\:bg-orange-darkest { background-color: #462a16; } .xl\:bg-orange-darker { background-color: #613b1f; } .xl\:bg-orange-dark { background-color: #de751f; } .xl\:bg-orange { background-color: #f6993f; } .xl\:bg-orange-light { background-color: #faad63; } .xl\:bg-orange-lighter { background-color: #fcd9b6; } .xl\:bg-orange-lightest { background-color: #fff5eb; } .xl\:bg-yellow-darkest { background-color: #453411; } .xl\:bg-yellow-darker { background-color: #684f1d; } .xl\:bg-yellow-dark { background-color: #f2d024; } .xl\:bg-yellow { background-color: #ffed4a; } .xl\:bg-yellow-light { background-color: #fff382; } .xl\:bg-yellow-lighter { background-color: #fff9c2; } .xl\:bg-yellow-lightest { background-color: #fcfbeb; } .xl\:bg-green-darkest { background-color: #0f2f21; } .xl\:bg-green-darker { background-color: #1a4731; } .xl\:bg-green-dark { background-color: #1f9d55; } .xl\:bg-green { background-color: #38c172; } .xl\:bg-green-light { background-color: #51d88a; } .xl\:bg-green-lighter { background-color: #a2f5bf; } .xl\:bg-green-lightest { background-color: #e3fcec; } .xl\:bg-teal-darkest { background-color: #0d3331; } .xl\:bg-teal-darker { background-color: #20504f; } .xl\:bg-teal-dark { background-color: #38a89d; } .xl\:bg-teal { background-color: #4dc0b5; } .xl\:bg-teal-light { background-color: #64d5ca; } .xl\:bg-teal-lighter { background-color: #a0f0ed; } .xl\:bg-teal-lightest { background-color: #e8fffe; } .xl\:bg-blue-darkest { background-color: #12283a; } .xl\:bg-blue-darker { background-color: #1c3d5a; } .xl\:bg-blue-dark { background-color: #2779bd; } .xl\:bg-blue { background-color: #3490dc; } .xl\:bg-blue-light { background-color: #6cb2eb; } .xl\:bg-blue-lighter { background-color: #bcdefa; } .xl\:bg-blue-lightest { background-color: #eff8ff; } .xl\:bg-indigo-darkest { background-color: #191e38; } .xl\:bg-indigo-darker { background-color: #2f365f; } .xl\:bg-indigo-dark { background-color: #5661b3; } .xl\:bg-indigo { background-color: #6574cd; } .xl\:bg-indigo-light { background-color: #7886d7; } .xl\:bg-indigo-lighter { background-color: #b2b7ff; } .xl\:bg-indigo-lightest { background-color: #e6e8ff; } .xl\:bg-purple-darkest { background-color: #21183c; } .xl\:bg-purple-darker { background-color: #382b5f; } .xl\:bg-purple-dark { background-color: #794acf; } .xl\:bg-purple { background-color: #9561e2; } .xl\:bg-purple-light { background-color: #a779e9; } .xl\:bg-purple-lighter { background-color: #d6bbfc; } .xl\:bg-purple-lightest { background-color: #f3ebff; } .xl\:bg-pink-darkest { background-color: #451225; } .xl\:bg-pink-darker { background-color: #6f213f; } .xl\:bg-pink-dark { background-color: #eb5286; } .xl\:bg-pink { background-color: #f66d9b; } .xl\:bg-pink-light { background-color: #fa7ea8; } .xl\:bg-pink-lighter { background-color: #ffbbca; } .xl\:bg-pink-lightest { background-color: #ffebef; } .xl\:hover\:bg-transparent:hover { background-color: transparent; } .xl\:hover\:bg-black:hover { background-color: #22292f; } .xl\:hover\:bg-grey-darkest:hover { background-color: #3d4852; } .xl\:hover\:bg-grey-darker:hover { background-color: #606f7b; } .xl\:hover\:bg-grey-dark:hover { background-color: #8795a1; } .xl\:hover\:bg-grey:hover { background-color: #b8c2cc; } .xl\:hover\:bg-grey-light:hover { background-color: #dae1e7; } .xl\:hover\:bg-grey-lighter:hover { background-color: #f1f5f8; } .xl\:hover\:bg-grey-lightest:hover { background-color: #f8fafc; } .xl\:hover\:bg-white:hover { background-color: #fff; } .xl\:hover\:bg-red-darkest:hover { background-color: #3b0d0c; } .xl\:hover\:bg-red-darker:hover { background-color: #621b18; } .xl\:hover\:bg-red-dark:hover { background-color: #cc1f1a; } .xl\:hover\:bg-red:hover { background-color: #e3342f; } .xl\:hover\:bg-red-light:hover { background-color: #ef5753; } .xl\:hover\:bg-red-lighter:hover { background-color: #f9acaa; } .xl\:hover\:bg-red-lightest:hover { background-color: #fcebea; } .xl\:hover\:bg-orange-darkest:hover { background-color: #462a16; } .xl\:hover\:bg-orange-darker:hover { background-color: #613b1f; } .xl\:hover\:bg-orange-dark:hover { background-color: #de751f; } .xl\:hover\:bg-orange:hover { background-color: #f6993f; } .xl\:hover\:bg-orange-light:hover { background-color: #faad63; } .xl\:hover\:bg-orange-lighter:hover { background-color: #fcd9b6; } .xl\:hover\:bg-orange-lightest:hover { background-color: #fff5eb; } .xl\:hover\:bg-yellow-darkest:hover { background-color: #453411; } .xl\:hover\:bg-yellow-darker:hover { background-color: #684f1d; } .xl\:hover\:bg-yellow-dark:hover { background-color: #f2d024; } .xl\:hover\:bg-yellow:hover { background-color: #ffed4a; } .xl\:hover\:bg-yellow-light:hover { background-color: #fff382; } .xl\:hover\:bg-yellow-lighter:hover { background-color: #fff9c2; } .xl\:hover\:bg-yellow-lightest:hover { background-color: #fcfbeb; } .xl\:hover\:bg-green-darkest:hover { background-color: #0f2f21; } .xl\:hover\:bg-green-darker:hover { background-color: #1a4731; } .xl\:hover\:bg-green-dark:hover { background-color: #1f9d55; } .xl\:hover\:bg-green:hover { background-color: #38c172; } .xl\:hover\:bg-green-light:hover { background-color: #51d88a; } .xl\:hover\:bg-green-lighter:hover { background-color: #a2f5bf; } .xl\:hover\:bg-green-lightest:hover { background-color: #e3fcec; } .xl\:hover\:bg-teal-darkest:hover { background-color: #0d3331; } .xl\:hover\:bg-teal-darker:hover { background-color: #20504f; } .xl\:hover\:bg-teal-dark:hover { background-color: #38a89d; } .xl\:hover\:bg-teal:hover { background-color: #4dc0b5; } .xl\:hover\:bg-teal-light:hover { background-color: #64d5ca; } .xl\:hover\:bg-teal-lighter:hover { background-color: #a0f0ed; } .xl\:hover\:bg-teal-lightest:hover { background-color: #e8fffe; } .xl\:hover\:bg-blue-darkest:hover { background-color: #12283a; } .xl\:hover\:bg-blue-darker:hover { background-color: #1c3d5a; } .xl\:hover\:bg-blue-dark:hover { background-color: #2779bd; } .xl\:hover\:bg-blue:hover { background-color: #3490dc; } .xl\:hover\:bg-blue-light:hover { background-color: #6cb2eb; } .xl\:hover\:bg-blue-lighter:hover { background-color: #bcdefa; } .xl\:hover\:bg-blue-lightest:hover { background-color: #eff8ff; } .xl\:hover\:bg-indigo-darkest:hover { background-color: #191e38; } .xl\:hover\:bg-indigo-darker:hover { background-color: #2f365f; } .xl\:hover\:bg-indigo-dark:hover { background-color: #5661b3; } .xl\:hover\:bg-indigo:hover { background-color: #6574cd; } .xl\:hover\:bg-indigo-light:hover { background-color: #7886d7; } .xl\:hover\:bg-indigo-lighter:hover { background-color: #b2b7ff; } .xl\:hover\:bg-indigo-lightest:hover { background-color: #e6e8ff; } .xl\:hover\:bg-purple-darkest:hover { background-color: #21183c; } .xl\:hover\:bg-purple-darker:hover { background-color: #382b5f; } .xl\:hover\:bg-purple-dark:hover { background-color: #794acf; } .xl\:hover\:bg-purple:hover { background-color: #9561e2; } .xl\:hover\:bg-purple-light:hover { background-color: #a779e9; } .xl\:hover\:bg-purple-lighter:hover { background-color: #d6bbfc; } .xl\:hover\:bg-purple-lightest:hover { background-color: #f3ebff; } .xl\:hover\:bg-pink-darkest:hover { background-color: #451225; } .xl\:hover\:bg-pink-darker:hover { background-color: #6f213f; } .xl\:hover\:bg-pink-dark:hover { background-color: #eb5286; } .xl\:hover\:bg-pink:hover { background-color: #f66d9b; } .xl\:hover\:bg-pink-light:hover { background-color: #fa7ea8; } .xl\:hover\:bg-pink-lighter:hover { background-color: #ffbbca; } .xl\:hover\:bg-pink-lightest:hover { background-color: #ffebef; } .xl\:bg-bottom { background-position: bottom; } .xl\:bg-center { background-position: center; } .xl\:bg-left { background-position: left; } .xl\:bg-left-bottom { background-position: left bottom; } .xl\:bg-left-top { background-position: left top; } .xl\:bg-right { background-position: right; } .xl\:bg-right-bottom { background-position: right bottom; } .xl\:bg-right-top { background-position: right top; } .xl\:bg-top { background-position: top; } .xl\:bg-repeat { background-repeat: repeat; } .xl\:bg-no-repeat { background-repeat: no-repeat; } .xl\:bg-repeat-x { background-repeat: repeat-x; } .xl\:bg-repeat-y { background-repeat: repeat-y; } .xl\:bg-auto { background-size: auto; } .xl\:bg-cover { background-size: cover; } .xl\:bg-contain { background-size: contain; } .xl\:border-transparent { border-color: transparent; } .xl\:border-black { border-color: #22292f; } .xl\:border-grey-darkest { border-color: #3d4852; } .xl\:border-grey-darker { border-color: #606f7b; } .xl\:border-grey-dark { border-color: #8795a1; } .xl\:border-grey { border-color: #b8c2cc; } .xl\:border-grey-light { border-color: #dae1e7; } .xl\:border-grey-lighter { border-color: #f1f5f8; } .xl\:border-grey-lightest { border-color: #f8fafc; } .xl\:border-white { border-color: #fff; } .xl\:border-red-darkest { border-color: #3b0d0c; } .xl\:border-red-darker { border-color: #621b18; } .xl\:border-red-dark { border-color: #cc1f1a; } .xl\:border-red { border-color: #e3342f; } .xl\:border-red-light { border-color: #ef5753; } .xl\:border-red-lighter { border-color: #f9acaa; } .xl\:border-red-lightest { border-color: #fcebea; } .xl\:border-orange-darkest { border-color: #462a16; } .xl\:border-orange-darker { border-color: #613b1f; } .xl\:border-orange-dark { border-color: #de751f; } .xl\:border-orange { border-color: #f6993f; } .xl\:border-orange-light { border-color: #faad63; } .xl\:border-orange-lighter { border-color: #fcd9b6; } .xl\:border-orange-lightest { border-color: #fff5eb; } .xl\:border-yellow-darkest { border-color: #453411; } .xl\:border-yellow-darker { border-color: #684f1d; } .xl\:border-yellow-dark { border-color: #f2d024; } .xl\:border-yellow { border-color: #ffed4a; } .xl\:border-yellow-light { border-color: #fff382; } .xl\:border-yellow-lighter { border-color: #fff9c2; } .xl\:border-yellow-lightest { border-color: #fcfbeb; } .xl\:border-green-darkest { border-color: #0f2f21; } .xl\:border-green-darker { border-color: #1a4731; } .xl\:border-green-dark { border-color: #1f9d55; } .xl\:border-green { border-color: #38c172; } .xl\:border-green-light { border-color: #51d88a; } .xl\:border-green-lighter { border-color: #a2f5bf; } .xl\:border-green-lightest { border-color: #e3fcec; } .xl\:border-teal-darkest { border-color: #0d3331; } .xl\:border-teal-darker { border-color: #20504f; } .xl\:border-teal-dark { border-color: #38a89d; } .xl\:border-teal { border-color: #4dc0b5; } .xl\:border-teal-light { border-color: #64d5ca; } .xl\:border-teal-lighter { border-color: #a0f0ed; } .xl\:border-teal-lightest { border-color: #e8fffe; } .xl\:border-blue-darkest { border-color: #12283a; } .xl\:border-blue-darker { border-color: #1c3d5a; } .xl\:border-blue-dark { border-color: #2779bd; } .xl\:border-blue { border-color: #3490dc; } .xl\:border-blue-light { border-color: #6cb2eb; } .xl\:border-blue-lighter { border-color: #bcdefa; } .xl\:border-blue-lightest { border-color: #eff8ff; } .xl\:border-indigo-darkest { border-color: #191e38; } .xl\:border-indigo-darker { border-color: #2f365f; } .xl\:border-indigo-dark { border-color: #5661b3; } .xl\:border-indigo { border-color: #6574cd; } .xl\:border-indigo-light { border-color: #7886d7; } .xl\:border-indigo-lighter { border-color: #b2b7ff; } .xl\:border-indigo-lightest { border-color: #e6e8ff; } .xl\:border-purple-darkest { border-color: #21183c; } .xl\:border-purple-darker { border-color: #382b5f; } .xl\:border-purple-dark { border-color: #794acf; } .xl\:border-purple { border-color: #9561e2; } .xl\:border-purple-light { border-color: #a779e9; } .xl\:border-purple-lighter { border-color: #d6bbfc; } .xl\:border-purple-lightest { border-color: #f3ebff; } .xl\:border-pink-darkest { border-color: #451225; } .xl\:border-pink-darker { border-color: #6f213f; } .xl\:border-pink-dark { border-color: #eb5286; } .xl\:border-pink { border-color: #f66d9b; } .xl\:border-pink-light { border-color: #fa7ea8; } .xl\:border-pink-lighter { border-color: #ffbbca; } .xl\:border-pink-lightest { border-color: #ffebef; } .xl\:hover\:border-transparent:hover { border-color: transparent; } .xl\:hover\:border-black:hover { border-color: #22292f; } .xl\:hover\:border-grey-darkest:hover { border-color: #3d4852; } .xl\:hover\:border-grey-darker:hover { border-color: #606f7b; } .xl\:hover\:border-grey-dark:hover { border-color: #8795a1; } .xl\:hover\:border-grey:hover { border-color: #b8c2cc; } .xl\:hover\:border-grey-light:hover { border-color: #dae1e7; } .xl\:hover\:border-grey-lighter:hover { border-color: #f1f5f8; } .xl\:hover\:border-grey-lightest:hover { border-color: #f8fafc; } .xl\:hover\:border-white:hover { border-color: #fff; } .xl\:hover\:border-red-darkest:hover { border-color: #3b0d0c; } .xl\:hover\:border-red-darker:hover { border-color: #621b18; } .xl\:hover\:border-red-dark:hover { border-color: #cc1f1a; } .xl\:hover\:border-red:hover { border-color: #e3342f; } .xl\:hover\:border-red-light:hover { border-color: #ef5753; } .xl\:hover\:border-red-lighter:hover { border-color: #f9acaa; } .xl\:hover\:border-red-lightest:hover { border-color: #fcebea; } .xl\:hover\:border-orange-darkest:hover { border-color: #462a16; } .xl\:hover\:border-orange-darker:hover { border-color: #613b1f; } .xl\:hover\:border-orange-dark:hover { border-color: #de751f; } .xl\:hover\:border-orange:hover { border-color: #f6993f; } .xl\:hover\:border-orange-light:hover { border-color: #faad63; } .xl\:hover\:border-orange-lighter:hover { border-color: #fcd9b6; } .xl\:hover\:border-orange-lightest:hover { border-color: #fff5eb; } .xl\:hover\:border-yellow-darkest:hover { border-color: #453411; } .xl\:hover\:border-yellow-darker:hover { border-color: #684f1d; } .xl\:hover\:border-yellow-dark:hover { border-color: #f2d024; } .xl\:hover\:border-yellow:hover { border-color: #ffed4a; } .xl\:hover\:border-yellow-light:hover { border-color: #fff382; } .xl\:hover\:border-yellow-lighter:hover { border-color: #fff9c2; } .xl\:hover\:border-yellow-lightest:hover { border-color: #fcfbeb; } .xl\:hover\:border-green-darkest:hover { border-color: #0f2f21; } .xl\:hover\:border-green-darker:hover { border-color: #1a4731; } .xl\:hover\:border-green-dark:hover { border-color: #1f9d55; } .xl\:hover\:border-green:hover { border-color: #38c172; } .xl\:hover\:border-green-light:hover { border-color: #51d88a; } .xl\:hover\:border-green-lighter:hover { border-color: #a2f5bf; } .xl\:hover\:border-green-lightest:hover { border-color: #e3fcec; } .xl\:hover\:border-teal-darkest:hover { border-color: #0d3331; } .xl\:hover\:border-teal-darker:hover { border-color: #20504f; } .xl\:hover\:border-teal-dark:hover { border-color: #38a89d; } .xl\:hover\:border-teal:hover { border-color: #4dc0b5; } .xl\:hover\:border-teal-light:hover { border-color: #64d5ca; } .xl\:hover\:border-teal-lighter:hover { border-color: #a0f0ed; } .xl\:hover\:border-teal-lightest:hover { border-color: #e8fffe; } .xl\:hover\:border-blue-darkest:hover { border-color: #12283a; } .xl\:hover\:border-blue-darker:hover { border-color: #1c3d5a; } .xl\:hover\:border-blue-dark:hover { border-color: #2779bd; } .xl\:hover\:border-blue:hover { border-color: #3490dc; } .xl\:hover\:border-blue-light:hover { border-color: #6cb2eb; } .xl\:hover\:border-blue-lighter:hover { border-color: #bcdefa; } .xl\:hover\:border-blue-lightest:hover { border-color: #eff8ff; } .xl\:hover\:border-indigo-darkest:hover { border-color: #191e38; } .xl\:hover\:border-indigo-darker:hover { border-color: #2f365f; } .xl\:hover\:border-indigo-dark:hover { border-color: #5661b3; } .xl\:hover\:border-indigo:hover { border-color: #6574cd; } .xl\:hover\:border-indigo-light:hover { border-color: #7886d7; } .xl\:hover\:border-indigo-lighter:hover { border-color: #b2b7ff; } .xl\:hover\:border-indigo-lightest:hover { border-color: #e6e8ff; } .xl\:hover\:border-purple-darkest:hover { border-color: #21183c; } .xl\:hover\:border-purple-darker:hover { border-color: #382b5f; } .xl\:hover\:border-purple-dark:hover { border-color: #794acf; } .xl\:hover\:border-purple:hover { border-color: #9561e2; } .xl\:hover\:border-purple-light:hover { border-color: #a779e9; } .xl\:hover\:border-purple-lighter:hover { border-color: #d6bbfc; } .xl\:hover\:border-purple-lightest:hover { border-color: #f3ebff; } .xl\:hover\:border-pink-darkest:hover { border-color: #451225; } .xl\:hover\:border-pink-darker:hover { border-color: #6f213f; } .xl\:hover\:border-pink-dark:hover { border-color: #eb5286; } .xl\:hover\:border-pink:hover { border-color: #f66d9b; } .xl\:hover\:border-pink-light:hover { border-color: #fa7ea8; } .xl\:hover\:border-pink-lighter:hover { border-color: #ffbbca; } .xl\:hover\:border-pink-lightest:hover { border-color: #ffebef; } .xl\:rounded-none { border-radius: 0; } .xl\:rounded-sm { border-radius: .125rem; } .xl\:rounded { border-radius: .25rem; } .xl\:rounded-lg { border-radius: .5rem; } .xl\:rounded-full { border-radius: 9999px; } .xl\:rounded-t-none { border-top-left-radius: 0; border-top-right-radius: 0; } .xl\:rounded-r-none { border-top-right-radius: 0; border-bottom-right-radius: 0; } .xl\:rounded-b-none { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .xl\:rounded-l-none { border-top-left-radius: 0; border-bottom-left-radius: 0; } .xl\:rounded-t-sm { border-top-left-radius: .125rem; border-top-right-radius: .125rem; } .xl\:rounded-r-sm { border-top-right-radius: .125rem; border-bottom-right-radius: .125rem; } .xl\:rounded-b-sm { border-bottom-right-radius: .125rem; border-bottom-left-radius: .125rem; } .xl\:rounded-l-sm { border-top-left-radius: .125rem; border-bottom-left-radius: .125rem; } .xl\:rounded-t { border-top-left-radius: .25rem; border-top-right-radius: .25rem; } .xl\:rounded-r { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; } .xl\:rounded-b { border-bottom-right-radius: .25rem; border-bottom-left-radius: .25rem; } .xl\:rounded-l { border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; } .xl\:rounded-t-lg { border-top-left-radius: .5rem; border-top-right-radius: .5rem; } .xl\:rounded-r-lg { border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; } .xl\:rounded-b-lg { border-bottom-right-radius: .5rem; border-bottom-left-radius: .5rem; } .xl\:rounded-l-lg { border-top-left-radius: .5rem; border-bottom-left-radius: .5rem; } .xl\:rounded-t-full { border-top-left-radius: 9999px; border-top-right-radius: 9999px; } .xl\:rounded-r-full { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; } .xl\:rounded-b-full { border-bottom-right-radius: 9999px; border-bottom-left-radius: 9999px; } .xl\:rounded-l-full { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; } .xl\:rounded-tl-none { border-top-left-radius: 0; } .xl\:rounded-tr-none { border-top-right-radius: 0; } .xl\:rounded-br-none { border-bottom-right-radius: 0; } .xl\:rounded-bl-none { border-bottom-left-radius: 0; } .xl\:rounded-tl-sm { border-top-left-radius: .125rem; } .xl\:rounded-tr-sm { border-top-right-radius: .125rem; } .xl\:rounded-br-sm { border-bottom-right-radius: .125rem; } .xl\:rounded-bl-sm { border-bottom-left-radius: .125rem; } .xl\:rounded-tl { border-top-left-radius: .25rem; } .xl\:rounded-tr { border-top-right-radius: .25rem; } .xl\:rounded-br { border-bottom-right-radius: .25rem; } .xl\:rounded-bl { border-bottom-left-radius: .25rem; } .xl\:rounded-tl-lg { border-top-left-radius: .5rem; } .xl\:rounded-tr-lg { border-top-right-radius: .5rem; } .xl\:rounded-br-lg { border-bottom-right-radius: .5rem; } .xl\:rounded-bl-lg { border-bottom-left-radius: .5rem; } .xl\:rounded-tl-full { border-top-left-radius: 9999px; } .xl\:rounded-tr-full { border-top-right-radius: 9999px; } .xl\:rounded-br-full { border-bottom-right-radius: 9999px; } .xl\:rounded-bl-full { border-bottom-left-radius: 9999px; } .xl\:border-solid { border-style: solid; } .xl\:border-dashed { border-style: dashed; } .xl\:border-dotted { border-style: dotted; } .xl\:border-none { border-style: none; } .xl\:border-0 { border-width: 0; } .xl\:border-2 { border-width: 2px; } .xl\:border-4 { border-width: 4px; } .xl\:border-8 { border-width: 8px; } .xl\:border { border-width: 1px; } .xl\:border-t-0 { border-top-width: 0; } .xl\:border-r-0 { border-right-width: 0; } .xl\:border-b-0 { border-bottom-width: 0; } .xl\:border-l-0 { border-left-width: 0; } .xl\:border-t-2 { border-top-width: 2px; } .xl\:border-r-2 { border-right-width: 2px; } .xl\:border-b-2 { border-bottom-width: 2px; } .xl\:border-l-2 { border-left-width: 2px; } .xl\:border-t-4 { border-top-width: 4px; } .xl\:border-r-4 { border-right-width: 4px; } .xl\:border-b-4 { border-bottom-width: 4px; } .xl\:border-l-4 { border-left-width: 4px; } .xl\:border-t-8 { border-top-width: 8px; } .xl\:border-r-8 { border-right-width: 8px; } .xl\:border-b-8 { border-bottom-width: 8px; } .xl\:border-l-8 { border-left-width: 8px; } .xl\:border-t { border-top-width: 1px; } .xl\:border-r { border-right-width: 1px; } .xl\:border-b { border-bottom-width: 1px; } .xl\:border-l { border-left-width: 1px; } .xl\:cursor-auto { cursor: auto; } .xl\:cursor-default { cursor: default; } .xl\:cursor-pointer { cursor: pointer; } .xl\:cursor-wait { cursor: wait; } .xl\:cursor-move { cursor: move; } .xl\:cursor-not-allowed { cursor: not-allowed; } .xl\:block { display: block; } .xl\:inline-block { display: inline-block; } .xl\:inline { display: inline; } .xl\:table { display: table; } .xl\:table-row { display: table-row; } .xl\:table-cell { display: table-cell; } .xl\:hidden { display: none; } .xl\:flex { display: flex; } .xl\:inline-flex { display: inline-flex; } .xl\:flex-row { flex-direction: row; } .xl\:flex-row-reverse { flex-direction: row-reverse; } .xl\:flex-col { flex-direction: column; } .xl\:flex-col-reverse { flex-direction: column-reverse; } .xl\:flex-wrap { flex-wrap: wrap; } .xl\:flex-wrap-reverse { flex-wrap: wrap-reverse; } .xl\:flex-no-wrap { flex-wrap: nowrap; } .xl\:items-start { align-items: flex-start; } .xl\:items-end { align-items: flex-end; } .xl\:items-center { align-items: center; } .xl\:items-baseline { align-items: baseline; } .xl\:items-stretch { align-items: stretch; } .xl\:self-auto { align-self: auto; } .xl\:self-start { align-self: flex-start; } .xl\:self-end { align-self: flex-end; } .xl\:self-center { align-self: center; } .xl\:self-stretch { align-self: stretch; } .xl\:justify-start { justify-content: flex-start; } .xl\:justify-end { justify-content: flex-end; } .xl\:justify-center { justify-content: center; } .xl\:justify-between { justify-content: space-between; } .xl\:justify-around { justify-content: space-around; } .xl\:content-center { align-content: center; } .xl\:content-start { align-content: flex-start; } .xl\:content-end { align-content: flex-end; } .xl\:content-between { align-content: space-between; } .xl\:content-around { align-content: space-around; } .xl\:flex-1 { flex: 1; } .xl\:flex-auto { flex: auto; } .xl\:flex-initial { flex: initial; } .xl\:flex-none { flex: none; } .xl\:flex-grow { flex-grow: 1; } .xl\:flex-shrink { flex-shrink: 1; } .xl\:flex-no-grow { flex-grow: 0; } .xl\:flex-no-shrink { flex-shrink: 0; } .xl\:float-right { float: right; } .xl\:float-left { float: left; } .xl\:float-none { float: none; } .xl\:clearfix:after { content: ""; display: table; clear: both; } .xl\:font-sans { font-family: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } .xl\:font-serif { font-family: Constantia, Lucida Bright, Lucidabright, Lucida Serif, Lucida, DejaVu Serif, Bitstream Vera Serif, Liberation Serif, Georgia, serif; } .xl\:font-mono { font-family: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; } .xl\:font-hairline { font-weight: 100; } .xl\:font-thin { font-weight: 200; } .xl\:font-light { font-weight: 300; } .xl\:font-normal { font-weight: 400; } .xl\:font-medium { font-weight: 500; } .xl\:font-semibold { font-weight: 600; } .xl\:font-bold { font-weight: 700; } .xl\:font-extrabold { font-weight: 800; } .xl\:font-black { font-weight: 900; } .xl\:hover\:font-hairline:hover { font-weight: 100; } .xl\:hover\:font-thin:hover { font-weight: 200; } .xl\:hover\:font-light:hover { font-weight: 300; } .xl\:hover\:font-normal:hover { font-weight: 400; } .xl\:hover\:font-medium:hover { font-weight: 500; } .xl\:hover\:font-semibold:hover { font-weight: 600; } .xl\:hover\:font-bold:hover { font-weight: 700; } .xl\:hover\:font-extrabold:hover { font-weight: 800; } .xl\:hover\:font-black:hover { font-weight: 900; } .xl\:h-1 { height: .25rem; } .xl\:h-2 { height: .5rem; } .xl\:h-3 { height: .75rem; } .xl\:h-4 { height: 1rem; } .xl\:h-6 { height: 1.5rem; } .xl\:h-8 { height: 2rem; } .xl\:h-10 { height: 2.5rem; } .xl\:h-12 { height: 3rem; } .xl\:h-16 { height: 4rem; } .xl\:h-24 { height: 6rem; } .xl\:h-32 { height: 8rem; } .xl\:h-48 { height: 12rem; } .xl\:h-64 { height: 16rem; } .xl\:h-auto { height: auto; } .xl\:h-px { height: 1px; } .xl\:h-full { height: 100%; } .xl\:h-screen { height: 100vh; } .xl\:leading-none { line-height: 1; } .xl\:leading-tight { line-height: 1.25; } .xl\:leading-normal { line-height: 1.5; } .xl\:leading-loose { line-height: 2; } .xl\:m-0 { margin: 0; } .xl\:m-1 { margin: .25rem; } .xl\:m-2 { margin: .5rem; } .xl\:m-3 { margin: .75rem; } .xl\:m-4 { margin: 1rem; } .xl\:m-6 { margin: 1.5rem; } .xl\:m-8 { margin: 2rem; } .xl\:m-auto { margin: auto; } .xl\:m-px { margin: 1px; } .xl\:my-0 { margin-top: 0; margin-bottom: 0; } .xl\:mx-0 { margin-left: 0; margin-right: 0; } .xl\:my-1 { margin-top: .25rem; margin-bottom: .25rem; } .xl\:mx-1 { margin-left: .25rem; margin-right: .25rem; } .xl\:my-2 { margin-top: .5rem; margin-bottom: .5rem; } .xl\:mx-2 { margin-left: .5rem; margin-right: .5rem; } .xl\:my-3 { margin-top: .75rem; margin-bottom: .75rem; } .xl\:mx-3 { margin-left: .75rem; margin-right: .75rem; } .xl\:my-4 { margin-top: 1rem; margin-bottom: 1rem; } .xl\:mx-4 { margin-left: 1rem; margin-right: 1rem; } .xl\:my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; } .xl\:mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; } .xl\:my-8 { margin-top: 2rem; margin-bottom: 2rem; } .xl\:mx-8 { margin-left: 2rem; margin-right: 2rem; } .xl\:my-auto { margin-top: auto; margin-bottom: auto; } .xl\:mx-auto { margin-left: auto; margin-right: auto; } .xl\:my-px { margin-top: 1px; margin-bottom: 1px; } .xl\:mx-px { margin-left: 1px; margin-right: 1px; } .xl\:mt-0 { margin-top: 0; } .xl\:mr-0 { margin-right: 0; } .xl\:mb-0 { margin-bottom: 0; } .xl\:ml-0 { margin-left: 0; } .xl\:mt-1 { margin-top: .25rem; } .xl\:mr-1 { margin-right: .25rem; } .xl\:mb-1 { margin-bottom: .25rem; } .xl\:ml-1 { margin-left: .25rem; } .xl\:mt-2 { margin-top: .5rem; } .xl\:mr-2 { margin-right: .5rem; } .xl\:mb-2 { margin-bottom: .5rem; } .xl\:ml-2 { margin-left: .5rem; } .xl\:mt-3 { margin-top: .75rem; } .xl\:mr-3 { margin-right: .75rem; } .xl\:mb-3 { margin-bottom: .75rem; } .xl\:ml-3 { margin-left: .75rem; } .xl\:mt-4 { margin-top: 1rem; } .xl\:mr-4 { margin-right: 1rem; } .xl\:mb-4 { margin-bottom: 1rem; } .xl\:ml-4 { margin-left: 1rem; } .xl\:mt-6 { margin-top: 1.5rem; } .xl\:mr-6 { margin-right: 1.5rem; } .xl\:mb-6 { margin-bottom: 1.5rem; } .xl\:ml-6 { margin-left: 1.5rem; } .xl\:mt-8 { margin-top: 2rem; } .xl\:mr-8 { margin-right: 2rem; } .xl\:mb-8 { margin-bottom: 2rem; } .xl\:ml-8 { margin-left: 2rem; } .xl\:mt-auto { margin-top: auto; } .xl\:mr-auto { margin-right: auto; } .xl\:mb-auto { margin-bottom: auto; } .xl\:ml-auto { margin-left: auto; } .xl\:mt-px { margin-top: 1px; } .xl\:mr-px { margin-right: 1px; } .xl\:mb-px { margin-bottom: 1px; } .xl\:ml-px { margin-left: 1px; } .xl\:max-h-full { max-height: 100%; } .xl\:max-h-screen { max-height: 100vh; } .xl\:max-w-xs { max-width: 20rem; } .xl\:max-w-sm { max-width: 30rem; } .xl\:max-w-md { max-width: 40rem; } .xl\:max-w-lg { max-width: 50rem; } .xl\:max-w-xl { max-width: 60rem; } .xl\:max-w-2xl { max-width: 70rem; } .xl\:max-w-3xl { max-width: 80rem; } .xl\:max-w-4xl { max-width: 90rem; } .xl\:max-w-5xl { max-width: 100rem; } .xl\:max-w-full { max-width: 100%; } .xl\:min-h-0 { min-height: 0; } .xl\:min-h-full { min-height: 100%; } .xl\:min-h-screen { min-height: 100vh; } .xl\:min-w-0 { min-width: 0; } .xl\:min-w-full { min-width: 100%; } .xl\:-m-0 { margin: 0; } .xl\:-m-1 { margin: -0.25rem; } .xl\:-m-2 { margin: -0.5rem; } .xl\:-m-3 { margin: -0.75rem; } .xl\:-m-4 { margin: -1rem; } .xl\:-m-6 { margin: -1.5rem; } .xl\:-m-8 { margin: -2rem; } .xl\:-m-px { margin: -1px; } .xl\:-my-0 { margin-top: 0; margin-bottom: 0; } .xl\:-mx-0 { margin-left: 0; margin-right: 0; } .xl\:-my-1 { margin-top: -0.25rem; margin-bottom: -0.25rem; } .xl\:-mx-1 { margin-left: -0.25rem; margin-right: -0.25rem; } .xl\:-my-2 { margin-top: -0.5rem; margin-bottom: -0.5rem; } .xl\:-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; } .xl\:-my-3 { margin-top: -0.75rem; margin-bottom: -0.75rem; } .xl\:-mx-3 { margin-left: -0.75rem; margin-right: -0.75rem; } .xl\:-my-4 { margin-top: -1rem; margin-bottom: -1rem; } .xl\:-mx-4 { margin-left: -1rem; margin-right: -1rem; } .xl\:-my-6 { margin-top: -1.5rem; margin-bottom: -1.5rem; } .xl\:-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; } .xl\:-my-8 { margin-top: -2rem; margin-bottom: -2rem; } .xl\:-mx-8 { margin-left: -2rem; margin-right: -2rem; } .xl\:-my-px { margin-top: -1px; margin-bottom: -1px; } .xl\:-mx-px { margin-left: -1px; margin-right: -1px; } .xl\:-mt-0 { margin-top: 0; } .xl\:-mr-0 { margin-right: 0; } .xl\:-mb-0 { margin-bottom: 0; } .xl\:-ml-0 { margin-left: 0; } .xl\:-mt-1 { margin-top: -0.25rem; } .xl\:-mr-1 { margin-right: -0.25rem; } .xl\:-mb-1 { margin-bottom: -0.25rem; } .xl\:-ml-1 { margin-left: -0.25rem; } .xl\:-mt-2 { margin-top: -0.5rem; } .xl\:-mr-2 { margin-right: -0.5rem; } .xl\:-mb-2 { margin-bottom: -0.5rem; } .xl\:-ml-2 { margin-left: -0.5rem; } .xl\:-mt-3 { margin-top: -0.75rem; } .xl\:-mr-3 { margin-right: -0.75rem; } .xl\:-mb-3 { margin-bottom: -0.75rem; } .xl\:-ml-3 { margin-left: -0.75rem; } .xl\:-mt-4 { margin-top: -1rem; } .xl\:-mr-4 { margin-right: -1rem; } .xl\:-mb-4 { margin-bottom: -1rem; } .xl\:-ml-4 { margin-left: -1rem; } .xl\:-mt-6 { margin-top: -1.5rem; } .xl\:-mr-6 { margin-right: -1.5rem; } .xl\:-mb-6 { margin-bottom: -1.5rem; } .xl\:-ml-6 { margin-left: -1.5rem; } .xl\:-mt-8 { margin-top: -2rem; } .xl\:-mr-8 { margin-right: -2rem; } .xl\:-mb-8 { margin-bottom: -2rem; } .xl\:-ml-8 { margin-left: -2rem; } .xl\:-mt-px { margin-top: -1px; } .xl\:-mr-px { margin-right: -1px; } .xl\:-mb-px { margin-bottom: -1px; } .xl\:-ml-px { margin-left: -1px; } .xl\:opacity-0 { opacity: 0; } .xl\:opacity-25 { opacity: .25; } .xl\:opacity-50 { opacity: .5; } .xl\:opacity-75 { opacity: .75; } .xl\:opacity-100 { opacity: 1; } .xl\:overflow-auto { overflow: auto; } .xl\:overflow-hidden { overflow: hidden; } .xl\:overflow-visible { overflow: visible; } .xl\:overflow-scroll { overflow: scroll; } .xl\:overflow-x-auto { overflow-x: auto; } .xl\:overflow-y-auto { overflow-y: auto; } .xl\:overflow-x-scroll { overflow-x: scroll; } .xl\:overflow-y-scroll { overflow-y: scroll; } .xl\:scrolling-touch { -webkit-overflow-scrolling: touch; } .xl\:scrolling-auto { -webkit-overflow-scrolling: auto; } .xl\:p-0 { padding: 0; } .xl\:p-1 { padding: .25rem; } .xl\:p-2 { padding: .5rem; } .xl\:p-3 { padding: .75rem; } .xl\:p-4 { padding: 1rem; } .xl\:p-6 { padding: 1.5rem; } .xl\:p-8 { padding: 2rem; } .xl\:p-px { padding: 1px; } .xl\:py-0 { padding-top: 0; padding-bottom: 0; } .xl\:px-0 { padding-left: 0; padding-right: 0; } .xl\:py-1 { padding-top: .25rem; padding-bottom: .25rem; } .xl\:px-1 { padding-left: .25rem; padding-right: .25rem; } .xl\:py-2 { padding-top: .5rem; padding-bottom: .5rem; } .xl\:px-2 { padding-left: .5rem; padding-right: .5rem; } .xl\:py-3 { padding-top: .75rem; padding-bottom: .75rem; } .xl\:px-3 { padding-left: .75rem; padding-right: .75rem; } .xl\:py-4 { padding-top: 1rem; padding-bottom: 1rem; } .xl\:px-4 { padding-left: 1rem; padding-right: 1rem; } .xl\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .xl\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .xl\:py-8 { padding-top: 2rem; padding-bottom: 2rem; } .xl\:px-8 { padding-left: 2rem; padding-right: 2rem; } .xl\:py-px { padding-top: 1px; padding-bottom: 1px; } .xl\:px-px { padding-left: 1px; padding-right: 1px; } .xl\:pt-0 { padding-top: 0; } .xl\:pr-0 { padding-right: 0; } .xl\:pb-0 { padding-bottom: 0; } .xl\:pl-0 { padding-left: 0; } .xl\:pt-1 { padding-top: .25rem; } .xl\:pr-1 { padding-right: .25rem; } .xl\:pb-1 { padding-bottom: .25rem; } .xl\:pl-1 { padding-left: .25rem; } .xl\:pt-2 { padding-top: .5rem; } .xl\:pr-2 { padding-right: .5rem; } .xl\:pb-2 { padding-bottom: .5rem; } .xl\:pl-2 { padding-left: .5rem; } .xl\:pt-3 { padding-top: .75rem; } .xl\:pr-3 { padding-right: .75rem; } .xl\:pb-3 { padding-bottom: .75rem; } .xl\:pl-3 { padding-left: .75rem; } .xl\:pt-4 { padding-top: 1rem; } .xl\:pr-4 { padding-right: 1rem; } .xl\:pb-4 { padding-bottom: 1rem; } .xl\:pl-4 { padding-left: 1rem; } .xl\:pt-6 { padding-top: 1.5rem; } .xl\:pr-6 { padding-right: 1.5rem; } .xl\:pb-6 { padding-bottom: 1.5rem; } .xl\:pl-6 { padding-left: 1.5rem; } .xl\:pt-8 { padding-top: 2rem; } .xl\:pr-8 { padding-right: 2rem; } .xl\:pb-8 { padding-bottom: 2rem; } .xl\:pl-8 { padding-left: 2rem; } .xl\:pt-px { padding-top: 1px; } .xl\:pr-px { padding-right: 1px; } .xl\:pb-px { padding-bottom: 1px; } .xl\:pl-px { padding-left: 1px; } .xl\:pointer-events-none { pointer-events: none; } .xl\:pointer-events-auto { pointer-events: auto; } .xl\:static { position: static; } .xl\:fixed { position: fixed; } .xl\:absolute { position: absolute; } .xl\:relative { position: relative; } .xl\:sticky { position: -webkit-sticky; position: sticky; } .xl\:pin-none { top: auto; right: auto; bottom: auto; left: auto; } .xl\:pin { top: 0; right: 0; bottom: 0; left: 0; } .xl\:pin-y { top: 0; bottom: 0; } .xl\:pin-x { right: 0; left: 0; } .xl\:pin-t { top: 0; } .xl\:pin-r { right: 0; } .xl\:pin-b { bottom: 0; } .xl\:pin-l { left: 0; } .xl\:resize-none { resize: none; } .xl\:resize-y { resize: vertical; } .xl\:resize-x { resize: horizontal; } .xl\:resize { resize: both; } .xl\:shadow { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1); } .xl\:shadow-md { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .12), 0 2px 4px 0 rgba(0, 0, 0, .08); } .xl\:shadow-lg { box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .11), 0 5px 15px 0 rgba(0, 0, 0, .08); } .xl\:shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .06); } .xl\:shadow-none { box-shadow: none; } .xl\:text-left { text-align: left; } .xl\:text-center { text-align: center; } .xl\:text-right { text-align: right; } .xl\:text-justify { text-align: justify; } .xl\:text-transparent { color: transparent; } .xl\:text-black { color: #22292f; } .xl\:text-grey-darkest { color: #3d4852; } .xl\:text-grey-darker { color: #606f7b; } .xl\:text-grey-dark { color: #8795a1; } .xl\:text-grey { color: #b8c2cc; } .xl\:text-grey-light { color: #dae1e7; } .xl\:text-grey-lighter { color: #f1f5f8; } .xl\:text-grey-lightest { color: #f8fafc; } .xl\:text-white { color: #fff; } .xl\:text-red-darkest { color: #3b0d0c; } .xl\:text-red-darker { color: #621b18; } .xl\:text-red-dark { color: #cc1f1a; } .xl\:text-red { color: #e3342f; } .xl\:text-red-light { color: #ef5753; } .xl\:text-red-lighter { color: #f9acaa; } .xl\:text-red-lightest { color: #fcebea; } .xl\:text-orange-darkest { color: #462a16; } .xl\:text-orange-darker { color: #613b1f; } .xl\:text-orange-dark { color: #de751f; } .xl\:text-orange { color: #f6993f; } .xl\:text-orange-light { color: #faad63; } .xl\:text-orange-lighter { color: #fcd9b6; } .xl\:text-orange-lightest { color: #fff5eb; } .xl\:text-yellow-darkest { color: #453411; } .xl\:text-yellow-darker { color: #684f1d; } .xl\:text-yellow-dark { color: #f2d024; } .xl\:text-yellow { color: #ffed4a; } .xl\:text-yellow-light { color: #fff382; } .xl\:text-yellow-lighter { color: #fff9c2; } .xl\:text-yellow-lightest { color: #fcfbeb; } .xl\:text-green-darkest { color: #0f2f21; } .xl\:text-green-darker { color: #1a4731; } .xl\:text-green-dark { color: #1f9d55; } .xl\:text-green { color: #38c172; } .xl\:text-green-light { color: #51d88a; } .xl\:text-green-lighter { color: #a2f5bf; } .xl\:text-green-lightest { color: #e3fcec; } .xl\:text-teal-darkest { color: #0d3331; } .xl\:text-teal-darker { color: #20504f; } .xl\:text-teal-dark { color: #38a89d; } .xl\:text-teal { color: #4dc0b5; } .xl\:text-teal-light { color: #64d5ca; } .xl\:text-teal-lighter { color: #a0f0ed; } .xl\:text-teal-lightest { color: #e8fffe; } .xl\:text-blue-darkest { color: #12283a; } .xl\:text-blue-darker { color: #1c3d5a; } .xl\:text-blue-dark { color: #2779bd; } .xl\:text-blue { color: #3490dc; } .xl\:text-blue-light { color: #6cb2eb; } .xl\:text-blue-lighter { color: #bcdefa; } .xl\:text-blue-lightest { color: #eff8ff; } .xl\:text-indigo-darkest { color: #191e38; } .xl\:text-indigo-darker { color: #2f365f; } .xl\:text-indigo-dark { color: #5661b3; } .xl\:text-indigo { color: #6574cd; } .xl\:text-indigo-light { color: #7886d7; } .xl\:text-indigo-lighter { color: #b2b7ff; } .xl\:text-indigo-lightest { color: #e6e8ff; } .xl\:text-purple-darkest { color: #21183c; } .xl\:text-purple-darker { color: #382b5f; } .xl\:text-purple-dark { color: #794acf; } .xl\:text-purple { color: #9561e2; } .xl\:text-purple-light { color: #a779e9; } .xl\:text-purple-lighter { color: #d6bbfc; } .xl\:text-purple-lightest { color: #f3ebff; } .xl\:text-pink-darkest { color: #451225; } .xl\:text-pink-darker { color: #6f213f; } .xl\:text-pink-dark { color: #eb5286; } .xl\:text-pink { color: #f66d9b; } .xl\:text-pink-light { color: #fa7ea8; } .xl\:text-pink-lighter { color: #ffbbca; } .xl\:text-pink-lightest { color: #ffebef; } .xl\:hover\:text-transparent:hover { color: transparent; } .xl\:hover\:text-black:hover { color: #22292f; } .xl\:hover\:text-grey-darkest:hover { color: #3d4852; } .xl\:hover\:text-grey-darker:hover { color: #606f7b; } .xl\:hover\:text-grey-dark:hover { color: #8795a1; } .xl\:hover\:text-grey:hover { color: #b8c2cc; } .xl\:hover\:text-grey-light:hover { color: #dae1e7; } .xl\:hover\:text-grey-lighter:hover { color: #f1f5f8; } .xl\:hover\:text-grey-lightest:hover { color: #f8fafc; } .xl\:hover\:text-white:hover { color: #fff; } .xl\:hover\:text-red-darkest:hover { color: #3b0d0c; } .xl\:hover\:text-red-darker:hover { color: #621b18; } .xl\:hover\:text-red-dark:hover { color: #cc1f1a; } .xl\:hover\:text-red:hover { color: #e3342f; } .xl\:hover\:text-red-light:hover { color: #ef5753; } .xl\:hover\:text-red-lighter:hover { color: #f9acaa; } .xl\:hover\:text-red-lightest:hover { color: #fcebea; } .xl\:hover\:text-orange-darkest:hover { color: #462a16; } .xl\:hover\:text-orange-darker:hover { color: #613b1f; } .xl\:hover\:text-orange-dark:hover { color: #de751f; } .xl\:hover\:text-orange:hover { color: #f6993f; } .xl\:hover\:text-orange-light:hover { color: #faad63; } .xl\:hover\:text-orange-lighter:hover { color: #fcd9b6; } .xl\:hover\:text-orange-lightest:hover { color: #fff5eb; } .xl\:hover\:text-yellow-darkest:hover { color: #453411; } .xl\:hover\:text-yellow-darker:hover { color: #684f1d; } .xl\:hover\:text-yellow-dark:hover { color: #f2d024; } .xl\:hover\:text-yellow:hover { color: #ffed4a; } .xl\:hover\:text-yellow-light:hover { color: #fff382; } .xl\:hover\:text-yellow-lighter:hover { color: #fff9c2; } .xl\:hover\:text-yellow-lightest:hover { color: #fcfbeb; } .xl\:hover\:text-green-darkest:hover { color: #0f2f21; } .xl\:hover\:text-green-darker:hover { color: #1a4731; } .xl\:hover\:text-green-dark:hover { color: #1f9d55; } .xl\:hover\:text-green:hover { color: #38c172; } .xl\:hover\:text-green-light:hover { color: #51d88a; } .xl\:hover\:text-green-lighter:hover { color: #a2f5bf; } .xl\:hover\:text-green-lightest:hover { color: #e3fcec; } .xl\:hover\:text-teal-darkest:hover { color: #0d3331; } .xl\:hover\:text-teal-darker:hover { color: #20504f; } .xl\:hover\:text-teal-dark:hover { color: #38a89d; } .xl\:hover\:text-teal:hover { color: #4dc0b5; } .xl\:hover\:text-teal-light:hover { color: #64d5ca; } .xl\:hover\:text-teal-lighter:hover { color: #a0f0ed; } .xl\:hover\:text-teal-lightest:hover { color: #e8fffe; } .xl\:hover\:text-blue-darkest:hover { color: #12283a; } .xl\:hover\:text-blue-darker:hover { color: #1c3d5a; } .xl\:hover\:text-blue-dark:hover { color: #2779bd; } .xl\:hover\:text-blue:hover { color: #3490dc; } .xl\:hover\:text-blue-light:hover { color: #6cb2eb; } .xl\:hover\:text-blue-lighter:hover { color: #bcdefa; } .xl\:hover\:text-blue-lightest:hover { color: #eff8ff; } .xl\:hover\:text-indigo-darkest:hover { color: #191e38; } .xl\:hover\:text-indigo-darker:hover { color: #2f365f; } .xl\:hover\:text-indigo-dark:hover { color: #5661b3; } .xl\:hover\:text-indigo:hover { color: #6574cd; } .xl\:hover\:text-indigo-light:hover { color: #7886d7; } .xl\:hover\:text-indigo-lighter:hover { color: #b2b7ff; } .xl\:hover\:text-indigo-lightest:hover { color: #e6e8ff; } .xl\:hover\:text-purple-darkest:hover { color: #21183c; } .xl\:hover\:text-purple-darker:hover { color: #382b5f; } .xl\:hover\:text-purple-dark:hover { color: #794acf; } .xl\:hover\:text-purple:hover { color: #9561e2; } .xl\:hover\:text-purple-light:hover { color: #a779e9; } .xl\:hover\:text-purple-lighter:hover { color: #d6bbfc; } .xl\:hover\:text-purple-lightest:hover { color: #f3ebff; } .xl\:hover\:text-pink-darkest:hover { color: #451225; } .xl\:hover\:text-pink-darker:hover { color: #6f213f; } .xl\:hover\:text-pink-dark:hover { color: #eb5286; } .xl\:hover\:text-pink:hover { color: #f66d9b; } .xl\:hover\:text-pink-light:hover { color: #fa7ea8; } .xl\:hover\:text-pink-lighter:hover { color: #ffbbca; } .xl\:hover\:text-pink-lightest:hover { color: #ffebef; } .xl\:text-xs { font-size: .75rem; } .xl\:text-sm { font-size: .875rem; } .xl\:text-base { font-size: 1rem; } .xl\:text-lg { font-size: 1.125rem; } .xl\:text-xl { font-size: 1.25rem; } .xl\:text-2xl { font-size: 1.5rem; } .xl\:text-3xl { font-size: 1.875rem; } .xl\:text-4xl { font-size: 2.25rem; } .xl\:text-5xl { font-size: 3rem; } .xl\:italic { font-style: italic; } .xl\:roman { font-style: normal; } .xl\:uppercase { text-transform: uppercase; } .xl\:lowercase { text-transform: lowercase; } .xl\:capitalize { text-transform: capitalize; } .xl\:normal-case { text-transform: none; } .xl\:underline { text-decoration: underline; } .xl\:line-through { text-decoration: line-through; } .xl\:no-underline { text-decoration: none; } .xl\:antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .xl\:subpixel-antialiased { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .xl\:hover\:italic:hover { font-style: italic; } .xl\:hover\:roman:hover { font-style: normal; } .xl\:hover\:uppercase:hover { text-transform: uppercase; } .xl\:hover\:lowercase:hover { text-transform: lowercase; } .xl\:hover\:capitalize:hover { text-transform: capitalize; } .xl\:hover\:normal-case:hover { text-transform: none; } .xl\:hover\:underline:hover { text-decoration: underline; } .xl\:hover\:line-through:hover { text-decoration: line-through; } .xl\:hover\:no-underline:hover { text-decoration: none; } .xl\:hover\:antialiased:hover { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .xl\:hover\:subpixel-antialiased:hover { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .xl\:tracking-tight { letter-spacing: -0.05em; } .xl\:tracking-normal { letter-spacing: 0; } .xl\:tracking-wide { letter-spacing: .05em; } .xl\:select-none { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .xl\:select-text { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; } .xl\:align-baseline { vertical-align: baseline; } .xl\:align-top { vertical-align: top; } .xl\:align-middle { vertical-align: middle; } .xl\:align-bottom { vertical-align: bottom; } .xl\:align-text-top { vertical-align: text-top; } .xl\:align-text-bottom { vertical-align: text-bottom; } .xl\:visible { visibility: visible; } .xl\:invisible { visibility: hidden; } .xl\:whitespace-normal { white-space: normal; } .xl\:whitespace-no-wrap { white-space: nowrap; } .xl\:whitespace-pre { white-space: pre; } .xl\:whitespace-pre-line { white-space: pre-line; } .xl\:whitespace-pre-wrap { white-space: pre-wrap; } .xl\:break-words { word-wrap: break-word; } .xl\:break-normal { word-wrap: normal; } .xl\:truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xl\:w-1 { width: .25rem; } .xl\:w-2 { width: .5rem; } .xl\:w-3 { width: .75rem; } .xl\:w-4 { width: 1rem; } .xl\:w-6 { width: 1.5rem; } .xl\:w-8 { width: 2rem; } .xl\:w-10 { width: 2.5rem; } .xl\:w-12 { width: 3rem; } .xl\:w-16 { width: 4rem; } .xl\:w-24 { width: 6rem; } .xl\:w-32 { width: 8rem; } .xl\:w-48 { width: 12rem; } .xl\:w-64 { width: 16rem; } .xl\:w-auto { width: auto; } .xl\:w-px { width: 1px; } .xl\:w-1\/2 { width: 50%; } .xl\:w-1\/3 { width: 33.33333%; } .xl\:w-2\/3 { width: 66.66667%; } .xl\:w-1\/4 { width: 25%; } .xl\:w-3\/4 { width: 75%; } .xl\:w-1\/5 { width: 20%; } .xl\:w-2\/5 { width: 40%; } .xl\:w-3\/5 { width: 60%; } .xl\:w-4\/5 { width: 80%; } .xl\:w-1\/6 { width: 16.66667%; } .xl\:w-5\/6 { width: 83.33333%; } .xl\:w-full { width: 100%; } .xl\:w-screen { width: 100vw; } .xl\:z-0 { z-index: 0; } .xl\:z-10 { z-index: 10; } .xl\:z-20 { z-index: 20; } .xl\:z-30 { z-index: 30; } .xl\:z-40 { z-index: 40; } .xl\:z-50 { z-index: 50; } .xl\:z-auto { z-index: auto; } } /*# sourceMappingURL=tailwind.css.map */
using System; using Server.Commands; using Server.Network; namespace Server.Gumps { public class SQGump : Gump { public SQGump(Mobile owner) : base(50, 50) { //---------------------------------------------------------------------------------------------------- this.AddPage(0); this.AddImageTiled(54, 33, 369, 400, 2624); this.AddAlphaRegion(54, 33, 369, 400); this.AddImageTiled(416, 39, 44, 389, 203); //--------------------------------------Window size bar-------------------------------------------- this.AddImage(97, 49, 9005); this.AddImageTiled(58, 39, 29, 390, 10460); this.AddImageTiled(412, 37, 31, 389, 10460); this.AddLabel(140, 60, 1153, "Quest Offer"); this.AddTextEntry(155, 110, 200, 20, 1163, 0, @"La Insep Ohm"); this.AddTextEntry(107, 130, 200, 20, 1163, 0, @"Description"); //AddLabel(175, 125, 200, 20, 1163, 0,"La Insep Ohm"); //AddLabel(85, 135, 200, 20, 1163, 0, "Description"); this.AddHtml(107, 155, 300, 230, "<BODY>" + //----------------------/----------------------------------------------/ "<BASEFONT COLOR=WHITE>Repeating the mantra, you gradually enter a state of enlightened meditation.<br><br>As you contemplate your worthiness, an image of the Book of Circles comes into focus.<br><br>Perhaps you are ready for La Insep Om?<br>" + "</BODY>", false, true); this.AddImage(430, 9, 10441); this.AddImageTiled(40, 38, 17, 391, 9263); this.AddImage(6, 25, 10421); this.AddImage(34, 12, 10420); this.AddImageTiled(94, 25, 342, 15, 10304); this.AddImageTiled(40, 427, 415, 16, 10304); this.AddImage(-10, 314, 10402); this.AddImage(56, 150, 10411); this.AddImage(136, 84, 96); this.AddButton(315, 380, 12018, 12019, 1, GumpButtonType.Reply, 1); this.AddButton(114, 380, 12000, 12001, 0, GumpButtonType.Reply, 0); } public static void Initialize() { CommandSystem.Register("SQGump", AccessLevel.GameMaster, new CommandEventHandler(SQGump_OnCommand)); } public override void OnResponse(NetState state, RelayInfo info) { Mobile from = state.Mobile; switch (info.ButtonID) { case 0: { from.SendGump(new SQ1Gump(from)); from.CloseGump(typeof(SQGump)); break; } case 1: { from.SendLocalizedMessage(1112683); from.CloseGump(typeof(SQGump)); break; } } } private static void SQGump_OnCommand(CommandEventArgs e) { e.Mobile.SendGump(new SQGump(e.Mobile)); } } }
/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #include "common/scummsys.h" #if !defined(DISABLE_DEFAULT_EVENTMANAGER) #include "common/system.h" #include "common/config-manager.h" #include "common/translation.h" #include "backends/events/default/default-events.h" #include "backends/keymapper/keymapper.h" #include "backends/keymapper/remap-dialog.h" #include "backends/vkeybd/virtual-keyboard.h" #include "engines/engine.h" #include "gui/message.h" DefaultEventManager::DefaultEventManager(Common::EventSource *boss) : _buttonState(0), _modifierState(0), _shouldQuit(false), _shouldRTL(false), _confirmExitDialogActive(false) { assert(boss); _dispatcher.registerSource(boss, false); _dispatcher.registerSource(&_artificialEventSource, false); _dispatcher.registerObserver(this, kEventManPriority, false); // Reset key repeat _currentKeyDown.keycode = 0; _currentKeyDown.ascii = 0; _currentKeyDown.flags = 0; _keyRepeatTime = 0; #ifdef ENABLE_VKEYBD _vk = new Common::VirtualKeyboard(); #endif #ifdef ENABLE_KEYMAPPER _keymapper = new Common::Keymapper(this); // EventDispatcher will automatically free the keymapper _dispatcher.registerMapper(_keymapper); _remap = false; #else _dispatcher.registerMapper(new Common::DefaultEventMapper()); #endif } DefaultEventManager::~DefaultEventManager() { #ifdef ENABLE_VKEYBD delete _vk; #endif } void DefaultEventManager::init() { #ifdef ENABLE_VKEYBD if (ConfMan.hasKey("vkeybd_pack_name")) { _vk->loadKeyboardPack(ConfMan.get("vkeybd_pack_name")); } else { _vk->loadKeyboardPack("vkeybd_default"); } #endif } bool DefaultEventManager::pollEvent(Common::Event &event) { // Skip recording of these events uint32 time = g_system->getMillis(true); bool result = false; _dispatcher.dispatch(); if (!_eventQueue.empty()) { event = _eventQueue.pop(); result = true; } if (result) { event.synthetic = false; switch (event.type) { case Common::EVENT_KEYDOWN: _modifierState = event.kbd.flags; // init continuous event stream _currentKeyDown.ascii = event.kbd.ascii; _currentKeyDown.keycode = event.kbd.keycode; _currentKeyDown.flags = event.kbd.flags; _keyRepeatTime = time + kKeyRepeatInitialDelay; if (event.kbd.keycode == Common::KEYCODE_BACKSPACE) { // WORKAROUND: Some engines incorrectly attempt to use the // ascii value instead of the keycode to detect the backspace // key (a non-portable behavior). This fails at least on // Mac OS X, possibly also on other systems. // As a workaround, we force the ascii value for backspace // key pressed. A better fix would be for engines to stop // making invalid assumptions about ascii values. event.kbd.ascii = Common::KEYCODE_BACKSPACE; _currentKeyDown.ascii = Common::KEYCODE_BACKSPACE; } break; case Common::EVENT_KEYUP: _modifierState = event.kbd.flags; if (event.kbd.keycode == _currentKeyDown.keycode) { // Only stop firing events if it's the current key _currentKeyDown.keycode = 0; } break; case Common::EVENT_MOUSEMOVE: _mousePos = event.mouse; break; case Common::EVENT_LBUTTONDOWN: _mousePos = event.mouse; _buttonState |= LBUTTON; break; case Common::EVENT_LBUTTONUP: _mousePos = event.mouse; _buttonState &= ~LBUTTON; break; case Common::EVENT_RBUTTONDOWN: _mousePos = event.mouse; _buttonState |= RBUTTON; break; case Common::EVENT_RBUTTONUP: _mousePos = event.mouse; _buttonState &= ~RBUTTON; break; case Common::EVENT_MAINMENU: if (g_engine && !g_engine->isPaused()) g_engine->openMainMenuDialog(); if (_shouldQuit) event.type = Common::EVENT_QUIT; else if (_shouldRTL) event.type = Common::EVENT_RTL; break; #ifdef ENABLE_VKEYBD case Common::EVENT_VIRTUAL_KEYBOARD: if (_vk->isDisplaying()) { _vk->close(true); } else { if (g_engine) g_engine->pauseEngine(true); _vk->show(); if (g_engine) g_engine->pauseEngine(false); result = false; } break; #endif #ifdef ENABLE_KEYMAPPER case Common::EVENT_KEYMAPPER_REMAP: if (!_remap) { _remap = true; Common::RemapDialog _remapDialog; if (g_engine) g_engine->pauseEngine(true); _remapDialog.runModal(); if (g_engine) g_engine->pauseEngine(false); _remap = false; } break; #endif case Common::EVENT_RTL: if (ConfMan.getBool("confirm_exit")) { if (g_engine) g_engine->pauseEngine(true); GUI::MessageDialog alert(_("Do you really want to return to the Launcher?"), _("Launcher"), _("Cancel")); result = _shouldRTL = (alert.runModal() == GUI::kMessageOK); if (g_engine) g_engine->pauseEngine(false); } else _shouldRTL = true; break; case Common::EVENT_MUTE: if (g_engine) g_engine->flipMute(); break; case Common::EVENT_QUIT: if (ConfMan.getBool("confirm_exit")) { if (_confirmExitDialogActive) { result = false; break; } _confirmExitDialogActive = true; if (g_engine) g_engine->pauseEngine(true); GUI::MessageDialog alert(_("Do you really want to quit?"), _("Quit"), _("Cancel")); result = _shouldQuit = (alert.runModal() == GUI::kMessageOK); if (g_engine) g_engine->pauseEngine(false); _confirmExitDialogActive = false; } else _shouldQuit = true; break; default: break; } } else { // Check if event should be sent again (keydown) if (_currentKeyDown.keycode != 0 && _keyRepeatTime < time) { // fire event event.type = Common::EVENT_KEYDOWN; event.synthetic = true; event.kbd.ascii = _currentKeyDown.ascii; event.kbd.keycode = (Common::KeyCode)_currentKeyDown.keycode; event.kbd.flags = _currentKeyDown.flags; _keyRepeatTime = time + kKeyRepeatSustainDelay; result = true; } } return result; } void DefaultEventManager::pushEvent(const Common::Event &event) { // If already received an EVENT_QUIT, don't add another one if (event.type == Common::EVENT_QUIT) { if (!_shouldQuit) _artificialEventSource.addEvent(event); } else _artificialEventSource.addEvent(event); } #endif // !defined(DISABLE_DEFAULT_EVENTMANAGER)
using System; using Server.Prompts; namespace Server.Multis { public class RenameBoatPrompt : Prompt { private readonly BaseBoat m_Boat; public RenameBoatPrompt(BaseBoat boat) { this.m_Boat = boat; } public override void OnResponse(Mobile from, string text) { this.m_Boat.EndRename(from, text); } } }
/* ############################################################################### # # Temboo CoAP Edge Device library # # Copyright (C) 2015, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, # either express or implied. See the License for the specific # language governing permissions and limitations under the License. # ############################################################################### */ #ifndef COAPMSG_H_ #define COAPMSG_H_ /* Byte 0 Byte 1 Byte 2 Byte 3 MSB LSB MSB LSB MSB LSB MSB LSB 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ |Ver| T | TKL | | Code | | MsgID MSB | | MsgID LSB | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | Token (if any, TKL bytes) ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Options (if any) ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |1 1 1 1 1 1 1 1| Payload (if any) ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ #define RESPONSE_CODE(class, detail) ((class << 5) + detail) class CoapMsg { public: enum Type { COAP_CONFIRMABLE = 0, COAP_NON_CONFIRMABLE = 1, COAP_ACK = 2, COAP_RESET = 3 }; enum Code { //REQUEST CODES COAP_EMPTY = 0, COAP_GET = 1, COAP_POST = 2, COAP_PUT = 3, COAP_DELETE = 4, //RESPONSE CODES COAP_CREATED = RESPONSE_CODE(2,1), COAP_DELETED = RESPONSE_CODE(2,2), COAP_VALID = RESPONSE_CODE(2,3), COAP_CHANGED = RESPONSE_CODE(2,4), COAP_CONTENT = RESPONSE_CODE(2,5), COAP_CONTINUE = RESPONSE_CODE(2,31), COAP_BAD_REQUEST = RESPONSE_CODE(4,0), COAP_UNAUTHORIZED = RESPONSE_CODE(4,1), COAP_BAD_OPTION = RESPONSE_CODE(4,2), COAP_FORBIDDEN = RESPONSE_CODE(4,3), COAP_NOT_FOUND = RESPONSE_CODE(4,4), COAP_METHOD_NOT_ALLOWED = RESPONSE_CODE(4,5), COAP_NOT_ACCEPTABLE = RESPONSE_CODE(4,6), COAP_REQUEST_ENTITY_INCOMPLETE = RESPONSE_CODE(4,8), COAP_PRECONDITION_FAILED = RESPONSE_CODE(4,12), COAP_REQUEST_ENTITY_TOO_LARGE = RESPONSE_CODE(4,13), COAP_UNSUPPORTED_CONTENT_FORMAT = RESPONSE_CODE(4,15), COAP_INTERNAL_SERVER_ERROR = RESPONSE_CODE(5,0), COAP_NOT_IMPLEMENTED = RESPONSE_CODE(5,1), COAP_BAD_GATEWAY = RESPONSE_CODE(5,2), COAP_SERVICE_UNAVAILABLE = RESPONSE_CODE(5,3), COAP_GATEWAY_TIMEOUT = RESPONSE_CODE(5,4), COAP_PROXYING_NOT_SUPPORTED = RESPONSE_CODE(5,5) }; enum Option { COAP_OPTION_IF_MATCH = 1, COAP_OPTION_URI_HOST = 3, COAP_OPTION_ETAG = 4, COAP_OPTION_IF_NONE_MATCH = 5, //TODO: COAP_OPTION_OBSERVE = 6, COAP_OPTION_URI_PORT = 7, COAP_OPTION_LOCATION_PATH = 8, COAP_OPTION_URI_PATH = 11, COAP_OPTION_CONTENT_FORMAT = 12, COAP_OPTION_MAX_AGE = 14, COAP_OPTION_URI_QUERY = 15, COAP_OPTION_ACCEPT = 17, COAP_OPTION_LOCATION_QUERY = 20, COAP_OPTION_BLOCK2 = 23, COAP_OPTION_BLOCK1 = 27, COAP_OPTION_SIZE2 = 28, COAP_OPTION_PROXY_URI = 35, COAP_OPTION_PROXY_SCHEME = 39, COAP_OPTION_SIZE1 = 60 }; enum Result { COAP_RESULT_SUCCESS = 0, // No error. COAP_RESULT_TOKEN_NULL, // Token length > 0 but NULL pointer given for token value. COAP_RESULT_TOKEN_LENGTH, // Illegal token length value (> 8). COAP_RESULT_PAYLOAD_NULL, // Payload length > 0 but NULL pointer given for payload value. COAP_RESULT_OPTION_UNKNOWN, // An unknown option code was specified. COAP_RESULT_OPTION_NULL, // Option length > 0 but NULL pointer given for option value. COAP_RESULT_OPTION_LENGTH, // Illegal length for option specified. COAP_RESULT_OPTION_NOT_FOUND,// The requested option was not found in the message. COAP_RESULT_BUFFER_OVERRUN, // Adding data would overrun the packet buffer COAP_RESULT_BUILD_ORDER, // Message build order incorrect. COAP_RESULT_INVALID_MSG, // Received message is malformed or invalid. COAP_RESULT_FAILURE // Operation failed or unspecified error }; CoapMsg(uint8_t* buffer, uint16_t bufferLen); CoapMsg(uint8_t* buffer, uint16_t bufferLen, uint16_t packetLen); void setType(CoapMsg::Type msgType); CoapMsg::Type getType(); void setId(uint16_t msgId); uint16_t getId(); void setCode(CoapMsg::Code code); CoapMsg::Code getCode(); uint16_t getHTTPStatus(); CoapMsg::Result setToken(const uint8_t* token, uint8_t tokenLen); uint8_t* getToken(); uint8_t getTokenLen(); CoapMsg::Result addOption(CoapMsg::Option optionCode, const uint8_t* optionValue, uint16_t optionLen); CoapMsg::Result getOption(CoapMsg::Option optionCode, uint16_t index, uint8_t*& optionValue, uint16_t& optionLen); uint16_t getOptionCount(CoapMsg::Option optionCode); uint16_t getOptionLen(CoapMsg::Option optionCode, uint16_t index); uint8_t* getOptionValue(CoapMsg::Option optionCode, uint16_t index); CoapMsg::Result setPayload(const uint8_t* payload, uint16_t payloadLen); uint8_t* getPayload(); uint16_t getPayloadLen(); uint8_t* getMsgBytes(); uint16_t getMsgLen(); bool isValid(); uint16_t getBlock1Size(); uint32_t getBlock1Num(); bool getBlock1More(); uint16_t getBlock2Size(); uint32_t getBlock2Num(); bool getBlock2More(); void convertToReset(); void convertToEmptyAck(); protected: uint8_t* m_buffer; uint16_t m_bufferLen; uint16_t m_msgLen; enum BuildState { BUILD_BEGIN, BUILD_HAVE_TOKEN, BUILD_HAVE_OPTIONS, BUILD_HAVE_PAYLOAD }; CoapMsg::BuildState m_buildState; uint16_t m_lastOptionCode; protected: CoapMsg::Result validateOption(CoapMsg::Option optionCode, const uint8_t* optionValue, uint16_t optionLen); CoapMsg::Result validateOptionValue(uint16_t minLen, uint16_t maxLen, const uint8_t* optionValue, uint16_t optionLen); uint8_t* decodeOption(uint8_t* buffer, uint16_t* optionDelta, uint16_t* optionLen); uint16_t getBlockSize(CoapMsg::Option optionCode); uint32_t getBlockNum(CoapMsg::Option optionCode); bool getBlockMore(CoapMsg::Option optionCode); }; #endif //TEMBOOCOAP_H_
<?php /** * @package AkeebaBackup * @copyright Copyright (c)2009-2013 Nicholas K. Dionysopoulos * @license GNU General Public License version 3, or later * * @since 1.3 */ defined('_JEXEC') or die(); JHtml::_('behavior.framework'); ?> <script language="javascript" type="text/javascript"> // Disable right-click var isNS = (navigator.appName == "Netscape") ? 1 : 0; if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP); function mischandler(){ return false; } function mousehandler(e){ var myevent = (isNS) ? e : event; var eventbutton = (isNS) ? myevent.which : myevent.button; if((eventbutton==2)||(eventbutton==3)) return false; } document.oncontextmenu = mischandler; document.onmousedown = mousehandler; document.onmouseup = mousehandler; // Disable CTRL-C, CTRL-V function onKeyDown() { return false; } document.onkeydown = onKeyDown; </script> <?php // -- Get the log's file name $tag = $this->tag; $logName = AEUtilLogger::logName($tag); // Load JFile class JLoader::import('joomla.filesystem.file'); @ob_end_clean(); if(!JFile::exists($logName)) { // Oops! The log doesn't exist! echo '<p>'.JText::_('LOG_ERROR_LOGFILENOTEXISTS').'</p>'; return; } else { // Allright, let's load and render it $fp = fopen( $logName, "rt" ); if ($fp === FALSE) { // Oops! The log isn't readable?! echo '<p>'.JText::_('LOG_ERROR_UNREADABLE').'</p>'; return; } while( !feof($fp) ) { $line = fgets( $fp ); if(!$line) return; $exploded = explode( "|", $line, 3 ); unset( $line ); switch( trim($exploded[0]) ) { case "ERROR": $fmtString = "<span style=\"color: red; font-weight: bold;\">["; break; case "WARNING": $fmtString = "<span style=\"color: #D8AD00; font-weight: bold;\">["; break; case "INFO": $fmtString = "<span style=\"color: black;\">["; break; case "DEBUG": $fmtString = "<span style=\"color: #666666; font-size: small;\">["; break; default: $fmtString = "<span style=\"font-size: small;\">["; break; } $fmtString .= $exploded[1] . "] " . htmlspecialchars($exploded[2]) . "</span><br/>\n"; unset( $exploded ); echo $fmtString; unset( $fmtString ); } } @ob_start();
// RUN: %clang_cc1 -fsyntax-only -verify %s template<typename T> class A; // expected-note 2 {{template parameter is declared here}} expected-note{{template is declared here}} // [temp.arg.type]p1 A<0> *a1; // expected-error{{template argument for template type parameter must be a type}} A<A> *a2; // expected-error{{use of class template 'A' requires template arguments}} A<int> *a3; A<int()> *a4; A<int(float)> *a5; A<A<int> > *a6; // Pass an overloaded function template: template<typename T> void function_tpl(T); A<function_tpl> a7; // expected-error{{template argument for template type parameter must be a type}} // Pass a qualified name: namespace ns { template<typename T> class B {}; // expected-note{{template is declared here}} } A<ns::B> a8; // expected-error{{use of class template 'ns::B' requires template arguments}} // [temp.arg.type]p2 void f() { class X { }; A<X> * a = 0; // expected-warning{{template argument uses local type 'X'}} } struct { int x; } Unnamed; // expected-note{{unnamed type used in template argument was declared here}} A<__typeof__(Unnamed)> *a9; // expected-warning{{template argument uses unnamed type}} template<typename T, unsigned N> struct Array { typedef struct { T x[N]; } type; }; template<typename T> struct A1 { }; A1<Array<int, 17>::type> ax; // FIXME: [temp.arg.type]p3. The check doesn't really belong here (it // belongs somewhere in the template instantiation section).
// 2006-06-16 Paolo Carlini <pcarlini@suse.de> // Copyright (C) 2006-2013 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License along // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. // 22.2.5.1.1 time_get members #include <locale> #include <sstream> #include <testsuite_hooks.h> // Check that the err argument is ignored by get_time. void test01() { using namespace std; bool test __attribute__((unused)) = true; typedef string::const_iterator iter_type; typedef time_get<char, iter_type> time_get_type; const ios_base::iostate goodbit = ios_base::goodbit; const ios_base::iostate eofbit = ios_base::eofbit; const ios_base::iostate failbit = ios_base::failbit; ios_base::iostate err = goodbit; const locale loc_c = locale::classic(); // Create "C" time objects const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0); tm tm0 = __gnu_test::test_tm(0, 0, 0, 0, 0, 0, 0, 0, 0); tm tm1 = __gnu_test::test_tm(0, 0, 0, 0, 0, 0, 0, 0, 0); istringstream iss; iss.imbue(locale(loc_c, new time_get_type)); // Iterator advanced, state, output. const time_get_type& tg = use_facet<time_get_type>(iss.getloc()); const string str0 = "1"; tg.get_time(str0.begin(), str0.end(), iss, err, &tm0); VERIFY( err == (failbit | eofbit) ); VERIFY( tm0.tm_sec == 0 ); VERIFY( tm0.tm_min == 0 ); VERIFY( tm0.tm_hour == 0 ); const string str1 = "12:00:00 "; iter_type end1 = tg.get_time(str1.begin(), str1.end(), iss, err, &tm1); VERIFY( err == (failbit | eofbit) ); VERIFY( tm1.tm_sec == time_sanity.tm_sec ); VERIFY( tm1.tm_min == time_sanity.tm_min ); VERIFY( tm1.tm_hour == time_sanity.tm_hour ); VERIFY( *end1 == ' ' ); } int main() { test01(); return 0; }
/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <linux/irq.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/io.h> #include <linux/interrupt.h> #include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/slimbus/slimbus.h> #include <linux/delay.h> #include <linux/kthread.h> #include <linux/clk.h> #include <linux/pm_runtime.h> #include <linux/of.h> #include <linux/of_slimbus.h> #include <linux/timer.h> #include <mach/sps.h> #include "slim-msm.h" #define NGD_SLIM_NAME "ngd_msm_ctrl" #define SLIM_LA_MGR 0xFF #define SLIM_ROOT_FREQ 24576000 #define LADDR_RETRY 5 #define NGD_BASE_V1(r) (((r) % 2) ? 0x800 : 0xA00) #define NGD_BASE_V2(r) (((r) % 2) ? 0x1000 : 0x2000) #define NGD_BASE(r, v) ((v) ? NGD_BASE_V2(r) : NGD_BASE_V1(r)) /* NGD (Non-ported Generic Device) registers */ enum ngd_reg { NGD_CFG = 0x0, NGD_STATUS = 0x4, NGD_RX_MSGQ_CFG = 0x8, NGD_INT_EN = 0x10, NGD_INT_STAT = 0x14, NGD_INT_CLR = 0x18, NGD_TX_MSG = 0x30, NGD_RX_MSG = 0x70, NGD_IE_STAT = 0xF0, NGD_VE_STAT = 0x100, }; enum ngd_msg_cfg { NGD_CFG_ENABLE = 1, NGD_CFG_RX_MSGQ_EN = 1 << 1, NGD_CFG_TX_MSGQ_EN = 1 << 2, }; enum ngd_intr { NGD_INT_RECFG_DONE = 1 << 24, NGD_INT_TX_NACKED_2 = 1 << 25, NGD_INT_MSG_BUF_CONTE = 1 << 26, NGD_INT_MSG_TX_INVAL = 1 << 27, NGD_INT_IE_VE_CHG = 1 << 28, NGD_INT_DEV_ERR = 1 << 29, NGD_INT_RX_MSG_RCVD = 1 << 30, NGD_INT_TX_MSG_SENT = 1 << 31, }; enum ngd_offsets { NGD_NACKED_MC = 0x7F00000, NGD_ACKED_MC = 0xFE000, NGD_ERROR = 0x1800, NGD_MSGQ_SUPPORT = 0x400, NGD_RX_MSGQ_TIME_OUT = 0x16, NGD_ENUMERATED = 0x1, NGD_TX_BUSY = 0x0, }; enum ngd_status { NGD_LADDR = 1 << 1, }; static int ngd_slim_runtime_resume(struct device *device); static int ngd_slim_power_up(struct msm_slim_ctrl *dev, bool mdm_restart); static irqreturn_t ngd_slim_interrupt(int irq, void *d) { struct msm_slim_ctrl *dev = (struct msm_slim_ctrl *)d; void __iomem *ngd = dev->base + NGD_BASE(dev->ctrl.nr, dev->ver); u32 stat = readl_relaxed(ngd + NGD_INT_STAT); u32 pstat; if ((stat & NGD_INT_MSG_BUF_CONTE) || (stat & NGD_INT_MSG_TX_INVAL) || (stat & NGD_INT_DEV_ERR) || (stat & NGD_INT_TX_NACKED_2)) { writel_relaxed(stat, ngd + NGD_INT_CLR); dev->err = -EIO; SLIM_WARN(dev, "NGD interrupt error:0x%x, err:%d\n", stat, dev->err); /* Guarantee that error interrupts are cleared */ mb(); if (dev->wr_comp) complete(dev->wr_comp); } else if (stat & NGD_INT_TX_MSG_SENT) { writel_relaxed(NGD_INT_TX_MSG_SENT, ngd + NGD_INT_CLR); /* Make sure interrupt is cleared */ mb(); if (dev->wr_comp) complete(dev->wr_comp); } if (stat & NGD_INT_RX_MSG_RCVD) { u32 rx_buf[10]; u8 len, i; rx_buf[0] = readl_relaxed(ngd + NGD_RX_MSG); len = rx_buf[0] & 0x1F; for (i = 1; i < ((len + 3) >> 2); i++) { rx_buf[i] = readl_relaxed(ngd + NGD_RX_MSG + (4 * i)); SLIM_DBG(dev, "REG-RX data: %x\n", rx_buf[i]); } msm_slim_rx_enqueue(dev, rx_buf, len); writel_relaxed(NGD_INT_RX_MSG_RCVD, ngd + NGD_INT_CLR); /* * Guarantee that CLR bit write goes through before * queuing work */ mb(); if (dev->use_rx_msgqs == MSM_MSGQ_ENABLED) SLIM_WARN(dev, "direct msg rcvd with RX MSGQs\n"); else complete(&dev->rx_msgq_notify); } if (stat & NGD_INT_RECFG_DONE) { writel_relaxed(NGD_INT_RECFG_DONE, ngd + NGD_INT_CLR); /* Guarantee RECONFIG DONE interrupt is cleared */ mb(); /* In satellite mode, just log the reconfig done IRQ */ SLIM_DBG(dev, "reconfig done IRQ for NGD\n"); } if (stat & NGD_INT_IE_VE_CHG) { writel_relaxed(NGD_INT_IE_VE_CHG, ngd + NGD_INT_CLR); /* Guarantee IE VE change interrupt is cleared */ mb(); SLIM_DBG(dev, "NGD IE VE change\n"); } pstat = readl_relaxed(PGD_THIS_EE(PGD_PORT_INT_ST_EEn, dev->ver)); if (pstat != 0) return msm_slim_port_irq_handler(dev, pstat); return IRQ_HANDLED; } static int ngd_qmi_available(struct notifier_block *n, unsigned long code, void *_cmd) { struct msm_slim_qmi *qmi = container_of(n, struct msm_slim_qmi, nb); struct msm_slim_ctrl *dev = container_of(qmi, struct msm_slim_ctrl, qmi); SLIM_INFO(dev, "Slimbus QMI NGD CB received event:%ld\n", code); switch (code) { case QMI_SERVER_ARRIVE: schedule_work(&qmi->ssr_up); break; case QMI_SERVER_EXIT: dev->state = MSM_CTRL_DOWN; /* make sure autosuspend is not called until ADSP comes up*/ pm_runtime_get_noresume(dev->dev); /* Reset ctrl_up completion */ init_completion(&dev->ctrl_up); schedule_work(&qmi->ssr_down); break; default: break; } return 0; } static int mdm_ssr_notify_cb(struct notifier_block *n, unsigned long code, void *_cmd) { void __iomem *ngd; struct msm_slim_mdm *mdm = container_of(n, struct msm_slim_mdm, nb); struct msm_slim_ctrl *dev = container_of(mdm, struct msm_slim_ctrl, mdm); struct slim_controller *ctrl = &dev->ctrl; u32 laddr; struct slim_device *sbdev; switch (code) { case SUBSYS_BEFORE_SHUTDOWN: SLIM_INFO(dev, "SLIM %lu external_modem SSR notify cb\n", code); /* vote for runtime-pm so that ADSP doesn't go down */ msm_slim_get_ctrl(dev); /* * checking framer here will wake-up ADSP and may avoid framer * handover later */ msm_slim_qmi_check_framer_request(dev); dev->mdm.state = MSM_CTRL_DOWN; msm_slim_put_ctrl(dev); break; case SUBSYS_AFTER_POWERUP: if (dev->mdm.state != MSM_CTRL_DOWN) return NOTIFY_DONE; SLIM_INFO(dev, "SLIM %lu external_modem SSR notify cb\n", code); /* vote for runtime-pm so that ADSP doesn't go down */ msm_slim_get_ctrl(dev); msm_slim_qmi_check_framer_request(dev); /* If NGD enumeration is lost, we will need to power us up */ ngd = dev->base + NGD_BASE(dev->ctrl.nr, dev->ver); laddr = readl_relaxed(ngd + NGD_STATUS); if (!(laddr & NGD_LADDR)) { /* runtime-pm state should be consistent with HW */ pm_runtime_disable(dev->dev); pm_runtime_set_suspended(dev->dev); dev->state = MSM_CTRL_DOWN; SLIM_INFO(dev, "SLIM MDM SSR (active framer on MDM) dev-down\n"); list_for_each_entry(sbdev, &ctrl->devs, dev_list) slim_report_absent(sbdev); ngd_slim_power_up(dev, true); pm_runtime_set_active(dev->dev); pm_runtime_enable(dev->dev); } dev->mdm.state = MSM_CTRL_AWAKE; msm_slim_put_ctrl(dev); break; default: break; } return NOTIFY_DONE; } static int ngd_get_tid(struct slim_controller *ctrl, struct slim_msg_txn *txn, u8 *tid, struct completion *done) { struct msm_slim_ctrl *dev = slim_get_ctrldata(ctrl); mutex_lock(&ctrl->m_ctrl); if (ctrl->last_tid <= 255) { ctrl->txnt = krealloc(ctrl->txnt, (ctrl->last_tid + 1) * sizeof(struct slim_msg_txn *), GFP_KERNEL); if (!ctrl->txnt) { mutex_unlock(&ctrl->m_ctrl); return -ENOMEM; } dev->msg_cnt = ctrl->last_tid; ctrl->last_tid++; } else { int i; for (i = 0; i < 256; i++) { dev->msg_cnt = ((dev->msg_cnt + 1) & 0xFF); if (ctrl->txnt[dev->msg_cnt] == NULL) break; } if (i >= 256) { dev_err(&ctrl->dev, "out of TID"); mutex_unlock(&ctrl->m_ctrl); return -ENOMEM; } } ctrl->txnt[dev->msg_cnt] = txn; txn->tid = dev->msg_cnt; txn->comp = done; *tid = dev->msg_cnt; mutex_unlock(&ctrl->m_ctrl); return 0; } static int ngd_xfer_msg(struct slim_controller *ctrl, struct slim_msg_txn *txn) { DECLARE_COMPLETION_ONSTACK(done); DECLARE_COMPLETION_ONSTACK(tx_sent); struct msm_slim_ctrl *dev = slim_get_ctrldata(ctrl); u32 *pbuf; u8 *puc; int ret = 0; u8 la = txn->la; u8 txn_mt; u16 txn_mc = txn->mc; u8 wbuf[SLIM_MSGQ_BUF_LEN]; bool report_sat = false; if (txn->mc == SLIM_USR_MC_REPORT_SATELLITE && txn->mt == SLIM_MSG_MT_SRC_REFERRED_USER) report_sat = true; if (!pm_runtime_enabled(dev->dev) && dev->state == MSM_CTRL_ASLEEP && report_sat == false) { /* * Counter-part of system-suspend when runtime-pm is not enabled * This way, resume can be left empty and device will be put in * active mode only if client requests anything on the bus * If the state was DOWN, SSR UP notification will take * care of putting the device in active state. */ ngd_slim_runtime_resume(dev->dev); } else if (txn->mc & SLIM_MSG_CLK_PAUSE_SEQ_FLG) return -EPROTONOSUPPORT; if (txn->mt == SLIM_MSG_MT_CORE && (txn->mc >= SLIM_MSG_MC_BEGIN_RECONFIGURATION && txn->mc <= SLIM_MSG_MC_RECONFIGURE_NOW)) { return 0; } /* If txn is tried when controller is down, wait for ADSP to boot */ if (!report_sat) { if (dev->state == MSM_CTRL_DOWN) { u8 mc = (u8)txn->mc; int timeout; SLIM_INFO(dev, "ADSP slimbus not up yet\n"); /* * Messages related to data channel management can't * wait since they are holding reconfiguration lock. * clk_pause in resume (which can change state back to * MSM_CTRL_AWAKE), will need that lock. * Port disconnection, channel removal calls should pass * through since there is no activity on the bus and * those calls are triggered by clients due to * device_down callback in that situation. * Returning 0 on the disconnections and * removals will ensure consistent state of channels, * ports with the HW * Remote requests to remove channel/port will be * returned from the path where they wait on * acknowledgement from ADSP */ if ((txn->mt == SLIM_MSG_MT_DEST_REFERRED_USER) && ((mc == SLIM_USR_MC_CHAN_CTRL || mc == SLIM_USR_MC_DISCONNECT_PORT || mc == SLIM_USR_MC_RECONFIG_NOW))) return -EREMOTEIO; if ((txn->mt == SLIM_MSG_MT_CORE) && ((mc == SLIM_MSG_MC_DISCONNECT_PORT || mc == SLIM_MSG_MC_NEXT_REMOVE_CHANNEL || mc == SLIM_USR_MC_RECONFIG_NOW))) return 0; if ((txn->mt == SLIM_MSG_MT_CORE) && ((mc >= SLIM_MSG_MC_CONNECT_SOURCE && mc <= SLIM_MSG_MC_CHANGE_CONTENT) || (mc >= SLIM_MSG_MC_BEGIN_RECONFIGURATION && mc <= SLIM_MSG_MC_RECONFIGURE_NOW))) return -EREMOTEIO; if ((txn->mt == SLIM_MSG_MT_DEST_REFERRED_USER) && ((mc >= SLIM_USR_MC_DEFINE_CHAN && mc < SLIM_USR_MC_DISCONNECT_PORT))) return -EREMOTEIO; timeout = wait_for_completion_timeout(&dev->ctrl_up, HZ); if (!timeout && dev->state == MSM_CTRL_DOWN) return -ETIMEDOUT; } ret = msm_slim_get_ctrl(dev); /* * Runtime-pm's callbacks are not called until runtime-pm's * error status is cleared * Setting runtime status to suspended clears the error * It also makes HW status cosistent with what SW has it here */ if (ret == -ENETRESET && dev->state == MSM_CTRL_DOWN) { pm_runtime_set_suspended(dev->dev); msm_slim_put_ctrl(dev); return -EREMOTEIO; } else if (ret >= 0) { dev->state = MSM_CTRL_AWAKE; } } mutex_lock(&dev->tx_lock); if (report_sat == false && dev->state != MSM_CTRL_AWAKE) { dev_err(dev->dev, "controller not ready"); mutex_unlock(&dev->tx_lock); pm_runtime_set_suspended(dev->dev); msm_slim_put_ctrl(dev); return -EREMOTEIO; } if (txn->mt == SLIM_MSG_MT_CORE && (txn->mc == SLIM_MSG_MC_CONNECT_SOURCE || txn->mc == SLIM_MSG_MC_CONNECT_SINK || txn->mc == SLIM_MSG_MC_DISCONNECT_PORT)) { int i = 0; if (txn->mc != SLIM_MSG_MC_DISCONNECT_PORT) SLIM_INFO(dev, "Connect port: laddr 0x%x port_num %d chan_num %d\n", txn->la, txn->wbuf[0], txn->wbuf[1]); else SLIM_INFO(dev, "Disconnect port: laddr 0x%x port_num %d\n", txn->la, txn->wbuf[0]); txn->mt = SLIM_MSG_MT_DEST_REFERRED_USER; if (txn->mc == SLIM_MSG_MC_CONNECT_SOURCE) txn->mc = SLIM_USR_MC_CONNECT_SRC; else if (txn->mc == SLIM_MSG_MC_CONNECT_SINK) txn->mc = SLIM_USR_MC_CONNECT_SINK; else if (txn->mc == SLIM_MSG_MC_DISCONNECT_PORT) txn->mc = SLIM_USR_MC_DISCONNECT_PORT; if (txn->la == SLIM_LA_MGR) { if (dev->pgdla == SLIM_LA_MGR) { u8 ea[] = {0, QC_DEVID_PGD, 0, 0, QC_MFGID_MSB, QC_MFGID_LSB}; ea[2] = (u8)(dev->pdata.eapc & 0xFF); ea[3] = (u8)((dev->pdata.eapc & 0xFF00) >> 8); mutex_unlock(&dev->tx_lock); ret = dev->ctrl.get_laddr(&dev->ctrl, ea, 6, &dev->pgdla); SLIM_DBG(dev, "SLIM PGD LA:0x%x, ret:%d\n", dev->pgdla, ret); if (ret) { SLIM_ERR(dev, "Incorrect SLIM-PGD EAPC:0x%x\n", dev->pdata.eapc); return ret; } mutex_lock(&dev->tx_lock); } txn->la = dev->pgdla; } wbuf[i++] = txn->la; la = SLIM_LA_MGR; wbuf[i++] = txn->wbuf[0]; if (txn->mc != SLIM_USR_MC_DISCONNECT_PORT) wbuf[i++] = txn->wbuf[1]; ret = ngd_get_tid(ctrl, txn, &wbuf[i++], &done); if (ret) { SLIM_ERR(dev, "TID for connect/disconnect fail:%d\n", ret); goto ngd_xfer_err; } txn->len = i; txn->wbuf = wbuf; txn->rl = txn->len + 4; } txn->rl--; pbuf = msm_get_msg_buf(dev, txn->rl); if (!pbuf) { SLIM_ERR(dev, "Message buffer unavailable\n"); ret = -ENOMEM; goto ngd_xfer_err; } dev->err = 0; if (txn->dt == SLIM_MSG_DEST_ENUMADDR) { ret = -EPROTONOSUPPORT; goto ngd_xfer_err; } if (txn->dt == SLIM_MSG_DEST_LOGICALADDR) *pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 0, la); else *pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 1, la); if (txn->dt == SLIM_MSG_DEST_LOGICALADDR) puc = ((u8 *)pbuf) + 3; else puc = ((u8 *)pbuf) + 2; if (txn->rbuf) *(puc++) = txn->tid; if (((txn->mt == SLIM_MSG_MT_CORE) && ((txn->mc >= SLIM_MSG_MC_REQUEST_INFORMATION && txn->mc <= SLIM_MSG_MC_REPORT_INFORMATION) || (txn->mc >= SLIM_MSG_MC_REQUEST_VALUE && txn->mc <= SLIM_MSG_MC_CHANGE_VALUE))) || (txn->mc == SLIM_USR_MC_REPEAT_CHANGE_VALUE && txn->mt == SLIM_MSG_MT_DEST_REFERRED_USER)) { *(puc++) = (txn->ec & 0xFF); *(puc++) = (txn->ec >> 8)&0xFF; } if (txn->wbuf) memcpy(puc, txn->wbuf, txn->len); if (txn->mt == SLIM_MSG_MT_DEST_REFERRED_USER && (txn->mc == SLIM_USR_MC_CONNECT_SRC || txn->mc == SLIM_USR_MC_CONNECT_SINK || txn->mc == SLIM_USR_MC_DISCONNECT_PORT) && txn->wbuf && wbuf[0] == dev->pgdla) { if (txn->mc != SLIM_USR_MC_DISCONNECT_PORT) dev->err = msm_slim_connect_pipe_port(dev, wbuf[1]); else { /* * Remove channel disconnects master-side ports from * channel. No need to send that again on the bus * Only disable port */ writel_relaxed(0, PGD_PORT(PGD_PORT_CFGn, (wbuf[1] + dev->port_b), dev->ver)); mutex_unlock(&dev->tx_lock); msm_slim_put_ctrl(dev); return 0; } if (dev->err) { SLIM_ERR(dev, "pipe-port connect err:%d\n", dev->err); goto ngd_xfer_err; } /* Add port-base to port number if this is manager side port */ puc[1] += dev->port_b; } dev->err = 0; /* * If it's a read txn, it may be freed if a response is received by * received thread before reaching end of this function. * mc, mt may have changed to convert standard slimbus code/type to * satellite user-defined message. Reinitialize again */ txn_mc = txn->mc; txn_mt = txn->mt; dev->wr_comp = &tx_sent; ret = msm_send_msg_buf(dev, pbuf, txn->rl, NGD_BASE(dev->ctrl.nr, dev->ver) + NGD_TX_MSG); if (!ret) { int timeout = wait_for_completion_timeout(&tx_sent, HZ); if (!timeout) { ret = -ETIMEDOUT; /* * disconnect/recoonect pipe so that subsequent * transactions don't timeout due to unavailable * descriptors */ msm_slim_disconnect_endp(dev, &dev->tx_msgq, &dev->use_tx_msgqs); msm_slim_connect_endp(dev, &dev->tx_msgq, NULL); } else { ret = dev->err; } } dev->wr_comp = NULL; if (ret) { u32 conf, stat, rx_msgq, int_stat, int_en, int_clr; void __iomem *ngd = dev->base + NGD_BASE(dev->ctrl.nr, dev->ver); SLIM_WARN(dev, "TX failed :MC:0x%x,mt:0x%x, ret:%d, ver:%d\n", txn_mc, txn_mt, ret, dev->ver); conf = readl_relaxed(ngd); stat = readl_relaxed(ngd + NGD_STATUS); rx_msgq = readl_relaxed(ngd + NGD_RX_MSGQ_CFG); int_stat = readl_relaxed(ngd + NGD_INT_STAT); int_en = readl_relaxed(ngd + NGD_INT_EN); int_clr = readl_relaxed(ngd + NGD_INT_CLR); SLIM_WARN(dev, "conf:0x%x,stat:0x%x,rxmsgq:0x%x\n", conf, stat, rx_msgq); SLIM_WARN(dev, "int_stat:0x%x,int_en:0x%x,int_cll:0x%x\n", int_stat, int_en, int_clr); } else if (txn_mt == SLIM_MSG_MT_DEST_REFERRED_USER && (txn_mc == SLIM_USR_MC_CONNECT_SRC || txn_mc == SLIM_USR_MC_CONNECT_SINK || txn_mc == SLIM_USR_MC_DISCONNECT_PORT)) { int timeout; mutex_unlock(&dev->tx_lock); msm_slim_put_ctrl(dev); timeout = wait_for_completion_timeout(txn->comp, HZ); if (!timeout) ret = -ETIMEDOUT; else ret = txn->ec; if (ret) { SLIM_INFO(dev, "connect/disconnect:0x%x,tid:%d err:%d\n", txn->mc, txn->tid, ret); mutex_lock(&ctrl->m_ctrl); ctrl->txnt[txn->tid] = NULL; mutex_unlock(&ctrl->m_ctrl); } return ret ? ret : dev->err; } ngd_xfer_err: mutex_unlock(&dev->tx_lock); if (!report_sat) msm_slim_put_ctrl(dev); return ret ? ret : dev->err; } static int ngd_user_msg(struct slim_controller *ctrl, u8 la, u8 mt, u8 mc, struct slim_ele_access *msg, u8 *buf, u8 len) { struct slim_msg_txn txn; if (mt != SLIM_MSG_MT_DEST_REFERRED_USER || mc != SLIM_USR_MC_REPEAT_CHANGE_VALUE) { return -EPROTONOSUPPORT; } if (len > SLIM_MAX_VE_SLC_BYTES || msg->start_offset > MSM_SLIM_VE_MAX_MAP_ADDR) return -EINVAL; if (len <= 4) { txn.ec = len - 1; } else if (len <= 8) { if (len & 0x1) return -EINVAL; txn.ec = ((len >> 1) + 1); } else { if (len & 0x3) return -EINVAL; txn.ec = ((len >> 2) + 3); } txn.ec |= (0x8 | ((msg->start_offset & 0xF) << 4)); txn.ec |= ((msg->start_offset & 0xFF0) << 4); txn.la = la; txn.mt = mt; txn.mc = mc; txn.dt = SLIM_MSG_DEST_LOGICALADDR; txn.len = len; txn.rl = len + 6; txn.wbuf = buf; txn.rbuf = NULL; txn.comp = msg->comp; return ngd_xfer_msg(ctrl, &txn); } static int ngd_xferandwait_ack(struct slim_controller *ctrl, struct slim_msg_txn *txn) { struct msm_slim_ctrl *dev = slim_get_ctrldata(ctrl); int ret = ngd_xfer_msg(ctrl, txn); if (!ret) { int timeout; timeout = wait_for_completion_timeout(txn->comp, HZ); if (!timeout) ret = -ETIMEDOUT; else ret = txn->ec; } if (ret) { if (ret != -EREMOTEIO || txn->mc != SLIM_USR_MC_CHAN_CTRL) SLIM_ERR(dev, "master msg:0x%x,tid:%d ret:%d\n", txn->mc, txn->tid, ret); mutex_lock(&ctrl->m_ctrl); ctrl->txnt[txn->tid] = NULL; mutex_unlock(&ctrl->m_ctrl); } return ret; } static int ngd_allocbw(struct slim_device *sb, int *subfrmc, int *clkgear) { int ret = 0, num_chan = 0; struct slim_pending_ch *pch; struct slim_msg_txn txn; struct slim_controller *ctrl = sb->ctrl; DECLARE_COMPLETION_ONSTACK(done); u8 wbuf[SLIM_MSGQ_BUF_LEN]; struct msm_slim_ctrl *dev = slim_get_ctrldata(ctrl); *clkgear = ctrl->clkgear; *subfrmc = 0; txn.mt = SLIM_MSG_MT_DEST_REFERRED_USER; txn.dt = SLIM_MSG_DEST_LOGICALADDR; txn.la = SLIM_LA_MGR; txn.len = 0; txn.ec = 0; txn.wbuf = wbuf; txn.rbuf = NULL; if (ctrl->sched.msgsl != ctrl->sched.pending_msgsl) { SLIM_DBG(dev, "slim reserve BW for messaging: req: %d\n", ctrl->sched.pending_msgsl); txn.mc = SLIM_USR_MC_REQ_BW; wbuf[txn.len++] = ((sb->laddr & 0x1f) | ((u8)(ctrl->sched.pending_msgsl & 0x7) << 5)); wbuf[txn.len++] = (u8)(ctrl->sched.pending_msgsl >> 3); ret = ngd_get_tid(ctrl, &txn, &wbuf[txn.len++], &done); if (ret) return ret; txn.rl = txn.len + 4; ret = ngd_xferandwait_ack(ctrl, &txn); if (ret) return ret; txn.mc = SLIM_USR_MC_RECONFIG_NOW; txn.len = 2; wbuf[1] = sb->laddr; txn.rl = txn.len + 4; ret = ngd_get_tid(ctrl, &txn, &wbuf[0], &done); if (ret) return ret; ret = ngd_xferandwait_ack(ctrl, &txn); if (ret) return ret; txn.len = 0; } list_for_each_entry(pch, &sb->mark_define, pending) { struct slim_ich *slc; slc = &ctrl->chans[pch->chan]; if (!slc) { SLIM_WARN(dev, "no channel in define?\n"); return -ENXIO; } if (txn.len == 0) { /* Per protocol, only last 5 bits for client no. */ wbuf[txn.len++] = (u8) (slc->prop.dataf << 5) | (sb->laddr & 0x1f); wbuf[txn.len] = slc->seglen; if (slc->coeff == SLIM_COEFF_3) wbuf[txn.len] |= 1 << 5; wbuf[txn.len++] |= slc->prop.auxf << 6; wbuf[txn.len++] = slc->rootexp << 4 | slc->prop.prot; wbuf[txn.len++] = slc->prrate; ret = ngd_get_tid(ctrl, &txn, &wbuf[txn.len++], &done); if (ret) { SLIM_WARN(dev, "no tid for channel define?\n"); return -ENXIO; } } num_chan++; wbuf[txn.len++] = slc->chan; SLIM_INFO(dev, "slim activate chan:%d, laddr: 0x%x\n", slc->chan, sb->laddr); } if (txn.len) { txn.mc = SLIM_USR_MC_DEF_ACT_CHAN; txn.rl = txn.len + 4; ret = ngd_xferandwait_ack(ctrl, &txn); if (ret) return ret; txn.mc = SLIM_USR_MC_RECONFIG_NOW; txn.len = 2; wbuf[1] = sb->laddr; txn.rl = txn.len + 4; ret = ngd_get_tid(ctrl, &txn, &wbuf[0], &done); if (ret) return ret; ret = ngd_xferandwait_ack(ctrl, &txn); if (ret) return ret; } txn.len = 0; list_for_each_entry(pch, &sb->mark_removal, pending) { struct slim_ich *slc; slc = &ctrl->chans[pch->chan]; if (!slc) { SLIM_WARN(dev, "no channel in removal?\n"); return -ENXIO; } if (txn.len == 0) { /* Per protocol, only last 5 bits for client no. */ wbuf[txn.len++] = (u8) (SLIM_CH_REMOVE << 6) | (sb->laddr & 0x1f); ret = ngd_get_tid(ctrl, &txn, &wbuf[txn.len++], &done); if (ret) { SLIM_WARN(dev, "no tid for channel define?\n"); return -ENXIO; } } wbuf[txn.len++] = slc->chan; SLIM_INFO(dev, "slim remove chan:%d, laddr: 0x%x\n", slc->chan, sb->laddr); } if (txn.len) { txn.mc = SLIM_USR_MC_CHAN_CTRL; txn.rl = txn.len + 4; ret = ngd_xferandwait_ack(ctrl, &txn); /* HW restarting, channel removal should succeed */ if (ret == -EREMOTEIO) return 0; else if (ret) return ret; txn.mc = SLIM_USR_MC_RECONFIG_NOW; txn.len = 2; wbuf[1] = sb->laddr; txn.rl = txn.len + 4; ret = ngd_get_tid(ctrl, &txn, &wbuf[0], &done); if (ret) return ret; ret = ngd_xferandwait_ack(ctrl, &txn); if (ret) return ret; txn.len = 0; } return 0; } static int ngd_set_laddr(struct slim_controller *ctrl, const u8 *ea, u8 elen, u8 laddr) { return 0; } static int ngd_get_laddr(struct slim_controller *ctrl, const u8 *ea, u8 elen, u8 *laddr) { int ret; u8 wbuf[10]; struct slim_msg_txn txn; DECLARE_COMPLETION_ONSTACK(done); txn.mt = SLIM_MSG_MT_DEST_REFERRED_USER; txn.dt = SLIM_MSG_DEST_LOGICALADDR; txn.la = SLIM_LA_MGR; txn.ec = 0; ret = ngd_get_tid(ctrl, &txn, &wbuf[0], &done); if (ret) { return ret; } memcpy(&wbuf[1], ea, elen); txn.mc = SLIM_USR_MC_ADDR_QUERY; txn.rl = 11; txn.len = 7; txn.wbuf = wbuf; txn.rbuf = NULL; ret = ngd_xferandwait_ack(ctrl, &txn); if (!ret && txn.la == 0xFF) ret = -ENXIO; else if (!ret) *laddr = txn.la; return ret; } static void ngd_slim_setup_msg_path(struct msm_slim_ctrl *dev) { if (dev->state == MSM_CTRL_DOWN) { msm_slim_sps_init(dev, dev->bam_mem, NGD_BASE(dev->ctrl.nr, dev->ver) + NGD_STATUS, true); } else { if (dev->use_rx_msgqs == MSM_MSGQ_DISABLED) goto setup_tx_msg_path; msm_slim_connect_endp(dev, &dev->rx_msgq, &dev->rx_msgq_notify); setup_tx_msg_path: if (dev->use_tx_msgqs == MSM_MSGQ_DISABLED) return; msm_slim_connect_endp(dev, &dev->tx_msgq, NULL); } } static void ngd_slim_rx(struct msm_slim_ctrl *dev, u8 *buf) { u8 mc, mt, len; int ret; u32 msgq_en = 1; len = buf[0] & 0x1F; mt = (buf[0] >> 5) & 0x7; mc = buf[1]; if (mc == SLIM_USR_MC_MASTER_CAPABILITY && mt == SLIM_MSG_MT_SRC_REFERRED_USER) { struct slim_msg_txn txn; int retries = 0; u8 wbuf[8]; txn.dt = SLIM_MSG_DEST_LOGICALADDR; txn.ec = 0; txn.rbuf = NULL; txn.mc = SLIM_USR_MC_REPORT_SATELLITE; txn.mt = SLIM_MSG_MT_SRC_REFERRED_USER; txn.la = SLIM_LA_MGR; wbuf[0] = SAT_MAGIC_LSB; wbuf[1] = SAT_MAGIC_MSB; wbuf[2] = SAT_MSG_VER; wbuf[3] = SAT_MSG_PROT; txn.wbuf = wbuf; txn.len = 4; SLIM_INFO(dev, "SLIM SAT: Rcvd master capability\n"); if (dev->state >= MSM_CTRL_ASLEEP) { ngd_slim_setup_msg_path(dev); if (dev->use_rx_msgqs == MSM_MSGQ_ENABLED) msgq_en |= NGD_CFG_RX_MSGQ_EN; if (dev->use_tx_msgqs == MSM_MSGQ_ENABLED) msgq_en |= NGD_CFG_TX_MSGQ_EN; writel_relaxed(msgq_en, dev->base + NGD_BASE(dev->ctrl.nr, dev->ver)); /* make sure NGD MSG-Q config goes through */ mb(); } capability_retry: txn.rl = 8; ret = ngd_xfer_msg(&dev->ctrl, &txn); if (!ret) { enum msm_ctrl_state prev_state = dev->state; SLIM_INFO(dev, "SLIM SAT: capability exchange successful\n"); dev->state = MSM_CTRL_AWAKE; if (prev_state >= MSM_CTRL_ASLEEP) complete(&dev->reconf); else SLIM_ERR(dev, "SLIM: unexpected capability, state:%d\n", prev_state); /* ADSP SSR, send device_up notifications */ if (prev_state == MSM_CTRL_DOWN) complete(&dev->qmi.slave_notify); } else if (ret == -EIO) { SLIM_WARN(dev, "capability message NACKed, retrying\n"); if (retries < INIT_MX_RETRIES) { msleep(DEF_RETRY_MS); retries++; goto capability_retry; } } } if (mc == SLIM_MSG_MC_REPLY_INFORMATION || mc == SLIM_MSG_MC_REPLY_VALUE) { u8 tid = buf[3]; dev_dbg(dev->dev, "tid:%d, len:%d\n", tid, len); slim_msg_response(&dev->ctrl, &buf[4], tid, len - 4); pm_runtime_mark_last_busy(dev->dev); } if (mc == SLIM_USR_MC_ADDR_REPLY && mt == SLIM_MSG_MT_SRC_REFERRED_USER) { struct slim_msg_txn *txn; u8 failed_ea[6] = {0, 0, 0, 0, 0, 0}; mutex_lock(&dev->ctrl.m_ctrl); txn = dev->ctrl.txnt[buf[3]]; if (!txn) { SLIM_WARN(dev, "LADDR response after timeout, tid:0x%x\n", buf[3]); mutex_unlock(&dev->ctrl.m_ctrl); return; } if (memcmp(&buf[4], failed_ea, 6)) txn->la = buf[10]; dev->ctrl.txnt[buf[3]] = NULL; mutex_unlock(&dev->ctrl.m_ctrl); complete(txn->comp); } if (mc == SLIM_USR_MC_GENERIC_ACK && mt == SLIM_MSG_MT_SRC_REFERRED_USER) { struct slim_msg_txn *txn; mutex_lock(&dev->ctrl.m_ctrl); txn = dev->ctrl.txnt[buf[3]]; if (!txn) { SLIM_WARN(dev, "ACK received after timeout, tid:0x%x\n", buf[3]); mutex_unlock(&dev->ctrl.m_ctrl); return; } dev_dbg(dev->dev, "got response:tid:%d, response:0x%x", (int)buf[3], buf[4]); if (!(buf[4] & MSM_SAT_SUCCSS)) { SLIM_WARN(dev, "TID:%d, NACK code:0x%x\n", (int)buf[3], buf[4]); txn->ec = -EIO; } dev->ctrl.txnt[buf[3]] = NULL; mutex_unlock(&dev->ctrl.m_ctrl); complete(txn->comp); } } static int ngd_slim_power_up(struct msm_slim_ctrl *dev, bool mdm_restart) { void __iomem *ngd; int timeout, ret = 0; enum msm_ctrl_state cur_state = dev->state; u32 laddr; u32 ngd_int = (NGD_INT_TX_NACKED_2 | NGD_INT_MSG_BUF_CONTE | NGD_INT_MSG_TX_INVAL | NGD_INT_IE_VE_CHG | NGD_INT_DEV_ERR | NGD_INT_TX_MSG_SENT | NGD_INT_RX_MSG_RCVD); if (!mdm_restart && cur_state == MSM_CTRL_DOWN) { int timeout = wait_for_completion_timeout(&dev->qmi.qmi_comp, HZ); if (!timeout) SLIM_ERR(dev, "slimbus QMI init timed out\n"); } /* No need to vote if contorller is not in low power mode */ if (!mdm_restart && (cur_state == MSM_CTRL_DOWN || cur_state == MSM_CTRL_ASLEEP)) { ret = msm_slim_qmi_power_request(dev, true); if (ret) { SLIM_ERR(dev, "SLIM QMI power request failed:%d\n", ret); return ret; } } if (!dev->ver) { dev->ver = readl_relaxed(dev->base); /* Version info in 16 MSbits */ dev->ver >>= 16; } ngd = dev->base + NGD_BASE(dev->ctrl.nr, dev->ver); laddr = readl_relaxed(ngd + NGD_STATUS); if (laddr & NGD_LADDR) { /* * external MDM restart case where ADSP itself was active framer * For example, modem restarted when playback was active */ if (cur_state == MSM_CTRL_AWAKE) { SLIM_INFO(dev, "Subsys restart: ADSP active framer\n"); return 0; } /* * ADSP power collapse case, where HW wasn't reset. * Reconnect BAM pipes if disconnected */ ngd_slim_setup_msg_path(dev); return 0; } if (mdm_restart) { /* * external MDM SSR when MDM is active framer * ADSP will reset slimbus HW. disconnect BAM pipes so that * they can be connected after capability message is received. * Set device state to ASLEEP to be synchronous with the HW */ /* make current state as DOWN */ cur_state = MSM_CTRL_DOWN; SLIM_INFO(dev, "SLIM MDM restart: MDM active framer: reinit HW\n"); /* disconnect BAM pipes */ if (dev->use_rx_msgqs == MSM_MSGQ_ENABLED) dev->use_rx_msgqs = MSM_MSGQ_DOWN; if (dev->use_tx_msgqs == MSM_MSGQ_ENABLED) dev->use_tx_msgqs = MSM_MSGQ_DOWN; dev->state = MSM_CTRL_DOWN; } /* SSR scenario, need to disconnect pipe before connecting */ if (dev->use_rx_msgqs == MSM_MSGQ_DOWN) { struct msm_slim_endp *endpoint = &dev->rx_msgq; sps_disconnect(endpoint->sps); sps_free_endpoint(endpoint->sps); dev->use_rx_msgqs = MSM_MSGQ_RESET; } if (dev->use_tx_msgqs == MSM_MSGQ_DOWN) { struct msm_slim_endp *endpoint = &dev->tx_msgq; sps_disconnect(endpoint->sps); sps_free_endpoint(endpoint->sps); dev->use_tx_msgqs = MSM_MSGQ_RESET; } /* * ADSP power collapse case (OR SSR), where HW was reset * BAM programming will happen when capability message is received */ writel_relaxed(ngd_int, dev->base + NGD_INT_EN + NGD_BASE(dev->ctrl.nr, dev->ver)); /* * Enable NGD. Configure NGD in register acc. mode until master * announcement is received */ writel_relaxed(1, dev->base + NGD_BASE(dev->ctrl.nr, dev->ver)); /* make sure NGD enabling goes through */ mb(); timeout = wait_for_completion_timeout(&dev->reconf, HZ); if (!timeout) { SLIM_ERR(dev, "Failed to receive master capability\n"); return -ETIMEDOUT; } if (cur_state == MSM_CTRL_DOWN) { complete(&dev->ctrl_up); /* Resetting the log level */ SLIM_RST_LOGLVL(dev); } return 0; } static int ngd_slim_enable(struct msm_slim_ctrl *dev, bool enable) { int ret = 0; if (enable) { ret = msm_slim_qmi_init(dev, false); /* controller state should be in sync with framework state */ if (!ret) { complete(&dev->qmi.qmi_comp); if (!pm_runtime_enabled(dev->dev) || !pm_runtime_suspended(dev->dev)) ngd_slim_runtime_resume(dev->dev); else pm_runtime_resume(dev->dev); pm_runtime_mark_last_busy(dev->dev); pm_runtime_put(dev->dev); } else SLIM_ERR(dev, "qmi init fail, ret:%d, state:%d\n", ret, dev->state); } else { msm_slim_qmi_exit(dev); } return ret; } static int ngd_slim_power_down(struct msm_slim_ctrl *dev) { int i; struct slim_controller *ctrl = &dev->ctrl; mutex_lock(&ctrl->m_ctrl); /* Pending response for a message */ for (i = 0; i < ctrl->last_tid; i++) { if (ctrl->txnt[i]) { SLIM_INFO(dev, "NGD down:txn-rsp for %d pending", i); mutex_unlock(&ctrl->m_ctrl); return -EBUSY; } } mutex_unlock(&ctrl->m_ctrl); msm_slim_disconnect_endp(dev, &dev->rx_msgq, &dev->use_rx_msgqs); msm_slim_disconnect_endp(dev, &dev->tx_msgq, &dev->use_tx_msgqs); return msm_slim_qmi_power_request(dev, false); } static int ngd_slim_rx_msgq_thread(void *data) { struct msm_slim_ctrl *dev = (struct msm_slim_ctrl *)data; struct completion *notify = &dev->rx_msgq_notify; int ret = 0, index = 0; u32 mc = 0; u32 mt = 0; u32 buffer[10]; u8 msg_len = 0; while (!kthread_should_stop()) { set_current_state(TASK_INTERRUPTIBLE); wait_for_completion(notify); /* 1 irq notification per message */ if (dev->use_rx_msgqs != MSM_MSGQ_ENABLED) { msm_slim_rx_dequeue(dev, (u8 *)buffer); ngd_slim_rx(dev, (u8 *)buffer); continue; } ret = msm_slim_rx_msgq_get(dev, buffer, index); if (ret) { SLIM_ERR(dev, "rx_msgq_get() failed 0x%x\n", ret); continue; } /* Wait for complete message */ if (index++ == 0) { msg_len = *buffer & 0x1F; mt = (buffer[0] >> 5) & 0x7; mc = (buffer[0] >> 8) & 0xff; dev_dbg(dev->dev, "MC: %x, MT: %x\n", mc, mt); } if ((index * 4) >= msg_len) { index = 0; ngd_slim_rx(dev, (u8 *)buffer); } else continue; } return 0; } static int ngd_notify_slaves(void *data) { struct msm_slim_ctrl *dev = (struct msm_slim_ctrl *)data; struct slim_controller *ctrl = &dev->ctrl; struct slim_device *sbdev; struct list_head *pos, *next; int ret, i = 0; while (!kthread_should_stop()) { set_current_state(TASK_INTERRUPTIBLE); wait_for_completion(&dev->qmi.slave_notify); /* Probe devices for first notification */ if (!i) { i++; dev->err = 0; if (dev->dev->of_node) of_register_slim_devices(&dev->ctrl); /* * Add devices registered with board-info now that * controller is up */ slim_ctrl_add_boarddevs(&dev->ctrl); } else { slim_framer_booted(ctrl); } mutex_lock(&ctrl->m_ctrl); list_for_each_safe(pos, next, &ctrl->devs) { int j; sbdev = list_entry(pos, struct slim_device, dev_list); mutex_unlock(&ctrl->m_ctrl); for (j = 0; j < LADDR_RETRY; j++) { ret = slim_get_logical_addr(sbdev, sbdev->e_addr, 6, &sbdev->laddr); if (!ret) break; else /* time for ADSP to assign LA */ msleep(20); } mutex_lock(&ctrl->m_ctrl); } mutex_unlock(&ctrl->m_ctrl); } return 0; } static void ngd_adsp_down(struct work_struct *work) { struct msm_slim_qmi *qmi = container_of(work, struct msm_slim_qmi, ssr_down); struct msm_slim_ctrl *dev = container_of(qmi, struct msm_slim_ctrl, qmi); struct slim_controller *ctrl = &dev->ctrl; struct slim_device *sbdev; ngd_slim_enable(dev, false); /* disconnect BAM pipes */ if (dev->use_rx_msgqs == MSM_MSGQ_ENABLED) dev->use_rx_msgqs = MSM_MSGQ_DOWN; if (dev->use_tx_msgqs == MSM_MSGQ_ENABLED) dev->use_tx_msgqs = MSM_MSGQ_DOWN; msm_slim_sps_exit(dev, false); /* device up should be called again after SSR */ list_for_each_entry(sbdev, &ctrl->devs, dev_list) slim_report_absent(sbdev); SLIM_INFO(dev, "SLIM ADSP SSR (DOWN) done\n"); } static void ngd_adsp_up(struct work_struct *work) { struct msm_slim_qmi *qmi = container_of(work, struct msm_slim_qmi, ssr_up); struct msm_slim_ctrl *dev = container_of(qmi, struct msm_slim_ctrl, qmi); ngd_slim_enable(dev, true); } static ssize_t show_mask(struct device *device, struct device_attribute *attr, char *buf) { struct platform_device *pdev = to_platform_device(device); struct msm_slim_ctrl *dev = platform_get_drvdata(pdev); return snprintf(buf, sizeof(int), "%u\n", dev->ipc_log_mask); } static ssize_t set_mask(struct device *device, struct device_attribute *attr, const char *buf, size_t count) { struct platform_device *pdev = to_platform_device(device); struct msm_slim_ctrl *dev = platform_get_drvdata(pdev); dev->ipc_log_mask = buf[0] - '0'; if (dev->ipc_log_mask > DBG_LEV) dev->ipc_log_mask = DBG_LEV; return count; } static DEVICE_ATTR(debug_mask, S_IRUGO | S_IWUSR, show_mask, set_mask); static int __devinit ngd_slim_probe(struct platform_device *pdev) { struct msm_slim_ctrl *dev; int ret; struct resource *bam_mem; struct resource *slim_mem; struct resource *irq, *bam_irq; bool rxreg_access = false; bool slim_mdm = false; const char *ext_modem_id = NULL; slim_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "slimbus_physical"); if (!slim_mem) { dev_err(&pdev->dev, "no slimbus physical memory resource\n"); return -ENODEV; } bam_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "slimbus_bam_physical"); if (!bam_mem) { dev_err(&pdev->dev, "no slimbus BAM memory resource\n"); return -ENODEV; } irq = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "slimbus_irq"); if (!irq) { dev_err(&pdev->dev, "no slimbus IRQ resource\n"); return -ENODEV; } bam_irq = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "slimbus_bam_irq"); if (!bam_irq) { dev_err(&pdev->dev, "no slimbus BAM IRQ resource\n"); return -ENODEV; } dev = kzalloc(sizeof(struct msm_slim_ctrl), GFP_KERNEL); if (IS_ERR_OR_NULL(dev)) { dev_err(&pdev->dev, "no memory for MSM slimbus controller\n"); return PTR_ERR(dev); } dev->dev = &pdev->dev; platform_set_drvdata(pdev, dev); slim_set_ctrldata(&dev->ctrl, dev); /* Create IPC log context */ dev->ipc_slimbus_log = ipc_log_context_create(IPC_SLIMBUS_LOG_PAGES, dev_name(dev->dev)); if (!dev->ipc_slimbus_log) dev_err(&pdev->dev, "error creating ipc_logging context\n"); else { /* Initialize the log mask */ dev->ipc_log_mask = INFO_LEV; dev->default_ipc_log_mask = INFO_LEV; SLIM_INFO(dev, "start logging for slim dev %s\n", dev_name(dev->dev)); } ret = sysfs_create_file(&dev->dev->kobj, &dev_attr_debug_mask.attr); if (ret) { dev_err(&pdev->dev, "Failed to create dev. attr\n"); dev->sysfs_created = false; } else dev->sysfs_created = true; dev->base = ioremap(slim_mem->start, resource_size(slim_mem)); if (!dev->base) { dev_err(&pdev->dev, "IOremap failed\n"); ret = -ENOMEM; goto err_ioremap_failed; } dev->bam.base = ioremap(bam_mem->start, resource_size(bam_mem)); if (!dev->bam.base) { dev_err(&pdev->dev, "BAM IOremap failed\n"); ret = -ENOMEM; goto err_ioremap_bam_failed; } if (pdev->dev.of_node) { ret = of_property_read_u32(pdev->dev.of_node, "cell-index", &dev->ctrl.nr); if (ret) { dev_err(&pdev->dev, "Cell index not specified:%d", ret); goto err_ctrl_failed; } rxreg_access = of_property_read_bool(pdev->dev.of_node, "qcom,rxreg-access"); of_property_read_u32(pdev->dev.of_node, "qcom,apps-ch-pipes", &dev->pdata.apps_pipes); of_property_read_u32(pdev->dev.of_node, "qcom,ea-pc", &dev->pdata.eapc); ret = of_property_read_string(pdev->dev.of_node, "qcom,slim-mdm", &ext_modem_id); if (!ret) slim_mdm = true; } else { dev->ctrl.nr = pdev->id; } /* * Keep PGD's logical address as manager's. Query it when first data * channel request comes in */ dev->pgdla = SLIM_LA_MGR; dev->ctrl.nchans = MSM_SLIM_NCHANS; dev->ctrl.nports = MSM_SLIM_NPORTS; dev->framer.rootfreq = SLIM_ROOT_FREQ >> 3; dev->framer.superfreq = dev->framer.rootfreq / SLIM_CL_PER_SUPERFRAME_DIV8; dev->ctrl.a_framer = &dev->framer; dev->ctrl.clkgear = SLIM_MAX_CLK_GEAR; dev->ctrl.set_laddr = ngd_set_laddr; dev->ctrl.get_laddr = ngd_get_laddr; dev->ctrl.allocbw = ngd_allocbw; dev->ctrl.xfer_msg = ngd_xfer_msg; dev->ctrl.xfer_user_msg = ngd_user_msg; dev->ctrl.wakeup = NULL; dev->ctrl.alloc_port = msm_alloc_port; dev->ctrl.dealloc_port = msm_dealloc_port; dev->ctrl.port_xfer = msm_slim_port_xfer; dev->ctrl.port_xfer_status = msm_slim_port_xfer_status; dev->bam_mem = bam_mem; init_completion(&dev->reconf); init_completion(&dev->ctrl_up); mutex_init(&dev->tx_lock); spin_lock_init(&dev->rx_lock); dev->ee = 1; dev->irq = irq->start; dev->bam.irq = bam_irq->start; if (rxreg_access) dev->use_rx_msgqs = MSM_MSGQ_DISABLED; else dev->use_rx_msgqs = MSM_MSGQ_RESET; /* Enable TX message queues by default as recommended by HW */ dev->use_tx_msgqs = MSM_MSGQ_RESET; init_completion(&dev->rx_msgq_notify); init_completion(&dev->qmi.slave_notify); /* Register with framework */ ret = slim_add_numbered_controller(&dev->ctrl); if (ret) { dev_err(dev->dev, "error adding controller\n"); goto err_ctrl_failed; } dev->ctrl.dev.parent = &pdev->dev; dev->ctrl.dev.of_node = pdev->dev.of_node; dev->state = MSM_CTRL_DOWN; ret = request_irq(dev->irq, ngd_slim_interrupt, IRQF_TRIGGER_HIGH, "ngd_slim_irq", dev); if (ret) { dev_err(&pdev->dev, "request IRQ failed\n"); goto err_request_irq_failed; } init_completion(&dev->qmi.qmi_comp); dev->err = -EPROBE_DEFER; pm_runtime_use_autosuspend(dev->dev); pm_runtime_set_autosuspend_delay(dev->dev, MSM_SLIM_AUTOSUSPEND); pm_runtime_set_suspended(dev->dev); pm_runtime_enable(dev->dev); if (slim_mdm) { dev->mdm.nb.notifier_call = mdm_ssr_notify_cb; dev->mdm.ssr = subsys_notif_register_notifier(ext_modem_id, &dev->mdm.nb); if (IS_ERR_OR_NULL(dev->mdm.ssr)) dev_err(dev->dev, "subsys_notif_register_notifier failed %p", dev->mdm.ssr); } INIT_WORK(&dev->qmi.ssr_down, ngd_adsp_down); INIT_WORK(&dev->qmi.ssr_up, ngd_adsp_up); dev->qmi.nb.notifier_call = ngd_qmi_available; pm_runtime_get_noresume(dev->dev); ret = qmi_svc_event_notifier_register(SLIMBUS_QMI_SVC_ID, SLIMBUS_QMI_SVC_V1, SLIMBUS_QMI_INS_ID, &dev->qmi.nb); if (ret) { pr_err("Slimbus QMI service registration failed:%d", ret); goto qmi_register_failed; } /* Fire up the Rx message queue thread */ dev->rx_msgq_thread = kthread_run(ngd_slim_rx_msgq_thread, dev, "ngd_rx_thread%d", dev->ctrl.nr); if (IS_ERR(dev->rx_msgq_thread)) { ret = PTR_ERR(dev->rx_msgq_thread); dev_err(dev->dev, "Failed to start Rx thread:%d\n", ret); goto err_rx_thread_create_failed; } /* Start thread to probe, and notify slaves */ dev->qmi.slave_thread = kthread_run(ngd_notify_slaves, dev, "ngd_notify_sl%d", dev->ctrl.nr); if (IS_ERR(dev->qmi.slave_thread)) { ret = PTR_ERR(dev->qmi.slave_thread); dev_err(dev->dev, "Failed to start notifier thread:%d\n", ret); goto err_notify_thread_create_failed; } SLIM_INFO(dev, "NGD SB controller is up!\n"); return 0; err_notify_thread_create_failed: kthread_stop(dev->rx_msgq_thread); err_rx_thread_create_failed: qmi_svc_event_notifier_unregister(SLIMBUS_QMI_SVC_ID, SLIMBUS_QMI_SVC_V1, SLIMBUS_QMI_INS_ID, &dev->qmi.nb); qmi_register_failed: free_irq(dev->irq, dev); err_request_irq_failed: slim_del_controller(&dev->ctrl); err_ctrl_failed: iounmap(dev->bam.base); err_ioremap_bam_failed: iounmap(dev->base); err_ioremap_failed: if (dev->sysfs_created) sysfs_remove_file(&dev->dev->kobj, &dev_attr_debug_mask.attr); kfree(dev); return ret; } static int __devexit ngd_slim_remove(struct platform_device *pdev) { struct msm_slim_ctrl *dev = platform_get_drvdata(pdev); ngd_slim_enable(dev, false); if (dev->sysfs_created) sysfs_remove_file(&dev->dev->kobj, &dev_attr_debug_mask.attr); qmi_svc_event_notifier_unregister(SLIMBUS_QMI_SVC_ID, SLIMBUS_QMI_SVC_V1, SLIMBUS_QMI_INS_ID, &dev->qmi.nb); pm_runtime_disable(&pdev->dev); if (!IS_ERR_OR_NULL(dev->mdm.ssr)) subsys_notif_unregister_notifier(dev->mdm.ssr, &dev->mdm.nb); free_irq(dev->irq, dev); slim_del_controller(&dev->ctrl); kthread_stop(dev->rx_msgq_thread); iounmap(dev->bam.base); iounmap(dev->base); kfree(dev); return 0; } #ifdef CONFIG_PM_RUNTIME static int ngd_slim_runtime_idle(struct device *device) { struct platform_device *pdev = to_platform_device(device); struct msm_slim_ctrl *dev = platform_get_drvdata(pdev); if (dev->state == MSM_CTRL_AWAKE) dev->state = MSM_CTRL_IDLE; dev_dbg(device, "pm_runtime: idle...\n"); pm_request_autosuspend(device); return -EAGAIN; } #endif /* * If PM_RUNTIME is not defined, these 2 functions become helper * functions to be called from system suspend/resume. So they are not * inside ifdef CONFIG_PM_RUNTIME */ static int ngd_slim_runtime_resume(struct device *device) { struct platform_device *pdev = to_platform_device(device); struct msm_slim_ctrl *dev = platform_get_drvdata(pdev); int ret = 0; if (dev->state >= MSM_CTRL_ASLEEP) ret = ngd_slim_power_up(dev, false); if (ret) { /* Did SSR cause this power up failure */ if (dev->state != MSM_CTRL_DOWN) dev->state = MSM_CTRL_ASLEEP; else SLIM_WARN(dev, "HW wakeup attempt during SSR\n"); } else { dev->state = MSM_CTRL_AWAKE; } SLIM_INFO(dev, "Slim runtime resume: ret %d\n", ret); return ret; } #ifdef CONFIG_PM_SLEEP static int ngd_slim_runtime_suspend(struct device *device) { struct platform_device *pdev = to_platform_device(device); struct msm_slim_ctrl *dev = platform_get_drvdata(pdev); int ret = 0; ret = ngd_slim_power_down(dev); if (ret) { if (ret != -EBUSY) SLIM_INFO(dev, "slim resource not idle:%d\n", ret); dev->state = MSM_CTRL_AWAKE; } else { dev->state = MSM_CTRL_ASLEEP; } SLIM_INFO(dev, "Slim runtime suspend: ret %d\n", ret); return ret; } static int ngd_slim_suspend(struct device *dev) { int ret = -EBUSY; struct platform_device *pdev = to_platform_device(dev); struct msm_slim_ctrl *cdev = platform_get_drvdata(pdev); if (!pm_runtime_enabled(dev) || (!pm_runtime_suspended(dev) && cdev->state == MSM_CTRL_IDLE)) { ret = ngd_slim_runtime_suspend(dev); /* * If runtime-PM still thinks it's active, then make sure its * status is in sync with HW status. * Since this suspend calls QMI api, it results in holding a * wakelock. That results in failure of first suspend. * Subsequent suspend should not call low-power transition * again since the HW is already in suspended state. */ if (!ret) { pm_runtime_disable(dev); pm_runtime_set_suspended(dev); pm_runtime_enable(dev); } } if (ret == -EBUSY) { /* * There is a possibility that some audio stream is active * during suspend. We dont want to return suspend failure in * that case so that display and relevant components can still * go to suspend. * If there is some other error, then it should be passed-on * to system level suspend */ ret = 0; } SLIM_INFO(cdev, "system suspend\n"); return ret; } static int ngd_slim_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct msm_slim_ctrl *cdev = platform_get_drvdata(pdev); /* * Rely on runtime-PM to call resume in case it is enabled. * Even if it's not enabled, rely on 1st client transaction to do * clock/power on */ SLIM_INFO(cdev, "system resume\n"); return 0; } #endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops ngd_slim_dev_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS( ngd_slim_suspend, ngd_slim_resume ) SET_RUNTIME_PM_OPS( ngd_slim_runtime_suspend, ngd_slim_runtime_resume, ngd_slim_runtime_idle ) }; static struct of_device_id ngd_slim_dt_match[] = { { .compatible = "qcom,slim-ngd", }, {} }; static struct platform_driver ngd_slim_driver = { .probe = ngd_slim_probe, .remove = ngd_slim_remove, .driver = { .name = NGD_SLIM_NAME, .owner = THIS_MODULE, .pm = &ngd_slim_dev_pm_ops, .of_match_table = ngd_slim_dt_match, }, }; static int ngd_slim_init(void) { return platform_driver_register(&ngd_slim_driver); } late_initcall(ngd_slim_init); static void ngd_slim_exit(void) { platform_driver_unregister(&ngd_slim_driver); } module_exit(ngd_slim_exit); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("MSM Slimbus controller"); MODULE_ALIAS("platform:msm-slim-ngd");
define(["./_base", "dojo/_base/lang", "./matrix"], function (g, lang, m){ function eq(/* Number */ a, /* Number */ b){ // summary: // compare two FP numbers for equality return Math.abs(a - b) <= 1e-6 * (Math.abs(a) + Math.abs(b)); // Boolean } function calcFromValues(/* Number */ r1, /* Number */ m1, /* Number */ r2, /* Number */ m2){ // summary: // uses two close FP ration and their original magnitudes to approximate the result if(!isFinite(r1)){ return r2; // Number }else if(!isFinite(r2)){ return r1; // Number } m1 = Math.abs(m1); m2 = Math.abs(m2); return (m1 * r1 + m2 * r2) / (m1 + m2); // Number } function transpose(matrix){ // matrix: dojox/gfx/matrix.Matrix2D // a 2D matrix-like object var M = new m.Matrix2D(matrix); return lang.mixin(M, {dx: 0, dy: 0, xy: M.yx, yx: M.xy}); // dojox/gfx/matrix.Matrix2D } function scaleSign(/* dojox/gfx/matrix.Matrix2D */ matrix){ return (matrix.xx * matrix.yy < 0 || matrix.xy * matrix.yx > 0) ? -1 : 1; // Number } function eigenvalueDecomposition(matrix){ // matrix: dojox/gfx/matrix.Matrix2D // a 2D matrix-like object var M = m.normalize(matrix), b = -M.xx - M.yy, c = M.xx * M.yy - M.xy * M.yx, d = Math.sqrt(b * b - 4 * c), l1 = -(b + (b < 0 ? -d : d)) / 2, l2 = c / l1, vx1 = M.xy / (l1 - M.xx), vy1 = 1, vx2 = M.xy / (l2 - M.xx), vy2 = 1; if(eq(l1, l2)){ vx1 = 1, vy1 = 0, vx2 = 0, vy2 = 1; } if(!isFinite(vx1)){ vx1 = 1, vy1 = (l1 - M.xx) / M.xy; if(!isFinite(vy1)){ vx1 = (l1 - M.yy) / M.yx, vy1 = 1; if(!isFinite(vx1)){ vx1 = 1, vy1 = M.yx / (l1 - M.yy); } } } if(!isFinite(vx2)){ vx2 = 1, vy2 = (l2 - M.xx) / M.xy; if(!isFinite(vy2)){ vx2 = (l2 - M.yy) / M.yx, vy2 = 1; if(!isFinite(vx2)){ vx2 = 1, vy2 = M.yx / (l2 - M.yy); } } } var d1 = Math.sqrt(vx1 * vx1 + vy1 * vy1), d2 = Math.sqrt(vx2 * vx2 + vy2 * vy2); if(!isFinite(vx1 /= d1)){ vx1 = 0; } if(!isFinite(vy1 /= d1)){ vy1 = 0; } if(!isFinite(vx2 /= d2)){ vx2 = 0; } if(!isFinite(vy2 /= d2)){ vy2 = 0; } return { // Object value1: l1, value2: l2, vector1: {x: vx1, y: vy1}, vector2: {x: vx2, y: vy2} }; } function decomposeSR(/* dojox/gfx/matrix.Matrix2D */ M, /* Object */ result){ // summary: // decomposes a matrix into [scale, rotate]; no checks are done. var sign = scaleSign(M), a = result.angle1 = (Math.atan2(M.yx, M.yy) + Math.atan2(-sign * M.xy, sign * M.xx)) / 2, cos = Math.cos(a), sin = Math.sin(a); result.sx = calcFromValues(M.xx / cos, cos, -M.xy / sin, sin); result.sy = calcFromValues(M.yy / cos, cos, M.yx / sin, sin); return result; // Object } function decomposeRS(/* dojox/gfx/matrix.Matrix2D */ M, /* Object */ result){ // summary: // decomposes a matrix into [rotate, scale]; no checks are done var sign = scaleSign(M), a = result.angle2 = (Math.atan2(sign * M.yx, sign * M.xx) + Math.atan2(-M.xy, M.yy)) / 2, cos = Math.cos(a), sin = Math.sin(a); result.sx = calcFromValues(M.xx / cos, cos, M.yx / sin, sin); result.sy = calcFromValues(M.yy / cos, cos, -M.xy / sin, sin); return result; // Object } return g.decompose = function(matrix){ // summary: // Decompose a 2D matrix into translation, scaling, and rotation components. // description: // This function decompose a matrix into four logical components: // translation, rotation, scaling, and one more rotation using SVD. // The components should be applied in following order: // | [translate, rotate(angle2), scale, rotate(angle1)] // matrix: dojox/gfx/matrix.Matrix2D // a 2D matrix-like object var M = m.normalize(matrix), result = {dx: M.dx, dy: M.dy, sx: 1, sy: 1, angle1: 0, angle2: 0}; // detect case: [scale] if(eq(M.xy, 0) && eq(M.yx, 0)){ return lang.mixin(result, {sx: M.xx, sy: M.yy}); // Object } // detect case: [scale, rotate] if(eq(M.xx * M.yx, -M.xy * M.yy)){ return decomposeSR(M, result); // Object } // detect case: [rotate, scale] if(eq(M.xx * M.xy, -M.yx * M.yy)){ return decomposeRS(M, result); // Object } // do SVD var MT = transpose(M), u = eigenvalueDecomposition([M, MT]), v = eigenvalueDecomposition([MT, M]), U = new m.Matrix2D({xx: u.vector1.x, xy: u.vector2.x, yx: u.vector1.y, yy: u.vector2.y}), VT = new m.Matrix2D({xx: v.vector1.x, xy: v.vector1.y, yx: v.vector2.x, yy: v.vector2.y}), S = new m.Matrix2D([m.invert(U), M, m.invert(VT)]); decomposeSR(VT, result); S.xx *= result.sx; S.yy *= result.sy; decomposeRS(U, result); S.xx *= result.sx; S.yy *= result.sy; return lang.mixin(result, {sx: S.xx, sy: S.yy}); // Object }; });
<!doctype html> <html> <title>flex min-width:auto by yisi</title> <link rel="author" title="yisi" href="mailto:50167214@qq.com"> <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#min-size-auto" /> <link rel="match" href="flex-min-auto-rel.html"> <meta name="assert" content="min-width of flex item should equals width of floats elment." /> <style> div{ width:1em; height:50px; background:#39F; border:1px solid red; } span{ border:1px solid #000; float:left; height:95%;} </style> </head> <body> <div><span>FlexibleFlexibleFlexibleFlexibleFlexible</span></div> </body> </html>
<!DOCTYPE HTML> <html> <head> <meta charset=utf-8> <title>CSS Test: localized font-family name and fallbacks</title> <link rel="author" title="Takuya Oikawa" href="mailto:takoratta@gmail.com"/> <link rel="help" href="https://drafts.csswg.org/css-fonts/" /> <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-family-prop"/> <!-- (from the spec) Some font formats allow fonts to carry multiple localizations of the family name. User agents must recognize and correctly match all of these names independent of the underlying platform localization, system API used or document encoding: --> <style type="text/css"> p { color: navy; font-size: 4em; margin: 0.25em; } .a span.test { font-family: "無いフォント", "Times New Roman"; } .a span.control { font-family: "Times New Roman"; } .b span.test { font-family: "無いフォント", "Arial"; } .b span.control { font-family: "Arial"; } .c span.test { font-family: "無いフォント", "Courier New"; } .c span.control { font-family: "Courier New"; } </style> </head> <body> <div>In each of the three lines below, the two words should look identical.</div> <p class="a"> <span class="test">&#x0162;&#x0119;&#x015F;&#x0163;</span> &mdash; <span class="control">&#x0162;&#x0119;&#x015F;&#x0163;</span> </p> <p class="b"> <span class="test">&#x0162;&#x0119;&#x015F;&#x0163;</span> &mdash; <span class="control">&#x0162;&#x0119;&#x015F;&#x0163;</span> </p> <p class="c"> <span class="test">&#x0162;&#x0119;&#x015F;&#x0163;</span> &mdash; <span class="control">&#x0162;&#x0119;&#x015F;&#x0163;</span> </p> </body> </html>
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distribution, and on the openscenegraph.org website. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * OpenSceneGraph Public License for more details. */ #include <osgTerrain/Locator> #include <osg/Notify> #include <list> using namespace osgTerrain; ////////////////////////////////////////////////////////////////////////////// // // Locator // Locator::Locator(): _coordinateSystemType(PROJECTED), _ellipsoidModel(new osg::EllipsoidModel()), _definedInFile(false), _transformScaledByResolution(false) { } Locator::Locator(const Locator& locator,const osg::CopyOp& copyop): osg::Object(locator,copyop), _coordinateSystemType(locator._coordinateSystemType), _format(locator._format), _cs(locator._cs), _ellipsoidModel(locator._ellipsoidModel), _transform(locator._transform), _definedInFile(locator._definedInFile), _transformScaledByResolution(locator._transformScaledByResolution) { } Locator::~Locator() { } void Locator::setTransformAsExtents(double minX, double minY, double maxX, double maxY) { _transform.set(maxX-minX, 0.0, 0.0, 0.0, 0.0, maxY-minY, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, minX, minY, 0.0, 1.0); _inverse.invert(_transform); } bool Locator::computeLocalBounds(Locator& source, osg::Vec3d& bottomLeft, osg::Vec3d& topRight) const { typedef std::list<osg::Vec3d> Corners; Corners corners; osg::Vec3d cornerNDC; if (Locator::convertLocalCoordBetween(source, osg::Vec3d(0.0,0.0,0.0), *this, cornerNDC)) { corners.push_back(cornerNDC); } if (Locator::convertLocalCoordBetween(source, osg::Vec3d(1.0,0.0,0.0), *this, cornerNDC)) { corners.push_back(cornerNDC); } if (Locator::convertLocalCoordBetween(source, osg::Vec3d(0.0,1.0,0.0), *this, cornerNDC)) { corners.push_back(cornerNDC); } if (Locator::convertLocalCoordBetween(source, osg::Vec3d(1.0,1.0,0.0), *this, cornerNDC)) { corners.push_back(cornerNDC); } if (corners.empty()) return false; Corners::iterator itr = corners.begin(); bottomLeft.x() = topRight.x() = itr->x(); bottomLeft.y() = topRight.y() = itr->y(); ++itr; for(; itr != corners.end(); ++itr) { bottomLeft.x() = osg::minimum( bottomLeft.x(), itr->x()); bottomLeft.y() = osg::minimum( bottomLeft.y(), itr->y()); topRight.x() = osg::maximum( topRight.x(), itr->x()); topRight.y() = osg::maximum( topRight.y(), itr->y()); } return true; } bool Locator::orientationOpenGL() const { return _transform(0,0) * _transform(1,1) >= 0.0; } bool Locator::convertLocalToModel(const osg::Vec3d& local, osg::Vec3d& world) const { switch(_coordinateSystemType) { case(GEOCENTRIC): { osg::Vec3d geographic = local * _transform; _ellipsoidModel->convertLatLongHeightToXYZ(geographic.y(), geographic.x(), geographic.z(), world.x(), world.y(), world.z()); return true; } case(GEOGRAPHIC): { world = local * _transform; return true; } case(PROJECTED): { world = local * _transform; return true; } } return false; } bool Locator::convertModelToLocal(const osg::Vec3d& world, osg::Vec3d& local) const { switch(_coordinateSystemType) { case(GEOCENTRIC): { double longitude, latitude, height; _ellipsoidModel->convertXYZToLatLongHeight(world.x(), world.y(), world.z(), latitude, longitude, height ); local = osg::Vec3d(longitude, latitude, height) * _inverse; return true; } case(GEOGRAPHIC): { local = world * _inverse; return true; } case(PROJECTED): { local = world * _inverse; return true; } } return false; }
/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. =============================================================================*/ #ifndef CTKOBJECTCLASSDEFINITION_H #define CTKOBJECTCLASSDEFINITION_H #include "ctkAttributeDefinition.h" /** * \ingroup Metatype * * Description for the data type information of an objectclass. */ struct ctkObjectClassDefinition { enum Filter { /** * Argument for <code>getAttributeDefinitions()</code>. * <p> * <code>REQUIRED</code> indicates that only the required definitions are * returned. */ REQUIRED, /** * Argument for <code>getAttributeDefinitions()</code>. * <p> * <code>OPTIONAL</code> indicates that only the optional definitions are * returned. */ OPTIONAL, /** * Argument for <code>getAttributeDefinitions()</code>. * <p> * <code>ALL</code> indicates that all the definitions are returned. */ ALL }; virtual ~ctkObjectClassDefinition() {} /** * Return the name of this object class. * * The name may be localized. * * @return The name of this object class. */ virtual QString getName() const = 0; /** * Return the id of this object class. * * <p> * <code>ctkObjectClassDefintion</code> objects share a global namespace in the * registry. They share this aspect with LDAP/X.500 attributes. In these * standards the OSI Object Identifier (OID) is used to uniquely identify * object classes. If such an OID exists, (which can be requested at several * standard organisations and many companies already have a node in the * tree) it can be returned here. Otherwise, a unique id should be returned * which can be a class name combined with a reverse domain name, or generated with a * GUID algorithm. Note that all LDAP defined object classes already have an * OID associated. It is strongly advised to define the object classes from * existing LDAP schemes which will give the OID for free. Many such schemes * exist ranging from postal addresses to DHCP parameters. * * @return The id of this object class. */ virtual QString getID() const = 0; /** * Return a description of this object class. * * The description may be localized. * * @return The description of this object class. */ virtual QString getDescription() const = 0; /** * Return the attribute definitions for this object class. * * <p> * Return a set of attributes. The filter parameter can distinguish between * <code>ALL</code>,<code>REQUIRED</code> or the <code>OPTIONAL</code> * attributes. * * @param filter <code>ALL</code>,<code>REQUIRED</code>,<code>OPTIONAL</code> * @return A list of attribute definitions, which is empty if no * attributes are selected */ virtual QList<ctkAttributeDefinitionPtr> getAttributeDefinitions(Filter filter) = 0; /** * Return a QByteArray object that can be used to create an * icon from. * * <p> * Indicate the size and return a QByteAray object containing * an icon. The returned icon maybe larger or smaller than the indicated * size. * * <p> * The icon may depend on the localization. * * @param size Requested size of an icon, e.g. a 16x16 pixels icon then size = * 16 * @return A QByteArray holding an icon or an empty QByteArray. */ virtual QByteArray getIcon(int size) const = 0; }; /** * \ingroup Metatype */ typedef QSharedPointer<ctkObjectClassDefinition> ctkObjectClassDefinitionPtr; #endif // CTKOBJECTCLASSDEFINITION_H
// Copyright 2012 James Cooper. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package gorp provides a simple way to marshal Go structs to and from // SQL databases. It uses the database/sql package, and should work with any // compliant database/sql driver. // // Source code and project home: // https://github.com/go-gorp/gorp // package gorp import ( "bytes" "fmt" "reflect" "strings" ) // TableMap represents a mapping between a Go struct and a database table // Use dbmap.AddTable() or dbmap.AddTableWithName() to create these type TableMap struct { // Name of database table. TableName string SchemaName string gotype reflect.Type Columns []*ColumnMap keys []*ColumnMap indexes []*IndexMap uniqueTogether [][]string version *ColumnMap insertPlan bindPlan updatePlan bindPlan deletePlan bindPlan getPlan bindPlan dbmap *DbMap } // ResetSql removes cached insert/update/select/delete SQL strings // associated with this TableMap. Call this if you've modified // any column names or the table name itself. func (t *TableMap) ResetSql() { t.insertPlan = bindPlan{} t.updatePlan = bindPlan{} t.deletePlan = bindPlan{} t.getPlan = bindPlan{} } // SetKeys lets you specify the fields on a struct that map to primary // key columns on the table. If isAutoIncr is set, result.LastInsertId() // will be used after INSERT to bind the generated id to the Go struct. // // Automatically calls ResetSql() to ensure SQL statements are regenerated. // // Panics if isAutoIncr is true, and fieldNames length != 1 // func (t *TableMap) SetKeys(isAutoIncr bool, fieldNames ...string) *TableMap { if isAutoIncr && len(fieldNames) != 1 { panic(fmt.Sprintf( "gorp: SetKeys: fieldNames length must be 1 if key is auto-increment. (Saw %v fieldNames)", len(fieldNames))) } t.keys = make([]*ColumnMap, 0) for _, name := range fieldNames { colmap := t.ColMap(name) colmap.isPK = true colmap.isAutoIncr = isAutoIncr t.keys = append(t.keys, colmap) } t.ResetSql() return t } // SetUniqueTogether lets you specify uniqueness constraints across multiple // columns on the table. Each call adds an additional constraint for the // specified columns. // // Automatically calls ResetSql() to ensure SQL statements are regenerated. // // Panics if fieldNames length < 2. // func (t *TableMap) SetUniqueTogether(fieldNames ...string) *TableMap { if len(fieldNames) < 2 { panic(fmt.Sprintf( "gorp: SetUniqueTogether: must provide at least two fieldNames to set uniqueness constraint.")) } columns := make([]string, 0) for _, name := range fieldNames { columns = append(columns, name) } t.uniqueTogether = append(t.uniqueTogether, columns) t.ResetSql() return t } // ColMap returns the ColumnMap pointer matching the given struct field // name. It panics if the struct does not contain a field matching this // name. func (t *TableMap) ColMap(field string) *ColumnMap { col := colMapOrNil(t, field) if col == nil { e := fmt.Sprintf("No ColumnMap in table %s type %s with field %s", t.TableName, t.gotype.Name(), field) panic(e) } return col } func colMapOrNil(t *TableMap, field string) *ColumnMap { for _, col := range t.Columns { if col.fieldName == field || col.ColumnName == field { return col } } return nil } // IdxMap returns the IndexMap pointer matching the given index name. func (t *TableMap) IdxMap(field string) *IndexMap { for _, idx := range t.indexes { if idx.IndexName == field { return idx } } return nil } // AddIndex registers the index with gorp for specified table with given parameters. // This operation is idempotent. If index is already mapped, the // existing *IndexMap is returned // Function will panic if one of the given for index columns does not exists // // Automatically calls ResetSql() to ensure SQL statements are regenerated. // func (t *TableMap) AddIndex(name string, idxtype string, columns []string) *IndexMap { // check if we have a index with this name already for _, idx := range t.indexes { if idx.IndexName == name { return idx } } for _, icol := range columns { if res := t.ColMap(icol); res == nil { e := fmt.Sprintf("No ColumnName in table %s to create index on", t.TableName) panic(e) } } idx := &IndexMap{IndexName: name, Unique: false, IndexType: idxtype, columns: columns} t.indexes = append(t.indexes, idx) t.ResetSql() return idx } // SetVersionCol sets the column to use as the Version field. By default // the "Version" field is used. Returns the column found, or panics // if the struct does not contain a field matching this name. // // Automatically calls ResetSql() to ensure SQL statements are regenerated. func (t *TableMap) SetVersionCol(field string) *ColumnMap { c := t.ColMap(field) t.version = c t.ResetSql() return c } // SqlForCreateTable gets a sequence of SQL commands that will create // the specified table and any associated schema func (t *TableMap) SqlForCreate(ifNotExists bool) string { s := bytes.Buffer{} dialect := t.dbmap.Dialect if strings.TrimSpace(t.SchemaName) != "" { schemaCreate := "create schema" if ifNotExists { s.WriteString(dialect.IfSchemaNotExists(schemaCreate, t.SchemaName)) } else { s.WriteString(schemaCreate) } s.WriteString(fmt.Sprintf(" %s;", t.SchemaName)) } tableCreate := "create table" if ifNotExists { s.WriteString(dialect.IfTableNotExists(tableCreate, t.SchemaName, t.TableName)) } else { s.WriteString(tableCreate) } s.WriteString(fmt.Sprintf(" %s (", dialect.QuotedTableForQuery(t.SchemaName, t.TableName))) x := 0 for _, col := range t.Columns { if !col.Transient { if x > 0 { s.WriteString(", ") } stype := dialect.ToSqlType(col.gotype, col.MaxSize, col.isAutoIncr) s.WriteString(fmt.Sprintf("%s %s", dialect.QuoteField(col.ColumnName), stype)) if col.isPK || col.isNotNull { s.WriteString(" not null") } if col.isPK && len(t.keys) == 1 { s.WriteString(" primary key") } if col.Unique { s.WriteString(" unique") } if col.isAutoIncr { s.WriteString(fmt.Sprintf(" %s", dialect.AutoIncrStr())) } x++ } } if len(t.keys) > 1 { s.WriteString(", primary key (") for x := range t.keys { if x > 0 { s.WriteString(", ") } s.WriteString(dialect.QuoteField(t.keys[x].ColumnName)) } s.WriteString(")") } if len(t.uniqueTogether) > 0 { for _, columns := range t.uniqueTogether { s.WriteString(", unique (") for i, column := range columns { if i > 0 { s.WriteString(", ") } s.WriteString(dialect.QuoteField(column)) } s.WriteString(")") } } s.WriteString(") ") s.WriteString(dialect.CreateTableSuffix()) s.WriteString(dialect.QuerySuffix()) return s.String() }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <base href="../../" /> <script src="list.js"></script> <script src="page.js"></script> <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> [page:Object3D] &rarr; <h1>[name]</h1> <div class="desc">A mesh that has a [page:Skeleton] with [page:Bone bones] that can then be used to animate the vertices of the geometry.</div> <iframe id="scene" src="scenes/bones-browser.html"></iframe> <script> // iOS iframe auto-resize workaround if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) { var scene = document.getElementById( 'scene' ); scene.style.width = getComputedStyle( scene ).width; scene.style.height = getComputedStyle( scene ).height; scene.setAttribute( 'scrolling', 'no' ); } </script> <h2>Example</h2> <code> var geometry = new THREE.CylinderGeometry( 5, 5, 5, 5, 15, 5, 30 ); //Create the skin indices and skin weights for ( var i = 0; i < geometry.vertices.length; i ++ ) { // Imaginary functions to calculate the indices and weights // This part will need to be changed depending your skeleton and model var skinIndex = calculateSkinIndex( geometry.vertices, i ); var skinWeight = calculateSkinWeight( geometry.vertices, i ); // Ease between each bone geometry.skinIndices.push( new THREE.Vector4( skinIndex, skinIndex + 1, 0, 0 ) ); geometry.skinWeights.push( new THREE.Vector4( 1 - skinWeight, skinWeight, 0, 0 ) ); } var mesh = THREE.SkinnedMesh( geometry, material ); // See example from THREE.Skeleton for the armSkeleton var rootBone = armSkeleton.bones[ 0 ]; mesh.add( rootBone ); // Bind the skeleton to the mesh mesh.bind( armSkeleton ); // Move the bones and manipulate the model armSkeleton.bones[ 0 ].rotation.x = -0.1; armSkeleton.bones[ 1 ].rotation.x = 0.2; </code> <h2>Constructor</h2> <h3>[name]( [page:Geometry geometry], [page:Material material], [page:boolean useVertexTexture] )</h3> <div> geometry — An instance of [page:Geometry]. [page:Geometry.skinIndices] and [page:Geometry.skinWeights] should be set.<br /> material — An instance of [page:Material] (optional).<br /> useVertexTexture -- Defines whether a vertex texture can be used (optional). </div> <h2>Properties</h2> <h3>[property:array bones]</h3> <div> This contains the array of bones for this mesh. These should be set in the constructor. </div> <h3>[property:Matrix4 identityMatrix]</h3> <div> This is an identityMatrix to calculate the bones matrices from. </div> <h3>[property:boolean useVertexTexture]</h3> <div> The boolean defines whether a vertex texture is used to calculate the bones. This boolean shouldn't be changed after constructor. </div> <h3>[property:array boneMatrices]</h3> <div> This array of matrices contains the matrices of the bones. These get calculated in the constructor. </div> <h3>[property:string bindMode]</h3> <div> Either "attached" or "detached". "attached" uses the [page:SkinnedMesh.matrixWorld] property for the base transform matrix of the bones. "detached" uses the [page:SkinnedMesh.bindMatrix]. </div> <h3>[property:Matrix4 bindMatrix]</h3> <div> The base matrix that is used for the bound bone transforms. </div> <h3>[property:Matrix4 inverseBindMatrix]</h3> <div> The inverse of the bindMatrix. </div> <h2>Methods</h2> <h3>[method:null bind]( [page:Skeleton skeleton], [page:Matrix4 bindMatrix] )</h3> <div> skeleton — [page:Skeleton]<br/> bindMatrix — [page:Matrix4] that represents the base transform of the skeleton </div> <div> Bind a skeleton to the skinned mesh. The bindMatrix gets saved to .bindMatrix property and the .bindMatrixInverse gets calculated. </div> <h3>[method:null normalizeSkinWeights]()</h3> <div> Normalizes the [page:Geometry.skinWeights] vectors. Does not affect [page:BufferGeometry]. </div> <h3>[method:null pose]()</h3> <div> This method sets the skinned mesh in the rest pose. </div> <h3>[method:Bone addBone]( [page:Bone bone] )</h3> <div> bone — This is the bone that needs to be added. (optional) </div> <div> This method adds the bone to the skinned mesh when it is provided. It creates a new bone and adds that when no bone is given. </div> <h3>[method:SkinnedMesh clone]()</h3> <div> Returns a clone of this SkinnedMesh object and its descendants. </div> <h2>Source</h2> [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] </body> </html>
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.route53domains.model.transform; import java.util.Map; import java.util.Map.Entry; import com.amazonaws.services.route53domains.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * Update Domain Contact Result JSON Unmarshaller */ public class UpdateDomainContactResultJsonUnmarshaller implements Unmarshaller<UpdateDomainContactResult, JsonUnmarshallerContext> { public UpdateDomainContactResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateDomainContactResult updateDomainContactResult = new UpdateDomainContactResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("OperationId", targetDepth)) { context.nextToken(); updateDomainContactResult.setOperationId(StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return updateDomainContactResult; } private static UpdateDomainContactResultJsonUnmarshaller instance; public static UpdateDomainContactResultJsonUnmarshaller getInstance() { if (instance == null) instance = new UpdateDomainContactResultJsonUnmarshaller(); return instance; } }
<!-- $URL:$ $Id:$ Copyright (c) 2006-2009 The Sakai Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <wicket:panel> <a wicket:id="link"> <img wicket:id="content" style="display: none;"></img> </a> <form wicket:id="chartForm"> <input type="hidden" wicket:id="maxWidth" class="maxWidth"/> <input type="hidden" wicket:id="maxHeight" class="maxHeight"/> </form> </wicket:panel>
// @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 declare var x, y, z, a, b, c; async function propertyAccess0() { y = await x.a; } async function propertyAccess1() { y = (await x).a; } async function callExpression0() { await x(y, z); }
a, a:link { color: #000000; } a:visited { color: #000000; } h1 img { margin: 0px; } #nav { clear: left; overflow: hidden; } #nav a.option { width: 130px; height: 1.2em; display: block; } #nav a.selected { background-color: #A7C942; color:#000000; font-weight: bold; /* this avoids text wrapping when highlighted */ letter-spacing: -0.05em; margin-left: -5px; padding: 5px; -moz-border-radius: 0.4em 0.0em 0.0em 0.4em; overflow: hidden; } #aux { border-left: 2px solid #EAF2D3; padding: 0px 0px 0px 0px; padding-right:0; margin-left: 142px; } .progress-bar-vertical,.progress-bar-horizontal { position: relative; border: 1px solid #949dad; background: white; padding: 1px; overflow: hidden; margin: 2px; } .progress-bar-horizontal { width: 150px; height: 14px; } .progress-bar-vertical { width: 14px; height: 200px; } .progress-bar-thumb { position: relative; background: #d4e4ff; overflow: hidden; width: 100%; height: 100%; } div#footer { width: 100%; height: 4em; color: #5f5f5f; border-top: 0.1em solid #dfdfdf; font-size: 92%; line-height: 140%; margin: 0px 1em; margin-top: -5.5em; padding: 1.4em 1em 0 1em; position: relative; overflow: hidden; text-align: center; }
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.facebook.presto.operator.aggregation.state; import com.facebook.presto.util.array.ObjectBigArray; import io.airlift.stats.cardinality.HyperLogLog; import static java.util.Objects.requireNonNull; public class HyperLogLogStateFactory implements AccumulatorStateFactory<HyperLogLogState> { @Override public HyperLogLogState createSingleState() { return new SingleHyperLogLogState(); } @Override public Class<? extends HyperLogLogState> getSingleStateClass() { return SingleHyperLogLogState.class; } @Override public HyperLogLogState createGroupedState() { return new GroupedHyperLogLogState(); } @Override public Class<? extends HyperLogLogState> getGroupedStateClass() { return GroupedHyperLogLogState.class; } public static class GroupedHyperLogLogState extends AbstractGroupedAccumulatorState implements HyperLogLogState { private final ObjectBigArray<HyperLogLog> hlls = new ObjectBigArray<>(); private long size; @Override public void ensureCapacity(long size) { hlls.ensureCapacity(size); } @Override public HyperLogLog getHyperLogLog() { return hlls.get(getGroupId()); } @Override public void setHyperLogLog(HyperLogLog value) { requireNonNull(value, "value is null"); hlls.set(getGroupId(), value); } @Override public void addMemoryUsage(int value) { size += value; } @Override public long getEstimatedSize() { return size + hlls.sizeOf(); } } public static class SingleHyperLogLogState implements HyperLogLogState { private HyperLogLog hll; @Override public HyperLogLog getHyperLogLog() { return hll; } @Override public void setHyperLogLog(HyperLogLog value) { hll = value; } @Override public void addMemoryUsage(int value) { // noop } @Override public long getEstimatedSize() { if (hll == null) { return 0; } return hll.estimatedInMemorySize(); } } }
/** ****************************************************************************** * @file stm32f2xx_hal_hash.c * @author MCD Application Team * @version V1.1.3 * @date 29-June-2016 * @brief HASH HAL module driver. * This file provides firmware functions to manage the following * functionalities of the HASH peripheral: * + Initialization and de-initialization functions * + HASH/HMAC Processing functions by algorithm using polling mode * + HASH/HMAC functions by algorithm using interrupt mode * + HASH/HMAC functions by algorithm using DMA mode * + Peripheral State functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] The HASH HAL driver can be used as follows: (#)Initialize the HASH low level resources by implementing the HAL_HASH_MspInit(): (##) Enable the HASH interface clock using __HAL_RCC_HASH_CLK_ENABLE() (##) In case of using processing APIs based on interrupts (e.g. HAL_HMAC_SHA1_Start_IT()) (+++) Configure the HASH interrupt priority using HAL_NVIC_SetPriority() (+++) Enable the HASH IRQ handler using HAL_NVIC_EnableIRQ() (+++) In HASH IRQ handler, call HAL_HASH_IRQHandler() (##) In case of using DMA to control data transfer (e.g. HAL_HMAC_SHA1_Start_DMA()) (+++) Enable the DMAx interface clock using __DMAx_CLK_ENABLE() (+++) Configure and enable one DMA stream one for managing data transfer from memory to peripheral (input stream). Managing data transfer from peripheral to memory can be performed only using CPU (+++) Associate the initialized DMA handle to the HASH DMA handle using __HAL_LINKDMA() (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the DMA Stream using HAL_NVIC_SetPriority() and HAL_NVIC_EnableIRQ() (#)Initialize the HASH HAL using HAL_HASH_Init(). This function configures mainly: (##) The data type: 1-bit, 8-bit, 16-bit and 32-bit. (##) For HMAC, the encryption key. (##) For HMAC, the key size used for encryption. (#)Three processing functions are available: (##) Polling mode: processing APIs are blocking functions i.e. they process the data and wait till the digest computation is finished e.g. HAL_HASH_SHA1_Start() (##) Interrupt mode: encryption and decryption APIs are not blocking functions i.e. they process the data under interrupt e.g. HAL_HASH_SHA1_Start_IT() (##) DMA mode: processing APIs are not blocking functions and the CPU is not used for data transfer i.e. the data transfer is ensured by DMA e.g. HAL_HASH_SHA1_Start_DMA() (#)When the processing function is called at first time after HAL_HASH_Init() the HASH peripheral is initialized and processes the buffer in input. After that, the digest computation is started. When processing multi-buffer use the accumulate function to write the data in the peripheral without starting the digest computation. In last buffer use the start function to input the last buffer ans start the digest computation. (##) e.g. HAL_HASH_SHA1_Accumulate() : write 1st data buffer in the peripheral without starting the digest computation (##) write (n-1)th data buffer in the peripheral without starting the digest computation (##) HAL_HASH_SHA1_Start() : write (n)th data buffer in the peripheral and start the digest computation (#)In HMAC mode, there is no Accumulate API. Only Start API is available. (#)In case of using DMA, call the DMA start processing e.g. HAL_HASH_SHA1_Start_DMA(). After that, call the finish function in order to get the digest value e.g. HAL_HASH_SHA1_Finish() (#)Call HAL_HASH_DeInit() to deinitialize the HASH peripheral. @endverbatim ****************************************************************************** * @attention * * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2> * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f2xx_hal.h" /** @addtogroup STM32F2xx_HAL_Driver * @{ */ /** @defgroup HASH HASH * @brief HASH HAL module driver. * @{ */ #ifdef HAL_HASH_MODULE_ENABLED #if defined(STM32F215xx) || defined(STM32F217xx) /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /** @defgroup HASH_Private_Functions HASH Private Functions * @{ */ static void HASH_DMAXferCplt(DMA_HandleTypeDef *hdma); static void HASH_DMAError(DMA_HandleTypeDef *hdma); static void HASH_GetDigest(uint8_t *pMsgDigest, uint8_t Size); static void HASH_WriteData(uint8_t *pInBuffer, uint32_t Size); /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @addtogroup HASH_Private_Functions * @{ */ /** * @brief DMA HASH Input Data complete callback. * @param hdma: DMA handle * @retval None */ static void HASH_DMAXferCplt(DMA_HandleTypeDef *hdma) { HASH_HandleTypeDef* hhash = ( HASH_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; uint32_t inputaddr = 0U; uint32_t buffersize = 0U; if((HASH->CR & HASH_CR_MODE) != HASH_CR_MODE) { /* Disable the DMA transfer */ HASH->CR &= (uint32_t)(~HASH_CR_DMAE); /* Change HASH peripheral state */ hhash->State = HAL_HASH_STATE_READY; /* Call Input data transfer complete callback */ HAL_HASH_InCpltCallback(hhash); } else { /* Increment Interrupt counter */ hhash->HashInCount++; /* Disable the DMA transfer before starting the next transfer */ HASH->CR &= (uint32_t)(~HASH_CR_DMAE); if(hhash->HashInCount <= 2U) { /* In case HashInCount = 1, set the DMA to transfer data to HASH DIN register */ if(hhash->HashInCount == 1U) { inputaddr = (uint32_t)hhash->pHashInBuffPtr; buffersize = hhash->HashBuffSize; } /* In case HashInCount = 2, set the DMA to transfer key to HASH DIN register */ else if(hhash->HashInCount == 2U) { inputaddr = (uint32_t)hhash->Init.pKey; buffersize = hhash->Init.KeySize; } /* Configure the number of valid bits in last word of the message */ MODIFY_REG(HASH->STR, HASH_STR_NBLW, 8U * (buffersize % 4U)); /* Set the HASH DMA transfer complete */ hhash->hdmain->XferCpltCallback = HASH_DMAXferCplt; /* Enable the DMA In DMA Stream */ HAL_DMA_Start_IT(hhash->hdmain, inputaddr, (uint32_t)&HASH->DIN, (buffersize%4U ? (buffersize+3U)/4U:buffersize/4U)); /* Enable DMA requests */ HASH->CR |= (HASH_CR_DMAE); } else { /* Disable the DMA transfer */ HASH->CR &= (uint32_t)(~HASH_CR_DMAE); /* Reset the InCount */ hhash->HashInCount = 0U; /* Change HASH peripheral state */ hhash->State = HAL_HASH_STATE_READY; /* Call Input data transfer complete callback */ HAL_HASH_InCpltCallback(hhash); } } } /** * @brief DMA HASH communication error callback. * @param hdma: DMA handle * @retval None */ static void HASH_DMAError(DMA_HandleTypeDef *hdma) { HASH_HandleTypeDef* hhash = ( HASH_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; hhash->State= HAL_HASH_STATE_READY; HAL_HASH_ErrorCallback(hhash); } /** * @brief Writes the input buffer in data register. * @param pInBuffer: Pointer to input buffer * @param Size: The size of input buffer * @retval None */ static void HASH_WriteData(uint8_t *pInBuffer, uint32_t Size) { uint32_t buffercounter; uint32_t inputaddr = (uint32_t) pInBuffer; for(buffercounter = 0U; buffercounter < Size; buffercounter+=4U) { HASH->DIN = *(uint32_t*)inputaddr; inputaddr+=4U; } } /** * @brief Provides the message digest result. * @param pMsgDigest: Pointer to the message digest * @param Size: The size of the message digest in bytes * @retval None */ static void HASH_GetDigest(uint8_t *pMsgDigest, uint8_t Size) { uint32_t msgdigest = (uint32_t)pMsgDigest; switch(Size) { case 16U: /* Read the message digest */ *(uint32_t*)(msgdigest) = __REV(HASH->HR[0U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[1U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[2U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[3U]); break; case 20U: /* Read the message digest */ *(uint32_t*)(msgdigest) = __REV(HASH->HR[0U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[1U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[2U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[3U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[4U]); break; case 28U: /* Read the message digest */ *(uint32_t*)(msgdigest) = __REV(HASH->HR[0U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[1U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[2U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[3U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[4U]); break; case 32U: /* Read the message digest */ *(uint32_t*)(msgdigest) = __REV(HASH->HR[0U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[1U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[2U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[3U]); msgdigest+=4U; *(uint32_t*)(msgdigest) = __REV(HASH->HR[4U]); break; default: break; } } /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup HASH_Exported_Functions * @{ */ /** @addtogroup HASH_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions. * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Initialize the HASH according to the specified parameters in the HASH_InitTypeDef and creates the associated handle. (+) DeInitialize the HASH peripheral. (+) Initialize the HASH MSP. (+) DeInitialize HASH MSP. @endverbatim * @{ */ /** * @brief Initializes the HASH according to the specified parameters in the HASH_HandleTypeDef and creates the associated handle. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_Init(HASH_HandleTypeDef *hhash) { /* Check the hash handle allocation */ if(hhash == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_HASH_DATATYPE(hhash->Init.DataType)); if(hhash->State == HAL_HASH_STATE_RESET) { /* Allocate lock resource and initialize it */ hhash->Lock = HAL_UNLOCKED; /* Init the low level hardware */ HAL_HASH_MspInit(hhash); } /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Reset HashInCount, HashBuffSize and HashITCounter */ hhash->HashInCount = 0U; hhash->HashBuffSize = 0U; hhash->HashITCounter = 0U; /* Set the data type */ HASH->CR |= (uint32_t) (hhash->Init.DataType); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Set the default HASH phase */ hhash->Phase = HAL_HASH_PHASE_READY; /* Return function status */ return HAL_OK; } /** * @brief DeInitializes the HASH peripheral. * @note This API must be called before starting a new processing. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_DeInit(HASH_HandleTypeDef *hhash) { /* Check the HASH handle allocation */ if(hhash == NULL) { return HAL_ERROR; } /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Set the default HASH phase */ hhash->Phase = HAL_HASH_PHASE_READY; /* Reset HashInCount, HashBuffSize and HashITCounter */ hhash->HashInCount = 0U; hhash->HashBuffSize = 0U; hhash->HashITCounter = 0U; /* DeInit the low level hardware */ HAL_HASH_MspDeInit(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH MSP. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval None */ __weak void HAL_HASH_MspInit(HASH_HandleTypeDef *hhash) { /* Prevent unused argument(s) compilation warning */ UNUSED(hhash); /* NOTE: This function Should not be modified, when the callback is needed, the HAL_HASH_MspInit could be implemented in the user file */ } /** * @brief DeInitializes HASH MSP. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval None */ __weak void HAL_HASH_MspDeInit(HASH_HandleTypeDef *hhash) { /* Prevent unused argument(s) compilation warning */ UNUSED(hhash); /* NOTE: This function Should not be modified, when the callback is needed, the HAL_HASH_MspDeInit could be implemented in the user file */ } /** * @brief Input data transfer complete callback. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval None */ __weak void HAL_HASH_InCpltCallback(HASH_HandleTypeDef *hhash) { /* Prevent unused argument(s) compilation warning */ UNUSED(hhash); /* NOTE: This function Should not be modified, when the callback is needed, the HAL_HASH_InCpltCallback could be implemented in the user file */ } /** * @brief Data transfer Error callback. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval None */ __weak void HAL_HASH_ErrorCallback(HASH_HandleTypeDef *hhash) { /* Prevent unused argument(s) compilation warning */ UNUSED(hhash); /* NOTE: This function Should not be modified, when the callback is needed, the HAL_HASH_ErrorCallback could be implemented in the user file */ } /** * @brief Digest computation complete callback. It is used only with interrupt. * @note This callback is not relevant with DMA. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval None */ __weak void HAL_HASH_DgstCpltCallback(HASH_HandleTypeDef *hhash) { /* Prevent unused argument(s) compilation warning */ UNUSED(hhash); /* NOTE: This function Should not be modified, when the callback is needed, the HAL_HASH_DgstCpltCallback could be implemented in the user file */ } /** * @} */ /** @defgroup HASH_Exported_Functions_Group2 HASH processing functions using polling mode * @brief processing functions using polling mode * @verbatim =============================================================================== ##### HASH processing using polling mode functions##### =============================================================================== [..] This section provides functions allowing to calculate in polling mode the hash value using one of the following algorithms: (+) MD5 (+) SHA1 @endverbatim * @{ */ /** * @brief Initializes the HASH peripheral in MD5 mode then processes pInBuffer. The digest is available in pOutBuffer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is multiple of 64 bytes, appending the input buffer is possible. * If the Size is not multiple of 64 bytes, the padding is managed by hardware * and appending the input buffer is no more possible. * @param pOutBuffer: Pointer to the computed digest. Its size must be 16 bytes. * @param Timeout: Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_MD5_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout) { uint32_t tickstart = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the MD5 mode and reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_ALGOSELECTION_MD5 | HASH_CR_INIT; } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Write input buffer in data register */ HASH_WriteData(pInBuffer, Size); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /* Read the message digest */ HASH_GetDigest(pOutBuffer, 16U); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH peripheral in MD5 mode then writes the pInBuffer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is multiple of 64 bytes, appending the input buffer is possible. * If the Size is not multiple of 64 bytes, the padding is managed by hardware * and appending the input buffer is no more possible. * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_MD5_Accumulate(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) { /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the MD5 mode and reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_ALGOSELECTION_MD5 | HASH_CR_INIT; } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Write input buffer in data register */ HASH_WriteData(pInBuffer, Size); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH peripheral in SHA1 mode then processes pInBuffer. The digest is available in pOutBuffer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @param pOutBuffer: Pointer to the computed digest. Its size must be 20 bytes. * @param Timeout: Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_SHA1_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout) { uint32_t tickstart = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the SHA1 mode and reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_ALGOSELECTION_SHA1 | HASH_CR_INIT; } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Write input buffer in data register */ HASH_WriteData(pInBuffer, Size); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /* Read the message digest */ HASH_GetDigest(pOutBuffer, 20U); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH peripheral in SHA1 mode then processes pInBuffer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @note Input buffer size in bytes must be a multiple of 4 otherwise the digest computation is corrupted. * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_SHA1_Accumulate(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) { /* Check the parameters */ assert_param(IS_HASH_SHA1_BUFFER_SIZE(Size)); /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the SHA1 mode and reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_ALGOSELECTION_SHA1 | HASH_CR_INIT; } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Write input buffer in data register */ HASH_WriteData(pInBuffer, Size); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup HASH_Exported_Functions_Group3 HASH processing functions using interrupt mode * @brief processing functions using interrupt mode. * @verbatim =============================================================================== ##### HASH processing using interrupt mode functions ##### =============================================================================== [..] This section provides functions allowing to calculate in interrupt mode the hash value using one of the following algorithms: (+) MD5 (+) SHA1 @endverbatim * @{ */ /** * @brief Initializes the HASH peripheral in MD5 mode then processes pInBuffer. * The digest is available in pOutBuffer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @param pOutBuffer: Pointer to the computed digest. Its size must be 16 bytes. * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_MD5_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer) { uint32_t inputaddr; uint32_t outputaddr; uint32_t buffercounter; uint32_t inputcounter; /* Process Locked */ __HAL_LOCK(hhash); if(hhash->State == HAL_HASH_STATE_READY) { /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; hhash->HashInCount = Size; hhash->pHashInBuffPtr = pInBuffer; hhash->pHashOutBuffPtr = pOutBuffer; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the SHA1 mode */ HASH->CR |= HASH_ALGOSELECTION_MD5; /* Reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_CR_INIT; } /* Reset interrupt counter */ hhash->HashITCounter = 0U; /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Enable Interrupts */ HASH->IMR = (HASH_IT_DINI | HASH_IT_DCI); /* Return function status */ return HAL_OK; } if(__HAL_HASH_GET_FLAG(HASH_FLAG_DCIS)) { outputaddr = (uint32_t)hhash->pHashOutBuffPtr; /* Read the Output block from the Output FIFO */ *(uint32_t*)(outputaddr) = __REV(HASH->HR[0U]); outputaddr+=4U; *(uint32_t*)(outputaddr) = __REV(HASH->HR[1U]); outputaddr+=4U; *(uint32_t*)(outputaddr) = __REV(HASH->HR[2U]); outputaddr+=4U; *(uint32_t*)(outputaddr) = __REV(HASH->HR[3U]); if(hhash->HashInCount == 0U) { /* Disable Interrupts */ HASH->IMR = 0U; /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Call digest computation complete callback */ HAL_HASH_DgstCpltCallback(hhash); /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } } if(__HAL_HASH_GET_FLAG(HASH_FLAG_DINIS)) { if(hhash->HashInCount >= 68U) { inputaddr = (uint32_t)hhash->pHashInBuffPtr; /* Write the Input block in the Data IN register */ for(buffercounter = 0U; buffercounter < 64U; buffercounter+=4U) { HASH->DIN = *(uint32_t*)inputaddr; inputaddr+=4U; } if(hhash->HashITCounter == 0U) { HASH->DIN = *(uint32_t*)inputaddr; if(hhash->HashInCount >= 68U) { /* Decrement buffer counter */ hhash->HashInCount -= 68U; hhash->pHashInBuffPtr+= 68U; } else { hhash->HashInCount = 0U; hhash->pHashInBuffPtr+= hhash->HashInCount; } /* Set Interrupt counter */ hhash->HashITCounter = 1U; } else { /* Decrement buffer counter */ hhash->HashInCount -= 64U; hhash->pHashInBuffPtr+= 64U; } } else { /* Get the buffer address */ inputaddr = (uint32_t)hhash->pHashInBuffPtr; /* Get the buffer counter */ inputcounter = hhash->HashInCount; /* Disable Interrupts */ HASH->IMR &= ~(HASH_IT_DINI); /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(inputcounter); if((inputcounter > 4U) && (inputcounter%4U)) { inputcounter = (inputcounter+4U-inputcounter%4U); } else if ((inputcounter < 4U) && (inputcounter != 0U)) { inputcounter = 4U; } /* Write the Input block in the Data IN register */ for(buffercounter = 0U; buffercounter < inputcounter/4U; buffercounter++) { HASH->DIN = *(uint32_t*)inputaddr; inputaddr+=4U; } /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Reset buffer counter */ hhash->HashInCount = 0U; /* Call Input data transfer complete callback */ HAL_HASH_InCpltCallback(hhash); } } /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH peripheral in SHA1 mode then processes pInBuffer. * The digest is available in pOutBuffer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @param pOutBuffer: Pointer to the computed digest. Its size must be 20 bytes. * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_SHA1_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer) { uint32_t inputaddr; uint32_t outputaddr; uint32_t buffercounter; uint32_t inputcounter; /* Process Locked */ __HAL_LOCK(hhash); if(hhash->State == HAL_HASH_STATE_READY) { /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; hhash->HashInCount = Size; hhash->pHashInBuffPtr = pInBuffer; hhash->pHashOutBuffPtr = pOutBuffer; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the SHA1 mode */ HASH->CR |= HASH_ALGOSELECTION_SHA1; /* Reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_CR_INIT; } /* Reset interrupt counter */ hhash->HashITCounter = 0U; /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Enable Interrupts */ HASH->IMR = (HASH_IT_DINI | HASH_IT_DCI); /* Return function status */ return HAL_OK; } if(__HAL_HASH_GET_FLAG(HASH_FLAG_DCIS)) { outputaddr = (uint32_t)hhash->pHashOutBuffPtr; /* Read the Output block from the Output FIFO */ *(uint32_t*)(outputaddr) = __REV(HASH->HR[0U]); outputaddr+=4U; *(uint32_t*)(outputaddr) = __REV(HASH->HR[1U]); outputaddr+=4U; *(uint32_t*)(outputaddr) = __REV(HASH->HR[2U]); outputaddr+=4U; *(uint32_t*)(outputaddr) = __REV(HASH->HR[3U]); outputaddr+=4U; *(uint32_t*)(outputaddr) = __REV(HASH->HR[4U]); if(hhash->HashInCount == 0U) { /* Disable Interrupts */ HASH->IMR = 0U; /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Call digest computation complete callback */ HAL_HASH_DgstCpltCallback(hhash); /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } } if(__HAL_HASH_GET_FLAG(HASH_FLAG_DINIS)) { if(hhash->HashInCount >= 68U) { inputaddr = (uint32_t)hhash->pHashInBuffPtr; /* Write the Input block in the Data IN register */ for(buffercounter = 0U; buffercounter < 64U; buffercounter+=4U) { HASH->DIN = *(uint32_t*)inputaddr; inputaddr+=4U; } if(hhash->HashITCounter == 0U) { HASH->DIN = *(uint32_t*)inputaddr; if(hhash->HashInCount >= 68U) { /* Decrement buffer counter */ hhash->HashInCount -= 68U; hhash->pHashInBuffPtr+= 68U; } else { hhash->HashInCount = 0U; hhash->pHashInBuffPtr+= hhash->HashInCount; } /* Set Interrupt counter */ hhash->HashITCounter = 1U; } else { /* Decrement buffer counter */ hhash->HashInCount -= 64U; hhash->pHashInBuffPtr+= 64U; } } else { /* Get the buffer address */ inputaddr = (uint32_t)hhash->pHashInBuffPtr; /* Get the buffer counter */ inputcounter = hhash->HashInCount; /* Disable Interrupts */ HASH->IMR &= ~(HASH_IT_DINI); /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(inputcounter); if((inputcounter > 4U) && (inputcounter%4U)) { inputcounter = (inputcounter+4U-inputcounter%4U); } else if ((inputcounter < 4U) && (inputcounter != 0U)) { inputcounter = 4U; } /* Write the Input block in the Data IN register */ for(buffercounter = 0U; buffercounter < inputcounter/4; buffercounter++) { HASH->DIN = *(uint32_t*)inputaddr; inputaddr+=4U; } /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Reset buffer counter */ hhash->HashInCount = 0U; /* Call Input data transfer complete callback */ HAL_HASH_InCpltCallback(hhash); } } /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief This function handles HASH interrupt request. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval None */ void HAL_HASH_IRQHandler(HASH_HandleTypeDef *hhash) { switch(HASH->CR & HASH_CR_ALGO) { case HASH_ALGOSELECTION_MD5: HAL_HASH_MD5_Start_IT(hhash, NULL, 0U, NULL); break; case HASH_ALGOSELECTION_SHA1: HAL_HASH_SHA1_Start_IT(hhash, NULL, 0U, NULL); break; default: break; } } /** * @} */ /** @defgroup HASH_Exported_Functions_Group4 HASH processing functions using DMA mode * @brief processing functions using DMA mode. * @verbatim =============================================================================== ##### HASH processing using DMA mode functions ##### =============================================================================== [..] This section provides functions allowing to calculate in DMA mode the hash value using one of the following algorithms: (+) MD5 (+) SHA1 @endverbatim * @{ */ /** * @brief Initializes the HASH peripheral in MD5 mode then enables DMA to control data transfer. Use HAL_HASH_MD5_Finish() to get the digest. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_MD5_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) { uint32_t inputaddr = (uint32_t)pInBuffer; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the MD5 mode and reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_ALGOSELECTION_MD5 | HASH_CR_INIT; } /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Set the HASH DMA transfer complete callback */ hhash->hdmain->XferCpltCallback = HASH_DMAXferCplt; /* Set the DMA error callback */ hhash->hdmain->XferErrorCallback = HASH_DMAError; /* Enable the DMA In DMA Stream */ HAL_DMA_Start_IT(hhash->hdmain, inputaddr, (uint32_t)&HASH->DIN, (Size%4U ? (Size+3U)/4U:Size/4U)); /* Enable DMA requests */ HASH->CR |= (HASH_CR_DMAE); /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Returns the computed digest in MD5 mode * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pOutBuffer: Pointer to the computed digest. Its size must be 16 bytes. * @param Timeout: Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_MD5_Finish(HASH_HandleTypeDef *hhash, uint8_t* pOutBuffer, uint32_t Timeout) { uint32_t tickstart = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change HASH peripheral state */ hhash->State = HAL_HASH_STATE_BUSY; /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_CLR(HASH->SR, HASH_FLAG_DCIS)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /* Read the message digest */ HASH_GetDigest(pOutBuffer, 16U); /* Change HASH peripheral state */ hhash->State = HAL_HASH_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH peripheral in SHA1 mode then enables DMA to control data transfer. Use HAL_HASH_SHA1_Finish() to get the digest. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_SHA1_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) { uint32_t inputaddr = (uint32_t)pInBuffer; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Select the SHA1 mode and reset the HASH processor core, so that the HASH will be ready to compute the message digest of a new message */ HASH->CR |= HASH_ALGOSELECTION_SHA1; HASH->CR |= HASH_CR_INIT; } /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Set the HASH DMA transfer complete callback */ hhash->hdmain->XferCpltCallback = HASH_DMAXferCplt; /* Set the DMA error callback */ hhash->hdmain->XferErrorCallback = HASH_DMAError; /* Enable the DMA In DMA Stream */ HAL_DMA_Start_IT(hhash->hdmain, inputaddr, (uint32_t)&HASH->DIN, (Size%4 ? (Size+3)/4:Size/4)); /* Enable DMA requests */ HASH->CR |= (HASH_CR_DMAE); /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Returns the computed digest in SHA1 mode. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pOutBuffer: Pointer to the computed digest. Its size must be 20 bytes. * @param Timeout: Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_HASH_SHA1_Finish(HASH_HandleTypeDef *hhash, uint8_t* pOutBuffer, uint32_t Timeout) { uint32_t tickstart = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change HASH peripheral state */ hhash->State = HAL_HASH_STATE_BUSY; /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_CLR(HASH->SR, HASH_FLAG_DCIS)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /* Read the message digest */ HASH_GetDigest(pOutBuffer, 20U); /* Change HASH peripheral state */ hhash->State = HAL_HASH_STATE_READY; /* Process UnLock */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup HASH_Exported_Functions_Group5 HASH-MAC (HMAC) processing functions using polling mode * @brief HMAC processing functions using polling mode . * @verbatim =============================================================================== ##### HMAC processing using polling mode functions ##### =============================================================================== [..] This section provides functions allowing to calculate in polling mode the HMAC value using one of the following algorithms: (+) MD5 (+) SHA1 @endverbatim * @{ */ /** * @brief Initializes the HASH peripheral in HMAC MD5 mode * then processes pInBuffer. The digest is available in pOutBuffer * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @param pOutBuffer: Pointer to the computed digest. Its size must be 20 bytes. * @param Timeout: Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_HMAC_MD5_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout) { uint32_t tickstart = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Check if key size is greater than 64 bytes */ if(hhash->Init.KeySize > 64U) { /* Select the HMAC MD5 mode */ HASH->CR |= (HASH_ALGOSELECTION_MD5 | HASH_ALGOMODE_HMAC | HASH_HMAC_KEYTYPE_LONGKEY | HASH_CR_INIT); } else { /* Select the HMAC MD5 mode */ HASH->CR |= (HASH_ALGOSELECTION_MD5 | HASH_ALGOMODE_HMAC | HASH_CR_INIT); } } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /************************** STEP 1 ******************************************/ /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Write input buffer in data register */ HASH_WriteData(hhash->Init.pKey, hhash->Init.KeySize); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /************************** STEP 2 ******************************************/ /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Write input buffer in data register */ HASH_WriteData(pInBuffer, Size); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((HAL_GetTick() - tickstart ) > Timeout) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /************************** STEP 3 ******************************************/ /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Write input buffer in data register */ HASH_WriteData(hhash->Init.pKey, hhash->Init.KeySize); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((HAL_GetTick() - tickstart ) > Timeout) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /* Read the message digest */ HASH_GetDigest(pOutBuffer, 16U); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH peripheral in HMAC SHA1 mode * then processes pInBuffer. The digest is available in pOutBuffer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @param pOutBuffer: Pointer to the computed digest. Its size must be 20 bytes. * @param Timeout: Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_HMAC_SHA1_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout) { uint32_t tickstart = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Check if key size is greater than 64 bytes */ if(hhash->Init.KeySize > 64U) { /* Select the HMAC SHA1 mode */ HASH->CR |= (HASH_ALGOSELECTION_SHA1 | HASH_ALGOMODE_HMAC | HASH_HMAC_KEYTYPE_LONGKEY | HASH_CR_INIT); } else { /* Select the HMAC SHA1 mode */ HASH->CR |= (HASH_ALGOSELECTION_SHA1 | HASH_ALGOMODE_HMAC | HASH_CR_INIT); } } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /************************** STEP 1 ******************************************/ /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Write input buffer in data register */ HASH_WriteData(hhash->Init.pKey, hhash->Init.KeySize); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /************************** STEP 2 ******************************************/ /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(Size); /* Write input buffer in data register */ HASH_WriteData(pInBuffer, Size); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((HAL_GetTick() - tickstart ) > Timeout) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /************************** STEP 3 ******************************************/ /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Write input buffer in data register */ HASH_WriteData(hhash->Init.pKey, hhash->Init.KeySize); /* Start the digest calculation */ __HAL_HASH_START_DIGEST(); /* Get tick */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_SET(HASH->SR, HASH_FLAG_BUSY)) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((HAL_GetTick() - tickstart ) > Timeout) { /* Change state */ hhash->State = HAL_HASH_STATE_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hhash); return HAL_TIMEOUT; } } } /* Read the message digest */ HASH_GetDigest(pOutBuffer, 20U); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup HASH_Exported_Functions_Group6 HASH-MAC (HMAC) processing functions using DMA mode * @brief HMAC processing functions using DMA mode . * @verbatim =============================================================================== ##### HMAC processing using DMA mode functions ##### =============================================================================== [..] This section provides functions allowing to calculate in DMA mode the HMAC value using one of the following algorithms: (+) MD5 (+) SHA1 @endverbatim * @{ */ /** * @brief Initializes the HASH peripheral in HMAC MD5 mode * then enables DMA to control data transfer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @retval HAL status */ HAL_StatusTypeDef HAL_HMAC_MD5_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) { uint32_t inputaddr = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Save buffer pointer and size in handle */ hhash->pHashInBuffPtr = pInBuffer; hhash->HashBuffSize = Size; hhash->HashInCount = 0U; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Check if key size is greater than 64 bytes */ if(hhash->Init.KeySize > 64U) { /* Select the HMAC MD5 mode */ HASH->CR |= (HASH_ALGOSELECTION_MD5 | HASH_ALGOMODE_HMAC | HASH_HMAC_KEYTYPE_LONGKEY | HASH_CR_INIT); } else { /* Select the HMAC MD5 mode */ HASH->CR |= (HASH_ALGOSELECTION_MD5 | HASH_ALGOMODE_HMAC | HASH_CR_INIT); } } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Get the key address */ inputaddr = (uint32_t)(hhash->Init.pKey); /* Set the HASH DMA transfer complete callback */ hhash->hdmain->XferCpltCallback = HASH_DMAXferCplt; /* Set the DMA error callback */ hhash->hdmain->XferErrorCallback = HASH_DMAError; /* Enable the DMA In DMA Stream */ HAL_DMA_Start_IT(hhash->hdmain, inputaddr, (uint32_t)&HASH->DIN, (hhash->Init.KeySize%4 ? (hhash->Init.KeySize+3)/4:hhash->Init.KeySize/4)); /* Enable DMA requests */ HASH->CR |= (HASH_CR_DMAE); /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @brief Initializes the HASH peripheral in HMAC SHA1 mode * then enables DMA to control data transfer. * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @param pInBuffer: Pointer to the input buffer (buffer to be hashed). * @param Size: Length of the input buffer in bytes. * If the Size is not multiple of 64 bytes, the padding is managed by hardware. * @retval HAL status */ HAL_StatusTypeDef HAL_HMAC_SHA1_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) { uint32_t inputaddr = 0U; /* Process Locked */ __HAL_LOCK(hhash); /* Change the HASH state */ hhash->State = HAL_HASH_STATE_BUSY; /* Save buffer pointer and size in handle */ hhash->pHashInBuffPtr = pInBuffer; hhash->HashBuffSize = Size; hhash->HashInCount = 0U; /* Check if initialization phase has already been performed */ if(hhash->Phase == HAL_HASH_PHASE_READY) { /* Check if key size is greater than 64 bytes */ if(hhash->Init.KeySize > 64U) { /* Select the HMAC SHA1 mode */ HASH->CR |= (HASH_ALGOSELECTION_SHA1 | HASH_ALGOMODE_HMAC | HASH_HMAC_KEYTYPE_LONGKEY | HASH_CR_INIT); } else { /* Select the HMAC SHA1 mode */ HASH->CR |= (HASH_ALGOSELECTION_SHA1 | HASH_ALGOMODE_HMAC | HASH_CR_INIT); } } /* Set the phase */ hhash->Phase = HAL_HASH_PHASE_PROCESS; /* Configure the number of valid bits in last word of the message */ __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Get the key address */ inputaddr = (uint32_t)(hhash->Init.pKey); /* Set the HASH DMA transfer complete callback */ hhash->hdmain->XferCpltCallback = HASH_DMAXferCplt; /* Set the DMA error callback */ hhash->hdmain->XferErrorCallback = HASH_DMAError; /* Enable the DMA In DMA Stream */ HAL_DMA_Start_IT(hhash->hdmain, inputaddr, (uint32_t)&HASH->DIN, (hhash->Init.KeySize%4 ? (hhash->Init.KeySize+3)/4:hhash->Init.KeySize/4)); /* Enable DMA requests */ HASH->CR |= (HASH_CR_DMAE); /* Process Unlocked */ __HAL_UNLOCK(hhash); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup HASH_Exported_Functions_Group7 Peripheral State functions * @brief Peripheral State functions. * @verbatim =============================================================================== ##### Peripheral State functions ##### =============================================================================== [..] This subsection permits to get in run-time the status of the peripheral. @endverbatim * @{ */ /** * @brief return the HASH state * @param hhash: pointer to a HASH_HandleTypeDef structure that contains * the configuration information for HASH module * @retval HAL state */ HAL_HASH_StateTypeDef HAL_HASH_GetState(HASH_HandleTypeDef *hhash) { return hhash->State; } /** * @} */ /** * @} */ #endif /* STM32F215xx || STM32F217xx */ #endif /* HAL_HASH_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
-- !!! Check the Read instance for Array -- [Not strictly a 'deriving' issue] module Main( main ) where import Data.Array bds :: ((Int,Int),(Int,Int)) bds = ((1,4),(2,5)) type MyArr = Array (Int,Int) Int a :: MyArr a = array bds [ ((i,j), i+j) | (i,j) <- range bds ] main = do { putStrLn (show a) ; let { b :: MyArr ; b = read (show a) } ; putStrLn (show b) }
<?php /** * * This file is part of the phpBB Forum Software package. * * @copyright (c) phpBB Limited <https://www.phpbb.com> * @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ class mcp_main_info { function module() { return array( 'filename' => 'mcp_main', 'title' => 'MCP_MAIN', 'version' => '1.0.0', 'modes' => array( 'front' => array('title' => 'MCP_MAIN_FRONT', 'auth' => '', 'cat' => array('MCP_MAIN')), 'forum_view' => array('title' => 'MCP_MAIN_FORUM_VIEW', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')), 'topic_view' => array('title' => 'MCP_MAIN_TOPIC_VIEW', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')), 'post_details' => array('title' => 'MCP_MAIN_POST_DETAILS', 'auth' => 'acl_m_,$id || (!$id && aclf_m_)', 'cat' => array('MCP_MAIN')), ), ); } function install() { } function uninstall() { } }
'use strict'; if (self.importScripts) { importScripts('/resources/testharness.js'); } setup({ allow_uncaught_exception: true }); // // Straightforward unhandledrejection tests // async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = Promise.reject(e); }, 'unhandledrejection: from Promise.reject'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = new Promise(function(_, reject) { reject(e); }); }, 'unhandledrejection: from a synchronous rejection in new Promise'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = new Promise(function(_, reject) { queueTask(function() { reject(e); }); }); }, 'unhandledrejection: from a task-delayed rejection'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = new Promise(function(_, reject) { setTimeout(function() { reject(e); }, 1); }); }, 'unhandledrejection: from a setTimeout-delayed rejection'); async_test(function(t) { var e = new Error(); var e2 = new Error(); var promise2; onUnhandledSucceed(t, e2, function() { return promise2; }); var unreached = t.unreached_func('promise should not be fulfilled'); promise2 = Promise.reject(e).then(unreached, function(reason) { t.step(function() { assert_equals(reason, e); }); throw e2; }); }, 'unhandledrejection: from a throw in a rejection handler chained off of Promise.reject'); async_test(function(t) { var e = new Error(); var e2 = new Error(); var promise2; onUnhandledSucceed(t, e2, function() { return promise2; }); var unreached = t.unreached_func('promise should not be fulfilled'); promise2 = new Promise(function(_, reject) { setTimeout(function() { reject(e); }, 1); }).then(unreached, function(reason) { t.step(function() { assert_equals(reason, e); }); throw e2; }); }, 'unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection'); async_test(function(t) { var e = new Error(); var e2 = new Error(); var promise2; onUnhandledSucceed(t, e2, function() { return promise2; }); var promise = new Promise(function(_, reject) { setTimeout(function() { reject(e); mutationObserverMicrotask(function() { var unreached = t.unreached_func('promise should not be fulfilled'); promise2 = promise.then(unreached, function(reason) { t.step(function() { assert_equals(reason, e); }); throw e2; }); }); }, 1); }); }, 'unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = Promise.resolve().then(function() { return Promise.reject(e); }); }, 'unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = Promise.resolve().then(function() { throw e; }); }, 'unhandledrejection: from a throw in a fulfillment handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = Promise.resolve().then(function() { return new Promise(function(_, reject) { setTimeout(function() { reject(e); }, 1); }); }); }, 'unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = Promise.all([Promise.reject(e)]); }, 'unhandledrejection: from Promise.reject, indirected through Promise.all'); async_test(function(t) { var p; var unhandled = function(ev) { if (ev.promise === p) { t.step(function() { assert_equals(ev.reason.name, 'InvalidStateError'); assert_equals(ev.promise, p); }); t.done(); } }; addEventListener('unhandledrejection', unhandled); ensureCleanup(t, unhandled); p = createImageBitmap(new Blob()); }, 'unhandledrejection: from createImageBitmap which is UA triggered'); // // Negative unhandledrejection/rejectionhandled tests with immediate attachment // async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); var unreached = t.unreached_func('promise should not be fulfilled'); p = Promise.reject(e).then(unreached, function() {}); }, 'no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); var unreached = t.unreached_func('promise should not be fulfilled'); p = Promise.all([Promise.reject(e)]).then(unreached, function() {}); }, 'no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from ' + 'Promise.reject, indirecting through Promise.all'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); var unreached = t.unreached_func('promise should not be fulfilled'); p = new Promise(function(_, reject) { reject(e); }).then(unreached, function() {}); }, 'no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected ' + 'promise created with new Promise'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); var unreached = t.unreached_func('promise should not be fulfilled'); p = Promise.resolve().then(function() { throw e; }).then(unreached, function(reason) { t.step(function() { assert_equals(reason, e); }); }); }, 'no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from ' + 'throwing in a fulfillment handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); var unreached = t.unreached_func('promise should not be fulfilled'); p = Promise.resolve().then(function() { return Promise.reject(e); }).then(unreached, function(reason) { t.step(function() { assert_equals(reason, e); }); }); }, 'no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from ' + 'returning a Promise.reject-created promise in a fulfillment handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); var unreached = t.unreached_func('promise should not be fulfilled'); p = Promise.resolve().then(function() { return new Promise(function(_, reject) { setTimeout(function() { reject(e); }, 1); }); }).then(unreached, function(reason) { t.step(function() { assert_equals(reason, e); }); }); }, 'no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from ' + 'returning a setTimeout-delayed rejection in a fulfillment handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); queueTask(function() { p = Promise.resolve().then(function() { return Promise.reject(e); }) .catch(function() {}); }); }, 'no unhandledrejection/rejectionhandled: all inside a queued task, a rejection handler attached synchronously to ' + 'a promise created from returning a Promise.reject-created promise in a fulfillment handler'); async_test(function(t) { var p; onUnhandledFail(t, function() { return p; }); var unreached = t.unreached_func('promise should not be fulfilled'); p = createImageBitmap(new Blob()).then(unreached, function() {}); }, 'no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from ' + 'createImageBitmap'); // // Negative unhandledrejection/rejectionhandled tests with microtask-delayed attachment // async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); p = Promise.reject(e); mutationObserverMicrotask(function() { var unreached = t.unreached_func('promise should not be fulfilled'); p.then(unreached, function() {}); }); }, 'delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created ' + 'promise)'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); p = new Promise(function(_, reject) { reject(e); }); mutationObserverMicrotask(function() { var unreached = t.unreached_func('promise should not be fulfilled'); p.then(unreached, function() {}); }); }, 'delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new ' + 'Promise-created promise)'); async_test(function(t) { var e = new Error(); var p1; var p2; onUnhandledFail(t, function() { return p1; }); onUnhandledFail(t, function() { return p2; }); p1 = new Promise(function(_, reject) { mutationObserverMicrotask(function() { reject(e); }); }); p2 = Promise.all([p1]); mutationObserverMicrotask(function() { var unreached = t.unreached_func('promise should not be fulfilled'); p2.then(unreached, function() {}); }); }, 'delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected ' + 'through Promise.all'); // // Negative unhandledrejection/rejectionhandled tests with nested-microtask-delayed attachment // async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); p = Promise.reject(e); mutationObserverMicrotask(function() { Promise.resolve().then(function() { mutationObserverMicrotask(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }); }, 'microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); queueTask(function() { p = Promise.reject(e); mutationObserverMicrotask(function() { Promise.resolve().then(function() { mutationObserverMicrotask(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }); }); }, 'microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, ' + 'all inside a queueTask'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); setTimeout(function() { p = Promise.reject(e); mutationObserverMicrotask(function() { Promise.resolve().then(function() { mutationObserverMicrotask(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }); }, 0); }, 'microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, ' + 'all inside a setTimeout'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); p = Promise.reject(e); Promise.resolve().then(function() { mutationObserverMicrotask(function() { Promise.resolve().then(function() { mutationObserverMicrotask(function() { p.catch(function() {}); }); }); }); }); }, 'microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); queueTask(function() { p = Promise.reject(e); Promise.resolve().then(function() { mutationObserverMicrotask(function() { Promise.resolve().then(function() { mutationObserverMicrotask(function() { p.catch(function() {}); }); }); }); }); }); }, 'microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, ' + 'all inside a queueTask'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); setTimeout(function() { p = Promise.reject(e); Promise.resolve().then(function() { mutationObserverMicrotask(function() { Promise.resolve().then(function() { mutationObserverMicrotask(function() { p.catch(function() {}); }); }); }); }); }, 0); }, 'microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, ' + 'all inside a setTimeout'); // For workers, queueTask() involves posting tasks to other threads, so // the following tests don't work there. if ('document' in self) { // // Negative unhandledrejection/rejectionhandled tests with task-delayed attachment // async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); var _reject; p = new Promise(function(_, reject) { _reject = reject; }); _reject(e); queueTask(function() { var unreached = t.unreached_func('promise should not be fulfilled'); p.then(unreached, function() {}); }); }, 'delayed handling: a task delay before attaching a handler prevents unhandledrejection'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); p = Promise.reject(e); queueTask(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }, 'delayed handling: queueTask after promise creation/rejection, plus promise microtasks, is not too late to ' + 'attach a rejection handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); queueTask(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }); }); p = Promise.reject(e); }, 'delayed handling: queueTask before promise creation/rejection, plus many promise microtasks, is not too ' + 'late to attach a rejection handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledFail(t, function() { return p; }); p = Promise.reject(e); queueTask(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }); }); }, 'delayed handling: queueTask after promise creation/rejection, plus many promise microtasks, is not too ' + 'late to attach a rejection handler'); } // // Positive unhandledrejection/rejectionhandled tests with delayed attachment // async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); var _reject; p = new Promise(function(_, reject) { _reject = reject; }); _reject(e); queueTask(function() { queueTask(function() { var unreached = t.unreached_func('promise should not be fulfilled'); p.then(unreached, function() {}); }); }); }, 'delayed handling: a nested-task delay before attaching a handler causes unhandledrejection'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = Promise.reject(e); queueTask(function() { queueTask(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }, 'delayed handling: a nested-queueTask after promise creation/rejection, plus promise microtasks, is too ' + 'late to attach a rejection handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); queueTask(function() { queueTask(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }); }); }); p = Promise.reject(e); }, 'delayed handling: a nested-queueTask before promise creation/rejection, plus many promise microtasks, is ' + 'too late to attach a rejection handler'); async_test(function(t) { var e = new Error(); var p; onUnhandledSucceed(t, e, function() { return p; }); p = Promise.reject(e); queueTask(function() { queueTask(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { Promise.resolve().then(function() { p.catch(function() {}); }); }); }); }); }); }); }, 'delayed handling: a nested-queueTask after promise creation/rejection, plus many promise microtasks, is ' + 'too late to attach a rejection handler'); async_test(function(t) { var unhandledPromises = []; var unhandledReasons = []; var e = new Error(); var p; var unhandled = function(ev) { if (ev.promise === p) { t.step(function() { unhandledPromises.push(ev.promise); unhandledReasons.push(ev.reason); }); } }; var handled = function(ev) { if (ev.promise === p) { t.step(function() { assert_array_equals(unhandledPromises, [p]); assert_array_equals(unhandledReasons, [e]); assert_equals(ev.promise, p); assert_equals(ev.reason, e); }); } }; addEventListener('unhandledrejection', unhandled); addEventListener('rejectionhandled', handled); ensureCleanup(t, unhandled, handled); p = new Promise(function() { throw e; }); setTimeout(function() { var unreached = t.unreached_func('promise should not be fulfilled'); p.then(unreached, function(reason) { assert_equals(reason, e); setTimeout(function() { t.done(); }, 10); }); }, 10); }, 'delayed handling: delaying handling by setTimeout(,10) will cause both events to fire'); async_test(function(t) { var unhandledPromises = []; var unhandledReasons = []; var p; var unhandled = function(ev) { if (ev.promise === p) { t.step(function() { unhandledPromises.push(ev.promise); unhandledReasons.push(ev.reason.name); }); } }; var handled = function(ev) { if (ev.promise === p) { t.step(function() { assert_array_equals(unhandledPromises, [p]); assert_array_equals(unhandledReasons, ['InvalidStateError']); assert_equals(ev.promise, p); assert_equals(ev.reason.name, 'InvalidStateError'); }); } }; addEventListener('unhandledrejection', unhandled); addEventListener('rejectionhandled', handled); ensureCleanup(t, unhandled, handled); p = createImageBitmap(new Blob()); setTimeout(function() { var unreached = t.unreached_func('promise should not be fulfilled'); p.then(unreached, function(reason) { assert_equals(reason.name, 'InvalidStateError'); setTimeout(function() { t.done(); }, 10); }); }, 10); }, 'delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire'); // // Miscellaneous tests about integration with the rest of the platform // async_test(function(t) { var e = new Error(); var l = function(ev) { var order = []; mutationObserverMicrotask(function() { order.push(1); }); setTimeout(function() { order.push(2); t.step(function() { assert_array_equals(order, [1, 2]); }); t.done(); }, 1); }; addEventListener('unhandledrejection', l); ensureCleanup(t, l); Promise.reject(e); }, 'mutationObserverMicrotask vs. queueTask ordering is not disturbed inside unhandledrejection events'); // For workers, queueTask() involves posting tasks to other threads, so // the following tests don't work there. if ('document' in self) { // For the next two see https://github.com/domenic/unhandled-rejections-browser-spec/issues/2#issuecomment-121121695 // and the following comments. async_test(function(t) { var sequenceOfEvents = []; addEventListener('unhandledrejection', l); ensureCleanup(t, l); var p1 = Promise.reject(); var p2; queueTask(function() { p2 = Promise.reject(); queueTask(function() { sequenceOfEvents.push('queueTask'); checkSequence(); }); }); function l(ev) { if (ev.promise === p1 || ev.promise === p2) { sequenceOfEvents.push(ev.promise); checkSequence(); } } function checkSequence() { if (sequenceOfEvents.length === 3) { t.step(function() { assert_array_equals(sequenceOfEvents, [p1, 'queueTask', p2]); }); t.done(); } } }, 'queueTask ordering vs. the task queued for unhandled rejection notification (1)'); async_test(function(t) { var sequenceOfEvents = []; addEventListener('unhandledrejection', l); ensureCleanup(t, l); var p2; queueTask(function() { p2 = Promise.reject(); queueTask(function() { sequenceOfEvents.push('queueTask'); checkSequence(); }); }); function l(ev) { if (ev.promise == p2) { sequenceOfEvents.push(ev.promise); checkSequence(); } } function checkSequence() { if (sequenceOfEvents.length === 2) { t.step(function() { assert_array_equals(sequenceOfEvents, ['queueTask', p2]); }); t.done(); } } }, 'queueTask ordering vs. the task queued for unhandled rejection notification (2)'); async_test(function(t) { var sequenceOfEvents = []; addEventListener('unhandledrejection', unhandled); addEventListener('rejectionhandled', handled); ensureCleanup(t, unhandled, handled); var p = Promise.reject(); function unhandled(ev) { if (ev.promise === p) { sequenceOfEvents.push('unhandled'); checkSequence(); setTimeout(function() { queueTask(function() { sequenceOfEvents.push('task before catch'); checkSequence(); }); p.catch(function() { sequenceOfEvents.push('catch'); checkSequence(); }); queueTask(function() { sequenceOfEvents.push('task after catch'); checkSequence(); }); sequenceOfEvents.push('after catch'); checkSequence(); }, 10); } } function handled(ev) { if (ev.promise === p) { sequenceOfEvents.push('handled'); checkSequence(); } } function checkSequence() { if (sequenceOfEvents.length === 6) { t.step(function() { assert_array_equals(sequenceOfEvents, ['unhandled', 'after catch', 'catch', 'task before catch', 'handled', 'task after catch']); }); t.done(); } } }, 'rejectionhandled is dispatched from a queued task, and not immediately'); } // // HELPERS // // This function queues a task in "DOM manipulation task source" in window // context, but not in workers. function queueTask(f) { if ('document' in self) { var d = document.createElement("details"); d.ontoggle = function() { f(); }; d.setAttribute("open", ""); } else { // We need to fix this to use something that can queue tasks in // "DOM manipulation task source" to ensure the order is correct var channel = new MessageChannel(); channel.port1.onmessage = function() { channel.port1.close(); f(); }; channel.port2.postMessage('abusingpostmessageforfunandprofit'); channel.port2.close(); } } function mutationObserverMicrotask(f) { if ('document' in self) { var observer = new MutationObserver(function() { f(); }); var node = document.createTextNode(''); observer.observe(node, { characterData: true }); node.data = 'foo'; } else { // We don't have mutation observers on workers, so just post a promise-based // microtask. Promise.resolve().then(function() { f(); }); } } function onUnhandledSucceed(t, expectedReason, expectedPromiseGetter) { var l = function(ev) { if (ev.promise === expectedPromiseGetter()) { t.step(function() { assert_equals(ev.reason, expectedReason); assert_equals(ev.promise, expectedPromiseGetter()); }); t.done(); } }; addEventListener('unhandledrejection', l); ensureCleanup(t, l); } function onUnhandledFail(t, expectedPromiseGetter) { var unhandled = function(evt) { if (evt.promise === expectedPromiseGetter()) { t.step(function() { assert_unreached('unhandledrejection event is not supposed to be triggered'); }); } }; var handled = function(evt) { if (evt.promise === expectedPromiseGetter()) { t.step(function() { assert_unreached('rejectionhandled event is not supposed to be triggered'); }); } }; addEventListener('unhandledrejection', unhandled); addEventListener('rejectionhandled', handled); ensureCleanup(t, unhandled, handled); setTimeout(function() { t.done(); }, 10); } function ensureCleanup(t, unhandled, handled) { t.add_cleanup(function() { if (unhandled) removeEventListener('unhandledrejection', unhandled); if (handled) removeEventListener('rejectionhandled', handled); }); } done();
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Zend_Di */ namespace ZendTest\Di\TestAsset\SharedInstance; class Lister { public $sharedLister; public function setSharedLister(SharedLister $lister) { $this->sharedLister = $lister; } }
require 'test_helper' class LitleTest < Test::Unit::TestCase def setup @gateway = LitleGateway.new({:merchant_id=>'101', :user=>'active', :password=>'merchant', :version=>'8.10', :url=>'https://www.testlitle.com/sandbox/communicator/online'}) @credit_card_options = { :first_name => 'Steve', :last_name => 'Smith', :month => '9', :year => '2010', :brand => 'visa', :number => '4242424242424242', :verification_value => '969' } @billing_address = { :name => 'Steve Smith', :company => 'testCompany', :address1 => '900 random st', :address2 => 'floor 10', :city => 'lowell', :state => 'ma', :country => 'usa', :zip => '12345', :phone => '1234567890' } @shipping_address = { :name => 'Steve Smith', :company => '', :address1 => '500 nnnn st', :address2 => '', :city => 'lowell', :state => 'ma', :country => 'usa', :zip => '12345', :phone => '1234567890' } @response_options = { 'response' => '000', 'message' => 'successful', 'litleTxnId' => '1234', 'litleToken'=>'1111222233334444' } end def test_build_purchase_request # define all inputs money = 1000 creditcard = CreditCard.new(@credit_card_options) order_id = '1234' ip = '192.168.0.1' customer = '4000' invoice = '1000' merchant = 'ABC' description = 'cool stuff' email = 'abc@xyz.com' currency = 'USD' options = { :order_id=>order_id, :ip=>ip, :customer=>customer, :invoice=>invoice, :merchant=>merchant, :description=>description, :email=>email, :currency=>currency, :billing_address=>@billing_address, :shipping_address=>@shipping_address, :merchant_id=>'101' } hash_from_gateway = @gateway.send(:build_purchase_request, money, creditcard, options) assert_equal 1000, hash_from_gateway['amount'] assert_equal 'VI', hash_from_gateway['card']['type'] assert_equal '4242424242424242', hash_from_gateway['card']['number'] assert_equal '0910', hash_from_gateway['card']['expDate'] assert_equal '969', hash_from_gateway['card']['cardValidationNum'] #billing address assert_equal 'Steve Smith', hash_from_gateway['billToAddress']['name'] assert_equal 'testCompany', hash_from_gateway['billToAddress']['companyName'] assert_equal '900 random st', hash_from_gateway['billToAddress']['addressLine1'] assert_equal 'floor 10', hash_from_gateway['billToAddress']['addressLine2'] assert_equal 'lowell', hash_from_gateway['billToAddress']['city'] assert_equal 'ma', hash_from_gateway['billToAddress']['state'] assert_equal '12345', hash_from_gateway['billToAddress']['zip'] assert_equal 'usa', hash_from_gateway['billToAddress']['country'] assert_equal 'abc@xyz.com', hash_from_gateway['billToAddress']['email'] assert_equal '1234567890', hash_from_gateway['billToAddress']['phone'] #shipping address assert_equal 'Steve Smith', hash_from_gateway['shipToAddress']['name'] assert_nil hash_from_gateway['shipToAddress']['company'] assert_equal '500 nnnn st', hash_from_gateway['shipToAddress']['addressLine1'] assert_equal '', hash_from_gateway['shipToAddress']['addressLine2'] assert_equal 'lowell', hash_from_gateway['shipToAddress']['city'] assert_equal 'ma', hash_from_gateway['shipToAddress']['state'] assert_equal '12345', hash_from_gateway['shipToAddress']['zip'] assert_equal 'usa', hash_from_gateway['shipToAddress']['country'] assert_equal 'abc@xyz.com', hash_from_gateway['shipToAddress']['email'] assert_equal '1234567890', hash_from_gateway['shipToAddress']['phone'] assert_equal '1234', hash_from_gateway['orderId'] assert_equal '4000', hash_from_gateway['customerId'] assert_equal 'ABC', hash_from_gateway['reportGroup'] #The option :merchant is used for Litle's Report Group assert_equal '101', hash_from_gateway['merchantId'] assert_equal '1000', hash_from_gateway['enhancedData']['invoiceReferenceNumber'] assert_equal '192.168.0.1', hash_from_gateway['fraudCheckType']['customerIpAddress'] assert_equal 'cool stuff', hash_from_gateway['enhancedData']['customerReference'] end def test_build_purchase_request_with_token # define all inputs money = 1000 token = '1234567890123456' hash_from_gateway = @gateway.send(:build_purchase_request, money, token, {}) assert_equal money, hash_from_gateway['amount'] assert_equal token, hash_from_gateway['token']['litleToken'] end def test_create_hash_money_not_nil # define all inputs money = 1000 order_id = '1234' ip = '192.168.0.1' customer = '4000' invoice = '1000' merchant = 'ABC' description = 'cool stuff' email = 'abc@xyz.com' currency = 'USD' options = { :order_id=>order_id, :ip=>ip, :customer=>customer, :invoice=>invoice, :merchant=>merchant, :description=>description, :email=>email, :currency=>currency, :billing_address=>@billing_address, :shipping_address=>@shipping_address, :merchant_id=>'101' } hashFromGateway = @gateway.send(:create_hash, money, options) assert_equal 1000, hashFromGateway['amount'] #billing address assert_equal 'Steve Smith', hashFromGateway['billToAddress']['name'] assert_equal 'testCompany', hashFromGateway['billToAddress']['companyName'] assert_equal '900 random st', hashFromGateway['billToAddress']['addressLine1'] assert_equal 'floor 10', hashFromGateway['billToAddress']['addressLine2'] assert_equal 'lowell', hashFromGateway['billToAddress']['city'] assert_equal 'ma', hashFromGateway['billToAddress']['state'] assert_equal '12345', hashFromGateway['billToAddress']['zip'] assert_equal 'usa', hashFromGateway['billToAddress']['country'] assert_equal 'abc@xyz.com', hashFromGateway['billToAddress']['email'] assert_equal '1234567890', hashFromGateway['billToAddress']['phone'] #shipping address assert_equal 'Steve Smith', hashFromGateway['shipToAddress']['name'] assert_nil hashFromGateway['shipToAddress']['company'] assert_equal '500 nnnn st', hashFromGateway['shipToAddress']['addressLine1'] assert_equal '', hashFromGateway['shipToAddress']['addressLine2'] assert_equal 'lowell', hashFromGateway['shipToAddress']['city'] assert_equal 'ma', hashFromGateway['shipToAddress']['state'] assert_equal '12345', hashFromGateway['shipToAddress']['zip'] assert_equal 'usa', hashFromGateway['shipToAddress']['country'] assert_equal 'abc@xyz.com', hashFromGateway['shipToAddress']['email'] assert_equal '1234567890', hashFromGateway['shipToAddress']['phone'] assert_equal '1234', hashFromGateway['orderId'] assert_equal '4000', hashFromGateway['customerId'] assert_equal 'ABC', hashFromGateway['reportGroup'] #The option :merchant is used for Litle's Report Group assert_equal '101', hashFromGateway['merchantId'] assert_equal '1000', hashFromGateway['enhancedData']['invoiceReferenceNumber'] assert_equal '192.168.0.1', hashFromGateway['fraudCheckType']['customerIpAddress'] assert_equal 'cool stuff', hashFromGateway['enhancedData']['customerReference'] end def test_create_hash_with_default_order_source # define all inputs money = 1000 options = { } hashFromGateway = @gateway.send(:create_hash, money, options) assert_equal 'ecommerce', hashFromGateway['orderSource'] end def test_create_hash_with_custom_order_source # define all inputs money = 1000 options = { :order_source => 'recurring' } hashFromGateway = @gateway.send(:create_hash, money, options) assert_equal 'recurring', hashFromGateway['orderSource'] end def test_create_hash_money_nil # define all inputs money = nil hashFromGateway = @gateway.send(:create_hash, money, {}) assert_nil hashFromGateway['amount'] end def test_create_hash_money_empty_string # define all inputs money = '' hashFromGateway = @gateway.send(:create_hash, money, {}) assert_nil hashFromGateway['amount'] end def test_recognize_ax_and_some_empties creditcard = CreditCard.new(@credit_card_options.merge(:brand => 'american_express')) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {}) assert_equal 'AX', hashFromGateway['card']['type'] assert_nil hashFromGateway['billToAddress'] assert_nil hashFromGateway['shipToAddress'] end def test_recognize_di creditcard = CreditCard.new(@credit_card_options.merge(:brand => 'discover')) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {}) assert_equal 'DI', hashFromGateway['card']['type'] end def test_recognize_mastercard creditcard = CreditCard.new(@credit_card_options.merge(:brand => 'master')) hashFromGateway = @gateway.send(:build_purchase_request, 0,creditcard,{}) assert_equal 'MC', hashFromGateway['card']['type'] end def test_recognize_jcb creditcard = CreditCard.new(@credit_card_options.merge(:brand => 'jcb')) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {}) assert_equal 'DI', hashFromGateway['card']['type'] end def test_recognize_diners creditcard = CreditCard.new(@credit_card_options.merge(:brand => 'diners_club')) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {}) assert_equal 'DI', hashFromGateway['card']['type'] end def test_two_digit_month creditcard = CreditCard.new(@credit_card_options.merge(:month => '11')) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {}) assert_equal '1110', hashFromGateway['card']['expDate'] end def test_nils_in_both_addresses creditcard = CreditCard.new(@credit_card_options) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {:shipping_address=>{},:billing_address=>{}}) %w(name companyName company addressLine1 addressLine2 city state zip country email phone).each do |att| #billing address assert_nil hashFromGateway['billToAddress'][att] #shipping address assert_nil hashFromGateway['shipToAddress'][att] end end def test_create_credit_hash hashFromGateway = @gateway.send(:create_credit_hash, 1000, '123456789012345678', {}) assert_equal '123456789012345678', hashFromGateway['litleTxnId'] assert_equal nil, hashFromGateway['orderSource'] assert_equal nil, hashFromGateway['orderId'] end def test_currency_USD creditcard = CreditCard.new(@credit_card_options) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {:currency=>'USD',:merchant_id=>'101'}) assert_equal '101', hashFromGateway['merchantId'] end def test_currency_DEFAULT creditcard = CreditCard.new(@credit_card_options) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {:merchant_id=>'101'}) assert_equal '101', hashFromGateway['merchantId'] end def test_currency_EUR creditcard = CreditCard.new(@credit_card_options) hashFromGateway = @gateway.send(:build_purchase_request, 0, creditcard, {:currency=>'EUR',:merchant_id=>'102'}) assert_equal '102', hashFromGateway['merchantId'] end def test_auth_pass authorizationResponseObj = @response_options retObj = {'response'=>'0','authorizationResponse'=>authorizationResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.authorize(0, creditcard) assert_equal true, responseFrom.success? assert_equal 'successful', responseFrom.message assert_equal '1234', responseFrom.authorization assert_equal '1111222233334444', responseFrom.params['litleOnlineResponse']['authorizationResponse']['litleToken'] end def test_avs fraudResult = {'avsResult'=>'01'} authorizationResponseObj = @response_options.merge('fraudResult' => fraudResult) retObj = {'response'=>'0','authorizationResponse'=>authorizationResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.authorize(0, creditcard) assert_equal true, responseFrom.success? assert_equal 'X', responseFrom.avs_result['code'] assert_equal 'Street address and 9-digit postal code match.', responseFrom.avs_result['message'] assert_equal 'Y', responseFrom.avs_result['street_match'] assert_equal 'Y', responseFrom.avs_result['postal_match'] end def test_cvv fraudResult = {'cardValidationResult'=>'M'} authorizationResponseObj = @response_options.merge('fraudResult' => fraudResult) retObj = {'response'=>'0','authorizationResponse'=>authorizationResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.authorize(0, creditcard) assert_equal true, responseFrom.success? assert_equal 'M', responseFrom.cvv_result['code'] assert_equal 'Match', responseFrom.cvv_result['message'] end def test_sale_avs fraudResult = {'avsResult'=>'10'} saleResponseObj = @response_options.merge('fraudResult' => fraudResult) retObj = {'response'=>'0','saleResponse'=>saleResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.purchase(0, creditcard) assert_equal true, responseFrom.success? assert_equal 'Z', responseFrom.avs_result['code'] assert_equal 'Street address does not match, but 5-digit postal code matches.', responseFrom.avs_result['message'] assert_equal 'N', responseFrom.avs_result['street_match'] assert_equal 'Y', responseFrom.avs_result['postal_match'] end def test_sale_cvv fraudResult = {'cardValidationResult'=>''} saleResponseObj = @response_options.merge('fraudResult' => fraudResult) retObj = {'response'=>'0','saleResponse'=>saleResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.purchase(0, creditcard) assert_equal true, responseFrom.success? assert_equal 'P', responseFrom.cvv_result['code'] assert_equal 'Not Processed', responseFrom.cvv_result['message'] end def test_auth_fail authorizationResponseObj = {'response' => '111', 'message' => 'fail', 'litleTxnId' => '1234', 'litleToken'=>'1111222233334444'} retObj = {'response'=>'0','authorizationResponse'=>authorizationResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.authorize(0, creditcard) assert_equal false, responseFrom.success? assert_equal '1234', responseFrom.authorization assert_equal '1111222233334444', responseFrom.params['litleOnlineResponse']['authorizationResponse']['litleToken'] end def test_auth_fail_schema retObj = {'response'=>'1','message'=>'Error validating xml data against the schema'} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.authorize(0, creditcard) assert_equal false, responseFrom.success? assert_equal 'Error validating xml data against the schema', responseFrom.message end def test_purchase_pass purchaseResponseObj = {'response' => '000', 'message' => 'successful', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','saleResponse'=>purchaseResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.purchase(0, creditcard) assert_equal true, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_purchase_pass_with_token purchaseResponseObj = {'response' => '000', 'message' => 'successful', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','saleResponse'=>purchaseResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) token = '1234567890123456' responseFrom = @gateway.purchase(0, token) assert_equal true, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_purchase_fail purchaseResponseObj = {'response' => '111', 'message' => 'fail', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','saleResponse'=>purchaseResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.purchase(0, creditcard) assert_equal false, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_purchase_fail_schema retObj = {'response'=>'1','message'=>'Error validating xml data against the schema'} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.purchase(0, creditcard) assert_equal false, responseFrom.success? assert_equal 'Error validating xml data against the schema', responseFrom.message end def test_capture_pass captureResponseObj = {'response' => '000', 'message' => 'pass', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','captureResponse'=>captureResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) authorization = "1234" responseFrom = @gateway.capture(0, authorization) assert_equal true, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_capture_fail captureResponseObj = {'response' => '111', 'message' => 'fail', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','captureResponse'=>captureResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) authorization = "1234" responseFrom = @gateway.capture(0, authorization) assert_equal false, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_capture_fail_schema retObj = {'response'=>'1','message'=>'Error validating xml data against the schema'} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) authorization = '1234' responseFrom = @gateway.capture(0, authorization) assert_equal false, responseFrom.success? assert_equal 'Error validating xml data against the schema', responseFrom.message end def test_void_pass voidResponseObj = {'response' => '000', 'message' => 'pass', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','voidResponse'=>voidResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) identification = "1234" responseFrom = @gateway.void(identification) assert_equal true, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_void_fail voidResponseObj = {'response' => '111', 'message' => 'fail', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','voidResponse'=>voidResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) identification = "1234" responseFrom = @gateway.void(identification) assert_equal false, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_void_fail_schema retObj = {'response'=>'1','message'=>'Error validating xml data against the schema'} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) identification = "1234" responseFrom = @gateway.void(identification) assert_equal false, responseFrom.success? assert_equal 'Error validating xml data against the schema', responseFrom.message end def test_credit_pass creditResponseObj = {'response' => '000', 'message' => 'pass', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','creditResponse'=>creditResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) identification = "1234" responseFrom = @gateway.credit(0, identification) assert_equal true, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_credit_fail creditResponseObj = {'response' => '111', 'message' => 'fail', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','creditResponse'=>creditResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) identification = "1234" responseFrom = @gateway.credit(0, identification) assert_equal false, responseFrom.success? assert_equal '123456789012345678', responseFrom.authorization end def test_credit_fail_schema retObj = {'response'=>'1','message'=>'Error validating xml data against the schema'} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) identification = '1234' responseFrom = @gateway.credit(0, identification) assert_equal false, responseFrom.success? assert_equal 'Error validating xml data against the schema', responseFrom.message end def test_store_pass1 storeResponseObj = {'response' => '801', 'message' => 'successful', 'litleToken'=>'1111222233334444', 'litleTxnId'=>nil} retObj = {'response'=>'0','registerTokenResponse'=>storeResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.store(creditcard,{}) assert_equal true, responseFrom.success? assert_equal '1111222233334444', responseFrom.params['litleOnlineResponse']['registerTokenResponse']['litleToken'] end def test_store_pass2 storeResponseObj = {'response' => '802', 'message' => 'already registered', 'litleToken'=>'1111222233334444', 'litleTxnId'=>nil} retObj = {'response'=>'0','registerTokenResponse'=>storeResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.store(creditcard,{}) assert_equal true, responseFrom.success? assert_equal '1111222233334444', responseFrom.params['litleOnlineResponse']['registerTokenResponse']['litleToken'] end def test_store_fail storeResponseObj = {'response' => '803', 'message' => 'fail', 'litleToken'=>'1111222233334444', 'litleTxnId'=>nil} retObj = {'response'=>'0','registerTokenResponse'=>storeResponseObj} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.store(creditcard,{}) assert_equal false, responseFrom.success? assert_equal '1111222233334444', responseFrom.params['litleOnlineResponse']['registerTokenResponse']['litleToken'] end def test_store_fail_schema retObj = {'response'=>'1','message'=>'Error validating xml data against the schema'} LitleOnline::Communications.expects(:http_post => retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) responseFrom = @gateway.store(creditcard,{}) assert_equal false, responseFrom.success? assert_equal 'Error validating xml data against the schema', responseFrom.message end def test_in_production_with_test_param_sends_request_to_test_server begin ActiveMerchant::Billing::Base.mode = :production @gateway = LitleGateway.new( :merchant_id => 'login', :login => 'login', :password => 'password', :test => true ) purchaseResponseObj = {'response' => '000', 'message' => 'successful', 'litleTxnId'=>'123456789012345678'} retObj = {'response'=>'0','saleResponse'=>purchaseResponseObj} LitleOnline::Communications.expects(:http_post).with(anything,has_entry('url', 'https://www.testlitle.com/sandbox/communicator/online')).returns(retObj.to_xml(:root => 'litleOnlineResponse')) creditcard = CreditCard.new(@credit_card_options) assert response = @gateway.purchase(@amount, credit_card) assert_instance_of Response, response assert_success response assert response.test?, response.inspect ensure ActiveMerchant::Billing::Base.mode = :test end end end
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>src/pixi/filters/InvertFilter.js - pixi.js</title> <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css"> <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script> </head> <body class="yui3-skin-sam"> <div id="doc"> <div id="hd" class="yui3-g header"> <div class="yui3-u-3-4"> <h1><img src="http://www.goodboydigital.com/pixijs/logo_small.png" title="pixi.js"></h1> </div> <div class="yui3-u-1-4 version"> <em>API Docs for: 1.4.0</em> </div> </div> <div id="bd" class="yui3-g"> <div class="yui3-u-1-4"> <div id="docs-sidebar" class="sidebar apidocs"> <div id="api-list"> <h2 class="off-left">APIs</h2> <div id="api-tabview" class="tabview"> <ul class="tabs"> <li><a href="#api-classes">Classes</a></li> <li><a href="#api-modules">Modules</a></li> </ul> <div id="api-tabview-filter"> <input type="search" id="api-filter" placeholder="Type to filter APIs"> </div> <div id="api-tabview-panel"> <ul id="api-classes" class="apis classes"> <li><a href="../classes/AbstractFilter.html">AbstractFilter</a></li> <li><a href="../classes/AlphaMaskFilter.html">AlphaMaskFilter</a></li> <li><a href="../classes/AssetLoader.html">AssetLoader</a></li> <li><a href="../classes/AtlasLoader.html">AtlasLoader</a></li> <li><a href="../classes/BaseTexture.html">BaseTexture</a></li> <li><a href="../classes/BitmapFontLoader.html">BitmapFontLoader</a></li> <li><a href="../classes/BitmapText.html">BitmapText</a></li> <li><a href="../classes/BlurFilter.html">BlurFilter</a></li> <li><a href="../classes/CanvasGraphics.html">CanvasGraphics</a></li> <li><a href="../classes/CanvasRenderer.html">CanvasRenderer</a></li> <li><a href="../classes/Circle.html">Circle</a></li> <li><a href="../classes/ColorMatrixFilter.html">ColorMatrixFilter</a></li> <li><a href="../classes/ColorStepFilter.html">ColorStepFilter</a></li> <li><a href="../classes/DisplacementFilter.html">DisplacementFilter</a></li> <li><a href="../classes/DisplayObject.html">DisplayObject</a></li> <li><a href="../classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li> <li><a href="../classes/Ellipse.html">Ellipse</a></li> <li><a href="../classes/EventTarget.html">EventTarget</a></li> <li><a href="../classes/Graphics.html">Graphics</a></li> <li><a href="../classes/GrayFilter.html">GrayFilter</a></li> <li><a href="../classes/ImageLoader.html">ImageLoader</a></li> <li><a href="../classes/InvertFilter.html">InvertFilter</a></li> <li><a href="../classes/JsonLoader.html">JsonLoader</a></li> <li><a href="../classes/MovieClip.html">MovieClip</a></li> <li><a href="../classes/PixelateFilter.html">PixelateFilter</a></li> <li><a href="../classes/PIXI.PixiShader.html">PIXI.PixiShader</a></li> <li><a href="../classes/Point.html">Point</a></li> <li><a href="../classes/Polygon.html">Polygon</a></li> <li><a href="../classes/PolyK._convex.html">PolyK._convex</a></li> <li><a href="../classes/PolyK._PointInTriangle.html">PolyK._PointInTriangle</a></li> <li><a href="../classes/PolyK.AjaxRequest.html">PolyK.AjaxRequest</a></li> <li><a href="../classes/PolyK.InteractionData.html">PolyK.InteractionData</a></li> <li><a href="../classes/PolyK.InteractionManager.html">PolyK.InteractionManager</a></li> <li><a href="../classes/Rectangle.html">Rectangle</a></li> <li><a href="../classes/RenderTexture.html">RenderTexture</a></li> <li><a href="../classes/SepiaFilter.html">SepiaFilter</a></li> <li><a href="../classes/Spine.html">Spine</a></li> <li><a href="../classes/SpriteSheetLoader.html">SpriteSheetLoader</a></li> <li><a href="../classes/Sprite™.html">Sprite™</a></li> <li><a href="../classes/Stage.html">Stage</a></li> <li><a href="../classes/Text.html">Text</a></li> <li><a href="../classes/Texture.html">Texture</a></li> <li><a href="../classes/TilingSprite.html">TilingSprite</a></li> <li><a href="../classes/WebGLRenderer.html">WebGLRenderer</a></li> </ul> <ul id="api-modules" class="apis modules"> <li><a href="../modules/PIXI.html">PIXI</a></li> </ul> </div> </div> </div> </div> </div> <div class="yui3-u-3-4"> <div id="api-options"> Show: <label for="api-show-inherited"> <input type="checkbox" id="api-show-inherited" checked> Inherited </label> <label for="api-show-protected"> <input type="checkbox" id="api-show-protected"> Protected </label> <label for="api-show-private"> <input type="checkbox" id="api-show-private"> Private </label> <label for="api-show-deprecated"> <input type="checkbox" id="api-show-deprecated"> Deprecated </label> </div> <div class="apidocs"> <div id="docs-main"> <div class="content"> <h1 class="file-heading">File: src/pixi/filters/InvertFilter.js</h1> <div class="file"> <pre class="code prettyprint linenums"> /** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** * * This inverts your displayObjects colors. * @class InvertFilter * @contructor */ PIXI.InvertFilter = function() { PIXI.AbstractFilter.call( this ); this.passes = [this]; // set the uniforms this.uniforms = { invert: {type: &#x27;1f&#x27;, value: 1}, }; this.fragmentSrc = [ &#x27;precision mediump float;&#x27;, &#x27;varying vec2 vTextureCoord;&#x27;, &#x27;varying vec4 vColor;&#x27;, &#x27;uniform float invert;&#x27;, &#x27;uniform sampler2D uSampler;&#x27;, &#x27;void main(void) {&#x27;, &#x27; gl_FragColor = texture2D(uSampler, vTextureCoord);&#x27;, &#x27; gl_FragColor.rgb = mix( (vec3(1)-gl_FragColor.rgb) * gl_FragColor.a, gl_FragColor.rgb, 1.0 - invert);&#x27;, //&#x27; gl_FragColor.rgb = gl_FragColor.rgb * gl_FragColor.a;&#x27;, // &#x27; gl_FragColor = gl_FragColor * vColor;&#x27;, &#x27;}&#x27; ]; }; PIXI.InvertFilter.prototype = Object.create( PIXI.AbstractFilter.prototype ); PIXI.InvertFilter.prototype.constructor = PIXI.InvertFilter; /** The strength of the invert. 1 will fully invert the colors, 0 will make the object its normal color @property invert */ Object.defineProperty(PIXI.InvertFilter.prototype, &#x27;invert&#x27;, { get: function() { return this.uniforms.invert.value; }, set: function(value) { this.uniforms.invert.value = value; } }); </pre> </div> </div> </div> </div> </div> </div> </div> <script src="../assets/vendor/prettify/prettify-min.js"></script> <script>prettyPrint();</script> <script src="../assets/js/yui-prettify.js"></script> <script src="../assets/../api.js"></script> <script src="../assets/js/api-filter.js"></script> <script src="../assets/js/api-list.js"></script> <script src="../assets/js/api-search.js"></script> <script src="../assets/js/apidocs.js"></script> </body> </html>
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bridge\Doctrine\PropertyInfo; use Doctrine\Common\Persistence\Mapping\ClassMetadataFactory; use Doctrine\Common\Persistence\Mapping\MappingException; use Doctrine\DBAL\Types\Type as DBALType; use Doctrine\ORM\Mapping\ClassMetadataInfo; use Doctrine\ORM\Mapping\MappingException as OrmMappingException; use Symfony\Component\PropertyInfo\PropertyListExtractorInterface; use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface; use Symfony\Component\PropertyInfo\Type; /** * Extracts data using Doctrine ORM and ODM metadata. * * @author Kévin Dunglas <dunglas@gmail.com> */ class DoctrineExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface { /** * @var ClassMetadataFactory */ private $classMetadataFactory; public function __construct(ClassMetadataFactory $classMetadataFactory) { $this->classMetadataFactory = $classMetadataFactory; } /** * {@inheritdoc} */ public function getProperties($class, array $context = array()) { try { $metadata = $this->classMetadataFactory->getMetadataFor($class); } catch (MappingException $exception) { return; } catch (OrmMappingException $exception) { return; } return array_merge($metadata->getFieldNames(), $metadata->getAssociationNames()); } /** * {@inheritdoc} */ public function getTypes($class, $property, array $context = array()) { try { $metadata = $this->classMetadataFactory->getMetadataFor($class); } catch (MappingException $exception) { return; } catch (OrmMappingException $exception) { return; } if ($metadata->hasAssociation($property)) { $class = $metadata->getAssociationTargetClass($property); if ($metadata->isSingleValuedAssociation($property)) { if ($metadata instanceof ClassMetadataInfo) { $associationMapping = $metadata->getAssociationMapping($property); $nullable = $this->isAssociationNullable($associationMapping); } else { $nullable = false; } return array(new Type(Type::BUILTIN_TYPE_OBJECT, $nullable, $class)); } $collectionKeyType = Type::BUILTIN_TYPE_INT; if ($metadata instanceof ClassMetadataInfo) { $associationMapping = $metadata->getAssociationMapping($property); if (isset($associationMapping['indexBy'])) { $indexProperty = $associationMapping['indexBy']; $subMetadata = $this->classMetadataFactory->getMetadataFor($associationMapping['targetEntity']); $typeOfField = $subMetadata->getTypeOfField($indexProperty); $collectionKeyType = $this->getPhpType($typeOfField); } } return array(new Type( Type::BUILTIN_TYPE_OBJECT, false, 'Doctrine\Common\Collections\Collection', true, new Type($collectionKeyType), new Type(Type::BUILTIN_TYPE_OBJECT, false, $class) )); } if ($metadata->hasField($property)) { $typeOfField = $metadata->getTypeOfField($property); $nullable = $metadata instanceof ClassMetadataInfo && $metadata->isNullable($property); switch ($typeOfField) { case DBALType::DATE: case DBALType::DATETIME: case DBALType::DATETIMETZ: case 'vardatetime': case DBALType::TIME: return array(new Type(Type::BUILTIN_TYPE_OBJECT, $nullable, 'DateTime')); case DBALType::TARRAY: return array(new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true)); case DBALType::SIMPLE_ARRAY: return array(new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))); case DBALType::JSON_ARRAY: return array(new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true)); default: $builtinType = $this->getPhpType($typeOfField); return $builtinType ? array(new Type($builtinType, $nullable)) : null; } } } /** * Determines whether an association is nullable. * * @param array $associationMapping * * @return bool * * @see https://github.com/doctrine/doctrine2/blob/v2.5.4/lib/Doctrine/ORM/Tools/EntityGenerator.php#L1221-L1246 */ private function isAssociationNullable(array $associationMapping) { if (isset($associationMapping['id']) && $associationMapping['id']) { return false; } if (!isset($associationMapping['joinColumns'])) { return true; } $joinColumns = $associationMapping['joinColumns']; foreach ($joinColumns as $joinColumn) { if (isset($joinColumn['nullable']) && !$joinColumn['nullable']) { return false; } } return true; } /** * Gets the corresponding built-in PHP type. * * @param string $doctrineType * * @return string|null */ private function getPhpType($doctrineType) { switch ($doctrineType) { case DBALType::SMALLINT: case DBALType::INTEGER: return Type::BUILTIN_TYPE_INT; case DBALType::FLOAT: return Type::BUILTIN_TYPE_FLOAT; case DBALType::BIGINT: case DBALType::STRING: case DBALType::TEXT: case DBALType::GUID: case DBALType::DECIMAL: return Type::BUILTIN_TYPE_STRING; case DBALType::BOOLEAN: return Type::BUILTIN_TYPE_BOOL; case DBALType::BLOB: case 'binary': return Type::BUILTIN_TYPE_RESOURCE; case DBALType::OBJECT: return Type::BUILTIN_TYPE_OBJECT; } } }
/* Video Core Copyright (c) 2014 James G. Hurley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef __videocore__AudioMixer__ #define __videocore__AudioMixer__ #include <iostream> #include <videocore/mixers/GenericAudioMixer.h> #include <AudioToolbox/AudioToolbox.h> #include <unordered_map> namespace videocore { namespace Apple { /* * Takes raw LPCM buffers from a variety of sources, resamples, and mixes them and ouputs a single LPCM buffer. * Differs from GenericAudioMixer because it uses CoreAudio to resample. * */ class AudioMixer : public GenericAudioMixer { public: /*! * Constructor. * * \param outChannelCount number of channels to output. * \param outFrequencyInHz sampling rate to output. * \param outBitsPerChannel number of bits per channel to output * \param frameDuration The duration of a single frame of audio. For example, AAC uses 1024 samples per frame * and therefore the duration is 1024 / sampling rate */ AudioMixer(int outChannelCount, int outFrequencyInHz, int outBitsPerChannel, double frameDuration); /*! Destructor */ ~AudioMixer(); protected: /*! * Called to resample a buffer of audio samples. You can change the quality of the resampling method * by changing s_samplingRateConverterComplexity and s_samplingRateConverterQuality in Apple/AudioMixer.cpp. * * \param buffer The input samples * \param size The buffer size in bytes * \param metadata The associated AudioBufferMetadata that specifies the properties of this buffer. * * \return An audio buffer that has been resampled to match the output properties of the mixer. */ std::shared_ptr<Buffer> resample(const uint8_t* const buffer, size_t size, AudioBufferMetadata& metadata); private: /*! Used by AudioConverterFillComplexBuffer. Do not call manually. */ static OSStatus ioProc(AudioConverterRef audioConverter, UInt32 *ioNumDataPackets, AudioBufferList* ioData, AudioStreamPacketDescription** ioPacketDesc, void* inUserData ); private: using ConverterInst = struct { AudioStreamBasicDescription asbdIn, asbdOut; AudioConverterRef converter; }; std::unordered_map<uint64_t, ConverterInst> m_converters; }; } } #endif /* defined(__videocore__AudioMixer__) */
// This file contains methods responsible for removing a node. import { hooks } from "./lib/removal-hooks"; export function remove() { this._assertUnremoved(); this.resync(); if (this._callRemovalHooks()) { this._markRemoved(); return; } this.shareCommentsWithSiblings(); this._remove(); this._markRemoved(); } export function _callRemovalHooks() { for (let fn of (hooks: Array<Function>)) { if (fn(this, this.parentPath)) return true; } } export function _remove() { if (Array.isArray(this.container)) { this.container.splice(this.key, 1); this.updateSiblingKeys(this.key, -1); } else { this._replaceWith(null); } } export function _markRemoved() { this.shouldSkip = true; this.removed = true; this.node = null; } export function _assertUnremoved() { if (this.removed) { throw this.buildCodeFrameError("NodePath has been removed so is read-only."); } }
body { margin: 0; padding: 0; color: black; font-family: serif; } #specialform { display: inline; } #content { top: 0; margin: 0; padding: 0; } #mw-data-after-content { font-family: Verdana, Arial, sans-serif; color: black; font-size: 8pt; } #powersearch { background: #DDEEFF; border-style: solid; border-width: 1px; padding: 2px; } #quickbar { width: 140px; top: 18ex; padding: 2px; visibility: visible; z-index: 99; } #article, #article td, #article th, #article p { font-family: Verdana, Arial, sans-serif; font-size: 10pt; color: black; } #article p { padding-top: 0; padding-bottom: 0; margin-top: 1ex; margin-bottom: 0; } p, pre, .mw-code, td, th, li, dd, dt { line-height: 12pt; } textarea { overflow: auto; width: 100%; display: block; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } #footer { margin-right: 2%; margin-top: 1em; padding: 4px; font-family: verdana, arial, sans-serif; font-size: 10pt; text-align: center; } #footer form { display: inline; } #cb-ca-edit { font-weight: bold; } #pagestats { font-family: Verdana, Arial, sans-serif; color: black; font-size: 9pt; } #quickbar { font-family: Verdana, Arial, sans-serif; font-size: 8pt; font-weight: bold; line-height: 9.5pt; text-decoration: none; color: black; padding: 0; margin-top: 0; } #quickbar a { color: #446688; } /* Hide, but keep accessible for screen-readers */ #mw-navigation h2 { position: absolute; top: -9999px; } #quickbar h3 { font-family: Verdana, Arial, sans-serif; font-size: 10pt; font-weight: bold; line-height: 12pt; text-decoration: none; color: #666666; padding: 0; margin-bottom: 2px; margin-top: 6px; } #quickbar form { padding: 0; margin-top: 0; } #quickbar .portlet ul, #quickbar .portlet li { list-style-type: none; margin: 0; padding: 0; line-height: inherit; } div.after-portlet { display: inline; padding-left: .5em; } h1 { color: #666666; font-family: Verdana, Arial, sans-serif; font-size: 180%; line-height: 21pt; } h1#firstHeading { padding-bottom: 0; margin-bottom: 0; } #article p.subtitle, #article p.subpages, #article p.tagline { color: #666666; font-size: 11pt; font-weight: bold; padding-top: 0; margin-top: 0; padding-bottom: 1ex; } a { color: #223366; } a.external { color: #336644; } a:visited { color: #8D0749; } a.printable { text-decoration: underline; } a.stub, #quickbar a.stub { color: #772233; text-decoration: none; } a.new, #quickbar span.new a, #footer span.new a { color: #CC2200; } h2, h3, h4, h5, h6 { margin-bottom: 0; } small { font-size: 75%; } input.mw-searchInput { width: 106px; } /* Directionality-specific styles */ #quickbar { position: absolute; left: 4px; } #article { margin-left: 148px; margin-right: 4px; } #footer { margin-left: 152px; } #sitetitle, #sitesub, #toplinks, #linkcollection { margin-top: 0; margin-bottom: 0; } #sitetitle, #toplinks { color: white; text-transform: uppercase; height: 32pt; } #sitetitle { padding-left: 8px; font-family: Times, serif; font-weight: normal; font-size: 32pt; line-height: 32pt; background-color: #6688AA; } #sitetitle a, #toplinks a { color: white; text-decoration: none; } /* Bring #sitetitle to top. Otherwise #toplinks is overlaid over it, making the link unclickable. */ #sitetitle a { position: relative; z-index: 10; } #toplinks { font-family: Verdana, Arial, sans-serif; position: absolute; top: 0; right: 8px; width: 100%; font-size: 8pt; } #toplinks a { font-size: 10pt; } #toplinks p { position: absolute; right: 0; margin: 0; width: 100%; text-align: right; } #toplinks #syslinks { bottom: 0; } #toplinks #variantlinks { bottom: 12pt; } #sitesub { float: left; margin-left: 8px; font-family: Verdana, Arial, sans-serif; font-size: 9pt; font-weight: bold; color: black; } #linkcollection { margin-top: 0.5em; font-size: small; margin-right: 8px; text-align: right; padding-left: 140px; } /* Override text justification (user preference), see bug 31990 */ #linkcollection * { text-align: right; }
/* $Id: processor.c,v 1.1 2002/07/20 16:27:06 rhirst Exp $ * * Initial setup-routines for HP 9000 based hardware. * * Copyright (C) 1991, 1992, 1995 Linus Torvalds * Modifications for PA-RISC (C) 1999-2008 Helge Deller <deller@gmx.de> * Modifications copyright 1999 SuSE GmbH (Philipp Rumpf) * Modifications copyright 2000 Martin K. Petersen <mkp@mkp.net> * Modifications copyright 2000 Philipp Rumpf <prumpf@tux.org> * Modifications copyright 2001 Ryan Bradetich <rbradetich@uswest.net> * * Initial PA-RISC Version: 04-23-1999 by Helge Deller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #include <linux/delay.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/seq_file.h> #include <linux/slab.h> #include <linux/cpu.h> #include <asm/param.h> #include <asm/cache.h> #include <asm/hardware.h> /* for register_parisc_driver() stuff */ #include <asm/processor.h> #include <asm/page.h> #include <asm/pdc.h> #include <asm/pdcpat.h> #include <asm/irq.h> /* for struct irq_region */ #include <asm/parisc-device.h> struct system_cpuinfo_parisc boot_cpu_data __read_mostly; EXPORT_SYMBOL(boot_cpu_data); DEFINE_PER_CPU(struct cpuinfo_parisc, cpu_data); extern int update_cr16_clocksource(void); /* from time.c */ /* ** PARISC CPU driver - claim "device" and initialize CPU data structures. ** ** Consolidate per CPU initialization into (mostly) one module. ** Monarch CPU will initialize boot_cpu_data which shouldn't ** change once the system has booted. ** ** The callback *should* do per-instance initialization of ** everything including the monarch. "Per CPU" init code in ** setup.c:start_parisc() has migrated here and start_parisc() ** will call register_parisc_driver(&cpu_driver) before calling do_inventory(). ** ** The goal of consolidating CPU initialization into one place is ** to make sure all CPUs get initialized the same way. ** The code path not shared is how PDC hands control of the CPU to the OS. ** The initialization of OS data structures is the same (done below). */ /** * init_cpu_profiler - enable/setup per cpu profiling hooks. * @cpunum: The processor instance. * * FIXME: doesn't do much yet... */ static void __cpuinit init_percpu_prof(unsigned long cpunum) { struct cpuinfo_parisc *p; p = &per_cpu(cpu_data, cpunum); p->prof_counter = 1; p->prof_multiplier = 1; } /** * processor_probe - Determine if processor driver should claim this device. * @dev: The device which has been found. * * Determine if processor driver should claim this chip (return 0) or not * (return 1). If so, initialize the chip and tell other partners in crime * they have work to do. */ static int __cpuinit processor_probe(struct parisc_device *dev) { unsigned long txn_addr; unsigned long cpuid; struct cpuinfo_parisc *p; #ifdef CONFIG_SMP if (num_online_cpus() >= nr_cpu_ids) { printk(KERN_INFO "num_online_cpus() >= nr_cpu_ids\n"); return 1; } #else if (boot_cpu_data.cpu_count > 0) { printk(KERN_INFO "CONFIG_SMP=n ignoring additional CPUs\n"); return 1; } #endif /* logical CPU ID and update global counter * May get overwritten by PAT code. */ cpuid = boot_cpu_data.cpu_count; txn_addr = dev->hpa.start; /* for legacy PDC */ #ifdef CONFIG_64BIT if (is_pdc_pat()) { ulong status; unsigned long bytecnt; pdc_pat_cell_mod_maddr_block_t pa_pdc_cell; #undef USE_PAT_CPUID #ifdef USE_PAT_CPUID struct pdc_pat_cpu_num cpu_info; #endif status = pdc_pat_cell_module(&bytecnt, dev->pcell_loc, dev->mod_index, PA_VIEW, &pa_pdc_cell); BUG_ON(PDC_OK != status); /* verify it's the same as what do_pat_inventory() found */ BUG_ON(dev->mod_info != pa_pdc_cell.mod_info); BUG_ON(dev->pmod_loc != pa_pdc_cell.mod_location); txn_addr = pa_pdc_cell.mod[0]; /* id_eid for IO sapic */ #ifdef USE_PAT_CPUID /* We need contiguous numbers for cpuid. Firmware's notion * of cpuid is for physical CPUs and we just don't care yet. * We'll care when we need to query PAT PDC about a CPU *after* * boot time (ie shutdown a CPU from an OS perspective). */ /* get the cpu number */ status = pdc_pat_cpu_get_number(&cpu_info, dev->hpa.start); BUG_ON(PDC_OK != status); if (cpu_info.cpu_num >= NR_CPUS) { printk(KERN_WARNING "IGNORING CPU at 0x%x," " cpu_slot_id > NR_CPUS" " (%ld > %d)\n", dev->hpa.start, cpu_info.cpu_num, NR_CPUS); /* Ignore CPU since it will only crash */ boot_cpu_data.cpu_count--; return 1; } else { cpuid = cpu_info.cpu_num; } #endif } #endif p = &per_cpu(cpu_data, cpuid); boot_cpu_data.cpu_count++; /* initialize counters - CPU 0 gets it_value set in time_init() */ if (cpuid) memset(p, 0, sizeof(struct cpuinfo_parisc)); p->loops_per_jiffy = loops_per_jiffy; p->dev = dev; /* Save IODC data in case we need it */ p->hpa = dev->hpa.start; /* save CPU hpa */ p->cpuid = cpuid; /* save CPU id */ p->txn_addr = txn_addr; /* save CPU IRQ address */ #ifdef CONFIG_SMP /* ** FIXME: review if any other initialization is clobbered ** for boot_cpu by the above memset(). */ init_percpu_prof(cpuid); #endif /* ** CONFIG_SMP: init_smp_config() will attempt to get CPUs into ** OS control. RENDEZVOUS is the default state - see mem_set above. ** p->state = STATE_RENDEZVOUS; */ #if 0 /* CPU 0 IRQ table is statically allocated/initialized */ if (cpuid) { struct irqaction actions[]; /* ** itimer and ipi IRQ handlers are statically initialized in ** arch/parisc/kernel/irq.c. ie Don't need to register them. */ actions = kmalloc(sizeof(struct irqaction)*MAX_CPU_IRQ, GFP_ATOMIC); if (!actions) { /* not getting it's own table, share with monarch */ actions = cpu_irq_actions[0]; } cpu_irq_actions[cpuid] = actions; } #endif /* * Bring this CPU up now! (ignore bootstrap cpuid == 0) */ #ifdef CONFIG_SMP if (cpuid) { set_cpu_present(cpuid, true); cpu_up(cpuid); } #endif /* If we've registered more than one cpu, * we'll use the jiffies clocksource since cr16 * is not synchronized between CPUs. */ update_cr16_clocksource(); return 0; } /** * collect_boot_cpu_data - Fill the boot_cpu_data structure. * * This function collects and stores the generic processor information * in the boot_cpu_data structure. */ void __init collect_boot_cpu_data(void) { memset(&boot_cpu_data, 0, sizeof(boot_cpu_data)); boot_cpu_data.cpu_hz = 100 * PAGE0->mem_10msec; /* Hz of this PARISC */ /* get CPU-Model Information... */ #define p ((unsigned long *)&boot_cpu_data.pdc.model) if (pdc_model_info(&boot_cpu_data.pdc.model) == PDC_OK) printk(KERN_INFO "model %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx\n", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8]); #undef p if (pdc_model_versions(&boot_cpu_data.pdc.versions, 0) == PDC_OK) printk(KERN_INFO "vers %08lx\n", boot_cpu_data.pdc.versions); if (pdc_model_cpuid(&boot_cpu_data.pdc.cpuid) == PDC_OK) printk(KERN_INFO "CPUID vers %ld rev %ld (0x%08lx)\n", (boot_cpu_data.pdc.cpuid >> 5) & 127, boot_cpu_data.pdc.cpuid & 31, boot_cpu_data.pdc.cpuid); if (pdc_model_capabilities(&boot_cpu_data.pdc.capabilities) == PDC_OK) printk(KERN_INFO "capabilities 0x%lx\n", boot_cpu_data.pdc.capabilities); if (pdc_model_sysmodel(boot_cpu_data.pdc.sys_model_name) == PDC_OK) printk(KERN_INFO "model %s\n", boot_cpu_data.pdc.sys_model_name); boot_cpu_data.hversion = boot_cpu_data.pdc.model.hversion; boot_cpu_data.sversion = boot_cpu_data.pdc.model.sversion; boot_cpu_data.cpu_type = parisc_get_cpu_type(boot_cpu_data.hversion); boot_cpu_data.cpu_name = cpu_name_version[boot_cpu_data.cpu_type][0]; boot_cpu_data.family_name = cpu_name_version[boot_cpu_data.cpu_type][1]; } /** * init_per_cpu - Handle individual processor initializations. * @cpunum: logical processor number. * * This function handles initialization for *every* CPU * in the system: * * o Set "default" CPU width for trap handlers * * o Enable FP coprocessor * REVISIT: this could be done in the "code 22" trap handler. * (frowands idea - that way we know which processes need FP * registers saved on the interrupt stack.) * NEWS FLASH: wide kernels need FP coprocessor enabled to handle * formatted printing of %lx for example (double divides I think) * * o Enable CPU profiling hooks. */ int __cpuinit init_per_cpu(int cpunum) { int ret; struct pdc_coproc_cfg coproc_cfg; set_firmware_width(); ret = pdc_coproc_cfg(&coproc_cfg); if(ret >= 0 && coproc_cfg.ccr_functional) { mtctl(coproc_cfg.ccr_functional, 10); /* 10 == Coprocessor Control Reg */ /* FWIW, FP rev/model is a more accurate way to determine ** CPU type. CPU rev/model has some ambiguous cases. */ per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; printk(KERN_INFO "FP[%d] enabled: Rev %ld Model %ld\n", cpunum, coproc_cfg.revision, coproc_cfg.model); /* ** store status register to stack (hopefully aligned) ** and clear the T-bit. */ asm volatile ("fstd %fr0,8(%sp)"); } else { printk(KERN_WARNING "WARNING: No FP CoProcessor?!" " (coproc_cfg.ccr_functional == 0x%lx, expected 0xc0)\n" #ifdef CONFIG_64BIT "Halting Machine - FP required\n" #endif , coproc_cfg.ccr_functional); #ifdef CONFIG_64BIT mdelay(100); /* previous chars get pushed to console */ panic("FP CoProc not reported"); #endif } /* FUTURE: Enable Performance Monitor : ccr bit 0x20 */ init_percpu_prof(cpunum); return ret; } /* * Display CPU info for all CPUs. */ int show_cpuinfo (struct seq_file *m, void *v) { unsigned long cpu; for_each_online_cpu(cpu) { const struct cpuinfo_parisc *cpuinfo = &per_cpu(cpu_data, cpu); #ifdef CONFIG_SMP if (0 == cpuinfo->hpa) continue; #endif seq_printf(m, "processor\t: %lu\n" "cpu family\t: PA-RISC %s\n", cpu, boot_cpu_data.family_name); seq_printf(m, "cpu\t\t: %s\n", boot_cpu_data.cpu_name ); /* cpu MHz */ seq_printf(m, "cpu MHz\t\t: %d.%06d\n", boot_cpu_data.cpu_hz / 1000000, boot_cpu_data.cpu_hz % 1000000 ); seq_printf(m, "capabilities\t:"); if (boot_cpu_data.pdc.capabilities & PDC_MODEL_OS32) seq_printf(m, " os32"); if (boot_cpu_data.pdc.capabilities & PDC_MODEL_OS64) seq_printf(m, " os64"); seq_printf(m, "\n"); seq_printf(m, "model\t\t: %s\n" "model name\t: %s\n", boot_cpu_data.pdc.sys_model_name, cpuinfo->dev ? cpuinfo->dev->name : "Unknown"); seq_printf(m, "hversion\t: 0x%08x\n" "sversion\t: 0x%08x\n", boot_cpu_data.hversion, boot_cpu_data.sversion ); /* print cachesize info */ show_cache_info(m); seq_printf(m, "bogomips\t: %lu.%02lu\n", cpuinfo->loops_per_jiffy / (500000 / HZ), (cpuinfo->loops_per_jiffy / (5000 / HZ)) % 100); seq_printf(m, "software id\t: %ld\n\n", boot_cpu_data.pdc.model.sw_id); } return 0; } static const struct parisc_device_id processor_tbl[] = { { HPHW_NPROC, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, SVERSION_ANY_ID }, { 0, } }; static struct parisc_driver cpu_driver = { .name = "CPU", .id_table = processor_tbl, .probe = processor_probe }; /** * processor_init - Processor initialization procedure. * * Register this driver. */ void __init processor_init(void) { register_parisc_driver(&cpu_driver); }
# The Default Ext65 Layout
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2007 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ #ifndef _UAPI_LINUX_BTRFS_H #define _UAPI_LINUX_BTRFS_H #include <linux/types.h> #include <linux/ioctl.h> #define BTRFS_IOCTL_MAGIC 0x94 #define BTRFS_VOL_NAME_MAX 255 #define BTRFS_LABEL_SIZE 256 /* this should be 4k */ #define BTRFS_PATH_NAME_MAX 4087 struct btrfs_ioctl_vol_args { __s64 fd; char name[BTRFS_PATH_NAME_MAX + 1]; }; #define BTRFS_DEVICE_PATH_NAME_MAX 1024 #define BTRFS_DEVICE_SPEC_BY_ID (1ULL << 3) #define BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED \ (BTRFS_SUBVOL_CREATE_ASYNC | \ BTRFS_SUBVOL_RDONLY | \ BTRFS_SUBVOL_QGROUP_INHERIT | \ BTRFS_DEVICE_SPEC_BY_ID) #define BTRFS_FSID_SIZE 16 #define BTRFS_UUID_SIZE 16 #define BTRFS_UUID_UNPARSED_SIZE 37 /* * flags definition for qgroup limits * * Used by: * struct btrfs_qgroup_limit.flags * struct btrfs_qgroup_limit_item.flags */ #define BTRFS_QGROUP_LIMIT_MAX_RFER (1ULL << 0) #define BTRFS_QGROUP_LIMIT_MAX_EXCL (1ULL << 1) #define BTRFS_QGROUP_LIMIT_RSV_RFER (1ULL << 2) #define BTRFS_QGROUP_LIMIT_RSV_EXCL (1ULL << 3) #define BTRFS_QGROUP_LIMIT_RFER_CMPR (1ULL << 4) #define BTRFS_QGROUP_LIMIT_EXCL_CMPR (1ULL << 5) struct btrfs_qgroup_limit { __u64 flags; __u64 max_rfer; __u64 max_excl; __u64 rsv_rfer; __u64 rsv_excl; }; /* * flags definition for qgroup inheritance * * Used by: * struct btrfs_qgroup_inherit.flags */ #define BTRFS_QGROUP_INHERIT_SET_LIMITS (1ULL << 0) struct btrfs_qgroup_inherit { __u64 flags; __u64 num_qgroups; __u64 num_ref_copies; __u64 num_excl_copies; struct btrfs_qgroup_limit lim; __u64 qgroups[0]; }; struct btrfs_ioctl_qgroup_limit_args { __u64 qgroupid; struct btrfs_qgroup_limit lim; }; /* * flags for subvolumes * * Used by: * struct btrfs_ioctl_vol_args_v2.flags * * BTRFS_SUBVOL_RDONLY is also provided/consumed by the following ioctls: * - BTRFS_IOC_SUBVOL_GETFLAGS * - BTRFS_IOC_SUBVOL_SETFLAGS */ #define BTRFS_SUBVOL_CREATE_ASYNC (1ULL << 0) #define BTRFS_SUBVOL_RDONLY (1ULL << 1) #define BTRFS_SUBVOL_QGROUP_INHERIT (1ULL << 2) #define BTRFS_SUBVOL_NAME_MAX 4039 struct btrfs_ioctl_vol_args_v2 { __s64 fd; __u64 transid; __u64 flags; union { struct { __u64 size; struct btrfs_qgroup_inherit __user *qgroup_inherit; }; __u64 unused[4]; }; union { char name[BTRFS_SUBVOL_NAME_MAX + 1]; __u64 devid; }; }; /* * structure to report errors and progress to userspace, either as a * result of a finished scrub, a canceled scrub or a progress inquiry */ struct btrfs_scrub_progress { __u64 data_extents_scrubbed; /* # of data extents scrubbed */ __u64 tree_extents_scrubbed; /* # of tree extents scrubbed */ __u64 data_bytes_scrubbed; /* # of data bytes scrubbed */ __u64 tree_bytes_scrubbed; /* # of tree bytes scrubbed */ __u64 read_errors; /* # of read errors encountered (EIO) */ __u64 csum_errors; /* # of failed csum checks */ __u64 verify_errors; /* # of occurences, where the metadata * of a tree block did not match the * expected values, like generation or * logical */ __u64 no_csum; /* # of 4k data block for which no csum * is present, probably the result of * data written with nodatasum */ __u64 csum_discards; /* # of csum for which no data was found * in the extent tree. */ __u64 super_errors; /* # of bad super blocks encountered */ __u64 malloc_errors; /* # of internal kmalloc errors. These * will likely cause an incomplete * scrub */ __u64 uncorrectable_errors; /* # of errors where either no intact * copy was found or the writeback * failed */ __u64 corrected_errors; /* # of errors corrected */ __u64 last_physical; /* last physical address scrubbed. In * case a scrub was aborted, this can * be used to restart the scrub */ __u64 unverified_errors; /* # of occurences where a read for a * full (64k) bio failed, but the re- * check succeeded for each 4k piece. * Intermittent error. */ }; #define BTRFS_SCRUB_READONLY 1 struct btrfs_ioctl_scrub_args { __u64 devid; /* in */ __u64 start; /* in */ __u64 end; /* in */ __u64 flags; /* in */ struct btrfs_scrub_progress progress; /* out */ /* pad to 1k */ __u64 unused[(1024-32-sizeof(struct btrfs_scrub_progress))/8]; }; #define BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS 0 #define BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID 1 struct btrfs_ioctl_dev_replace_start_params { __u64 srcdevid; /* in, if 0, use srcdev_name instead */ __u64 cont_reading_from_srcdev_mode; /* in, see #define * above */ __u8 srcdev_name[BTRFS_DEVICE_PATH_NAME_MAX + 1]; /* in */ __u8 tgtdev_name[BTRFS_DEVICE_PATH_NAME_MAX + 1]; /* in */ }; #define BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED 0 #define BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED 1 #define BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED 2 #define BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED 3 #define BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED 4 struct btrfs_ioctl_dev_replace_status_params { __u64 replace_state; /* out, see #define above */ __u64 progress_1000; /* out, 0 <= x <= 1000 */ __u64 time_started; /* out, seconds since 1-Jan-1970 */ __u64 time_stopped; /* out, seconds since 1-Jan-1970 */ __u64 num_write_errors; /* out */ __u64 num_uncorrectable_read_errors; /* out */ }; #define BTRFS_IOCTL_DEV_REPLACE_CMD_START 0 #define BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS 1 #define BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL 2 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR 0 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED 1 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED 2 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS 3 struct btrfs_ioctl_dev_replace_args { __u64 cmd; /* in */ __u64 result; /* out */ union { struct btrfs_ioctl_dev_replace_start_params start; struct btrfs_ioctl_dev_replace_status_params status; }; /* in/out */ __u64 spare[64]; }; struct btrfs_ioctl_dev_info_args { __u64 devid; /* in/out */ __u8 uuid[BTRFS_UUID_SIZE]; /* in/out */ __u64 bytes_used; /* out */ __u64 total_bytes; /* out */ __u64 unused[379]; /* pad to 4k */ __u8 path[BTRFS_DEVICE_PATH_NAME_MAX]; /* out */ }; struct btrfs_ioctl_fs_info_args { __u64 max_id; /* out */ __u64 num_devices; /* out */ __u8 fsid[BTRFS_FSID_SIZE]; /* out */ __u32 nodesize; /* out */ __u32 sectorsize; /* out */ __u32 clone_alignment; /* out */ __u32 reserved32; __u64 reserved[122]; /* pad to 1k */ }; /* * feature flags * * Used by: * struct btrfs_ioctl_feature_flags */ #define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE (1ULL << 0) /* * Older kernels (< 4.9) on big-endian systems produced broken free space tree * bitmaps, and btrfs-progs also used to corrupt the free space tree (versions * < 4.7.3). If this bit is clear, then the free space tree cannot be trusted. * btrfs-progs can also intentionally clear this bit to ask the kernel to * rebuild the free space tree, however this might not work on older kernels * that do not know about this bit. If not sure, clear the cache manually on * first mount when booting older kernel versions. */ #define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID (1ULL << 1) #define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF (1ULL << 0) #define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL (1ULL << 1) #define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS (1ULL << 2) #define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO (1ULL << 3) #define BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD (1ULL << 4) /* * older kernels tried to do bigger metadata blocks, but the * code was pretty buggy. Lets not let them try anymore. */ #define BTRFS_FEATURE_INCOMPAT_BIG_METADATA (1ULL << 5) #define BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF (1ULL << 6) #define BTRFS_FEATURE_INCOMPAT_RAID56 (1ULL << 7) #define BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA (1ULL << 8) #define BTRFS_FEATURE_INCOMPAT_NO_HOLES (1ULL << 9) struct btrfs_ioctl_feature_flags { __u64 compat_flags; __u64 compat_ro_flags; __u64 incompat_flags; }; /* balance control ioctl modes */ #define BTRFS_BALANCE_CTL_PAUSE 1 #define BTRFS_BALANCE_CTL_CANCEL 2 /* * this is packed, because it should be exactly the same as its disk * byte order counterpart (struct btrfs_disk_balance_args) */ struct btrfs_balance_args { __u64 profiles; union { __u64 usage; struct { __u32 usage_min; __u32 usage_max; }; }; __u64 devid; __u64 pstart; __u64 pend; __u64 vstart; __u64 vend; __u64 target; __u64 flags; /* * BTRFS_BALANCE_ARGS_LIMIT with value 'limit' * BTRFS_BALANCE_ARGS_LIMIT_RANGE - the extend version can use minimum * and maximum */ union { __u64 limit; /* limit number of processed chunks */ struct { __u32 limit_min; __u32 limit_max; }; }; /* * Process chunks that cross stripes_min..stripes_max devices, * BTRFS_BALANCE_ARGS_STRIPES_RANGE */ __u32 stripes_min; __u32 stripes_max; __u64 unused[6]; } __attribute__ ((__packed__)); /* report balance progress to userspace */ struct btrfs_balance_progress { __u64 expected; /* estimated # of chunks that will be * relocated to fulfill the request */ __u64 considered; /* # of chunks we have considered so far */ __u64 completed; /* # of chunks relocated so far */ }; /* * flags definition for balance * * Restriper's general type filter * * Used by: * btrfs_ioctl_balance_args.flags * btrfs_balance_control.flags (internal) */ #define BTRFS_BALANCE_DATA (1ULL << 0) #define BTRFS_BALANCE_SYSTEM (1ULL << 1) #define BTRFS_BALANCE_METADATA (1ULL << 2) #define BTRFS_BALANCE_TYPE_MASK (BTRFS_BALANCE_DATA | \ BTRFS_BALANCE_SYSTEM | \ BTRFS_BALANCE_METADATA) #define BTRFS_BALANCE_FORCE (1ULL << 3) #define BTRFS_BALANCE_RESUME (1ULL << 4) /* * flags definitions for per-type balance args * * Balance filters * * Used by: * struct btrfs_balance_args */ #define BTRFS_BALANCE_ARGS_PROFILES (1ULL << 0) #define BTRFS_BALANCE_ARGS_USAGE (1ULL << 1) #define BTRFS_BALANCE_ARGS_DEVID (1ULL << 2) #define BTRFS_BALANCE_ARGS_DRANGE (1ULL << 3) #define BTRFS_BALANCE_ARGS_VRANGE (1ULL << 4) #define BTRFS_BALANCE_ARGS_LIMIT (1ULL << 5) #define BTRFS_BALANCE_ARGS_LIMIT_RANGE (1ULL << 6) #define BTRFS_BALANCE_ARGS_STRIPES_RANGE (1ULL << 7) #define BTRFS_BALANCE_ARGS_USAGE_RANGE (1ULL << 10) #define BTRFS_BALANCE_ARGS_MASK \ (BTRFS_BALANCE_ARGS_PROFILES | \ BTRFS_BALANCE_ARGS_USAGE | \ BTRFS_BALANCE_ARGS_DEVID | \ BTRFS_BALANCE_ARGS_DRANGE | \ BTRFS_BALANCE_ARGS_VRANGE | \ BTRFS_BALANCE_ARGS_LIMIT | \ BTRFS_BALANCE_ARGS_LIMIT_RANGE | \ BTRFS_BALANCE_ARGS_STRIPES_RANGE | \ BTRFS_BALANCE_ARGS_USAGE_RANGE) /* * Profile changing flags. When SOFT is set we won't relocate chunk if * it already has the target profile (even though it may be * half-filled). */ #define BTRFS_BALANCE_ARGS_CONVERT (1ULL << 8) #define BTRFS_BALANCE_ARGS_SOFT (1ULL << 9) /* * flags definition for balance state * * Used by: * struct btrfs_ioctl_balance_args.state */ #define BTRFS_BALANCE_STATE_RUNNING (1ULL << 0) #define BTRFS_BALANCE_STATE_PAUSE_REQ (1ULL << 1) #define BTRFS_BALANCE_STATE_CANCEL_REQ (1ULL << 2) struct btrfs_ioctl_balance_args { __u64 flags; /* in/out */ __u64 state; /* out */ struct btrfs_balance_args data; /* in/out */ struct btrfs_balance_args meta; /* in/out */ struct btrfs_balance_args sys; /* in/out */ struct btrfs_balance_progress stat; /* out */ __u64 unused[72]; /* pad to 1k */ }; #define BTRFS_INO_LOOKUP_PATH_MAX 4080 struct btrfs_ioctl_ino_lookup_args { __u64 treeid; __u64 objectid; char name[BTRFS_INO_LOOKUP_PATH_MAX]; }; /* Search criteria for the btrfs SEARCH ioctl family. */ struct btrfs_ioctl_search_key { /* * The tree we're searching in. 1 is the tree of tree roots, 2 is the * extent tree, etc... * * A special tree_id value of 0 will cause a search in the subvolume * tree that the inode which is passed to the ioctl is part of. */ __u64 tree_id; /* in */ /* * When doing a tree search, we're actually taking a slice from a * linear search space of 136-bit keys. * * A full 136-bit tree key is composed as: * (objectid << 72) + (type << 64) + offset * * The individual min and max values for objectid, type and offset * define the min_key and max_key values for the search range. All * metadata items with a key in the interval [min_key, max_key] will be * returned. * * Additionally, we can filter the items returned on transaction id of * the metadata block they're stored in by specifying a transid range. * Be aware that this transaction id only denotes when the metadata * page that currently contains the item got written the last time as * result of a COW operation. The number does not have any meaning * related to the transaction in which an individual item that is being * returned was created or changed. */ __u64 min_objectid; /* in */ __u64 max_objectid; /* in */ __u64 min_offset; /* in */ __u64 max_offset; /* in */ __u64 min_transid; /* in */ __u64 max_transid; /* in */ __u32 min_type; /* in */ __u32 max_type; /* in */ /* * input: The maximum amount of results desired. * output: The actual amount of items returned, restricted by any of: * - reaching the upper bound of the search range * - reaching the input nr_items amount of items * - completely filling the supplied memory buffer */ __u32 nr_items; /* in/out */ /* align to 64 bits */ __u32 unused; /* some extra for later */ __u64 unused1; __u64 unused2; __u64 unused3; __u64 unused4; }; struct btrfs_ioctl_search_header { __u64 transid; __u64 objectid; __u64 offset; __u32 type; __u32 len; }; #define BTRFS_SEARCH_ARGS_BUFSIZE (4096 - sizeof(struct btrfs_ioctl_search_key)) /* * the buf is an array of search headers where * each header is followed by the actual item * the type field is expanded to 32 bits for alignment */ struct btrfs_ioctl_search_args { struct btrfs_ioctl_search_key key; char buf[BTRFS_SEARCH_ARGS_BUFSIZE]; }; struct btrfs_ioctl_search_args_v2 { struct btrfs_ioctl_search_key key; /* in/out - search parameters */ __u64 buf_size; /* in - size of buffer * out - on EOVERFLOW: needed size * to store item */ __u64 buf[0]; /* out - found items */ }; struct btrfs_ioctl_clone_range_args { __s64 src_fd; __u64 src_offset, src_length; __u64 dest_offset; }; /* * flags definition for the defrag range ioctl * * Used by: * struct btrfs_ioctl_defrag_range_args.flags */ #define BTRFS_DEFRAG_RANGE_COMPRESS 1 #define BTRFS_DEFRAG_RANGE_START_IO 2 struct btrfs_ioctl_defrag_range_args { /* start of the defrag operation */ __u64 start; /* number of bytes to defrag, use (u64)-1 to say all */ __u64 len; /* * flags for the operation, which can include turning * on compression for this one defrag */ __u64 flags; /* * any extent bigger than this will be considered * already defragged. Use 0 to take the kernel default * Use 1 to say every single extent must be rewritten */ __u32 extent_thresh; /* * which compression method to use if turning on compression * for this defrag operation. If unspecified, zlib will * be used */ __u32 compress_type; /* spare for later */ __u32 unused[4]; }; #define BTRFS_SAME_DATA_DIFFERS 1 /* For extent-same ioctl */ struct btrfs_ioctl_same_extent_info { __s64 fd; /* in - destination file */ __u64 logical_offset; /* in - start of extent in destination */ __u64 bytes_deduped; /* out - total # of bytes we were able * to dedupe from this file */ /* status of this dedupe operation: * 0 if dedup succeeds * < 0 for error * == BTRFS_SAME_DATA_DIFFERS if data differs */ __s32 status; /* out - see above description */ __u32 reserved; }; struct btrfs_ioctl_same_args { __u64 logical_offset; /* in - start of extent in source */ __u64 length; /* in - length of extent */ __u16 dest_count; /* in - total elements in info array */ __u16 reserved1; __u32 reserved2; struct btrfs_ioctl_same_extent_info info[0]; }; struct btrfs_ioctl_space_info { __u64 flags; __u64 total_bytes; __u64 used_bytes; }; struct btrfs_ioctl_space_args { __u64 space_slots; __u64 total_spaces; struct btrfs_ioctl_space_info spaces[0]; }; struct btrfs_data_container { __u32 bytes_left; /* out -- bytes not needed to deliver output */ __u32 bytes_missing; /* out -- additional bytes needed for result */ __u32 elem_cnt; /* out */ __u32 elem_missed; /* out */ __u64 val[0]; /* out */ }; struct btrfs_ioctl_ino_path_args { __u64 inum; /* in */ __u64 size; /* in */ __u64 reserved[4]; /* struct btrfs_data_container *fspath; out */ __u64 fspath; /* out */ }; struct btrfs_ioctl_logical_ino_args { __u64 logical; /* in */ __u64 size; /* in */ __u64 reserved[4]; /* struct btrfs_data_container *inodes; out */ __u64 inodes; }; enum btrfs_dev_stat_values { /* disk I/O failure stats */ BTRFS_DEV_STAT_WRITE_ERRS, /* EIO or EREMOTEIO from lower layers */ BTRFS_DEV_STAT_READ_ERRS, /* EIO or EREMOTEIO from lower layers */ BTRFS_DEV_STAT_FLUSH_ERRS, /* EIO or EREMOTEIO from lower layers */ /* stats for indirect indications for I/O failures */ BTRFS_DEV_STAT_CORRUPTION_ERRS, /* checksum error, bytenr error or * contents is illegal: this is an * indication that the block was damaged * during read or write, or written to * wrong location or read from wrong * location */ BTRFS_DEV_STAT_GENERATION_ERRS, /* an indication that blocks have not * been written */ BTRFS_DEV_STAT_VALUES_MAX }; /* Reset statistics after reading; needs SYS_ADMIN capability */ #define BTRFS_DEV_STATS_RESET (1ULL << 0) struct btrfs_ioctl_get_dev_stats { __u64 devid; /* in */ __u64 nr_items; /* in/out */ __u64 flags; /* in/out */ /* out values: */ __u64 values[BTRFS_DEV_STAT_VALUES_MAX]; __u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX]; /* pad to 1k */ }; #define BTRFS_QUOTA_CTL_ENABLE 1 #define BTRFS_QUOTA_CTL_DISABLE 2 #define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3 struct btrfs_ioctl_quota_ctl_args { __u64 cmd; __u64 status; }; struct btrfs_ioctl_quota_rescan_args { __u64 flags; __u64 progress; __u64 reserved[6]; }; struct btrfs_ioctl_qgroup_assign_args { __u64 assign; __u64 src; __u64 dst; }; struct btrfs_ioctl_qgroup_create_args { __u64 create; __u64 qgroupid; }; struct btrfs_ioctl_timespec { __u64 sec; __u32 nsec; }; struct btrfs_ioctl_received_subvol_args { char uuid[BTRFS_UUID_SIZE]; /* in */ __u64 stransid; /* in */ __u64 rtransid; /* out */ struct btrfs_ioctl_timespec stime; /* in */ struct btrfs_ioctl_timespec rtime; /* out */ __u64 flags; /* in */ __u64 reserved[16]; /* in */ }; /* * Caller doesn't want file data in the send stream, even if the * search of clone sources doesn't find an extent. UPDATE_EXTENT * commands will be sent instead of WRITE commands. */ #define BTRFS_SEND_FLAG_NO_FILE_DATA 0x1 /* * Do not add the leading stream header. Used when multiple snapshots * are sent back to back. */ #define BTRFS_SEND_FLAG_OMIT_STREAM_HEADER 0x2 /* * Omit the command at the end of the stream that indicated the end * of the stream. This option is used when multiple snapshots are * sent back to back. */ #define BTRFS_SEND_FLAG_OMIT_END_CMD 0x4 #define BTRFS_SEND_FLAG_MASK \ (BTRFS_SEND_FLAG_NO_FILE_DATA | \ BTRFS_SEND_FLAG_OMIT_STREAM_HEADER | \ BTRFS_SEND_FLAG_OMIT_END_CMD) struct btrfs_ioctl_send_args { __s64 send_fd; /* in */ __u64 clone_sources_count; /* in */ __u64 __user *clone_sources; /* in */ __u64 parent_root; /* in */ __u64 flags; /* in */ __u64 reserved[4]; /* in */ }; /* Error codes as returned by the kernel */ enum btrfs_err_code { BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET, BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET, BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET, BTRFS_ERROR_DEV_TGT_REPLACE, BTRFS_ERROR_DEV_MISSING_NOT_FOUND, BTRFS_ERROR_DEV_ONLY_WRITABLE, BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS }; #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_RESIZE _IOW(BTRFS_IOCTL_MAGIC, 3, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_SCAN_DEV _IOW(BTRFS_IOCTL_MAGIC, 4, \ struct btrfs_ioctl_vol_args) /* trans start and trans end are dangerous, and only for * use by applications that know how to avoid the * resulting deadlocks */ #define BTRFS_IOC_TRANS_START _IO(BTRFS_IOCTL_MAGIC, 6) #define BTRFS_IOC_TRANS_END _IO(BTRFS_IOCTL_MAGIC, 7) #define BTRFS_IOC_SYNC _IO(BTRFS_IOCTL_MAGIC, 8) #define BTRFS_IOC_CLONE _IOW(BTRFS_IOCTL_MAGIC, 9, int) #define BTRFS_IOC_ADD_DEV _IOW(BTRFS_IOCTL_MAGIC, 10, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_RM_DEV _IOW(BTRFS_IOCTL_MAGIC, 11, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_BALANCE _IOW(BTRFS_IOCTL_MAGIC, 12, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_CLONE_RANGE _IOW(BTRFS_IOCTL_MAGIC, 13, \ struct btrfs_ioctl_clone_range_args) #define BTRFS_IOC_SUBVOL_CREATE _IOW(BTRFS_IOCTL_MAGIC, 14, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_SNAP_DESTROY _IOW(BTRFS_IOCTL_MAGIC, 15, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_DEFRAG_RANGE _IOW(BTRFS_IOCTL_MAGIC, 16, \ struct btrfs_ioctl_defrag_range_args) #define BTRFS_IOC_TREE_SEARCH _IOWR(BTRFS_IOCTL_MAGIC, 17, \ struct btrfs_ioctl_search_args) #define BTRFS_IOC_TREE_SEARCH_V2 _IOWR(BTRFS_IOCTL_MAGIC, 17, \ struct btrfs_ioctl_search_args_v2) #define BTRFS_IOC_INO_LOOKUP _IOWR(BTRFS_IOCTL_MAGIC, 18, \ struct btrfs_ioctl_ino_lookup_args) #define BTRFS_IOC_DEFAULT_SUBVOL _IOW(BTRFS_IOCTL_MAGIC, 19, __u64) #define BTRFS_IOC_SPACE_INFO _IOWR(BTRFS_IOCTL_MAGIC, 20, \ struct btrfs_ioctl_space_args) #define BTRFS_IOC_START_SYNC _IOR(BTRFS_IOCTL_MAGIC, 24, __u64) #define BTRFS_IOC_WAIT_SYNC _IOW(BTRFS_IOCTL_MAGIC, 22, __u64) #define BTRFS_IOC_SNAP_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 23, \ struct btrfs_ioctl_vol_args_v2) #define BTRFS_IOC_SUBVOL_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 24, \ struct btrfs_ioctl_vol_args_v2) #define BTRFS_IOC_SUBVOL_GETFLAGS _IOR(BTRFS_IOCTL_MAGIC, 25, __u64) #define BTRFS_IOC_SUBVOL_SETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 26, __u64) #define BTRFS_IOC_SCRUB _IOWR(BTRFS_IOCTL_MAGIC, 27, \ struct btrfs_ioctl_scrub_args) #define BTRFS_IOC_SCRUB_CANCEL _IO(BTRFS_IOCTL_MAGIC, 28) #define BTRFS_IOC_SCRUB_PROGRESS _IOWR(BTRFS_IOCTL_MAGIC, 29, \ struct btrfs_ioctl_scrub_args) #define BTRFS_IOC_DEV_INFO _IOWR(BTRFS_IOCTL_MAGIC, 30, \ struct btrfs_ioctl_dev_info_args) #define BTRFS_IOC_FS_INFO _IOR(BTRFS_IOCTL_MAGIC, 31, \ struct btrfs_ioctl_fs_info_args) #define BTRFS_IOC_BALANCE_V2 _IOWR(BTRFS_IOCTL_MAGIC, 32, \ struct btrfs_ioctl_balance_args) #define BTRFS_IOC_BALANCE_CTL _IOW(BTRFS_IOCTL_MAGIC, 33, int) #define BTRFS_IOC_BALANCE_PROGRESS _IOR(BTRFS_IOCTL_MAGIC, 34, \ struct btrfs_ioctl_balance_args) #define BTRFS_IOC_INO_PATHS _IOWR(BTRFS_IOCTL_MAGIC, 35, \ struct btrfs_ioctl_ino_path_args) #define BTRFS_IOC_LOGICAL_INO _IOWR(BTRFS_IOCTL_MAGIC, 36, \ struct btrfs_ioctl_logical_ino_args) #define BTRFS_IOC_SET_RECEIVED_SUBVOL _IOWR(BTRFS_IOCTL_MAGIC, 37, \ struct btrfs_ioctl_received_subvol_args) #define BTRFS_IOC_SEND _IOW(BTRFS_IOCTL_MAGIC, 38, struct btrfs_ioctl_send_args) #define BTRFS_IOC_DEVICES_READY _IOR(BTRFS_IOCTL_MAGIC, 39, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_QUOTA_CTL _IOWR(BTRFS_IOCTL_MAGIC, 40, \ struct btrfs_ioctl_quota_ctl_args) #define BTRFS_IOC_QGROUP_ASSIGN _IOW(BTRFS_IOCTL_MAGIC, 41, \ struct btrfs_ioctl_qgroup_assign_args) #define BTRFS_IOC_QGROUP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 42, \ struct btrfs_ioctl_qgroup_create_args) #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ struct btrfs_ioctl_qgroup_limit_args) #define BTRFS_IOC_QUOTA_RESCAN _IOW(BTRFS_IOCTL_MAGIC, 44, \ struct btrfs_ioctl_quota_rescan_args) #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ struct btrfs_ioctl_quota_rescan_args) #define BTRFS_IOC_QUOTA_RESCAN_WAIT _IO(BTRFS_IOCTL_MAGIC, 46) #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ char[BTRFS_LABEL_SIZE]) #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ char[BTRFS_LABEL_SIZE]) #define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \ struct btrfs_ioctl_get_dev_stats) #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ struct btrfs_ioctl_dev_replace_args) #define BTRFS_IOC_FILE_EXTENT_SAME _IOWR(BTRFS_IOCTL_MAGIC, 54, \ struct btrfs_ioctl_same_args) #define BTRFS_IOC_GET_FEATURES _IOR(BTRFS_IOCTL_MAGIC, 57, \ struct btrfs_ioctl_feature_flags) #define BTRFS_IOC_SET_FEATURES _IOW(BTRFS_IOCTL_MAGIC, 57, \ struct btrfs_ioctl_feature_flags[2]) #define BTRFS_IOC_GET_SUPPORTED_FEATURES _IOR(BTRFS_IOCTL_MAGIC, 57, \ struct btrfs_ioctl_feature_flags[3]) #define BTRFS_IOC_RM_DEV_V2 _IOW(BTRFS_IOCTL_MAGIC, 58, \ struct btrfs_ioctl_vol_args_v2) #endif /* _UAPI_LINUX_BTRFS_H */
// license:BSD-3-Clause // copyright-holders:Andreas Naive,David Haywood #include "emu.h" #include "igs036crypt.h" /**************************************************************************** IGS036 encryption emulation The encryption used by the IGS036 seems to be another iteration over previous IGS encryption schemes. Basically, it consists on a rotation-based non-trivial obfuscation layered upon a simple address-based XOR encryption (similar to the ones found in previous IGS circuits). The scheme works on 16-bits words and is probably designed to depend on 24 bits of (word-) address; in what follows, we will refer to the 8 lowest ones simply as the lowest bits of the address, and the other 16 as the highest bits the address. The address-based XOR can be thought as 16 one-bit XORs against key bits controlled by certain combinations of up to three address bits. The game key is comprised of 256 8-bits values provided by the internal ARM; every 8-bit value in the key is used on those words whose address match the index modulus 256; in a given key byte, every bit affects two positions of the correponding 16-bits encrypted words. This use of the key is similar to the one found in previous instantiations of IGS circuits. What is new in the IGS036 is the use of an obfuscation working this way: 1) The highest bits of the address are split in 4 groups, every of which controls a rotation by a shift of (plus or minus) 9, 1, 2 and 4 respectively. 2) For every address, the highest bit of the group set in the address controls the activation/deactivation of the rotation for his group, using an associated (and fixed) boolean function depending on the lowest bits of the address. 3) If the group rotation is to be activated according to 2), then another fixed group-level boolean functions (again, depending on the lowest bits of the address) control the direction (left or right) of the rotation. 4) One of the groups (the associated with the shift by 9) interacts with the other three by inverting (when active itself) the activation/deactivation patterns of the other three. 5) The lowest bits of the address control a further rotation(independent on the highest bits of the address). 6) Finally, a global bitswap is applied. All the associated boolean functions are clearly of low complexity, so it should be expected that the hardware is calculating them that way rather than using lookup tables or otherwise. It should be stressed that this obfuscation is done system-wide without dependence on the game keys. On a different note, the unused tail of the ROMs are pattern-filled and, more interestingly, that region appears to be hiding 20-bytes values (SHA-1 hashes?) located at positions which vary per set. See the table below. driver 20-bytes value position in the ROM --------- ---------------------------------- orleg2o $763984-$763997 orleg2 $76C77C-$76C78F kov3 $718040-$718053 kof98umh $E50E60-$E50E73 TO-DO: complete the table with the 20-bytes values *****************************************************************************/ igs036_decryptor::igs036_decryptor(const uint8_t* game_key) : key(game_key) { } void igs036_decryptor::decrypter_rom(uint16_t* rom, int size, int offset) { for (int i = 0; i < size / 2; i++) { rom[i] = decrypt(rom[i], i+offset); } } uint16_t igs036_decryptor::decrypt(uint16_t cipherword, int word_address)const { // key-independent manipulation int aux = deobfuscate(cipherword, word_address); // key-dependent manipulation for (int i=0; i<16; ++i) { if ((word_address&triggers[i][0]) == triggers[i][1]) aux ^= BIT(key[word_address&0xff],i&7) << i; else aux ^= BIT(0x1a3a, i) << i; } return aux; } uint16_t igs036_decryptor::deobfuscate(uint16_t cipherword, int word_address)const { // key-independent manipulation int shift = rotation(word_address); int aux = rol(cipherword, shift); aux = bitswap<16>(aux, 10,9,8,7,0,15,6,5, 14,13,4,3,12,11,2,1); return aux; } int igs036_decryptor::rotation(int address)const { const int group15[] = {15,11, 7, 5}; // 15 is a guess const int group14[] = {14, 9, 3, 2}; const int group13[] = {13,10, 6, 1}; const int group12[] = {12, 8, 4, 0}; // rotation depending on all the address bits int enabled0 = rot_enabled(address, group15); int rot = enabled0 * rot_group(address, group15) * 9; int enabled1 = enabled0 ^ rot_enabled(address, group14); rot += enabled1 * rot_group(address, group14) * 1; int enabled2 = enabled0 ^ rot_enabled(address, group13); rot += enabled2 * rot_group(address, group13) * 2; int enabled3 = enabled0 ^ rot_enabled(address, group12); rot += enabled3 * rot_group(address, group12) * 4; // block-independent rotation (just depending on the lowest 8 bits) int rot2 = 4*BIT(address,0); rot2 += 1*BIT(address,4)*(BIT(address,0)*2-1); rot2 += 4*BIT(address,3)*(BIT(address,0)*2-1); rot2 *= (BIT(address,7)|(BIT(address,0)^BIT(address,1)^1))*2-1; rot2 += 2*((BIT(address,0)^BIT(address,1))&(BIT(address,7)^1)); return (rot+rot2)&0xf; } int igs036_decryptor::rot_enabled(int address, const int* group)const { int enabled = 0; for (int j=0; j<4; ++j) { if (BIT(address,8+group[j])) { int aux = address ^ (0x1b*BIT(address,2)); enabled = rot_enabling[group[j]][aux&3](aux); break; } } return enabled; } int igs036_decryptor::rot_group(int address, const int* group)const { int aux = rot_direction[group[0]&3][address&7](address); return (aux*2)-1; } uint16_t igs036_decryptor::rol(uint16_t num, int shift)const { uint16_t r = num<<shift; uint16_t l = num>>(16-shift); return r|l; } // the triggers describe under what conditions are every one of the 16 XORs activated const uint32_t igs036_decryptor::triggers[16][2] = { {0x000101, 0x000001}, {0x000802, 0x000800}, {0x000204, 0x000004}, {0x000408, 0x000408}, {0x010010, 0x000010}, {0x020020, 0x000020}, {0x040040, 0x000040}, {0x080080, 0x080080}, {0x100100, 0x000100}, {0x200200, 0x200000}, {0x400400, 0x400000}, {0x800801, 0x000001}, {0x001004, 0x001000}, {0x002010, 0x002000}, {0x004040, 0x000040}, {0x008100, 0x008100} }; // The rotation depending on the 16 highest address bits depends on a series // of function on the 8 lowest word-address bits. Some comments: // * Bits #5 & #6 are unused so, in fact, they only depend on 6 address bits // * The functions are clearly low-complexity boolean functions on those 6 bits // rather than, say, random lookup tables // * There are quite a number of functionally equivalent ways to implement // those boolean functions, so the given implementation (by multiplexing // over some simple functions) shouldn't be taken too seriously: while it's // functionally correct, it doesn't neccesarily represent the way the hardware // is calculating them. static int unknown(int address) { return 0; } static int cZero (int address) { return 0; } static int cOne (int address) { return 1; } static int bit_3 (int address) { return BIT(address,3); } static int bit_4 (int address) { return BIT(address,4); } static int bit_7 (int address) { return BIT(address,7); } static int not_3 (int address) { return BIT(address,3)^1; } static int not_4 (int address) { return BIT(address,4)^1; } static int not_7 (int address) { return BIT(address,7)^1; } static int xor_37 (int address) { return BIT(address,3)^BIT(address,7); } static int xnor_37(int address) { return BIT(address,3)^BIT(address,7)^1; } static int xor_47 (int address) { return BIT(address,4)^BIT(address,7); } static int xnor_47(int address) { return BIT(address,4)^BIT(address,7)^1; } static int nor_34 (int address) { return (BIT(address,3)|BIT(address,4))^1; } static int impl_43(int address) { return BIT(address,3)||(BIT(address,4)^1); } int (*igs036_decryptor::rot_enabling[16][4])(int) = { {bit_3 , not_3 , bit_3 , not_3 }, {bit_3 , not_3 , bit_3 , not_3 }, {bit_4 , bit_4 , bit_4 , bit_4 }, {bit_4 , not_4 , bit_4 , not_4 }, {bit_3 , bit_3 , bit_3 , bit_3 }, {nor_34 , bit_7 , bit_7 , cZero }, {cZero , cOne , cZero , cOne }, {impl_43, xor_37 , xnor_37, not_3 }, {bit_3 , bit_3 , not_3 , not_3 }, {bit_4 , bit_4 , not_4 , not_4 }, {cZero , cZero , cZero , cZero }, {nor_34 , bit_7 , not_7 , cOne }, {bit_3 , not_3 , bit_3 , not_3 }, {cZero , cOne , cOne , cZero }, {bit_4 , not_4 , bit_4 , not_4 }, {unknown, unknown, unknown, unknown}, }; int (*igs036_decryptor::rot_direction[4][8])(int) = { {bit_3 , xor_37 , xnor_37, not_3 , bit_3 , xor_37 , xnor_37, not_3 }, {cZero , not_7 , not_7 , cZero , cZero , not_7 , not_7 , cZero }, {bit_4 , xor_47 , xnor_47, not_4 , bit_4 , xor_47 , xnor_47, not_4 }, {bit_3 , not_7 , bit_7 , cZero , cOne , not_7 , bit_7 , cZero }, }; // ------------------------GAME KEYS--------------------------- // The keys below have been obtained by an automatic process // exploiting the simple XOR scheme used by the system. Overall, the process, // while simple, seems to be pretty robust, so few errors should be expected, // if any. The exceptions are DDPDOJ & KOF98UMH (see below). const uint8_t m312cn_key[0x100] = { 0x01, 0x09, 0x02, 0xab, 0x23, 0x20, 0xa2, 0x03, 0x10, 0x9b, 0xba, 0x33, 0x04, 0x2e, 0x27, 0x23, 0x92, 0x11, 0x13, 0x93, 0x13, 0x86, 0x83, 0x02, 0x18, 0x8a, 0x8b, 0x9a, 0x10, 0x0f, 0x13, 0x83, 0xa2, 0x98, 0x32, 0xba, 0x06, 0xab, 0x02, 0x0b, 0x1a, 0xa0, 0x13, 0x82, 0x84, 0x80, 0x8a, 0xa7, 0x83, 0xb0, 0xb2, 0xab, 0x31, 0x07, 0xa3, 0x02, 0x10, 0x23, 0x8b, 0xb2, 0x2b, 0x0a, 0xa7, 0xa3, 0x02, 0x7b, 0x12, 0xc3, 0x07, 0x0c, 0x43, 0xa6, 0x91, 0x91, 0x9b, 0xaa, 0x82, 0xca, 0x2e, 0x6a, 0x43, 0x51, 0x02, 0xcb, 0x52, 0x8b, 0x56, 0x57, 0x88, 0xc3, 0x83, 0x1a, 0x8d, 0x51, 0x86, 0x0a, 0xc1, 0x1b, 0x22, 0x5a, 0x07, 0x84, 0xa3, 0xce, 0xba, 0xfa, 0xab, 0x6a, 0xea, 0x2c, 0x2e, 0x67, 0x00, 0x33, 0x53, 0xd3, 0x47, 0x98, 0x93, 0x62, 0x2b, 0x9b, 0x2b, 0x82, 0xed, 0x4b, 0x1a, 0x86, 0xa0, 0xb9, 0x82, 0x0b, 0x27, 0x09, 0xa2, 0xab, 0x20, 0x3a, 0x8b, 0x0a, 0x84, 0x8d, 0x0b, 0x8f, 0x83, 0x8a, 0x92, 0x13, 0x10, 0x18, 0x06, 0x96, 0x83, 0x89, 0x8b, 0x92, 0x1c, 0x92, 0x9b, 0x17, 0x02, 0x2b, 0x02, 0x02, 0x06, 0x25, 0xa2, 0xab, 0xa8, 0x12, 0x13, 0x9a, 0x21, 0x27, 0x03, 0x2a, 0xa3, 0x92, 0x33, 0xb2, 0x94, 0x12, 0x32, 0x9b, 0x90, 0xa0, 0x8a, 0x2a, 0x9a, 0xbb, 0xae, 0x1e, 0x41, 0x2b, 0x92, 0xb2, 0x44, 0xe0, 0x02, 0x6f, 0x61, 0x30, 0x4a, 0x13, 0x61, 0x4f, 0x2e, 0xa6, 0x52, 0x00, 0xc2, 0x8b, 0x53, 0x8f, 0x93, 0x4f, 0x5b, 0x01, 0x1a, 0x9b, 0xc6, 0x01, 0x03, 0x0b, 0x42, 0x09, 0xf2, 0x62, 0x82, 0x41, 0x22, 0xc6, 0x90, 0x2a, 0xfa, 0x0b, 0x6c, 0xa0, 0x4f, 0x03, 0xa0, 0x53, 0xf2, 0xbb, 0x46, 0x96, 0x23, 0x22, 0xd8, 0xfa, 0x12, 0xab, 0x88, 0x1a, 0x7a, 0x8a, }; const uint8_t cjddzsp_key[0x100] = { 0x11, 0x21, 0xa2, 0x1a, 0x84, 0xaf, 0x26, 0x0b, 0x3b, 0xbb, 0x12, 0x9b, 0x89, 0x80, 0x2f, 0x0a, 0x91, 0x80, 0x93, 0x93, 0x80, 0x0b, 0x13, 0x93, 0x0a, 0x82, 0x8a, 0x12, 0x13, 0x05, 0x96, 0x17, 0x81, 0xb1, 0xb3, 0xab, 0x06, 0x2a, 0x87, 0x83, 0x33, 0x93, 0x13, 0x8a, 0x28, 0xa8, 0x07, 0x8b, 0x11, 0xa3, 0xb2, 0xa2, 0x23, 0x17, 0x17, 0xb6, 0x33, 0xa9, 0xa3, 0x23, 0xa0, 0xa3, 0x9b, 0xbb, 0x70, 0xe8, 0x83, 0x72, 0xe6, 0xa2, 0xa2, 0x27, 0xbb, 0xc8, 0xf3, 0x42, 0x6d, 0xc8, 0x66, 0x47, 0x93, 0x18, 0x12, 0x12, 0x13, 0x58, 0xd2, 0xc6, 0x49, 0x09, 0xc3, 0x0a, 0x81, 0x0b, 0xc2, 0xda, 0xd2, 0x33, 0xc2, 0x1a, 0x40, 0x89, 0x26, 0xeb, 0x78, 0x51, 0x5a, 0x62, 0xa3, 0xee, 0x02, 0x8f, 0x42, 0xa1, 0xe3, 0x3a, 0x41, 0x44, 0x93, 0xd3, 0x03, 0xda, 0xe2, 0x83, 0x69, 0xc5, 0xb3, 0xb6, 0x91, 0x00, 0xa2, 0x32, 0x24, 0x88, 0x87, 0xab, 0x02, 0x28, 0x2a, 0x8b, 0x87, 0xab, 0x2b, 0x8b, 0x13, 0x02, 0x03, 0x9a, 0x94, 0x13, 0x87, 0x0b, 0x1a, 0x98, 0x03, 0x1b, 0x10, 0x81, 0x1a, 0x9f, 0x81, 0xa9, 0x03, 0x3a, 0x05, 0x06, 0x27, 0xab, 0x3b, 0xa8, 0x8a, 0xab, 0xaf, 0x0a, 0xaa, 0x2f, 0x31, 0x39, 0x32, 0x3a, 0x81, 0xbf, 0x07, 0x87, 0x89, 0x98, 0xa2, 0x22, 0x13, 0xa4, 0xb6, 0x0e, 0x43, 0xf2, 0x43, 0x33, 0x47, 0x4c, 0x66, 0x26, 0xf2, 0x69, 0x2b, 0x5a, 0xa3, 0x83, 0x4b, 0xe6, 0x41, 0x50, 0x92, 0xcb, 0xd3, 0x1e, 0x57, 0x87, 0x01, 0x19, 0x9a, 0x52, 0x45, 0x5a, 0x9e, 0xde, 0xa3, 0xa1, 0x42, 0x7b, 0xa3, 0x22, 0xa2, 0x87, 0x80, 0xe0, 0xf3, 0x23, 0x2a, 0x8e, 0x2f, 0x6f, 0x92, 0x1a, 0x23, 0xab, 0xb3, 0x09, 0xd6, 0xab, 0x38, 0xe3, 0x2b, 0x3a, 0xdf, 0x7d, 0xea, 0x87, }; const uint8_t cjdh2_key[0x100] = { 0x03, 0x31, 0x92, 0x23, 0x21, 0x2b, 0x23, 0x23, 0x39, 0x01, 0xb2, 0x9b, 0x0d, 0xaa, 0x07, 0x86, 0x03, 0x9b, 0x03, 0x82, 0x82, 0x00, 0x86, 0x0b, 0x80, 0x92, 0x9a, 0x1b, 0x81, 0x9a, 0x92, 0x8f, 0x83, 0x89, 0x82, 0x0a, 0x02, 0x0f, 0x83, 0xa7, 0x80, 0x32, 0xbb, 0x02, 0x8f, 0xa2, 0xaa, 0x0e, 0x80, 0x12, 0x23, 0xbb, 0x86, 0xb9, 0xb3, 0x1b, 0x19, 0xb8, 0x93, 0x22, 0x28, 0x9d, 0xbf, 0xb2, 0xa1, 0xb0, 0x63, 0xaa, 0x81, 0x8a, 0x47, 0x0b, 0xdb, 0x21, 0x5a, 0x03, 0xe9, 0x60, 0x2f, 0xab, 0x00, 0x43, 0xc2, 0x8b, 0x06, 0x54, 0x47, 0x9f, 0x51, 0xc9, 0x4a, 0x4b, 0x1f, 0x40, 0x9f, 0x52, 0x21, 0x00, 0xe3, 0x72, 0x44, 0x43, 0xc2, 0xab, 0x5a, 0x32, 0x1a, 0x62, 0x6d, 0xa2, 0x82, 0xce, 0x73, 0xe0, 0xc3, 0xa3, 0x73, 0x71, 0x16, 0x42, 0x69, 0xc9, 0x02, 0x43, 0x93, 0x23, 0x43, 0xbf, 0x83, 0x19, 0xb2, 0x9a, 0xa0, 0x8a, 0x03, 0x8e, 0x29, 0x03, 0x02, 0x0b, 0xa0, 0xa0, 0x8b, 0x0a, 0x13, 0x0b, 0x12, 0x9a, 0x10, 0x80, 0x87, 0x8f, 0x98, 0x89, 0x13, 0x0b, 0x83, 0x8e, 0x1a, 0x1a, 0x90, 0xab, 0xa2, 0x9b, 0xa5, 0xae, 0x22, 0x0a, 0x8b, 0xab, 0xa3, 0x0a, 0x0e, 0x02, 0x8e, 0x0f, 0x32, 0x3b, 0x13, 0x0b, 0x93, 0x91, 0x22, 0x0b, 0x90, 0xab, 0xb2, 0x33, 0xa1, 0x21, 0xaa, 0xae, 0xa3, 0x93, 0x73, 0xc2, 0x67, 0x81, 0xc7, 0x0a, 0x31, 0xa2, 0x7b, 0x93, 0xa7, 0x60, 0x86, 0xce, 0x53, 0x18, 0x53, 0x52, 0xc6, 0x5b, 0x47, 0x1a, 0x0b, 0x98, 0x5b, 0xda, 0x92, 0x14, 0x07, 0x82, 0x70, 0xc3, 0x02, 0xd2, 0xe1, 0x42, 0x42, 0x47, 0xe3, 0x20, 0x9a, 0xea, 0xe6, 0x02, 0x2a, 0x8f, 0xf3, 0x3a, 0x22, 0x7a, 0xf1, 0x58, 0x97, 0xeb, 0x41, 0x59, 0xe2, 0x73, 0xdd, 0xa7, 0x7e, 0x1f, };
// Copyright 2013 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #include "VideoBackends/OGL/GLExtensions/gl_common.h" extern PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARB; extern PFNGLDEBUGMESSAGECONTROLARBPROC glDebugMessageControlARB; extern PFNGLDEBUGMESSAGEINSERTARBPROC glDebugMessageInsertARB; extern PFNGLGETDEBUGMESSAGELOGARBPROC glGetDebugMessageLogARB;
#!/bin/bash # Test that dies with a signal # Copyright (C) 2003-2006 IBM # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. kill -FPE $$ exit 0
/* { dg-do compile } */ /* { dg-options "-mavx512bw -O2" } */ /* { dg-final { scan-assembler-times "korq\[ \\t\]+\[^\{\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */ #include <immintrin.h> void avx512bw_test () { __mmask64 k1, k2, k3; volatile __m512i x = _mm512_setzero_si512 (); __asm__( "kmovq %1, %0" : "=k" (k1) : "r" (1) ); __asm__( "kmovq %1, %0" : "=k" (k2) : "r" (2) ); k3 = _kor_mask64 (k1, k2); x = _mm512_mask_add_epi8 (x, k3, x, x); }
----------------------------------- -- Area: Upper Delkfutt's Tower -- NPC: HomePoint#1 -- @pos -365 -176.5 -36 158 ----------------------------------- package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Upper_Delkfutts_Tower/TextIDs"); require("scripts/globals/homepoint"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- -- onTrigger Action ----------------------------------- function onTrigger(player,npc) homepointMenu( player, 0x21fc, 71); end; ----------------------------------- -- onEventUpdate ----------------------------------- function onEventUpdate(player,csid,option) --printf("CSID: %u",csid); --printf("RESULT: %u",option); end; ----------------------------------- -- onEventFinish ----------------------------------- function onEventFinish(player,csid,option) --printf("CSID: %u",csid); --printf("RESULT: %u",option); if (csid == 0x21fc) then if (option == 1) then player:setHomePoint(); player:messageSpecial(HOMEPOINT_SET); else hpTeleport( player, option); end end end;
@keyframes swing { 20% { transform: rotate(15deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(5deg); } 80% { transform: rotate(-5deg); } 100% { transform: rotate(0deg); } } .swing { transform-origin: top center; animation-name: swing; }
/* * Machine check exception handling CPU-side for power7 and power8 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Copyright 2013 IBM Corporation * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> */ #undef DEBUG #define pr_fmt(fmt) "mce_power: " fmt #include <linux/types.h> #include <linux/ptrace.h> #include <asm/mmu.h> #include <asm/mce.h> #include <asm/machdep.h> static void flush_tlb_206(unsigned int num_sets, unsigned int action) { unsigned long rb; unsigned int i; switch (action) { case TLB_INVAL_SCOPE_GLOBAL: rb = TLBIEL_INVAL_SET; break; case TLB_INVAL_SCOPE_LPID: rb = TLBIEL_INVAL_SET_LPID; break; default: BUG(); break; } asm volatile("ptesync" : : : "memory"); for (i = 0; i < num_sets; i++) { asm volatile("tlbiel %0" : : "r" (rb)); rb += 1 << TLBIEL_INVAL_SET_SHIFT; } asm volatile("ptesync" : : : "memory"); } /* * Generic routines to flush TLB on POWER processors. These routines * are used as flush_tlb hook in the cpu_spec. * * action => TLB_INVAL_SCOPE_GLOBAL: Invalidate all TLBs. * TLB_INVAL_SCOPE_LPID: Invalidate TLB for current LPID. */ void __flush_tlb_power7(unsigned int action) { flush_tlb_206(POWER7_TLB_SETS, action); } void __flush_tlb_power8(unsigned int action) { flush_tlb_206(POWER8_TLB_SETS, action); } void __flush_tlb_power9(unsigned int action) { unsigned int num_sets; if (radix_enabled()) num_sets = POWER9_TLB_SETS_RADIX; else num_sets = POWER9_TLB_SETS_HASH; flush_tlb_206(num_sets, action); } /* flush SLBs and reload */ #ifdef CONFIG_PPC_STD_MMU_64 static void flush_and_reload_slb(void) { struct slb_shadow *slb; unsigned long i, n; /* Invalidate all SLBs */ asm volatile("slbmte %0,%0; slbia" : : "r" (0)); #ifdef CONFIG_KVM_BOOK3S_HANDLER /* * If machine check is hit when in guest or in transition, we will * only flush the SLBs and continue. */ if (get_paca()->kvm_hstate.in_guest) return; #endif /* For host kernel, reload the SLBs from shadow SLB buffer. */ slb = get_slb_shadow(); if (!slb) return; n = min_t(u32, be32_to_cpu(slb->persistent), SLB_MIN_SIZE); /* Load up the SLB entries from shadow SLB */ for (i = 0; i < n; i++) { unsigned long rb = be64_to_cpu(slb->save_area[i].esid); unsigned long rs = be64_to_cpu(slb->save_area[i].vsid); rb = (rb & ~0xFFFul) | i; asm volatile("slbmte %0,%1" : : "r" (rs), "r" (rb)); } } #endif static void flush_erat(void) { asm volatile(PPC_INVALIDATE_ERAT : : :"memory"); } #define MCE_FLUSH_SLB 1 #define MCE_FLUSH_TLB 2 #define MCE_FLUSH_ERAT 3 static int mce_flush(int what) { #ifdef CONFIG_PPC_STD_MMU_64 if (what == MCE_FLUSH_SLB) { flush_and_reload_slb(); return 1; } #endif if (what == MCE_FLUSH_ERAT) { flush_erat(); return 1; } if (what == MCE_FLUSH_TLB) { if (cur_cpu_spec && cur_cpu_spec->flush_tlb) { cur_cpu_spec->flush_tlb(TLB_INVAL_SCOPE_GLOBAL); return 1; } } return 0; } #define SRR1_MC_LOADSTORE(srr1) ((srr1) & PPC_BIT(42)) struct mce_ierror_table { unsigned long srr1_mask; unsigned long srr1_value; bool nip_valid; /* nip is a valid indicator of faulting address */ unsigned int error_type; unsigned int error_subtype; unsigned int initiator; unsigned int severity; }; static const struct mce_ierror_table mce_p7_ierror_table[] = { { 0x00000000001c0000, 0x0000000000040000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000001c0000, 0x0000000000080000, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_PARITY, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000001c0000, 0x00000000000c0000, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000001c0000, 0x0000000000100000, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_INDETERMINATE, /* BOTH */ MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000001c0000, 0x0000000000140000, true, MCE_ERROR_TYPE_TLB, MCE_TLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000001c0000, 0x0000000000180000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_PAGE_TABLE_WALK_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000001c0000, 0x00000000001c0000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0, 0, 0, 0, 0, 0 } }; static const struct mce_ierror_table mce_p8_ierror_table[] = { { 0x00000000081c0000, 0x0000000000040000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000080000, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_PARITY, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x00000000000c0000, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000100000, true, MCE_ERROR_TYPE_ERAT,MCE_ERAT_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000140000, true, MCE_ERROR_TYPE_TLB, MCE_TLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000180000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_PAGE_TABLE_WALK_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x00000000001c0000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000008000000, true, MCE_ERROR_TYPE_LINK,MCE_LINK_ERROR_IFETCH_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000008040000, true, MCE_ERROR_TYPE_LINK,MCE_LINK_ERROR_PAGE_TABLE_WALK_IFETCH_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0, 0, 0, 0, 0, 0 } }; static const struct mce_ierror_table mce_p9_ierror_table[] = { { 0x00000000081c0000, 0x0000000000040000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000080000, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_PARITY, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x00000000000c0000, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000100000, true, MCE_ERROR_TYPE_ERAT,MCE_ERAT_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000140000, true, MCE_ERROR_TYPE_TLB, MCE_TLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000000180000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_PAGE_TABLE_WALK_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000008000000, true, MCE_ERROR_TYPE_LINK,MCE_LINK_ERROR_IFETCH_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000008040000, true, MCE_ERROR_TYPE_LINK,MCE_LINK_ERROR_PAGE_TABLE_WALK_IFETCH_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x00000000080c0000, true, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000008100000, true, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000000081c0000, 0x0000000008140000, false, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_STORE, MCE_INITIATOR_CPU, MCE_SEV_FATAL, }, /* ASYNC is fatal */ { 0x00000000081c0000, 0x0000000008180000, false, MCE_ERROR_TYPE_LINK,MCE_LINK_ERROR_STORE_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_FATAL, }, /* ASYNC is fatal */ { 0x00000000081c0000, 0x00000000081c0000, true, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH_FOREIGN, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0, 0, 0, 0, 0, 0 } }; struct mce_derror_table { unsigned long dsisr_value; bool dar_valid; /* dar is a valid indicator of faulting address */ unsigned int error_type; unsigned int error_subtype; unsigned int initiator; unsigned int severity; }; static const struct mce_derror_table mce_p7_derror_table[] = { { 0x00008000, false, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_LOAD_STORE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00004000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_PAGE_TABLE_WALK_LOAD_STORE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000800, true, MCE_ERROR_TYPE_ERAT, MCE_ERAT_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000400, true, MCE_ERROR_TYPE_TLB, MCE_TLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000100, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_PARITY, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000080, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000040, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_INDETERMINATE, /* BOTH */ MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0, false, 0, 0, 0, 0 } }; static const struct mce_derror_table mce_p8_derror_table[] = { { 0x00008000, false, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_LOAD_STORE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00004000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_PAGE_TABLE_WALK_LOAD_STORE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00002000, true, MCE_ERROR_TYPE_LINK, MCE_LINK_ERROR_LOAD_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00001000, true, MCE_ERROR_TYPE_LINK, MCE_LINK_ERROR_PAGE_TABLE_WALK_LOAD_STORE_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000800, true, MCE_ERROR_TYPE_ERAT, MCE_ERAT_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000400, true, MCE_ERROR_TYPE_TLB, MCE_TLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000200, true, MCE_ERROR_TYPE_ERAT, MCE_ERAT_ERROR_MULTIHIT, /* SECONDARY ERAT */ MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000100, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_PARITY, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000080, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0, false, 0, 0, 0, 0 } }; static const struct mce_derror_table mce_p9_derror_table[] = { { 0x00008000, false, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_LOAD_STORE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00004000, true, MCE_ERROR_TYPE_UE, MCE_UE_ERROR_PAGE_TABLE_WALK_LOAD_STORE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00002000, true, MCE_ERROR_TYPE_LINK, MCE_LINK_ERROR_LOAD_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00001000, true, MCE_ERROR_TYPE_LINK, MCE_LINK_ERROR_PAGE_TABLE_WALK_LOAD_STORE_TIMEOUT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000800, true, MCE_ERROR_TYPE_ERAT, MCE_ERAT_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000400, true, MCE_ERROR_TYPE_TLB, MCE_TLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000200, false, MCE_ERROR_TYPE_USER, MCE_USER_ERROR_TLBIE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000100, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_PARITY, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000080, true, MCE_ERROR_TYPE_SLB, MCE_SLB_ERROR_MULTIHIT, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000040, true, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_LOAD, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000020, false, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_PAGE_TABLE_WALK_LOAD_STORE, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000010, false, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_PAGE_TABLE_WALK_LOAD_STORE_FOREIGN, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0x00000008, false, MCE_ERROR_TYPE_RA, MCE_RA_ERROR_LOAD_STORE_FOREIGN, MCE_INITIATOR_CPU, MCE_SEV_ERROR_SYNC, }, { 0, false, 0, 0, 0, 0 } }; static int mce_handle_ierror(struct pt_regs *regs, const struct mce_ierror_table table[], struct mce_error_info *mce_err, uint64_t *addr) { uint64_t srr1 = regs->msr; int handled = 0; int i; *addr = 0; for (i = 0; table[i].srr1_mask; i++) { if ((srr1 & table[i].srr1_mask) != table[i].srr1_value) continue; /* attempt to correct the error */ switch (table[i].error_type) { case MCE_ERROR_TYPE_SLB: handled = mce_flush(MCE_FLUSH_SLB); break; case MCE_ERROR_TYPE_ERAT: handled = mce_flush(MCE_FLUSH_ERAT); break; case MCE_ERROR_TYPE_TLB: handled = mce_flush(MCE_FLUSH_TLB); break; } /* now fill in mce_error_info */ mce_err->error_type = table[i].error_type; switch (table[i].error_type) { case MCE_ERROR_TYPE_UE: mce_err->u.ue_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_SLB: mce_err->u.slb_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_ERAT: mce_err->u.erat_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_TLB: mce_err->u.tlb_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_USER: mce_err->u.user_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_RA: mce_err->u.ra_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_LINK: mce_err->u.link_error_type = table[i].error_subtype; break; } mce_err->severity = table[i].severity; mce_err->initiator = table[i].initiator; if (table[i].nip_valid) *addr = regs->nip; return handled; } mce_err->error_type = MCE_ERROR_TYPE_UNKNOWN; mce_err->severity = MCE_SEV_ERROR_SYNC; mce_err->initiator = MCE_INITIATOR_CPU; return 0; } static int mce_handle_derror(struct pt_regs *regs, const struct mce_derror_table table[], struct mce_error_info *mce_err, uint64_t *addr) { uint64_t dsisr = regs->dsisr; int handled = 0; int found = 0; int i; *addr = 0; for (i = 0; table[i].dsisr_value; i++) { if (!(dsisr & table[i].dsisr_value)) continue; /* attempt to correct the error */ switch (table[i].error_type) { case MCE_ERROR_TYPE_SLB: if (mce_flush(MCE_FLUSH_SLB)) handled = 1; break; case MCE_ERROR_TYPE_ERAT: if (mce_flush(MCE_FLUSH_ERAT)) handled = 1; break; case MCE_ERROR_TYPE_TLB: if (mce_flush(MCE_FLUSH_TLB)) handled = 1; break; } /* * Attempt to handle multiple conditions, but only return * one. Ensure uncorrectable errors are first in the table * to match. */ if (found) continue; /* now fill in mce_error_info */ mce_err->error_type = table[i].error_type; switch (table[i].error_type) { case MCE_ERROR_TYPE_UE: mce_err->u.ue_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_SLB: mce_err->u.slb_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_ERAT: mce_err->u.erat_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_TLB: mce_err->u.tlb_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_USER: mce_err->u.user_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_RA: mce_err->u.ra_error_type = table[i].error_subtype; break; case MCE_ERROR_TYPE_LINK: mce_err->u.link_error_type = table[i].error_subtype; break; } mce_err->severity = table[i].severity; mce_err->initiator = table[i].initiator; if (table[i].dar_valid) *addr = regs->dar; found = 1; } if (found) return handled; mce_err->error_type = MCE_ERROR_TYPE_UNKNOWN; mce_err->severity = MCE_SEV_ERROR_SYNC; mce_err->initiator = MCE_INITIATOR_CPU; return 0; } static long mce_handle_ue_error(struct pt_regs *regs) { long handled = 0; /* * On specific SCOM read via MMIO we may get a machine check * exception with SRR0 pointing inside opal. If that is the * case OPAL may have recovery address to re-read SCOM data in * different way and hence we can recover from this MC. */ if (ppc_md.mce_check_early_recovery) { if (ppc_md.mce_check_early_recovery(regs)) handled = 1; } return handled; } static long mce_handle_error(struct pt_regs *regs, const struct mce_derror_table dtable[], const struct mce_ierror_table itable[]) { struct mce_error_info mce_err = { 0 }; uint64_t addr; uint64_t srr1 = regs->msr; long handled; if (SRR1_MC_LOADSTORE(srr1)) handled = mce_handle_derror(regs, dtable, &mce_err, &addr); else handled = mce_handle_ierror(regs, itable, &mce_err, &addr); if (!handled && mce_err.error_type == MCE_ERROR_TYPE_UE) handled = mce_handle_ue_error(regs); save_mce_event(regs, handled, &mce_err, regs->nip, addr); return handled; } long __machine_check_early_realmode_p7(struct pt_regs *regs) { /* P7 DD1 leaves top bits of DSISR undefined */ regs->dsisr &= 0x0000ffff; return mce_handle_error(regs, mce_p7_derror_table, mce_p7_ierror_table); } long __machine_check_early_realmode_p8(struct pt_regs *regs) { return mce_handle_error(regs, mce_p8_derror_table, mce_p8_ierror_table); } long __machine_check_early_realmode_p9(struct pt_regs *regs) { return mce_handle_error(regs, mce_p9_derror_table, mce_p9_ierror_table); }
<?php /* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * @author PocketMine Team * @link http://www.pocketmine.net/ * * */ namespace pocketmine\level\particle; use pocketmine\math\Vector3; use pocketmine\network\protocol\DataPacket; abstract class Particle extends Vector3{ const TYPE_BUBBLE = 1; const TYPE_CRITICAL = 2; const TYPE_SMOKE = 3; const TYPE_EXPLODE = 4; const TYPE_WHITE_SMOKE = 5; const TYPE_FLAME = 6; const TYPE_LAVA = 7; const TYPE_LARGE_SMOKE = 8; const TYPE_REDSTONE = 9; const TYPE_ITEM_BREAK = 10; const TYPE_SNOWBALL_POOF = 11; const TYPE_LARGE_EXPLODE = 12; const TYPE_HUGE_EXPLODE = 13; const TYPE_MOB_FLAME = 14; const TYPE_HEART = 15; const TYPE_TERRAIN = 16; const TYPE_TOWN_AURA = 17; const TYPE_PORTAL = 18; const TYPE_WATER_SPLASH = 19; const TYPE_WATER_WAKE = 20; const TYPE_DRIP_WATER = 21; const TYPE_DRIP_LAVA = 22; const TYPE_DUST = 23; const TYPE_MOB_SPELL = 24; const TYPE_MOB_SPELL_AMBIENT = 25; const TYPE_MOB_SPELL_INSTANTANEOUS = 26; const TYPE_INK = 27; const TYPE_SLIME = 28; const TYPE_RAIN_SPLASH = 29; const TYPE_VILLAGER_ANGRY = 30; const TYPE_VILLAGER_HAPPY = 31; const TYPE_ENCHANTMENT_TABLE = 32; /** * @return DataPacket|DataPacket[] */ abstract public function encode(); }
package org.andengine.util.level.simple; import org.andengine.entity.scene.Scene; import org.andengine.util.level.ILevelLoaderResult; /** * (c) 2012 Zynga Inc. * * @author Nicolas Gramlich <ngramlich@zynga.com> * @since 16:13:38 - 19.04.2012 */ public class SimpleLevelLoaderResult implements ILevelLoaderResult { // =========================================================== // Constants // =========================================================== // =========================================================== // Fields // =========================================================== private final Scene mScene; // =========================================================== // Constructors // =========================================================== public SimpleLevelLoaderResult(final Scene pScene) { this.mScene = pScene; } // =========================================================== // Getter & Setter // =========================================================== public Scene getScene() { return this.mScene; } // =========================================================== // Methods for/from SuperClass/Interfaces // =========================================================== // =========================================================== // Methods // =========================================================== // =========================================================== // Inner and Anonymous Classes // =========================================================== }
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var numPings = 0; chrome.extension.onRequest.addListener(function(data) { if (data != "ping") chrome.test.fail("Unexpected request: " + JSON.stringify(data)); if (++numPings == 2) chrome.test.notifyPass(); }); chrome.test.getConfig(function(config) { var test_file_url = "http://localhost:PORT/files/extensions/test_file.html" .replace(/PORT/, config.testServer.port); // Add a window. var w = window.open(test_file_url); // Add an iframe. var iframe = document.createElement("iframe"); iframe.src = test_file_url; document.getElementById("iframeContainer").appendChild(iframe); });
<iframe src="/files/extensions/api_test/app_process/path1/iframe.html"></iframe>
package client // import "github.com/docker/docker/client" import ( "bytes" "context" "fmt" "io/ioutil" "net/http" "strings" "testing" "github.com/docker/docker/api/types" ) func TestContainerResizeError(t *testing.T) { client := &Client{ client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")), } err := client.ContainerResize(context.Background(), "container_id", types.ResizeOptions{}) if err == nil || err.Error() != "Error response from daemon: Server error" { t.Fatalf("expected a Server Error, got %v", err) } } func TestContainerExecResizeError(t *testing.T) { client := &Client{ client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")), } err := client.ContainerExecResize(context.Background(), "exec_id", types.ResizeOptions{}) if err == nil || err.Error() != "Error response from daemon: Server error" { t.Fatalf("expected a Server Error, got %v", err) } } func TestContainerResize(t *testing.T) { client := &Client{ client: newMockClient(resizeTransport("/containers/container_id/resize")), } err := client.ContainerResize(context.Background(), "container_id", types.ResizeOptions{ Height: 500, Width: 600, }) if err != nil { t.Fatal(err) } } func TestContainerExecResize(t *testing.T) { client := &Client{ client: newMockClient(resizeTransport("/exec/exec_id/resize")), } err := client.ContainerExecResize(context.Background(), "exec_id", types.ResizeOptions{ Height: 500, Width: 600, }) if err != nil { t.Fatal(err) } } func resizeTransport(expectedURL string) func(req *http.Request) (*http.Response, error) { return func(req *http.Request) (*http.Response, error) { if !strings.HasPrefix(req.URL.Path, expectedURL) { return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL) } query := req.URL.Query() h := query.Get("h") if h != "500" { return nil, fmt.Errorf("h not set in URL query properly. Expected '500', got %s", h) } w := query.Get("w") if w != "600" { return nil, fmt.Errorf("w not set in URL query properly. Expected '600', got %s", w) } return &http.Response{ StatusCode: http.StatusOK, Body: ioutil.NopCloser(bytes.NewReader([]byte(""))), }, nil } }
exports.setupMockScopes = function (nock) { var scopes = []; var scope; scope = nock('https://login.live.com:443') .post('/accesstoken.srf', "grant_type=client_credentials&client_id=ms-app%3A%2F%2Fs-1-15-2-145565886-1510793020-2797717260-1526195933-3912359816-44086043-2211002316&client_secret=FF9yfJLxSH3uI32wNKGye643bAZ4zBz7&scope=notify.windows.com") .reply(200, "{\"token_type\":\"bearer\",\"access_token\":\"EgAaAQMAAAAEgAAACoAAnbulrnfYRgTGFe6tudBvFCf/ng+gabEI1++PZpSEktmcoU3/Tj9tEKuZj4Q1eV+UJhR4DWtNgnpVgBq9CkTQfEyCqZ/kUWtlAk98dwXfsmFJMI5FL/AvPnD2CCNiXtuTNCs/HB10Hbr1ZTemjbdby5Ht8AIhQqr9Cz7KI6sZM5eJAFoAiQAAAAAAaoEORO9LJFHvSyRR60gEAA0ANjcuMTg1LjE0OC44AAAAAABcAG1zLWFwcDovL3MtMS0xNS0yLTE0NTU2NTg4Ni0xNTEwNzkzMDIwLTI3OTc3MTcyNjAtMTUyNjE5NTkzMy0zOTEyMzU5ODE2LTQ0MDg2MDQzLTIyMTEwMDIzMTYA\",\"expires_in\":86400}", { 'cache-control': 'no-store', 'content-length': '436', 'content-type': 'application/json', server: 'Microsoft-IIS/7.5', ppserver: 'PPV: 30 H: BAYIDSLGN1I33 V: 0', date: 'Wed, 20 Feb 2013 04:07:10 GMT', connection: 'close' }); scopes.push(scope);scope = nock('https://bn1.notify.windows.com:443') .post('/?token=AgYAAACFGdWBiRCTypHebfvngI7DuNBXWuGjdiczDOZ7bSgkbCRrD2M1b10CpzCmipzknHbU4nLzapQbooXzJ%2fVwHAfSl%2fWMk8OsetohEVMlsIicoLP99rDg7g2AdENA99DZoAU%3d', "<tile><visual><binding template=\"TileWideSmallImageAndText01\"><image id=\"1\" src=\"http://textParam1.com\" alt=\"http://textParam2.com\"/><text id=\"1\">http://textParam3.com</text></binding></visual></tile>") .reply(200, "", { 'content-length': '0', 'x-wns-notificationstatus': 'received', 'x-wns-msg-id': '72C92964293B8020', 'x-wns-debug-trace': 'BN1WNS1011837', date: 'Wed, 20 Feb 2013 04:07:12 GMT' }); scopes.push(scope);return scopes; };
/* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved., Inc. All rights reserved. U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Use is subject to license terms. This distribution may include materials developed by third parties.Sun, Sun Microsystems, the Sun logo and MySQL Enterprise Monitor are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved., Inc. Tous droits réservés. L'utilisation est soumise aux termes du contrat de licence.Cette distribution peut comprendre des composants développés par des tierces parties.Sun, Sun Microsystems,  le logo Sun et  MySQL Enterprise Monitor sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans du'autres pays. */ package com.mysql.jdbc; import java.sql.SQLException; import java.util.Properties; public class V1toV2StatementInterceptorAdapter implements StatementInterceptorV2 { private final StatementInterceptor toProxy; public V1toV2StatementInterceptorAdapter(StatementInterceptor toProxy) { this.toProxy = toProxy; } public ResultSetInternalMethods postProcess(String sql, Statement interceptedStatement, ResultSetInternalMethods originalResultSet, Connection connection, int warningCount, boolean noIndexUsed, boolean noGoodIndexUsed, SQLException statementException) throws SQLException { return toProxy.postProcess(sql, interceptedStatement, originalResultSet, connection); } public void destroy() { toProxy.destroy(); } public boolean executeTopLevelOnly() { return toProxy.executeTopLevelOnly(); } public void init(Connection conn, Properties props) throws SQLException { toProxy.init(conn, props); } public ResultSetInternalMethods preProcess(String sql, Statement interceptedStatement, Connection connection) throws SQLException { return toProxy.preProcess(sql, interceptedStatement, connection); } }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hdfs.server.namenode; import junit.framework.TestCase; import java.io.*; import java.net.URI; import java.util.Iterator; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier; import org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory; import org.apache.hadoop.hdfs.server.namenode.FSImage.NameNodeDirType; import org.apache.hadoop.hdfs.server.namenode.FSImage.NameNodeFile; import org.apache.hadoop.io.Text; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.security.token.Token; import org.apache.hadoop.hdfs.server.namenode.FSEditLog.EditLogFileInputStream; import org.mortbay.log.Log; /** * This class tests the creation and validation of a checkpoint. */ public class TestSecurityTokenEditLog extends TestCase { static final int NUM_DATA_NODES = 1; // This test creates NUM_THREADS threads and each thread does // 2 * NUM_TRANSACTIONS Transactions concurrently. static final int NUM_TRANSACTIONS = 100; static final int NUM_THREADS = 100; static final int opsPerTrans = 3; // // an object that does a bunch of transactions // static class Transactions implements Runnable { FSNamesystem namesystem; int numTransactions; short replication = 3; long blockSize = 64; Transactions(FSNamesystem ns, int num) { namesystem = ns; numTransactions = num; } // add a bunch of transactions. public void run() { FSEditLog editLog = namesystem.getEditLog(); for (int i = 0; i < numTransactions; i++) { try { String renewer = UserGroupInformation.getLoginUser().getUserName(); Token<DelegationTokenIdentifier> token = namesystem .getDelegationToken(new Text(renewer)); namesystem.renewDelegationToken(token); namesystem.cancelDelegationToken(token); editLog.logSync(); } catch (IOException e) { System.out.println("Transaction " + i + " encountered exception " + e); } } } } /** * Tests transaction logging in dfs. */ public void testEditLog() throws IOException { // start a cluster Configuration conf = new Configuration(); MiniDFSCluster cluster = null; FileSystem fileSys = null; try { cluster = new MiniDFSCluster(conf, NUM_DATA_NODES, true, null); cluster.waitActive(); fileSys = cluster.getFileSystem(); final FSNamesystem namesystem = cluster.getNameNode().getNamesystem(); for (Iterator<File> it = cluster.getNameDirs().iterator(); it.hasNext(); ) { File dir = new File(it.next().getPath()); System.out.println(dir); } FSImage fsimage = namesystem.getFSImage(); FSEditLog editLog = fsimage.getEditLog(); // set small size of flush buffer editLog.setBufferCapacity(2048); editLog.close(); editLog.open(); namesystem.getDelegationTokenSecretManager().startThreads(); // Create threads and make them run transactions concurrently. Thread threadId[] = new Thread[NUM_THREADS]; for (int i = 0; i < NUM_THREADS; i++) { Transactions trans = new Transactions(namesystem, NUM_TRANSACTIONS); threadId[i] = new Thread(trans, "TransactionThread-" + i); threadId[i].start(); } // wait for all transactions to get over for (int i = 0; i < NUM_THREADS; i++) { try { threadId[i].join(); } catch (InterruptedException e) { i--; // retry } } editLog.close(); // Verify that we can read in all the transactions that we have written. // If there were any corruptions, it is likely that the reading in // of these transactions will throw an exception. // namesystem.getDelegationTokenSecretManager().stopThreads(); int numKeys = namesystem.getDelegationTokenSecretManager().getNumberOfKeys(); for (Iterator<StorageDirectory> it = fsimage.dirIterator(NameNodeDirType.EDITS); it.hasNext();) { File editFile = FSImage.getImageFile(it.next(), NameNodeFile.EDITS); System.out.println("Verifying file: " + editFile); int numEdits = FSEditLog.loadFSEdits( new EditLogFileInputStream(editFile)); assertTrue("Verification for " + editFile + " failed. " + "Expected " + (NUM_THREADS * opsPerTrans * NUM_TRANSACTIONS + numKeys) + " transactions. "+ "Found " + numEdits + " transactions.", numEdits == NUM_THREADS * opsPerTrans * NUM_TRANSACTIONS +numKeys); } } finally { if(fileSys != null) fileSys.close(); if(cluster != null) cluster.shutdown(); } } }
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.intellij.debugger.impl; import com.intellij.util.EventDispatcher; import org.jetbrains.annotations.NotNull; /** * Created by IntelliJ IDEA. * User: lex * Date: Jun 4, 2003 * Time: 12:45:56 PM * To change this template use Options | File Templates. */ public abstract class DebuggerStateManager { private final EventDispatcher<DebuggerContextListener> myEventDispatcher = EventDispatcher.create(DebuggerContextListener.class); @NotNull public abstract DebuggerContextImpl getContext(); public abstract void setState(@NotNull DebuggerContextImpl context, DebuggerSession.State state, DebuggerSession.Event event, String description); //we allow add listeners inside DebuggerContextListener.changeEvent public void addListener(DebuggerContextListener listener){ myEventDispatcher.addListener(listener); } //we allow remove listeners inside DebuggerContextListener.changeEvent public void removeListener(DebuggerContextListener listener){ myEventDispatcher.removeListener(listener); } protected void fireStateChanged(@NotNull DebuggerContextImpl newContext, DebuggerSession.Event event) { myEventDispatcher.getMulticaster().changeEvent(newContext, event); } }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.spark.impl.optimization.accumulator import org.apache.ignite.IgniteException import org.apache.ignite.spark.impl.optimization._ import org.apache.spark.sql.catalyst.expressions.{Attribute, Expression, NamedExpression, SortOrder} import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan /** * Class for accumulating parts of SQL query to a single Ignite table. * * See <a href="http://www.h2database.com/html/grammar.html#select">select syntax of H2</a>. */ private[apache] case class SingleTableSQLAccumulator( igniteQueryContext: IgniteQueryContext, table: Option[String], tableExpression: Option[(QueryAccumulator, String)], outputExpressions: Seq[NamedExpression], distinct: Boolean = false, all: Boolean = false, where: Option[Seq[Expression]] = None, groupBy: Option[Seq[Expression]] = None, having: Option[Seq[Expression]] = None, limit: Option[Expression] = None, localLimit: Option[Expression] = None, orderBy: Option[Seq[SortOrder]] = None ) extends SelectAccumulator { /** @inheritdoc */ override def compileQuery(prettyPrint: Boolean = false, nestedQuery: Boolean = false): String = { val delim = if (prettyPrint) "\n" else " " val tab = if (prettyPrint) " " else "" var sql = s"SELECT$delim$tab${outputExpressions.map(exprToString(_)).mkString(", ")}${delim}" + s"FROM$delim$tab$compiledTableExpression" if (where.exists(_.nonEmpty)) sql += s"${delim}WHERE$delim$tab${where.get.map(exprToString(_)).mkString(s" AND$delim$tab")}" if (groupBy.exists(_.nonEmpty)) sql += s"${delim}GROUP BY ${groupBy.get.map(exprToString(_)).mkString(s",$delim$tab")}" if (having.exists(_.nonEmpty)) sql += s"${delim}HAVING ${having.get.map(exprToString(_)).mkString(s" AND$delim$tab")}" if (orderBy.exists(_.nonEmpty)) sql += s"${delim}ORDER BY ${orderBy.get.map(exprToString(_)).mkString(s",$delim$tab")}" if (limit.isDefined) { sql += s" LIMIT ${limit.map(exprToString(_)).get}" if (nestedQuery) sql = s"SELECT * FROM ($sql)" } sql } /** * @return From table SQL query part. */ private def compiledTableExpression: String = table match { case Some(tableName) ⇒ tableName case None ⇒ tableExpression match { case Some((acc, alias)) ⇒ s"(${acc.compileQuery()}) $alias" case None ⇒ throw new IgniteException("Unknown table.") } } /** @inheritdoc */ override def simpleString: String = s"IgniteSQLAccumulator(table: $table, columns: $outputExpressions, distinct: $distinct, all: $all, " + s"where: $where, groupBy: $groupBy, having: $having, limit: $limit, orderBy: $orderBy)" /** @inheritdoc */ override def withOutputExpressions(outputExpressions: Seq[NamedExpression]): SelectAccumulator = copy(outputExpressions= outputExpressions) /** @inheritdoc */ override def withDistinct(distinct: Boolean): SingleTableSQLAccumulator = copy(distinct = distinct) /** @inheritdoc */ override def withWhere(where: Seq[Expression]): SingleTableSQLAccumulator = copy(where = Some(where)) /** @inheritdoc */ override def withGroupBy(groupBy: Seq[Expression]): SingleTableSQLAccumulator = copy(groupBy = Some(groupBy)) /** @inheritdoc */ override def withHaving(having: Seq[Expression]): SingleTableSQLAccumulator = copy(having = Some(having)) /** @inheritdoc */ override def withLimit(limit: Expression): SingleTableSQLAccumulator = copy(limit = Some(limit)) /** @inheritdoc */ override def withLocalLimit(localLimit: Expression): SingleTableSQLAccumulator = copy(localLimit = Some(localLimit)) /** @inheritdoc */ override def withOrderBy(orderBy: Seq[SortOrder]): SingleTableSQLAccumulator = copy(orderBy = Some(orderBy)) /** @inheritdoc */ override def output: Seq[Attribute] = outputExpressions.map(toAttributeReference(_, Seq.empty)) /** @inheritdoc */ override def qualifier: String = table.getOrElse(tableExpression.get._2) /** @inheritdoc */ override def children: Seq[LogicalPlan] = tableExpression.map(te ⇒ Seq(te._1)).getOrElse(Nil) }
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../../../fixtures/constants', __FILE__) describe "Module#const_get" do it "accepts a String or Symbol name" do Object.const_get(:CS_CONST1).should == :const1 Object.const_get("CS_CONST1").should == :const1 end it "raises a NameError if no constant is defined in the search path" do lambda { ConstantSpecs.const_get :CS_CONSTX }.should raise_error(NameError) end it "raises a NameError with the not found constant symbol" do error_inspection = lambda { |e| e.name.should == :CS_CONSTX } lambda { ConstantSpecs.const_get :CS_CONSTX }.should raise_error(NameError, &error_inspection) end it "raises a NameError if the name does not start with a capital letter" do lambda { ConstantSpecs.const_get "name" }.should raise_error(NameError) end it "raises a NameError if the name starts with a non-alphabetic character" do lambda { ConstantSpecs.const_get "__CONSTX__" }.should raise_error(NameError) lambda { ConstantSpecs.const_get "@CS_CONST1" }.should raise_error(NameError) lambda { ConstantSpecs.const_get "!CS_CONST1" }.should raise_error(NameError) end it "raises a NameError if the name contains non-alphabetic characters except '_'" do Object.const_get("CS_CONST1").should == :const1 lambda { ConstantSpecs.const_get "CS_CONST1=" }.should raise_error(NameError) lambda { ConstantSpecs.const_get "CS_CONST1?" }.should raise_error(NameError) end it "calls #to_str to convert the given name to a String" do name = mock("ClassA") name.should_receive(:to_str).and_return("ClassA") ConstantSpecs.const_get(name).should == ConstantSpecs::ClassA end it "raises a TypeError if conversion to a String by calling #to_str fails" do name = mock('123') lambda { ConstantSpecs.const_get(name) }.should raise_error(TypeError) name.should_receive(:to_str).and_return(123) lambda { ConstantSpecs.const_get(name) }.should raise_error(TypeError) end it "calls #const_missing on the receiver if unable to locate the constant" do ConstantSpecs::ContainerA.should_receive(:const_missing).with(:CS_CONSTX) ConstantSpecs::ContainerA.const_get(:CS_CONSTX) end it "does not search the singleton class of a Class or Module" do lambda do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST14) end.should raise_error(NameError) lambda { ConstantSpecs.const_get(:CS_CONST14) }.should raise_error(NameError) end it "does not search the containing scope" do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST20).should == :const20_2 lambda do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST5) end.should raise_error(NameError) end it "raises a NameError if the constant is defined in the receiver's supperclass and the inherit flag is false" do lambda do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST4, false) end.should raise_error(NameError) end it "searches into the receiver superclasses if the inherit flag is true" do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST4, true).should == :const4 end it "raises a NameError when the receiver is a Module, the constant is defined at toplevel and the inherit flag is false" do lambda do ConstantSpecs::ModuleA.const_get(:CS_CONST1, false) end.should raise_error(NameError) end it "raises a NameError when the receiver is a Class, the constant is defined at toplevel and the inherit flag is false" do lambda do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST1, false) end.should raise_error(NameError) end it "accepts a toplevel scope qualifier" do ConstantSpecs.const_get("::CS_CONST1").should == :const1 end it "accepts a scoped constant name" do ConstantSpecs.const_get("ClassA::CS_CONST10").should == :const10_10 end it "raises a NameError if only '::' is passed" do lambda { ConstantSpecs.const_get("::") }.should raise_error(NameError) end it "raises a NameError if a Symbol has a toplevel scope qualifier" do lambda { ConstantSpecs.const_get(:'::CS_CONST1') }.should raise_error(NameError) end it "raises a NameError if a Symbol is a scoped constant name" do lambda { ConstantSpecs.const_get(:'ClassA::CS_CONST10') }.should raise_error(NameError) end describe "with statically assigned constants" do it "searches the immediate class or module first" do ConstantSpecs::ClassA.const_get(:CS_CONST10).should == :const10_10 ConstantSpecs::ModuleA.const_get(:CS_CONST10).should == :const10_1 ConstantSpecs::ParentA.const_get(:CS_CONST10).should == :const10_5 ConstantSpecs::ContainerA.const_get(:CS_CONST10).should == :const10_2 ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST10).should == :const10_3 end it "searches a module included in the immediate class before the superclass" do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST15).should == :const15_1 end it "searches the superclass before a module included in the superclass" do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST11).should == :const11_1 end it "searches a module included in the superclass" do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST12).should == :const12_1 end it "searches the superclass chain" do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST13).should == :const13 end it "returns a toplevel constant when the receiver is a Class" do ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST1).should == :const1 end it "returns a toplevel constant when the receiver is a Module" do ConstantSpecs.const_get(:CS_CONST1).should == :const1 ConstantSpecs::ModuleA.const_get(:CS_CONST1).should == :const1 end end describe "with dynamically assigned constants" do it "searches the immediate class or module first" do ConstantSpecs::ClassA::CS_CONST301 = :const301_1 ConstantSpecs::ClassA.const_get(:CS_CONST301).should == :const301_1 ConstantSpecs::ModuleA::CS_CONST301 = :const301_2 ConstantSpecs::ModuleA.const_get(:CS_CONST301).should == :const301_2 ConstantSpecs::ParentA::CS_CONST301 = :const301_3 ConstantSpecs::ParentA.const_get(:CS_CONST301).should == :const301_3 ConstantSpecs::ContainerA::ChildA::CS_CONST301 = :const301_5 ConstantSpecs::ContainerA::ChildA.const_get(:CS_CONST301).should == :const301_5 end it "searches a module included in the immediate class before the superclass" do ConstantSpecs::ParentB::CS_CONST302 = :const302_1 ConstantSpecs::ModuleF::CS_CONST302 = :const302_2 ConstantSpecs::ContainerB::ChildB.const_get(:CS_CONST302).should == :const302_2 end it "searches the superclass before a module included in the superclass" do ConstantSpecs::ModuleE::CS_CONST303 = :const303_1 ConstantSpecs::ParentB::CS_CONST303 = :const303_2 ConstantSpecs::ContainerB::ChildB.const_get(:CS_CONST303).should == :const303_2 end it "searches a module included in the superclass" do ConstantSpecs::ModuleA::CS_CONST304 = :const304_1 ConstantSpecs::ModuleE::CS_CONST304 = :const304_2 ConstantSpecs::ContainerB::ChildB.const_get(:CS_CONST304).should == :const304_2 end it "searches the superclass chain" do ConstantSpecs::ModuleA::CS_CONST305 = :const305 ConstantSpecs::ContainerB::ChildB.const_get(:CS_CONST305).should == :const305 end it "returns a toplevel constant when the receiver is a Class" do Object::CS_CONST306 = :const306 ConstantSpecs::ContainerB::ChildB.const_get(:CS_CONST306).should == :const306 end it "returns a toplevel constant when the receiver is a Module" do Object::CS_CONST308 = :const308 ConstantSpecs.const_get(:CS_CONST308).should == :const308 ConstantSpecs::ModuleA.const_get(:CS_CONST308).should == :const308 end it "returns the updated value of a constant" do ConstantSpecs::ClassB::CS_CONST309 = :const309_1 ConstantSpecs::ClassB.const_get(:CS_CONST309).should == :const309_1 ConstantSpecs::ClassB::CS_CONST309 = :const309_2 ConstantSpecs::ClassB.const_get(:CS_CONST309).should == :const309_2 end end end
<?php namespace Drupal\comment\Tests; use Drupal\field\Entity\FieldStorageConfig; use Drupal\Core\Extension\ModuleUninstallValidatorException; use Drupal\simpletest\WebTestBase; /** * Tests comment module uninstallation. * * @group comment */ class CommentUninstallTest extends WebTestBase { use CommentTestTrait; /** * Modules to install. * * @var array */ public static $modules = array('comment', 'node'); protected function setUp() { parent::setup(); // Create an article content type. $this->drupalCreateContentType(array('type' => 'article', 'name' => t('Article'))); // Create comment field on article so that adds 'comment_body' field. $this->addDefaultCommentField('node', 'article'); } /** * Tests if comment module uninstallation fails if the field exists. * * @throws \Drupal\Core\Extension\ModuleUninstallValidatorException */ function testCommentUninstallWithField() { // Ensure that the field exists before uninstallation. $field_storage = FieldStorageConfig::loadByName('comment', 'comment_body'); $this->assertNotNull($field_storage, 'The comment_body field exists.'); // Uninstall the comment module which should trigger an exception. try { $this->container->get('module_installer')->uninstall(array('comment')); $this->fail("Expected an exception when uninstall was attempted."); } catch (ModuleUninstallValidatorException $e) { $this->pass("Caught an exception when uninstall was attempted."); } } /** * Tests if uninstallation succeeds if the field has been deleted beforehand. */ function testCommentUninstallWithoutField() { // Manually delete the comment_body field before module uninstallation. $field_storage = FieldStorageConfig::loadByName('comment', 'comment_body'); $this->assertNotNull($field_storage, 'The comment_body field exists.'); $field_storage->delete(); // Check that the field is now deleted. $field_storage = FieldStorageConfig::loadByName('comment', 'comment_body'); $this->assertNull($field_storage, 'The comment_body field has been deleted.'); // Manually delete the comment field on the node before module uninstallation. $field_storage = FieldStorageConfig::loadByName('node', 'comment'); $this->assertNotNull($field_storage, 'The comment field exists.'); $field_storage->delete(); // Check that the field is now deleted. $field_storage = FieldStorageConfig::loadByName('node', 'comment'); $this->assertNull($field_storage, 'The comment field has been deleted.'); field_purge_batch(10); // Ensure that uninstallation succeeds even if the field has already been // deleted manually beforehand. $this->container->get('module_installer')->uninstall(array('comment')); } }
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, re from frappe.website.website_generator import WebsiteGenerator from frappe.website.render import clear_cache from frappe.utils import today, cint, global_date_format, get_fullname from frappe.website.utils import find_first_image, get_comment_list from frappe.templates.pages.blog import get_children class BlogPost(WebsiteGenerator): condition_field = "published" template = "templates/generators/blog_post.html" save_versions = True order_by = "published_on desc" parent_website_route_field = "blog_category" page_title_field = "title" def validate(self): super(BlogPost, self).validate() if not self.blog_intro: self.blog_intro = self.content[:140] self.blog_intro = re.sub("\<[^>]*\>", "", self.blog_intro) if self.blog_intro: self.blog_intro = self.blog_intro[:140] if self.published and not self.published_on: self.published_on = today() # update posts frappe.db.sql("""update tabBlogger set posts=(select count(*) from `tabBlog Post` where ifnull(blogger,'')=tabBlogger.name) where name=%s""", (self.blogger,)) def on_update(self): WebsiteGenerator.on_update(self) clear_cache("writers") def get_context(self, context): # this is for double precaution. usually it wont reach this code if not published if not cint(self.published): raise Exception, "This blog has not been published yet!" # temp fields context.full_name = get_fullname(self.owner) context.updated = global_date_format(self.published_on) if self.blogger: context.blogger_info = frappe.get_doc("Blogger", self.blogger).as_dict() context.description = self.blog_intro or self.content[:140] context.metatags = { "name": self.title, "description": context.description, } image = find_first_image(self.content) if image: context.metatags["image"] = image context.categories = frappe.db.sql_list("""select name from `tabBlog Category` order by name""") context.comment_list = get_comment_list(self.doctype, self.name) context.children = get_children() return context def clear_blog_cache(): for blog in frappe.db.sql_list("""select page_name from `tabBlog Post` where ifnull(published,0)=1"""): clear_cache(blog) clear_cache("writers") @frappe.whitelist(allow_guest=True) def get_blog_list(start=0, by=None, category=None): condition = "" if by: condition = " and t1.blogger='%s'" % by.replace("'", "\'") if category: condition += " and t1.blog_category='%s'" % category.replace("'", "\'") query = """\ select t1.title, t1.name, concat(t1.parent_website_route, "/", t1.page_name) as page_name, t1.published_on as creation, day(t1.published_on) as day, monthname(t1.published_on) as month, year(t1.published_on) as year, ifnull(t1.blog_intro, t1.content) as content, t2.full_name, t2.avatar, t1.blogger, (select count(name) from `tabComment` where comment_doctype='Blog Post' and comment_docname=t1.name) as comments from `tabBlog Post` t1, `tabBlogger` t2 where ifnull(t1.published,0)=1 and t1.blogger = t2.name %(condition)s order by published_on desc, name asc limit %(start)s, 20""" % {"start": start, "condition": condition} result = frappe.db.sql(query, as_dict=1) # strip html tags from content for res in result: res['published'] = global_date_format(res['creation']) res['content'] = res['content'][:140] return result
/** * Returns the ECMAScript intrinsic for the name. * * @param name The ECMAScript intrinsic name * @param allowMissing Whether the intrinsic can be missing in this environment * * @throws {SyntaxError} If the ECMAScript intrinsic doesn't exist * @throws {TypeError} If the ECMAScript intrinsic exists, but not in this environment and `allowMissing` is `false`. */ declare function GetIntrinsic<K extends keyof GetIntrinsic.Intrinsics>( name: K, allowMissing?: false, ): GetIntrinsic.Intrinsics[K]; declare function GetIntrinsic<K extends keyof GetIntrinsic.Intrinsics>( name: K, allowMissing: true, ): GetIntrinsic.Intrinsics[K] | undefined; declare function GetIntrinsic<K extends keyof GetIntrinsic.Intrinsics>( name: K, allowMissing?: boolean, ): GetIntrinsic.Intrinsics[K] | undefined; declare function GetIntrinsic(name: string, allowMissing?: boolean): unknown; export = GetIntrinsic; type numeric = number | bigint; interface TypedArray<T extends numeric = numeric> extends Readonly<ArrayBufferView> { /** The length of the array. */ readonly length: number; [index: number]: T; } interface TypedArrayConstructor { readonly prototype: TypedArrayPrototype; new (...args: unknown[]): TypedArrayPrototype; /** * Returns a new typed array from a set of elements. * @param items A set of elements to include in the new typed array object. */ of(this: new (length: number) => Int8Array, ...items: number[]): Int8Array; of(this: new (length: number) => Uint8Array, ...items: number[]): Uint8Array; of(this: new (length: number) => Uint8ClampedArray, ...items: number[]): Uint8ClampedArray; of(this: new (length: number) => Int16Array, ...items: number[]): Int16Array; of(this: new (length: number) => Uint16Array, ...items: number[]): Uint16Array; of(this: new (length: number) => Int32Array, ...items: number[]): Int32Array; of(this: new (length: number) => Uint32Array, ...items: number[]): Uint32Array; // For whatever reason, `array-type` considers `bigint` a non-simple type: // tslint:disable: array-type of(this: new (length: number) => BigInt64Array, ...items: bigint[]): BigInt64Array; of(this: new (length: number) => BigUint64Array, ...items: bigint[]): BigUint64Array; // tslint:enable: array-type of(this: new (length: number) => Float32Array, ...items: number[]): Float32Array; of(this: new (length: number) => Float64Array, ...items: number[]): Float64Array; /** * Creates a new typed array from an array-like or iterable object. * @param source An array-like or iterable object to convert to a typed array. * @param mapfn A mapping function to call on every element of the source object. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(this: new (length: number) => Int8Array, source: Iterable<number> | ArrayLike<number>): Int8Array; from<U>( this: new (length: number) => Int8Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Int8Array; from(this: new (length: number) => Uint8Array, source: Iterable<number> | ArrayLike<number>): Uint8Array; from<U>( this: new (length: number) => Uint8Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Uint8Array; from( this: new (length: number) => Uint8ClampedArray, source: Iterable<number> | ArrayLike<number>, ): Uint8ClampedArray; from<U>( this: new (length: number) => Uint8ClampedArray, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Uint8ClampedArray; from(this: new (length: number) => Int16Array, source: Iterable<number> | ArrayLike<number>): Int16Array; from<U>( this: new (length: number) => Int16Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Int16Array; from(this: new (length: number) => Uint16Array, source: Iterable<number> | ArrayLike<number>): Uint16Array; from<U>( this: new (length: number) => Uint16Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Uint16Array; from(this: new (length: number) => Int32Array, source: Iterable<number> | ArrayLike<number>): Int32Array; from<U>( this: new (length: number) => Int32Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Int32Array; from(this: new (length: number) => Uint32Array, source: Iterable<number> | ArrayLike<number>): Uint32Array; from<U>( this: new (length: number) => Uint32Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Uint32Array; from(this: new (length: number) => BigInt64Array, source: Iterable<bigint> | ArrayLike<bigint>): BigInt64Array; from<U>( this: new (length: number) => BigInt64Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: unknown, ): BigInt64Array; from(this: new (length: number) => BigUint64Array, source: Iterable<bigint> | ArrayLike<bigint>): BigUint64Array; from<U>( this: new (length: number) => BigUint64Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: unknown, ): BigUint64Array; from(this: new (length: number) => Float32Array, source: Iterable<number> | ArrayLike<number>): Float32Array; from<U>( this: new (length: number) => Float32Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Float32Array; from(this: new (length: number) => Float64Array, source: Iterable<number> | ArrayLike<number>): Float64Array; from<U>( this: new (length: number) => Float64Array, source: Iterable<U> | ArrayLike<U>, mapfn: (v: U, k: number) => number, thisArg?: unknown, ): Float64Array; } interface TypedArrayPrototype { /** The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** The length in bytes of the array. */ readonly byteLength: number; /** The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin<THIS extends TypedArray>(this: THIS, target: number, start: number, end?: number): THIS; /** Yields index, value pairs for every entry in the array. */ entries<T extends numeric>(this: TypedArray<T>): IterableIterator<[number, T]>; /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls * the callbackfn function for each element in the array until the callbackfn returns false, * or until the end of the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ every<T extends numeric, THIS extends TypedArray<T>>( this: THIS, predicate: (value: T, index: number, array: THIS) => unknown, thisArg?: unknown, ): boolean; /** * Returns the this object after filling the section identified by start and end with value * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill<T extends numeric, THIS extends TypedArray<T>>(this: THIS, value: T, start?: number, end?: number): THIS; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param callbackfn A function that accepts up to three arguments. The filter method calls * the callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ filter<T extends numeric, THIS extends TypedArray<T>>( this: THIS, predicate: (value: T, index: number, array: THIS) => unknown, thisArg?: unknown, ): THIS; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find<T extends numeric, THIS extends TypedArray<T>>( this: THIS, predicate: (value: T, index: number, array: THIS) => unknown, thisArg?: unknown, ): T | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex<T extends numeric, THIS extends TypedArray<T>>( this: THIS, predicate: (value: T, index: number, array: THIS) => unknown, thisArg?: unknown, ): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach<T extends numeric, THIS extends TypedArray<T>>( this: THIS, callbackfn: (value: T, index: number, array: THIS) => void, thisArg?: unknown, ): void; /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes<T extends numeric>(this: TypedArray<T>, searchElement: T, fromIndex?: number): boolean; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf<T extends numeric>(this: TypedArray<T>, searchElement: T, fromIndex?: number): boolean; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(this: TypedArray, separator?: string): string; /** Yields each index in the array. */ keys(this: TypedArray): IterableIterator<number>; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf<T extends numeric>(this: TypedArray<T>, searchElement: T, fromIndex?: number): boolean; /** The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map<T extends numeric, THIS extends TypedArray>( this: THIS, mapper: (value: T, index: number, array: THIS) => T, thisArg?: unknown, ): THIS; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<T extends numeric, THIS extends TypedArray<T>>( this: THIS, reducer: (previousValue: T, currentValue: T, currentIndex: number, array: THIS) => T, ): T; reduce<T extends numeric, U, THIS extends TypedArray<T>>( this: THIS, reducer: (previousValue: U, currentValue: T, currentIndex: number, array: THIS) => U, initialValue: U, ): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight<T extends numeric, THIS extends TypedArray<T>>( this: THIS, reducer: (previousValue: T, currentValue: T, currentIndex: number, array: THIS) => T, ): T; reduceRight<T extends numeric, U, THIS extends TypedArray<T>>( this: THIS, reducer: (previousValue: U, currentValue: T, currentIndex: number, array: THIS) => U, initialValue: U, ): U; /** Reverses the elements in the array. */ reverse<THIS extends TypedArray>(this: THIS): THIS; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set<T extends numeric>(this: TypedArray<T>, array: ArrayLike<T>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. */ slice<THIS extends TypedArray>(this: THIS, start?: number, end?: number): THIS; /** * Determines whether the specified callback function returns true for any element of an array. * @param callbackfn A function that accepts up to three arguments. The some method calls the * callbackfn function for each element in the array until the callbackfn returns true, or until * the end of the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ some<T extends numeric, THIS extends TypedArray<T>>( this: THIS, predicate: (value: T, index: number, array: THIS) => unknown, thisArg?: unknown, ): boolean; /** * Sorts the array. * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order. */ sort<T extends numeric, THIS extends TypedArray<T>>(this: THIS, comparator?: (a: T, b: T) => number): THIS; /** * Gets a new subview of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray<THIS extends TypedArray>(this: THIS, begin?: number, end?: number): THIS; /** Converts the array to a string by using the current locale. */ toLocaleString(this: TypedArray, locales?: string | string[], options?: Intl.NumberFormatOptions): string; /** Returns a string representation of the array. */ toString(): string; /** Yields each value in the array. */ values<T extends numeric>(this: TypedArray<T>): IterableIterator<T>; /** Yields each value in the array. */ [Symbol.iterator]<T extends numeric>(this: TypedArray<T>): IterableIterator<T>; readonly [Symbol.toStringTag]: string | undefined; } // ------------------------ >8 ------------------------ // autogenerated by scripts/collect-intrinsics.ts // do not edit! 2020-07-08T00:53:03.057Z // tslint:disable: ban-types // prettier-ignore declare namespace GetIntrinsic { interface Intrinsics { '%Array%': ArrayConstructor; '%ArrayBuffer%': ArrayBufferConstructor; '%ArrayBufferPrototype%': ArrayBuffer; '%ArrayIteratorPrototype%': IterableIterator<any>; '%ArrayPrototype%': typeof Array.prototype; '%ArrayProto_entries%': typeof Array.prototype.entries; '%ArrayProto_forEach%': typeof Array.prototype.forEach; '%ArrayProto_keys%': typeof Array.prototype.keys; '%ArrayProto_values%': typeof Array.prototype.values; '%AsyncFromSyncIteratorPrototype%': AsyncGenerator<any>; '%AsyncFunction%': FunctionConstructor; '%AsyncFunctionPrototype%': typeof Function.prototype; '%AsyncGenerator%': AsyncGeneratorFunction; '%AsyncGeneratorFunction%': AsyncGeneratorFunctionConstructor; '%AsyncGeneratorPrototype%': AsyncGenerator<any>; '%AsyncIteratorPrototype%': AsyncIterable<any>; '%Atomics%': Atomics; '%Boolean%': BooleanConstructor; '%BooleanPrototype%': typeof Boolean.prototype; '%DataView%': DataViewConstructor; '%DataViewPrototype%': DataView; '%Date%': DateConstructor; '%DatePrototype%': Date; '%decodeURI%': typeof decodeURI; '%decodeURIComponent%': typeof decodeURIComponent; '%encodeURI%': typeof encodeURI; '%encodeURIComponent%': typeof encodeURIComponent; '%Error%': ErrorConstructor; '%ErrorPrototype%': Error; '%eval%': typeof eval; '%EvalError%': EvalErrorConstructor; '%EvalErrorPrototype%': EvalError; '%Float32Array%': Float32ArrayConstructor; '%Float32ArrayPrototype%': Float32Array; '%Float64Array%': Float64ArrayConstructor; '%Float64ArrayPrototype%': Float64Array; '%Function%': FunctionConstructor; '%FunctionPrototype%': typeof Function.prototype; '%Generator%': GeneratorFunction; '%GeneratorFunction%': GeneratorFunctionConstructor; '%GeneratorPrototype%': Generator<any>; '%Int8Array%': Int8ArrayConstructor; '%Int8ArrayPrototype%': Int8Array; '%Int16Array%': Int16ArrayConstructor; '%Int16ArrayPrototype%': Int16Array; '%Int32Array%': Int32ArrayConstructor; '%Int32ArrayPrototype%': Int32Array; '%isFinite%': typeof isFinite; '%isNaN%': typeof isNaN; '%IteratorPrototype%': Iterable<any>; '%JSON%': JSON; '%JSONParse%': typeof JSON.parse; '%Map%': MapConstructor; '%MapIteratorPrototype%': IterableIterator<any>; '%MapPrototype%': typeof Map.prototype; '%Math%': Math; '%Number%': NumberConstructor; '%NumberPrototype%': typeof Number.prototype; '%Object%': ObjectConstructor; '%ObjectPrototype%': typeof Object.prototype; '%ObjProto_toString%': typeof Object.prototype.toString; '%ObjProto_valueOf%': typeof Object.prototype.valueOf; '%parseFloat%': typeof parseFloat; '%parseInt%': typeof parseInt; '%Promise%': PromiseConstructor; '%PromisePrototype%': typeof Promise.prototype; '%PromiseProto_then%': typeof Promise.prototype.then; '%Promise_all%': typeof Promise.all; '%Promise_reject%': typeof Promise.reject; '%Promise_resolve%': typeof Promise.resolve; '%Proxy%': ProxyConstructor; '%RangeError%': RangeErrorConstructor; '%RangeErrorPrototype%': RangeError; '%ReferenceError%': ReferenceErrorConstructor; '%ReferenceErrorPrototype%': ReferenceError; '%Reflect%': typeof Reflect; '%RegExp%': RegExpConstructor; '%RegExpPrototype%': RegExp; '%Set%': SetConstructor; '%SetIteratorPrototype%': IterableIterator<any>; '%SetPrototype%': typeof Set.prototype; '%SharedArrayBuffer%': SharedArrayBufferConstructor; '%SharedArrayBufferPrototype%': SharedArrayBuffer; '%String%': StringConstructor; '%StringIteratorPrototype%': IterableIterator<string>; '%StringPrototype%': typeof String.prototype; '%Symbol%': SymbolConstructor; '%SymbolPrototype%': typeof Symbol.prototype; '%SyntaxError%': SyntaxErrorConstructor; '%SyntaxErrorPrototype%': SyntaxError; '%ThrowTypeError%': () => never; '%TypedArray%': TypedArrayConstructor; '%TypedArrayPrototype%': TypedArrayPrototype; '%TypeError%': TypeErrorConstructor; '%TypeErrorPrototype%': TypeError; '%Uint8Array%': Uint8ArrayConstructor; '%Uint8ArrayPrototype%': Uint8Array; '%Uint8ClampedArray%': Uint8ClampedArrayConstructor; '%Uint8ClampedArrayPrototype%': Uint8ClampedArray; '%Uint16Array%': Uint16ArrayConstructor; '%Uint16ArrayPrototype%': Uint16Array; '%Uint32Array%': Uint32ArrayConstructor; '%Uint32ArrayPrototype%': Uint32Array; '%URIError%': URIErrorConstructor; '%URIErrorPrototype%': URIError; '%WeakMap%': WeakMapConstructor; '%WeakMapPrototype%': typeof WeakMap.prototype; '%WeakSet%': WeakSetConstructor; '%WeakSetPrototype%': typeof WeakSet.prototype; } interface Intrinsics { '%Array.prototype%': typeof Array.prototype; '%Array.prototype.length%': typeof Array.prototype.length; '%Array.prototype.concat%': typeof Array.prototype.concat; '%Array.prototype.copyWithin%': typeof Array.prototype.copyWithin; '%Array.prototype.fill%': typeof Array.prototype.fill; '%Array.prototype.find%': typeof Array.prototype.find; '%Array.prototype.findIndex%': typeof Array.prototype.findIndex; '%Array.prototype.lastIndexOf%': typeof Array.prototype.lastIndexOf; '%Array.prototype.pop%': typeof Array.prototype.pop; '%Array.prototype.push%': typeof Array.prototype.push; '%Array.prototype.reverse%': typeof Array.prototype.reverse; '%Array.prototype.shift%': typeof Array.prototype.shift; '%Array.prototype.unshift%': typeof Array.prototype.unshift; '%Array.prototype.slice%': typeof Array.prototype.slice; '%Array.prototype.sort%': typeof Array.prototype.sort; '%Array.prototype.splice%': typeof Array.prototype.splice; '%Array.prototype.includes%': typeof Array.prototype.includes; '%Array.prototype.indexOf%': typeof Array.prototype.indexOf; '%Array.prototype.join%': typeof Array.prototype.join; '%Array.prototype.keys%': typeof Array.prototype.keys; '%Array.prototype.entries%': typeof Array.prototype.entries; '%Array.prototype.values%': typeof Array.prototype.values; '%Array.prototype.forEach%': typeof Array.prototype.forEach; '%Array.prototype.filter%': typeof Array.prototype.filter; '%Array.prototype.flat%': typeof Array.prototype.flat; '%Array.prototype.flatMap%': typeof Array.prototype.flatMap; '%Array.prototype.map%': typeof Array.prototype.map; '%Array.prototype.every%': typeof Array.prototype.every; '%Array.prototype.some%': typeof Array.prototype.some; '%Array.prototype.reduce%': typeof Array.prototype.reduce; '%Array.prototype.reduceRight%': typeof Array.prototype.reduceRight; '%Array.prototype.toLocaleString%': typeof Array.prototype.toLocaleString; '%Array.prototype.toString%': typeof Array.prototype.toString; '%Array.isArray%': typeof Array.isArray; '%Array.from%': typeof Array.from; '%Array.of%': typeof Array.of; '%ArrayBuffer.prototype%': ArrayBuffer; '%ArrayBuffer.prototype.byteLength%': (this: ArrayBuffer) => typeof ArrayBuffer.prototype.byteLength; '%ArrayBuffer.prototype.slice%': typeof ArrayBuffer.prototype.slice; '%ArrayBuffer.isView%': typeof ArrayBuffer.isView; '%ArrayBufferPrototype.byteLength%': (this: ArrayBuffer) => typeof ArrayBuffer.prototype.byteLength; '%ArrayBufferPrototype.slice%': typeof ArrayBuffer.prototype.slice; '%ArrayIteratorPrototype.next%': IterableIterator<any>['next']; '%ArrayPrototype.length%': typeof Array.prototype.length; '%ArrayPrototype.concat%': typeof Array.prototype.concat; '%ArrayPrototype.copyWithin%': typeof Array.prototype.copyWithin; '%ArrayPrototype.fill%': typeof Array.prototype.fill; '%ArrayPrototype.find%': typeof Array.prototype.find; '%ArrayPrototype.findIndex%': typeof Array.prototype.findIndex; '%ArrayPrototype.lastIndexOf%': typeof Array.prototype.lastIndexOf; '%ArrayPrototype.pop%': typeof Array.prototype.pop; '%ArrayPrototype.push%': typeof Array.prototype.push; '%ArrayPrototype.reverse%': typeof Array.prototype.reverse; '%ArrayPrototype.shift%': typeof Array.prototype.shift; '%ArrayPrototype.unshift%': typeof Array.prototype.unshift; '%ArrayPrototype.slice%': typeof Array.prototype.slice; '%ArrayPrototype.sort%': typeof Array.prototype.sort; '%ArrayPrototype.splice%': typeof Array.prototype.splice; '%ArrayPrototype.includes%': typeof Array.prototype.includes; '%ArrayPrototype.indexOf%': typeof Array.prototype.indexOf; '%ArrayPrototype.join%': typeof Array.prototype.join; '%ArrayPrototype.keys%': typeof Array.prototype.keys; '%ArrayPrototype.entries%': typeof Array.prototype.entries; '%ArrayPrototype.values%': typeof Array.prototype.values; '%ArrayPrototype.forEach%': typeof Array.prototype.forEach; '%ArrayPrototype.filter%': typeof Array.prototype.filter; '%ArrayPrototype.flat%': typeof Array.prototype.flat; '%ArrayPrototype.flatMap%': typeof Array.prototype.flatMap; '%ArrayPrototype.map%': typeof Array.prototype.map; '%ArrayPrototype.every%': typeof Array.prototype.every; '%ArrayPrototype.some%': typeof Array.prototype.some; '%ArrayPrototype.reduce%': typeof Array.prototype.reduce; '%ArrayPrototype.reduceRight%': typeof Array.prototype.reduceRight; '%ArrayPrototype.toLocaleString%': typeof Array.prototype.toLocaleString; '%ArrayPrototype.toString%': typeof Array.prototype.toString; '%AsyncFromSyncIteratorPrototype.next%': AsyncGenerator<any>['next']; '%AsyncFromSyncIteratorPrototype.return%': AsyncGenerator<any>['return']; '%AsyncFromSyncIteratorPrototype.throw%': AsyncGenerator<any>['throw']; '%AsyncFunction.prototype%': typeof Function.prototype; '%AsyncGenerator.prototype%': AsyncGenerator<any>; '%AsyncGenerator.prototype.next%': AsyncGenerator<any>['next']; '%AsyncGenerator.prototype.return%': AsyncGenerator<any>['return']; '%AsyncGenerator.prototype.throw%': AsyncGenerator<any>['throw']; '%AsyncGeneratorFunction.prototype%': AsyncGeneratorFunction; '%AsyncGeneratorFunction.prototype.prototype%': AsyncGenerator<any>; '%AsyncGeneratorFunction.prototype.prototype.next%': AsyncGenerator<any>['next']; '%AsyncGeneratorFunction.prototype.prototype.return%': AsyncGenerator<any>['return']; '%AsyncGeneratorFunction.prototype.prototype.throw%': AsyncGenerator<any>['throw']; '%AsyncGeneratorPrototype.next%': AsyncGenerator<any>['next']; '%AsyncGeneratorPrototype.return%': AsyncGenerator<any>['return']; '%AsyncGeneratorPrototype.throw%': AsyncGenerator<any>['throw']; '%Atomics.load%': typeof Atomics.load; '%Atomics.store%': typeof Atomics.store; '%Atomics.add%': typeof Atomics.add; '%Atomics.sub%': typeof Atomics.sub; '%Atomics.and%': typeof Atomics.and; '%Atomics.or%': typeof Atomics.or; '%Atomics.xor%': typeof Atomics.xor; '%Atomics.exchange%': typeof Atomics.exchange; '%Atomics.compareExchange%': typeof Atomics.compareExchange; '%Atomics.isLockFree%': typeof Atomics.isLockFree; '%Atomics.wait%': typeof Atomics.wait; '%Atomics.notify%': typeof Atomics.notify; '%Boolean.prototype%': typeof Boolean.prototype; '%Boolean.prototype.toString%': typeof Boolean.prototype.toString; '%Boolean.prototype.valueOf%': typeof Boolean.prototype.valueOf; '%BooleanPrototype.toString%': typeof Boolean.prototype.toString; '%BooleanPrototype.valueOf%': typeof Boolean.prototype.valueOf; '%DataView.prototype%': DataView; '%DataView.prototype.buffer%': (this: DataView) => typeof DataView.prototype.buffer; '%DataView.prototype.byteLength%': (this: DataView) => typeof DataView.prototype.byteLength; '%DataView.prototype.byteOffset%': (this: DataView) => typeof DataView.prototype.byteOffset; '%DataView.prototype.getInt8%': typeof DataView.prototype.getInt8; '%DataView.prototype.setInt8%': typeof DataView.prototype.setInt8; '%DataView.prototype.getUint8%': typeof DataView.prototype.getUint8; '%DataView.prototype.setUint8%': typeof DataView.prototype.setUint8; '%DataView.prototype.getInt16%': typeof DataView.prototype.getInt16; '%DataView.prototype.setInt16%': typeof DataView.prototype.setInt16; '%DataView.prototype.getUint16%': typeof DataView.prototype.getUint16; '%DataView.prototype.setUint16%': typeof DataView.prototype.setUint16; '%DataView.prototype.getInt32%': typeof DataView.prototype.getInt32; '%DataView.prototype.setInt32%': typeof DataView.prototype.setInt32; '%DataView.prototype.getUint32%': typeof DataView.prototype.getUint32; '%DataView.prototype.setUint32%': typeof DataView.prototype.setUint32; '%DataView.prototype.getFloat32%': typeof DataView.prototype.getFloat32; '%DataView.prototype.setFloat32%': typeof DataView.prototype.setFloat32; '%DataView.prototype.getFloat64%': typeof DataView.prototype.getFloat64; '%DataView.prototype.setFloat64%': typeof DataView.prototype.setFloat64; '%DataView.prototype.getBigInt64%': typeof DataView.prototype.getBigInt64; '%DataView.prototype.setBigInt64%': typeof DataView.prototype.setBigInt64; '%DataView.prototype.getBigUint64%': typeof DataView.prototype.getBigUint64; '%DataView.prototype.setBigUint64%': typeof DataView.prototype.setBigUint64; '%DataViewPrototype.buffer%': (this: DataView) => typeof DataView.prototype.buffer; '%DataViewPrototype.byteLength%': (this: DataView) => typeof DataView.prototype.byteLength; '%DataViewPrototype.byteOffset%': (this: DataView) => typeof DataView.prototype.byteOffset; '%DataViewPrototype.getInt8%': typeof DataView.prototype.getInt8; '%DataViewPrototype.setInt8%': typeof DataView.prototype.setInt8; '%DataViewPrototype.getUint8%': typeof DataView.prototype.getUint8; '%DataViewPrototype.setUint8%': typeof DataView.prototype.setUint8; '%DataViewPrototype.getInt16%': typeof DataView.prototype.getInt16; '%DataViewPrototype.setInt16%': typeof DataView.prototype.setInt16; '%DataViewPrototype.getUint16%': typeof DataView.prototype.getUint16; '%DataViewPrototype.setUint16%': typeof DataView.prototype.setUint16; '%DataViewPrototype.getInt32%': typeof DataView.prototype.getInt32; '%DataViewPrototype.setInt32%': typeof DataView.prototype.setInt32; '%DataViewPrototype.getUint32%': typeof DataView.prototype.getUint32; '%DataViewPrototype.setUint32%': typeof DataView.prototype.setUint32; '%DataViewPrototype.getFloat32%': typeof DataView.prototype.getFloat32; '%DataViewPrototype.setFloat32%': typeof DataView.prototype.setFloat32; '%DataViewPrototype.getFloat64%': typeof DataView.prototype.getFloat64; '%DataViewPrototype.setFloat64%': typeof DataView.prototype.setFloat64; '%DataViewPrototype.getBigInt64%': typeof DataView.prototype.getBigInt64; '%DataViewPrototype.setBigInt64%': typeof DataView.prototype.setBigInt64; '%DataViewPrototype.getBigUint64%': typeof DataView.prototype.getBigUint64; '%DataViewPrototype.setBigUint64%': typeof DataView.prototype.setBigUint64; '%Date.prototype%': Date; '%Date.prototype.toString%': typeof Date.prototype.toString; '%Date.prototype.toDateString%': typeof Date.prototype.toDateString; '%Date.prototype.toTimeString%': typeof Date.prototype.toTimeString; '%Date.prototype.toISOString%': typeof Date.prototype.toISOString; '%Date.prototype.toUTCString%': typeof Date.prototype.toUTCString; '%Date.prototype.getDate%': typeof Date.prototype.getDate; '%Date.prototype.setDate%': typeof Date.prototype.setDate; '%Date.prototype.getDay%': typeof Date.prototype.getDay; '%Date.prototype.getFullYear%': typeof Date.prototype.getFullYear; '%Date.prototype.setFullYear%': typeof Date.prototype.setFullYear; '%Date.prototype.getHours%': typeof Date.prototype.getHours; '%Date.prototype.setHours%': typeof Date.prototype.setHours; '%Date.prototype.getMilliseconds%': typeof Date.prototype.getMilliseconds; '%Date.prototype.setMilliseconds%': typeof Date.prototype.setMilliseconds; '%Date.prototype.getMinutes%': typeof Date.prototype.getMinutes; '%Date.prototype.setMinutes%': typeof Date.prototype.setMinutes; '%Date.prototype.getMonth%': typeof Date.prototype.getMonth; '%Date.prototype.setMonth%': typeof Date.prototype.setMonth; '%Date.prototype.getSeconds%': typeof Date.prototype.getSeconds; '%Date.prototype.setSeconds%': typeof Date.prototype.setSeconds; '%Date.prototype.getTime%': typeof Date.prototype.getTime; '%Date.prototype.setTime%': typeof Date.prototype.setTime; '%Date.prototype.getTimezoneOffset%': typeof Date.prototype.getTimezoneOffset; '%Date.prototype.getUTCDate%': typeof Date.prototype.getUTCDate; '%Date.prototype.setUTCDate%': typeof Date.prototype.setUTCDate; '%Date.prototype.getUTCDay%': typeof Date.prototype.getUTCDay; '%Date.prototype.getUTCFullYear%': typeof Date.prototype.getUTCFullYear; '%Date.prototype.setUTCFullYear%': typeof Date.prototype.setUTCFullYear; '%Date.prototype.getUTCHours%': typeof Date.prototype.getUTCHours; '%Date.prototype.setUTCHours%': typeof Date.prototype.setUTCHours; '%Date.prototype.getUTCMilliseconds%': typeof Date.prototype.getUTCMilliseconds; '%Date.prototype.setUTCMilliseconds%': typeof Date.prototype.setUTCMilliseconds; '%Date.prototype.getUTCMinutes%': typeof Date.prototype.getUTCMinutes; '%Date.prototype.setUTCMinutes%': typeof Date.prototype.setUTCMinutes; '%Date.prototype.getUTCMonth%': typeof Date.prototype.getUTCMonth; '%Date.prototype.setUTCMonth%': typeof Date.prototype.setUTCMonth; '%Date.prototype.getUTCSeconds%': typeof Date.prototype.getUTCSeconds; '%Date.prototype.setUTCSeconds%': typeof Date.prototype.setUTCSeconds; '%Date.prototype.valueOf%': typeof Date.prototype.valueOf; '%Date.prototype.toJSON%': typeof Date.prototype.toJSON; '%Date.prototype.toLocaleString%': typeof Date.prototype.toLocaleString; '%Date.prototype.toLocaleDateString%': typeof Date.prototype.toLocaleDateString; '%Date.prototype.toLocaleTimeString%': typeof Date.prototype.toLocaleTimeString; '%Date.now%': typeof Date.now; '%Date.parse%': typeof Date.parse; '%Date.UTC%': typeof Date.UTC; '%DatePrototype.toString%': typeof Date.prototype.toString; '%DatePrototype.toDateString%': typeof Date.prototype.toDateString; '%DatePrototype.toTimeString%': typeof Date.prototype.toTimeString; '%DatePrototype.toISOString%': typeof Date.prototype.toISOString; '%DatePrototype.toUTCString%': typeof Date.prototype.toUTCString; '%DatePrototype.getDate%': typeof Date.prototype.getDate; '%DatePrototype.setDate%': typeof Date.prototype.setDate; '%DatePrototype.getDay%': typeof Date.prototype.getDay; '%DatePrototype.getFullYear%': typeof Date.prototype.getFullYear; '%DatePrototype.setFullYear%': typeof Date.prototype.setFullYear; '%DatePrototype.getHours%': typeof Date.prototype.getHours; '%DatePrototype.setHours%': typeof Date.prototype.setHours; '%DatePrototype.getMilliseconds%': typeof Date.prototype.getMilliseconds; '%DatePrototype.setMilliseconds%': typeof Date.prototype.setMilliseconds; '%DatePrototype.getMinutes%': typeof Date.prototype.getMinutes; '%DatePrototype.setMinutes%': typeof Date.prototype.setMinutes; '%DatePrototype.getMonth%': typeof Date.prototype.getMonth; '%DatePrototype.setMonth%': typeof Date.prototype.setMonth; '%DatePrototype.getSeconds%': typeof Date.prototype.getSeconds; '%DatePrototype.setSeconds%': typeof Date.prototype.setSeconds; '%DatePrototype.getTime%': typeof Date.prototype.getTime; '%DatePrototype.setTime%': typeof Date.prototype.setTime; '%DatePrototype.getTimezoneOffset%': typeof Date.prototype.getTimezoneOffset; '%DatePrototype.getUTCDate%': typeof Date.prototype.getUTCDate; '%DatePrototype.setUTCDate%': typeof Date.prototype.setUTCDate; '%DatePrototype.getUTCDay%': typeof Date.prototype.getUTCDay; '%DatePrototype.getUTCFullYear%': typeof Date.prototype.getUTCFullYear; '%DatePrototype.setUTCFullYear%': typeof Date.prototype.setUTCFullYear; '%DatePrototype.getUTCHours%': typeof Date.prototype.getUTCHours; '%DatePrototype.setUTCHours%': typeof Date.prototype.setUTCHours; '%DatePrototype.getUTCMilliseconds%': typeof Date.prototype.getUTCMilliseconds; '%DatePrototype.setUTCMilliseconds%': typeof Date.prototype.setUTCMilliseconds; '%DatePrototype.getUTCMinutes%': typeof Date.prototype.getUTCMinutes; '%DatePrototype.setUTCMinutes%': typeof Date.prototype.setUTCMinutes; '%DatePrototype.getUTCMonth%': typeof Date.prototype.getUTCMonth; '%DatePrototype.setUTCMonth%': typeof Date.prototype.setUTCMonth; '%DatePrototype.getUTCSeconds%': typeof Date.prototype.getUTCSeconds; '%DatePrototype.setUTCSeconds%': typeof Date.prototype.setUTCSeconds; '%DatePrototype.valueOf%': typeof Date.prototype.valueOf; '%DatePrototype.toJSON%': typeof Date.prototype.toJSON; '%DatePrototype.toLocaleString%': typeof Date.prototype.toLocaleString; '%DatePrototype.toLocaleDateString%': typeof Date.prototype.toLocaleDateString; '%DatePrototype.toLocaleTimeString%': typeof Date.prototype.toLocaleTimeString; '%Error.prototype%': Error; '%Error.prototype.name%': typeof Error.prototype.name; '%Error.prototype.message%': typeof Error.prototype.message; '%Error.prototype.toString%': typeof Error.prototype.toString; '%ErrorPrototype.name%': typeof Error.prototype.name; '%ErrorPrototype.message%': typeof Error.prototype.message; '%ErrorPrototype.toString%': typeof Error.prototype.toString; '%EvalError.prototype%': EvalError; '%EvalError.prototype.name%': typeof EvalError.prototype.name; '%EvalError.prototype.message%': typeof EvalError.prototype.message; '%EvalErrorPrototype.name%': typeof EvalError.prototype.name; '%EvalErrorPrototype.message%': typeof EvalError.prototype.message; '%Float32Array.prototype%': Float32Array; '%Float32Array.prototype.BYTES_PER_ELEMENT%': typeof Float32Array.prototype.BYTES_PER_ELEMENT; '%Float32Array.BYTES_PER_ELEMENT%': typeof Float32Array.BYTES_PER_ELEMENT; '%Float32ArrayPrototype.BYTES_PER_ELEMENT%': typeof Float32Array.prototype.BYTES_PER_ELEMENT; '%Float64Array.prototype%': Float64Array; '%Float64Array.prototype.BYTES_PER_ELEMENT%': typeof Float64Array.prototype.BYTES_PER_ELEMENT; '%Float64Array.BYTES_PER_ELEMENT%': typeof Float64Array.BYTES_PER_ELEMENT; '%Float64ArrayPrototype.BYTES_PER_ELEMENT%': typeof Float64Array.prototype.BYTES_PER_ELEMENT; '%Function.prototype%': typeof Function.prototype; '%Function.prototype.apply%': typeof Function.prototype.apply; '%Function.prototype.bind%': typeof Function.prototype.bind; '%Function.prototype.call%': typeof Function.prototype.call; '%Function.prototype.toString%': typeof Function.prototype.toString; '%FunctionPrototype.apply%': typeof Function.prototype.apply; '%FunctionPrototype.bind%': typeof Function.prototype.bind; '%FunctionPrototype.call%': typeof Function.prototype.call; '%FunctionPrototype.toString%': typeof Function.prototype.toString; '%Generator.prototype%': Generator<any>; '%Generator.prototype.next%': Generator<any>['next']; '%Generator.prototype.return%': Generator<any>['return']; '%Generator.prototype.throw%': Generator<any>['throw']; '%GeneratorFunction.prototype%': GeneratorFunction; '%GeneratorFunction.prototype.prototype%': Generator<any>; '%GeneratorFunction.prototype.prototype.next%': Generator<any>['next']; '%GeneratorFunction.prototype.prototype.return%': Generator<any>['return']; '%GeneratorFunction.prototype.prototype.throw%': Generator<any>['throw']; '%GeneratorPrototype.next%': Generator<any>['next']; '%GeneratorPrototype.return%': Generator<any>['return']; '%GeneratorPrototype.throw%': Generator<any>['throw']; '%Int8Array.prototype%': Int8Array; '%Int8Array.prototype.BYTES_PER_ELEMENT%': typeof Int8Array.prototype.BYTES_PER_ELEMENT; '%Int8Array.BYTES_PER_ELEMENT%': typeof Int8Array.BYTES_PER_ELEMENT; '%Int8ArrayPrototype.BYTES_PER_ELEMENT%': typeof Int8Array.prototype.BYTES_PER_ELEMENT; '%Int16Array.prototype%': Int16Array; '%Int16Array.prototype.BYTES_PER_ELEMENT%': typeof Int16Array.prototype.BYTES_PER_ELEMENT; '%Int16Array.BYTES_PER_ELEMENT%': typeof Int16Array.BYTES_PER_ELEMENT; '%Int16ArrayPrototype.BYTES_PER_ELEMENT%': typeof Int16Array.prototype.BYTES_PER_ELEMENT; '%Int32Array.prototype%': Int32Array; '%Int32Array.prototype.BYTES_PER_ELEMENT%': typeof Int32Array.prototype.BYTES_PER_ELEMENT; '%Int32Array.BYTES_PER_ELEMENT%': typeof Int32Array.BYTES_PER_ELEMENT; '%Int32ArrayPrototype.BYTES_PER_ELEMENT%': typeof Int32Array.prototype.BYTES_PER_ELEMENT; '%JSON.parse%': typeof JSON.parse; '%JSON.stringify%': typeof JSON.stringify; '%Map.prototype%': typeof Map.prototype; '%Map.prototype.get%': typeof Map.prototype.get; '%Map.prototype.set%': typeof Map.prototype.set; '%Map.prototype.has%': typeof Map.prototype.has; '%Map.prototype.delete%': typeof Map.prototype.delete; '%Map.prototype.clear%': typeof Map.prototype.clear; '%Map.prototype.entries%': typeof Map.prototype.entries; '%Map.prototype.forEach%': typeof Map.prototype.forEach; '%Map.prototype.keys%': typeof Map.prototype.keys; '%Map.prototype.size%': (this: Map<any, any>) => typeof Map.prototype.size; '%Map.prototype.values%': typeof Map.prototype.values; '%MapIteratorPrototype.next%': IterableIterator<any>['next']; '%MapPrototype.get%': typeof Map.prototype.get; '%MapPrototype.set%': typeof Map.prototype.set; '%MapPrototype.has%': typeof Map.prototype.has; '%MapPrototype.delete%': typeof Map.prototype.delete; '%MapPrototype.clear%': typeof Map.prototype.clear; '%MapPrototype.entries%': typeof Map.prototype.entries; '%MapPrototype.forEach%': typeof Map.prototype.forEach; '%MapPrototype.keys%': typeof Map.prototype.keys; '%MapPrototype.size%': (this: Map<any, any>) => typeof Map.prototype.size; '%MapPrototype.values%': typeof Map.prototype.values; '%Math.abs%': typeof Math.abs; '%Math.acos%': typeof Math.acos; '%Math.acosh%': typeof Math.acosh; '%Math.asin%': typeof Math.asin; '%Math.asinh%': typeof Math.asinh; '%Math.atan%': typeof Math.atan; '%Math.atanh%': typeof Math.atanh; '%Math.atan2%': typeof Math.atan2; '%Math.ceil%': typeof Math.ceil; '%Math.cbrt%': typeof Math.cbrt; '%Math.expm1%': typeof Math.expm1; '%Math.clz32%': typeof Math.clz32; '%Math.cos%': typeof Math.cos; '%Math.cosh%': typeof Math.cosh; '%Math.exp%': typeof Math.exp; '%Math.floor%': typeof Math.floor; '%Math.fround%': typeof Math.fround; '%Math.hypot%': typeof Math.hypot; '%Math.imul%': typeof Math.imul; '%Math.log%': typeof Math.log; '%Math.log1p%': typeof Math.log1p; '%Math.log2%': typeof Math.log2; '%Math.log10%': typeof Math.log10; '%Math.max%': typeof Math.max; '%Math.min%': typeof Math.min; '%Math.pow%': typeof Math.pow; '%Math.random%': typeof Math.random; '%Math.round%': typeof Math.round; '%Math.sign%': typeof Math.sign; '%Math.sin%': typeof Math.sin; '%Math.sinh%': typeof Math.sinh; '%Math.sqrt%': typeof Math.sqrt; '%Math.tan%': typeof Math.tan; '%Math.tanh%': typeof Math.tanh; '%Math.trunc%': typeof Math.trunc; '%Math.E%': typeof Math.E; '%Math.LN10%': typeof Math.LN10; '%Math.LN2%': typeof Math.LN2; '%Math.LOG10E%': typeof Math.LOG10E; '%Math.LOG2E%': typeof Math.LOG2E; '%Math.PI%': typeof Math.PI; '%Math.SQRT1_2%': typeof Math.SQRT1_2; '%Math.SQRT2%': typeof Math.SQRT2; '%Number.prototype%': typeof Number.prototype; '%Number.prototype.toExponential%': typeof Number.prototype.toExponential; '%Number.prototype.toFixed%': typeof Number.prototype.toFixed; '%Number.prototype.toPrecision%': typeof Number.prototype.toPrecision; '%Number.prototype.toString%': typeof Number.prototype.toString; '%Number.prototype.valueOf%': typeof Number.prototype.valueOf; '%Number.prototype.toLocaleString%': typeof Number.prototype.toLocaleString; '%Number.isFinite%': typeof Number.isFinite; '%Number.isInteger%': typeof Number.isInteger; '%Number.isNaN%': typeof Number.isNaN; '%Number.isSafeInteger%': typeof Number.isSafeInteger; '%Number.parseFloat%': typeof Number.parseFloat; '%Number.parseInt%': typeof Number.parseInt; '%Number.MAX_VALUE%': typeof Number.MAX_VALUE; '%Number.MIN_VALUE%': typeof Number.MIN_VALUE; '%Number.NaN%': typeof Number.NaN; '%Number.NEGATIVE_INFINITY%': typeof Number.NEGATIVE_INFINITY; '%Number.POSITIVE_INFINITY%': typeof Number.POSITIVE_INFINITY; '%Number.MAX_SAFE_INTEGER%': typeof Number.MAX_SAFE_INTEGER; '%Number.MIN_SAFE_INTEGER%': typeof Number.MIN_SAFE_INTEGER; '%Number.EPSILON%': typeof Number.EPSILON; '%NumberPrototype.toExponential%': typeof Number.prototype.toExponential; '%NumberPrototype.toFixed%': typeof Number.prototype.toFixed; '%NumberPrototype.toPrecision%': typeof Number.prototype.toPrecision; '%NumberPrototype.toString%': typeof Number.prototype.toString; '%NumberPrototype.valueOf%': typeof Number.prototype.valueOf; '%NumberPrototype.toLocaleString%': typeof Number.prototype.toLocaleString; '%Object.prototype%': typeof Object.prototype; '%Object.prototype.hasOwnProperty%': typeof Object.prototype.hasOwnProperty; '%Object.prototype.isPrototypeOf%': typeof Object.prototype.isPrototypeOf; '%Object.prototype.propertyIsEnumerable%': typeof Object.prototype.propertyIsEnumerable; '%Object.prototype.toString%': typeof Object.prototype.toString; '%Object.prototype.valueOf%': typeof Object.prototype.valueOf; '%Object.prototype.toLocaleString%': typeof Object.prototype.toLocaleString; '%Object.assign%': typeof Object.assign; '%Object.getOwnPropertyDescriptor%': typeof Object.getOwnPropertyDescriptor; '%Object.getOwnPropertyDescriptors%': typeof Object.getOwnPropertyDescriptors; '%Object.getOwnPropertyNames%': typeof Object.getOwnPropertyNames; '%Object.getOwnPropertySymbols%': typeof Object.getOwnPropertySymbols; '%Object.is%': typeof Object.is; '%Object.preventExtensions%': typeof Object.preventExtensions; '%Object.seal%': typeof Object.seal; '%Object.create%': typeof Object.create; '%Object.defineProperties%': typeof Object.defineProperties; '%Object.defineProperty%': typeof Object.defineProperty; '%Object.freeze%': typeof Object.freeze; '%Object.getPrototypeOf%': typeof Object.getPrototypeOf; '%Object.setPrototypeOf%': typeof Object.setPrototypeOf; '%Object.isExtensible%': typeof Object.isExtensible; '%Object.isFrozen%': typeof Object.isFrozen; '%Object.isSealed%': typeof Object.isSealed; '%Object.keys%': typeof Object.keys; '%Object.entries%': typeof Object.entries; '%Object.fromEntries%': typeof Object.fromEntries; '%Object.values%': typeof Object.values; '%ObjectPrototype.hasOwnProperty%': typeof Object.prototype.hasOwnProperty; '%ObjectPrototype.isPrototypeOf%': typeof Object.prototype.isPrototypeOf; '%ObjectPrototype.propertyIsEnumerable%': typeof Object.prototype.propertyIsEnumerable; '%ObjectPrototype.toString%': typeof Object.prototype.toString; '%ObjectPrototype.valueOf%': typeof Object.prototype.valueOf; '%ObjectPrototype.toLocaleString%': typeof Object.prototype.toLocaleString; '%Promise.prototype%': typeof Promise.prototype; '%Promise.prototype.then%': typeof Promise.prototype.then; '%Promise.prototype.catch%': typeof Promise.prototype.catch; '%Promise.prototype.finally%': typeof Promise.prototype.finally; '%Promise.all%': typeof Promise.all; '%Promise.race%': typeof Promise.race; '%Promise.resolve%': typeof Promise.resolve; '%Promise.reject%': typeof Promise.reject; '%Promise.allSettled%': typeof Promise.allSettled; '%PromisePrototype.then%': typeof Promise.prototype.then; '%PromisePrototype.catch%': typeof Promise.prototype.catch; '%PromisePrototype.finally%': typeof Promise.prototype.finally; '%Proxy.revocable%': typeof Proxy.revocable; '%RangeError.prototype%': RangeError; '%RangeError.prototype.name%': typeof RangeError.prototype.name; '%RangeError.prototype.message%': typeof RangeError.prototype.message; '%RangeErrorPrototype.name%': typeof RangeError.prototype.name; '%RangeErrorPrototype.message%': typeof RangeError.prototype.message; '%ReferenceError.prototype%': ReferenceError; '%ReferenceError.prototype.name%': typeof ReferenceError.prototype.name; '%ReferenceError.prototype.message%': typeof ReferenceError.prototype.message; '%ReferenceErrorPrototype.name%': typeof ReferenceError.prototype.name; '%ReferenceErrorPrototype.message%': typeof ReferenceError.prototype.message; '%Reflect.defineProperty%': typeof Reflect.defineProperty; '%Reflect.deleteProperty%': typeof Reflect.deleteProperty; '%Reflect.apply%': typeof Reflect.apply; '%Reflect.construct%': typeof Reflect.construct; '%Reflect.get%': typeof Reflect.get; '%Reflect.getOwnPropertyDescriptor%': typeof Reflect.getOwnPropertyDescriptor; '%Reflect.getPrototypeOf%': typeof Reflect.getPrototypeOf; '%Reflect.has%': typeof Reflect.has; '%Reflect.isExtensible%': typeof Reflect.isExtensible; '%Reflect.ownKeys%': typeof Reflect.ownKeys; '%Reflect.preventExtensions%': typeof Reflect.preventExtensions; '%Reflect.set%': typeof Reflect.set; '%Reflect.setPrototypeOf%': typeof Reflect.setPrototypeOf; '%RegExp.prototype%': RegExp; '%RegExp.prototype.exec%': typeof RegExp.prototype.exec; '%RegExp.prototype.dotAll%': (this: RegExp) => typeof RegExp.prototype.dotAll; '%RegExp.prototype.flags%': (this: RegExp) => typeof RegExp.prototype.flags; '%RegExp.prototype.global%': (this: RegExp) => typeof RegExp.prototype.global; '%RegExp.prototype.ignoreCase%': (this: RegExp) => typeof RegExp.prototype.ignoreCase; '%RegExp.prototype.multiline%': (this: RegExp) => typeof RegExp.prototype.multiline; '%RegExp.prototype.source%': (this: RegExp) => typeof RegExp.prototype.source; '%RegExp.prototype.sticky%': (this: RegExp) => typeof RegExp.prototype.sticky; '%RegExp.prototype.unicode%': (this: RegExp) => typeof RegExp.prototype.unicode; '%RegExp.prototype.compile%': typeof RegExp.prototype.compile; '%RegExp.prototype.toString%': typeof RegExp.prototype.toString; '%RegExp.prototype.test%': typeof RegExp.prototype.test; '%RegExpPrototype.exec%': typeof RegExp.prototype.exec; '%RegExpPrototype.dotAll%': (this: RegExp) => typeof RegExp.prototype.dotAll; '%RegExpPrototype.flags%': (this: RegExp) => typeof RegExp.prototype.flags; '%RegExpPrototype.global%': (this: RegExp) => typeof RegExp.prototype.global; '%RegExpPrototype.ignoreCase%': (this: RegExp) => typeof RegExp.prototype.ignoreCase; '%RegExpPrototype.multiline%': (this: RegExp) => typeof RegExp.prototype.multiline; '%RegExpPrototype.source%': (this: RegExp) => typeof RegExp.prototype.source; '%RegExpPrototype.sticky%': (this: RegExp) => typeof RegExp.prototype.sticky; '%RegExpPrototype.unicode%': (this: RegExp) => typeof RegExp.prototype.unicode; '%RegExpPrototype.compile%': typeof RegExp.prototype.compile; '%RegExpPrototype.toString%': typeof RegExp.prototype.toString; '%RegExpPrototype.test%': typeof RegExp.prototype.test; '%Set.prototype%': typeof Set.prototype; '%Set.prototype.has%': typeof Set.prototype.has; '%Set.prototype.add%': typeof Set.prototype.add; '%Set.prototype.delete%': typeof Set.prototype.delete; '%Set.prototype.clear%': typeof Set.prototype.clear; '%Set.prototype.entries%': typeof Set.prototype.entries; '%Set.prototype.forEach%': typeof Set.prototype.forEach; '%Set.prototype.size%': (this: Set<any>) => typeof Set.prototype.size; '%Set.prototype.values%': typeof Set.prototype.values; '%Set.prototype.keys%': typeof Set.prototype.keys; '%SetIteratorPrototype.next%': IterableIterator<any>['next']; '%SetPrototype.has%': typeof Set.prototype.has; '%SetPrototype.add%': typeof Set.prototype.add; '%SetPrototype.delete%': typeof Set.prototype.delete; '%SetPrototype.clear%': typeof Set.prototype.clear; '%SetPrototype.entries%': typeof Set.prototype.entries; '%SetPrototype.forEach%': typeof Set.prototype.forEach; '%SetPrototype.size%': (this: Set<any>) => typeof Set.prototype.size; '%SetPrototype.values%': typeof Set.prototype.values; '%SetPrototype.keys%': typeof Set.prototype.keys; '%SharedArrayBuffer.prototype%': SharedArrayBuffer; '%SharedArrayBuffer.prototype.byteLength%': (this: SharedArrayBuffer) => typeof SharedArrayBuffer.prototype.byteLength; '%SharedArrayBuffer.prototype.slice%': typeof SharedArrayBuffer.prototype.slice; '%SharedArrayBufferPrototype.byteLength%': (this: SharedArrayBuffer) => typeof SharedArrayBuffer.prototype.byteLength; '%SharedArrayBufferPrototype.slice%': typeof SharedArrayBuffer.prototype.slice; '%String.prototype%': typeof String.prototype; '%String.prototype.length%': typeof String.prototype.length; '%String.prototype.anchor%': typeof String.prototype.anchor; '%String.prototype.big%': typeof String.prototype.big; '%String.prototype.blink%': typeof String.prototype.blink; '%String.prototype.bold%': typeof String.prototype.bold; '%String.prototype.charAt%': typeof String.prototype.charAt; '%String.prototype.charCodeAt%': typeof String.prototype.charCodeAt; '%String.prototype.codePointAt%': typeof String.prototype.codePointAt; '%String.prototype.concat%': typeof String.prototype.concat; '%String.prototype.endsWith%': typeof String.prototype.endsWith; '%String.prototype.fontcolor%': typeof String.prototype.fontcolor; '%String.prototype.fontsize%': typeof String.prototype.fontsize; '%String.prototype.fixed%': typeof String.prototype.fixed; '%String.prototype.includes%': typeof String.prototype.includes; '%String.prototype.indexOf%': typeof String.prototype.indexOf; '%String.prototype.italics%': typeof String.prototype.italics; '%String.prototype.lastIndexOf%': typeof String.prototype.lastIndexOf; '%String.prototype.link%': typeof String.prototype.link; '%String.prototype.localeCompare%': typeof String.prototype.localeCompare; '%String.prototype.match%': typeof String.prototype.match; '%String.prototype.matchAll%': typeof String.prototype.matchAll; '%String.prototype.normalize%': typeof String.prototype.normalize; '%String.prototype.padEnd%': typeof String.prototype.padEnd; '%String.prototype.padStart%': typeof String.prototype.padStart; '%String.prototype.repeat%': typeof String.prototype.repeat; '%String.prototype.replace%': typeof String.prototype.replace; '%String.prototype.search%': typeof String.prototype.search; '%String.prototype.slice%': typeof String.prototype.slice; '%String.prototype.small%': typeof String.prototype.small; '%String.prototype.split%': typeof String.prototype.split; '%String.prototype.strike%': typeof String.prototype.strike; '%String.prototype.sub%': typeof String.prototype.sub; '%String.prototype.substr%': typeof String.prototype.substr; '%String.prototype.substring%': typeof String.prototype.substring; '%String.prototype.sup%': typeof String.prototype.sup; '%String.prototype.startsWith%': typeof String.prototype.startsWith; '%String.prototype.toString%': typeof String.prototype.toString; '%String.prototype.trim%': typeof String.prototype.trim; '%String.prototype.trimStart%': typeof String.prototype.trimStart; '%String.prototype.trimLeft%': typeof String.prototype.trimLeft; '%String.prototype.trimEnd%': typeof String.prototype.trimEnd; '%String.prototype.trimRight%': typeof String.prototype.trimRight; '%String.prototype.toLocaleLowerCase%': typeof String.prototype.toLocaleLowerCase; '%String.prototype.toLocaleUpperCase%': typeof String.prototype.toLocaleUpperCase; '%String.prototype.toLowerCase%': typeof String.prototype.toLowerCase; '%String.prototype.toUpperCase%': typeof String.prototype.toUpperCase; '%String.prototype.valueOf%': typeof String.prototype.valueOf; '%String.fromCharCode%': typeof String.fromCharCode; '%String.fromCodePoint%': typeof String.fromCodePoint; '%String.raw%': typeof String.raw; '%StringIteratorPrototype.next%': IterableIterator<string>['next']; '%StringPrototype.length%': typeof String.prototype.length; '%StringPrototype.anchor%': typeof String.prototype.anchor; '%StringPrototype.big%': typeof String.prototype.big; '%StringPrototype.blink%': typeof String.prototype.blink; '%StringPrototype.bold%': typeof String.prototype.bold; '%StringPrototype.charAt%': typeof String.prototype.charAt; '%StringPrototype.charCodeAt%': typeof String.prototype.charCodeAt; '%StringPrototype.codePointAt%': typeof String.prototype.codePointAt; '%StringPrototype.concat%': typeof String.prototype.concat; '%StringPrototype.endsWith%': typeof String.prototype.endsWith; '%StringPrototype.fontcolor%': typeof String.prototype.fontcolor; '%StringPrototype.fontsize%': typeof String.prototype.fontsize; '%StringPrototype.fixed%': typeof String.prototype.fixed; '%StringPrototype.includes%': typeof String.prototype.includes; '%StringPrototype.indexOf%': typeof String.prototype.indexOf; '%StringPrototype.italics%': typeof String.prototype.italics; '%StringPrototype.lastIndexOf%': typeof String.prototype.lastIndexOf; '%StringPrototype.link%': typeof String.prototype.link; '%StringPrototype.localeCompare%': typeof String.prototype.localeCompare; '%StringPrototype.match%': typeof String.prototype.match; '%StringPrototype.matchAll%': typeof String.prototype.matchAll; '%StringPrototype.normalize%': typeof String.prototype.normalize; '%StringPrototype.padEnd%': typeof String.prototype.padEnd; '%StringPrototype.padStart%': typeof String.prototype.padStart; '%StringPrototype.repeat%': typeof String.prototype.repeat; '%StringPrototype.replace%': typeof String.prototype.replace; '%StringPrototype.search%': typeof String.prototype.search; '%StringPrototype.slice%': typeof String.prototype.slice; '%StringPrototype.small%': typeof String.prototype.small; '%StringPrototype.split%': typeof String.prototype.split; '%StringPrototype.strike%': typeof String.prototype.strike; '%StringPrototype.sub%': typeof String.prototype.sub; '%StringPrototype.substr%': typeof String.prototype.substr; '%StringPrototype.substring%': typeof String.prototype.substring; '%StringPrototype.sup%': typeof String.prototype.sup; '%StringPrototype.startsWith%': typeof String.prototype.startsWith; '%StringPrototype.toString%': typeof String.prototype.toString; '%StringPrototype.trim%': typeof String.prototype.trim; '%StringPrototype.trimStart%': typeof String.prototype.trimStart; '%StringPrototype.trimLeft%': typeof String.prototype.trimLeft; '%StringPrototype.trimEnd%': typeof String.prototype.trimEnd; '%StringPrototype.trimRight%': typeof String.prototype.trimRight; '%StringPrototype.toLocaleLowerCase%': typeof String.prototype.toLocaleLowerCase; '%StringPrototype.toLocaleUpperCase%': typeof String.prototype.toLocaleUpperCase; '%StringPrototype.toLowerCase%': typeof String.prototype.toLowerCase; '%StringPrototype.toUpperCase%': typeof String.prototype.toUpperCase; '%StringPrototype.valueOf%': typeof String.prototype.valueOf; '%Symbol.prototype%': typeof Symbol.prototype; '%Symbol.prototype.toString%': typeof Symbol.prototype.toString; '%Symbol.prototype.valueOf%': typeof Symbol.prototype.valueOf; '%Symbol.prototype.description%': (this: symbol | Symbol) => typeof Symbol.prototype.description; '%Symbol.for%': typeof Symbol.for; '%Symbol.keyFor%': typeof Symbol.keyFor; '%Symbol.asyncIterator%': typeof Symbol.asyncIterator; '%Symbol.hasInstance%': typeof Symbol.hasInstance; '%Symbol.isConcatSpreadable%': typeof Symbol.isConcatSpreadable; '%Symbol.iterator%': typeof Symbol.iterator; '%Symbol.match%': typeof Symbol.match; '%Symbol.matchAll%': typeof Symbol.matchAll; '%Symbol.replace%': typeof Symbol.replace; '%Symbol.search%': typeof Symbol.search; '%Symbol.species%': typeof Symbol.species; '%Symbol.split%': typeof Symbol.split; '%Symbol.toPrimitive%': typeof Symbol.toPrimitive; '%Symbol.toStringTag%': typeof Symbol.toStringTag; '%Symbol.unscopables%': typeof Symbol.unscopables; '%SymbolPrototype.toString%': typeof Symbol.prototype.toString; '%SymbolPrototype.valueOf%': typeof Symbol.prototype.valueOf; '%SymbolPrototype.description%': (this: symbol | Symbol) => typeof Symbol.prototype.description; '%SyntaxError.prototype%': SyntaxError; '%SyntaxError.prototype.name%': typeof SyntaxError.prototype.name; '%SyntaxError.prototype.message%': typeof SyntaxError.prototype.message; '%SyntaxErrorPrototype.name%': typeof SyntaxError.prototype.name; '%SyntaxErrorPrototype.message%': typeof SyntaxError.prototype.message; '%TypedArray.prototype%': TypedArrayPrototype; '%TypedArray.prototype.buffer%': (this: TypedArray) => TypedArrayPrototype['buffer']; '%TypedArray.prototype.byteLength%': (this: TypedArray) => TypedArrayPrototype['byteLength']; '%TypedArray.prototype.byteOffset%': (this: TypedArray) => TypedArrayPrototype['byteOffset']; '%TypedArray.prototype.length%': (this: TypedArray) => TypedArrayPrototype['length']; '%TypedArray.prototype.entries%': TypedArrayPrototype['entries']; '%TypedArray.prototype.keys%': TypedArrayPrototype['keys']; '%TypedArray.prototype.values%': TypedArrayPrototype['values']; '%TypedArray.prototype.copyWithin%': TypedArrayPrototype['copyWithin']; '%TypedArray.prototype.every%': TypedArrayPrototype['every']; '%TypedArray.prototype.fill%': TypedArrayPrototype['fill']; '%TypedArray.prototype.filter%': TypedArrayPrototype['filter']; '%TypedArray.prototype.find%': TypedArrayPrototype['find']; '%TypedArray.prototype.findIndex%': TypedArrayPrototype['findIndex']; '%TypedArray.prototype.forEach%': TypedArrayPrototype['forEach']; '%TypedArray.prototype.includes%': TypedArrayPrototype['includes']; '%TypedArray.prototype.indexOf%': TypedArrayPrototype['indexOf']; '%TypedArray.prototype.join%': TypedArrayPrototype['join']; '%TypedArray.prototype.lastIndexOf%': TypedArrayPrototype['lastIndexOf']; '%TypedArray.prototype.map%': TypedArrayPrototype['map']; '%TypedArray.prototype.reverse%': TypedArrayPrototype['reverse']; '%TypedArray.prototype.reduce%': TypedArrayPrototype['reduce']; '%TypedArray.prototype.reduceRight%': TypedArrayPrototype['reduceRight']; '%TypedArray.prototype.set%': TypedArrayPrototype['set']; '%TypedArray.prototype.slice%': TypedArrayPrototype['slice']; '%TypedArray.prototype.some%': TypedArrayPrototype['some']; '%TypedArray.prototype.sort%': TypedArrayPrototype['sort']; '%TypedArray.prototype.subarray%': TypedArrayPrototype['subarray']; '%TypedArray.prototype.toLocaleString%': TypedArrayPrototype['toLocaleString']; '%TypedArray.prototype.toString%': TypedArrayPrototype['toString']; '%TypedArray.of%': TypedArrayConstructor['of']; '%TypedArray.from%': TypedArrayConstructor['from']; '%TypedArrayPrototype.buffer%': (this: TypedArray) => TypedArrayPrototype['buffer']; '%TypedArrayPrototype.byteLength%': (this: TypedArray) => TypedArrayPrototype['byteLength']; '%TypedArrayPrototype.byteOffset%': (this: TypedArray) => TypedArrayPrototype['byteOffset']; '%TypedArrayPrototype.length%': (this: TypedArray) => TypedArrayPrototype['length']; '%TypedArrayPrototype.entries%': TypedArrayPrototype['entries']; '%TypedArrayPrototype.keys%': TypedArrayPrototype['keys']; '%TypedArrayPrototype.values%': TypedArrayPrototype['values']; '%TypedArrayPrototype.copyWithin%': TypedArrayPrototype['copyWithin']; '%TypedArrayPrototype.every%': TypedArrayPrototype['every']; '%TypedArrayPrototype.fill%': TypedArrayPrototype['fill']; '%TypedArrayPrototype.filter%': TypedArrayPrototype['filter']; '%TypedArrayPrototype.find%': TypedArrayPrototype['find']; '%TypedArrayPrototype.findIndex%': TypedArrayPrototype['findIndex']; '%TypedArrayPrototype.forEach%': TypedArrayPrototype['forEach']; '%TypedArrayPrototype.includes%': TypedArrayPrototype['includes']; '%TypedArrayPrototype.indexOf%': TypedArrayPrototype['indexOf']; '%TypedArrayPrototype.join%': TypedArrayPrototype['join']; '%TypedArrayPrototype.lastIndexOf%': TypedArrayPrototype['lastIndexOf']; '%TypedArrayPrototype.map%': TypedArrayPrototype['map']; '%TypedArrayPrototype.reverse%': TypedArrayPrototype['reverse']; '%TypedArrayPrototype.reduce%': TypedArrayPrototype['reduce']; '%TypedArrayPrototype.reduceRight%': TypedArrayPrototype['reduceRight']; '%TypedArrayPrototype.set%': TypedArrayPrototype['set']; '%TypedArrayPrototype.slice%': TypedArrayPrototype['slice']; '%TypedArrayPrototype.some%': TypedArrayPrototype['some']; '%TypedArrayPrototype.sort%': TypedArrayPrototype['sort']; '%TypedArrayPrototype.subarray%': TypedArrayPrototype['subarray']; '%TypedArrayPrototype.toLocaleString%': TypedArrayPrototype['toLocaleString']; '%TypedArrayPrototype.toString%': TypedArrayPrototype['toString']; '%TypeError.prototype%': TypeError; '%TypeError.prototype.name%': typeof TypeError.prototype.name; '%TypeError.prototype.message%': typeof TypeError.prototype.message; '%TypeErrorPrototype.name%': typeof TypeError.prototype.name; '%TypeErrorPrototype.message%': typeof TypeError.prototype.message; '%Uint8Array.prototype%': Uint8Array; '%Uint8Array.prototype.BYTES_PER_ELEMENT%': typeof Uint8Array.prototype.BYTES_PER_ELEMENT; '%Uint8Array.BYTES_PER_ELEMENT%': typeof Uint8Array.BYTES_PER_ELEMENT; '%Uint8ArrayPrototype.BYTES_PER_ELEMENT%': typeof Uint8Array.prototype.BYTES_PER_ELEMENT; '%Uint8ClampedArray.prototype%': Uint8ClampedArray; '%Uint8ClampedArray.prototype.BYTES_PER_ELEMENT%': typeof Uint8ClampedArray.prototype.BYTES_PER_ELEMENT; '%Uint8ClampedArray.BYTES_PER_ELEMENT%': typeof Uint8ClampedArray.BYTES_PER_ELEMENT; '%Uint8ClampedArrayPrototype.BYTES_PER_ELEMENT%': typeof Uint8ClampedArray.prototype.BYTES_PER_ELEMENT; '%Uint16Array.prototype%': Uint16Array; '%Uint16Array.prototype.BYTES_PER_ELEMENT%': typeof Uint16Array.prototype.BYTES_PER_ELEMENT; '%Uint16Array.BYTES_PER_ELEMENT%': typeof Uint16Array.BYTES_PER_ELEMENT; '%Uint16ArrayPrototype.BYTES_PER_ELEMENT%': typeof Uint16Array.prototype.BYTES_PER_ELEMENT; '%Uint32Array.prototype%': Uint32Array; '%Uint32Array.prototype.BYTES_PER_ELEMENT%': typeof Uint32Array.prototype.BYTES_PER_ELEMENT; '%Uint32Array.BYTES_PER_ELEMENT%': typeof Uint32Array.BYTES_PER_ELEMENT; '%Uint32ArrayPrototype.BYTES_PER_ELEMENT%': typeof Uint32Array.prototype.BYTES_PER_ELEMENT; '%URIError.prototype%': URIError; '%URIError.prototype.name%': typeof URIError.prototype.name; '%URIError.prototype.message%': typeof URIError.prototype.message; '%URIErrorPrototype.name%': typeof URIError.prototype.name; '%URIErrorPrototype.message%': typeof URIError.prototype.message; '%WeakMap.prototype%': typeof WeakMap.prototype; '%WeakMap.prototype.delete%': typeof WeakMap.prototype.delete; '%WeakMap.prototype.get%': typeof WeakMap.prototype.get; '%WeakMap.prototype.set%': typeof WeakMap.prototype.set; '%WeakMap.prototype.has%': typeof WeakMap.prototype.has; '%WeakMapPrototype.delete%': typeof WeakMap.prototype.delete; '%WeakMapPrototype.get%': typeof WeakMap.prototype.get; '%WeakMapPrototype.set%': typeof WeakMap.prototype.set; '%WeakMapPrototype.has%': typeof WeakMap.prototype.has; '%WeakSet.prototype%': typeof WeakSet.prototype; '%WeakSet.prototype.delete%': typeof WeakSet.prototype.delete; '%WeakSet.prototype.has%': typeof WeakSet.prototype.has; '%WeakSet.prototype.add%': typeof WeakSet.prototype.add; '%WeakSetPrototype.delete%': typeof WeakSet.prototype.delete; '%WeakSetPrototype.has%': typeof WeakSet.prototype.has; '%WeakSetPrototype.add%': typeof WeakSet.prototype.add; } }
export { Query20 as default } from "../../";
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #include "standardpch.h" #include "coreclrcallbacks.h" #include "iexecutionengine.h" typedef LPVOID (__stdcall * pfnEEHeapAllocInProcessHeap)(DWORD dwFlags, SIZE_T dwBytes); typedef BOOL (__stdcall * pfnEEHeapFreeInProcessHeap)(DWORD dwFlags, LPVOID lpMem); CoreClrCallbacks *original_CoreClrCallbacks = nullptr; pfnEEHeapAllocInProcessHeap original_EEHeapAllocInProcessHeap = nullptr; pfnEEHeapFreeInProcessHeap original_EEHeapFreeInProcessHeap = nullptr; IExecutionEngine* STDMETHODCALLTYPE IEE_t() { interceptor_IEE *iee = new interceptor_IEE(); iee->original_IEE = original_CoreClrCallbacks->m_pfnIEE(); return iee; } /*#pragma warning( suppress :4996 ) //deprecated HRESULT STDMETHODCALLTYPE GetCORSystemDirectory(LPWSTR pbuffer, DWORD cchBuffer, DWORD* pdwlength) { DebugBreakorAV(131); return 0; } */ LPVOID STDMETHODCALLTYPE EEHeapAllocInProcessHeap (DWORD dwFlags, SIZE_T dwBytes) { if(original_EEHeapAllocInProcessHeap == nullptr) __debugbreak(); return original_EEHeapAllocInProcessHeap(dwFlags, dwBytes); } BOOL STDMETHODCALLTYPE EEHeapFreeInProcessHeap (DWORD dwFlags, LPVOID lpMem) { if(original_EEHeapFreeInProcessHeap == nullptr) __debugbreak(); return original_EEHeapFreeInProcessHeap(dwFlags, lpMem); } void* STDMETHODCALLTYPE GetCLRFunction(LPCSTR functionName) { if(strcmp(functionName, "EEHeapAllocInProcessHeap")==0) { original_EEHeapAllocInProcessHeap = (pfnEEHeapAllocInProcessHeap)original_CoreClrCallbacks->m_pfnGetCLRFunction("EEHeapAllocInProcessHeap"); return (void*)EEHeapAllocInProcessHeap; } if(strcmp(functionName, "EEHeapFreeInProcessHeap")==0) { original_EEHeapFreeInProcessHeap = (pfnEEHeapFreeInProcessHeap)original_CoreClrCallbacks->m_pfnGetCLRFunction("EEHeapFreeInProcessHeap"); return (void*)EEHeapFreeInProcessHeap; } return original_CoreClrCallbacks->m_pfnGetCLRFunction(functionName); }
/*! DataTables 1.10.7 * ©2008-2015 SpryMedia Ltd - datatables.net/license */ (function(Ea,Q,k){var P=function(h){function W(a){var b,c,e={};h.each(a,function(d){if((b=d.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=d.replace(b[0],b[2].toLowerCase()),e[c]=d,"o"===b[1]&&W(a[d])});a._hungarianMap=e}function H(a,b,c){a._hungarianMap||W(a);var e;h.each(b,function(d){e=a._hungarianMap[d];if(e!==k&&(c||b[e]===k))"o"===e.charAt(0)?(b[e]||(b[e]={}),h.extend(!0,b[e],b[d]),H(a[e],b[e],c)):b[e]=b[d]})}function P(a){var b=m.defaults.oLanguage,c=a.sZeroRecords; !a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&E(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&E(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&db(a)}function eb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate"); A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&H(m.models.oSearch,a[b])}function fb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;b&&!h.isArray(b)&&(a.aDataSort=[b])}function gb(a){var a=a.oBrowser,b=h("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute", top:1,left:1,width:100,overflow:"scroll"}).append(h('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),c=b.find(".test");a.bScrollOversize=100===c[0].offsetWidth;a.bScrollbarLeft=1!==Math.round(c.offset().left);b.remove()}function hb(a,b,c,e,d,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;e!==d;)a.hasOwnProperty(e)&&(g=j?b(g,a[e],e,a):a[e],j=!0,e+=f);return g}function Fa(a,b){var c=m.defaults.column,e=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:Q.createElement("th"),sTitle:c.sTitle? c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[e],mData:c.mData?c.mData:e,idx:e});a.aoColumns.push(c);c=a.aoPreSearchCols;c[e]=h.extend({},m.models.oSearch,c[e]);ka(a,e,h(b).data())}function ka(a,b,c){var b=a.aoColumns[b],e=a.oClasses,d=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=d.attr("width")||null;var f=(d.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(fb(c),H(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&& (b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),E(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),E(b,c,"aDataSort"));var g=b.mData,j=R(g),i=b.mRender?R(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b.fnGetData=function(a,b,c){var e=j(a,b,k,c);return i&&b?i(e,b,a,c):e};b.fnSetData=function(a,b,c){return S(g)(a,b,c)};"number"!==typeof g&& (a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,d.addClass(e.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=e.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=e.sSortableAsc,b.sSortingClassJUI=e.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=e.sSortableDesc,b.sSortingClassJUI=e.sSortJUIDescAllowed):(b.sSortingClass=e.sSortable,b.sSortingClassJUI=e.sSortJUI)}function X(a){if(!1!==a.oFeatures.bAutoWidth){var b= a.aoColumns;Ga(a);for(var c=0,e=b.length;c<e;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&Y(a);w(a,null,"column-sizing",[a])}function la(a,b){var c=Z(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function $(a,b){var c=Z(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function aa(a){return Z(a,"bVisible").length}function Z(a,b){var c=[];h.map(a.aoColumns,function(a,d){a[b]&&c.push(d)});return c}function Ha(a){var b=a.aoColumns,c=a.aoData,e=m.ext.type.detect,d, f,g,j,i,h,l,q,n;d=0;for(f=b.length;d<f;d++)if(l=b[d],n=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=e.length;g<j;g++){i=0;for(h=c.length;i<h;i++){n[i]===k&&(n[i]=x(a,i,d,"type"));q=e[g](n[i],a);if(!q&&g!==e.length-1)break;if("html"===q)break}if(q){l.sType=q;break}}l.sType||(l.sType="string")}}function ib(a,b,c,e){var d,f,g,j,i,o,l=a.aoColumns;if(b)for(d=b.length-1;0<=d;d--){o=b[d];var q=o.targets!==k?o.targets:o.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f< g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Fa(a);e(q[f],o)}else if("number"===typeof q[f]&&0>q[f])e(l.length+q[f],o);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&e(j,o)}}if(c){d=0;for(a=c.length;d<a;d++)e(d,c[d])}}function K(a,b,c,e){var d=a.aoData.length,f=h.extend(!0,{},m.models.oRow,{src:c?"dom":"data"});f._aData=b;a.aoData.push(f);for(var b=a.aoColumns,f=0,g=b.length;f<g;f++)c&&Ia(a,d,f,x(a,d,f)),b[f].sType=null;a.aiDisplayMaster.push(d); (c||!a.oFeatures.bDeferRender)&&Ja(a,d,c,e);return d}function ma(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,d){c=na(a,d);return K(a,c.data,d,c.cells)})}function x(a,b,c,e){var d=a.iDraw,f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,c=f.fnGetData(g,e,{settings:a,row:b,col:c});if(c===k)return a.iDrawError!=d&&null===j&&(I(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b,4),a.iDrawError=d),j;if((c===g||null===c)&& null!==j)c=j;else if("function"===typeof c)return c.call(g);return null===c&&"display"==e?"":c}function Ia(a,b,c,e){a.aoColumns[c].fnSetData(a.aoData[b]._aData,e,{settings:a,row:b,col:c})}function Ka(a){return h.map(a.match(/(\\.|[^\.])+/g),function(a){return a.replace(/\\./g,".")})}function R(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=R(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b, c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=Ka(f);for(var i=0,h=j.length;i<h;i++){f=j[i].match(ba);g=j[i].match(T);if(f){j[i]=j[i].replace(ba,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");i=0;for(h=a.length;i<h;i++)g.push(c(a[i],b,j));a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(T,"");a=a[j[i]]();continue}if(null===a||a[j[i]]=== k)return k;a=a[j[i]]}}return a};return function(b,d){return c(b,d,a)}}return function(b){return b[a]}}function S(a){if(h.isPlainObject(a))return S(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,e,d){a(b,"set",e,d)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,e,d){var d=Ka(d),f;f=d[d.length-1];for(var g,j,i=0,h=d.length-1;i<h;i++){g=d[i].match(ba);j=d[i].match(T);if(g){d[i]=d[i].replace(ba,"");a[d[i]]=[]; f=d.slice();f.splice(0,i+1);g=f.join(".");j=0;for(h=e.length;j<h;j++)f={},b(f,e[j],g),a[d[i]].push(f);return}j&&(d[i]=d[i].replace(T,""),a=a[d[i]](e));if(null===a[d[i]]||a[d[i]]===k)a[d[i]]={};a=a[d[i]]}if(f.match(T))a[f.replace(T,"")](e);else a[f.replace(ba,"")]=e};return function(c,e){return b(c,e,a)}}return function(b,e){b[a]=e}}function La(a){return D(a.aoData,"_aData")}function oa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0}function pa(a,b,c){for(var e=-1,d=0,f=a.length;d< f;d++)a[d]==b?e=d:a[d]>b&&a[d]--; -1!=e&&c===k&&a.splice(e,1)}function ca(a,b,c,e){var d=a.aoData[b],f,g=function(c,f){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=x(a,b,f,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===d.src)d._aData=na(a,d,e,e===k?k:d._aData).data;else{var j=d.anCells;if(j)if(e!==k)g(j[e],e);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}d._aSortData=null;d._aFilterData=null;g=a.aoColumns;if(e!==k)g[e].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null; Ma(d)}}function na(a,b,c,e){var d=[],f=b.firstChild,g,j=0,i,o=a.aoColumns,l=a._rowReadObject,e=e||l?{}:[],q=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),S(a)(e,b.getAttribute(c)))}},a=function(a){if(c===k||c===j)g=o[j],i=h.trim(a.innerHTML),g&&g._bAttrSrc?(S(g.mData._)(e,i),q(g.mData.sort,a),q(g.mData.type,a),q(g.mData.filter,a)):l?(g._setter||(g._setter=S(g.mData)),g._setter(e,i)):e[j]=i;j++};if(f)for(;f;){b=f.nodeName.toUpperCase();if("TD"==b||"TH"==b)a(f), d.push(f);f=f.nextSibling}else{d=b.anCells;f=0;for(b=d.length;f<b;f++)a(d[f])}return{data:e,cells:d}}function Ja(a,b,c,e){var d=a.aoData[b],f=d._aData,g=[],j,i,h,l,q;if(null===d.nTr){j=c||Q.createElement("tr");d.nTr=j;d.anCells=g;j._DT_RowIndex=b;Ma(d);l=0;for(q=a.aoColumns.length;l<q;l++){h=a.aoColumns[l];i=c?e[l]:Q.createElement(h.sCellType);g.push(i);if(!c||h.mRender||h.mData!==l)i.innerHTML=x(a,b,l,"display");h.sClass&&(i.className+=" "+h.sClass);h.bVisible&&!c?j.appendChild(i):!h.bVisible&&c&& i.parentNode.removeChild(i);h.fnCreatedCell&&h.fnCreatedCell.call(a.oInstance,i,x(a,b,l),f,b,l)}w(a,"aoRowCreatedCallback",null,[j,f,b])}d.nTr.setAttribute("role","row")}function Ma(a){var b=a.nTr,c=a._aData;if(b){c.DT_RowId&&(b.id=c.DT_RowId);if(c.DT_RowClass){var e=c.DT_RowClass.split(" ");a.__rowc=a.__rowc?Na(a.__rowc.concat(e)):e;h(b).removeClass(a.__rowc.join(" ")).addClass(c.DT_RowClass)}c.DT_RowAttr&&h(b).attr(c.DT_RowAttr);c.DT_RowData&&h(b).data(c.DT_RowData)}}function jb(a){var b,c,e,d, f,g=a.nTHead,j=a.nTFoot,i=0===h("th, td",g).length,o=a.oClasses,l=a.aoColumns;i&&(d=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],e=h(f.nTh).addClass(f.sClass),i&&e.appendTo(d),a.oFeatures.bSort&&(e.addClass(f.sSortingClass),!1!==f.bSortable&&(e.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Oa(a,f.nTh,b))),f.sTitle!=e.html()&&e.html(f.sTitle),Pa(a,"header")(a,e,f,o);i&&da(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(o.sHeaderTH); h(j).find(">tr>th, >tr>td").addClass(o.sFooterTH);if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function ea(a,b,c){var e,d,f,g=[],j=[],i=a.aoColumns.length,o;if(b){c===k&&(c=!1);e=0;for(d=b.length;e<d;e++){g[e]=b[e].slice();g[e].nTr=b[e].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[e].splice(f,1);j.push([])}e=0;for(d=g.length;e<d;e++){if(a=g[e].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[e].length;f<b;f++)if(o= i=1,j[e][f]===k){a.appendChild(g[e][f].cell);for(j[e][f]=1;g[e+i]!==k&&g[e][f].cell==g[e+i][f].cell;)j[e+i][f]=1,i++;for(;g[e][f+o]!==k&&g[e][f].cell==g[e][f+o].cell;){for(c=0;c<i;c++)j[e+c][f+o]=1;o++}h(g[e][f].cell).attr("rowspan",i).attr("colspan",o)}}}}function M(a){var b=w(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,e=a.asStripeClasses,d=e.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==B(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart= j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);var g=a._iDisplayStart,o=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!kb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:o;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ja(a,l);l=q.nTr;if(0!==d){var n=e[c%d];q._sRowStripe!=n&&(h(l).removeClass(q._sRowStripe).addClass(n),q._sRowStripe=n)}w(a,"aoRowCallback",null,[l,q._aData,c,j]);b.push(l);c++}}else c=f.sZeroRecords, 1==a.iDraw&&"ajax"==B(a)?c=f.sLoadingRecords:f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":d?e[0]:""}).append(h("<td />",{valign:"top",colSpan:aa(a),"class":a.oClasses.sRowEmpty}).html(c))[0];w(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],La(a),g,o,i]);w(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],La(a),g,o,i]);e=h(a.nTBody);e.children().detach();e.append(h(b));w(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing= !1}}function N(a,b){var c=a.oFeatures,e=c.bFilter;c.bSort&&lb(a);e?fa(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;M(a);a._drawHold=!1}function mb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),e=a.oFeatures,d=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=d[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,o,l,q,n=0;n<f.length;n++){g= null;j=f[n];if("<"==j){i=h("<div/>")[0];o=f[n+1];if("'"==o||'"'==o){l="";for(q=2;f[n+q]!=o;)l+=f[n+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(o=l.split("."),i.id=o[0].substr(1,o[0].length-1),i.className=o[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;n+=q}d.append(i);d=h(i)}else if(">"==j)d=d.parent();else if("l"==j&&e.bPaginate&&e.bLengthChange)g=nb(a);else if("f"==j&&e.bFilter)g=ob(a);else if("r"==j&&e.bProcessing)g=pb(a);else if("t"==j)g=qb(a);else if("i"== j&&e.bInfo)g=rb(a);else if("p"==j&&e.bPaginate)g=sb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(o=i.length;q<o;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),d.append(g))}c.replaceWith(d)}function da(a,b){var c=h(b).children("tr"),e,d,f,g,j,i,o,l,q,n;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){e=c[f];for(d=e.firstChild;d;){if("TD"==d.nodeName.toUpperCase()||"TH"==d.nodeName.toUpperCase()){l= 1*d.getAttribute("colspan");q=1*d.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;o=g;n=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][o+j]={cell:d,unique:n},a[f+g].nTr=e}d=d.nextSibling}}}function qa(a,b,c){var e=[];c||(c=a.aoHeader,b&&(c=[],da(c,b)));for(var b=0,d=c.length;b<d;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!e[f]||!a.bSortCellsTop))e[f]=c[b][f].cell;return e}function ra(a,b,c){w(a,"aoServerParams","serverParams",[b]); if(b&&h.isArray(b)){var e={},d=/(.*?)\[\]$/;h.each(b,function(a,b){var c=b.name.match(d);c?(c=c[0],e[c]||(e[c]=[]),e[c].push(b.value)):e[b.name]=b.value});b=e}var f,g=a.ajax,j=a.oInstance,i=function(b){w(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var o=h.isFunction(f)?f(b,a):f,b=h.isFunction(f)&&o?o:h.extend(!0,b,o);delete g.data}o={data:b,success:function(b){var c=b.error||b.sError;c&&I(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b, c){var f=w(a,null,"xhr",[a,null,a.jqXHR]);-1===h.inArray(!0,f)&&("parsererror"==c?I(a,0,"Invalid JSON response",1):4===b.readyState&&I(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;w(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(o,{url:g||a.sAjaxSource})):h.isFunction(g)?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(o,g)),g.data=f)}function kb(a){return a.bAjaxDataGet? (a.iDraw++,C(a,!0),ra(a,tb(a),function(b){ub(a,b)}),!1):!0}function tb(a){var b=a.aoColumns,c=b.length,e=a.oFeatures,d=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,o,l,q=U(a);g=a._iDisplayStart;i=!1!==e.bPaginate?a._iDisplayLength:-1;var n=function(a,b){j.push({name:a,value:b})};n("sEcho",a.iDraw);n("iColumns",c);n("sColumns",D(b,"sName").join(","));n("iDisplayStart",g);n("iDisplayLength",i);var k={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:d.sSearch,regex:d.bRegex}};for(g= 0;g<c;g++)o=b[g],l=f[g],i="function"==typeof o.mData?"function":o.mData,k.columns.push({data:i,name:o.sName,searchable:o.bSearchable,orderable:o.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),n("mDataProp_"+g,i),e.bFilter&&(n("sSearch_"+g,l.sSearch),n("bRegex_"+g,l.bRegex),n("bSearchable_"+g,o.bSearchable)),e.bSort&&n("bSortable_"+g,o.bSortable);e.bFilter&&(n("sSearch",d.sSearch),n("bRegex",d.bRegex));e.bSort&&(h.each(q,function(a,b){k.order.push({column:b.col,dir:b.dir});n("iSortCol_"+a,b.col); n("sSortDir_"+a,b.dir)}),n("iSortingCols",q.length));b=m.ext.legacy.ajax;return null===b?a.sAjaxSource?j:k:b?j:k}function ub(a,b){var c=sa(a,b),e=b.sEcho!==k?b.sEcho:b.draw,d=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(e){if(1*e<a.iDraw)return;a.iDraw=1*e}oa(a);a._iRecordsTotal=parseInt(d,10);a._iRecordsDisplay=parseInt(f,10);e=0;for(d=c.length;e<d;e++)K(a,c[e]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1; M(a);a._bInitComplete||ta(a,b);a.bAjaxDataGet=!0;C(a,!1)}function sa(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?R(c)(b):b}function ob(a){var b=a.oClasses,c=a.sTableId,e=a.oLanguage,d=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=e.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)), f=function(){var b=!this.value?"":this.value;b!=d.sSearch&&(fa(a,{sSearch:b,bRegex:d.bRegex,bSmart:d.bSmart,bCaseInsensitive:d.bCaseInsensitive}),a._iDisplayStart=0,M(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===B(a)?400:0,i=h("input",b).val(d.sSearch).attr("placeholder",e.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",g?ua(f,g):f).bind("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!== Q.activeElement&&i.val(d.sSearch)}catch(f){}});return b[0]}function fa(a,b,c){var e=a.oPreviousSearch,d=a.aoPreSearchCols,f=function(a){e.sSearch=a.sSearch;e.bRegex=a.bRegex;e.bSmart=a.bSmart;e.bCaseInsensitive=a.bCaseInsensitive};Ha(a);if("ssp"!=B(a)){vb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<d.length;b++)wb(a,d[b].sSearch,b,d[b].bEscapeRegex!==k?!d[b].bEscapeRegex:d[b].bRegex,d[b].bSmart,d[b].bCaseInsensitive);xb(a)}else f(b);a.bFiltered= !0;w(a,null,"search",[a])}function xb(a){for(var b=m.ext.search,c=a.aiDisplay,e,d,f=0,g=b.length;f<g;f++){for(var j=[],i=0,h=c.length;i<h;i++)d=c[i],e=a.aoData[d],b[f](a,e._aFilterData,d,e._aData,i)&&j.push(d);c.length=0;c.push.apply(c,j)}}function wb(a,b,c,e,d,f){if(""!==b)for(var g=a.aiDisplay,e=Qa(b,e,d,f),d=g.length-1;0<=d;d--)b=a.aoData[g[d]]._aFilterData[c],e.test(b)||g.splice(d,1)}function vb(a,b,c,e,d,f){var e=Qa(b,e,d,f),d=a.oPreviousSearch.sSearch,f=a.aiDisplayMaster,g;0!==m.ext.search.length&& (c=!0);g=yb(a);if(0>=b.length)a.aiDisplay=f.slice();else{if(g||c||d.length>b.length||0!==b.indexOf(d)||a.bSorted)a.aiDisplay=f.slice();b=a.aiDisplay;for(c=b.length-1;0<=c;c--)e.test(a.aoData[b[c]]._sFilterRow)||b.splice(c,1)}}function Qa(a,b,c,e){a=b?a:va(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,e?"i":"")}function va(a){return a.replace(Yb,"\\$1")} function yb(a){var b=a.aoColumns,c,e,d,f,g,j,i,h,l=m.ext.type.search;c=!1;e=0;for(f=a.aoData.length;e<f;e++)if(h=a.aoData[e],!h._aFilterData){j=[];d=0;for(g=b.length;d<g;d++)c=b[d],c.bSearchable?(i=x(a,e,d,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(wa.innerHTML=i,i=Zb?wa.textContent:wa.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join(" ");c=!0}return c} function zb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Ab(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function rb(a){var b=a.sTableId,c=a.aanFeatures.i,e=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Bb,sName:"information"}),e.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return e[0]}function Bb(a){var b= a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,e=a._iDisplayStart+1,d=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Cb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,e,d,f,g,j));h(b).html(j)}}function Cb(a,b){var c=a.fnFormatNumber,e=a._iDisplayStart+1,d=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===d;return b.replace(/_START_/g,c.call(a,e)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g, c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(e/d))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/d)))}function ga(a){var b,c,e=a.iInitDisplayStart,d=a.aoColumns,f;c=a.oFeatures;if(a.bInitialised){mb(a);jb(a);ea(a,a.aoHeader);ea(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ga(a);b=0;for(c=d.length;b<c;b++)f=d[b],f.sWidth&&(f.nTh.style.width=s(f.sWidth));N(a);d=B(a);"ssp"!=d&&("ajax"==d?ra(a,[],function(c){var f=sa(a,c);for(b=0;b<f.length;b++)K(a,f[b]); a.iInitDisplayStart=e;N(a);C(a,!1);ta(a,c)},a):(C(a,!1),ta(a)))}else setTimeout(function(){ga(a)},200)}function ta(a,b){a._bInitComplete=!0;b&&X(a);w(a,"aoInitComplete","init",[a,b])}function Ra(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Sa(a);w(a,null,"length",[a,c])}function nb(a){for(var b=a.oClasses,c=a.sTableId,e=a.aLengthMenu,d=h.isArray(e[0]),f=d?e[0]:e,e=d?e[1]:e,d=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g<j;g++)d[0][g]=new Option(e[g], f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",d[0].outerHTML));h("select",i).val(a._iDisplayLength).bind("change.DT",function(){Ra(a,h(this).val());M(a)});h(a.nTable).bind("length.dt.DT",function(b,c,f){a===c&&h("select",i).val(f)});return i[0]}function sb(a){var b=a.sPaginationType,c=m.ext.pager[b],e="function"===typeof c,d=function(a){M(a)},b=h("<div/>").addClass(a.oClasses.sPaging+b)[0], f=a.aanFeatures;e||c.fnInit(a,b,d);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(e){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),q,l=0;for(q=f.p.length;l<q;l++)Pa(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,d)},sName:"pagination"}));return b}function Ta(a,b,c){var e=a._iDisplayStart,d=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===d?e=0:"number"===typeof b?(e=b*d,e>f&&(e=0)): "first"==b?e=0:"previous"==b?(e=0<=d?e-d:0,0>e&&(e=0)):"next"==b?e+d<f&&(e+=d):"last"==b?e=Math.floor((f-1)/d)*d:I(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==e;a._iDisplayStart=e;b&&(w(a,null,"page",[a]),c&&M(a));return b}function pb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none");w(a, null,"processing",[a,b])}function qb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var e=c.sX,d=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),o=h(b[0].cloneNode(!1)),l=b.children("tfoot");c.sX&&"100%"===b.attr("width")&&b.removeAttr("width");l.length||(l=null);c=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0, width:e?!e?null:s(e):"100%"}).append(h("<div/>",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({overflow:"auto",height:!d?null:s(d),width:!e?null:s(e)}).append(b));l&&c.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:e?!e?null:s(e):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(o.removeAttr("id").css("margin-left", 0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=c.children(),q=b[0],f=b[1],n=l?b[2]:null;if(e)h(f).on("scroll.DT",function(){var a=this.scrollLeft;q.scrollLeft=a;l&&(n.scrollLeft=a)});a.nScrollHead=q;a.nScrollBody=f;a.nScrollFoot=n;a.aoDrawCallback.push({fn:Y,sName:"scrolling"});return c[0]}function Y(a){var b=a.oScroll,c=b.sX,e=b.sXInner,d=b.sY,f=b.iBarWidth,g=h(a.nScrollHead),j=g[0].style,i=g.children("div"),o=i[0].style,l=i.children("table"),i=a.nScrollBody,q=h(i),n=i.style, k=h(a.nScrollFoot).children("div"),p=k.children("table"),m=h(a.nTHead),r=h(a.nTable),t=r[0],O=t.style,L=a.nTFoot?h(a.nTFoot):null,ha=a.oBrowser,w=ha.bScrollOversize,v,u,y,x,z,A=[],B=[],C=[],D,E=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};r.children("thead, tfoot").remove();z=m.clone().prependTo(r);v=m.find("tr");y=z.find("tr");z.find("th, td").removeAttr("tabindex");L&&(x=L.clone().prependTo(r),u=L.find("tr"),x=x.find("tr")); c||(n.width="100%",g[0].style.width="100%");h.each(qa(a,z),function(b,c){D=la(a,b);c.style.width=a.aoColumns[D].sWidth});L&&G(function(a){a.style.width=""},x);b.bCollapse&&""!==d&&(n.height=q[0].offsetHeight+m[0].offsetHeight+"px");g=r.outerWidth();if(""===c){if(O.width="100%",w&&(r.find("tbody").height()>i.offsetHeight||"scroll"==q.css("overflow-y")))O.width=s(r.outerWidth()-f)}else""!==e?O.width=s(e):g==q.width()&&q.height()<r.height()?(O.width=s(g-f),r.outerWidth()>g-f&&(O.width=s(g))):O.width= s(g);g=r.outerWidth();G(E,y);G(function(a){C.push(a.innerHTML);A.push(s(h(a).css("width")))},y);G(function(a,b){a.style.width=A[b]},v);h(y).height(0);L&&(G(E,x),G(function(a){B.push(s(h(a).css("width")))},x),G(function(a,b){a.style.width=B[b]},u),h(x).height(0));G(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+C[b]+"</div>";a.style.width=A[b]},y);L&&G(function(a,b){a.innerHTML="";a.style.width=B[b]},x);if(r.outerWidth()<g){u=i.scrollHeight>i.offsetHeight|| "scroll"==q.css("overflow-y")?g+f:g;if(w&&(i.scrollHeight>i.offsetHeight||"scroll"==q.css("overflow-y")))O.width=s(u-f);(""===c||""!==e)&&I(a,1,"Possible column misalignment",6)}else u="100%";n.width=s(u);j.width=s(u);L&&(a.nScrollFoot.style.width=s(u));!d&&w&&(n.height=s(t.offsetHeight+f));d&&b.bCollapse&&(n.height=s(d),b=c&&t.offsetWidth>i.offsetWidth?f:0,t.offsetHeight<i.offsetHeight&&(n.height=s(t.offsetHeight+b)));b=r.outerWidth();l[0].style.width=s(b);o.width=s(b);l=r.height()>i.clientHeight|| "scroll"==q.css("overflow-y");ha="padding"+(ha.bScrollbarLeft?"Left":"Right");o[ha]=l?f+"px":"0px";L&&(p[0].style.width=s(b),k[0].style.width=s(b),k[0].style[ha]=l?f+"px":"0px");q.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)i.scrollTop=0}function G(a,b,c){for(var e=0,d=0,f=b.length,g,j;d<f;){g=b[d].firstChild;for(j=c?c[d].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,e):a(g,e),e++),g=g.nextSibling,j=c?j.nextSibling:null;d++}}function Ga(a){var b=a.nTable,c=a.aoColumns,e=a.oScroll,d=e.sY,f=e.sX, g=e.sXInner,j=c.length,e=Z(a,"bVisible"),i=h("th",a.nTHead),o=b.getAttribute("width"),l=b.parentNode,k=!1,n,m;(n=b.style.width)&&-1!==n.indexOf("%")&&(o=n);for(n=0;n<e.length;n++)m=c[e[n]],null!==m.sWidth&&(m.sWidth=Db(m.sWidthOrig,l),k=!0);if(!k&&!f&&!d&&j==aa(a)&&j==i.length)for(n=0;n<j;n++)c[n].sWidth=s(i.eq(n).width());else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var p=h("<tr/>").appendTo(j.find("tbody"));j.find("tfoot th, tfoot td").css("width", "");i=qa(a,j.find("thead")[0]);for(n=0;n<e.length;n++)m=c[e[n]],i[n].style.width=null!==m.sWidthOrig&&""!==m.sWidthOrig?s(m.sWidthOrig):"";if(a.aoData.length)for(n=0;n<e.length;n++)k=e[n],m=c[k],h(Eb(a,k)).clone(!1).append(m.sContentPadding).appendTo(p);j.appendTo(l);f&&g?j.width(g):f?(j.css("width","auto"),j.width()<l.offsetWidth&&j.width(l.offsetWidth)):d?j.width(l.offsetWidth):o&&j.width(o);Fb(a,j[0]);if(f){for(n=g=0;n<e.length;n++)m=c[e[n]],d=h(i[n]).outerWidth(),g+=null===m.sWidthOrig?d:parseInt(m.sWidth, 10)+d-h(i[n]).width();j.width(s(g));b.style.width=s(g)}for(n=0;n<e.length;n++)if(m=c[e[n]],d=h(i[n]).width())m.sWidth=s(d);b.style.width=s(j.css("width"));j.remove()}o&&(b.style.width=s(o));if((o||f)&&!a._reszEvt)b=function(){h(Ea).bind("resize.DT-"+a.sInstance,ua(function(){X(a)}))},a.oBrowser.bScrollOversize?setTimeout(b,1E3):b(),a._reszEvt=!0}function ua(a,b){var c=b!==k?b:200,e,d;return function(){var b=this,g=+new Date,j=arguments;e&&g<e+c?(clearTimeout(d),d=setTimeout(function(){e=k;a.apply(b, j)},c)):(e=g,a.apply(b,j))}}function Db(a,b){if(!a)return 0;var c=h("<div/>").css("width",s(a)).appendTo(b||Q.body),e=c[0].offsetWidth;c.remove();return e}function Fb(a,b){var c=a.oScroll;if(c.sX||c.sY)c=!c.sX?c.iBarWidth:0,b.style.width=s(h(b).outerWidth()-c)}function Eb(a,b){var c=Gb(a,b);if(0>c)return null;var e=a.aoData[c];return!e.nTr?h("<td/>").html(x(a,c,b,"display"))[0]:e.anCells[b]}function Gb(a,b){for(var c,e=-1,d=-1,f=0,g=a.aoData.length;f<g;f++)c=x(a,f,b,"display")+"",c=c.replace($b,""), c.length>e&&(e=c.length,d=f);return d}function s(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function Hb(){var a=m.__scrollbarWidth;if(a===k){var b=h("<p/>").css({position:"absolute",top:0,left:0,width:"100%",height:150,padding:0,overflow:"scroll",visibility:"hidden"}).appendTo("body"),a=b[0].offsetWidth-b[0].clientWidth;m.__scrollbarWidth=a;b.remove()}return a}function U(a){var b,c,e=[],d=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var o=[]; f=function(a){a.length&&!h.isArray(a[0])?o.push(a):o.push.apply(o,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<o.length;a++){i=o[a][0];f=d[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=d[g].sType||"string",o[a]._idx===k&&(o[a]._idx=h.inArray(o[a][1],d[g].asSorting)),e.push({src:i,col:g,dir:o[a][1],index:o[a]._idx,type:j,formatter:m.ext.type.order[j+"-pre"]})}return e}function lb(a){var b,c,e=[],d=m.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h; Ha(a);h=U(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Ib(a,j.col);if("ssp"!=B(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)e[i[b]]=b;g===h.length?i.sort(function(a,b){var c,d,g,j,i=h.length,k=f[a]._aSortData,m=f[b]._aSortData;for(g=0;g<i;g++)if(j=h[g],c=k[j.col],d=m[j.col],c=c<d?-1:c>d?1:0,0!==c)return"asc"===j.dir?c:-c;c=e[a];d=e[b];return c<d?-1:c>d?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,r=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=m[i.col],g=r[i.col],i=d[i.type+ "-"+i.dir]||d["string-"+i.dir],c=i(c,g),0!==c)return c;c=e[a];g=e[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Jb(a){for(var b,c,e=a.aoColumns,d=U(a),a=a.oLanguage.oAria,f=0,g=e.length;f<g;f++){c=e[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<d.length&&d[0].col==f?(i.setAttribute("aria-sort","asc"==d[0].dir?"ascending":"descending"),c=j[d[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label", b)}}function Ua(a,b,c,e){var d=a.aaSorting,f=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof d[0]&&(d=a.aaSorting=[d]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,D(d,"0")),-1!==c?(b=g(d[c],!0),null===b&&1===d.length&&(b=0),null===b?d.splice(c,1):(d[c][1]=f[b],d[c]._idx=b)):(d.push([b,f[0],0]),d[d.length-1]._idx=0)):d.length&&d[0][0]==b?(b=g(d[0]),d.length=1,d[0][1]=f[b],d[0]._idx=b):(d.length=0,d.push([b,f[0]]),d[0]._idx= 0);N(a);"function"==typeof e&&e(a)}function Oa(a,b,c,e){var d=a.aoColumns[c];Va(b,{},function(b){!1!==d.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Ua(a,c,b.shiftKey,e);"ssp"!==B(a)&&C(a,!1)},0)):Ua(a,c,b.shiftKey,e))})}function xa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,e=U(a),d=a.oFeatures,f,g;if(d.bSort&&d.bSortClasses){d=0;for(f=b.length;d<f;d++)g=b[d].src,h(D(a.aoData,"anCells",g)).removeClass(c+(2>d?d+1:3));d=0;for(f=e.length;d<f;d++)g=e[d].src,h(D(a.aoData,"anCells", g)).addClass(c+(2>d?d+1:3))}a.aLastSort=e}function Ib(a,b){var c=a.aoColumns[b],e=m.ext.order[c.sSortDataType],d;e&&(d=e.call(a.oInstance,a,b,$(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||e)f=e?d[j]:x(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function ya(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting), search:zb(a.oPreviousSearch),columns:h.map(a.aoColumns,function(b,e){return{visible:b.bVisible,search:zb(a.aoPreSearchCols[e])}})};w(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Kb(a){var b,c,e=a.aoColumns;if(a.oFeatures.bStateSave){var d=a.fnStateLoadCallback.call(a.oInstance,a);if(d&&d.time&&(b=w(a,"aoStateLoadParams","stateLoadParams",[a,d]),-1===h.inArray(!1,b)&&(b=a.iStateDuration,!(0<b&&d.time<+new Date-1E3*b)&&e.length=== d.columns.length))){a.oLoadedState=h.extend(!0,{},d);d.start!==k&&(a._iDisplayStart=d.start,a.iInitDisplayStart=d.start);d.length!==k&&(a._iDisplayLength=d.length);d.order!==k&&(a.aaSorting=[],h.each(d.order,function(b,c){a.aaSorting.push(c[0]>=e.length?[0,c[1]]:c)}));d.search!==k&&h.extend(a.oPreviousSearch,Ab(d.search));b=0;for(c=d.columns.length;b<c;b++){var f=d.columns[b];f.visible!==k&&(e[b].bVisible=f.visible);f.search!==k&&h.extend(a.aoPreSearchCols[b],Ab(f.search))}w(a,"aoStateLoaded","stateLoaded", [a,d])}}}function za(a){var b=m.settings,a=h.inArray(a,D(b,"nTable"));return-1!==a?b[a]:null}function I(a,b,c,e){c="DataTables warning: "+(null!==a?"table id="+a.sTableId+" - ":"")+c;e&&(c+=". For more information about this error, please see http://datatables.net/tn/"+e);if(b)Ea.console&&console.log&&console.log(c);else if(b=m.ext,b=b.sErrMode||b.errMode,w(a,null,"error",[a,e,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,e,c)}}function E(a,b,c,e){h.isArray(c)? h.each(c,function(c,f){h.isArray(f)?E(a,b,f[0],f[1]):E(a,b,f)}):(e===k&&(e=c),b[c]!==k&&(a[e]=b[c]))}function Lb(a,b,c){var e,d;for(d in b)b.hasOwnProperty(d)&&(e=b[d],h.isPlainObject(e)?(h.isPlainObject(a[d])||(a[d]={}),h.extend(!0,a[d],e)):a[d]=c&&"data"!==d&&"aaData"!==d&&h.isArray(e)?e.slice():e);return a}function Va(a,b,c){h(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).bind("selectstart.DT",function(){return!1})}function z(a, b,c,e){c&&a[b].push({fn:c,sName:e})}function w(a,b,c,e){var d=[];b&&(d=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,e)}));null!==c&&(b=h.Event(c+".dt"),h(a.nTable).trigger(b,e),d.push(b.result));return d}function Sa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),e=a._iDisplayLength;b>=c&&(b=c-e);b-=b%e;if(-1===e||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,e=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?e[c[b]]||e._:"string"===typeof c?e[c]||e._:e._}function B(a){return a.oFeatures.bServerSide? "ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Wa(a,b){var c=[],c=Mb.numbers_length,e=Math.floor(c/2);b<=c?c=V(0,b):a<=e?(c=V(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-e?c=V(b-(c-2),b):(c=V(a-e+2,a+e-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function db(a){h.each({num:function(b){return Aa(b,a)},"num-fmt":function(b){return Aa(b,a,Xa)},"html-num":function(b){return Aa(b,a,Ba)},"html-num-fmt":function(b){return Aa(b,a,Ba,Xa)}},function(b, c){u.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(u.type.search[b+a]=u.type.search.html)})}function Nb(a){return function(){var b=[za(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m,u,t,r,v,Ya={},Ob=/[\r\n]/g,Ba=/<.*?>/g,ac=/^[\w\+\-]/,bc=/[\w\+\-]$/,Yb=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Xa=/[',$\u00a3\u20ac\u00a5%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,J=function(a){return!a||!0===a|| "-"===a?!0:!1},Pb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Qb=function(a,b){Ya[b]||(Ya[b]=RegExp(va(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Ya[b],"."):a},Za=function(a,b,c){var e="string"===typeof a;if(J(a))return!0;b&&e&&(a=Qb(a,b));c&&e&&(a=a.replace(Xa,""));return!isNaN(parseFloat(a))&&isFinite(a)},Rb=function(a,b,c){return J(a)?!0:!(J(a)||"string"===typeof a)?null:Za(a.replace(Ba,""),b,c)?!0:null},D=function(a,b,c){var e=[],d=0,f=a.length; if(c!==k)for(;d<f;d++)a[d]&&a[d][b]&&e.push(a[d][b][c]);else for(;d<f;d++)a[d]&&e.push(a[d][b]);return e},ia=function(a,b,c,e){var d=[],f=0,g=b.length;if(e!==k)for(;f<g;f++)a[b[f]][c]&&d.push(a[b[f]][c][e]);else for(;f<g;f++)d.push(a[b[f]][c]);return d},V=function(a,b){var c=[],e;b===k?(b=0,e=a):(e=b,b=a);for(var d=b;d<e;d++)c.push(d);return c},Sb=function(a){for(var b=[],c=0,e=a.length;c<e;c++)a[c]&&b.push(a[c]);return b},Na=function(a){var b=[],c,e,d=a.length,f,g=0;e=0;a:for(;e<d;e++){c=a[e];for(f= 0;f<g;f++)if(b[f]===c)continue a;b.push(c);g++}return b},A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ba=/\[.*?\]$/,T=/\(\)$/,wa=h("<div>")[0],Zb=wa.textContent!==k,$b=/<.*?>/g;m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new t(za(this[u.iApiIndex])):new t(this)};this.fnAddData=function(a,b){var c=this.api(!0),e=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b=== k||b)&&c.draw();return e.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],e=c.oScroll;a===k||a?b.draw(!1):(""!==e.sX||""!==e.sY)&&Y(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var e=this.api(!0),a=e.rows(a),d=a.settings()[0],h=d.aoData[a[0][0]];a.remove();b&&b.call(this,d,h);(c===k||c)&&e.draw();return h}; this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,e,d,h){d=this.api(!0);null===b||b===k?d.search(a,c,e,h):d.column(b).search(a,c,e,h);d.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var e=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==e||"th"==e?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()}; this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c=== k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return za(this[u.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,e,d){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(d===k||d)&&h.columns.adjust();(e===k||e)&&h.draw();return 0};this.fnVersionCheck=u.fnVersionCheck;var b=this,c=a===k,e=this.length;c&&(a={});this.oApi=this.internal=u.internal;for(var d in m.ext.internal)d&& (this[d]=Nb(d));this.each(function(){var d={},d=1<e?Lb(d,a,!0):a,g=0,j,i=this.getAttribute("id"),o=!1,l=m.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())I(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(l);fb(l.column);H(l,l,!0);H(l.column,l.column,!0);H(l,h.extend(d,q.data()));var n=m.settings,g=0;for(j=n.length;g<j;g++){var r=n[g];if(r.nTable==this||r.nTHead.parentNode==this||r.nTFoot&&r.nTFoot.parentNode==this){g=d.bRetrieve!==k?d.bRetrieve:l.bRetrieve;if(c||g)return r.oInstance; if(d.bDestroy!==k?d.bDestroy:l.bDestroy){r.oInstance.fnDestroy();break}else{I(r,0,"Cannot reinitialise DataTable",3);return}}if(r.sTableId==this.id){n.splice(g,1);break}}if(null===i||""===i)this.id=i="DataTables_Table_"+m.ext._unique++;var p=h.extend(!0,{},m.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:i,sTableId:i});p.nTable=this;p.oApi=b.internal;p.oInit=d;n.push(p);p.oInstance=1===b.length?b:q.dataTable();eb(d);d.oLanguage&&P(d.oLanguage);d.aLengthMenu&&!d.iDisplayLength&&(d.iDisplayLength= h.isArray(d.aLengthMenu[0])?d.aLengthMenu[0][0]:d.aLengthMenu[0]);d=Lb(h.extend(!0,{},l),d);E(p.oFeatures,d,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));E(p,d,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback", "renderer","searchDelay",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);E(p.oScroll,d,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);E(p.oLanguage,d,"fnInfoCallback");z(p,"aoDrawCallback",d.fnDrawCallback,"user");z(p,"aoServerParams",d.fnServerParams,"user");z(p,"aoStateSaveParams",d.fnStateSaveParams,"user");z(p,"aoStateLoadParams", d.fnStateLoadParams,"user");z(p,"aoStateLoaded",d.fnStateLoaded,"user");z(p,"aoRowCallback",d.fnRowCallback,"user");z(p,"aoRowCreatedCallback",d.fnCreatedRow,"user");z(p,"aoHeaderCallback",d.fnHeaderCallback,"user");z(p,"aoFooterCallback",d.fnFooterCallback,"user");z(p,"aoInitComplete",d.fnInitComplete,"user");z(p,"aoPreDrawCallback",d.fnPreDrawCallback,"user");i=p.oClasses;d.bJQueryUI?(h.extend(i,m.ext.oJUIClasses,d.oClasses),d.sDom===l.sDom&&"lfrtip"===l.sDom&&(p.sDom='<"H"lfr>t<"F"ip>'),p.renderer)? h.isPlainObject(p.renderer)&&!p.renderer.header&&(p.renderer.header="jqueryui"):p.renderer="jqueryui":h.extend(i,m.ext.classes,d.oClasses);q.addClass(i.sTable);if(""!==p.oScroll.sX||""!==p.oScroll.sY)p.oScroll.iBarWidth=Hb();!0===p.oScroll.sX&&(p.oScroll.sX="100%");p.iInitDisplayStart===k&&(p.iInitDisplayStart=d.iDisplayStart,p._iDisplayStart=d.iDisplayStart);null!==d.iDeferLoading&&(p.bDeferLoading=!0,g=h.isArray(d.iDeferLoading),p._iRecordsDisplay=g?d.iDeferLoading[0]:d.iDeferLoading,p._iRecordsTotal= g?d.iDeferLoading[1]:d.iDeferLoading);var t=p.oLanguage;h.extend(!0,t,d.oLanguage);""!==t.sUrl&&(h.ajax({dataType:"json",url:t.sUrl,success:function(a){P(a);H(l.oLanguage,a);h.extend(true,t,a);ga(p)},error:function(){ga(p)}}),o=!0);null===d.asStripeClasses&&(p.asStripeClasses=[i.sStripeOdd,i.sStripeEven]);var g=p.asStripeClasses,s=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(g,function(a){return s.hasClass(a)}))&&(h("tbody tr",this).removeClass(g.join(" ")),p.asDestroyStripes=g.slice()); n=[];g=this.getElementsByTagName("thead");0!==g.length&&(da(p.aoHeader,g[0]),n=qa(p));if(null===d.aoColumns){r=[];g=0;for(j=n.length;g<j;g++)r.push(null)}else r=d.aoColumns;g=0;for(j=r.length;g<j;g++)Fa(p,n?n[g]:null);ib(p,d.aoColumnDefs,r,function(a,b){ka(p,a,b)});if(s.length){var u=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h.each(na(p,s[0]).cells,function(a,b){var c=p.aoColumns[a];if(c.mData===a){var d=u(b,"sort")||u(b,"order"),e=u(b,"filter")||u(b,"search");if(d!==null||e!== null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};ka(p,a)}}})}var v=p.oFeatures;d.bStateSave&&(v.bStateSave=!0,Kb(p,d),z(p,"aoDrawCallback",ya,"state_save"));if(d.aaSorting===k){n=p.aaSorting;g=0;for(j=n.length;g<j;g++)n[g][1]=p.aoColumns[g].asSorting[0]}xa(p);v.bSort&&z(p,"aoDrawCallback",function(){if(p.bSorted){var a=U(p),b={};h.each(a,function(a,c){b[c.src]=c.dir});w(p,null,"order",[p,a,b]);Jb(p)}});z(p,"aoDrawCallback", function(){(p.bSorted||B(p)==="ssp"||v.bDeferRender)&&xa(p)},"sc");gb(p);g=q.children("caption").each(function(){this._captionSide=q.css("caption-side")});j=q.children("thead");0===j.length&&(j=h("<thead/>").appendTo(this));p.nTHead=j[0];j=q.children("tbody");0===j.length&&(j=h("<tbody/>").appendTo(this));p.nTBody=j[0];j=q.children("tfoot");if(0===j.length&&0<g.length&&(""!==p.oScroll.sX||""!==p.oScroll.sY))j=h("<tfoot/>").appendTo(this);0===j.length||0===j.children().length?q.addClass(i.sNoFooter): 0<j.length&&(p.nTFoot=j[0],da(p.aoFooter,p.nTFoot));if(d.aaData)for(g=0;g<d.aaData.length;g++)K(p,d.aaData[g]);else(p.bDeferLoading||"dom"==B(p))&&ma(p,h(p.nTBody).children("tr"));p.aiDisplay=p.aiDisplayMaster.slice();p.bInitialised=!0;!1===o&&ga(p)}});b=null;return this};var Tb=[],y=Array.prototype,cc=function(a){var b,c,e=m.settings,d=h.map(e,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,d),-1!==b?[e[b]]: null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,d);return-1!==b?e[b]:null}).toArray()};t=function(a,b){if(!(this instanceof t))return new t(a,b);var c=[],e=function(a){(a=cc(a))&&c.push.apply(c,a)};if(h.isArray(a))for(var d=0,f=a.length;d<f;d++)e(a[d]);else e(a);this.context=Na(c);b&&this.push.apply(this,b.toArray?b.toArray():b);this.selector={rows:null,cols:null,opts:null}; t.extend(this,this,Tb)};m.Api=t;t.prototype={any:function(){return 0!==this.flatten().length},concat:y.concat,context:[],each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new t(b[a],this[a]):null},filter:function(a){var b=[];if(y.filter)b=y.filter.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new t(this.context,b)},flatten:function(){var a=[]; return new t(this.context,a.concat.apply(a,this.toArray()))},join:y.join,indexOf:y.indexOf||function(a,b){for(var c=b||0,e=this.length;c<e;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,e){var d=[],f,g,h,i,o,l=this.context,q,n,m=this.selector;"string"===typeof a&&(e=c,c=b,b=a,a=!1);g=0;for(h=l.length;g<h;g++){var p=new t(l[g]);if("table"===b)f=c.call(p,l[g],g),f!==k&&d.push(f);else if("columns"===b||"rows"===b)f=c.call(p,l[g],this[g],g),f!==k&&d.push(f);else if("column"===b||"column-rows"=== b||"row"===b||"cell"===b){n=this[g];"column-rows"===b&&(q=Ca(l[g],m.opts));i=0;for(o=n.length;i<o;i++)f=n[i],f="cell"===b?c.call(p,l[g],f.row,f.column,g,i):c.call(p,l[g],f,g,i,q),f!==k&&d.push(f)}}return d.length||e?(a=new t(l,a?d.concat.apply([],d):d),b=a.selector,b.rows=m.rows,b.cols=m.cols,b.opts=m.opts,a):this},lastIndexOf:y.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(y.map)b=y.map.call(this,a,this);else for(var c= 0,e=this.length;c<e;c++)b.push(a.call(this,this[c],c));return new t(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:y.pop,push:y.push,reduce:y.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:y.reduceRight||function(a,b){return hb(this,a,b,this.length-1,-1,-1)},reverse:y.reverse,selector:null,shift:y.shift,sort:y.sort,splice:y.splice,toArray:function(){return y.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)}, unique:function(){return new t(this.context,Na(this))},unshift:y.unshift};t.extend=function(a,b,c){if(c.length&&b&&(b instanceof t||b.__dt_wrapper)){var e,d,f,g=function(a,b,c){return function(){var d=b.apply(a,arguments);t.extend(d,d,c.methodExt);return d}};e=0;for(d=c.length;e<d;e++)f=c[e],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,t.extend(a,b[f.name],f.propExt)}};t.register=r=function(a,b){if(h.isArray(a))for(var c=0,e=a.length;c< e;c++)t.register(a[c],b);else for(var d=a.split("."),f=Tb,g,j,c=0,e=d.length;c<e;c++){g=(j=-1!==d[c].indexOf("()"))?d[c].replace("()",""):d[c];var i;a:{i=0;for(var o=f.length;i<o;i++)if(f[i].name===g){i=f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===e-1?i.val=b:f=j?i.methodExt:i.propExt}};t.registerPlural=v=function(a,b,c){t.register(a,c);t.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof t?a.length?h.isArray(a[0])?new t(a.context, a[0]):a[0]:k:a})};r("tables()",function(a){var b;if(a){b=t;var c=this.context;if("number"===typeof a)a=[c[a]];else var e=h.map(c,function(a){return a.nTable}),a=h(e).filter(a).map(function(){var a=h.inArray(this,e);return c[a]}).toArray();b=new b(a)}else b=this;return b});r("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new t(b[0]):a});v("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});v("tables().body()","table().body()", function(){return this.iterator("table",function(a){return a.nTBody},1)});v("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});v("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});v("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});r("draw()",function(a){return this.iterator("table",function(b){N(b, !1===a)})});r("page()",function(a){return a===k?this.page.info().page:this.iterator("table",function(b){Ta(b,a)})});r("page.info()",function(){if(0===this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a._iDisplayLength,e=a.fnRecordsDisplay(),d=-1===c;return{page:d?0:Math.floor(b/c),pages:d?1:Math.ceil(e/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:e}});r("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength: k:this.iterator("table",function(b){Ra(b,a)})});var Ub=function(a,b,c){if(c){var e=new t(a);e.one("draw",function(){c(e.ajax.json())})}"ssp"==B(a)?N(a,b):(C(a,!0),ra(a,[],function(c){oa(a);for(var c=sa(a,c),e=0,g=c.length;e<g;e++)K(a,c[e]);N(a,b);C(a,!1)}))};r("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});r("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});r("ajax.reload()",function(a,b){return this.iterator("table",function(c){Ub(c, !1===b,a)})});r("ajax.url()",function(a){var b=this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});r("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Ub(c,!1===b,a)})});var $a=function(a,b,c,e,d){var f=[],g,j,i,o,l,q;i=typeof b;if(!b||"string"===i||"function"===i||b.length===k)b=[b];i=0;for(o=b.length;i<o;i++){j= b[i]&&b[i].split?b[i].split(","):[b[i]];l=0;for(q=j.length;l<q;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&f.push.apply(f,g)}a=u.selector[a];if(a.length){i=0;for(o=a.length;i<o;i++)f=a[i](e,d,f)}return f},ab=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},bb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a}, Ca=function(a,b){var c,e,d,f=[],g=a.aiDisplay;c=a.aiDisplayMaster;var j=b.search;e=b.order;d=b.page;if("ssp"==B(a))return"removed"===j?[]:V(0,c.length);if("current"==d){c=a._iDisplayStart;for(e=a.fnDisplayEnd();c<e;c++)f.push(g[c])}else if("current"==e||"applied"==e)f="none"==j?c.slice():"applied"==j?g.slice():h.map(c,function(a){return-1===h.inArray(a,g)?a:null});else if("index"==e||"original"==e){c=0;for(e=a.aoData.length;c<e;c++)"none"==j?f.push(c):(d=h.inArray(c,g),(-1===d&&"removed"==j||0<=d&& "applied"==j)&&f.push(c))}return f};r("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var d=b;return $a("row",a,function(a){var b=Pb(a);if(b!==null&&!d)return[b];var j=Ca(c,d);if(b!==null&&h.inArray(b,j)!==-1)return[b];if(!a)return j;if(typeof a==="function")return h.map(j,function(b){var d=c.aoData[b];return a(b,d._aData,d.nTr)?b:null});b=Sb(ia(c.aoData,j,"nTr"));return a.nodeName&&h.inArray(a,b)!==-1?[a._DT_RowIndex]:h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()}, c,d)},1);c.selector.rows=a;c.selector.opts=b;return c});r("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});r("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ia(a.aoData,b,"_aData")},1)});v("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var e=b.aoData[c];return"search"===a?e._aFilterData:e._aSortData},1)});v("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row", function(b,c){ca(b,c,a)})});v("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});v("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(b,c,e){var d=b.aoData;d.splice(c,1);for(var f=0,g=d.length;f<g;f++)null!==d[f].nTr&&(d[f].nTr._DT_RowIndex=f);h.inArray(c,b.aiDisplay);pa(b.aiDisplayMaster,c);pa(b.aiDisplay,c);pa(a[e],c,!1);Sa(b)})});r("rows.add()",function(a){var b=this.iterator("table",function(b){var c, f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(ma(b,c)[0]):h.push(K(b,c));return h},1),c=this.rows(-1);c.pop();c.push.apply(c,b.toArray());return c});r("row()",function(a,b){return bb(this.rows(a,b))});r("row().data()",function(a){var b=this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:k;b[0].aoData[this[0]]._aData=a;ca(b[0],this[0],"data");return this});r("row().node()",function(){var a=this.context;return a.length&&this.length? a[0].aoData[this[0]].nTr||null:null});r("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?ma(b,a)[0]:K(b,a)});return this.row(b[0])});var cb=function(a,b){var c=a.context;c.length&&(c=c[0].aoData[b!==k?b:a[0]],c._details&&(c._details.remove(),c._detailsShow=k,c._details=k))},Vb=function(a,b){var c=a.context;if(c.length&&a.length){var e=c[0].aoData[a[0]];if(e._details){(e._detailsShow=b)?e._details.insertAfter(e.nTr): e._details.detach();var d=c[0],f=new t(d),g=d.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<D(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){d===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",function(a,b){if(d===b)for(var c,e=aa(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",e)}),f.on("destroy.dt.DT_details", function(a,b){if(d===b)for(var c=0,e=g.length;c<e;c++)g[c]._details&&cb(f,c)}))}}};r("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===a)cb(this);else if(c.length&&this.length){var e=c[0],c=c[0].aoData[this[0]],d=[],f=function(a,b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?d.push(a):(c=h("<tr><td/></tr>").addClass(b), h("td",c).addClass(b).html(a)[0].colSpan=aa(e),d.push(c[0]))};f(a,b);c._details&&c._details.remove();c._details=h(d);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});r(["row().child.show()","row().child().show()"],function(){Vb(this,!0);return this});r(["row().child.hide()","row().child().hide()"],function(){Vb(this,!1);return this});r(["row().child.remove()","row().child().remove()"],function(){cb(this);return this});r("row().child.isShown()",function(){var a=this.context;return a.length&& this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var dc=/^(.+):(name|visIdx|visible)$/,Wb=function(a,b,c,e,d){for(var c=[],e=0,f=d.length;e<f;e++)c.push(x(a,d[e],b));return c};r("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var d=a,f=b,g=c.aoColumns,j=D(g,"sName"),i=D(g,"nTh");return $a("column",d,function(a){var b=Pb(a);if(a==="")return V(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var d=Ca(c, f);return h.map(g,function(b,f){return a(f,Wb(c,f,0,0,d),i[f])?f:null})}var k=typeof a==="string"?a.match(dc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});return[m[m.length+b]]}return[la(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null})}else return h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray()},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});v("columns().header()", "column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});v("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});v("columns().data()","column().data()",function(){return this.iterator("column-rows",Wb,1)});v("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});v("columns().cache()","column().cache()", function(a){return this.iterator("column-rows",function(b,c,e,d,f){return ia(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});v("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,e,d){return ia(a.aoData,d,"anCells",b)},1)});v("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(c,e){if(a===k)return c.aoColumns[e].bVisible;var d=c.aoColumns,f=d[e],g=c.aoData,j,i,m;if(a!==k&&f.bVisible!==a){if(a){var l= h.inArray(!0,D(d,"bVisible"),e+1);j=0;for(i=g.length;j<i;j++)m=g[j].nTr,d=g[j].anCells,m&&m.insertBefore(d[e],d[l]||null)}else h(D(c.aoData,"anCells",e)).detach();f.bVisible=a;ea(c,c.aoHeader);ea(c,c.aoFooter);if(b===k||b)X(c),(c.oScroll.sX||c.oScroll.sY)&&Y(c);w(c,null,"column-visibility",[c,e,a]);ya(c)}})});v("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?$(b,c):c},1)});r("columns.adjust()",function(){return this.iterator("table", function(a){X(a)},1)});r("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return la(c,b);if("fromData"===a||"toVisible"===a)return $(c,b)}});r("column()",function(a,b){return bb(this.columns(a,b))});r("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=ab(c),f=b.aoData,g=Ca(b,e),i=Sb(ia(f,g,"anCells")), j=h([].concat.apply([],i)),l,m=b.aoColumns.length,o,r,t,s,u,v;return $a("cell",d,function(a){var c=typeof a==="function";if(a===null||a===k||c){o=[];r=0;for(t=g.length;r<t;r++){l=g[r];for(s=0;s<m;s++){u={row:l,column:s};if(c){v=b.aoData[l];a(u,x(b,l,s),v.anCells?v.anCells[s]:null)&&o.push(u)}else o.push(u)}}return o}return h.isPlainObject(a)?[a]:j.filter(a).map(function(a,b){l=b.parentNode._DT_RowIndex;return{row:l,column:h.inArray(b,f[l].anCells)}}).toArray()},b,e)});var e=this.columns(b,c),d=this.rows(a, c),f,g,j,i,m,l=this.iterator("table",function(a,b){f=[];g=0;for(j=d[b].length;g<j;g++){i=0;for(m=e[b].length;i<m;i++)f.push({row:d[b][g],column:e[b][i]})}return f},1);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});v("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b].anCells)?a[c]:k},1)});r("cells().data()",function(){return this.iterator("cell",function(a,b,c){return x(a,b,c)},1)});v("cells().cache()","cell().cache()",function(a){a= "search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,e){return b.aoData[c][a][e]},1)});v("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,e){return x(b,c,e,a)},1)});v("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:$(a,c)}},1)});v("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,e){ca(b,c,a,e)})});r("cell()", function(a,b,c){return bb(this.cells(a,b,c))});r("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?x(b[0],c[0].row,c[0].column):k;Ia(b[0],c[0].row,c[0].column,a);ca(b[0],c[0].row,"data",c[0].column);return this});r("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:h.isArray(a[0])||(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})}); r("order.listener()",function(a,b,c){return this.iterator("table",function(e){Oa(e,a,b,c)})});r(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,e){var d=[];h.each(b[e],function(b,c){d.push([c,a])});c.aaSorting=d})});r("search()",function(a,b,c,e){var d=this.context;return a===k?0!==d.length?d[0].oPreviousSearch.sSearch:k:this.iterator("table",function(d){d.oFeatures.bFilter&&fa(d,h.extend({},d.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1: b,bSmart:null===c?!0:c,bCaseInsensitive:null===e?!0:e}),1)})});v("columns().search()","column().search()",function(a,b,c,e){return this.iterator("column",function(d,f){var g=d.aoPreSearchCols;if(a===k)return g[f].sSearch;d.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===e?!0:e}),fa(d,d.oPreviousSearch,1))})});r("state()",function(){return this.context.length?this.context[0].oSavedState:null});r("state.clear()",function(){return this.iterator("table", function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});r("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});r("state.save()",function(){return this.iterator("table",function(a){ya(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=m.version.split("."),a=a.split("."),c,e,d=0,f=a.length;d<f;d++)if(c=parseInt(b[d],10)||0,e=parseInt(a[d],10)||0,c!==e)return c>e;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;h.each(m.settings, function(a,d){var f=d.nScrollHead?h("table",d.nScrollHead)[0]:null,g=d.nScrollFoot?h("table",d.nScrollFoot)[0]:null;if(d.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){return h.map(m.settings,function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable})};m.util={throttle:ua,escapeRegex:va};m.camelToHungarian=H;r("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a, b){r(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var e=h(this.tables().nodes());e[b].apply(e,a);return this})});r("clear()",function(){return this.iterator("table",function(a){oa(a)})});r("settings()",function(){return new t(this.context,this.context)});r("init()",function(){var a=this.context;return a.length?a[0].oInit:null});r("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});r("destroy()", function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,e=b.oClasses,d=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(d),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),q;b.bDestroying=!0;w(b,"aoDestroyCallback","destroy",[b]);a||(new t(b)).columns().visible(!0);k.unbind(".DT").find(":not(tbody *)").unbind(".DT");h(Ea).unbind(".DT-"+b.sInstance);d!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&d!=j.parentNode&&(i.children("tfoot").detach(), i.append(j));i.detach();k.detach();b.aaSorting=[];b.aaSortingFixed=[];xa(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(e.sSortable+" "+e.sSortableAsc+" "+e.sSortableDesc+" "+e.sSortableNone);b.bJUI&&(h("th span."+e.sSortIcon+", td span."+e.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+e.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));!a&&c&&c.insertBefore(d,b.nTableReinsertBefore);f.children().detach();f.append(l);i.css("width",b.sDestroyWidth).removeClass(e.sTable); (q=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%q])});c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});h.each(["column","row","cell"],function(a,b){r(b+"s().every()",function(a){return this.iterator(b,function(e,d,f){a.call((new t(e))[b](d,f))})})});r("i18n()",function(a,b,c){var e=this.context[0],a=R(a)(e.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.7";m.settings= [];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std", sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1, fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null, fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"}, sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null, sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null};W(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};W(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null, bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[], sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null, bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==B(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==B(this)?1*this._iRecordsDisplay: this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,e=this.aiDisplay.length,d=this.oFeatures,f=d.bPaginate;return d.bServerSide?!1===f||-1===a?b+e:Math.min(b+a,this._iRecordsDisplay):!f||c>e||-1===a?e:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{}};m.ext=u={buttons:{},classes:{},errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{}, header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(u,{afnFiltering:u.search,aTypes:u.type.detect,ofnSearch:u.type.search,oSort:u.type.order,afnSortData:u.order,aoFeatures:u.feature,oApi:u.internal,oStdClasses:u.classes,oPagination:u.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd", sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead", sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Da="",Da="",F=Da+"ui-state-default",ja=Da+"css_right ui-icon ui-icon-",Xb=Da+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses, m.ext.classes,{sPageButton:"fg-button ui-button "+F,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:F+" sorting_asc",sSortDesc:F+" sorting_desc",sSortable:F+" sorting",sSortableAsc:F+" sorting_asc_disabled",sSortableDesc:F+" sorting_desc_disabled",sSortableNone:F+" sorting_disabled",sSortJUIAsc:ja+"triangle-1-n",sSortJUIDesc:ja+"triangle-1-s",sSortJUI:ja+"carat-2-n-s", sSortJUIAscAllowed:ja+"carat-1-n",sSortJUIDescAllowed:ja+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+F,sScrollFoot:"dataTables_scrollFoot "+F,sHeaderTH:F,sFooterTH:F,sJUIHeader:Xb+" ui-corner-tl ui-corner-tr",sJUIFooter:Xb+" ui-corner-bl ui-corner-br"});var Mb=m.ext.pager;h.extend(Mb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},simple_numbers:function(a,b){return["previous", Wa(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Wa(a,b),"next","last"]},_numbers:Wa,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,e,d,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i,k,l=0,m=function(b,e){var n,r,t,s,u=function(b){Ta(a,b.data.action,true)};n=0;for(r=e.length;n<r;n++){s=e[n];if(h.isArray(s)){t=h("<"+(s.DT_el||"div")+"/>").appendTo(b);m(t,s)}else{k=i="";switch(s){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break; case "first":i=j.sFirst;k=s+(d>0?"":" "+g.sPageButtonDisabled);break;case "previous":i=j.sPrevious;k=s+(d>0?"":" "+g.sPageButtonDisabled);break;case "next":i=j.sNext;k=s+(d<f-1?"":" "+g.sPageButtonDisabled);break;case "last":i=j.sLast;k=s+(d<f-1?"":" "+g.sPageButtonDisabled);break;default:i=s+1;k=d===s?g.sPageButtonActive:""}if(i){t=h("<a>",{"class":g.sPageButton+" "+k,"aria-controls":a.sTableId,"data-dt-idx":l,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(i).appendTo(b); Va(t,{action:s},u);l++}}}},n;try{n=h(Q.activeElement).data("dt-idx")}catch(r){}m(h(b).empty(),e);n&&h(b).find("[data-dt-idx="+n+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&(!ac.test(a)||!bc.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||J(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal; return Rb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Rb(a,c,!0)?"html-num-fmt"+c:null},function(a){return J(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return J(a)?a:"string"===typeof a?a.replace(Ob," ").replace(Ba,""):""},string:function(a){return J(a)?a:"string"===typeof a?a.replace(Ob," "):a}});var Aa=function(a,b,c,e){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Qb(a,b));a.replace&&(c&&(a=a.replace(c,"")), e&&(a=a.replace(e,"")));return 1*a};h.extend(u.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return J(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return J(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});db("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,e){h(a.nTable).on("order.dt.DT",function(d, f,g,h){if(a===f){d=c.idx;b.removeClass(c.sSortingClass+" "+e.sSortAsc+" "+e.sSortDesc).addClass(h[d]=="asc"?e.sSortAsc:h[d]=="desc"?e.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,e){h("<div/>").addClass(e.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(e.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(d,f,g,h){if(a===f){d=c.idx;b.removeClass(e.sSortAsc+" "+e.sSortDesc).addClass(h[d]=="asc"?e.sSortAsc:h[d]=="desc"?e.sSortDesc:c.sSortingClass); b.find("span."+e.sSortIcon).removeClass(e.sSortJUIAsc+" "+e.sSortJUIDesc+" "+e.sSortJUI+" "+e.sSortJUIAscAllowed+" "+e.sSortJUIDescAllowed).addClass(h[d]=="asc"?e.sSortJUIAsc:h[d]=="desc"?e.sSortJUIDesc:c.sSortingClassJUI)}})}}});m.render={number:function(a,b,c,e){return{display:function(d){if("number"!==typeof d&&"string"!==typeof d)return d;var f=0>d?"-":"",d=Math.abs(parseFloat(d)),g=parseInt(d,10),d=c?b+(d-g).toFixed(c).substring(2):"";return f+(e||"")+g.toString().replace(/\B(?=(\d{3})+(?!\d))/g, a)+d}}}};h.extend(m.ext.internal,{_fnExternApiFunc:Nb,_fnBuildAjax:ra,_fnAjaxUpdate:kb,_fnAjaxParameters:tb,_fnAjaxUpdateDraw:ub,_fnAjaxDataSrc:sa,_fnAddColumn:Fa,_fnColumnOptions:ka,_fnAdjustColumnSizing:X,_fnVisibleToColumnIndex:la,_fnColumnIndexToVisible:$,_fnVisbleColumns:aa,_fnGetColumns:Z,_fnColumnTypes:Ha,_fnApplyColumnDefs:ib,_fnHungarianMap:W,_fnCamelToHungarian:H,_fnLanguageCompat:P,_fnBrowserDetect:gb,_fnAddData:K,_fnAddTr:ma,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex: null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:x,_fnSetCellData:Ia,_fnSplitObjNotation:Ka,_fnGetObjectDataFn:R,_fnSetObjectDataFn:S,_fnGetDataMaster:La,_fnClearTable:oa,_fnDeleteIndex:pa,_fnInvalidate:ca,_fnGetRowElements:na,_fnCreateTr:Ja,_fnBuildHead:jb,_fnDrawHead:ea,_fnDraw:M,_fnReDraw:N,_fnAddOptionsHtml:mb,_fnDetectHeader:da,_fnGetUniqueThs:qa,_fnFeatureHtmlFilter:ob,_fnFilterComplete:fa,_fnFilterCustom:xb,_fnFilterColumn:wb,_fnFilter:vb,_fnFilterCreateSearch:Qa, _fnEscapeRegex:va,_fnFilterData:yb,_fnFeatureHtmlInfo:rb,_fnUpdateInfo:Bb,_fnInfoMacros:Cb,_fnInitialise:ga,_fnInitComplete:ta,_fnLengthChange:Ra,_fnFeatureHtmlLength:nb,_fnFeatureHtmlPaginate:sb,_fnPageChange:Ta,_fnFeatureHtmlProcessing:pb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:qb,_fnScrollDraw:Y,_fnApplyToChildren:G,_fnCalculateColumnWidths:Ga,_fnThrottle:ua,_fnConvertToWidth:Db,_fnScrollingWidthAdjust:Fb,_fnGetWidestNode:Eb,_fnGetMaxLenString:Gb,_fnStringToCss:s,_fnScrollBarWidth:Hb,_fnSortFlatten:U, _fnSort:lb,_fnSortAria:Jb,_fnSortListener:Ua,_fnSortAttachListener:Oa,_fnSortingClasses:xa,_fnSortData:Ib,_fnSaveState:ya,_fnLoadState:Kb,_fnSettingsFromNode:za,_fnLog:I,_fnMap:E,_fnBindAction:Va,_fnCallbackReg:z,_fnCallbackFire:w,_fnLengthOverflow:Sa,_fnRenderer:Pa,_fnDataSource:B,_fnRowAttributes:Ma,_fnCalculateEnd:function(){}});h.fn.dataTable=m;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]= b});return h.fn.dataTable};"function"===typeof define&&define.amd?define("datatables",["jquery"],P):"object"===typeof exports?module.exports=P(require("jquery")):jQuery&&!jQuery.fn.dataTable&&P(jQuery)})(window,document);
{% load i18n %} {% load humanize %} <div class="row answer" answer-id="{{ answer.id }}"> {% csrf_token %} <div class="col-md-1 options"> <span class="glyphicon glyphicon-chevron-up vote up-vote{% if user in answer.get_up_voters %} voted{% endif %}" title="{% trans 'Click to up vote; click again to toggle' %}"></span> <span class="votes">{{ answer.votes }}</span> <span class="glyphicon glyphicon-chevron-down vote down-vote{% if user in answer.get_down_voters %} voted{% endif %}" title="{% trans 'Click to down vote; click again to toggle' %}"></span> {% if answer.is_accepted and user == question.user %} <span class="glyphicon glyphicon-ok accept accepted" title="{% trans 'Click to unaccept the answer' %}"></span> {% elif answer.is_accepted %} <span class="glyphicon glyphicon-ok accept accepted" style="cursor: default"></span> {% elif user == question.user %} <span class="glyphicon glyphicon-ok accept" title="{% trans 'Click to accept the answer' %}"></span> {% endif %} </div> <div class="col-md-11"> <div class="answer-user"> <a href="{% url 'profile' answer.user.username %}"><img src="{{ answer.user.profile.get_picture }}" class="user"></a> <a href="{% url 'profile' answer.user.username %}" class="username">{{ answer.user.profile.get_screen_name }}</a> <small class="answered">{% trans "answered" %} {{ answer.create_date|naturaltime }}</small> </div> <div class="answer-description"> {{ answer.get_description_as_markdown|safe }} </div> </div> </div> <hr>
<?php include __DIR__ . '/vendor/autoload.php'; include __DIR__ . '/../../bootstrap.php'; $debugbarRenderer->setBaseUrl('../../../src/DebugBar/Resources'); use DebugBar\Bridge\PropelCollector; $debugbar->addCollector(new PropelCollector()); Propel::init('build/conf/demo-conf.php'); set_include_path("build/classes" . PATH_SEPARATOR . get_include_path()); PropelCollector::enablePropelProfiling(); $user = new User(); $user->setName('foo'); $user->save(); $firstUser = UserQuery::create()->findPK(1); render_demo_page();
/* Copyright (C) 2000 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* Wait a given number of microseconds */ #include "mysys_priv.h" #include <m_string.h> void my_sleep(ulong m_seconds) { #ifdef __NETWARE__ delay(m_seconds/1000+1); #elif defined(__WIN__) Sleep(m_seconds/1000+1); /* Sleep() has millisecond arg */ #elif defined(HAVE_SELECT) struct timeval t; t.tv_sec= m_seconds / 1000000L; t.tv_usec= m_seconds % 1000000L; select(0,0,0,0,&t); /* sleep */ #else uint sec= (uint) (m_seconds / 1000000L); ulong start= (ulong) time((time_t*) 0); while ((ulong) time((time_t*) 0) < start+sec); #endif }
/* Copyright 2020 Nick Brassel (tzarc) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ #pragma once #include_next "mcuconf.h" #undef STM32_I2C_USE_I2C1 #define STM32_I2C_USE_I2C1 TRUE #undef STM32_PWM_USE_TIM5 #define STM32_PWM_USE_TIM5 TRUE
obj-$(CONFIG_MTK_USBFSH) := musbfsh_core.o musbfsh_mt65xx.o ccflags-y += -I$(MTK_PATH_SOURCE)/drivers/usb11/
/* * Copyright (c) 2002-2003, Intel Corporation. All rights reserved. * Created by: salwan.searty REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. * Test that the sigwaitinfo() function shall return the selected signal number. Steps: 1. Register signal SIGTOTEST with the handler myhandler 2. Block SIGTOTEST from the process 3. Raise the signal, causing it to be pending 4. Call sigwaitinfo() and verify that it returns the signal SIGTOTEST. */ #define _XOPEN_SOURCE 600 #define _XOPEN_REALTIME 1 #define SIGTOTEST SIGUSR1 #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> #include "posixtest.h" void myhandler(int signo) { printf("Inside handler\n"); } int main(void) { struct sigaction act; sigset_t pendingset, selectset; act.sa_flags = 0; act.sa_handler = myhandler; sigemptyset(&pendingset); sigemptyset(&selectset); sigaddset(&selectset, SIGTOTEST); sigemptyset(&act.sa_mask); sigaction(SIGTOTEST, &act, 0); sighold(SIGTOTEST); raise(SIGTOTEST); sigpending(&pendingset); if (sigismember(&pendingset, SIGTOTEST) != 1) { perror("SIGTOTEST is not pending\n"); return PTS_UNRESOLVED; } if (sigwaitinfo(&selectset, NULL) != SIGTOTEST) { perror("Call to sigwaitinfo() failed\n"); return PTS_FAIL; } printf("Test PASSED\n"); return PTS_PASS; }
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/media_galleries/fileapi/file_path_watcher_util.h" #include "base/bind.h" #include "base/callback.h" #include "base/location.h" #include "base/logging.h" #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" #include "content/public/browser/browser_thread.h" namespace { // Bounces |path| and |error| to |callback| from the FILE thread to the media // task runner. void OnFilePathChangedOnFileThread( const base::FilePathWatcher::Callback& callback, const base::FilePath& path, bool error) { DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); MediaFileSystemBackend::MediaTaskRunner()->PostTask( FROM_HERE, base::Bind(callback, path, error)); } // The watch has to be started on the FILE thread, and the callback called by // the FilePathWatcher also needs to run on the FILE thread. void StartFilePathWatchOnFileThread( const base::FilePath& path, const FileWatchStartedCallback& watch_started_callback, const base::FilePathWatcher::Callback& path_changed_callback) { DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); // The watcher is created on the FILE thread because it is very difficult // to safely pass an already-created file watcher to a different thread. scoped_ptr<base::FilePathWatcher> watcher(new base::FilePathWatcher); bool success = watcher->Watch( path, false /* recursive */, base::Bind(&OnFilePathChangedOnFileThread, path_changed_callback)); if (!success) LOG(ERROR) << "Adding watch for " << path.value() << " failed"; MediaFileSystemBackend::MediaTaskRunner()->PostTask( FROM_HERE, base::Bind(watch_started_callback, base::Passed(&watcher))); } } // namespace void StartFilePathWatchOnMediaTaskRunner( const base::FilePath& path, const FileWatchStartedCallback& watch_started_callback, const base::FilePathWatcher::Callback& path_changed_callback) { DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread()); content::BrowserThread::PostTask(content::BrowserThread::FILE, FROM_HERE, base::Bind(&StartFilePathWatchOnFileThread, path, watch_started_callback, path_changed_callback)); }
/* * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package javax.swing; import java.awt.Dimension; import java.awt.Rectangle; /** * An interface that provides information to a scrolling container * like JScrollPane. A complex component that's likely to be used * as a viewing a JScrollPane viewport (or other scrolling container) * should implement this interface. * * @see JViewport * @see JScrollPane * @see JScrollBar * @author Hans Muller * @since 1.2 */ public interface Scrollable { /** * Returns the preferred size of the viewport for a view component. * For example, the preferred size of a <code>JList</code> component * is the size required to accommodate all of the cells in its list. * However, the value of <code>preferredScrollableViewportSize</code> * is the size required for <code>JList.getVisibleRowCount</code> rows. * A component without any properties that would affect the viewport * size should just return <code>getPreferredSize</code> here. * * @return the preferredSize of a <code>JViewport</code> whose view * is this <code>Scrollable</code> * @see JViewport#getPreferredSize */ Dimension getPreferredScrollableViewportSize(); /** * Components that display logical rows or columns should compute * the scroll increment that will completely expose one new row * or column, depending on the value of orientation. Ideally, * components should handle a partially exposed row or column by * returning the distance required to completely expose the item. * <p> * Scrolling containers, like JScrollPane, will use this method * each time the user requests a unit scroll. * * @param visibleRect The view area visible within the viewport * @param orientation Either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL. * @param direction Less than zero to scroll up/left, greater than zero for down/right. * @return The "unit" increment for scrolling in the specified direction. * This value should always be positive. * @see JScrollBar#setUnitIncrement */ int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction); /** * Components that display logical rows or columns should compute * the scroll increment that will completely expose one block * of rows or columns, depending on the value of orientation. * <p> * Scrolling containers, like JScrollPane, will use this method * each time the user requests a block scroll. * * @param visibleRect The view area visible within the viewport * @param orientation Either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL. * @param direction Less than zero to scroll up/left, greater than zero for down/right. * @return The "block" increment for scrolling in the specified direction. * This value should always be positive. * @see JScrollBar#setBlockIncrement */ int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction); /** * Return true if a viewport should always force the width of this * <code>Scrollable</code> to match the width of the viewport. * For example a normal * text view that supported line wrapping would return true here, since it * would be undesirable for wrapped lines to disappear beyond the right * edge of the viewport. Note that returning true for a Scrollable * whose ancestor is a JScrollPane effectively disables horizontal * scrolling. * <p> * Scrolling containers, like JViewport, will use this method each * time they are validated. * * @return True if a viewport should force the Scrollables width to match its own. */ boolean getScrollableTracksViewportWidth(); /** * Return true if a viewport should always force the height of this * Scrollable to match the height of the viewport. For example a * columnar text view that flowed text in left to right columns * could effectively disable vertical scrolling by returning * true here. * <p> * Scrolling containers, like JViewport, will use this method each * time they are validated. * * @return True if a viewport should force the Scrollables height to match its own. */ boolean getScrollableTracksViewportHeight(); }
// Copyright John Maddock 2015. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifdef _MSC_VER # pragma warning (disable : 4224) #endif #include <boost/math/special_functions/legendre.hpp> #include <boost/array.hpp> #include <boost/lexical_cast.hpp> #include "../../test/table_type.hpp" #include "table_helper.hpp" #include "performance.hpp" #include <iostream> typedef double T; #define SC_(x) static_cast<double>(x) int main() { # include "legendre_p.ipp" # include "legendre_p_large.ipp" add_data(legendre_p); add_data(legendre_p_large); unsigned data_total = data.size(); screen_data([](const std::vector<double>& v){ return boost::math::legendre_q(v[0], v[1]); }, [](const std::vector<double>& v){ return v[3]; }); #if defined(TEST_GSL) && !defined(COMPILER_COMPARISON_TABLES) screen_data([](const std::vector<double>& v){ return gsl_sf_legendre_Ql(v[0], v[1]); }, [](const std::vector<double>& v){ return v[3]; }); #endif unsigned data_used = data.size(); std::string function = "legendre Q[br](" + boost::lexical_cast<std::string>(data_used) + "/" + boost::lexical_cast<std::string>(data_total) + " tests selected)"; std::string function_short = "legendre Q"; double time; time = exec_timed_test([](const std::vector<double>& v){ return boost::math::legendre_q(v[0], v[1]); }); std::cout << time << std::endl; #if !defined(COMPILER_COMPARISON_TABLES) && (defined(TEST_GSL) || defined(TEST_RMATH)) report_execution_time(time, std::string("Library Comparison with ") + std::string(compiler_name()) + std::string(" on ") + platform_name(), function, boost_name()); #endif report_execution_time(time, std::string("Compiler Comparison on ") + std::string(platform_name()), function_short, compiler_name() + std::string("[br]") + boost_name()); // // Boost again, but with promotion to long double turned off: // #if !defined(COMPILER_COMPARISON_TABLES) if(sizeof(long double) != sizeof(double)) { time = exec_timed_test([](const std::vector<double>& v){ return boost::math::legendre_q(v[0], v[1], boost::math::policies::make_policy(boost::math::policies::promote_double<false>())); }); std::cout << time << std::endl; #if !defined(COMPILER_COMPARISON_TABLES) && (defined(TEST_GSL) || defined(TEST_RMATH)) report_execution_time(time, std::string("Library Comparison with ") + std::string(compiler_name()) + std::string(" on ") + platform_name(), function, boost_name() + "[br]promote_double<false>"); #endif report_execution_time(time, std::string("Compiler Comparison on ") + std::string(platform_name()), function_short, compiler_name() + std::string("[br]") + boost_name() + "[br]promote_double<false>"); } #endif #if defined(TEST_GSL) && !defined(COMPILER_COMPARISON_TABLES) time = exec_timed_test([](const std::vector<double>& v){ return gsl_sf_legendre_Ql(v[0], v[1]); }); std::cout << time << std::endl; report_execution_time(time, std::string("Library Comparison with ") + std::string(compiler_name()) + std::string(" on ") + platform_name(), function, "GSL " GSL_VERSION); #endif return 0; }
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/common/gpu/client/gpu_channel_host.h" #include <algorithm> #include "base/bind.h" #include "base/debug/trace_event.h" #include "base/message_loop/message_loop.h" #include "base/message_loop/message_loop_proxy.h" #include "base/posix/eintr_wrapper.h" #include "base/threading/thread_restrictions.h" #include "content/common/gpu/client/command_buffer_proxy_impl.h" #include "content/common/gpu/gpu_messages.h" #include "ipc/ipc_sync_message_filter.h" #include "url/gurl.h" #if defined(OS_WIN) #include "content/public/common/sandbox_init.h" #endif using base::AutoLock; using base::MessageLoopProxy; namespace content { GpuListenerInfo::GpuListenerInfo() {} GpuListenerInfo::~GpuListenerInfo() {} // static scoped_refptr<GpuChannelHost> GpuChannelHost::Create( GpuChannelHostFactory* factory, const gpu::GPUInfo& gpu_info, const IPC::ChannelHandle& channel_handle, base::WaitableEvent* shutdown_event) { DCHECK(factory->IsMainThread()); scoped_refptr<GpuChannelHost> host = new GpuChannelHost(factory, gpu_info); host->Connect(channel_handle, shutdown_event); return host; } // static bool GpuChannelHost::IsValidGpuMemoryBuffer( gfx::GpuMemoryBufferHandle handle) { switch (handle.type) { case gfx::SHARED_MEMORY_BUFFER: #if defined(OS_MACOSX) case gfx::IO_SURFACE_BUFFER: #endif #if defined(OS_ANDROID) case gfx::SURFACE_TEXTURE_BUFFER: #endif #if defined(USE_X11) case gfx::X11_PIXMAP_BUFFER: #endif return true; default: return false; } } GpuChannelHost::GpuChannelHost(GpuChannelHostFactory* factory, const gpu::GPUInfo& gpu_info) : factory_(factory), gpu_info_(gpu_info) { next_transfer_buffer_id_.GetNext(); next_gpu_memory_buffer_id_.GetNext(); next_route_id_.GetNext(); } void GpuChannelHost::Connect(const IPC::ChannelHandle& channel_handle, base::WaitableEvent* shutdown_event) { // Open a channel to the GPU process. We pass NULL as the main listener here // since we need to filter everything to route it to the right thread. scoped_refptr<base::MessageLoopProxy> io_loop = factory_->GetIOLoopProxy(); channel_ = IPC::SyncChannel::Create(channel_handle, IPC::Channel::MODE_CLIENT, NULL, io_loop.get(), true, shutdown_event); sync_filter_ = new IPC::SyncMessageFilter(shutdown_event); channel_->AddFilter(sync_filter_.get()); channel_filter_ = new MessageFilter(); // Install the filter last, because we intercept all leftover // messages. channel_->AddFilter(channel_filter_.get()); } bool GpuChannelHost::Send(IPC::Message* msg) { // Callee takes ownership of message, regardless of whether Send is // successful. See IPC::Sender. scoped_ptr<IPC::Message> message(msg); // The GPU process never sends synchronous IPCs so clear the unblock flag to // preserve order. message->set_unblock(false); // Currently we need to choose between two different mechanisms for sending. // On the main thread we use the regular channel Send() method, on another // thread we use SyncMessageFilter. We also have to be careful interpreting // IsMainThread() since it might return false during shutdown, // impl we are actually calling from the main thread (discard message then). // // TODO: Can we just always use sync_filter_ since we setup the channel // without a main listener? if (factory_->IsMainThread()) { // http://crbug.com/125264 base::ThreadRestrictions::ScopedAllowWait allow_wait; bool result = channel_->Send(message.release()); if (!result) DVLOG(1) << "GpuChannelHost::Send failed: Channel::Send failed"; return result; } else if (base::MessageLoop::current()) { bool result = sync_filter_->Send(message.release()); if (!result) DVLOG(1) << "GpuChannelHost::Send failed: SyncMessageFilter::Send failed"; return result; } return false; } CommandBufferProxyImpl* GpuChannelHost::CreateViewCommandBuffer( int32 surface_id, CommandBufferProxyImpl* share_group, const std::vector<int32>& attribs, const GURL& active_url, gfx::GpuPreference gpu_preference) { TRACE_EVENT1("gpu", "GpuChannelHost::CreateViewCommandBuffer", "surface_id", surface_id); GPUCreateCommandBufferConfig init_params; init_params.share_group_id = share_group ? share_group->GetRouteID() : MSG_ROUTING_NONE; init_params.attribs = attribs; init_params.active_url = active_url; init_params.gpu_preference = gpu_preference; int32 route_id = GenerateRouteID(); CreateCommandBufferResult result = factory_->CreateViewCommandBuffer( surface_id, init_params, route_id); if (result != CREATE_COMMAND_BUFFER_SUCCEEDED) { LOG(ERROR) << "GpuChannelHost::CreateViewCommandBuffer failed."; if (result == CREATE_COMMAND_BUFFER_FAILED_AND_CHANNEL_LOST) { // The GPU channel needs to be considered lost. The caller will // then set up a new connection, and the GPU channel and any // view command buffers will all be associated with the same GPU // process. DCHECK(MessageLoopProxy::current().get()); scoped_refptr<base::MessageLoopProxy> io_loop = factory_->GetIOLoopProxy(); io_loop->PostTask( FROM_HERE, base::Bind(&GpuChannelHost::MessageFilter::OnChannelError, channel_filter_.get())); } return NULL; } CommandBufferProxyImpl* command_buffer = new CommandBufferProxyImpl(this, route_id); AddRoute(route_id, command_buffer->AsWeakPtr()); AutoLock lock(context_lock_); proxies_[route_id] = command_buffer; return command_buffer; } CommandBufferProxyImpl* GpuChannelHost::CreateOffscreenCommandBuffer( const gfx::Size& size, CommandBufferProxyImpl* share_group, const std::vector<int32>& attribs, const GURL& active_url, gfx::GpuPreference gpu_preference) { TRACE_EVENT0("gpu", "GpuChannelHost::CreateOffscreenCommandBuffer"); GPUCreateCommandBufferConfig init_params; init_params.share_group_id = share_group ? share_group->GetRouteID() : MSG_ROUTING_NONE; init_params.attribs = attribs; init_params.active_url = active_url; init_params.gpu_preference = gpu_preference; int32 route_id = GenerateRouteID(); bool succeeded = false; if (!Send(new GpuChannelMsg_CreateOffscreenCommandBuffer(size, init_params, route_id, &succeeded))) { LOG(ERROR) << "Failed to send GpuChannelMsg_CreateOffscreenCommandBuffer."; return NULL; } if (!succeeded) { LOG(ERROR) << "GpuChannelMsg_CreateOffscreenCommandBuffer returned failure."; return NULL; } CommandBufferProxyImpl* command_buffer = new CommandBufferProxyImpl(this, route_id); AddRoute(route_id, command_buffer->AsWeakPtr()); AutoLock lock(context_lock_); proxies_[route_id] = command_buffer; return command_buffer; } scoped_ptr<media::VideoDecodeAccelerator> GpuChannelHost::CreateVideoDecoder( int command_buffer_route_id) { TRACE_EVENT0("gpu", "GpuChannelHost::CreateVideoDecoder"); AutoLock lock(context_lock_); ProxyMap::iterator it = proxies_.find(command_buffer_route_id); DCHECK(it != proxies_.end()); return it->second->CreateVideoDecoder(); } scoped_ptr<media::VideoEncodeAccelerator> GpuChannelHost::CreateVideoEncoder( int command_buffer_route_id) { TRACE_EVENT0("gpu", "GpuChannelHost::CreateVideoEncoder"); AutoLock lock(context_lock_); ProxyMap::iterator it = proxies_.find(command_buffer_route_id); DCHECK(it != proxies_.end()); return it->second->CreateVideoEncoder(); } void GpuChannelHost::DestroyCommandBuffer( CommandBufferProxyImpl* command_buffer) { TRACE_EVENT0("gpu", "GpuChannelHost::DestroyCommandBuffer"); int route_id = command_buffer->GetRouteID(); Send(new GpuChannelMsg_DestroyCommandBuffer(route_id)); RemoveRoute(route_id); AutoLock lock(context_lock_); proxies_.erase(route_id); delete command_buffer; } void GpuChannelHost::AddRoute( int route_id, base::WeakPtr<IPC::Listener> listener) { DCHECK(MessageLoopProxy::current().get()); scoped_refptr<base::MessageLoopProxy> io_loop = factory_->GetIOLoopProxy(); io_loop->PostTask(FROM_HERE, base::Bind(&GpuChannelHost::MessageFilter::AddRoute, channel_filter_.get(), route_id, listener, MessageLoopProxy::current())); } void GpuChannelHost::RemoveRoute(int route_id) { scoped_refptr<base::MessageLoopProxy> io_loop = factory_->GetIOLoopProxy(); io_loop->PostTask(FROM_HERE, base::Bind(&GpuChannelHost::MessageFilter::RemoveRoute, channel_filter_.get(), route_id)); } base::SharedMemoryHandle GpuChannelHost::ShareToGpuProcess( base::SharedMemoryHandle source_handle) { if (IsLost()) return base::SharedMemory::NULLHandle(); #if defined(OS_WIN) // Windows needs to explicitly duplicate the handle out to another process. base::SharedMemoryHandle target_handle; if (!BrokerDuplicateHandle(source_handle, channel_->GetPeerPID(), &target_handle, FILE_GENERIC_READ | FILE_GENERIC_WRITE, 0)) { return base::SharedMemory::NULLHandle(); } return target_handle; #else int duped_handle = HANDLE_EINTR(dup(source_handle.fd)); if (duped_handle < 0) return base::SharedMemory::NULLHandle(); return base::FileDescriptor(duped_handle, true); #endif } int32 GpuChannelHost::ReserveTransferBufferId() { return next_transfer_buffer_id_.GetNext(); } gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess( gfx::GpuMemoryBufferHandle source_handle) { switch (source_handle.type) { case gfx::SHARED_MEMORY_BUFFER: { gfx::GpuMemoryBufferHandle handle; handle.type = gfx::SHARED_MEMORY_BUFFER; handle.handle = ShareToGpuProcess(source_handle.handle); return handle; } #if defined(USE_OZONE) case gfx::OZONE_NATIVE_BUFFER: return source_handle; #endif #if defined(OS_MACOSX) case gfx::IO_SURFACE_BUFFER: return source_handle; #endif #if defined(OS_ANDROID) case gfx::SURFACE_TEXTURE_BUFFER: return source_handle; #endif #if defined(USE_X11) case gfx::X11_PIXMAP_BUFFER: return source_handle; #endif default: NOTREACHED(); return gfx::GpuMemoryBufferHandle(); } } int32 GpuChannelHost::ReserveGpuMemoryBufferId() { return next_gpu_memory_buffer_id_.GetNext(); } int32 GpuChannelHost::GenerateRouteID() { return next_route_id_.GetNext(); } GpuChannelHost::~GpuChannelHost() { // channel_ must be destroyed on the main thread. if (!factory_->IsMainThread()) factory_->GetMainLoop()->DeleteSoon(FROM_HERE, channel_.release()); } GpuChannelHost::MessageFilter::MessageFilter() : lost_(false) { } GpuChannelHost::MessageFilter::~MessageFilter() {} void GpuChannelHost::MessageFilter::AddRoute( int route_id, base::WeakPtr<IPC::Listener> listener, scoped_refptr<MessageLoopProxy> loop) { DCHECK(listeners_.find(route_id) == listeners_.end()); GpuListenerInfo info; info.listener = listener; info.loop = loop; listeners_[route_id] = info; } void GpuChannelHost::MessageFilter::RemoveRoute(int route_id) { ListenerMap::iterator it = listeners_.find(route_id); if (it != listeners_.end()) listeners_.erase(it); } bool GpuChannelHost::MessageFilter::OnMessageReceived( const IPC::Message& message) { // Never handle sync message replies or we will deadlock here. if (message.is_reply()) return false; ListenerMap::iterator it = listeners_.find(message.routing_id()); if (it == listeners_.end()) return false; const GpuListenerInfo& info = it->second; info.loop->PostTask( FROM_HERE, base::Bind( base::IgnoreResult(&IPC::Listener::OnMessageReceived), info.listener, message)); return true; } void GpuChannelHost::MessageFilter::OnChannelError() { // Set the lost state before signalling the proxies. That way, if they // themselves post a task to recreate the context, they will not try to re-use // this channel host. { AutoLock lock(lock_); lost_ = true; } // Inform all the proxies that an error has occurred. This will be reported // via OpenGL as a lost context. for (ListenerMap::iterator it = listeners_.begin(); it != listeners_.end(); it++) { const GpuListenerInfo& info = it->second; info.loop->PostTask( FROM_HERE, base::Bind(&IPC::Listener::OnChannelError, info.listener)); } listeners_.clear(); } bool GpuChannelHost::MessageFilter::IsLost() const { AutoLock lock(lock_); return lost_; } } // namespace content
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jackrabbit.oak.jcr.tck; import junit.framework.Test; public class RetentionIT extends TCKBase { public static Test suite() { return new RetentionIT(); } public RetentionIT() { super("JCR retention tests"); } @Override protected void addTests() { addTest(org.apache.jackrabbit.test.api.retention.TestAll.suite()); } }