code_text
stringlengths
604
999k
repo_name
stringlengths
4
100
file_path
stringlengths
4
873
language
stringclasses
23 values
license
stringclasses
15 values
size
int32
1.02k
999k
YUI.add('attribute-base', function(Y) { /** * The State class maintains state for a collection of named items, with * a varying number of properties defined. * * It avoids the need to create a separate class for the item, and separate instances * of these classes for each item, by storing the state in a 2 level hash table, * improving performance when the number of items is likely to be large. * * @constructor * @class State */ Y.State = function() { /** * Hash of attributes * @property data */ this.data = {}; }; Y.State.prototype = { /** * Adds a property to an item. * * @method add * @param name {String} The name of the item. * @param key {String} The name of the property. * @param val {Any} The value of the property. */ add : function(name, key, val) { var d = this.data; d[key] = d[key] || {}; d[key][name] = val; }, /** * Adds multiple properties to an item. * * @method addAll * @param name {String} The name of the item. * @param o {Object} A hash of property/value pairs. */ addAll: function(name, o) { var key; for (key in o) { if (o.hasOwnProperty(key)) { this.add(name, key, o[key]); } } }, /** * Removes a property from an item. * * @method remove * @param name {String} The name of the item. * @param key {String} The property to remove. */ remove: function(name, key) { var d = this.data; if (d[key] && (name in d[key])) { delete d[key][name]; } }, /** * Removes multiple properties from an item, or remove the item completely. * * @method removeAll * @param name {String} The name of the item. * @param o {Object|Array} Collection of properties to delete. If not provided, the entire item is removed. */ removeAll: function(name, o) { var d = this.data; Y.each(o || d, function(v, k) { if(Y.Lang.isString(k)) { this.remove(name, k); } else { this.remove(name, v); } }, this); }, /** * For a given item, returns the value of the property requested, or undefined if not found. * * @method get * @param name {String} The name of the item * @param key {String} Optional. The property value to retrieve. * @return {Any} The value of the supplied property. */ get: function(name, key) { var d = this.data; return (d[key] && name in d[key]) ? d[key][name] : undefined; }, /** * For the given item, returns a disposable object with all of the * item's property/value pairs. * * @method getAll * @param name {String} The name of the item * @return {Object} An object with property/value pairs for the item. */ getAll : function(name) { var d = this.data, o; Y.each(d, function(v, k) { if (name in d[k]) { o = o || {}; o[k] = v[name]; } }, this); return o; } }; /** * The attribute module provides an augmentable Attribute implementation, which * adds configurable attributes and attribute change events to the class being * augmented. It also provides a State class, which is used internally by Attribute, * but can also be used independently to provide a name/property/value data structure to * store state. * * @module attribute */ /** * The attribute-base submodule provides core attribute handling support, with everything * aside from complex attribute handling in the provider's constructor. * * @module attribute * @submodule attribute-base */ var O = Y.Object, Lang = Y.Lang, EventTarget = Y.EventTarget, DOT = ".", CHANGE = "Change", // Externally configurable props GETTER = "getter", SETTER = "setter", READ_ONLY = "readOnly", WRITE_ONCE = "writeOnce", INIT_ONLY = "initOnly", VALIDATOR = "validator", VALUE = "value", VALUE_FN = "valueFn", BROADCAST = "broadcast", LAZY_ADD = "lazyAdd", BYPASS_PROXY = "_bypassProxy", // Used for internal state management ADDED = "added", INITIALIZING = "initializing", INIT_VALUE = "initValue", PUBLISHED = "published", DEF_VALUE = "defaultValue", LAZY = "lazy", IS_LAZY_ADD = "isLazyAdd", INVALID_VALUE, MODIFIABLE = {}; // Properties which can be changed after the attribute has been added. MODIFIABLE[READ_ONLY] = 1; MODIFIABLE[WRITE_ONCE] = 1; MODIFIABLE[GETTER] = 1; MODIFIABLE[BROADCAST] = 1; /** * <p> * Attribute provides configurable attribute support along with attribute change events. It is designed to be * augmented on to a host class, and provides the host with the ability to configure attributes to store and retrieve state, * along with attribute change events. * </p> * <p>For example, attributes added to the host can be configured:</p> * <ul> * <li>As read only.</li> * <li>As write once.</li> * <li>With a setter function, which can be used to manipulate * values passed to Attribute's <a href="#method_set">set</a> method, before they are stored.</li> * <li>With a getter function, which can be used to manipulate stored values, * before they are returned by Attribute's <a href="#method_get">get</a> method.</li> * <li>With a validator function, to validate values before they are stored.</li> * </ul> * * <p>See the <a href="#method_addAttr">addAttr</a> method, for the complete set of configuration * options available for attributes</p>. * * <p><strong>NOTE:</strong> Most implementations will be better off extending the <a href="Base.html">Base</a> class, * instead of augmenting Attribute directly. Base augments Attribute and will handle the initial configuration * of attributes for derived classes, accounting for values passed into the constructor.</p> * * @class Attribute * @uses EventTarget */ function Attribute() { Y.log('Attribute constructor called', 'info', 'attribute'); var host = this, // help compression attrs = this.constructor.ATTRS, Base = Y.Base; // Perf tweak - avoid creating event literals if not required. host._ATTR_E_FACADE = {}; EventTarget.call(host, {emitFacade:true}); // _conf maintained for backwards compat host._conf = host._state = new Y.State(); host._stateProxy = host._stateProxy || null; host._requireAddAttr = host._requireAddAttr || false; // ATTRS support for Node, which is not Base based if ( attrs && !(Base && host instanceof Base)) { host.addAttrs(this._protectAttrs(attrs)); } } /** * <p>The value to return from an attribute setter in order to prevent the set from going through.</p> * * <p>You can return this value from your setter if you wish to combine validator and setter * functionality into a single setter function, which either returns the massaged value to be stored or * Attribute.INVALID_VALUE to prevent invalid values from being stored.</p> * * @property Attribute.INVALID_VALUE * @type Object * @static * @final */ Attribute.INVALID_VALUE = {}; INVALID_VALUE = Attribute.INVALID_VALUE; /** * The list of properties which can be configured for * each attribute (e.g. setter, getter, writeOnce etc.). * * This property is used internally as a whitelist for faster * Y.mix operations. * * @property Attribute._ATTR_CFG * @type Array * @static * @protected */ Attribute._ATTR_CFG = [SETTER, GETTER, VALIDATOR, VALUE, VALUE_FN, WRITE_ONCE, READ_ONLY, LAZY_ADD, BROADCAST, BYPASS_PROXY]; Attribute.prototype = { /** * <p> * Adds an attribute with the provided configuration to the host object. * </p> * <p> * The config argument object supports the following properties: * </p> * * <dl> * <dt>value &#60;Any&#62;</dt> * <dd>The initial value to set on the attribute</dd> * * <dt>valueFn &#60;Function | String&#62;</dt> * <dd> * <p>A function, which will return the initial value to set on the attribute. This is useful * for cases where the attribute configuration is defined statically, but needs to * reference the host instance ("this") to obtain an initial value. * If defined, valueFn has precedence over the value property.</p> * * <p>valueFn can also be set to a string, representing the name of the instance method to be used to retrieve the value.</p> * </dd> * * <dt>readOnly &#60;boolean&#62;</dt> * <dd>Whether or not the attribute is read only. Attributes having readOnly set to true * cannot be modified by invoking the set method.</dd> * * <dt>writeOnce &#60;boolean&#62;</dt> * <dd>Whether or not the attribute is "write once". Attributes having writeOnce set to true, * can only have their values set once, be it through the default configuration, * constructor configuration arguments, or by invoking set.</dd> * * <dt>setter &#60;Function | String&#62;</dt> * <dd> * <p>The setter function used to massage or normalize the value passed to the set method for the attribute. * The value returned by the setter will be the final stored value. Returning * <a href="#property_Attribute.INVALID_VALUE">Attribute.INVALID_VALUE</a>, from the setter will prevent * the value from being stored. * </p> * * <p>setter can also be set to a string, representing the name of the instance method to be used as the setter function.</p> * </dd> * * <dt>getter &#60;Function | String&#62;</dt> * <dd> * <p> * The getter function used to massage or normalize the value returned by the get method for the attribute. * The value returned by the getter function is the value which will be returned to the user when they * invoke get. * </p> * * <p>getter can also be set to a string, representing the name of the instance method to be used as the getter function.</p> * </dd> * * <dt>validator &#60;Function | String&#62;</dt> * <dd> * <p> * The validator function invoked prior to setting the stored value. Returning * false from the validator function will prevent the value from being stored. * </p> * * <p>validator can also be set to a string, representing the name of the instance method to be used as the validator function.</p> * </dd> * * <dt>broadcast &#60;int&#62;</dt> * <dd>If and how attribute change events for this attribute should be broadcast. See CustomEvent's <a href="CustomEvent.html#property_broadcast">broadcast</a> property for * valid values. By default attribute change events are not broadcast.</dd> * * <dt>lazyAdd &#60;boolean&#62;</dt> * <dd>Whether or not to delay initialization of the attribute until the first call to get/set it. * This flag can be used to over-ride lazy initialization on a per attribute basis, when adding multiple attributes through * the <a href="#method_addAttrs">addAttrs</a> method.</dd> * * </dl> * * <p>The setter, getter and validator are invoked with the value and name passed in as the first and second arguments, and with * the context ("this") set to the host object.</p> * * <p>Configuration properties outside of the list mentioned above are considered private properties used internally by attribute, and are not intended for public use.</p> * * @method addAttr * * @param {String} name The name of the attribute. * @param {Object} config An object with attribute configuration property/value pairs, specifying the configuration for the attribute. * * <p> * <strong>NOTE:</strong> The configuration object is modified when adding an attribute, so if you need * to protect the original values, you will need to merge the object. * </p> * * @param {boolean} lazy (optional) Whether or not to add this attribute lazily (on the first call to get/set). * * @return {Object} A reference to the host object. * * @chainable */ addAttr: function(name, config, lazy) { Y.log('Adding attribute: ' + name, 'info', 'attribute'); var host = this, // help compression state = host._state, value, hasValue; lazy = (LAZY_ADD in config) ? config[LAZY_ADD] : lazy; if (lazy && !host.attrAdded(name)) { state.add(name, LAZY, config || {}); state.add(name, ADDED, true); } else { if (host.attrAdded(name) && !state.get(name, IS_LAZY_ADD)) { Y.log('Attribute: ' + name + ' already exists. Cannot add it again without removing it first', 'warn', 'attribute'); } if (!host.attrAdded(name) || state.get(name, IS_LAZY_ADD)) { config = config || {}; hasValue = (VALUE in config); if (config.readOnly && !hasValue) { Y.log('readOnly attribute: ' + name + ', added without an initial value. Value will be set on initial call to set', 'warn', 'attribute');} if(hasValue) { // We'll go through set, don't want to set value in config directly value = config.value; delete config.value; } config.added = true; config.initializing = true; state.addAll(name, config); if (hasValue) { // Go through set, so that raw values get normalized/validated host.set(name, value); } state.remove(name, INITIALIZING); } } return host; }, /** * Checks if the given attribute has been added to the host * * @method attrAdded * @param {String} name The name of the attribute to check. * @return {boolean} true if an attribute with the given name has been added, false if it hasn't. This method will return true for lazily added attributes. */ attrAdded: function(name) { return !!this._state.get(name, ADDED); }, /** * Updates the configuration of an attribute which has already been added. * <p> * The properties which can be modified through this interface are limited * to the following subset of attributes, which can be safely modified * after a value has already been set on the attribute: readOnly, writeOnce, * broadcast and getter. * </p> * @method modifyAttr * @param {String} name The name of the attribute whose configuration is to be updated. * @param {Object} config An object with configuration property/value pairs, specifying the configuration properties to modify. */ modifyAttr: function(name, config) { var host = this, // help compression prop, state; if (host.attrAdded(name)) { if (host._isLazyAttr(name)) { host._addLazyAttr(name); } state = host._state; for (prop in config) { if (MODIFIABLE[prop] && config.hasOwnProperty(prop)) { state.add(name, prop, config[prop]); // If we reconfigured broadcast, need to republish if (prop === BROADCAST) { state.remove(name, PUBLISHED); } } } } if (!host.attrAdded(name)) {Y.log('Attribute modifyAttr:' + name + ' has not been added. Use addAttr to add the attribute', 'warn', 'attribute');} }, /** * Removes an attribute from the host object * * @method removeAttr * @param {String} name The name of the attribute to be removed. */ removeAttr: function(name) { this._state.removeAll(name); }, /** * Returns the current value of the attribute. If the attribute * has been configured with a 'getter' function, this method will delegate * to the 'getter' to obtain the value of the attribute. * * @method get * * @param {String} name The name of the attribute. If the value of the attribute is an Object, * dot notation can be used to obtain the value of a property of the object (e.g. <code>get("x.y.z")</code>) * * @return {Any} The value of the attribute */ get : function(name) { return this._getAttr(name); }, /** * Checks whether or not the attribute is one which has been * added lazily and still requires initialization. * * @method _isLazyAttr * @private * @param {String} name The name of the attribute * @return {boolean} true if it's a lazily added attribute, false otherwise. */ _isLazyAttr: function(name) { return this._state.get(name, LAZY); }, /** * Finishes initializing an attribute which has been lazily added. * * @method _addLazyAttr * @private * @param {Object} name The name of the attribute */ _addLazyAttr: function(name) { var state = this._state, lazyCfg = state.get(name, LAZY); state.add(name, IS_LAZY_ADD, true); state.remove(name, LAZY); this.addAttr(name, lazyCfg); }, /** * Sets the value of an attribute. * * @method set * @chainable * * @param {String} name The name of the attribute. If the * current value of the attribute is an Object, dot notation can be used * to set the value of a property within the object (e.g. <code>set("x.y.z", 5)</code>). * * @param {Any} value The value to set the attribute to. * * @param {Object} opts (Optional) Optional event data to be mixed into * the event facade passed to subscribers of the attribute's change event. This * can be used as a flexible way to identify the source of a call to set, allowing * the developer to distinguish between set called internally by the host, vs. * set called externally by the application developer. * * @return {Object} A reference to the host object. */ set : function(name, val, opts) { return this._setAttr(name, val, opts); }, /** * Resets the attribute (or all attributes) to its initial value, as long as * the attribute is not readOnly, or writeOnce. * * @method reset * @param {String} name Optional. The name of the attribute to reset. If omitted, all attributes are reset. * @return {Object} A reference to the host object. * @chainable */ reset : function(name) { var host = this, // help compression added; if (name) { if (host._isLazyAttr(name)) { host._addLazyAttr(name); } host.set(name, host._state.get(name, INIT_VALUE)); } else { added = host._state.data.added; Y.each(added, function(v, n) { host.reset(n); }, host); } return host; }, /** * Allows setting of readOnly/writeOnce attributes. See <a href="#method_set">set</a> for argument details. * * @method _set * @protected * @chainable * * @param {String} name The name of the attribute. * @param {Any} val The value to set the attribute to. * @param {Object} opts (Optional) Optional event data to be mixed into * the event facade passed to subscribers of the attribute's change event. * @return {Object} A reference to the host object. */ _set : function(name, val, opts) { return this._setAttr(name, val, opts, true); }, /** * Provides the common implementation for the public get method, * allowing Attribute hosts to over-ride either method. * * See <a href="#method_get">get</a> for argument details. * * @method _getAttr * @protected * @chainable * * @param {String} name The name of the attribute. * @return {Any} The value of the attribute. */ _getAttr : function(name) { var host = this, // help compression fullName = name, state = host._state, path, getter, val, cfg; if (name.indexOf(DOT) !== -1) { path = name.split(DOT); name = path.shift(); } // On Demand - Should be rare - handles out of order valueFn references if (host._tCfgs && host._tCfgs[name]) { cfg = {}; cfg[name] = host._tCfgs[name]; delete host._tCfgs[name]; host._addAttrs(cfg, host._tVals); } // Lazy Init if (host._isLazyAttr(name)) { host._addLazyAttr(name); } val = host._getStateVal(name); getter = state.get(name, GETTER); if (getter && !getter.call) { getter = this[getter]; } val = (getter) ? getter.call(host, val, fullName) : val; val = (path) ? O.getValue(val, path) : val; return val; }, /** * Provides the common implementation for the public set and protected _set methods. * * See <a href="#method_set">set</a> for argument details. * * @method _setAttr * @protected * @chainable * * @param {String} name The name of the attribute. * @param {Any} value The value to set the attribute to. * @param {Object} opts (Optional) Optional event data to be mixed into * the event facade passed to subscribers of the attribute's change event. * @param {boolean} force If true, allows the caller to set values for * readOnly or writeOnce attributes which have already been set. * * @return {Object} A reference to the host object. */ _setAttr : function(name, val, opts, force) { var allowSet = true, state = this._state, stateProxy = this._stateProxy, data = state.data, initialSet, strPath, path, currVal, writeOnce, initializing; if (name.indexOf(DOT) !== -1) { strPath = name; path = name.split(DOT); name = path.shift(); } if (this._isLazyAttr(name)) { this._addLazyAttr(name); } initialSet = (!data.value || !(name in data.value)); if (stateProxy && name in stateProxy && !this._state.get(name, BYPASS_PROXY)) { // TODO: Value is always set for proxy. Can we do any better? Maybe take a snapshot as the initial value for the first call to set? initialSet = false; } if (this._requireAddAttr && !this.attrAdded(name)) { Y.log('Set attribute:' + name + ', aborted; Attribute is not configured', 'warn', 'attribute'); } else { writeOnce = state.get(name, WRITE_ONCE); initializing = state.get(name, INITIALIZING); if (!initialSet && !force) { if (writeOnce) { Y.log('Set attribute:' + name + ', aborted; Attribute is writeOnce', 'warn', 'attribute'); allowSet = false; } if (state.get(name, READ_ONLY)) { Y.log('Set attribute:' + name + ', aborted; Attribute is readOnly', 'warn', 'attribute'); allowSet = false; } } if (!initializing && !force && writeOnce === INIT_ONLY) { Y.log('Set attribute:' + name + ', aborted; Attribute is writeOnce: "initOnly"', 'warn', 'attribute'); allowSet = false; } if (allowSet) { // Don't need currVal if initialSet (might fail in custom getter if it always expects a non-undefined/non-null value) if (!initialSet) { currVal = this.get(name); } if (path) { val = O.setValue(Y.clone(currVal), path, val); if (val === undefined) { Y.log('Set attribute path:' + strPath + ', aborted; Path is invalid', 'warn', 'attribute'); allowSet = false; } } if (allowSet) { if (initializing) { this._setAttrVal(name, strPath, currVal, val); } else { this._fireAttrChange(name, strPath, currVal, val, opts); } } } } return this; }, /** * Utility method to help setup the event payload and fire the attribute change event. * * @method _fireAttrChange * @private * @param {String} attrName The name of the attribute * @param {String} subAttrName The full path of the property being changed, * if this is a sub-attribute value being change. Otherwise null. * @param {Any} currVal The current value of the attribute * @param {Any} newVal The new value of the attribute * @param {Object} opts Any additional event data to mix into the attribute change event's event facade. */ _fireAttrChange : function(attrName, subAttrName, currVal, newVal, opts) { var host = this, eventName = attrName + CHANGE, state = host._state, facade; if (!state.get(attrName, PUBLISHED)) { host.publish(eventName, { queuable:false, defaultTargetOnly: true, defaultFn:host._defAttrChangeFn, silent:true, broadcast : state.get(attrName, BROADCAST) }); state.add(attrName, PUBLISHED, true); } facade = (opts) ? Y.merge(opts) : host._ATTR_E_FACADE; facade.type = eventName; facade.attrName = attrName; facade.subAttrName = subAttrName; facade.prevVal = currVal; facade.newVal = newVal; host.fire(facade); }, /** * Default function for attribute change events. * * @private * @method _defAttrChangeFn * @param {EventFacade} e The event object for attribute change events. */ _defAttrChangeFn : function(e) { if (!this._setAttrVal(e.attrName, e.subAttrName, e.prevVal, e.newVal)) { Y.log('State not updated and stopImmediatePropagation called for attribute: ' + e.attrName + ' , value:' + e.newVal, 'warn', 'attribute'); // Prevent "after" listeners from being invoked since nothing changed. e.stopImmediatePropagation(); } else { e.newVal = this.get(e.attrName); } }, /** * Gets the stored value for the attribute, from either the * internal state object, or the state proxy if it exits * * @method _getStateVal * @private * @param {String} name The name of the attribute * @return {Any} The stored value of the attribute */ _getStateVal : function(name) { var stateProxy = this._stateProxy; return stateProxy && (name in stateProxy) && !this._state.get(name, BYPASS_PROXY) ? stateProxy[name] : this._state.get(name, VALUE); }, /** * Sets the stored value for the attribute, in either the * internal state object, or the state proxy if it exits * * @method _setStateVal * @private * @param {String} name The name of the attribute * @param {Any} value The value of the attribute */ _setStateVal : function(name, value) { var stateProxy = this._stateProxy; if (stateProxy && (name in stateProxy) && !this._state.get(name, BYPASS_PROXY)) { stateProxy[name] = value; } else { this._state.add(name, VALUE, value); } }, /** * Updates the stored value of the attribute in the privately held State object, * if validation and setter passes. * * @method _setAttrVal * @private * @param {String} attrName The attribute name. * @param {String} subAttrName The sub-attribute name, if setting a sub-attribute property ("x.y.z"). * @param {Any} prevVal The currently stored value of the attribute. * @param {Any} newVal The value which is going to be stored. * * @return {booolean} true if the new attribute value was stored, false if not. */ _setAttrVal : function(attrName, subAttrName, prevVal, newVal) { var host = this, allowSet = true, state = host._state, validator = state.get(attrName, VALIDATOR), setter = state.get(attrName, SETTER), initializing = state.get(attrName, INITIALIZING), prevValRaw = this._getStateVal(attrName), name = subAttrName || attrName, retVal, valid; if (validator) { if (!validator.call) { // Assume string - trying to keep critical path tight, so avoiding Lang check validator = this[validator]; } if (validator) { valid = validator.call(host, newVal, name); if (!valid && initializing) { newVal = state.get(attrName, DEF_VALUE); valid = true; // Assume it's valid, for perf. } } } if (!validator || valid) { if (setter) { if (!setter.call) { // Assume string - trying to keep critical path tight, so avoiding Lang check setter = this[setter]; } if (setter) { retVal = setter.call(host, newVal, name); if (retVal === INVALID_VALUE) { Y.log('Attribute: ' + attrName + ', setter returned Attribute.INVALID_VALUE for value:' + newVal, 'warn', 'attribute'); allowSet = false; } else if (retVal !== undefined){ Y.log('Attribute: ' + attrName + ', raw value: ' + newVal + ' modified by setter to:' + retVal, 'info', 'attribute'); newVal = retVal; } } } if (allowSet) { if(!subAttrName && (newVal === prevValRaw) && !Lang.isObject(newVal)) { Y.log('Attribute: ' + attrName + ', value unchanged:' + newVal, 'warn', 'attribute'); allowSet = false; } else { // Store value if (state.get(attrName, INIT_VALUE) === undefined) { state.add(attrName, INIT_VALUE, newVal); } host._setStateVal(attrName, newVal); } } } else { Y.log('Attribute:' + attrName + ', Validation failed for value:' + newVal, 'warn', 'attribute'); allowSet = false; } return allowSet; }, /** * Sets multiple attribute values. * * @method setAttrs * @param {Object} attrs An object with attributes name/value pairs. * @return {Object} A reference to the host object. * @chainable */ setAttrs : function(attrs, opts) { return this._setAttrs(attrs, opts); }, /** * Implementation behind the public setAttrs method, to set multiple attribute values. * * @method _setAttrs * @protected * @param {Object} attrs An object with attributes name/value pairs. * @return {Object} A reference to the host object. * @chainable */ _setAttrs : function(attrs, opts) { for (var attr in attrs) { if ( attrs.hasOwnProperty(attr) ) { this.set(attr, attrs[attr]); } } return this; }, /** * Gets multiple attribute values. * * @method getAttrs * @param {Array | boolean} attrs Optional. An array of attribute names. If omitted, all attribute values are * returned. If set to true, all attributes modified from their initial values are returned. * @return {Object} An object with attribute name/value pairs. */ getAttrs : function(attrs) { return this._getAttrs(attrs); }, /** * Implementation behind the public getAttrs method, to get multiple attribute values. * * @method _getAttrs * @protected * @param {Array | boolean} attrs Optional. An array of attribute names. If omitted, all attribute values are * returned. If set to true, all attributes modified from their initial values are returned. * @return {Object} An object with attribute name/value pairs. */ _getAttrs : function(attrs) { var host = this, o = {}, i, l, attr, val, modifiedOnly = (attrs === true); attrs = (attrs && !modifiedOnly) ? attrs : O.keys(host._state.data.added); for (i = 0, l = attrs.length; i < l; i++) { // Go through get, to honor cloning/normalization attr = attrs[i]; val = host.get(attr); if (!modifiedOnly || host._getStateVal(attr) != host._state.get(attr, INIT_VALUE)) { o[attr] = host.get(attr); } } return o; }, /** * Configures a group of attributes, and sets initial values. * * <p> * <strong>NOTE:</strong> This method does not isolate the configuration object by merging/cloning. * The caller is responsible for merging/cloning the configuration object if required. * </p> * * @method addAttrs * @chainable * * @param {Object} cfgs An object with attribute name/configuration pairs. * @param {Object} values An object with attribute name/value pairs, defining the initial values to apply. * Values defined in the cfgs argument will be over-written by values in this argument unless defined as read only. * @param {boolean} lazy Whether or not to delay the intialization of these attributes until the first call to get/set. * Individual attributes can over-ride this behavior by defining a lazyAdd configuration property in their configuration. * See <a href="#method_addAttr">addAttr</a>. * * @return {Object} A reference to the host object. */ addAttrs : function(cfgs, values, lazy) { var host = this; // help compression if (cfgs) { host._tCfgs = cfgs; host._tVals = host._normAttrVals(values); host._addAttrs(cfgs, host._tVals, lazy); host._tCfgs = host._tVals = null; } return host; }, /** * Implementation behind the public addAttrs method. * * This method is invoked directly by get if it encounters a scenario * in which an attribute's valueFn attempts to obtain the * value an attribute in the same group of attributes, which has not yet * been added (on demand initialization). * * @method _addAttrs * @private * @param {Object} cfgs An object with attribute name/configuration pairs. * @param {Object} values An object with attribute name/value pairs, defining the initial values to apply. * Values defined in the cfgs argument will be over-written by values in this argument unless defined as read only. * @param {boolean} lazy Whether or not to delay the intialization of these attributes until the first call to get/set. * Individual attributes can over-ride this behavior by defining a lazyAdd configuration property in their configuration. * See <a href="#method_addAttr">addAttr</a>. */ _addAttrs : function(cfgs, values, lazy) { var host = this, // help compression attr, attrCfg, value; for (attr in cfgs) { if (cfgs.hasOwnProperty(attr)) { // Not Merging. Caller is responsible for isolating configs attrCfg = cfgs[attr]; attrCfg.defaultValue = attrCfg.value; // Handle simple, complex and user values, accounting for read-only value = host._getAttrInitVal(attr, attrCfg, host._tVals); if (value !== undefined) { attrCfg.value = value; } if (host._tCfgs[attr]) { delete host._tCfgs[attr]; } host.addAttr(attr, attrCfg, lazy); } } }, /** * Utility method to protect an attribute configuration * hash, by merging the entire object and the individual * attr config objects. * * @method _protectAttrs * @protected * @param {Object} attrs A hash of attribute to configuration object pairs. * @return {Object} A protected version of the attrs argument. */ _protectAttrs : function(attrs) { if (attrs) { attrs = Y.merge(attrs); for (var attr in attrs) { if (attrs.hasOwnProperty(attr)) { attrs[attr] = Y.merge(attrs[attr]); } } } return attrs; }, /** * Utility method to normalize attribute values. The base implementation * simply merges the hash to protect the original. * * @method _normAttrVals * @param {Object} valueHash An object with attribute name/value pairs * * @return {Object} * * @private */ _normAttrVals : function(valueHash) { return (valueHash) ? Y.merge(valueHash) : null; }, /** * Returns the initial value of the given attribute from * either the default configuration provided, or the * over-ridden value if it exists in the set of initValues * provided and the attribute is not read-only. * * @param {String} attr The name of the attribute * @param {Object} cfg The attribute configuration object * @param {Object} initValues The object with simple and complex attribute name/value pairs returned from _normAttrVals * * @return {Any} The initial value of the attribute. * * @method _getAttrInitVal * @private */ _getAttrInitVal : function(attr, cfg, initValues) { var val, valFn; // init value is provided by the user if it exists, else, provided by the config if (!cfg[READ_ONLY] && initValues && initValues.hasOwnProperty(attr)) { val = initValues[attr]; } else { val = cfg[VALUE]; valFn = cfg[VALUE_FN]; if (valFn) { if (!valFn.call) { valFn = this[valFn]; } if (valFn) { val = valFn.call(this); } } } Y.log('initValue for ' + attr + ':' + val, 'info', 'attribute'); return val; } }; // Basic prototype augment - no lazy constructor invocation. Y.mix(Attribute, EventTarget, false, null, 1); Y.Attribute = Attribute; }, '@VERSION@' ,{requires:['event-custom']});
ahocevar/cdnjs
ajax/libs/yui/3.1.0/attribute/attribute-base-debug.js
JavaScript
mit
43,819
YUI.add('event-custom-complex', function(Y) { /** * Adds event facades, preventable default behavior, and bubbling. * events. * @module event-custom * @submodule event-custom-complex */ (function() { var FACADE, FACADE_KEYS, CEProto = Y.CustomEvent.prototype, ETProto = Y.EventTarget.prototype; /** * Wraps and protects a custom event for use when emitFacade is set to true. * Requires the event-custom-complex module * @class EventFacade * @param e {Event} the custom event * @param currentTarget {HTMLElement} the element the listener was attached to */ Y.EventFacade = function(e, currentTarget) { e = e || {}; /** * The arguments passed to fire * @property details * @type Array */ this.details = e.details; /** * The event type, this can be overridden by the fire() payload * @property type * @type string */ this.type = e.type; /** * The real event type * @property type * @type string */ this._type = e.type; ////////////////////////////////////////////////////// /** * Node reference for the targeted eventtarget * @propery target * @type Node */ this.target = e.target; /** * Node reference for the element that the listener was attached to. * @propery currentTarget * @type Node */ this.currentTarget = currentTarget; /** * Node reference to the relatedTarget * @propery relatedTarget * @type Node */ this.relatedTarget = e.relatedTarget; /** * Stops the propagation to the next bubble target * @method stopPropagation */ this.stopPropagation = function() { e.stopPropagation(); }; /** * Stops the propagation to the next bubble target and * prevents any additional listeners from being exectued * on the current target. * @method stopImmediatePropagation */ this.stopImmediatePropagation = function() { e.stopImmediatePropagation(); }; /** * Prevents the event's default behavior * @method preventDefault */ this.preventDefault = function() { e.preventDefault(); }; /** * Stops the event propagation and prevents the default * event behavior. * @method halt * @param immediate {boolean} if true additional listeners * on the current target will not be executed */ this.halt = function(immediate) { e.halt(immediate); }; }; CEProto.fireComplex = function(args) { var es = Y.Env._eventstack, ef, q, queue, ce, ret, events, subs, self = this, host = self.host || self, next, oldbubble; if (es) { // queue this event if the current item in the queue bubbles if (self.queuable && self.type != es.next.type) { self.log('queue ' + self.type); es.queue.push([self, args]); return true; } } else { Y.Env._eventstack = { // id of the first event in the stack id: self.id, next: self, silent: self.silent, stopped: 0, prevented: 0, bubbling: null, type: self.type, // defaultFnQueue: new Y.Queue(), afterQueue: new Y.Queue(), defaultTargetOnly: self.defaultTargetOnly, queue: [] }; es = Y.Env._eventstack; } subs = self.getSubs(); self.stopped = (self.type !== es.type) ? 0 : es.stopped; self.prevented = (self.type !== es.type) ? 0 : es.prevented; self.target = self.target || host; events = new Y.EventTarget({ fireOnce: true, context: host }); self.events = events; if (self.preventedFn) { events.on('prevented', self.preventedFn); } if (self.stoppedFn) { events.on('stopped', self.stoppedFn); } self.currentTarget = host; self.details = args.slice(); // original arguments in the details // self.log("Firing " + self + ", " + "args: " + args); self.log("Firing " + self.type); self._facade = null; // kill facade to eliminate stale properties ef = self._getFacade(args); if (Y.Lang.isObject(args[0])) { args[0] = ef; } else { args.unshift(ef); } // if (subCount) { if (subs[0]) { // self._procSubs(Y.merge(self.subscribers), args, ef); self._procSubs(subs[0], args, ef); } // bubble if this is hosted in an event target and propagation has not been stopped if (self.bubbles && host.bubble && !self.stopped) { oldbubble = es.bubbling; // self.bubbling = true; es.bubbling = self.type; // if (host !== ef.target || es.type != self.type) { if (es.type != self.type) { es.stopped = 0; es.prevented = 0; } ret = host.bubble(self); self.stopped = Math.max(self.stopped, es.stopped); self.prevented = Math.max(self.prevented, es.prevented); // self.bubbling = false; es.bubbling = oldbubble; } // execute the default behavior if not prevented // console.log('defaultTargetOnly: ' + self.defaultTargetOnly); // console.log('host === target: ' + (host === ef.target)); // if (self.defaultFn && !self.prevented && ((!self.defaultTargetOnly) || host === es.id === self.id)) { if (self.defaultFn && !self.prevented && ((!self.defaultTargetOnly && !es.defaultTargetOnly) || host === ef.target)) { // if (es.id === self.id) { // self.defaultFn.apply(host, args); // while ((next = es.defaultFnQueue.last())) { // next(); // } // } else { // es.defaultFnQueue.add(function() { // self.defaultFn.apply(host, args); // }); // } self.defaultFn.apply(host, args); } // broadcast listeners are fired as discreet events on the // YUI instance and potentially the YUI global. self._broadcast(args); // process after listeners. If the default behavior was // prevented, the after events don't fire. // if (self.afterCount && !self.prevented && self.stopped < 2) { // if (subs[1] && !self.prevented && self.stopped < 2) { // // self._procSubs(Y.merge(self.afters), args, ef); // self._procSubs(subs[1], args, ef); // } // Queue the after if (subs[1] && !self.prevented && self.stopped < 2) { if (es.id === self.id || self.type != host._yuievt.bubbling) { self._procSubs(subs[1], args, ef); while ((next = es.afterQueue.last())) { next(); } } else { es.afterQueue.add(function() { self._procSubs(subs[1], args, ef); }); } } self.target = null; // es.stopped = 0; // es.prevented = 0; if (es.id === self.id) { queue = es.queue; while (queue.length) { q = queue.pop(); ce = q[0]; // set up stack to allow the next item to be processed es.next = ce; ce.fire.apply(ce, q[1]); // es.stopped = 0; // es.prevented = 0; } Y.Env._eventstack = null; } ret = !(self.stopped); if (self.type != host._yuievt.bubbling) { es.stopped = 0; es.prevented = 0; self.stopped = 0; self.prevented = 0; } return ret; }; CEProto._getFacade = function() { var ef = this._facade, o, o2, args = this.details; if (!ef) { ef = new Y.EventFacade(this, this.currentTarget); } // if the first argument is an object literal, apply the // properties to the event facade o = args && args[0]; if (Y.Lang.isObject(o, true)) { o2 = {}; // protect the event facade properties Y.mix(o2, ef, true, FACADE_KEYS); // mix the data Y.mix(ef, o, true); // restore ef Y.mix(ef, o2, true, FACADE_KEYS); // Allow the event type to be faked // http://yuilibrary.com/projects/yui3/ticket/2528376 ef.type = o.type || ef.type; } // update the details field with the arguments // ef.type = this.type; ef.details = this.details; // use the original target when the event bubbled to this target ef.target = this.originalTarget || this.target; ef.currentTarget = this.currentTarget; ef.stopped = 0; ef.prevented = 0; this._facade = ef; return this._facade; }; /** * Stop propagation to bubble targets * @for CustomEvent * @method stopPropagation */ CEProto.stopPropagation = function() { this.stopped = 1; Y.Env._eventstack.stopped = 1; this.events.fire('stopped', this); }; /** * Stops propagation to bubble targets, and prevents any remaining * subscribers on the current target from executing. * @method stopImmediatePropagation */ CEProto.stopImmediatePropagation = function() { this.stopped = 2; Y.Env._eventstack.stopped = 2; this.events.fire('stopped', this); }; /** * Prevents the execution of this event's defaultFn * @method preventDefault */ CEProto.preventDefault = function() { if (this.preventable) { this.prevented = 1; Y.Env._eventstack.prevented = 1; this.events.fire('prevented', this); } }; /** * Stops the event propagation and prevents the default * event behavior. * @method halt * @param immediate {boolean} if true additional listeners * on the current target will not be executed */ CEProto.halt = function(immediate) { if (immediate) { this.stopImmediatePropagation(); } else { this.stopPropagation(); } this.preventDefault(); }; /** * Registers another EventTarget as a bubble target. Bubble order * is determined by the order registered. Multiple targets can * be specified. * * Events can only bubble if emitFacade is true. * * Included in the event-custom-complex submodule. * * @method addTarget * @param o {EventTarget} the target to add * @for EventTarget */ ETProto.addTarget = function(o) { this._yuievt.targets[Y.stamp(o)] = o; this._yuievt.hasTargets = true; }; /** * Returns an array of bubble targets for this object. * @method getTargets * @return EventTarget[] */ ETProto.getTargets = function() { return Y.Object.values(this._yuievt.targets); }; /** * Removes a bubble target * @method removeTarget * @param o {EventTarget} the target to remove * @for EventTarget */ ETProto.removeTarget = function(o) { delete this._yuievt.targets[Y.stamp(o)]; }; /** * Propagate an event. Requires the event-custom-complex module. * @method bubble * @param evt {Event.Custom} the custom event to propagate * @return {boolean} the aggregated return value from Event.Custom.fire * @for EventTarget */ ETProto.bubble = function(evt, args, target) { var targs = this._yuievt.targets, ret = true, t, type = evt && evt.type, ce, i, bc, ce2, originalTarget = target || (evt && evt.target) || this, es = Y.Env._eventstack, oldbubble; if (!evt || ((!evt.stopped) && targs)) { // Y.log('Bubbling ' + evt.type); for (i in targs) { if (targs.hasOwnProperty(i)) { t = targs[i]; ce = t.getEvent(type, true); ce2 = t.getSibling(type, ce); if (ce2 && !ce) { ce = t.publish(type); } oldbubble = t._yuievt.bubbling; t._yuievt.bubbling = type; // if this event was not published on the bubble target, // continue propagating the event. if (!ce) { if (t._yuievt.hasTargets) { t.bubble(evt, args, originalTarget); } } else { ce.sibling = ce2; // set the original target to that the target payload on the // facade is correct. ce.target = originalTarget; ce.originalTarget = originalTarget; ce.currentTarget = t; bc = ce.broadcast; ce.broadcast = false; ret = ret && ce.fire.apply(ce, args || evt.details || []); ce.broadcast = bc; ce.originalTarget = null; // stopPropagation() was called if (ce.stopped) { break; } } t._yuievt.bubbling = oldbubble; } } } return ret; }; FACADE = new Y.EventFacade(); FACADE_KEYS = Y.Object.keys(FACADE); })(); }, '@VERSION@' ,{requires:['event-custom-base']});
binaek89/cdnjs
ajax/libs/yui/3.1.2/event-custom/event-custom-complex-debug.js
JavaScript
mit
12,918
CodeMirror.runMode = function(string, modespec, callback, options) { var mode = CodeMirror.getMode(CodeMirror.defaults, modespec); var ie = /MSIE \d/.test(navigator.userAgent); var ie_lt9 = ie && (document.documentMode == null || document.documentMode < 9); if (callback.nodeType == 1) { var tabSize = (options && options.tabSize) || CodeMirror.defaults.tabSize; var node = callback, col = 0; node.innerHTML = ""; callback = function(text, style) { if (text == "\n") { // Emitting LF or CRLF on IE8 or earlier results in an incorrect display. // Emitting a carriage return makes everything ok. node.appendChild(document.createTextNode(ie_lt9 ? '\r' : text)); col = 0; return; } var content = ""; // replace tabs for (var pos = 0;;) { var idx = text.indexOf("\t", pos); if (idx == -1) { content += text.slice(pos); col += text.length - pos; break; } else { col += idx - pos; content += text.slice(pos, idx); var size = tabSize - col % tabSize; col += size; for (var i = 0; i < size; ++i) content += " "; pos = idx + 1; } } if (style) { var sp = node.appendChild(document.createElement("span")); sp.className = "cm-" + style.replace(/ +/g, " cm-"); sp.appendChild(document.createTextNode(content)); } else { node.appendChild(document.createTextNode(content)); } }; } var lines = CodeMirror.splitLines(string), state = (options && options.state) || CodeMirror.startState(mode); for (var i = 0, e = lines.length; i < e; ++i) { if (i) callback("\n"); var stream = new CodeMirror.StringStream(lines[i]); while (!stream.eol()) { var style = mode.token(stream, state); callback(stream.current(), style, i, stream.start, state); stream.start = stream.pos; } } };
Stavrakakis/cdnjs
ajax/libs/codemirror/3.24.0/package/addon/runmode/runmode.js
JavaScript
mit
1,975
// Copyright 2009-2012 by contributors, MIT License // vim: ts=4 sts=4 sw=4 expandtab (function () { setTimeout(function(){ webshims.isReady('es5', true); }); /** * Brings an environment as close to ECMAScript 5 compliance * as is possible with the facilities of erstwhile engines. * * Annotated ES5: http://es5.github.com/ (specific links below) * ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf * Required reading: http://javascriptweblog.wordpress.com/2011/12/05/extending-javascript-natives/ */ // Shortcut to an often accessed properties, in order to avoid multiple // dereference that costs universally. var call = Function.prototype.call; var prototypeOfArray = Array.prototype; var prototypeOfObject = Object.prototype; var _Array_slice_ = prototypeOfArray.slice; var array_splice = Array.prototype.splice; var array_push = Array.prototype.push; var array_unshift = Array.prototype.unshift; // Having a toString local variable name breaks in Opera so use _toString. var _toString = prototypeOfObject.toString; var isFunction = function (val) { return prototypeOfObject.toString.call(val) === '[object Function]'; }; var isRegex = function (val) { return prototypeOfObject.toString.call(val) === '[object RegExp]'; }; var isArray = function isArray(obj) { return _toString.call(obj) === "[object Array]"; }; var isArguments = function isArguments(value) { var str = _toString.call(value); var isArgs = str === '[object Arguments]'; if (!isArgs) { isArgs = !isArray(str) && value !== null && typeof value === 'object' && typeof value.length === 'number' && value.length >= 0 && isFunction(value.callee); } return isArgs; }; // // Function // ======== // // ES-5 15.3.4.5 // http://es5.github.com/#x15.3.4.5 function Empty() {} if (!Function.prototype.bind) { Function.prototype.bind = function bind(that) { // .length is 1 // 1. Let Target be the this value. var target = this; // 2. If IsCallable(Target) is false, throw a TypeError exception. if (!isFunction(target)) { throw new TypeError("Function.prototype.bind called on incompatible " + target); } // 3. Let A be a new (possibly empty) internal list of all of the // argument values provided after thisArg (arg1, arg2 etc), in order. // XXX slicedArgs will stand in for "A" if used var args = _Array_slice_.call(arguments, 1); // for normal call // 4. Let F be a new native ECMAScript object. // 11. Set the [[Prototype]] internal property of F to the standard // built-in Function prototype object as specified in 15.3.3.1. // 12. Set the [[Call]] internal property of F as described in // 15.3.4.5.1. // 13. Set the [[Construct]] internal property of F as described in // 15.3.4.5.2. // 14. Set the [[HasInstance]] internal property of F as described in // 15.3.4.5.3. var binder = function () { if (this instanceof bound) { // 15.3.4.5.2 [[Construct]] // When the [[Construct]] internal method of a function object, // F that was created using the bind function is called with a // list of arguments ExtraArgs, the following steps are taken: // 1. Let target be the value of F's [[TargetFunction]] // internal property. // 2. If target has no [[Construct]] internal method, a // TypeError exception is thrown. // 3. Let boundArgs be the value of F's [[BoundArgs]] internal // property. // 4. Let args be a new list containing the same values as the // list boundArgs in the same order followed by the same // values as the list ExtraArgs in the same order. // 5. Return the result of calling the [[Construct]] internal // method of target providing args as the arguments. var result = target.apply( this, args.concat(_Array_slice_.call(arguments)) ); if (Object(result) === result) { return result; } return this; } else { // 15.3.4.5.1 [[Call]] // When the [[Call]] internal method of a function object, F, // which was created using the bind function is called with a // this value and a list of arguments ExtraArgs, the following // steps are taken: // 1. Let boundArgs be the value of F's [[BoundArgs]] internal // property. // 2. Let boundThis be the value of F's [[BoundThis]] internal // property. // 3. Let target be the value of F's [[TargetFunction]] internal // property. // 4. Let args be a new list containing the same values as the // list boundArgs in the same order followed by the same // values as the list ExtraArgs in the same order. // 5. Return the result of calling the [[Call]] internal method // of target providing boundThis as the this value and // providing args as the arguments. // equiv: target.call(this, ...boundArgs, ...args) return target.apply( that, args.concat(_Array_slice_.call(arguments)) ); } }; // 15. If the [[Class]] internal property of Target is "Function", then // a. Let L be the length property of Target minus the length of A. // b. Set the length own property of F to either 0 or L, whichever is // larger. // 16. Else set the length own property of F to 0. var boundLength = Math.max(0, target.length - args.length); // 17. Set the attributes of the length own property of F to the values // specified in 15.3.5.1. var boundArgs = []; for (var i = 0; i < boundLength; i++) { boundArgs.push("$" + i); } // XXX Build a dynamic function with desired amount of arguments is the only // way to set the length property of a function. // In environments where Content Security Policies enabled (Chrome extensions, // for ex.) all use of eval or Function costructor throws an exception. // However in all of these environments Function.prototype.bind exists // and so this code will never be executed. var bound = Function("binder", "return function (" + boundArgs.join(",") + "){return binder.apply(this,arguments)}")(binder); if (target.prototype) { Empty.prototype = target.prototype; bound.prototype = new Empty(); // Clean up dangling references. Empty.prototype = null; } // TODO // 18. Set the [[Extensible]] internal property of F to true. // TODO // 19. Let thrower be the [[ThrowTypeError]] function Object (13.2.3). // 20. Call the [[DefineOwnProperty]] internal method of F with // arguments "caller", PropertyDescriptor {[[Get]]: thrower, [[Set]]: // thrower, [[Enumerable]]: false, [[Configurable]]: false}, and // false. // 21. Call the [[DefineOwnProperty]] internal method of F with // arguments "arguments", PropertyDescriptor {[[Get]]: thrower, // [[Set]]: thrower, [[Enumerable]]: false, [[Configurable]]: false}, // and false. // TODO // NOTE Function objects created using Function.prototype.bind do not // have a prototype property or the [[Code]], [[FormalParameters]], and // [[Scope]] internal properties. // XXX can't delete prototype in pure-js. // 22. Return F. return bound; }; } // _Please note: Shortcuts are defined after `Function.prototype.bind` as we // us it in defining shortcuts. var owns = call.bind(prototypeOfObject.hasOwnProperty); // If JS engine supports accessors creating shortcuts. var defineGetter; var defineSetter; var lookupGetter; var lookupSetter; var supportsAccessors; if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__"))) { defineGetter = call.bind(prototypeOfObject.__defineGetter__); defineSetter = call.bind(prototypeOfObject.__defineSetter__); lookupGetter = call.bind(prototypeOfObject.__lookupGetter__); lookupSetter = call.bind(prototypeOfObject.__lookupSetter__); } // // Array // ===== // // ES5 15.4.4.12 // http://es5.github.com/#x15.4.4.12 var spliceWorksWithEmptyObject = (function () { var obj = {}; Array.prototype.splice.call(obj, 0, 0, 1); return obj.length === 1; }()); var omittingSecondSpliceArgIsNoop = [1].splice(0).length === 0; var spliceNoopReturnsEmptyArray = (function () { var a = [1, 2]; var result = a.splice(); return a.length === 2 && isArray(result) && result.length === 0; }()); if (spliceNoopReturnsEmptyArray) { // Safari 5.0 bug where .split() returns undefined Array.prototype.splice = function splice(start, deleteCount) { if (arguments.length === 0) { return []; } else { return array_splice.apply(this, arguments); } }; } if (!omittingSecondSpliceArgIsNoop || !spliceWorksWithEmptyObject) { Array.prototype.splice = function splice(start, deleteCount) { if (arguments.length === 0) { return []; } var args = arguments; this.length = Math.max(toInteger(this.length), 0); if (arguments.length > 0 && typeof deleteCount !== 'number') { args = _Array_slice_.call(arguments); if (args.length < 2) { args.push(toInteger(deleteCount)); } else { args[1] = toInteger(deleteCount); } } return array_splice.apply(this, args); }; } // ES5 15.4.4.12 // http://es5.github.com/#x15.4.4.13 // Return len+argCount. // [bugfix, ielt8] // IE < 8 bug: [].unshift(0) === undefined but should be "1" if ([].unshift(0) !== 1) { Array.prototype.unshift = function () { array_unshift.apply(this, arguments); return this.length; }; } // ES5 15.4.3.2 // http://es5.github.com/#x15.4.3.2 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray if (!Array.isArray) { Array.isArray = isArray; } // The IsCallable() check in the Array functions // has been replaced with a strict check on the // internal class of the object to trap cases where // the provided function was actually a regular // expression literal, which in V8 and // JavaScriptCore is a typeof "function". Only in // V8 are regular expression literals permitted as // reduce parameters, so it is desirable in the // general case for the shim to match the more // strict and common behavior of rejecting regular // expressions. // ES5 15.4.4.18 // http://es5.github.com/#x15.4.4.18 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/forEach // Check failure of by-index access of string characters (IE < 9) // and failure of `0 in boxedString` (Rhino) var boxedString = Object("a"); var splitString = boxedString[0] !== "a" || !(0 in boxedString); var properlyBoxesContext = function properlyBoxed(method) { // Check node 0.6.21 bug where third parameter is not boxed var properlyBoxesNonStrict = true; var properlyBoxesStrict = true; if (method) { method.call('foo', function (_, __, context) { if (typeof context !== 'object') { properlyBoxesNonStrict = false; } }); method.call([1], function () { 'use strict'; properlyBoxesStrict = typeof this === 'string'; }, 'x'); } return !!method && properlyBoxesNonStrict && properlyBoxesStrict; }; if (!Array.prototype.forEach || !properlyBoxesContext(Array.prototype.forEach)) { Array.prototype.forEach = function forEach(fun /*, thisp*/) { var object = toObject(this), self = splitString && _toString.call(this) === "[object String]" ? this.split("") : object, thisp = arguments[1], i = -1, length = self.length >>> 0; // If no callback function or if callback is not a callable function if (!isFunction(fun)) { throw new TypeError(); // TODO message } while (++i < length) { if (i in self) { // Invoke the callback function with call, passing arguments: // context, property value, property key, thisArg object // context fun.call(thisp, self[i], i, object); } } }; } // ES5 15.4.4.19 // http://es5.github.com/#x15.4.4.19 // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map if (!Array.prototype.map || !properlyBoxesContext(Array.prototype.map)) { Array.prototype.map = function map(fun /*, thisp*/) { var object = toObject(this), self = splitString && _toString.call(this) === "[object String]" ? this.split("") : object, length = self.length >>> 0, result = Array(length), thisp = arguments[1]; // If no callback function or if callback is not a callable function if (!isFunction(fun)) { throw new TypeError(fun + " is not a function"); } for (var i = 0; i < length; i++) { if (i in self) { result[i] = fun.call(thisp, self[i], i, object); } } return result; }; } // ES5 15.4.4.20 // http://es5.github.com/#x15.4.4.20 // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter if (!Array.prototype.filter || !properlyBoxesContext(Array.prototype.filter)) { Array.prototype.filter = function filter(fun /*, thisp */) { var object = toObject(this), self = splitString && _toString.call(this) === "[object String]" ? this.split("") : object, length = self.length >>> 0, result = [], value, thisp = arguments[1]; // If no callback function or if callback is not a callable function if (!isFunction(fun)) { throw new TypeError(fun + " is not a function"); } for (var i = 0; i < length; i++) { if (i in self) { value = self[i]; if (fun.call(thisp, value, i, object)) { result.push(value); } } } return result; }; } // ES5 15.4.4.16 // http://es5.github.com/#x15.4.4.16 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every if (!Array.prototype.every || !properlyBoxesContext(Array.prototype.every)) { Array.prototype.every = function every(fun /*, thisp */) { var object = toObject(this), self = splitString && _toString.call(this) === "[object String]" ? this.split("") : object, length = self.length >>> 0, thisp = arguments[1]; // If no callback function or if callback is not a callable function if (!isFunction(fun)) { throw new TypeError(fun + " is not a function"); } for (var i = 0; i < length; i++) { if (i in self && !fun.call(thisp, self[i], i, object)) { return false; } } return true; }; } // ES5 15.4.4.17 // http://es5.github.com/#x15.4.4.17 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some if (!Array.prototype.some || !properlyBoxesContext(Array.prototype.some)) { Array.prototype.some = function some(fun /*, thisp */) { var object = toObject(this), self = splitString && _toString.call(this) === "[object String]" ? this.split("") : object, length = self.length >>> 0, thisp = arguments[1]; // If no callback function or if callback is not a callable function if (!isFunction(fun)) { throw new TypeError(fun + " is not a function"); } for (var i = 0; i < length; i++) { if (i in self && fun.call(thisp, self[i], i, object)) { return true; } } return false; }; } // ES5 15.4.4.21 // http://es5.github.com/#x15.4.4.21 // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduce var reduceCoercesToObject = false; if (Array.prototype.reduce) { reduceCoercesToObject = typeof Array.prototype.reduce.call('es5', function (_, __, ___, list) { return list; }) === 'object'; } if (!Array.prototype.reduce || !reduceCoercesToObject) { Array.prototype.reduce = function reduce(fun /*, initial*/) { var object = toObject(this), self = splitString && _toString.call(this) === "[object String]" ? this.split("") : object, length = self.length >>> 0; // If no callback function or if callback is not a callable function if (!isFunction(fun)) { throw new TypeError(fun + " is not a function"); } // no value to return if no initial value and an empty array if (!length && arguments.length === 1) { throw new TypeError("reduce of empty array with no initial value"); } var i = 0; var result; if (arguments.length >= 2) { result = arguments[1]; } else { do { if (i in self) { result = self[i++]; break; } // if array contains no values, no initial value to return if (++i >= length) { throw new TypeError("reduce of empty array with no initial value"); } } while (true); } for (; i < length; i++) { if (i in self) { result = fun.call(void 0, result, self[i], i, object); } } return result; }; } // ES5 15.4.4.22 // http://es5.github.com/#x15.4.4.22 // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduceRight var reduceRightCoercesToObject = false; if (Array.prototype.reduceRight) { reduceRightCoercesToObject = typeof Array.prototype.reduceRight.call('es5', function (_, __, ___, list) { return list; }) === 'object'; } if (!Array.prototype.reduceRight || !reduceRightCoercesToObject) { Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) { var object = toObject(this), self = splitString && _toString.call(this) === "[object String]" ? this.split("") : object, length = self.length >>> 0; // If no callback function or if callback is not a callable function if (!isFunction(fun)) { throw new TypeError(fun + " is not a function"); } // no value to return if no initial value, empty array if (!length && arguments.length === 1) { throw new TypeError("reduceRight of empty array with no initial value"); } var result, i = length - 1; if (arguments.length >= 2) { result = arguments[1]; } else { do { if (i in self) { result = self[i--]; break; } // if array contains no values, no initial value to return if (--i < 0) { throw new TypeError("reduceRight of empty array with no initial value"); } } while (true); } if (i < 0) { return result; } do { if (i in self) { result = fun.call(void 0, result, self[i], i, object); } } while (i--); return result; }; } // ES5 15.4.4.14 // http://es5.github.com/#x15.4.4.14 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf if (!Array.prototype.indexOf || ([0, 1].indexOf(1, 2) !== -1)) { Array.prototype.indexOf = function indexOf(sought /*, fromIndex */ ) { var self = splitString && _toString.call(this) === "[object String]" ? this.split("") : toObject(this), length = self.length >>> 0; if (!length) { return -1; } var i = 0; if (arguments.length > 1) { i = toInteger(arguments[1]); } // handle negative indices i = i >= 0 ? i : Math.max(0, length + i); for (; i < length; i++) { if (i in self && self[i] === sought) { return i; } } return -1; }; } // ES5 15.4.4.15 // http://es5.github.com/#x15.4.4.15 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf if (!Array.prototype.lastIndexOf || ([0, 1].lastIndexOf(0, -3) !== -1)) { Array.prototype.lastIndexOf = function lastIndexOf(sought /*, fromIndex */) { var self = splitString && _toString.call(this) === "[object String]" ? this.split("") : toObject(this), length = self.length >>> 0; if (!length) { return -1; } var i = length - 1; if (arguments.length > 1) { i = Math.min(i, toInteger(arguments[1])); } // handle negative indices i = i >= 0 ? i : length - Math.abs(i); for (; i >= 0; i--) { if (i in self && sought === self[i]) { return i; } } return -1; }; } // // Object // ====== // // ES5 15.2.3.14 // http://es5.github.com/#x15.2.3.14 var keysWorksWithArguments = Object.keys && (function () { return Object.keys(arguments).length === 2; }(1, 2)); if (!Object.keys) { // http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation var hasDontEnumBug = !({'toString': null}).propertyIsEnumerable('toString'), hasProtoEnumBug = (function () {}).propertyIsEnumerable('prototype'), dontEnums = [ "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor" ], dontEnumsLength = dontEnums.length; Object.keys = function keys(object) { var isFn = isFunction(object), isArgs = isArguments(object), isObject = object !== null && typeof object === 'object', isString = isObject && _toString.call(object) === '[object String]'; if (!isObject && !isFn && !isArgs) { throw new TypeError("Object.keys called on a non-object"); } var theKeys = []; var skipProto = hasProtoEnumBug && isFn; if (isString || isArgs) { for (var i = 0; i < object.length; ++i) { theKeys.push(String(i)); } } else { for (var name in object) { if (!(skipProto && name === 'prototype') && owns(object, name)) { theKeys.push(String(name)); } } } if (hasDontEnumBug) { var ctor = object.constructor, skipConstructor = ctor && ctor.prototype === object; for (var j = 0; j < dontEnumsLength; j++) { var dontEnum = dontEnums[j]; if (!(skipConstructor && dontEnum === 'constructor') && owns(object, dontEnum)) { theKeys.push(dontEnum); } } } return theKeys; }; } else if (!keysWorksWithArguments) { // Safari 5.0 bug var originalKeys = Object.keys; Object.keys = function keys(object) { if (isArguments(object)) { return originalKeys(Array.prototype.slice.call(object)); } else { return originalKeys(object); } }; } // // Date // ==== // // ES5 15.9.5.43 // http://es5.github.com/#x15.9.5.43 // This function returns a String value represent the instance in time // represented by this Date object. The format of the String is the Date Time // string format defined in 15.9.1.15. All fields are present in the String. // The time zone is always UTC, denoted by the suffix Z. If the time value of // this object is not a finite Number a RangeError exception is thrown. var negativeDate = -62198755200000, negativeYearString = "-000001"; if ( !Date.prototype.toISOString || (new Date(negativeDate).toISOString().indexOf(negativeYearString) === -1) ) { Date.prototype.toISOString = function toISOString() { var result, length, value, year, month; if (!isFinite(this)) { throw new RangeError("Date.prototype.toISOString called on non-finite value."); } year = this.getUTCFullYear(); month = this.getUTCMonth(); // see https://github.com/es-shims/es5-shim/issues/111 year += Math.floor(month / 12); month = (month % 12 + 12) % 12; // the date time string format is specified in 15.9.1.15. result = [month + 1, this.getUTCDate(), this.getUTCHours(), this.getUTCMinutes(), this.getUTCSeconds()]; year = ( (year < 0 ? "-" : (year > 9999 ? "+" : "")) + ("00000" + Math.abs(year)).slice(0 <= year && year <= 9999 ? -4 : -6) ); length = result.length; while (length--) { value = result[length]; // pad months, days, hours, minutes, and seconds to have two // digits. if (value < 10) { result[length] = "0" + value; } } // pad milliseconds to have three digits. return ( year + "-" + result.slice(0, 2).join("-") + "T" + result.slice(2).join(":") + "." + ("000" + this.getUTCMilliseconds()).slice(-3) + "Z" ); }; } // ES5 15.9.5.44 // http://es5.github.com/#x15.9.5.44 // This function provides a String representation of a Date object for use by // JSON.stringify (15.12.3). var dateToJSONIsSupported = false; try { dateToJSONIsSupported = ( Date.prototype.toJSON && new Date(NaN).toJSON() === null && new Date(negativeDate).toJSON().indexOf(negativeYearString) !== -1 && Date.prototype.toJSON.call({ // generic toISOString: function () { return true; } }) ); } catch (e) { } if (!dateToJSONIsSupported) { Date.prototype.toJSON = function toJSON(key) { // When the toJSON method is called with argument key, the following // steps are taken: // 1. Let O be the result of calling ToObject, giving it the this // value as its argument. // 2. Let tv be toPrimitive(O, hint Number). var o = Object(this), tv = toPrimitive(o), toISO; // 3. If tv is a Number and is not finite, return null. if (typeof tv === "number" && !isFinite(tv)) { return null; } // 4. Let toISO be the result of calling the [[Get]] internal method of // O with argument "toISOString". toISO = o.toISOString; // 5. If IsCallable(toISO) is false, throw a TypeError exception. if (typeof toISO !== "function") { throw new TypeError("toISOString property is not callable"); } // 6. Return the result of calling the [[Call]] internal method of // toISO with O as the this value and an empty argument list. return toISO.call(o); // NOTE 1 The argument is ignored. // NOTE 2 The toJSON function is intentionally generic; it does not // require that its this value be a Date object. Therefore, it can be // transferred to other kinds of objects for use as a method. However, // it does require that any such object have a toISOString method. An // object is free to use the argument key to filter its // stringification. }; } // ES5 15.9.4.2 // http://es5.github.com/#x15.9.4.2 // based on work shared by Daniel Friesen (dantman) // http://gist.github.com/303249 var supportsExtendedYears = Date.parse('+033658-09-27T01:46:40.000Z') === 1e15; var acceptsInvalidDates = !isNaN(Date.parse('2012-04-04T24:00:00.500Z')) || !isNaN(Date.parse('2012-11-31T23:59:59.000Z')); var doesNotParseY2KNewYear = isNaN(Date.parse("2000-01-01T00:00:00.000Z")); if (!Date.parse || doesNotParseY2KNewYear || acceptsInvalidDates || !supportsExtendedYears) { // XXX global assignment won't work in embeddings that use // an alternate object for the context. Date = (function (NativeDate) { // Date.length === 7 function Date(Y, M, D, h, m, s, ms) { var length = arguments.length; if (this instanceof NativeDate) { var date = length === 1 && String(Y) === Y ? // isString(Y) // We explicitly pass it through parse: new NativeDate(Date.parse(Y)) : // We have to manually make calls depending on argument // length here length >= 7 ? new NativeDate(Y, M, D, h, m, s, ms) : length >= 6 ? new NativeDate(Y, M, D, h, m, s) : length >= 5 ? new NativeDate(Y, M, D, h, m) : length >= 4 ? new NativeDate(Y, M, D, h) : length >= 3 ? new NativeDate(Y, M, D) : length >= 2 ? new NativeDate(Y, M) : length >= 1 ? new NativeDate(Y) : new NativeDate(); // Prevent mixups with unfixed Date object date.constructor = Date; return date; } return NativeDate.apply(this, arguments); } // 15.9.1.15 Date Time String Format. var isoDateExpression = new RegExp("^" + "(\\d{4}|[\+\-]\\d{6})" + // four-digit year capture or sign + // 6-digit extended year "(?:-(\\d{2})" + // optional month capture "(?:-(\\d{2})" + // optional day capture "(?:" + // capture hours:minutes:seconds.milliseconds "T(\\d{2})" + // hours capture ":(\\d{2})" + // minutes capture "(?:" + // optional :seconds.milliseconds ":(\\d{2})" + // seconds capture "(?:(\\.\\d{1,}))?" + // milliseconds capture ")?" + "(" + // capture UTC offset component "Z|" + // UTC capture "(?:" + // offset specifier +/-hours:minutes "([-+])" + // sign capture "(\\d{2})" + // hours offset capture ":(\\d{2})" + // minutes offset capture ")" + ")?)?)?)?" + "$"); var months = [ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 ]; function dayFromMonth(year, month) { var t = month > 1 ? 1 : 0; return ( months[month] + Math.floor((year - 1969 + t) / 4) - Math.floor((year - 1901 + t) / 100) + Math.floor((year - 1601 + t) / 400) + 365 * (year - 1970) ); } function toUTC(t) { return Number(new NativeDate(1970, 0, 1, 0, 0, 0, t)); } // Copy any custom methods a 3rd party library may have added for (var key in NativeDate) { Date[key] = NativeDate[key]; } // Copy "native" methods explicitly; they may be non-enumerable Date.now = NativeDate.now; Date.UTC = NativeDate.UTC; Date.prototype = NativeDate.prototype; Date.prototype.constructor = Date; // Upgrade Date.parse to handle simplified ISO 8601 strings Date.parse = function parse(string) { var match = isoDateExpression.exec(string); if (match) { // parse months, days, hours, minutes, seconds, and milliseconds // provide default values if necessary // parse the UTC offset component var year = Number(match[1]), month = Number(match[2] || 1) - 1, day = Number(match[3] || 1) - 1, hour = Number(match[4] || 0), minute = Number(match[5] || 0), second = Number(match[6] || 0), millisecond = Math.floor(Number(match[7] || 0) * 1000), // When time zone is missed, local offset should be used // (ES 5.1 bug) // see https://bugs.ecmascript.org/show_bug.cgi?id=112 isLocalTime = Boolean(match[4] && !match[8]), signOffset = match[9] === "-" ? 1 : -1, hourOffset = Number(match[10] || 0), minuteOffset = Number(match[11] || 0), result; if ( hour < ( minute > 0 || second > 0 || millisecond > 0 ? 24 : 25 ) && minute < 60 && second < 60 && millisecond < 1000 && month > -1 && month < 12 && hourOffset < 24 && minuteOffset < 60 && // detect invalid offsets day > -1 && day < ( dayFromMonth(year, month + 1) - dayFromMonth(year, month) ) ) { result = ( (dayFromMonth(year, month) + day) * 24 + hour + hourOffset * signOffset ) * 60; result = ( (result + minute + minuteOffset * signOffset) * 60 + second ) * 1000 + millisecond; if (isLocalTime) { result = toUTC(result); } if (-8.64e15 <= result && result <= 8.64e15) { return result; } } return NaN; } return NativeDate.parse.apply(this, arguments); }; return Date; })(Date); } // ES5 15.9.4.4 // http://es5.github.com/#x15.9.4.4 if (!Date.now) { Date.now = function now() { return new Date().getTime(); }; } // // Number // ====== // // ES5.1 15.7.4.5 // http://es5.github.com/#x15.7.4.5 if (!Number.prototype.toFixed || (0.00008).toFixed(3) !== '0.000' || (0.9).toFixed(0) === '0' || (1.255).toFixed(2) !== '1.25' || (1000000000000000128).toFixed(0) !== "1000000000000000128") { // Hide these variables and functions (function () { var base, size, data, i; base = 1e7; size = 6; data = [0, 0, 0, 0, 0, 0]; function multiply(n, c) { var i = -1; while (++i < size) { c += n * data[i]; data[i] = c % base; c = Math.floor(c / base); } } function divide(n) { var i = size, c = 0; while (--i >= 0) { c += data[i]; data[i] = Math.floor(c / n); c = (c % n) * base; } } function numToString() { var i = size; var s = ''; while (--i >= 0) { if (s !== '' || i === 0 || data[i] !== 0) { var t = String(data[i]); if (s === '') { s = t; } else { s += '0000000'.slice(0, 7 - t.length) + t; } } } return s; } function pow(x, n, acc) { return (n === 0 ? acc : (n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc))); } function log(x) { var n = 0; while (x >= 4096) { n += 12; x /= 4096; } while (x >= 2) { n += 1; x /= 2; } return n; } Number.prototype.toFixed = function toFixed(fractionDigits) { var f, x, s, m, e, z, j, k; // Test for NaN and round fractionDigits down f = Number(fractionDigits); f = f !== f ? 0 : Math.floor(f); if (f < 0 || f > 20) { throw new RangeError("Number.toFixed called with invalid number of decimals"); } x = Number(this); // Test for NaN if (x !== x) { return "NaN"; } // If it is too big or small, return the string value of the number if (x <= -1e21 || x >= 1e21) { return String(x); } s = ""; if (x < 0) { s = "-"; x = -x; } m = "0"; if (x > 1e-21) { // 1e-21 < x < 1e21 // -70 < log2(x) < 70 e = log(x * pow(2, 69, 1)) - 69; z = (e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1)); z *= 0x10000000000000; // Math.pow(2, 52); e = 52 - e; // -18 < e < 122 // x = z / 2 ^ e if (e > 0) { multiply(0, z); j = f; while (j >= 7) { multiply(1e7, 0); j -= 7; } multiply(pow(10, j, 1), 0); j = e - 1; while (j >= 23) { divide(1 << 23); j -= 23; } divide(1 << j); multiply(1, 1); divide(2); m = numToString(); } else { multiply(0, z); multiply(1 << (-e), 0); m = numToString() + '0.00000000000000000000'.slice(2, 2 + f); } } if (f > 0) { k = m.length; if (k <= f) { m = s + '0.0000000000000000000'.slice(0, f - k + 2) + m; } else { m = s + m.slice(0, k - f) + '.' + m.slice(k - f); } } else { m = s + m; } return m; }; }()); } // // String // ====== // // ES5 15.5.4.14 // http://es5.github.com/#x15.5.4.14 // [bugfix, IE lt 9, firefox 4, Konqueror, Opera, obscure browsers] // Many browsers do not split properly with regular expressions or they // do not perform the split correctly under obscure conditions. // See http://blog.stevenlevithan.com/archives/cross-browser-split // I've tested in many browsers and this seems to cover the deviant ones: // 'ab'.split(/(?:ab)*/) should be ["", ""], not [""] // '.'.split(/(.?)(.?)/) should be ["", ".", "", ""], not ["", ""] // 'tesst'.split(/(s)*/) should be ["t", undefined, "e", "s", "t"], not // [undefined, "t", undefined, "e", ...] // ''.split(/.?/) should be [], not [""] // '.'.split(/()()/) should be ["."], not ["", "", "."] var string_split = String.prototype.split; if ( 'ab'.split(/(?:ab)*/).length !== 2 || '.'.split(/(.?)(.?)/).length !== 4 || 'tesst'.split(/(s)*/)[1] === "t" || 'test'.split(/(?:)/, -1).length !== 4 || ''.split(/.?/).length || '.'.split(/()()/).length > 1 ) { (function () { var compliantExecNpcg = /()??/.exec("")[1] === void 0; // NPCG: nonparticipating capturing group String.prototype.split = function (separator, limit) { var string = this; if (separator === void 0 && limit === 0) { return []; } // If `separator` is not a regex, use native split if (_toString.call(separator) !== "[object RegExp]") { return string_split.call(this, separator, limit); } var output = [], flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.extended ? "x" : "") + // Proposed for ES6 (separator.sticky ? "y" : ""), // Firefox 3+ lastLastIndex = 0, // Make `global` and avoid `lastIndex` issues by working with a copy separator2, match, lastIndex, lastLength; separator = new RegExp(separator.source, flags + "g"); string += ""; // Type-convert if (!compliantExecNpcg) { // Doesn't need flags gy, but they don't hurt separator2 = new RegExp("^" + separator.source + "$(?!\\s)", flags); } /* Values for `limit`, per the spec: * If undefined: 4294967295 // Math.pow(2, 32) - 1 * If 0, Infinity, or NaN: 0 * If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296; * If negative number: 4294967296 - Math.floor(Math.abs(limit)) * If other: Type-convert, then use the above rules */ limit = limit === void 0 ? -1 >>> 0 : // Math.pow(2, 32) - 1 ToUint32(limit); while (match = separator.exec(string)) { // `separator.lastIndex` is not reliable cross-browser lastIndex = match.index + match[0].length; if (lastIndex > lastLastIndex) { output.push(string.slice(lastLastIndex, match.index)); // Fix browsers whose `exec` methods don't consistently return `undefined` for // nonparticipating capturing groups if (!compliantExecNpcg && match.length > 1) { match[0].replace(separator2, function () { for (var i = 1; i < arguments.length - 2; i++) { if (arguments[i] === void 0) { match[i] = void 0; } } }); } if (match.length > 1 && match.index < string.length) { Array.prototype.push.apply(output, match.slice(1)); } lastLength = match[0].length; lastLastIndex = lastIndex; if (output.length >= limit) { break; } } if (separator.lastIndex === match.index) { separator.lastIndex++; // Avoid an infinite loop } } if (lastLastIndex === string.length) { if (lastLength || !separator.test("")) { output.push(""); } } else { output.push(string.slice(lastLastIndex)); } return output.length > limit ? output.slice(0, limit) : output; }; }()); // [bugfix, chrome] // If separator is undefined, then the result array contains just one String, // which is the this value (converted to a String). If limit is not undefined, // then the output array is truncated so that it contains no more than limit // elements. // "0".split(undefined, 0) -> [] } else if ("0".split(void 0, 0).length) { String.prototype.split = function split(separator, limit) { if (separator === void 0 && limit === 0) { return []; } return string_split.call(this, separator, limit); }; } var str_replace = String.prototype.replace; var replaceReportsGroupsCorrectly = (function () { var groups = []; 'x'.replace(/x(.)?/g, function (match, group) { groups.push(group); }); return groups.length === 1 && typeof groups[0] === 'undefined'; }()); if (!replaceReportsGroupsCorrectly) { String.prototype.replace = function replace(searchValue, replaceValue) { var isFn = isFunction(replaceValue); var hasCapturingGroups = isRegex(searchValue) && (/\)[*?]/).test(searchValue.source); if (!isFn || !hasCapturingGroups) { return str_replace.call(this, searchValue, replaceValue); } else { var wrappedReplaceValue = function (match) { var length = arguments.length; var originalLastIndex = searchValue.lastIndex; searchValue.lastIndex = 0; var args = searchValue.exec(match); searchValue.lastIndex = originalLastIndex; args.push(arguments[length - 2], arguments[length - 1]); return replaceValue.apply(this, args); }; return str_replace.call(this, searchValue, wrappedReplaceValue); } }; } // ECMA-262, 3rd B.2.3 // Not an ECMAScript standard, although ECMAScript 3rd Edition has a // non-normative section suggesting uniform semantics and it should be // normalized across all browsers // [bugfix, IE lt 9] IE < 9 substr() with negative value not working in IE if ("".substr && "0b".substr(-1) !== "b") { var string_substr = String.prototype.substr; /** * Get the substring of a string * @param {integer} start where to start the substring * @param {integer} length how many characters to return * @return {string} */ String.prototype.substr = function substr(start, length) { return string_substr.call( this, start < 0 ? ((start = this.length + start) < 0 ? 0 : start) : start, length ); }; } // ES5 15.5.4.20 // whitespace from: http://es5.github.io/#x15.5.4.20 var ws = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003" + "\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028" + "\u2029\uFEFF"; var zeroWidth = '\u200b'; if (!String.prototype.trim || ws.trim() || !zeroWidth.trim()) { // http://blog.stevenlevithan.com/archives/faster-trim-javascript // http://perfectionkills.com/whitespace-deviations/ ws = "[" + ws + "]"; var trimBeginRegexp = new RegExp("^" + ws + ws + "*"), trimEndRegexp = new RegExp(ws + ws + "*$"); String.prototype.trim = function trim() { if (this === void 0 || this === null) { throw new TypeError("can't convert " + this + " to object"); } return String(this) .replace(trimBeginRegexp, "") .replace(trimEndRegexp, ""); }; } // ES-5 15.1.2.2 if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) { parseInt = (function (origParseInt) { var hexRegex = /^0[xX]/; return function parseIntES5(str, radix) { str = String(str).trim(); if (!Number(radix)) { radix = hexRegex.test(str) ? 16 : 10; } return origParseInt(str, radix); }; }(parseInt)); } // // Util // ====== // // ES5 9.4 // http://es5.github.com/#x9.4 // http://jsperf.com/to-integer function toInteger(n) { n = +n; if (n !== n) { // isNaN n = 0; } else if (n !== 0 && n !== (1 / 0) && n !== -(1 / 0)) { n = (n > 0 || -1) * Math.floor(Math.abs(n)); } return n; } function isPrimitive(input) { var type = typeof input; return ( input === null || type === "undefined" || type === "boolean" || type === "number" || type === "string" ); } function toPrimitive(input) { var val, valueOf, toStr; if (isPrimitive(input)) { return input; } valueOf = input.valueOf; if (isFunction(valueOf)) { val = valueOf.call(input); if (isPrimitive(val)) { return val; } } toStr = input.toString; if (isFunction(toStr)) { val = toStr.call(input); if (isPrimitive(val)) { return val; } } throw new TypeError(); } // ES5 9.9 // http://es5.github.com/#x9.9 var toObject = function (o) { if (o == null) { // this matches both null and undefined throw new TypeError("can't convert " + o + " to object"); } return Object(o); }; var ToUint32 = function ToUint32(x) { return x >>> 0; }; })(); (function($, shims){ var defineProperty = 'defineProperty'; var advancedObjectProperties = !!(Object.create && Object.defineProperties && Object.getOwnPropertyDescriptor); //safari5 has defineProperty-interface, but it can't be used on dom-object //only do this test in non-IE browsers, because this hurts dhtml-behavior in some IE8 versions if (advancedObjectProperties && Object[defineProperty] && Object.prototype.__defineGetter__) { (function(){ try { var foo = document.createElement('foo'); Object[defineProperty](foo, 'bar', { get: function(){ return true; } }); advancedObjectProperties = !!foo.bar; } catch (e) { advancedObjectProperties = false; } foo = null; })(); } var support = webshims.support; support.objectAccessor = !!((advancedObjectProperties || (Object.prototype.__defineGetter__ && Object.prototype.__lookupSetter__))); support.advancedObjectProperties = advancedObjectProperties; if((!advancedObjectProperties || !Object.create || !Object.defineProperties || !Object.getOwnPropertyDescriptor || !Object.defineProperty)){ var call = Function.prototype.call; var prototypeOfObject = Object.prototype; var owns = call.bind(prototypeOfObject.hasOwnProperty); shims.objectCreate = function(proto, props, opts, no__proto__){ var o; var f = function(){}; f.prototype = proto; o = new f(); if(!no__proto__ && !('__proto__' in o) && !support.objectAccessor){ o.__proto__ = proto; } if(props){ shims.defineProperties(o, props); } if(opts){ o.options = $.extend(true, {}, o.options || {}, opts); opts = o.options; } if(o._create && $.isFunction(o._create)){ o._create(opts); } return o; }; shims.defineProperties = function(object, props){ for (var name in props) { if (owns(props, name)) { shims.defineProperty(object, name, props[name]); } } return object; }; var descProps = ['configurable', 'enumerable', 'writable']; shims.defineProperty = function(proto, property, descriptor){ if(typeof descriptor != "object" || descriptor === null){return proto;} if(Object.defineProperty){ try { return Object.defineProperty(proto, property, descriptor); } catch (e) {} } if(owns(descriptor, "value")){ proto[property] = descriptor.value; return proto; } if(proto.__defineGetter__){ if (typeof descriptor.get == "function") { proto.__defineGetter__(property, descriptor.get); } if (typeof descriptor.set == "function"){ proto.__defineSetter__(property, descriptor.set); } } return proto; }; shims.getPrototypeOf = function (object) { return Object.getPrototypeOf && Object.getPrototypeOf(object) || object.__proto__ || object.constructor && object.constructor.prototype; }; //based on http://www.refactory.org/s/object_getownpropertydescriptor/view/latest shims.getOwnPropertyDescriptor = function(obj, prop){ if (typeof obj !== "object" && typeof obj !== "function" || obj === null){ throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object"); } var descriptor; if(Object.defineProperty && Object.getOwnPropertyDescriptor){ try{ descriptor = Object.getOwnPropertyDescriptor(obj, prop); return descriptor; } catch(e){} } descriptor = { configurable: true, enumerable: true, writable: true, value: undefined }; var getter = obj.__lookupGetter__ && obj.__lookupGetter__(prop), setter = obj.__lookupSetter__ && obj.__lookupSetter__(prop) ; if (!getter && !setter) { // not an accessor so return prop if(!owns(obj, prop)){ return; } descriptor.value = obj[prop]; return descriptor; } // there is an accessor, remove descriptor.writable; populate descriptor.get and descriptor.set delete descriptor.writable; delete descriptor.value; descriptor.get = descriptor.set = undefined; if(getter){ descriptor.get = getter; } if(setter){ descriptor.set = setter; } return descriptor; }; } webshims.isReady('es5', true); })(webshims.$, webshims);
marxo/cdnjs
ajax/libs/webshim/1.14.6-RC1/dev/shims/es5.js
JavaScript
mit
46,463
YUI.add('tabview-base', function (Y, NAME) { var getClassName = Y.ClassNameManager.getClassName, TABVIEW = 'tabview', TAB = 'tab', PANEL = 'panel', SELECTED = 'selected', EMPTY_OBJ = {}, DOT = '.', _classNames = { tabview: getClassName(TABVIEW), tabviewPanel: getClassName(TABVIEW, PANEL), tabviewList: getClassName(TABVIEW, 'list'), tab: getClassName(TAB), tabLabel: getClassName(TAB, 'label'), tabPanel: getClassName(TAB, PANEL), selectedTab: getClassName(TAB, SELECTED), selectedPanel: getClassName(TAB, PANEL, SELECTED) }, _queries = { tabview: DOT + _classNames.tabview, tabviewList: '> ul', tab: '> ul > li', tabLabel: '> ul > li > a', tabviewPanel: '> div', tabPanel: '> div > div', selectedTab: '> ul > ' + DOT + _classNames.selectedTab, selectedPanel: '> div ' + DOT + _classNames.selectedPanel }, TabviewBase = function() { this.init.apply(this, arguments); }; TabviewBase.NAME = 'tabviewBase'; TabviewBase._queries = _queries; TabviewBase._classNames = _classNames; Y.mix(TabviewBase.prototype, { init: function(config) { config = config || EMPTY_OBJ; this._node = config.host || Y.one(config.node); this.refresh(); }, initClassNames: function(index) { Y.Object.each(_queries, function(query, name) { // this === tabview._node if (_classNames[name]) { var result = this.all(query); if (index !== undefined) { result = result.item(index); } if (result) { result.addClass(_classNames[name]); } } }, this._node); this._node.addClass(_classNames.tabview); }, _select: function(index) { var node = this._node, oldItem = node.one(_queries.selectedTab), oldContent = node.one(_queries.selectedPanel), newItem = node.all(_queries.tab).item(index), newContent = node.all(_queries.tabPanel).item(index); if (oldItem) { oldItem.removeClass(_classNames.selectedTab); } if (oldContent) { oldContent.removeClass(_classNames.selectedPanel); } if (newItem) { newItem.addClass(_classNames.selectedTab); } if (newContent) { newContent.addClass(_classNames.selectedPanel); } }, initState: function() { var node = this._node, activeNode = node.one(_queries.selectedTab), activeIndex = activeNode ? node.all(_queries.tab).indexOf(activeNode) : 0; this._select(activeIndex); }, // collapse extra space between list-items _scrubTextNodes: function() { this._node.one(_queries.tabviewList).get('childNodes').each(function(node) { if (node.get('nodeType') === 3) { // text node node.remove(); } }); }, // base renderer only enlivens existing markup refresh: function() { this._scrubTextNodes(); this.initClassNames(); this.initState(); this.initEvents(); }, tabEventName: 'click', initEvents: function() { // TODO: detach prefix for delegate? // this._node.delegate('tabview|' + this.tabEventName), this._node.delegate(this.tabEventName, this.onTabEvent, _queries.tab, this ); }, onTabEvent: function(e) { e.preventDefault(); this._select(this._node.all(_queries.tab).indexOf(e.currentTarget)); }, destroy: function() { this._node.detach(this.tabEventName); } }); Y.TabviewBase = TabviewBase; }, '@VERSION@', {"requires": ["node-event-delegate", "classnamemanager", "skin-sam-tabview"]});
ProfNandaa/cdnjs
ajax/libs/yui/3.9.1/tabview-base/tabview-base.js
JavaScript
mit
3,998
YUI.add('tabview', function (Y, NAME) { /** * The TabView module * * @module tabview */ var _queries = Y.TabviewBase._queries, _classNames = Y.TabviewBase._classNames, DOT = '.', /** * Provides a tabbed widget interface * @param config {Object} Object literal specifying tabview configuration properties. * * @class TabView * @constructor * @extends Widget * @uses WidgetParent */ TabView = Y.Base.create('tabView', Y.Widget, [Y.WidgetParent], { _afterChildAdded: function() { this.get('contentBox').focusManager.refresh(); }, _defListNodeValueFn: function() { return Y.Node.create(TabView.LIST_TEMPLATE); }, _defPanelNodeValueFn: function() { return Y.Node.create(TabView.PANEL_TEMPLATE); }, _afterChildRemoved: function(e) { // update the selected tab when removed var i = e.index, selection = this.get('selection'); if (!selection) { // select previous item if selection removed selection = this.item(i - 1) || this.item(0); if (selection) { selection.set('selected', 1); } } this.get('contentBox').focusManager.refresh(); }, _initAria: function() { var contentBox = this.get('contentBox'), tablist = contentBox.one(_queries.tabviewList); if (tablist) { tablist.setAttrs({ //'aria-labelledby': role: 'tablist' }); } }, bindUI: function() { // Use the Node Focus Manager to add keyboard support: // Pressing the left and right arrow keys will move focus // among each of the tabs. this.get('contentBox').plug(Y.Plugin.NodeFocusManager, { descendants: DOT + _classNames.tabLabel, keys: { next: 'down:39', // Right arrow previous: 'down:37' }, // Left arrow circular: true }); this.after('render', this._setDefSelection); this.after('addChild', this._afterChildAdded); this.after('removeChild', this._afterChildRemoved); }, renderUI: function() { var contentBox = this.get('contentBox'); this._renderListBox(contentBox); this._renderPanelBox(contentBox); this._childrenContainer = this.get('listNode'); this._renderTabs(contentBox); }, _setDefSelection: function() { // If no tab is selected, select the first tab. var selection = this.get('selection') || this.item(0); this.some(function(tab) { if (tab.get('selected')) { selection = tab; return true; } }); if (selection) { // TODO: why both needed? (via widgetParent/Child)? this.set('selection', selection); selection.set('selected', 1); } }, _renderListBox: function(contentBox) { var node = this.get('listNode'); if (!node.inDoc()) { contentBox.append(node); } }, _renderPanelBox: function(contentBox) { var node = this.get('panelNode'); if (!node.inDoc()) { contentBox.append(node); } }, _renderTabs: function(contentBox) { var tabs = contentBox.all(_queries.tab), panelNode = this.get('panelNode'), panels = (panelNode) ? this.get('panelNode').get('children') : null, tabview = this; if (tabs) { // add classNames and fill in Tab fields from markup when possible tabs.addClass(_classNames.tab); contentBox.all(_queries.tabLabel).addClass(_classNames.tabLabel); contentBox.all(_queries.tabPanel).addClass(_classNames.tabPanel); tabs.each(function(node, i) { var panelNode = (panels) ? panels.item(i) : null; tabview.add({ boundingBox: node, contentBox: node.one(DOT + _classNames.tabLabel), panelNode: panelNode }); }); } } }, { LIST_TEMPLATE: '<ul class="' + _classNames.tabviewList + '"></ul>', PANEL_TEMPLATE: '<div class="' + _classNames.tabviewPanel + '"></div>', ATTRS: { defaultChildType: { value: 'Tab' }, listNode: { setter: function(node) { node = Y.one(node); if (node) { node.addClass(_classNames.tabviewList); } return node; }, valueFn: '_defListNodeValueFn' }, panelNode: { setter: function(node) { node = Y.one(node); if (node) { node.addClass(_classNames.tabviewPanel); } return node; }, valueFn: '_defPanelNodeValueFn' }, tabIndex: { value: null //validator: '_validTabIndex' } }, HTML_PARSER: { listNode: _queries.tabviewList, panelNode: _queries.tabviewPanel } }); Y.TabView = TabView; var Lang = Y.Lang, _classNames = Y.TabviewBase._classNames; /** * Provides Tab instances for use with TabView * @param config {Object} Object literal specifying tabview configuration properties. * * @class Tab * @constructor * @extends Widget * @uses WidgetChild */ Y.Tab = Y.Base.create('tab', Y.Widget, [Y.WidgetChild], { BOUNDING_TEMPLATE: '<li class="' + _classNames.tab + '"></li>', CONTENT_TEMPLATE: '<a class="' + _classNames.tabLabel + '"></a>', PANEL_TEMPLATE: '<div class="' + _classNames.tabPanel + '"></div>', _uiSetSelectedPanel: function(selected) { this.get('panelNode').toggleClass(_classNames.selectedPanel, selected); }, _afterTabSelectedChange: function(event) { this._uiSetSelectedPanel(event.newVal); }, _afterParentChange: function(e) { if (!e.newVal) { this._remove(); } else { this._add(); } }, _initAria: function() { var anchor = this.get('contentBox'), id = anchor.get('id'), panel = this.get('panelNode'); if (!id) { id = Y.guid(); anchor.set('id', id); } // Apply the ARIA roles, states and properties to each tab anchor.set('role', 'tab'); anchor.get('parentNode').set('role', 'presentation'); // Apply the ARIA roles, states and properties to each panel panel.setAttrs({ role: 'tabpanel', 'aria-labelledby': id }); }, syncUI: function() { this.set('label', this.get('label')); this.set('content', this.get('content')); this._uiSetSelectedPanel(this.get('selected')); }, bindUI: function() { this.after('selectedChange', this._afterTabSelectedChange); this.after('parentChange', this._afterParentChange); }, renderUI: function() { this._renderPanel(); this._initAria(); }, _renderPanel: function() { this.get('parent').get('panelNode') .appendChild(this.get('panelNode')); }, _add: function() { var parent = this.get('parent').get('contentBox'), list = parent.get('listNode'), panel = parent.get('panelNode'); if (list) { list.appendChild(this.get('boundingBox')); } if (panel) { panel.appendChild(this.get('panelNode')); } }, _remove: function() { this.get('boundingBox').remove(); this.get('panelNode').remove(); }, _onActivate: function(e) { if (e.target === this) { // Prevent the browser from navigating to the URL specified by the // anchor's href attribute. e.domEvent.preventDefault(); e.target.set('selected', 1); } }, initializer: function() { this.publish(this.get('triggerEvent'), { defaultFn: this._onActivate }); }, _defLabelGetter: function() { return this.get('contentBox').getHTML(); }, _defLabelSetter: function(label) { var labelNode = this.get('contentBox'); if (labelNode.getHTML() !== label) { // Avoid rewriting existing label. labelNode.setHTML(label); } return label; }, _defContentSetter: function(content) { var panel = this.get('panelNode'); if (panel.getHTML() !== content) { // Avoid rewriting existing content. panel.setHTML(content); } return content; }, _defContentGetter: function() { return this.get('panelNode').getHTML(); }, // find panel by ID mapping from label href _defPanelNodeValueFn: function() { var href = this.get('contentBox').get('href') || '', parent = this.get('parent'), hashIndex = href.indexOf('#'), panel; href = href.substr(hashIndex); if (href.charAt(0) === '#') { // in-page nav, find by ID panel = Y.one(href); if (panel) { panel.addClass(_classNames.tabPanel); } } // use the one found by id, or else try matching indices if (!panel && parent) { panel = parent.get('panelNode') .get('children').item(this.get('index')); } if (!panel) { // create if none found panel = Y.Node.create(this.PANEL_TEMPLATE); } return panel; } }, { ATTRS: { /** * @attribute triggerEvent * @default "click" * @type String */ triggerEvent: { value: 'click' }, /** * @attribute label * @type HTML */ label: { setter: '_defLabelSetter', getter: '_defLabelGetter' }, /** * @attribute content * @type HTML */ content: { setter: '_defContentSetter', getter: '_defContentGetter' }, /** * @attribute panelNode * @type Y.Node */ panelNode: { setter: function(node) { node = Y.one(node); if (node) { node.addClass(_classNames.tabPanel); } return node; }, valueFn: '_defPanelNodeValueFn' }, tabIndex: { value: null, validator: '_validTabIndex' } }, HTML_PARSER: { selected: function() { var ret = (this.get('boundingBox').hasClass(_classNames.selectedTab)) ? 1 : 0; return ret; } } }); }, '@VERSION@', { "requires": [ "widget", "widget-parent", "widget-child", "tabview-base", "node-pluginhost", "node-focusmanager" ], "skinnable": true });
sujonvidia/cdnjs
ajax/libs/yui/3.9.1/tabview/tabview.js
JavaScript
mit
11,291
/* * # Semantic - Dimmer * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributor * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, document, undefined ) { $.fn.dimmer = function(parameters) { var $allModules = $(this), time = new Date().getTime(), performance = [], query = arguments[0], methodInvoked = (typeof query == 'string'), queryArguments = [].slice.call(arguments, 1), returnedValue ; $allModules .each(function() { var settings = ( $.isPlainObject(parameters) ) ? $.extend(true, {}, $.fn.dimmer.settings, parameters) : $.extend({}, $.fn.dimmer.settings), selector = settings.selector, namespace = settings.namespace, className = settings.className, error = settings.error, eventNamespace = '.' + namespace, moduleNamespace = 'module-' + namespace, moduleSelector = $allModules.selector || '', clickEvent = ('ontouchstart' in document.documentElement) ? 'touchstart' : 'click', $module = $(this), $dimmer, $dimmable, element = this, instance = $module.data(moduleNamespace), module ; module = { preinitialize: function() { if( module.is.dimmer() ) { $dimmable = $module.parent(); $dimmer = $module; } else { $dimmable = $module; if( module.has.dimmer() ) { if(settings.dimmerName) { $dimmer = $dimmable.children(selector.dimmer).filter('.' + settings.dimmerName); } else { $dimmer = $dimmable.children(selector.dimmer); } } else { $dimmer = module.create(); } } }, initialize: function() { module.debug('Initializing dimmer', settings); if(settings.on == 'hover') { $dimmable .on('mouseenter' + eventNamespace, module.show) .on('mouseleave' + eventNamespace, module.hide) ; } else if(settings.on == 'click') { $dimmable .on(clickEvent + eventNamespace, module.toggle) ; } if( module.is.page() ) { module.debug('Setting as a page dimmer', $dimmable); module.set.pageDimmer(); } if( module.is.closable() ) { module.verbose('Adding dimmer close event', $dimmer); $dimmer .on(clickEvent + eventNamespace, module.event.click) ; } module.set.dimmable(); module.instantiate(); }, instantiate: function() { module.verbose('Storing instance of module', module); instance = module; $module .data(moduleNamespace, instance) ; }, destroy: function() { module.verbose('Destroying previous module', $dimmer); $module .removeData(moduleNamespace) ; $dimmable .off(eventNamespace) ; $dimmer .off(eventNamespace) ; }, event: { click: function(event) { module.verbose('Determining if event occured on dimmer', event); if( $dimmer.find(event.target).size() === 0 || $(event.target).is(selector.content) ) { module.hide(); event.stopImmediatePropagation(); } } }, addContent: function(element) { var $content = $(element) ; module.debug('Add content to dimmer', $content); if($content.parent()[0] !== $dimmer[0]) { $content.detach().appendTo($dimmer); } }, create: function() { var $element = $( settings.template.dimmer() ) ; if(settings.variation) { module.debug('Creating dimmer with variation', settings.variation); $element.addClass(className.variation); } if(settings.dimmerName) { module.debug('Creating named dimmer', settings.dimmerName); $element.addClass(settings.dimmerName); } $element .appendTo($dimmable) ; return $element; }, show: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; module.debug('Showing dimmer', $dimmer, settings); if( (!module.is.dimmed() || module.is.animating()) && module.is.enabled() ) { module.animate.show(callback); $.proxy(settings.onShow, element)(); $.proxy(settings.onChange, element)(); } else { module.debug('Dimmer is already shown or disabled'); } }, hide: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; if( module.is.dimmed() || module.is.animating() ) { module.debug('Hiding dimmer', $dimmer); module.animate.hide(callback); $.proxy(settings.onHide, element)(); $.proxy(settings.onChange, element)(); } else { module.debug('Dimmer is not visible'); } }, toggle: function() { module.verbose('Toggling dimmer visibility', $dimmer); if( !module.is.dimmed() ) { module.show(); } else { module.hide(); } }, animate: { show: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) { $dimmer .transition({ animation : settings.transition + ' in', queue : false, duration : module.get.duration(), onStart : function() { module.set.dimmed(); }, onComplete : function() { module.set.active(); callback(); } }) ; } else { module.verbose('Showing dimmer animation with javascript'); module.set.dimmed(); $dimmer .stop() .css({ opacity : 0, width : '100%', height : '100%' }) .fadeTo(module.get.duration(), 1, function() { $dimmer.removeAttr('style'); module.set.active(); callback(); }) ; } }, hide: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) { module.verbose('Hiding dimmer with css'); $dimmer .transition({ animation : settings.transition + ' out', queue : false, duration : module.get.duration(), onStart : function() { module.remove.dimmed(); }, onComplete : function() { module.remove.active(); callback(); } }) ; } else { module.verbose('Hiding dimmer with javascript'); module.remove.dimmed(); $dimmer .stop() .fadeOut(module.get.duration(), function() { module.remove.active(); $dimmer.removeAttr('style'); callback(); }) ; } } }, get: { dimmer: function() { return $dimmer; }, duration: function() { if(typeof settings.duration == 'object') { if( module.is.active() ) { return settings.duration.hide; } else { return settings.duration.show; } } return settings.duration; } }, has: { dimmer: function() { if(settings.dimmerName) { return ($module.children(selector.dimmer).filter('.' + settings.dimmerName).size() > 0); } else { return ( $module.children(selector.dimmer).size() > 0 ); } } }, is: { active: function() { return $dimmer.hasClass(className.active); }, animating: function() { return ( $dimmer.is(':animated') || $dimmer.hasClass(className.animating) ); }, closable: function() { if(settings.closable == 'auto') { if(settings.on == 'hover') { return false; } return true; } return settings.closable; }, dimmer: function() { return $module.is(selector.dimmer); }, dimmable: function() { return $module.is(selector.dimmable); }, dimmed: function() { return $dimmable.hasClass(className.dimmed); }, disabled: function() { return $dimmable.hasClass(className.disabled); }, enabled: function() { return !module.is.disabled(); }, page: function () { return $dimmable.is('body'); }, pageDimmer: function() { return $dimmer.hasClass(className.pageDimmer); } }, can: { show: function() { return !$dimmer.hasClass(className.disabled); } }, set: { active: function() { $dimmer.addClass(className.active); }, dimmable: function() { $dimmable.addClass(className.dimmable); }, dimmed: function() { $dimmable.addClass(className.dimmed); }, pageDimmer: function() { $dimmer.addClass(className.pageDimmer); }, disabled: function() { $dimmer.addClass(className.disabled); } }, remove: { active: function() { $dimmer .removeClass(className.active) ; }, dimmed: function() { $dimmable.removeClass(className.dimmed); }, disabled: function() { $dimmer.removeClass(className.disabled); } }, setting: function(name, value) { module.debug('Changing setting', name, value); if( $.isPlainObject(name) ) { $.extend(true, settings, name); } else if(value !== undefined) { settings[name] = value; } else { return settings[name]; } }, internal: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, module, name); } else if(value !== undefined) { module[name] = value; } else { return module[name]; } }, debug: function() { if(settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.debug.apply(console, arguments); } } }, verbose: function() { if(settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.verbose.apply(console, arguments); } } }, error: function() { module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); module.error.apply(console, arguments); }, performance: { log: function(message) { var currentTime, executionTime, previousTime ; if(settings.performance) { currentTime = new Date().getTime(); previousTime = time || currentTime; executionTime = currentTime - previousTime; time = currentTime; performance.push({ 'Name' : message[0], 'Arguments' : [].slice.call(message, 1) || '', 'Element' : element, 'Execution Time' : executionTime }); } clearTimeout(module.performance.timer); module.performance.timer = setTimeout(module.performance.display, 100); }, display: function() { var title = settings.name + ':', totalTime = 0 ; time = false; clearTimeout(module.performance.timer); $.each(performance, function(index, data) { totalTime += data['Execution Time']; }); title += ' ' + totalTime + 'ms'; if(moduleSelector) { title += ' \'' + moduleSelector + '\''; } if($allModules.size() > 1) { title += ' ' + '(' + $allModules.size() + ')'; } if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { console.groupCollapsed(title); if(console.table) { console.table(performance); } else { $.each(performance, function(index, data) { console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); }); } console.groupEnd(); } performance = []; } }, invoke: function(query, passedArguments, context) { var object = instance, maxDepth, found, response ; passedArguments = passedArguments || queryArguments; context = element || context; if(typeof query == 'string' && object !== undefined) { query = query.split(/[\. ]/); maxDepth = query.length - 1; $.each(query, function(depth, value) { var camelCaseValue = (depth != maxDepth) ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) : query ; if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { object = object[camelCaseValue]; } else if( object[camelCaseValue] !== undefined ) { found = object[camelCaseValue]; return false; } else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { object = object[value]; } else if( object[value] !== undefined ) { found = object[value]; return false; } else { module.error(error.method, query); return false; } }); } if ( $.isFunction( found ) ) { response = found.apply(context, passedArguments); } else if(found !== undefined) { response = found; } if($.isArray(returnedValue)) { returnedValue.push(response); } else if(returnedValue !== undefined) { returnedValue = [returnedValue, response]; } else if(response !== undefined) { returnedValue = response; } return found; } }; module.preinitialize(); if(methodInvoked) { if(instance === undefined) { module.initialize(); } module.invoke(query); } else { if(instance !== undefined) { module.destroy(); } module.initialize(); } }) ; return (returnedValue !== undefined) ? returnedValue : this ; }; $.fn.dimmer.settings = { name : 'Dimmer', namespace : 'dimmer', debug : false, verbose : true, performance : true, dimmerName : false, variation : false, closable : 'auto', transition : 'fade', useCSS : true, on : false, duration : { show : 500, hide : 500 }, onChange : function(){}, onShow : function(){}, onHide : function(){}, error : { method : 'The method you called is not defined.' }, selector: { dimmable : '.dimmable', dimmer : '.ui.dimmer', content : '.ui.dimmer > .content, .ui.dimmer > .content > .center' }, template: { dimmer: function() { return $('<div />').attr('class', 'ui dimmer'); } }, className : { active : 'active', animating : 'animating', dimmable : 'dimmable', dimmed : 'dimmed', disabled : 'disabled', hide : 'hide', pageDimmer : 'page', show : 'show' } }; })( jQuery, window , document );
nesk/cdnjs
ajax/libs/semantic-ui/1.3.1/components/dimmer.js
JavaScript
mit
18,401
/************* Blue Theme *************/ /* overall */ .tablesorter-blue { width: 100%; background-color: #fff; margin: 10px 0 15px; text-align: left; border-spacing: 0; border: #cdcdcd 1px solid; border-width: 1px 0 0 1px; } .tablesorter-blue th, .tablesorter-blue td { border: #cdcdcd 1px solid; border-width: 0 1px 1px 0; } /* header */ .tablesorter-blue th, .tablesorter-blue thead td { font: bold 12px/18px Arial, Sans-serif; color: #000; background-color: #99bfe6; border-collapse: collapse; padding: 4px; text-shadow: 0 1px 0 rgba(204, 204, 204, 0.7); } .tablesorter-blue tbody td, .tablesorter-blue tfoot th, .tablesorter-blue tfoot td { padding: 4px; vertical-align: top; } .tablesorter-blue .header, .tablesorter-blue .tablesorter-header { /* black (unsorted) double arrow */ background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); /* white (unsorted) double arrow */ /* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */ /* image */ /* background-image: url(images/black-unsorted.gif); */ background-repeat: no-repeat; background-position: center right; padding: 4px 18px 4px 4px; white-space: normal; cursor: pointer; } .tablesorter-blue .headerSortUp, .tablesorter-blue .tablesorter-headerSortUp, .tablesorter-blue .tablesorter-headerAsc { background-color: #9fbfdf; /* black asc arrow */ background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); /* white asc arrow */ /* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */ /* image */ /* background-image: url(images/black-asc.gif); */ } .tablesorter-blue .headerSortDown, .tablesorter-blue .tablesorter-headerSortDown, .tablesorter-blue .tablesorter-headerDesc { background-color: #8cb3d9; /* black desc arrow */ background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); /* white desc arrow */ /* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */ /* image */ /* background-image: url(images/black-desc.gif); */ } .tablesorter-blue thead .sorter-false { background-image: none; padding: 4px; } /* tfoot */ .tablesorter-blue tfoot .tablesorter-headerSortUp, .tablesorter-blue tfoot .tablesorter-headerSortDown, .tablesorter-blue tfoot .tablesorter-headerAsc, .tablesorter-blue tfoot .tablesorter-headerDesc { /* remove sort arrows from footer */ background-image: none; } /* tbody */ .tablesorter-blue td { color: #3d3d3d; background-color: #fff; padding: 4px; vertical-align: top; } /* hovered row colors you'll need to add additional lines for rows with more than 2 child rows */ .tablesorter-blue tbody > tr:hover > td, .tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td, .tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td, .tablesorter-blue tbody > tr.even:hover > td, .tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td, .tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td { background: #d9d9d9; } .tablesorter-blue tbody > tr.odd:hover > td, .tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td, .tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td { background: #bfbfbf; } /* table processing indicator */ .tablesorter-blue .tablesorter-processing { background-position: center center !important; background-repeat: no-repeat !important; /* background-image: url(../addons/pager/icons/loading.gif) !important; */ background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !important; } /* Zebra Widget - row alternating colors */ .tablesorter-blue tbody tr.odd td { background-color: #ebf2fa; } .tablesorter-blue tbody tr.even td { background-color: #fff; } /* Column Widget - column sort colors */ .tablesorter-blue td.primary, .tablesorter-blue tr.odd td.primary { background-color: #99b3e6; } .tablesorter-blue tr.even td.primary { background-color: #c2d1f0; } .tablesorter-blue td.secondary, .tablesorter-blue tr.odd td.secondary { background-color: #c2d1f0; } .tablesorter-blue tr.even td.secondary { background-color: #d6e0f5; } .tablesorter-blue td.tertiary, .tablesorter-blue tr.odd td.tertiary { background-color: #d6e0f5; } .tablesorter-blue tr.even td.tertiary { background-color: #ebf0fa; } /* filter widget */ .tablesorter-blue .tablesorter-filter-row td { background: #eee; line-height: normal; text-align: center; /* center the input */ -webkit-transition: line-height 0.1s ease; -moz-transition: line-height 0.1s ease; -o-transition: line-height 0.1s ease; transition: line-height 0.1s ease; } /* optional disabled input styling */ .tablesorter-blue .tablesorter-filter-row .disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: not-allowed; } /* hidden filter row */ .tablesorter-blue .tablesorter-filter-row.hideme td { /*** *********************************************** ***/ /*** change this padding to modify the thickness ***/ /*** of the closed filter row (height = padding x 2) ***/ padding: 2px; /*** *********************************************** ***/ margin: 0; line-height: 0; cursor: pointer; } .tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter { height: 1px; min-height: 0; border: 0; padding: 0; margin: 0; /* don't use visibility: hidden because it disables tabbing */ opacity: 0; filter: alpha(opacity=0); } /* filters */ .tablesorter-blue .tablesorter-filter { width: 98%; height: inherit; margin: 0; padding: 4px; background-color: #fff; border: 1px solid #bbb; color: #333; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: height 0.1s ease; -moz-transition: height 0.1s ease; -o-transition: height 0.1s ease; transition: height 0.1s ease; }
joseluisq/cdnjs
ajax/libs/jquery.tablesorter/2.7.2/css/theme.blue.css
CSS
mit
6,707
var db = require('mime-db') // types[extension] = type exports.types = Object.create(null) // extensions[type] = [extensions] exports.extensions = Object.create(null) Object.keys(db).forEach(function (name) { var mime = db[name] var exts = mime.extensions if (!exts || !exts.length) return exports.extensions[name] = exts exts.forEach(function (ext) { exports.types[ext] = name }) }) exports.lookup = function (string) { if (!string || typeof string !== "string") return false // remove any leading paths, though we should just use path.basename string = string.replace(/.*[\.\/\\]/, '').toLowerCase() if (!string) return false return exports.types[string] || false } exports.extension = function (type) { if (!type || typeof type !== "string") return false // to do: use media-typer type = type.match(/^\s*([^;\s]*)(?:;|\s|$)/) if (!type) return false var exts = exports.extensions[type[1].toLowerCase()] if (!exts || !exts.length) return false return exts[0] } // type has to be an exact mime type exports.charset = function (type) { var mime = db[type] if (mime && mime.charset) return mime.charset // default text/* to utf-8 if (/^text\//.test(type)) return 'UTF-8' return false } // backwards compatibility exports.charsets = { lookup: exports.charset } // to do: maybe use set-type module or something exports.contentType = function (type) { if (!type || typeof type !== "string") return false if (!~type.indexOf('/')) type = exports.lookup(type) if (!type) return false if (!~type.indexOf('charset')) { var charset = exports.charset(type) if (charset) type += '; charset=' + charset.toLowerCase() } return type }
maral21/PQUIZ
node_modules/express/node_modules/accepts/node_modules/mime-types/index.js
JavaScript
mit
1,702
var db = require('mime-db') // types[extension] = type exports.types = Object.create(null) // extensions[type] = [extensions] exports.extensions = Object.create(null) Object.keys(db).forEach(function (name) { var mime = db[name] var exts = mime.extensions if (!exts || !exts.length) return exports.extensions[name] = exts exts.forEach(function (ext) { exports.types[ext] = name }) }) exports.lookup = function (string) { if (!string || typeof string !== "string") return false // remove any leading paths, though we should just use path.basename string = string.replace(/.*[\.\/\\]/, '').toLowerCase() if (!string) return false return exports.types[string] || false } exports.extension = function (type) { if (!type || typeof type !== "string") return false // to do: use media-typer type = type.match(/^\s*([^;\s]*)(?:;|\s|$)/) if (!type) return false var exts = exports.extensions[type[1].toLowerCase()] if (!exts || !exts.length) return false return exts[0] } // type has to be an exact mime type exports.charset = function (type) { var mime = db[type] if (mime && mime.charset) return mime.charset // default text/* to utf-8 if (/^text\//.test(type)) return 'UTF-8' return false } // backwards compatibility exports.charsets = { lookup: exports.charset } // to do: maybe use set-type module or something exports.contentType = function (type) { if (!type || typeof type !== "string") return false if (!~type.indexOf('/')) type = exports.lookup(type) if (!type) return false if (!~type.indexOf('charset')) { var charset = exports.charset(type) if (charset) type += '; charset=' + charset.toLowerCase() } return type }
dayscript/blogdayscript
node_modules/compression/node_modules/accepts/node_modules/mime-types/index.js
JavaScript
mit
1,702
<?php /** * AclNodeTest file * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice * * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license http://www.opensource.org/licenses/mit-license.php MIT License */ App::uses('DbAcl', 'Controller/Component/Acl'); App::uses('AclNode', 'Model'); /** * DB ACL wrapper test class * * @package Cake.Test.Case.Model */ class DbAclNodeTestBase extends AclNode { /** * useDbConfig property * * @var string */ public $useDbConfig = 'test'; /** * cacheSources property * * @var boolean */ public $cacheSources = false; } /** * Aro Test Wrapper * * @package Cake.Test.Case.Model */ class DbAroTest extends DbAclNodeTestBase { /** * useTable property * * @var string */ public $useTable = 'aros'; /** * hasAndBelongsToMany property * * @var array */ public $hasAndBelongsToMany = array('DbAcoTest' => array('with' => 'DbPermissionTest')); } /** * Aco Test Wrapper * * @package Cake.Test.Case.Model */ class DbAcoTest extends DbAclNodeTestBase { /** * useTable property * * @var string */ public $useTable = 'acos'; /** * hasAndBelongsToMany property * * @var array */ public $hasAndBelongsToMany = array('DbAroTest' => array('with' => 'DbPermissionTest')); } /** * Permission Test Wrapper * * @package Cake.Test.Case.Model */ class DbPermissionTest extends CakeTestModel { /** * useTable property * * @var string */ public $useTable = 'aros_acos'; /** * cacheQueries property * * @var boolean */ public $cacheQueries = false; /** * belongsTo property * * @var array */ public $belongsTo = array('DbAroTest' => array('foreignKey' => 'aro_id'), 'DbAcoTest' => array('foreignKey' => 'aco_id')); } /** * DboActionTest class * * @package Cake.Test.Case.Model */ class DbAcoActionTest extends CakeTestModel { /** * useTable property * * @var string */ public $useTable = 'aco_actions'; /** * belongsTo property * * @var array */ public $belongsTo = array('DbAcoTest' => array('foreignKey' => 'aco_id')); } /** * DbAroUserTest class * * @package Cake.Test.Case.Model */ class DbAroUserTest extends CakeTestModel { /** * name property * * @var string */ public $name = 'AuthUser'; /** * useTable property * * @var string */ public $useTable = 'auth_users'; /** * bindNode method * * @param string|array|Model $ref * @return void */ public function bindNode($ref = null) { if (Configure::read('DbAclbindMode') === 'string') { return 'ROOT/admins/Gandalf'; } elseif (Configure::read('DbAclbindMode') === 'array') { return array('DbAroTest' => array('DbAroTest.model' => 'AuthUser', 'DbAroTest.foreign_key' => 2)); } } } /** * TestDbAcl class * * @package Cake.Test.Case.Model */ class TestDbAcl extends DbAcl { /** * construct method * */ public function __construct() { $this->Aro = new DbAroTest(); $this->Aro->Permission = new DbPermissionTest(); $this->Aco = new DbAcoTest(); $this->Aro->Permission = new DbPermissionTest(); } } /** * AclNodeTest class * * @package Cake.Test.Case.Model */ class AclNodeTest extends CakeTestCase { /** * fixtures property * * @var array */ public $fixtures = array('core.aro', 'core.aco', 'core.aros_aco', 'core.aco_action', 'core.auth_user'); /** * setUp method * * @return void */ public function setUp() { parent::setUp(); Configure::write('Acl.classname', 'TestDbAcl'); Configure::write('Acl.database', 'test'); } /** * testNode method * * @return void */ public function testNode() { $Aco = new DbAcoTest(); $result = Hash::extract($Aco->node('Controller1'), '{n}.DbAcoTest.id'); $expected = array(2, 1); $this->assertEquals($expected, $result); $result = Hash::extract($Aco->node('Controller1/action1'), '{n}.DbAcoTest.id'); $expected = array(3, 2, 1); $this->assertEquals($expected, $result); $result = Hash::extract($Aco->node('Controller2/action1'), '{n}.DbAcoTest.id'); $expected = array(7, 6, 1); $this->assertEquals($expected, $result); $result = Hash::extract($Aco->node('Controller1/action2'), '{n}.DbAcoTest.id'); $expected = array(5, 2, 1); $this->assertEquals($expected, $result); $result = Hash::extract($Aco->node('Controller1/action1/record1'), '{n}.DbAcoTest.id'); $expected = array(4, 3, 2, 1); $this->assertEquals($expected, $result); $result = Hash::extract($Aco->node('Controller2/action1/record1'), '{n}.DbAcoTest.id'); $expected = array(8, 7, 6, 1); $this->assertEquals($expected, $result); $this->assertFalse($Aco->node('Controller2/action3')); $this->assertFalse($Aco->node('Controller2/action3/record5')); $result = $Aco->node(''); $this->assertEquals(null, $result); } /** * test that node() doesn't dig deeper than it should. * * @return void */ public function testNodeWithDuplicatePathSegments() { $Aco = new DbAcoTest(); $nodes = $Aco->node('ROOT/Users'); $this->assertEquals(1, $nodes[0]['DbAcoTest']['parent_id'], 'Parent id does not point at ROOT. %s'); } /** * testNodeArrayFind method * * @return void */ public function testNodeArrayFind() { $Aro = new DbAroTest(); Configure::write('DbAclbindMode', 'string'); $result = Hash::extract($Aro->node(array('DbAroUserTest' => array('id' => '1', 'foreign_key' => '1'))), '{n}.DbAroTest.id'); $expected = array(3, 2, 1); $this->assertEquals($expected, $result); Configure::write('DbAclbindMode', 'array'); $result = Hash::extract($Aro->node(array('DbAroUserTest' => array('id' => 4, 'foreign_key' => 2))), '{n}.DbAroTest.id'); $expected = array(4); $this->assertEquals($expected, $result); } /** * testNodeObjectFind method * * @return void */ public function testNodeObjectFind() { $Aro = new DbAroTest(); $Model = new DbAroUserTest(); $Model->id = 1; $result = Hash::extract($Aro->node($Model), '{n}.DbAroTest.id'); $expected = array(3, 2, 1); $this->assertEquals($expected, $result); $Model->id = 2; $result = Hash::extract($Aro->node($Model), '{n}.DbAroTest.id'); $expected = array(4, 2, 1); $this->assertEquals($expected, $result); } /** * testNodeAliasParenting method * * @return void */ public function testNodeAliasParenting() { $Aco = ClassRegistry::init('DbAcoTest'); $db = $Aco->getDataSource(); $db->truncate($Aco); $Aco->create(array('model' => null, 'foreign_key' => null, 'parent_id' => null, 'alias' => 'Application')); $Aco->save(); $Aco->create(array('model' => null, 'foreign_key' => null, 'parent_id' => $Aco->id, 'alias' => 'Pages')); $Aco->save(); $result = $Aco->find('all'); $expected = array( array('DbAcoTest' => array('id' => '1', 'parent_id' => null, 'model' => null, 'foreign_key' => null, 'alias' => 'Application', 'lft' => '1', 'rght' => '4'), 'DbAroTest' => array()), array('DbAcoTest' => array('id' => '2', 'parent_id' => '1', 'model' => null, 'foreign_key' => null, 'alias' => 'Pages', 'lft' => '2', 'rght' => '3'), 'DbAroTest' => array()) ); $this->assertEquals($expected, $result); } /** * testNodeActionAuthorize method * * @return void */ public function testNodeActionAuthorize() { App::build(array( 'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) ), App::RESET); CakePlugin::load('TestPlugin'); $Aro = new DbAroTest(); $Aro->create(); $Aro->save(array('model' => 'TestPluginAuthUser', 'foreign_key' => 1)); $result = $Aro->id; $expected = 5; $this->assertEquals($expected, $result); $node = $Aro->node(array('TestPlugin.TestPluginAuthUser' => array('id' => 1, 'user' => 'mariano'))); $result = Hash::get($node, '0.DbAroTest.id'); $expected = $Aro->id; $this->assertEquals($expected, $result); CakePlugin::unload('TestPlugin'); } }
CareerHub/PHP-API-Example
CakePHP/lib/Cake/Test/Case/Model/AclNodeTest.php
PHP
mit
8,277
/* * # Semantic UI * https://github.com/Semantic-Org/Semantic-UI * http://www.semantic-ui.com/ * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ .ui.dropdown{cursor:pointer;position:relative;display:inline-block;line-height:1em;tap-highlight-color:transparent;outline:0;text-align:left;-webkit-transition:border-radius .1s ease,width .2s ease;transition:border-radius .1s ease,width .2s ease}.ui.dropdown .menu{cursor:auto;position:absolute;display:none;outline:0;top:100%;margin:0;padding:0;background:#fff;min-width:100%;white-space:nowrap;font-size:1rem;text-shadow:none;text-align:left;box-shadow:0 1px 4px 0 rgba(0,0,0,.15);border:1px solid rgba(39,41,43,.15);border-radius:0 0 .2857rem .2857rem;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;z-index:11;will-change:transform,opacity}.ui.dropdown>input[type=hidden],.ui.dropdown>select{display:none!important}.ui.dropdown>.dropdown.icon{margin:0 0 0 1em}.ui.dropdown .menu>.item .dropdown.icon{width:auto;float:right;margin:.2em 0 0 .75em}.ui.dropdown>.text{display:inline-block;-webkit-transition:color .2s ease;transition:color .2s ease}.ui.dropdown .menu>.item{position:relative;cursor:pointer;display:block;border:none;height:auto;border-top:none;line-height:1.2em;color:rgba(0,0,0,.8);padding:.65rem 1.25rem!important;font-size:1rem;text-transform:none;font-weight:400;box-shadow:none;-webkit-touch-callout:none}.ui.dropdown .menu>.item:first-child{border-top:none}.ui.dropdown .menu .item>[class*="right floated"],.ui.dropdown>.text>[class*="right floated"]{float:right;margin-right:0;margin-left:1em}.ui.dropdown .menu .item>[class*="left floated"],.ui.dropdown>.text>[class*="left floated"]{float:right;margin-left:0;margin-right:1em}.ui.dropdown .menu .item>.flag.floated,.ui.dropdown .menu .item>.icon.floated,.ui.dropdown .menu .item>.image.floated,.ui.dropdown .menu .item>img.floated{margin-top:.2em}.ui.dropdown .menu>.header{margin:1rem 0 .75rem;padding:0 1.25rem;color:rgba(0,0,0,.85);font-size:.8em;font-weight:700;text-transform:uppercase}.ui.dropdown .menu>.divider{border-top:1px solid rgba(0,0,0,.05);height:0;margin:.5em 0}.ui.dropdown .menu>.input{margin:.75rem 1.25rem;min-width:200px}.ui.dropdown .menu>.header+.input{margin-top:0}.ui.dropdown .menu>.input:not(.transparent) input{padding:.5em 1em}.ui.dropdown .menu>.input:not(.transparent) .button,.ui.dropdown .menu>.input:not(.transparent) .icon,.ui.dropdown .menu>.input:not(.transparent) .label{padding-top:.5em;padding-bottom:.5em}.ui.dropdown .menu>.item>.description,.ui.dropdown>.text>.description{margin:0 0 0 1em;color:rgba(0,0,0,.4)}.ui.dropdown .menu .menu{top:0!important;left:100%!important;right:auto!important;margin:0 0 0 -.5em!important;border-radius:0 .2857rem .2857rem 0!important;z-index:21!important}.ui.dropdown .menu .menu:after{display:none}.ui.dropdown>.text>.flag,.ui.dropdown>.text>.icon,.ui.dropdown>.text>.image,.ui.dropdown>.text>.label,.ui.dropdown>.text>img{margin-top:0}.ui.dropdown .menu>.item>.flag,.ui.dropdown .menu>.item>.icon,.ui.dropdown .menu>.item>.image,.ui.dropdown .menu>.item>.label,.ui.dropdown .menu>.item>img{margin-top:.2em}.ui.dropdown .menu>.item>.flag,.ui.dropdown .menu>.item>.icon,.ui.dropdown .menu>.item>.image,.ui.dropdown .menu>.item>.label,.ui.dropdown .menu>.item>img,.ui.dropdown>.text>.flag,.ui.dropdown>.text>.icon,.ui.dropdown>.text>.image,.ui.dropdown>.text>.label,.ui.dropdown>.text>img{margin-left:0;margin-right:.75em}.ui.dropdown .menu>.item>.image,.ui.dropdown .menu>.item>img,.ui.dropdown>.text>.image,.ui.dropdown>.text>img{display:inline-block;vertical-align:middle;width:auto;max-height:2.5em}.ui.dropdown .ui.menu>.item:before,.ui.menu .ui.dropdown .menu>.item:before{display:none}.ui.menu .ui.dropdown .menu .active.item{border-left:none}.ui.buttons>.ui.dropdown:last-child .menu,.ui.menu .right.dropdown.item .menu,.ui.menu .right.menu .dropdown:last-child .menu{left:auto;right:0}.ui.dropdown.icon.button>.dropdown.icon{margin:0}.ui.dropdown.button:not(.pointing):not(.floating).active,.ui.dropdown.button:not(.pointing):not(.floating).visible{border-bottom-left-radius:0;border-bottom-right-radius:0}.ui.selection.dropdown{cursor:pointer;word-wrap:break-word;white-space:normal;outline:0;-webkit-transform:rotateZ(0deg);transform:rotateZ(0deg);min-width:180px;background:#fff;display:inline-block;padding:.8em 1.1em;color:rgba(0,0,0,.8);box-shadow:none;border:1px solid rgba(39,41,43,.15);border-radius:.2857rem;-webkit-transition:border-radius .1s ease,width .2s ease,box-shadow .2s ease,border .2s ease;transition:border-radius .1s ease,width .2s ease,box-shadow .2s ease,border .2s ease}.ui.selection.dropdown.active,.ui.selection.dropdown.visible{z-index:10}select.ui.dropdown{height:38px;padding:0;margin:0;visibility:hidden}.ui.selection.dropdown>.text{margin-right:2em}.ui.selection.dropdown>.delete.icon,.ui.selection.dropdown>.dropdown.icon,.ui.selection.dropdown>.search.icon{position:absolute;top:auto;margin:0;width:auto;right:1.1em;opacity:.8;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.ui.compact.selection.dropdown{min-width:0}.ui.selection.dropdown>.delete.icon{opacity:.6}.ui.selection.dropdown>.delete.icon:hover{opacity:1}.ui.selection.dropdown .menu{overflow-x:hidden;overflow-y:auto;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-overflow-scrolling:touch;border-top:none!important;width:auto;margin:0 -1px;min-width:-webkit-calc(100% + 2px);min-width:calc(100% + 2px);outline:0;box-shadow:0 2px 4px 0 rgba(0,0,0,.08);-webkit-transition:box-shadow .2s ease,border .2s ease;transition:box-shadow .2s ease,border .2s ease}.ui.selection.dropdown .menu:after,.ui.selection.dropdown .menu:before{display:none}@media only screen and (max-width:767px){.ui.selection.dropdown .menu{max-height:7.7142rem}}@media only screen and (min-width:768px){.ui.selection.dropdown .menu{max-height:10.2856rem}}@media only screen and (min-width:992px){.ui.selection.dropdown .menu{max-height:15.4284rem}}@media only screen and (min-width:1920px){.ui.selection.dropdown .menu{max-height:20.5712rem}}.ui.selection.dropdown .menu>.item{border-top:1px solid rgba(0,0,0,.05);padding-left:1.1em!important;padding-right:-webkit-calc(2.1em)!important;padding-right:calc(2.1em)!important;white-space:normal;word-wrap:normal}.ui.selection.dropdown:hover{border-color:rgba(39,41,43,.3);box-shadow:0 0 2px 0 rgba(0,0,0,.05)}.ui.selection.visible.dropdown:hover{border-color:rgba(39,41,43,.3);box-shadow:0 0 4px 0 rgba(0,0,0,.08)}.ui.selection.visible.dropdown:hover .menu{border:1px solid rgba(39,41,43,.3);box-shadow:0 4px 6px 0 rgba(0,0,0,.08)}.ui.selection.dropdown.visible{border-color:rgba(39,41,43,.15);box-shadow:0 0 4px 0 rgba(0,0,0,.08)}.ui.visible.selection.dropdown>.dropdown.icon{opacity:1}.ui.selection.active.dropdown>.text:not(.default),.ui.selection.visible.dropdown>.text:not(.default){font-weight:400;color:rgba(0,0,0,.8)}.ui.active.selection.dropdown,.ui.visible.selection.dropdown{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.ui.search.dropdown{min-width:''}.ui.search.dropdown>input.search{background:none;border:none;cursor:pointer;position:absolute;border-radius:0!important;top:0;left:0;width:100%;outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0);padding:inherit}.ui.search.selection.dropdown>input.search{line-height:1.2em}.ui.search.dropdown.active>input.search,.ui.search.dropdown.visible>input.search{cursor:auto}.ui.active.search.dropdown>input.search:focus+.text{color:rgba(0,0,0,.4)!important}.ui.search.dropdown .menu{overflow-x:hidden;overflow-y:auto;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-overflow-scrolling:touch}@media only screen and (max-width:767px){.ui.search.dropdown .menu{max-height:7.7142rem}}@media only screen and (min-width:768px){.ui.search.dropdown .menu{max-height:10.2856rem}}@media only screen and (min-width:992px){.ui.search.dropdown .menu{max-height:15.4284rem}}@media only screen and (min-width:1920px){.ui.search.dropdown .menu{max-height:20.5712rem}}.ui.inline.dropdown{cursor:pointer;display:inline-block;color:inherit}.ui.inline.dropdown .dropdown.icon{margin:0 .5em 0 .25em;vertical-align:top}.ui.inline.dropdown>.text{font-weight:700}.ui.inline.dropdown .menu{cursor:auto;margin-top:.25em;border-radius:.2857rem}.ui.dropdown .menu>.item:hover{background:rgba(0,0,0,.05);color:rgba(0,0,0,.8);z-index:12}.ui.dropdown .menu .active.item{background:0 0;font-weight:700;color:rgba(0,0,0,.8);box-shadow:none;z-index:12}.ui.default.dropdown>.text,.ui.dropdown>.default.text{color:rgba(179,179,179,.7)}.ui.default.dropdown:hover>.text,.ui.dropdown:hover>.default.text{color:rgba(140,140,140,.7)}.ui.loading.dropdown>.text{-webkit-transition:none;transition:none}.ui.dropdown .menu .selected.item,.ui.dropdown.selected{background:rgba(0,0,0,.03);color:rgba(0,0,0,.8)}.ui.dropdown>.filtered.text{visibility:hidden}.ui.dropdown .filtered.item{display:none}.ui.dropdown.error,.ui.dropdown.error>.default.text,.ui.dropdown.error>.text{color:#a94442}.ui.selection.dropdown.error{background:#fff0f0;border-color:#dbb1b1}.ui.dropdown.error>.menu,.ui.dropdown.error>.menu .menu,.ui.selection.dropdown.error:hover{border-color:#dbb1b1}.ui.dropdown.error>.menu>.item{color:#d95c5c}.ui.dropdown.error>.menu>.item:hover{background-color:#fff2f2}.ui.dropdown.error>.menu .active.item{background-color:#fdcfcf}.ui.dropdown .menu{left:0}.ui.simple.dropdown .menu:after,.ui.simple.dropdown .menu:before{display:none}.ui.simple.dropdown .menu{position:absolute;display:block;overflow:hidden;top:-9999px!important;opacity:0;width:0;height:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.ui.simple.active.dropdown,.ui.simple.dropdown:hover{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.ui.simple.active.dropdown>.menu,.ui.simple.dropdown:hover>.menu{overflow:visible;width:auto;height:auto;top:100%!important;opacity:1}.ui.simple.dropdown:hover>.menu>.item:hover>.menu,.ui.simple.dropdown>.menu>.item:active>.menu{overflow:visible;width:auto;height:auto;top:0!important;left:100%!important;opacity:1}.ui.simple.disabled.dropdown:hover .menu{display:none;height:0;width:0;overflow:hidden}.ui.simple.visible.dropdown>.menu{display:block}.ui.fluid.dropdown{display:block;width:100%;min-width:0}.ui.fluid.dropdown>.dropdown.icon{float:right}.ui.floating.dropdown .menu{left:0;right:auto;margin-top:.5em!important;box-shadow:0 2px 5px 0 rgba(0,0,0,.15);border-radius:.2857rem}.ui.pointing.dropdown>.menu{top:100%;margin-top:.75em;border-radius:.2857rem}.ui.pointing.dropdown>.menu:after{display:block;position:absolute;pointer-events:none;content:'';visibility:visible;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);width:.5em;height:.5em;box-shadow:-1px -1px 0 1px rgba(0,0,0,.1);background:#fff;z-index:2;top:-.25em;left:50%;margin:0 0 0 -.25em}.ui.top.left.pointing.dropdown>.menu{top:100%;bottom:auto;left:0;right:auto;margin:1em 0 0}.ui.top.left.pointing.dropdown>.menu:after{top:-.25em;left:1em;right:auto;margin:0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.ui.top.right.pointing.dropdown>.menu{top:100%;bottom:auto;right:0;left:auto;margin:1em 0 0}.ui.top.right.pointing.dropdown>.menu:after{top:-.25em;left:auto;right:1em;margin:0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.ui.left.pointing.dropdown>.menu{top:0;left:100%;right:auto;margin:0 0 0 1em}.ui.left.pointing.dropdown>.menu:after{top:1em;left:-.25em;margin:0;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.ui.right.pointing.dropdown>.menu{top:0;left:auto;right:100%;margin:0 1em 0 0}.ui.right.pointing.dropdown>.menu:after{top:1em;left:auto;right:-.25em;margin:0;-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.ui.bottom.pointing.dropdown>.menu{top:auto;bottom:100%;left:0;right:auto;margin:0 0 1em}.ui.bottom.pointing.dropdown>.menu:after{top:auto;bottom:-.25em;right:auto;margin:0;-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.ui.bottom.pointing.dropdown>.menu .menu{top:auto!important;bottom:0!important}.ui.bottom.left.pointing.dropdown>.menu{left:0;right:auto}.ui.bottom.left.pointing.dropdown>.menu:after{left:1em;right:auto}.ui.bottom.right.pointing.dropdown>.menu{right:0;left:auto}.ui.bottom.right.pointing.dropdown>.menu:after{left:auto;right:1em}@font-face{font-family:Dropdown;src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB5AAAAC8AAAAYGNtYXAPfuIIAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5Zjo82LgAAAFwAAABVGhlYWQAQ88bAAACxAAAADZoaGVhAwcB6QAAAvwAAAAkaG10eAS4ABIAAAMgAAAAIGxvY2EBNgDeAAADQAAAABJtYXhwAAoAFgAAA1QAAAAgbmFtZVcZpu4AAAN0AAABRXBvc3QAAwAAAAAEvAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIPDa//3//wAAAAAAIPDX//3//wAB/+MPLQADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAIABJQElABMAABM0NzY3BTYXFhUUDwEGJwYvASY1AAUGBwEACAUGBoAFCAcGgAUBEgcGBQEBAQcECQYHfwYBAQZ/BwYAAQAAAG4BJQESABMAADc0PwE2MzIfARYVFAcGIyEiJyY1AAWABgcIBYAGBgUI/wAHBgWABwaABQWABgcHBgUFBgcAAAABABIASQC3AW4AEwAANzQ/ATYXNhcWHQEUBwYnBi8BJjUSBoAFCAcFBgYFBwgFgAbbBwZ/BwEBBwQJ/wgEBwEBB38GBgAAAAABAAAASQClAW4AEwAANxE0NzYzMh8BFhUUDwEGIyInJjUABQYHCAWABgaABQgHBgVbAQAIBQYGgAUIBwWABgYFBwAAAAEAAAABAADZuaKOXw889QALAgAAAAAA0ABHWAAAAADQAEdYAAAAAAElAW4AAAAIAAIAAAAAAAAAAQAAAeD/4AAAAgAAAAAAASUAAQAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAABAAAAASUAAAElAAAAtwASALcAAAAAAAAACgAUAB4AQgBkAIgAqgAAAAEAAAAIABQAAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAOAAAAAQAAAAAAAgAOAEcAAQAAAAAAAwAOACQAAQAAAAAABAAOAFUAAQAAAAAABQAWAA4AAQAAAAAABgAHADIAAQAAAAAACgA0AGMAAwABBAkAAQAOAAAAAwABBAkAAgAOAEcAAwABBAkAAwAOACQAAwABBAkABAAOAFUAAwABBAkABQAWAA4AAwABBAkABgAOADkAAwABBAkACgA0AGMAaQBjAG8AbQBvAG8AbgBWAGUAcgBzAGkAbwBuACAAMQAuADAAaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AbgBSAGUAZwB1AGwAYQByAGkAYwBvAG0AbwBvAG4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format('truetype'),url(data:application/font-woff;charset=utf-8;base64,d09GRk9UVE8AAAVwAAoAAAAABSgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA9AAAAdkAAAHZLDXE/09TLzIAAALQAAAAYAAAAGAIIweQY21hcAAAAzAAAABMAAAATA9+4ghnYXNwAAADfAAAAAgAAAAIAAAAEGhlYWQAAAOEAAAANgAAADYAQ88baGhlYQAAA7wAAAAkAAAAJAMHAelobXR4AAAD4AAAACAAAAAgBLgAEm1heHAAAAQAAAAABgAAAAYACFAAbmFtZQAABAgAAAFFAAABRVcZpu5wb3N0AAAFUAAAACAAAAAgAAMAAAEABAQAAQEBCGljb21vb24AAQIAAQA6+BwC+BsD+BgEHgoAGVP/i4seCgAZU/+LiwwHi2v4lPh0BR0AAACIDx0AAACNER0AAAAJHQAAAdASAAkBAQgPERMWGyAlKmljb21vb25pY29tb29udTB1MXUyMHVGMEQ3dUYwRDh1RjBEOXVGMERBAAACAYkABgAIAgABAAQABwAKAA0AVgCfAOgBL/yUDvyUDvyUDvuUDvtvi/emFYuQjZCOjo+Pj42Qiwj3lIsFkIuQiY6Hj4iNhouGi4aJh4eHCPsU+xQFiIiGiYaLhouHjYeOCPsU9xQFiI+Jj4uQCA77b4v3FBWLkI2Pjo8I9xT3FAWPjo+NkIuQi5CJjogI9xT7FAWPh42Hi4aLhomHh4eIiIaJhosI+5SLBYaLh42HjoiPiY+LkAgO+92d928Vi5CNkI+OCPcU9xQFjo+QjZCLkIuPiY6Hj4iNhouGCIv7lAWLhomHh4iIh4eJhouGi4aNiI8I+xT3FAWHjomPi5AIDvvdi+YVi/eUBYuQjZCOjo+Pj42Qi5CLkImOhwj3FPsUBY+IjYaLhouGiYeHiAj7FPsUBYiHhomGi4aLh42Hj4iOiY+LkAgO+JQU+JQViwwKAAAAAAMCAAGQAAUAAAFMAWYAAABHAUwBZgAAAPUAGQCEAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8NoB4P/g/+AB4AAgAAAAAQAAAAAAAAAAAAAAIAAAAAAAAgAAAAMAAAAUAAMAAQAAABQABAA4AAAACgAIAAIAAgABACDw2v/9//8AAAAAACDw1//9//8AAf/jDy0AAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAABAAA5emozXw889QALAgAAAAAA0ABHWAAAAADQAEdYAAAAAAElAW4AAAAIAAIAAAAAAAAAAQAAAeD/4AAAAgAAAAAAASUAAQAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAABAAAAASUAAAElAAAAtwASALcAAAAAUAAACAAAAAAADgCuAAEAAAAAAAEADgAAAAEAAAAAAAIADgBHAAEAAAAAAAMADgAkAAEAAAAAAAQADgBVAAEAAAAAAAUAFgAOAAEAAAAAAAYABwAyAAEAAAAAAAoANABjAAMAAQQJAAEADgAAAAMAAQQJAAIADgBHAAMAAQQJAAMADgAkAAMAAQQJAAQADgBVAAMAAQQJAAUAFgAOAAMAAQQJAAYADgA5AAMAAQQJAAoANABjAGkAYwBvAG0AbwBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG4AUgBlAGcAdQBsAGEAcgBpAGMAbwBtAG8AbwBuAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('woff');font-weight:400;font-style:normal}.ui.dropdown>.dropdown.icon{font-family:Dropdown;line-height:1;height:1em;-webkit-backface-visibility:hidden;backface-visibility:hidden;font-weight:400;font-style:normal;text-align:center;width:auto}.ui.dropdown>.dropdown.icon:before{content:'\f0d7'}.ui.dropdown .menu .item .dropdown.icon:before{content:'\f0da'}.ui.vertical.menu .dropdown.item>.dropdown.icon:before{content:"\f0da"}
steadiest/cdnjs
ajax/libs/semantic-ui/1.1.1/components/dropdown.min.css
CSS
mit
16,664
/*! * destroy * Copyright(c) 2014 Jonathan Ong * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var ReadStream = require('fs').ReadStream var Stream = require('stream') /** * Module exports. * @public */ module.exports = destroy /** * Destroy a stream. * * @param {object} stream * @public */ function destroy(stream) { if (stream instanceof ReadStream) { return destroyReadStream(stream) } if (!(stream instanceof Stream)) { return stream } if (typeof stream.destroy === 'function') { stream.destroy() } return stream } /** * Destroy a ReadStream. * * @param {object} stream * @private */ function destroyReadStream(stream) { stream.destroy() if (typeof stream.close === 'function') { // node.js core bug work-around stream.on('open', onOpenClose) } return stream } /** * On open handler to close stream. * @private */ function onOpenClose() { if (typeof this.fd === 'number') { // actually close down the fd this.close() } }
SebastianHahn/sebastianhahn.github.io
node_modules/destroy/index.js
JavaScript
mit
1,043
/*! Hint.css - v1.2.1 - 2013-03-24 * http://kushagragour.in/lab/hint/ * Copyright (c) 2013 Kushagra Gour; Licensed MIT */ .hint,[data-hint]{position:relative;display:inline-block}.hint:before,.hint:after,[data-hint]:before,[data-hint]:after{position:absolute;visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;-webkit-transition:.3s ease;-moz-transition:.3s ease;transition:.3s ease}.hint:hover:before,.hint:hover:after,[data-hint]:hover:before,[data-hint]:hover:after{visibility:visible;opacity:1}.hint:before,[data-hint]:before{content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1000001}.hint:after,[data-hint]:after{content:attr(data-hint);background:#383838;color:#fff;text-shadow:0 -1px 0 black;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;box-shadow:4px 4px 8px rgba(0,0,0,.3)}.hint--top:before{border-top-color:#383838}.hint--bottom:before{border-bottom-color:#383838}.hint--left:before{border-left-color:#383838}.hint--right:before{border-right-color:#383838}.hint--top:before{margin-bottom:-12px}.hint--top:after{margin-left:-18px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:hover:before,.hint--top:hover:after{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--bottom:before{margin-top:-12px}.hint--bottom:after{margin-left:-18px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:hover:before,.hint--bottom:hover:after{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--right:before{margin-left:-12px;margin-bottom:-6px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{left:100%;bottom:50%}.hint--right:hover:before,.hint--right:hover:after{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--left:before{margin-right:-12px;margin-bottom:-6px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{right:100%;bottom:50%}.hint--left:hover:before,.hint--left:hover:after{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--error:after{background-color:#b34e4d;text-shadow:0 -1px 0 #5a2626}.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{background-color:#c09854;text-shadow:0 -1px 0 #6d5228}.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{background-color:#3986ac;text-shadow:0 -1px 0 #193c4c}.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{background-color:#458746;text-shadow:0 -1px 0 #1a331a}.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:after,.hint--always.hint--top:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--bottom:after,.hint--always.hint--bottom:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--left:after,.hint--always.hint--left:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--always.hint--right:after,.hint--always.hint--right:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--rounded:after{border-radius:4px}
dlueth/jsdelivr
files/hint.css/1.2.1/hint.min.css
CSS
mit
4,156
/* Highcharts JS v4.1.6 (2015-06-12) (c) 2009-2013 Torstein Hønsi License: www.highcharts.com/license */ (function(d){function n(c,a,b){var g,e,f=a.options.chart.options3d,i=!1;b?(i=a.inverted,b=a.plotWidth/2,a=a.plotHeight/2,g=f.depth/2,e=y(f.depth,1)*y(f.viewDistance,0)):(b=a.plotLeft+a.plotWidth/2,a=a.plotTop+a.plotHeight/2,g=f.depth/2,e=y(f.depth,1)*y(f.viewDistance,0));var j=[],h=b,k=a,v=g,p=e,b=x*(i?f.beta:-f.beta),f=x*(i?-f.alpha:f.alpha),q=l(b),s=m(b),t=l(f),u=m(f),w,B,r,n,o,z;d.each(c,function(a){w=(i?a.y:a.x)-h;B=(i?a.x:a.y)-k;r=(a.z||0)-v;n=s*w-q*r;o=-q*t*w-s*t*r+u*B;z=q*u*w+s*u*r+t*B;p>0&& p<Number.POSITIVE_INFINITY&&(n*=p/(z+v+p),o*=p/(z+v+p));n+=h;o+=k;z+=v;j.push({x:i?o:n,y:i?n:o,z:z})});return j}function o(c){return c!==void 0&&c!==null}function E(c){var a=0,b,g;for(b=0;b<c.length;b++)g=(b+1)%c.length,a+=c[b].x*c[g].y-c[g].x*c[b].y;return a/2}function C(c){var a=0,b;for(b=0;b<c.length;b++)a+=c[b].z;return c.length?a/c.length:0}function r(c,a,b,g,e,f,d,j){var h=[];return f>e&&f-e>q/2+1.0E-4?(h=h.concat(r(c,a,b,g,e,e+q/2,d,j)),h=h.concat(r(c,a,b,g,e+q/2,f,d,j))):f<e&&e-f>q/2+1.0E-4? (h=h.concat(r(c,a,b,g,e,e-q/2,d,j)),h=h.concat(r(c,a,b,g,e-q/2,f,d,j))):(h=f-e,["C",c+b*m(e)-b*A*h*l(e)+d,a+g*l(e)+g*A*h*m(e)+j,c+b*m(f)+b*A*h*l(f)+d,a+g*l(f)-g*A*h*m(f)+j,c+b*m(f)+d,a+g*l(f)+j])}function F(c){if(this.chart.is3d()){var a=this.chart.options.plotOptions.column.grouping;if(a!==void 0&&!a&&this.group.zIndex!==void 0&&!this.zIndexSet)this.group.attr({zIndex:this.group.zIndex*10}),this.zIndexSet=!0;var b=this.options,g=this.options.states;this.borderWidth=b.borderWidth=o(b.edgeWidth)?b.edgeWidth: 1;d.each(this.data,function(a){if(a.y!==null)a=a.pointAttr,this.borderColor=d.pick(b.edgeColor,a[""].fill),a[""].stroke=this.borderColor,a.hover.stroke=d.pick(g.hover.edgeColor,this.borderColor),a.select.stroke=d.pick(g.select.edgeColor,this.borderColor)})}c.apply(this,[].slice.call(arguments,1))}var q=Math.PI,x=q/180,l=Math.sin,m=Math.cos,y=d.pick,G=Math.round;d.perspective=n;var A=4*(Math.sqrt(2)-1)/3/(q/2);d.SVGRenderer.prototype.toLinePath=function(c,a){var b=[];d.each(c,function(a){b.push("L", a.x,a.y)});c.length&&(b[0]="M",a&&b.push("Z"));return b};d.SVGRenderer.prototype.cuboid=function(c){var a=this.g(),c=this.cuboidPath(c);a.front=this.path(c[0]).attr({zIndex:c[3],"stroke-linejoin":"round"}).add(a);a.top=this.path(c[1]).attr({zIndex:c[4],"stroke-linejoin":"round"}).add(a);a.side=this.path(c[2]).attr({zIndex:c[5],"stroke-linejoin":"round"}).add(a);a.fillSetter=function(a){var c=d.Color(a).brighten(0.1).get(),e=d.Color(a).brighten(-0.1).get();this.front.attr({fill:a});this.top.attr({fill:c}); this.side.attr({fill:e});this.color=a;return this};a.opacitySetter=function(a){this.front.attr({opacity:a});this.top.attr({opacity:a});this.side.attr({opacity:a});return this};a.attr=function(a){a.shapeArgs||o(a.x)?(a=this.renderer.cuboidPath(a.shapeArgs||a),this.front.attr({d:a[0],zIndex:a[3]}),this.top.attr({d:a[1],zIndex:a[4]}),this.side.attr({d:a[2],zIndex:a[5]})):d.SVGElement.prototype.attr.call(this,a);return this};a.animate=function(a,c,e){o(a.x)&&o(a.y)?(a=this.renderer.cuboidPath(a),this.front.attr({zIndex:a[3]}).animate({d:a[0]}, c,e),this.top.attr({zIndex:a[4]}).animate({d:a[1]},c,e),this.side.attr({zIndex:a[5]}).animate({d:a[2]},c,e)):a.opacity?(this.front.animate(a,c,e),this.top.animate(a,c,e),this.side.animate(a,c,e)):d.SVGElement.prototype.animate.call(this,a,c,e);return this};a.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return null};a.attr({zIndex:-c[3]});return a};d.SVGRenderer.prototype.cuboidPath=function(c){var a=c.x,b=c.y,g=c.z,e=c.height,f=c.width,i=c.depth,j=d.map,h=[{x:a,y:b, z:g},{x:a+f,y:b,z:g},{x:a+f,y:b+e,z:g},{x:a,y:b+e,z:g},{x:a,y:b+e,z:g+i},{x:a+f,y:b+e,z:g+i},{x:a+f,y:b,z:g+i},{x:a,y:b,z:g+i}],h=n(h,d.charts[this.chartIndex],c.insidePlotArea),b=function(a,b){a=j(a,function(a){return h[a]});b=j(b,function(a){return h[a]});return E(a)<0?a:E(b)<0?b:[]},c=b([3,2,1,0],[7,6,5,4]),a=b([1,6,7,0],[4,5,2,3]),b=b([1,2,5,6],[0,7,4,3]);return[this.toLinePath(c,!0),this.toLinePath(a,!0),this.toLinePath(b,!0),C(c),C(a),C(b)]};d.SVGRenderer.prototype.arc3d=function(c){c.alpha*= x;c.beta*=x;var a=this.g(),b=this.arc3dPath(c),g=a.renderer,e=b.zTop*100;a.shapeArgs=c;a.top=g.path(b.top).setRadialReference(c.center).attr({zIndex:b.zTop}).add(a);a.side1=g.path(b.side2).attr({zIndex:b.zSide1});a.side2=g.path(b.side1).attr({zIndex:b.zSide2});a.inn=g.path(b.inn).attr({zIndex:b.zInn});a.out=g.path(b.out).attr({zIndex:b.zOut});a.fillSetter=function(a){this.color=a;var b=d.Color(a).brighten(-0.1).get();this.side1.attr({fill:b});this.side2.attr({fill:b});this.inn.attr({fill:b});this.out.attr({fill:b}); this.top.attr({fill:a});return this};a.translateXSetter=function(a){this.out.attr({translateX:a});this.inn.attr({translateX:a});this.side1.attr({translateX:a});this.side2.attr({translateX:a});this.top.attr({translateX:a})};a.translateYSetter=function(a){this.out.attr({translateY:a});this.inn.attr({translateY:a});this.side1.attr({translateY:a});this.side2.attr({translateY:a});this.top.attr({translateY:a})};a.animate=function(a,b,c){o(a.end)||o(a.start)?(this._shapeArgs=this.shapeArgs,d.SVGElement.prototype.animate.call(this, {_args:a},{duration:b,step:function(){var a=arguments[1],b=a.elem,c=b._shapeArgs,e=a.end,a=a.pos,c=d.merge(c,{x:c.x+(e.x-c.x)*a,y:c.y+(e.y-c.y)*a,r:c.r+(e.r-c.r)*a,innerR:c.innerR+(e.innerR-c.innerR)*a,start:c.start+(e.start-c.start)*a,end:c.end+(e.end-c.end)*a}),e=b.renderer.arc3dPath(c);b.shapeArgs=c;b.top.attr({d:e.top,zIndex:e.zTop});b.inn.attr({d:e.inn,zIndex:e.zInn});b.out.attr({d:e.out,zIndex:e.zOut});b.side1.attr({d:e.side1,zIndex:e.zSide1});b.side2.attr({d:e.side2,zIndex:e.zSide2})}},c)): d.SVGElement.prototype.animate.call(this,a,b,c);return this};a.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();d.SVGElement.prototype.destroy.call(this)};a.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};a.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show();this.side2.show()};a.zIndex=e;a.attr({zIndex:e});return a};d.SVGRenderer.prototype.arc3dPath= function(c){var a=c.x,b=c.y,d=c.start,e=c.end-1.0E-5,f=c.r,i=c.innerR,j=c.depth,h=c.alpha,k=c.beta,v=m(d),p=l(d),c=m(e),n=l(e),s=f*m(k),t=f*m(h),u=i*m(k);i*=m(h);var w=j*l(k),o=j*l(h),j=["M",a+s*v,b+t*p],j=j.concat(r(a,b,s,t,d,e,0,0)),j=j.concat(["L",a+u*c,b+i*n]),j=j.concat(r(a,b,u,i,e,d,0,0)),j=j.concat(["Z"]),k=k>0?q/2:0,h=h>0?0:q/2,k=d>-k?d:e>-k?-k:d,x=e<q-h?e:d<q-h?q-h:e,h=["M",a+s*m(k),b+t*l(k)],h=h.concat(r(a,b,s,t,k,x,0,0)),h=h.concat(["L",a+s*m(x)+w,b+t*l(x)+o]),h=h.concat(r(a,b,s,t,x,k, w,o)),h=h.concat(["Z"]),k=["M",a+u*v,b+i*p],k=k.concat(r(a,b,u,i,d,e,0,0)),k=k.concat(["L",a+u*m(e)+w,b+i*l(e)+o]),k=k.concat(r(a,b,u,i,e,d,w,o)),k=k.concat(["Z"]),v=["M",a+s*v,b+t*p,"L",a+s*v+w,b+t*p+o,"L",a+u*v+w,b+i*p+o,"L",a+u*v,b+i*p,"Z"],a=["M",a+s*c,b+t*n,"L",a+s*c+w,b+t*n+o,"L",a+u*c+w,b+i*n+o,"L",a+u*c,b+i*n,"Z"],b=l((d+e)/2),d=l(d),e=l(e);return{top:j,zTop:f,out:h,zOut:Math.max(b,d,e)*f,inn:k,zInn:Math.max(b,d,e)*f,side1:v,zSide1:d*f*0.99,side2:a,zSide2:e*f*0.99}};d.Chart.prototype.is3d= function(){return!this.inverted&&this.options.chart.options3d&&this.options.chart.options3d.enabled};d.wrap(d.Chart.prototype,"isInsidePlot",function(c){return this.is3d()?!0:c.apply(this,[].slice.call(arguments,1))});d.getOptions().chart.options3d={enabled:!1,alpha:0,beta:0,depth:100,viewDistance:25,frame:{bottom:{size:1,color:"rgba(255,255,255,0)"},side:{size:1,color:"rgba(255,255,255,0)"},back:{size:1,color:"rgba(255,255,255,0)"}}};d.wrap(d.Chart.prototype,"init",function(c){var a=[].slice.call(arguments, 1),b;if(a[0].chart.options3d&&a[0].chart.options3d.enabled)b=a[0].plotOptions||{},b=b.pie||{},b.borderColor=d.pick(b.borderColor,void 0);c.apply(this,a)});d.wrap(d.Chart.prototype,"setChartSize",function(c){c.apply(this,[].slice.call(arguments,1));if(this.is3d()){var a=this.inverted,b=this.clipBox,d=this.margin;b[a?"y":"x"]=-(d[3]||0);b[a?"x":"y"]=-(d[0]||0);b[a?"height":"width"]=this.chartWidth+(d[3]||0)+(d[1]||0);b[a?"width":"height"]=this.chartHeight+(d[0]||0)+(d[2]||0)}});d.wrap(d.Chart.prototype, "redraw",function(c){if(this.is3d())this.isDirtyBox=!0;c.apply(this,[].slice.call(arguments,1))});d.wrap(d.Chart.prototype,"renderSeries",function(c){var a=this.series.length;if(this.is3d())for(;a--;)c=this.series[a],c.translate(),c.render();else c.call(this)});d.Chart.prototype.retrieveStacks=function(c){var a=this.series,b={},g,e=1;d.each(this.series,function(d){g=c?d.options.stack||0:a.length-1-d.index;b[g]?b[g].series.push(d):(b[g]={series:[d],position:e},e++)});b.totalStacks=e+1;return b};d.wrap(d.Axis.prototype, "init",function(c){var a=arguments;if(a[1].is3d())a[2].tickWidth=d.pick(a[2].tickWidth,0),a[2].gridLineWidth=d.pick(a[2].gridLineWidth,1);c.apply(this,[].slice.call(arguments,1))});d.wrap(d.Axis.prototype,"render",function(c){c.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var a=this.chart,b=a.renderer,d=a.options.chart.options3d,e=d.frame,f=e.bottom,i=e.back,e=e.side,j=d.depth,h=this.height,k=this.width,l=this.left,p=this.top;if(!this.isZAxis)this.horiz?(i={x:l,y:p+(a.xAxis[0].opposite? -f.size:h),z:0,width:k,height:f.size,depth:j,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(i):this.bottomFrame=b.cuboid(i).attr({fill:f.color,zIndex:a.yAxis[0].reversed&&d.alpha>0?4:-1}).css({stroke:f.color}).add()):(d={x:l+(a.yAxis[0].opposite?0:-e.size),y:p+(a.xAxis[0].opposite?-f.size:0),z:j,width:k+e.size,height:h+f.size,depth:i.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(d):this.backFrame=b.cuboid(d).attr({fill:i.color,zIndex:-3}).css({stroke:i.color}).add(), a={x:l+(a.yAxis[0].opposite?k:-e.size),y:p+(a.xAxis[0].opposite?-f.size:0),z:0,width:e.size,height:h+f.size,depth:j,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(a):this.sideFrame=b.cuboid(a).attr({fill:e.color,zIndex:-2}).css({stroke:e.color}).add())}});d.wrap(d.Axis.prototype,"getPlotLinePath",function(c){var a=c.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d())return a;if(a===null)return a;var b=this.chart.options.chart.options3d,b=this.isZAxis?this.chart.plotWidth:b.depth, d=this.opposite;this.horiz&&(d=!d);a=[this.swapZ({x:a[1],y:a[2],z:d?b:0}),this.swapZ({x:a[1],y:a[2],z:b}),this.swapZ({x:a[4],y:a[5],z:b}),this.swapZ({x:a[4],y:a[5],z:d?0:b})];a=n(a,this.chart,!1);return a=this.chart.renderer.toLinePath(a,!1)});d.wrap(d.Axis.prototype,"getLinePath",function(){return[]});d.wrap(d.Axis.prototype,"getPlotBandPath",function(c){if(this.chart.is3d()){var a=arguments,b=a[1],a=this.getPlotLinePath(a[2]);(b=this.getPlotLinePath(b))&&a?b.push("L",a[10],a[11],"L",a[7],a[8],"L", a[4],a[5],"L",a[1],a[2]):b=null;return b}else return c.apply(this,[].slice.call(arguments,1))});d.wrap(d.Tick.prototype,"getMarkPath",function(c){var a=c.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d())return a;a=[this.axis.swapZ({x:a[1],y:a[2],z:0}),this.axis.swapZ({x:a[4],y:a[5],z:0})];a=n(a,this.axis.chart,!1);return a=["M",a[0].x,a[0].y,"L",a[1].x,a[1].y]});d.wrap(d.Tick.prototype,"getLabelPosition",function(c){var a=c.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d())return a; var b=n([this.axis.swapZ({x:a.x,y:a.y,z:0})],this.axis.chart,!1)[0];b.x-=!this.axis.horiz&&this.axis.opposite?this.axis.transA:0;b.old=a;return b});d.wrap(d.Tick.prototype,"handleOverflow",function(c,a){if(this.axis.chart.is3d())a=a.old;return c.call(this,a)});d.wrap(d.Axis.prototype,"getTitlePosition",function(c){var a=c.apply(this,[].slice.call(arguments,1));return!this.chart.is3d()?a:a=n([this.swapZ({x:a.x,y:a.y,z:0})],this.chart,!1)[0]});d.wrap(d.Axis.prototype,"drawCrosshair",function(c){var a= arguments;this.chart.is3d()&&a[2]&&(a[2]={plotX:a[2].plotXold||a[2].plotX,plotY:a[2].plotYold||a[2].plotY});c.apply(this,[].slice.call(a,1))});d.Axis.prototype.swapZ=function(c,a){if(this.isZAxis){var b=a?0:this.chart.plotLeft,d=this.chart;return{x:b+(d.yAxis[0].opposite?c.z:d.xAxis[0].width-c.z),y:c.y,z:c.x-b}}else return c};var D=d.ZAxis=function(){this.isZAxis=!0;this.init.apply(this,arguments)};d.extend(D.prototype,d.Axis.prototype);d.extend(D.prototype,{setOptions:function(c){c=d.merge({offset:0, lineWidth:0},c);d.Axis.prototype.setOptions.call(this,c);this.coll="zAxis"},setAxisSize:function(){d.Axis.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var c=this,a=c.chart;c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.ignoreMinPadding=c.ignoreMaxPadding=null;c.buildStacks&&c.buildStacks();d.each(c.series,function(b){if(b.visible||!a.options.chart.ignoreHiddenSeries)if(c.hasVisibleSeries= !0,b=b.zData,b.length)c.dataMin=Math.min(y(c.dataMin,b[0]),Math.min.apply(null,b)),c.dataMax=Math.max(y(c.dataMax,b[0]),Math.max.apply(null,b))})}});d.wrap(d.Chart.prototype,"getAxes",function(c){var a=this,b=this.options,b=b.zAxis=d.splat(b.zAxis||{});c.call(this);if(a.is3d())this.zAxis=[],d.each(b,function(b,c){b.index=c;b.isX=!0;(new D(a,b)).setScale()})});d.wrap(d.seriesTypes.column.prototype,"translate",function(c){c.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var a=this.chart, b=this.options,g=b.depth||25,e=(b.stacking?b.stack||0:this._i)*(g+(b.groupZPadding||1));b.grouping!==!1&&(e=0);e+=b.groupZPadding||1;d.each(this.data,function(b){if(b.y!==null){var c=b.shapeArgs,d=b.tooltipPos;b.shapeType="cuboid";c.z=e;c.depth=g;c.insidePlotArea=!0;d=n([{x:d[0],y:d[1],z:e}],a,!1)[0];b.tooltipPos=[d.x,d.y]}});this.z=e}});d.wrap(d.seriesTypes.column.prototype,"animate",function(c){if(this.chart.is3d()){var a=arguments[1],b=this.yAxis,g=this,e=this.yAxis.reversed;if(d.svg)a?d.each(g.data, function(a){if(a.y!==null&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,!e))a.shapeArgs.y=a.stackY?a.plotY+b.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)}):(d.each(g.data,function(a){if(a.y!==null)a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,g.options.animation)}),this.drawDataLabels(),g.animate=null)}else c.apply(this,[].slice.call(arguments,1))});d.wrap(d.seriesTypes.column.prototype,"init",function(c){c.apply(this, [].slice.call(arguments,1));if(this.chart.is3d()){var a=this.options,b=a.grouping,d=a.stacking,e=0;if(b===void 0||b){b=this.chart.retrieveStacks(d);d=a.stack||0;for(e=0;e<b[d].series.length;e++)if(b[d].series[e]===this)break;e=b.totalStacks*10-10*(b.totalStacks-b[d].position)-e}a.zIndex=e}});d.wrap(d.Series.prototype,"alignDataLabel",function(c){if(this.chart.is3d()&&(this.type==="column"||this.type==="columnrange")){var a=arguments[4],b={x:a.x,y:a.y,z:this.z},b=n([b],this.chart,!0)[0];a.x=b.x;a.y= b.y}c.apply(this,[].slice.call(arguments,1))});d.seriesTypes.columnrange&&d.wrap(d.seriesTypes.columnrange.prototype,"drawPoints",F);d.wrap(d.seriesTypes.column.prototype,"drawPoints",F);d.wrap(d.seriesTypes.pie.prototype,"translate",function(c){c.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var a=this,b=a.chart,g=a.options,e=g.depth||0,f=b.options.chart.options3d,i={x:b.plotWidth/2,y:b.plotHeight/2,z:f.depth},j=f.alpha,h=f.beta,k=g.stacking?(g.stack||0)*e:a._i*e;k+=e/2;g.grouping!== !1&&(k=0);d.each(a.data,function(b){b.shapeType="arc3d";var c=b.shapeArgs;if(b.y)c.z=k,c.depth=e*0.75,c.origin=i,c.alpha=j,c.beta=h,c.center=a.center,c=(c.end+c.start)/2,b.slicedTranslation={translateX:G(m(c)*a.options.slicedOffset*m(j*x)),translateY:G(l(c)*a.options.slicedOffset*m(j*x))}})}});d.wrap(d.seriesTypes.pie.prototype.pointClass.prototype,"haloPath",function(c){var a=arguments;return this.series.chart.is3d()?[]:c.call(this,a[1])});d.wrap(d.seriesTypes.pie.prototype,"drawPoints",function(c){if(this.chart.is3d()){var a= this.options,b=this.options.states;this.borderWidth=a.borderWidth=a.edgeWidth||1;this.borderColor=a.edgeColor=d.pick(a.edgeColor,a.borderColor,void 0);b.hover.borderColor=d.pick(b.hover.edgeColor,this.borderColor);b.hover.borderWidth=d.pick(b.hover.edgeWidth,this.borderWidth);b.select.borderColor=d.pick(b.select.edgeColor,this.borderColor);b.select.borderWidth=d.pick(b.select.edgeWidth,this.borderWidth);d.each(this.data,function(a){var c=a.pointAttr;c[""].stroke=a.series.borderColor||a.color;c[""]["stroke-width"]= a.series.borderWidth;c.hover.stroke=b.hover.borderColor;c.hover["stroke-width"]=b.hover.borderWidth;c.select.stroke=b.select.borderColor;c.select["stroke-width"]=b.select.borderWidth})}c.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var g=this.group;d.each(this.points,function(a){a.graphic.out.add(g);a.graphic.inn.add(g);a.graphic.side1.add(g);a.graphic.side2.add(g)})}});d.wrap(d.seriesTypes.pie.prototype,"drawDataLabels",function(c){if(this.chart.is3d()){var a=this;d.each(a.data,function(b){var c= b.shapeArgs,d=c.r,f=c.depth,i=(c.alpha||a.chart.options.chart.options3d.alpha)*x,c=(c.start+c.end)/2,b=b.labelPos;b[1]+=-d*(1-m(i))*l(c)+(l(c)>0?l(i)*f:0);b[3]+=-d*(1-m(i))*l(c)+(l(c)>0?l(i)*f:0);b[5]+=-d*(1-m(i))*l(c)+(l(c)>0?l(i)*f:0)})}c.apply(this,[].slice.call(arguments,1))});d.wrap(d.seriesTypes.pie.prototype,"addPoint",function(c){c.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});d.wrap(d.seriesTypes.pie.prototype,"animate",function(c){if(this.chart.is3d()){var a= arguments[1],b=this.options.animation,g=this.center,e=this.group,f=this.markerGroup;if(d.svg)if(b===!0&&(b={}),a){if(e.oldtranslateX=e.translateX,e.oldtranslateY=e.translateY,a={translateX:g[0],translateY:g[1],scaleX:0.001,scaleY:0.001},e.attr(a),f)f.attrSetters=e.attrSetters,f.attr(a)}else a={translateX:e.oldtranslateX,translateY:e.oldtranslateY,scaleX:1,scaleY:1},e.animate(a,b),f&&f.animate(a,b),this.animate=null}else c.apply(this,[].slice.call(arguments,1))});d.wrap(d.seriesTypes.scatter.prototype, "translate",function(c){c.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var a=this.chart,b=d.pick(this.zAxis,a.options.zAxis[0]),g=[],e,f;for(f=0;f<this.data.length;f++)e=this.data[f],e.isInside=e.isInside?e.z>=b.min&&e.z<=b.max:!1,g.push({x:e.plotX,y:e.plotY,z:b.translate(e.z)});a=n(g,a,!0);for(f=0;f<this.data.length;f++)e=this.data[f],b=a[f],e.plotXold=e.plotX,e.plotYold=e.plotY,e.plotX=b.x,e.plotY=b.y,e.plotZ=b.z}});d.wrap(d.seriesTypes.scatter.prototype,"init",function(c,a,b){if(a.is3d())this.axisTypes= ["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"];c=c.apply(this,[a,b]);if(this.chart.is3d())this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>":"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>";return c});if(d.VMLRenderer)d.setOptions({animate:!1}),d.VMLRenderer.prototype.cuboid=d.SVGRenderer.prototype.cuboid,d.VMLRenderer.prototype.cuboidPath= d.SVGRenderer.prototype.cuboidPath,d.VMLRenderer.prototype.toLinePath=d.SVGRenderer.prototype.toLinePath,d.VMLRenderer.prototype.createElement3D=d.SVGRenderer.prototype.createElement3D,d.VMLRenderer.prototype.arc3d=function(c){c=d.SVGRenderer.prototype.arc3d.call(this,c);c.css({zIndex:c.zIndex});return c},d.VMLRenderer.prototype.arc3dPath=d.SVGRenderer.prototype.arc3dPath,d.wrap(d.Axis.prototype,"render",function(c){c.apply(this,[].slice.call(arguments,1));this.sideFrame&&(this.sideFrame.css({zIndex:0}), this.sideFrame.front.attr({fill:this.sideFrame.color}));this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color}));this.backFrame&&(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))})})(Highcharts);
simudream/cdnjs
ajax/libs/highstock/2.1.6/highcharts-3d.js
JavaScript
mit
19,885
@import url("//fonts.googleapis.com/css?family=Lato:400,700,900,400italic");/*! * Bootstrap v3.0.0 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. *//*! normalize.css v2.1.0 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid #c0c0c0}legend{padding:0;border:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:100%}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{padding:0;box-sizing:border-box}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:2cm .5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:1.428571429;color:#2c3e50;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}button,input,select[multiple],textarea{background-image:none}a{color:#18bc9c;text-decoration:none}a:hover,a:focus{color:#18bc9c;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:block;height:auto;max-width:100%}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;height:auto;max-width:100%;padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:21px;margin-bottom:21px;border:0;border-top:1px solid #ecf0f1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}p{margin:0 0 10.5px}.lead{margin-bottom:21px;font-size:17.25px;font-weight:200;line-height:1.4}@media(min-width:768px){.lead{font-size:22.5px}}small{font-size:85%}cite{font-style:normal}.text-muted{color:#b4bcc2}.text-primary{color:#2c3e50}.text-warning{color:#fff}.text-danger{color:#fff}.text-success{color:#fff}.text-info{color:#fff}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small{font-weight:normal;line-height:1;color:#b4bcc2}h1,h2,h3{margin-top:21px;margin-bottom:10.5px}h4,h5,h6{margin-top:10.5px;margin-bottom:10.5px}h1,.h1{font-size:39px}h2,.h2{font-size:32px}h3,.h3{font-size:26px}h4,.h4{font-size:19px}h5,.h5{font-size:15px}h6,.h6{font-size:13px}h1 small,.h1 small{font-size:26px}h2 small,.h2 small{font-size:19px}h3 small,.h3 small,h4 small,.h4 small{font-size:15px}.page-header{padding-bottom:9.5px;margin:42px 0 21px;border-bottom:1px solid #ecf0f1}ul,ol{margin-top:0;margin-bottom:10.5px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-bottom:21px}dt,dd{line-height:1.428571429}dt{font-weight:bold}dd{margin-left:0}@media(min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #b4bcc2}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10.5px 21px;margin:0 0 21px;border-left:5px solid #ecf0f1}blockquote p{font-size:18.75px;font-weight:300;line-height:1.25}blockquote p:last-child{margin-bottom:0}blockquote small{display:block;line-height:1.428571429;color:#b4bcc2}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ecf0f1;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:21px;font-style:normal;line-height:1.428571429}code,pre{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}pre{display:block;padding:10px;margin:0 0 10.5px;font-size:14px;line-height:1.428571429;color:#7b8a8b;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre.prettyprint{margin-bottom:21px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.row{margin-right:-15px;margin-left:-15px}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11{float:left}.col-xs-1{width:8.333333333333332%}.col-xs-2{width:16.666666666666664%}.col-xs-3{width:25%}.col-xs-4{width:33.33333333333333%}.col-xs-5{width:41.66666666666667%}.col-xs-6{width:50%}.col-xs-7{width:58.333333333333336%}.col-xs-8{width:66.66666666666666%}.col-xs-9{width:75%}.col-xs-10{width:83.33333333333334%}.col-xs-11{width:91.66666666666666%}.col-xs-12{width:100%}@media(min-width:768px){.container{max-width:750px}.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11{float:left}.col-sm-1{width:8.333333333333332%}.col-sm-2{width:16.666666666666664%}.col-sm-3{width:25%}.col-sm-4{width:33.33333333333333%}.col-sm-5{width:41.66666666666667%}.col-sm-6{width:50%}.col-sm-7{width:58.333333333333336%}.col-sm-8{width:66.66666666666666%}.col-sm-9{width:75%}.col-sm-10{width:83.33333333333334%}.col-sm-11{width:91.66666666666666%}.col-sm-12{width:100%}.col-sm-push-1{left:8.333333333333332%}.col-sm-push-2{left:16.666666666666664%}.col-sm-push-3{left:25%}.col-sm-push-4{left:33.33333333333333%}.col-sm-push-5{left:41.66666666666667%}.col-sm-push-6{left:50%}.col-sm-push-7{left:58.333333333333336%}.col-sm-push-8{left:66.66666666666666%}.col-sm-push-9{left:75%}.col-sm-push-10{left:83.33333333333334%}.col-sm-push-11{left:91.66666666666666%}.col-sm-pull-1{right:8.333333333333332%}.col-sm-pull-2{right:16.666666666666664%}.col-sm-pull-3{right:25%}.col-sm-pull-4{right:33.33333333333333%}.col-sm-pull-5{right:41.66666666666667%}.col-sm-pull-6{right:50%}.col-sm-pull-7{right:58.333333333333336%}.col-sm-pull-8{right:66.66666666666666%}.col-sm-pull-9{right:75%}.col-sm-pull-10{right:83.33333333333334%}.col-sm-pull-11{right:91.66666666666666%}.col-sm-offset-1{margin-left:8.333333333333332%}.col-sm-offset-2{margin-left:16.666666666666664%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-4{margin-left:33.33333333333333%}.col-sm-offset-5{margin-left:41.66666666666667%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-7{margin-left:58.333333333333336%}.col-sm-offset-8{margin-left:66.66666666666666%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-10{margin-left:83.33333333333334%}.col-sm-offset-11{margin-left:91.66666666666666%}}@media(min-width:992px){.container{max-width:970px}.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11{float:left}.col-md-1{width:8.333333333333332%}.col-md-2{width:16.666666666666664%}.col-md-3{width:25%}.col-md-4{width:33.33333333333333%}.col-md-5{width:41.66666666666667%}.col-md-6{width:50%}.col-md-7{width:58.333333333333336%}.col-md-8{width:66.66666666666666%}.col-md-9{width:75%}.col-md-10{width:83.33333333333334%}.col-md-11{width:91.66666666666666%}.col-md-12{width:100%}.col-md-push-0{left:auto}.col-md-push-1{left:8.333333333333332%}.col-md-push-2{left:16.666666666666664%}.col-md-push-3{left:25%}.col-md-push-4{left:33.33333333333333%}.col-md-push-5{left:41.66666666666667%}.col-md-push-6{left:50%}.col-md-push-7{left:58.333333333333336%}.col-md-push-8{left:66.66666666666666%}.col-md-push-9{left:75%}.col-md-push-10{left:83.33333333333334%}.col-md-push-11{left:91.66666666666666%}.col-md-pull-0{right:auto}.col-md-pull-1{right:8.333333333333332%}.col-md-pull-2{right:16.666666666666664%}.col-md-pull-3{right:25%}.col-md-pull-4{right:33.33333333333333%}.col-md-pull-5{right:41.66666666666667%}.col-md-pull-6{right:50%}.col-md-pull-7{right:58.333333333333336%}.col-md-pull-8{right:66.66666666666666%}.col-md-pull-9{right:75%}.col-md-pull-10{right:83.33333333333334%}.col-md-pull-11{right:91.66666666666666%}.col-md-offset-0{margin-left:0}.col-md-offset-1{margin-left:8.333333333333332%}.col-md-offset-2{margin-left:16.666666666666664%}.col-md-offset-3{margin-left:25%}.col-md-offset-4{margin-left:33.33333333333333%}.col-md-offset-5{margin-left:41.66666666666667%}.col-md-offset-6{margin-left:50%}.col-md-offset-7{margin-left:58.333333333333336%}.col-md-offset-8{margin-left:66.66666666666666%}.col-md-offset-9{margin-left:75%}.col-md-offset-10{margin-left:83.33333333333334%}.col-md-offset-11{margin-left:91.66666666666666%}}@media(min-width:1200px){.container{max-width:1170px}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11{float:left}.col-lg-1{width:8.333333333333332%}.col-lg-2{width:16.666666666666664%}.col-lg-3{width:25%}.col-lg-4{width:33.33333333333333%}.col-lg-5{width:41.66666666666667%}.col-lg-6{width:50%}.col-lg-7{width:58.333333333333336%}.col-lg-8{width:66.66666666666666%}.col-lg-9{width:75%}.col-lg-10{width:83.33333333333334%}.col-lg-11{width:91.66666666666666%}.col-lg-12{width:100%}.col-lg-push-0{left:auto}.col-lg-push-1{left:8.333333333333332%}.col-lg-push-2{left:16.666666666666664%}.col-lg-push-3{left:25%}.col-lg-push-4{left:33.33333333333333%}.col-lg-push-5{left:41.66666666666667%}.col-lg-push-6{left:50%}.col-lg-push-7{left:58.333333333333336%}.col-lg-push-8{left:66.66666666666666%}.col-lg-push-9{left:75%}.col-lg-push-10{left:83.33333333333334%}.col-lg-push-11{left:91.66666666666666%}.col-lg-pull-0{right:auto}.col-lg-pull-1{right:8.333333333333332%}.col-lg-pull-2{right:16.666666666666664%}.col-lg-pull-3{right:25%}.col-lg-pull-4{right:33.33333333333333%}.col-lg-pull-5{right:41.66666666666667%}.col-lg-pull-6{right:50%}.col-lg-pull-7{right:58.333333333333336%}.col-lg-pull-8{right:66.66666666666666%}.col-lg-pull-9{right:75%}.col-lg-pull-10{right:83.33333333333334%}.col-lg-pull-11{right:91.66666666666666%}.col-lg-offset-0{margin-left:0}.col-lg-offset-1{margin-left:8.333333333333332%}.col-lg-offset-2{margin-left:16.666666666666664%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-4{margin-left:33.33333333333333%}.col-lg-offset-5{margin-left:41.66666666666667%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-7{margin-left:58.333333333333336%}.col-lg-offset-8{margin-left:66.66666666666666%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-10{margin-left:83.33333333333334%}.col-lg-offset-11{margin-left:91.66666666666666%}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:21px}.table thead>tr>th,.table tbody>tr>th,.table tfoot>tr>th,.table thead>tr>td,.table tbody>tr>td,.table tfoot>tr>td{padding:8px;line-height:1.428571429;vertical-align:top;border-top:1px solid #ddd}.table thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table caption+thead tr:first-child th,.table colgroup+thead tr:first-child th,.table thead:first-child tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed thead>tr>th,.table-condensed tbody>tr>th,.table-condensed tfoot>tr>th,.table-condensed thead>tr>td,.table-condensed tbody>tr>td,.table-condensed tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*="col-"]{display:table-column;float:none}table td[class*="col-"],table th[class*="col-"]{display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#18bc9c;border-color:#18bc9c}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td{background-color:#15a589;border-color:#15a589}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#e74c3c;border-color:#e74c3c}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td{background-color:#e43725;border-color:#e43725}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#f39c12;border-color:#f39c12}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td{background-color:#e08e0b;border-color:#e08e0b}@media(max-width:768px){.table-responsive{width:100%;margin-bottom:15px;overflow-x:scroll;overflow-y:hidden;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0;background-color:#fff}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>thead>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>thead>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:21px;font-size:22.5px;line-height:inherit;color:#2c3e50;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}select[multiple],select[size]{height:auto}select optgroup{font-family:inherit;font-size:inherit;font-style:inherit}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{height:auto}.form-control:-moz-placeholder{color:#b4bcc2}.form-control::-moz-placeholder{color:#b4bcc2}.form-control:-ms-input-placeholder{color:#b4bcc2}.form-control::-webkit-input-placeholder{color:#b4bcc2}.form-control{display:block;width:100%;height:43px;padding:10px 15px;font-size:15px;line-height:1.428571429;color:#2c3e50;vertical-align:middle;background-color:#fff;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#ecf0f1}textarea.form-control{height:auto}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:21px;padding-left:20px;margin-top:10px;margin-bottom:10px;vertical-align:middle}.radio label,.checkbox label{display:inline;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:normal;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],.radio[disabled],.radio-inline[disabled],.checkbox[disabled],.checkbox-inline[disabled],fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"],fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.input-sm{height:33px;padding:6px 9px;font-size:13px;line-height:1.5;border-radius:3px}select.input-sm{height:33px;line-height:33px}textarea.input-sm{height:auto}.input-lg{height:66px;padding:18px 27px;font-size:19px;line-height:1.33;border-radius:6px}select.input-lg{height:66px;line-height:66px}textarea.input-lg{height:auto}.has-warning .help-block,.has-warning .control-label{color:#fff}.has-warning .form-control{border-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#e6e6e6;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff}.has-warning .input-group-addon{color:#fff;background-color:#f39c12;border-color:#fff}.has-error .help-block,.has-error .control-label{color:#fff}.has-error .form-control{border-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#e6e6e6;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff}.has-error .input-group-addon{color:#fff;background-color:#e74c3c;border-color:#fff}.has-success .help-block,.has-success .control-label{color:#fff}.has-success .form-control{border-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#e6e6e6;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff}.has-success .input-group-addon{color:#fff;background-color:#18bc9c;border-color:#fff}.form-control-static{padding-top:11px;margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#597ea2}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block}.form-inline .radio,.form-inline .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:none;margin-left:0}}.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:11px;margin-top:0;margin-bottom:0}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}@media(min-width:768px){.form-horizontal .control-label{text-align:right}}.btn{display:inline-block;padding:10px 15px;margin-bottom:0;font-size:15px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#fff;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#fff;background-color:#95a5a6;border-color:#95a5a6}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#fff;background-color:#7f9293;border-color:#74898a}.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#95a5a6;border-color:#95a5a6}.btn-primary{color:#fff;background-color:#2c3e50;border-color:#2c3e50}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#1e2a36;border-color:#161f29}.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#2c3e50;border-color:#2c3e50}.btn-warning{color:#fff;background-color:#f39c12;border-color:#f39c12}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#d2850b;border-color:#be780a}.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f39c12;border-color:#f39c12}.btn-danger{color:#fff;background-color:#e74c3c;border-color:#e74c3c}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#df2e1b;border-color:#cd2a19}.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#e74c3c;border-color:#e74c3c}.btn-success{color:#fff;background-color:#18bc9c;border-color:#18bc9c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{color:#fff;background-color:#13987e;border-color:#11866f}.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#18bc9c;border-color:#18bc9c}.btn-info{color:#fff;background-color:#3498db;border-color:#3498db}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{color:#fff;background-color:#2383c4;border-color:#2077b2}.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#3498db;border-color:#3498db}.btn-link{font-weight:normal;color:#18bc9c;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#18bc9c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#b4bcc2;text-decoration:none}.btn-lg{padding:18px 27px;font-size:19px;line-height:1.33;border-radius:6px}.btn-sm,.btn-xs{padding:6px 9px;font-size:13px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/glyphicons-halflings-regular.eot');src:url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;font-weight:normal;line-height:1}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-print:before{content:"\e045"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-briefcase:before{content:"\1f4bc"}.glyphicon-calendar:before{content:"\1f4c5"}.glyphicon-pushpin:before{content:"\1f4cc"}.glyphicon-paperclip:before{content:"\1f4ce"}.glyphicon-camera:before{content:"\1f4f7"}.glyphicon-lock:before{content:"\1f512"}.glyphicon-bell:before{content:"\1f514"}.glyphicon-bookmark:before{content:"\1f516"}.glyphicon-fire:before{content:"\1f525"}.glyphicon-wrench:before{content:"\1f527"}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid #000;border-right:4px solid transparent;border-bottom:0 dotted;border-left:4px solid transparent;content:""}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:15px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9.5px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429;color:#7b8a8b;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#fff;text-decoration:none;background-color:#2c3e50}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#2c3e50;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#b4bcc2}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-header{display:block;padding:3px 20px;font-size:13px;line-height:1.428571429;color:#b4bcc2}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0 dotted;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media(min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}}.btn-default .caret{border-top-color:#fff}.btn-primary .caret,.btn-success .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret{border-top-color:#fff}.dropup .btn-default .caret{border-bottom-color:#fff}.dropup .btn-primary .caret,.dropup .btn-success .caret,.dropup .btn-warning .caret,.dropup .btn-danger .caret,.dropup .btn-info .caret{border-bottom-color:#fff}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar .btn-group{float:left}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group,.btn-toolbar>.btn-group+.btn-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group-xs>.btn{padding:6px 9px;padding:1px 5px;font-size:13px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn{padding:6px 9px;font-size:13px;line-height:1.5;border-radius:3px}.btn-group-lg>.btn{padding:18px 27px;font-size:19px;line-height:1.33;border-radius:6px}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-right-radius:0;border-bottom-left-radius:4px;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child>.btn:last-child,.btn-group-vertical>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;border-collapse:separate;table-layout:fixed}.btn-group-justified .btn{display:table-cell;float:none;width:1%}[data-toggle="buttons"]>.btn>input[type="radio"],[data-toggle="buttons"]>.btn>input[type="checkbox"]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group.col{float:none;padding-right:0;padding-left:0}.input-group .form-control{width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:66px;padding:18px 27px;font-size:19px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:66px;line-height:66px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:33px;padding:6px 9px;font-size:13px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:33px;line-height:33px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:10px 15px;font-size:15px;font-weight:normal;line-height:1;text-align:center;background-color:#ecf0f1;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:6px 9px;font-size:13px;border-radius:3px}.input-group-addon.input-lg{padding:18px 27px;font-size:19px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-4px}.input-group-btn>.btn:hover,.input-group-btn>.btn:active{z-index:2}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#ecf0f1}.nav>li.disabled>a{color:#b4bcc2}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#b4bcc2;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#ecf0f1;border-color:#18bc9c}.nav .nav-divider{height:1px;margin:9.5px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.428571429;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#ecf0f1 #ecf0f1 #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#95a5a6;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center}@media(min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}}.nav-tabs.nav-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs.nav-justified>.active>a{border-bottom-color:#fff}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:5px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#2c3e50}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center}@media(min-width:768px){.nav-justified>li{display:table-cell;width:1%}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs-justified>.active>a{border-bottom-color:#fff}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.nav .caret{border-top-color:#18bc9c;border-bottom-color:#18bc9c}.nav a:hover .caret{border-top-color:#18bc9c;border-bottom-color:#18bc9c}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;z-index:1000;min-height:60px;margin-bottom:21px;border:1px solid transparent}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}@media(min-width:768px){.navbar{border-radius:4px}}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}@media(min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;padding-right:15px;padding-left:15px;overflow-x:visible;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse.in{overflow-y:auto}@media(min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-collapse .navbar-nav.navbar-left:first-child{margin-left:-15px}.navbar-collapse .navbar-nav.navbar-right:last-child{margin-right:-15px}.navbar-collapse .navbar-text:last-child{margin-right:0}}.container>.navbar-header,.container>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.container>.navbar-header,.container>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{border-width:0 0 1px}@media(min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;border-width:0 0 1px}@media(min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;z-index:1030}.navbar-fixed-bottom{bottom:0;margin-bottom:0}.navbar-brand{float:left;padding:19.5px 15px;font-size:19px;line-height:21px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media(min-width:768px){.navbar>.container .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:13px;margin-right:15px;margin-bottom:13px;background-color:transparent;border:1px solid transparent;border-radius:4px}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media(min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:9.75px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:21px}@media(max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:21px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media(min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:19.5px;padding-bottom:19.5px}}@media(min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;margin-top:8.5px;margin-right:-15px;margin-bottom:8.5px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}@media(min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{float:none;margin-left:0}}@media(max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media(min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-nav.pull-right>li>.dropdown-menu,.navbar-nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar-btn{margin-top:8.5px;margin-bottom:8.5px}.navbar-text{float:left;margin-top:19.5px;margin-bottom:19.5px}@media(min-width:768px){.navbar-text{margin-right:15px;margin-left:15px}}.navbar-default{background-color:#2c3e50;border-color:#202d3b}.navbar-default .navbar-brand{color:#fff}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#18bc9c;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#fff}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#18bc9c;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#fff;background-color:#1a242f}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#ccc}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#1f2c39}.navbar-default .navbar-nav>.dropdown>a:hover .caret,.navbar-default .navbar-nav>.dropdown>a:focus .caret{border-top-color:#18bc9c;border-bottom-color:#18bc9c}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#fff;background-color:#1a242f}.navbar-default .navbar-nav>.open>a .caret,.navbar-default .navbar-nav>.open>a:hover .caret,.navbar-default .navbar-nav>.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-default .navbar-nav>.dropdown>a .caret{border-top-color:#fff;border-bottom-color:#fff}@media(max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#fff}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#18bc9c;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#1a242f}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#fff}.navbar-default .navbar-link:hover{color:#18bc9c}.navbar-inverse{background-color:#18bc9c;border-color:#128f76}.navbar-inverse .navbar-brand{color:#fff}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#2c3e50;background-color:transparent}.navbar-inverse .navbar-text{color:#fff}.navbar-inverse .navbar-nav>li>a{color:#fff}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#2c3e50;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#15a589}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#149c82}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#15a589}.navbar-inverse .navbar-nav>.dropdown>a:hover .caret{border-top-color:#2c3e50;border-bottom-color:#2c3e50}.navbar-inverse .navbar-nav>.dropdown>a .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-nav>.open>a .caret,.navbar-inverse .navbar-nav>.open>a:hover .caret,.navbar-inverse .navbar-nav>.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}@media(max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#128f76}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#fff}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#2c3e50;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#15a589}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-inverse .navbar-link{color:#fff}.navbar-inverse .navbar-link:hover{color:#2c3e50}.breadcrumb{padding:8px 15px;margin-bottom:21px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#95a5a6}.pagination{display:inline-block;padding-left:0;margin:21px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:10px 15px;margin-left:-1px;line-height:1.428571429;text-decoration:none;background-color:#18bc9c;border:1px solid transparent}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{background-color:#ecf0f1}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#0f7864;border-color:#0f7864}.pagination>.disabled>span,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#ecf0f1;cursor:not-allowed;background-color:#18bc9c;border-color:transparent}.pagination-lg>li>a,.pagination-lg>li>span{padding:18px 27px;font-size:19px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:6px 9px;font-size:13px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:21px 0;text-align:center;list-style:none}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#18bc9c;border:1px solid transparent;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#ecf0f1}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#fff;cursor:not-allowed;background-color:#18bc9c}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.label-default{background-color:#95a5a6}.label-default[href]:hover,.label-default[href]:focus{background-color:#798d8f}.label-primary{background-color:#2c3e50}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#1a242f}.label-success{background-color:#18bc9c}.label-success[href]:hover,.label-success[href]:focus{background-color:#128f76}.label-info{background-color:#3498db}.label-info[href]:hover,.label-info[href]:focus{background-color:#217dbb}.label-warning{background-color:#f39c12}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#c87f0a}.label-danger{background-color:#e74c3c}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#d62c1a}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:13px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#95a5a6;border-radius:10px}.badge:empty{display:none}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}.btn .badge{position:relative;top:-1px}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#18bc9c;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;font-size:22.5px;font-weight:200;line-height:2.1428571435;color:inherit;background-color:#ecf0f1}.jumbotron h1{line-height:1;color:inherit}.jumbotron p{line-height:1.4}.container .jumbotron{border-radius:6px}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1{font-size:67.5px}}.thumbnail{display:inline-block;display:block;height:auto;max-width:100%;padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail>img{display:block;height:auto;max-width:100%}a.thumbnail:hover,a.thumbnail:focus{border-color:#18bc9c}.thumbnail>img{margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#2c3e50}.alert{padding:15px;margin-bottom:21px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:bold}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#fff;background-color:#18bc9c;border-color:#18bc9c}.alert-success hr{border-top-color:#15a589}.alert-success .alert-link{color:#e6e6e6}.alert-info{color:#fff;background-color:#3498db;border-color:#3498db}.alert-info hr{border-top-color:#258cd1}.alert-info .alert-link{color:#e6e6e6}.alert-warning{color:#fff;background-color:#f39c12;border-color:#f39c12}.alert-warning hr{border-top-color:#e08e0b}.alert-warning .alert-link{color:#e6e6e6}.alert-danger{color:#fff;background-color:#e74c3c;border-color:#e74c3c}.alert-danger hr{border-top-color:#e43725}.alert-danger .alert-link{color:#e6e6e6}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:21px;margin-bottom:21px;overflow:hidden;background-color:#ecf0f1;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0;height:100%;font-size:13px;color:#fff;text-align:center;background-color:#2c3e50;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#18bc9c}.progress-striped .progress-bar-success{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#3498db}.progress-striped .progress-bar-info{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f39c12}.progress-striped .progress-bar-warning{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#e74c3c}.progress-striped .progress-bar-danger{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#fff;background-color:#2c3e50;border-color:#2c3e50}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#8aa4be}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:21px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel-body{padding:15px}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0}.panel>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group .list-group-item:last-child{border-bottom:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table{margin-bottom:0}.panel>.panel-body+.table{border-top:1px solid #ddd}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-title{margin-top:0;margin-bottom:0;font-size:17px}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#7b8a8b;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#2c3e50}.panel-primary>.panel-heading{color:#fff;background-color:#2c3e50;border-color:#2c3e50}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#2c3e50}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#2c3e50}.panel-success{border-color:#18bc9c}.panel-success>.panel-heading{color:#fff;background-color:#18bc9c;border-color:#18bc9c}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#18bc9c}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#18bc9c}.panel-warning{border-color:#f39c12}.panel-warning>.panel-heading{color:#fff;background-color:#f39c12;border-color:#f39c12}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#f39c12}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#f39c12}.panel-danger{border-color:#e74c3c}.panel-danger>.panel-heading{color:#fff;background-color:#e74c3c;border-color:#e74c3c}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#e74c3c}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#e74c3c}.panel-info{border-color:#3498db}.panel-info>.panel-heading{color:#fff;background-color:#3498db;border-color:#3498db}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#3498db}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#3498db}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:22.5px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{margin-right:15px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:auto;overflow-y:scroll}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{z-index:1050;width:auto;padding:10px;margin-right:auto;margin-left:auto}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{min-height:16.428571429px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media screen and (min-width:768px){.modal-dialog{right:auto;left:50%;width:600px;padding-top:30px;padding-bottom:30px}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}}.tooltip{position:absolute;z-index:1030;display:block;font-size:13px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:rgba(0,0,0,0.9);border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:rgba(0,0,0,0.9);border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:rgba(0,0,0,0.9);border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);background-clip:padding-box}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:15px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,0.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0;content:" "}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,0.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0;content:" "}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,0.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0;content:" "}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,0.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0;content:" "}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;height:auto;max-width:100%;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6);opacity:.5;filter:alpha(opacity=50)}.carousel-control.left{background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,0.5)),to(rgba(0,0,0,0.0001)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.5) 0),color-stop(rgba(0,0,0,0.0001) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1)}.carousel-control.right{right:0;left:auto;background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,0.0001)),to(rgba(0,0,0,0.5)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.0001) 0),color-stop(rgba(0,0,0,0.5) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1)}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;left:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.affix{position:fixed}@-ms-viewport{width:device-width}@media screen and (max-width:400px){@-ms-viewport{width:320px}}.hidden{display:none!important;visibility:hidden!important}.visible-xs{display:none!important}tr.visible-xs{display:none!important}th.visible-xs,td.visible-xs{display:none!important}@media(max-width:767px){.visible-xs{display:block!important}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-xs.visible-sm{display:block!important}tr.visible-xs.visible-sm{display:table-row!important}th.visible-xs.visible-sm,td.visible-xs.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-xs.visible-md{display:block!important}tr.visible-xs.visible-md{display:table-row!important}th.visible-xs.visible-md,td.visible-xs.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-xs.visible-lg{display:block!important}tr.visible-xs.visible-lg{display:table-row!important}th.visible-xs.visible-lg,td.visible-xs.visible-lg{display:table-cell!important}}.visible-sm{display:none!important}tr.visible-sm{display:none!important}th.visible-sm,td.visible-sm{display:none!important}@media(max-width:767px){.visible-sm.visible-xs{display:block!important}tr.visible-sm.visible-xs{display:table-row!important}th.visible-sm.visible-xs,td.visible-sm.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-sm{display:block!important}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-sm.visible-md{display:block!important}tr.visible-sm.visible-md{display:table-row!important}th.visible-sm.visible-md,td.visible-sm.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-sm.visible-lg{display:block!important}tr.visible-sm.visible-lg{display:table-row!important}th.visible-sm.visible-lg,td.visible-sm.visible-lg{display:table-cell!important}}.visible-md{display:none!important}tr.visible-md{display:none!important}th.visible-md,td.visible-md{display:none!important}@media(max-width:767px){.visible-md.visible-xs{display:block!important}tr.visible-md.visible-xs{display:table-row!important}th.visible-md.visible-xs,td.visible-md.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-md.visible-sm{display:block!important}tr.visible-md.visible-sm{display:table-row!important}th.visible-md.visible-sm,td.visible-md.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-md{display:block!important}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-md.visible-lg{display:block!important}tr.visible-md.visible-lg{display:table-row!important}th.visible-md.visible-lg,td.visible-md.visible-lg{display:table-cell!important}}.visible-lg{display:none!important}tr.visible-lg{display:none!important}th.visible-lg,td.visible-lg{display:none!important}@media(max-width:767px){.visible-lg.visible-xs{display:block!important}tr.visible-lg.visible-xs{display:table-row!important}th.visible-lg.visible-xs,td.visible-lg.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-lg.visible-sm{display:block!important}tr.visible-lg.visible-sm{display:table-row!important}th.visible-lg.visible-sm,td.visible-lg.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-lg.visible-md{display:block!important}tr.visible-lg.visible-md{display:table-row!important}th.visible-lg.visible-md,td.visible-lg.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-lg{display:block!important}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}.hidden-xs{display:block!important}tr.hidden-xs{display:table-row!important}th.hidden-xs,td.hidden-xs{display:table-cell!important}@media(max-width:767px){.hidden-xs{display:none!important}tr.hidden-xs{display:none!important}th.hidden-xs,td.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-xs.hidden-sm{display:none!important}tr.hidden-xs.hidden-sm{display:none!important}th.hidden-xs.hidden-sm,td.hidden-xs.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-xs.hidden-md{display:none!important}tr.hidden-xs.hidden-md{display:none!important}th.hidden-xs.hidden-md,td.hidden-xs.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-xs.hidden-lg{display:none!important}tr.hidden-xs.hidden-lg{display:none!important}th.hidden-xs.hidden-lg,td.hidden-xs.hidden-lg{display:none!important}}.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}@media(max-width:767px){.hidden-sm.hidden-xs{display:none!important}tr.hidden-sm.hidden-xs{display:none!important}th.hidden-sm.hidden-xs,td.hidden-sm.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}tr.hidden-sm{display:none!important}th.hidden-sm,td.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-sm.hidden-md{display:none!important}tr.hidden-sm.hidden-md{display:none!important}th.hidden-sm.hidden-md,td.hidden-sm.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-sm.hidden-lg{display:none!important}tr.hidden-sm.hidden-lg{display:none!important}th.hidden-sm.hidden-lg,td.hidden-sm.hidden-lg{display:none!important}}.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}@media(max-width:767px){.hidden-md.hidden-xs{display:none!important}tr.hidden-md.hidden-xs{display:none!important}th.hidden-md.hidden-xs,td.hidden-md.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-md.hidden-sm{display:none!important}tr.hidden-md.hidden-sm{display:none!important}th.hidden-md.hidden-sm,td.hidden-md.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}tr.hidden-md{display:none!important}th.hidden-md,td.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-md.hidden-lg{display:none!important}tr.hidden-md.hidden-lg{display:none!important}th.hidden-md.hidden-lg,td.hidden-md.hidden-lg{display:none!important}}.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}@media(max-width:767px){.hidden-lg.hidden-xs{display:none!important}tr.hidden-lg.hidden-xs{display:none!important}th.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm{display:none!important}tr.hidden-lg.hidden-sm{display:none!important}th.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-lg.hidden-md{display:none!important}tr.hidden-lg.hidden-md{display:none!important}th.hidden-lg.hidden-md,td.hidden-lg.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-lg{display:none!important}tr.hidden-lg{display:none!important}th.hidden-lg,td.hidden-lg{display:none!important}}.visible-print{display:none!important}tr.visible-print{display:none!important}th.visible-print,td.visible-print{display:none!important}@media print{.visible-print{display:block!important}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}.hidden-print{display:none!important}tr.hidden-print{display:none!important}th.hidden-print,td.hidden-print{display:none!important}}.text-primary{color:#2c3e50}.text-success{color:#18bc9c}.text-danger{color:#e74c3c}.text-warning{color:#f39c12}.text-info{color:#3498db}.table tr.success,.table tr.warning,.table tr.danger{color:#fff}.has-warning .help-block,.has-warning .control-label{color:#f39c12}.has-warning .form-control,.has-warning .form-control:focus{border:2px solid #f39c12}.has-error .help-block,.has-error .control-label{color:#e74c3c}.has-error .form-control,.has-error .form-control:focus{border:2px solid #e74c3c}.has-success .help-block,.has-success .control-label{color:#18bc9c}.has-success .form-control,.has-success .form-control:focus{border:2px solid #18bc9c}.pagination a{color:#fff}.pagination .disabled>a,.pagination .disabled>a:hover,.pagination .disabled>a:focus,.pagination .disabled>span{background-color:#3be6c4}.pager a{color:#fff}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{background-color:#3be6c4}.alert a,.alert .alert-link{color:#fff;text-decoration:underline}.progress{height:10px;-webkit-box-shadow:none;box-shadow:none}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.affix{position:fixed}
him2him2/cdnjs
ajax/libs/bootswatch/3.0.0/css/flatly/bootstrap.min.css
CSS
mit
103,378
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/ (function(a){function b(){if(this.isDisposed)throw new Error(eb)}function c(a,b){if(fb&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(jb)){for(var c=[],e=b;e;e=e.source)e.stack&&c.unshift(e.stack);c.unshift(a.stack);var f=c.join("\n"+jb+"\n");a.stack=d(f)}}function d(a){for(var b=a.split("\n"),c=[],d=0,g=b.length;g>d;d++){var h=b[d];e(h)||f(h)||!h||c.push(h)}return c.join("\n")}function e(a){var b=h(a);if(!b)return!1;var c=b[0],d=b[1];return c===hb&&d>=ib&&_c>=d}function f(a){return-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:")}function g(){if(fb)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=h(c);if(!d)return;return hb=d[0],d[1]}}function h(a){var b=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(a);if(b)return[b[1],Number(b[2])];var c=/at ([^ ]+):(\d+):(?:\d+)$/.exec(a);if(c)return[c[1],Number(c[2])];var d=/.*@(.+):(\d+)$/.exec(a);return d?[d[1],Number(d[2])]:void 0}function i(a){var b=[];if(!Lb(a))return b;Kb.nonEnumArgs&&a.length&&Mb(a)&&(a=Ob.call(a));var c=Kb.enumPrototypes&&"function"==typeof a,d=Kb.enumErrorProps&&(a===Fb||a instanceof Error);for(var e in a)c&&"prototype"==e||d&&("message"==e||"name"==e)||b.push(e);if(Kb.nonEnumShadows&&a!==Gb){var f=a.constructor,g=-1,h=rb;if(a===(f&&f.prototype))var i=a===Hb?Bb:a===Fb?wb:Cb.call(a),j=Jb[i];for(;++g<h;)e=qb[g],j&&j[e]||!Db.call(a,e)||b.push(e)}return b}function j(a,b,c){for(var d=-1,e=c(a),f=e.length;++d<f;){var g=e[d];if(b(a[g],g,a)===!1)break}return a}function k(a,b){return j(a,b,i)}function l(a){return"function"!=typeof a.toString&&"string"==typeof(a+"")}function m(a,b,c,d){if(a===b)return 0!==a||1/a==1/b;var e=typeof a,f=typeof b;if(a===a&&(null==a||null==b||"function"!=e&&"object"!=e&&"function"!=f&&"object"!=f))return!1;var g=Cb.call(a),h=Cb.call(b);if(g==sb&&(g=zb),h==sb&&(h=zb),g!=h)return!1;switch(g){case ub:case vb:return+a==+b;case yb:return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case Ab:case Bb:return a==String(b)}var i=g==tb;if(!i){if(g!=zb||!Kb.nodeClass&&(l(a)||l(b)))return!1;var j=!Kb.argsObject&&Mb(a)?Object:a.constructor,n=!Kb.argsObject&&Mb(b)?Object:b.constructor;if(!(j==n||Db.call(a,"constructor")&&Db.call(b,"constructor")||cb(j)&&j instanceof j&&cb(n)&&n instanceof n||!("constructor"in a&&"constructor"in b)))return!1}c||(c=[]),d||(d=[]);for(var o=c.length;o--;)if(c[o]==a)return d[o]==b;var p=0,q=!0;if(c.push(a),d.push(b),i){if(o=a.length,p=b.length,q=p==o)for(;p--;){var r=b[p];if(!(q=m(a[p],r,c,d)))break}}else k(b,function(b,e,f){return Db.call(f,e)?(p++,q=Db.call(a,e)&&m(a[e],b,c,d)):void 0}),q&&k(a,function(a,b,c){return Db.call(c,b)?q=--p>-1:void 0});return c.pop(),d.pop(),q}function n(a,b){return 1===a.length&&Array.isArray(a[b])?a[b]:Ob.call(a)}function o(a,b){for(var c=new Array(a),d=0;a>d;d++)c[d]=b();return c}function p(a,b){this.id=a,this.value=b}function q(){this._s=s}function r(){this._s=s,this._l=s.length,this._i=0}function t(a){this._a=a}function u(a){this._a=a,this._l=y(a),this._i=0}function v(a){return"number"==typeof a&&Q.isFinite(a)}function w(b){var c,d=b[kb];if(!d&&"string"==typeof b)return c=new q(b),c[kb]();if(!d&&b.length!==a)return c=new t(b),c[kb]();if(!d)throw new TypeError("Object is not iterable");return b[kb]()}function x(a){var b=+a;return 0===b?b:isNaN(b)?b:0>b?-1:1}function y(a){var b=+a.length;return isNaN(b)?0:0!==b&&v(b)?(b=x(b)*Math.floor(Math.abs(b)),0>=b?0:b>Cc?Cc:b):b}function z(a,b){return X(a)||(a=fc),new Tc(function(c){var d=0,e=b.length;return a.scheduleRecursive(function(a){e>d?(c.onNext(b[d++]),a()):c.onCompleted()})})}function A(a,b){return new Tc(function(c){var d=new $b,e=new _b;return e.setDisposable(d),d.setDisposable(a.subscribe(c.onNext.bind(c),function(a){var d,f;try{f=b(a)}catch(g){return void c.onError(g)}bb(f)&&(f=Mc(f)),d=new $b,e.setDisposable(d),d.setDisposable(f.subscribe(c))},c.onCompleted.bind(c))),e},a)}function B(a,b){var c=this;return new Tc(function(d){var e=0,f=a.length;return c.subscribe(function(c){if(f>e){var g,h=a[e++];try{g=b(c,h)}catch(i){return void d.onError(i)}d.onNext(g)}else d.onCompleted()},function(a){d.onError(a)},function(){d.onCompleted()})},c)}function C(a,b,c){var d=pb(b,c,3);return a.map(function(b,c){var e=d(b,c,a);return bb(e)&&(e=Mc(e)),(nb(e)||mb(e))&&(e=Dc(e)),e}).concatAll()}function D(a,b,c){var d=pb(b,c,3);return a.map(function(b,c){var e=d(b,c,a);return bb(e)&&(e=Mc(e)),(nb(e)||mb(e))&&(e=Dc(e)),e}).mergeAll()}function E(a){var b=function(){this.cancelBubble=!0},c=function(){if(this.bubbledKeyCode=this.keyCode,this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0,this.returnValue=!1,this.modified=!0};if(a||(a=Q.event),!a.target)switch(a.target=a.target||a.srcElement,"mouseover"==a.type&&(a.relatedTarget=a.fromElement),"mouseout"==a.type&&(a.relatedTarget=a.toElement),a.stopPropagation||(a.stopPropagation=b,a.preventDefault=c),a.type){case"keypress":var d="charCode"in a?a.charCode:a.keyCode;10==d?(d=0,a.keyCode=13):13==d||27==d?d=0:3==d&&(d=99),a.charCode=d,a.keyChar=a.charCode?String.fromCharCode(a.charCode):""}return a}function F(a,b,c){if(a.addEventListener)return a.addEventListener(b,c,!1),Yb(function(){a.removeEventListener(b,c,!1)});if(a.attachEvent){var d=function(a){c(E(a))};return a.attachEvent("on"+b,d),Yb(function(){a.detachEvent("on"+b,d)})}return a["on"+b]=c,Yb(function(){a["on"+b]=null})}function G(a,b,c){var d=new Vb;if("[object NodeList]"===Object.prototype.toString.call(a))for(var e=0,f=a.length;f>e;e++)d.add(G(a.item(e),b,c));else a&&d.add(F(a,b,c));return d}function H(a,b){return new Tc(function(c){return b.scheduleWithAbsolute(a,function(){c.onNext(0),c.onCompleted()})})}function I(a,b,c){return new Tc(function(d){var e=0,f=a,g=cc(b);return c.scheduleRecursiveWithAbsolute(f,function(a){if(g>0){var b=c.now();f+=g,b>=f&&(f=b+g)}d.onNext(e++),a(f)})})}function J(a,b){return new Tc(function(c){return b.scheduleWithRelative(cc(a),function(){c.onNext(0),c.onCompleted()})})}function K(a,b,c){return a===b?new Tc(function(a){return c.schedulePeriodicWithState(0,b,function(b){return a.onNext(b),b+1})}):Ac(function(){return I(c.now()+a,b,c)})}function L(a,b,c){return new Tc(function(d){var e,f=!1,g=new _b,h=null,i=[],j=!1;return e=a.materialize().timestamp(c).subscribe(function(a){var e,k;"E"===a.value.kind?(i=[],i.push(a),h=a.value.exception,k=!j):(i.push({value:a.value,timestamp:a.timestamp+b}),k=!f,f=!0),k&&(null!==h?d.onError(h):(e=new $b,g.setDisposable(e),e.setDisposable(c.scheduleRecursiveWithRelative(b,function(a){var b,e,g,k;if(null===h){j=!0;do g=null,i.length>0&&i[0].timestamp-c.now()<=0&&(g=i.shift().value),null!==g&&g.accept(d);while(null!==g);k=!1,e=0,i.length>0?(k=!0,e=Math.max(0,i[0].timestamp-c.now())):f=!1,b=h,j=!1,null!==b?d.onError(b):k&&a(e)}}))))}),new Vb(e,g)},a)}function M(a,b,c){return Ac(function(){return L(a,b-c.now(),c)})}function N(a,b){return new Tc(function(c){function d(){g&&(g=!1,c.onNext(f)),e&&c.onCompleted()}var e,f,g;return new Vb(a.subscribe(function(a){g=!0,f=a},c.onError.bind(c),function(){e=!0}),b.subscribe(d,c.onError.bind(c),d))},a)}function O(a,b,c){return new Tc(function(d){function e(a,b){j[b]=a;var e;if(g[b]=!0,h||(h=g.every(Y))){if(f)return void d.onError(f);try{e=c.apply(null,j)}catch(k){return void d.onError(k)}d.onNext(e)}i&&j[1]&&d.onCompleted()}var f,g=[!1,!1],h=!1,i=!1,j=new Array(2);return new Vb(a.subscribe(function(a){e(a,0)},function(a){j[1]?d.onError(a):f=a},function(){i=!0,j[1]&&d.onCompleted()}),b.subscribe(function(a){e(a,1)},function(a){d.onError(a)},function(){i=!0,e(!0,1)}))},a)}var P={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Q=P[typeof window]&&window||this,R=P[typeof exports]&&exports&&!exports.nodeType&&exports,S=P[typeof module]&&module&&!module.nodeType&&module,T=S&&S.exports===R&&R,U=P[typeof global]&&global;!U||U.global!==U&&U.window!==U||(Q=U);var V={internals:{},config:{Promise:Q.Promise},helpers:{}},W=V.helpers.noop=function(){},X=(V.helpers.notDefined=function(a){return"undefined"==typeof a},V.helpers.isScheduler=function(a){return a instanceof V.Scheduler}),Y=V.helpers.identity=function(a){return a},Z=(V.helpers.pluck=function(a){return function(b){return b[a]}},V.helpers.just=function(a){return function(){return a}},V.helpers.defaultNow=function(){return Date.now?Date.now:function(){return+new Date}}()),$=V.helpers.defaultComparer=function(a,b){return Nb(a,b)},_=V.helpers.defaultSubComparer=function(a,b){return a>b?1:b>a?-1:0},ab=(V.helpers.defaultKeySerializer=function(a){return a.toString()},V.helpers.defaultError=function(a){throw a}),bb=V.helpers.isPromise=function(a){return!!a&&"function"==typeof a.then},cb=(V.helpers.asArray=function(){return Array.prototype.slice.call(arguments)},V.helpers.not=function(a){return!a},V.helpers.isFunction=function(){var a=function(a){return"function"==typeof a||!1};return a(/x/)&&(a=function(a){return"function"==typeof a&&"[object Function]"==Cb.call(a)}),a}()),db="Argument out of range",eb="Object has been disposed";V.config.longStackSupport=!1;var fb=!1;try{throw new Error}catch(gb){fb=!!gb.stack}var hb,ib=g(),jb="From previous event:",kb="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";Q.Set&&"function"==typeof(new Q.Set)["@@iterator"]&&(kb="@@iterator");var lb=V.doneEnumerator={done:!0,value:a},mb=V.helpers.isIterable=function(b){return b[kb]!==a},nb=V.helpers.isArrayLike=function(b){return b&&b.length!==a};V.helpers.iterator=kb;var ob,pb=V.internals.bindCallback=function(a,b,c){if("undefined"==typeof b)return a;switch(c){case 0:return function(){return a.call(b)};case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}},qb=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],rb=qb.length,sb="[object Arguments]",tb="[object Array]",ub="[object Boolean]",vb="[object Date]",wb="[object Error]",xb="[object Function]",yb="[object Number]",zb="[object Object]",Ab="[object RegExp]",Bb="[object String]",Cb=Object.prototype.toString,Db=Object.prototype.hasOwnProperty,Eb=Cb.call(arguments)==sb,Fb=Error.prototype,Gb=Object.prototype,Hb=String.prototype,Ib=Gb.propertyIsEnumerable;try{ob=!(Cb.call(document)==zb&&!({toString:0}+""))}catch(gb){ob=!0}var Jb={};Jb[tb]=Jb[vb]=Jb[yb]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Jb[ub]=Jb[Bb]={constructor:!0,toString:!0,valueOf:!0},Jb[wb]=Jb[xb]=Jb[Ab]={constructor:!0,toString:!0},Jb[zb]={constructor:!0};var Kb={};!function(){var a=function(){this.x=1},b=[];a.prototype={valueOf:1,y:1};for(var c in new a)b.push(c);for(c in arguments);Kb.enumErrorProps=Ib.call(Fb,"message")||Ib.call(Fb,"name"),Kb.enumPrototypes=Ib.call(a,"prototype"),Kb.nonEnumArgs=0!=c,Kb.nonEnumShadows=!/valueOf/.test(b)}(1);var Lb=V.internals.isObject=function(a){var b=typeof a;return a&&("function"==b||"object"==b)||!1},Mb=function(a){return a&&"object"==typeof a?Cb.call(a)==sb:!1};Eb||(Mb=function(a){return a&&"object"==typeof a?Db.call(a,"callee"):!1});{var Nb=V.internals.isEqual=function(a,b){return m(a,b,[],[])},Ob=Array.prototype.slice,Pb=({}.hasOwnProperty,this.inherits=V.internals.inherits=function(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}),Qb=V.internals.addProperties=function(a){for(var b=Ob.call(arguments,1),c=0,d=b.length;d>c;c++){var e=b[c];for(var f in e)a[f]=e[f]}};V.internals.addRef=function(a,b){return new Tc(function(c){return new Vb(b.getDisposable(),a.subscribe(c))})}}Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=Ob.call(arguments,1),d=function(){function e(){}if(this instanceof d){e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(Ob.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(Ob.call(arguments)))};return d}),Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d;if(null==this)throw new TypeError(" this is null or not defined");var e=Object(this),f=e.length>>>0;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(arguments.length>1&&(c=b),d=0;f>d;){var g;d in e&&(g=e[d],a.call(c,g,d,e)),d++}});var Rb=Object("a"),Sb="a"!=Rb[0]||!(0 in Rb);Array.prototype.every||(Array.prototype.every=function(a){var b=Object(this),c=Sb&&{}.toString.call(this)==Bb?this.split(""):b,d=c.length>>>0,e=arguments[1];if({}.toString.call(a)!=xb)throw new TypeError(a+" is not a function");for(var f=0;d>f;f++)if(f in c&&!a.call(e,c[f],f,b))return!1;return!0}),Array.prototype.map||(Array.prototype.map=function(a){var b=Object(this),c=Sb&&{}.toString.call(this)==Bb?this.split(""):b,d=c.length>>>0,e=Array(d),f=arguments[1];if({}.toString.call(a)!=xb)throw new TypeError(a+" is not a function");for(var g=0;d>g;g++)g in c&&(e[g]=a.call(f,c[g],g,b));return e}),Array.prototype.filter||(Array.prototype.filter=function(a){for(var b,c=[],d=new Object(this),e=0,f=d.length>>>0;f>e;e++)b=d[e],e in d&&a.call(arguments[1],b,e,d)&&c.push(b);return c}),Array.isArray||(Array.isArray=function(a){return{}.toString.call(a)==tb}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>1&&(d=Number(arguments[1]),d!==d?d=0:0!==d&&1/0!=d&&d!==-1/0&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),Object.prototype.propertyIsEnumerable||(Object.prototype.propertyIsEnumerable=function(a){for(var b in this)if(b===a)return!0;return!1}),Object.keys||(Object.keys=function(){"use strict";var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString");return function(c){if("object"!=typeof c&&("function"!=typeof c||null===c))throw new TypeError("Object.keys called on non-object");var d,e,f=[];for(d in c)a.call(c,d)&&f.push(d);if(b)for(e=0;rb>e;e++)a.call(c,qb[e])&&f.push(qb[e]);return f}}()),p.prototype.compareTo=function(a){var b=this.value.compareTo(a.value);return 0===b&&(b=this.id-a.id),b};var Tb=V.internals.PriorityQueue=function(a){this.items=new Array(a),this.length=0},Ub=Tb.prototype;Ub.isHigherPriority=function(a,b){return this.items[a].compareTo(this.items[b])<0},Ub.percolate=function(a){if(!(a>=this.length||0>a)){var b=a-1>>1;if(!(0>b||b===a)&&this.isHigherPriority(a,b)){var c=this.items[a];this.items[a]=this.items[b],this.items[b]=c,this.percolate(b)}}},Ub.heapify=function(a){if(+a||(a=0),!(a>=this.length||0>a)){var b=2*a+1,c=2*a+2,d=a;if(b<this.length&&this.isHigherPriority(b,d)&&(d=b),c<this.length&&this.isHigherPriority(c,d)&&(d=c),d!==a){var e=this.items[a];this.items[a]=this.items[d],this.items[d]=e,this.heapify(d)}}},Ub.peek=function(){return this.items[0].value},Ub.removeAt=function(a){this.items[a]=this.items[--this.length],delete this.items[this.length],this.heapify()},Ub.dequeue=function(){var a=this.peek();return this.removeAt(0),a},Ub.enqueue=function(a){var b=this.length++;this.items[b]=new p(Tb.count++,a),this.percolate(b)},Ub.remove=function(a){for(var b=0;b<this.length;b++)if(this.items[b].value===a)return this.removeAt(b),!0;return!1},Tb.count=0;var Vb=V.CompositeDisposable=function(){this.disposables=n(arguments,0),this.isDisposed=!1,this.length=this.disposables.length},Wb=Vb.prototype;Wb.add=function(a){this.isDisposed?a.dispose():(this.disposables.push(a),this.length++)},Wb.remove=function(a){var b=!1;if(!this.isDisposed){var c=this.disposables.indexOf(a);-1!==c&&(b=!0,this.disposables.splice(c,1),this.length--,a.dispose())}return b},Wb.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var a=this.disposables.slice(0);this.disposables=[],this.length=0;for(var b=0,c=a.length;c>b;b++)a[b].dispose()}},Wb.toArray=function(){return this.disposables.slice(0)};var Xb=V.Disposable=function(a){this.isDisposed=!1,this.action=a||W};Xb.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var Yb=Xb.create=function(a){return new Xb(a)},Zb=Xb.empty={dispose:W},$b=V.SingleAssignmentDisposable=function(){function a(){this.isDisposed=!1,this.current=null}var b=a.prototype;return b.getDisposable=function(){return this.current},b.setDisposable=function(a){var b,c=this.isDisposed;c||(b=this.current,this.current=a),b&&b.dispose(),c&&a&&a.dispose()},b.dispose=function(){var a;this.isDisposed||(this.isDisposed=!0,a=this.current,this.current=null),a&&a.dispose()},a}(),_b=V.SerialDisposable=$b,ac=(V.RefCountDisposable=function(){function a(a){this.disposable=a,this.disposable.count++,this.isInnerDisposed=!1}function b(a){this.underlyingDisposable=a,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return a.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},b.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},b.prototype.getDisposable=function(){return this.isDisposed?Zb:new a(this)},b}(),V.internals.ScheduledItem=function(a,b,c,d,e){this.scheduler=a,this.state=b,this.action=c,this.dueTime=d,this.comparer=e||_,this.disposable=new $b});ac.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},ac.prototype.compareTo=function(a){return this.comparer(this.dueTime,a.dueTime)},ac.prototype.isCancelled=function(){return this.disposable.isDisposed},ac.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var bc=V.Scheduler=function(){function a(a,b,c,d){this.now=a,this._schedule=b,this._scheduleRelative=c,this._scheduleAbsolute=d}function b(a,b){return b(),Zb}var c=a.prototype;return c.schedule=function(a){return this._schedule(a,b)},c.scheduleWithState=function(a,b){return this._schedule(a,b)},c.scheduleWithRelative=function(a,c){return this._scheduleRelative(c,a,b)},c.scheduleWithRelativeAndState=function(a,b,c){return this._scheduleRelative(a,b,c)},c.scheduleWithAbsolute=function(a,c){return this._scheduleAbsolute(c,a,b)},c.scheduleWithAbsoluteAndState=function(a,b,c){return this._scheduleAbsolute(a,b,c)},a.now=Z,a.normalize=function(a){return 0>a&&(a=0),a},a}(),cc=bc.normalize;!function(a){function b(a,b){var c=b.first,d=b.second,e=new Vb,f=function(b){d(b,function(b){var c=!1,d=!1,g=a.scheduleWithState(b,function(a,b){return c?e.remove(g):d=!0,f(b),Zb});d||(e.add(g),c=!0)})};return f(c),e}function c(a,b,c){var d=b.first,e=b.second,f=new Vb,g=function(b){e(b,function(b,d){var e=!1,h=!1,i=a[c].call(a,b,d,function(a,b){return e?f.remove(i):h=!0,g(b),Zb});h||(f.add(i),e=!0)})};return g(d),f}function d(a,b){a(function(c){b(a,c)})}a.scheduleRecursive=function(a){return this.scheduleRecursiveWithState(a,function(a,b){a(function(){b(a)})})},a.scheduleRecursiveWithState=function(a,c){return this.scheduleWithState({first:a,second:c},b)},a.scheduleRecursiveWithRelative=function(a,b){return this.scheduleRecursiveWithRelativeAndState(b,a,d)},a.scheduleRecursiveWithRelativeAndState=function(a,b,d){return this._scheduleRelative({first:a,second:d},b,function(a,b){return c(a,b,"scheduleWithRelativeAndState")})},a.scheduleRecursiveWithAbsolute=function(a,b){return this.scheduleRecursiveWithAbsoluteAndState(b,a,d)},a.scheduleRecursiveWithAbsoluteAndState=function(a,b,d){return this._scheduleAbsolute({first:a,second:d},b,function(a,b){return c(a,b,"scheduleWithAbsoluteAndState")})}}(bc.prototype),function(){bc.prototype.schedulePeriodic=function(a,b){return this.schedulePeriodicWithState(null,a,b)},bc.prototype.schedulePeriodicWithState=function(a,b,c){if("undefined"==typeof Q.setInterval)throw new Error("Periodic scheduling not supported.");var d=a,e=Q.setInterval(function(){d=c(d)},b);return Yb(function(){Q.clearInterval(e)})}}(bc.prototype);var dc,ec=bc.immediate=function(){function a(a,b){return b(this,a)}function b(a,b,c){for(var d=this.now()+cc(b);d-this.now()>0;);return c(this,a)}function c(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}return new bc(Z,a,b,c)}(),fc=bc.currentThread=function(){function a(a){for(var b;a.length>0;)if(b=a.dequeue(),!b.isCancelled()){for(;b.dueTime-bc.now()>0;);b.isCancelled()||b.invoke()}}function b(a,b){return this.scheduleWithRelativeAndState(a,0,b)}function c(b,c,d){var f=this.now()+bc.normalize(c),g=new ac(this,b,d,f);if(e)e.enqueue(g);else{e=new Tb(4),e.enqueue(g);try{a(e)}catch(h){throw h}finally{e=null}}return g.disposable}function d(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}var e,f=new bc(Z,b,c,d);return f.scheduleRequired=function(){return!e},f.ensureTrampoline=function(a){e?a():this.schedule(a)},f}(),gc=(V.internals.SchedulePeriodicRecursive=function(){function a(a,b){b(0,this._period);try{this._state=this._action(this._state)}catch(c){throw this._cancel.dispose(),c}}function b(a,b,c,d){this._scheduler=a,this._state=b,this._period=c,this._action=d}return b.prototype.start=function(){var b=new $b;return this._cancel=b,b.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,a.bind(this))),b},b}(),W),hc=function(){var a,b=W;if("WScript"in this)a=function(a,b){WScript.Sleep(b),a()};else{if(!Q.setTimeout)throw new Error("No concurrency detected!");a=Q.setTimeout,b=Q.clearTimeout}return{setTimeout:a,clearTimeout:b}}(),ic=hc.setTimeout,jc=hc.clearTimeout;!function(){function a(){if(!Q.postMessage||Q.importScripts)return!1;var a=!1,b=Q.onmessage;return Q.onmessage=function(){a=!0},Q.postMessage("","*"),Q.onmessage=b,a}var b=RegExp("^"+String(Cb).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),c="function"==typeof(c=U&&T&&U.setImmediate)&&!b.test(c)&&c,d="function"==typeof(d=U&&T&&U.clearImmediate)&&!b.test(d)&&d;if("function"==typeof c)dc=c,gc=d;else if("undefined"!=typeof process&&"[object process]"==={}.toString.call(process))dc=process.nextTick;else if(a()){var e="ms.rx.schedule"+Math.random(),f={},g=0,h=function(a){if("string"==typeof a.data&&a.data.substring(0,e.length)===e){var b=a.data.substring(e.length),c=f[b];c(),delete f[b]}};Q.addEventListener?Q.addEventListener("message",h,!1):Q.attachEvent("onmessage",h,!1),dc=function(a){var b=g++;f[b]=a,Q.postMessage(e+b,"*")}}else if(Q.MessageChannel){var i=new Q.MessageChannel,j={},k=0;i.port1.onmessage=function(a){var b=a.data,c=j[b];c(),delete j[b]},dc=function(a){var b=k++;j[b]=a,i.port2.postMessage(b)}}else"document"in Q&&"onreadystatechange"in Q.document.createElement("script")?dc=function(a){var b=Q.document.createElement("script");b.onreadystatechange=function(){a(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},Q.document.documentElement.appendChild(b)}:(dc=function(a){return ic(a,0)},gc=jc)}();var kc=bc.timeout=function(){function a(a,b){var c=this,d=new $b,e=dc(function(){d.isDisposed||d.setDisposable(b(c,a))});return new Vb(d,Yb(function(){gc(e)}))}function b(a,b,c){var d=this,e=bc.normalize(b);if(0===e)return d.scheduleWithState(a,c);var f=new $b,g=ic(function(){f.isDisposed||f.setDisposable(c(d,a))},e);return new Vb(f,Yb(function(){jc(g)}))}function c(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}return new bc(Z,a,b,c)}(),lc=V.Notification=function(){function a(a,b){this.hasValue=null==b?!1:b,this.kind=a}return a.prototype.accept=function(a,b,c){return a&&"object"==typeof a?this._acceptObservable(a):this._accept(a,b,c)},a.prototype.toObservable=function(a){var b=this;return X(a)||(a=ec),new Tc(function(c){return a.schedule(function(){b._acceptObservable(c),"N"===b.kind&&c.onCompleted()})})},a}(),mc=lc.createOnNext=function(){function a(a){return a(this.value)}function b(a){return a.onNext(this.value)}function c(){return"OnNext("+this.value+")"}return function(d){var e=new lc("N",!0);return e.value=d,e._accept=a,e._acceptObservable=b,e.toString=c,e}}(),nc=lc.createOnError=function(){function a(a,b){return b(this.exception)}function b(a){return a.onError(this.exception)}function c(){return"OnError("+this.exception+")"}return function(d){var e=new lc("E");return e.exception=d,e._accept=a,e._acceptObservable=b,e.toString=c,e}}(),oc=lc.createOnCompleted=function(){function a(a,b,c){return c()}function b(a){return a.onCompleted()}function c(){return"OnCompleted()"}return function(){var d=new lc("C");return d._accept=a,d._acceptObservable=b,d.toString=c,d}}(),pc=V.internals.Enumerator=function(a){this._next=a};pc.prototype.next=function(){return this._next()},pc.prototype[kb]=function(){return this};var qc=V.internals.Enumerable=function(a){this._iterator=a};qc.prototype[kb]=function(){return this._iterator()},qc.prototype.concat=function(){var a=this;return new Tc(function(b){var c;try{c=a[kb]()}catch(d){return void b.onError(d)}var e,f=new _b,g=ec.scheduleRecursive(function(a){var d;if(!e){try{d=c.next()}catch(g){return void b.onError(g)}if(d.done)return void b.onCompleted();var h=d.value;bb(h)&&(h=Mc(h));var i=new $b;f.setDisposable(i),i.setDisposable(h.subscribe(b.onNext.bind(b),b.onError.bind(b),function(){a()}))}});return new Vb(f,g,Yb(function(){e=!0}))})},qc.prototype.catchError=function(){var a=this;return new Tc(function(b){var c;try{c=a[kb]()}catch(d){return void b.onError(d)}var e,f,g=new _b,h=ec.scheduleRecursive(function(a){if(!e){var d;try{d=c.next()}catch(h){return void b.onError(h)}if(d.done)return void(f?b.onError(f):b.onCompleted());var i=d.value;bb(i)&&(i=Mc(i));var j=new $b;g.setDisposable(j),j.setDisposable(i.subscribe(b.onNext.bind(b),function(b){f=b,a()},b.onCompleted.bind(b)))}});return new Vb(g,h,Yb(function(){e=!0}))})},qc.prototype.catchErrorWhen=function(a){var b=this;return new Tc(function(c){var d,e=new Wc,f=a(e),g=new Wc,h=f.subscribe(g);try{d=b[kb]()}catch(i){return void c.onError(i)}var j,k,l=new _b,m=ec.scheduleRecursive(function(a){if(!j){var b;try{b=d.next()}catch(f){return void c.onError(f)}if(b.done)return void(k?c.onError(k):c.onCompleted());var h=b.value;bb(h)&&(h=Mc(h));var i=new $b,m=new $b;l.setDisposable(new Vb(m,i)),i.setDisposable(h.subscribe(c.onNext.bind(c),function(b){m.setDisposable(g.subscribe(function(){a()},function(a){c.onError(a)},function(){c.onCompleted()})),e.onNext(b)},c.onCompleted.bind(c)))}});return new Vb(h,l,m,Yb(function(){j=!0}))})};var rc,sc=qc.repeat=function(a,b){return null==b&&(b=-1),new qc(function(){var c=b;return new pc(function(){return 0===c?lb:(c>0&&c--,{done:!1,value:a})})})},tc=qc.of=function(a,b,c){return b||(b=Y),new qc(function(){var d=-1;return new pc(function(){return++d<a.length?{done:!1,value:b.call(c,a[d],d,a)}:lb})})},uc=V.Observer=function(){},vc=uc.create=function(a,b,c){return a||(a=W),b||(b=ab),c||(c=W),new xc(a,b,c)},wc=V.internals.AbstractObserver=function(a){function b(){this.isStopped=!1,a.call(this)}return Pb(b,a),b.prototype.onNext=function(a){this.isStopped||this.next(a)},b.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.error(a))},b.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},b.prototype.dispose=function(){this.isStopped=!0},b.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.error(a),!0)},b}(uc),xc=V.AnonymousObserver=function(a){function b(b,c,d){a.call(this),this._onNext=b,this._onError=c,this._onCompleted=d}return Pb(b,a),b.prototype.next=function(a){this._onNext(a)},b.prototype.error=function(a){this._onError(a)},b.prototype.completed=function(){this._onCompleted()},b}(wc),yc=V.Observable=function(){function a(a){if(V.config.longStackSupport&&fb){try{throw new Error}catch(b){this.stack=b.stack.substring(b.stack.indexOf("\n")+1)}var d=this;this._subscribe=function(b){var e=b.onError.bind(b);return b.onError=function(a){c(a,d),e(a)},a.call(d,b)}}else this._subscribe=a}return rc=a.prototype,rc.subscribe=rc.forEach=function(a,b,c){return this._subscribe("object"==typeof a?a:vc(a,b,c))},rc.subscribeOnNext=function(a,b){return this._subscribe(vc(2===arguments.length?function(c){a.call(b,c)}:a))},rc.subscribeOnError=function(a,b){return this._subscribe(vc(null,2===arguments.length?function(c){a.call(b,c)}:a))},rc.subscribeOnCompleted=function(a,b){return this._subscribe(vc(null,null,2===arguments.length?function(){a.call(b)}:a))},a}(),zc=V.internals.ScheduledObserver=function(a){function b(b,c){a.call(this),this.scheduler=b,this.observer=c,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new _b}return Pb(b,a),b.prototype.next=function(a){var b=this;this.queue.push(function(){b.observer.onNext(a)})},b.prototype.error=function(a){var b=this;this.queue.push(function(){b.observer.onError(a)})},b.prototype.completed=function(){var a=this;this.queue.push(function(){a.observer.onCompleted()})},b.prototype.ensureActive=function(){var a=!1,b=this;!this.hasFaulted&&this.queue.length>0&&(a=!this.isAcquired,this.isAcquired=!0),a&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(function(a){var c;if(!(b.queue.length>0))return void(b.isAcquired=!1);c=b.queue.shift();try{c()}catch(d){throw b.queue=[],b.hasFaulted=!0,d}a()}))},b.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposable.dispose()},b}(wc);rc.toArray=function(){var a=this;return new Tc(function(b){var c=[];return a.subscribe(function(a){c.push(a)},function(a){b.onError(a)},function(){b.onNext(c),b.onCompleted()})},a)},yc.create=yc.createWithDisposable=function(a,b){return new Tc(a,b)};var Ac=yc.defer=function(a){return new Tc(function(b){var c;try{c=a()}catch(d){return Gc(d).subscribe(b)}return bb(c)&&(c=Mc(c)),c.subscribe(b)})},Bc=yc.empty=function(a){return X(a)||(a=ec),new Tc(function(b){return a.schedule(function(){b.onCompleted()})})},Cc=Math.pow(2,53)-1;q.prototype[kb]=function(){return new r(this._s)},r.prototype[kb]=function(){return this},r.prototype.next=function(){if(this._i<this._l){var a=this._s.charAt(this._i++);return{done:!1,value:a}}return lb},t.prototype[kb]=function(){return new u(this._a)},u.prototype[kb]=function(){return this},u.prototype.next=function(){if(this._i<this._l){var a=this._a[this._i++];return{done:!1,value:a}}return lb};{var Dc=yc.from=function(a,b,c,d){if(null==a)throw new Error("iterable cannot be null.");if(b&&!cb(b))throw new Error("mapFn when provided must be a function");if(b)var e=pb(b,c,2);X(d)||(d=fc);var f=Object(a),g=w(f);return new Tc(function(a){var b=0;return d.scheduleRecursive(function(c){var d;try{d=g.next()}catch(f){return void a.onError(f)}if(d.done)return void a.onCompleted();var h=d.value;if(e)try{h=e(h,b)}catch(f){return void a.onError(f)}a.onNext(h),b++,c()})})},Ec=yc.fromArray=function(a,b){return X(b)||(b=fc),new Tc(function(c){var d=0,e=a.length;return b.scheduleRecursive(function(b){e>d?(c.onNext(a[d++]),b()):c.onCompleted()})})};yc.never=function(){return new Tc(function(){return Zb})}}yc.of=function(){return z(null,arguments)},yc.ofWithScheduler=function(a){return z(a,Ob.call(arguments,1))},yc.pairs=function(a,b){return b||(b=V.Scheduler.currentThread),new Tc(function(c){var d=0,e=Object.keys(a),f=e.length;return b.scheduleRecursive(function(b){if(f>d){var g=e[d++];c.onNext([g,a[g]]),b()}else c.onCompleted()})})},yc.range=function(a,b,c){return X(c)||(c=fc),new Tc(function(d){return c.scheduleRecursiveWithState(0,function(c,e){b>c?(d.onNext(a+c),e(c+1)):d.onCompleted()})})},yc.repeat=function(a,b,c){return X(c)||(c=fc),Fc(a,c).repeat(null==b?-1:b)};var Fc=yc["return"]=yc.just=function(a,b){return X(b)||(b=ec),new Tc(function(c){return b.schedule(function(){c.onNext(a),c.onCompleted()})})};yc.returnValue=function(){return Fc.apply(null,arguments)};var Gc=yc["throw"]=yc.throwError=function(a,b){return X(b)||(b=ec),new Tc(function(c){return b.schedule(function(){c.onError(a)})})};yc.throwException=function(){return yc.throwError.apply(null,arguments)},rc["catch"]=rc.catchError=function(a){return"function"==typeof a?A(this,a):Hc([this,a])},rc.catchException=function(a){return this.catchError(a) };var Hc=yc.catchError=yc["catch"]=function(){return tc(n(arguments,0)).catchError()};yc.catchException=function(){return Hc.apply(null,arguments)},rc.combineLatest=function(){var a=Ob.call(arguments);return Array.isArray(a[0])?a[0].unshift(this):a.unshift(this),Ic.apply(this,a)};var Ic=yc.combineLatest=function(){var a=Ob.call(arguments),b=a.pop();return Array.isArray(a[0])&&(a=a[0]),new Tc(function(c){function d(a){var d;if(h[a]=!0,i||(i=h.every(Y))){try{d=b.apply(null,k)}catch(e){return void c.onError(e)}c.onNext(d)}else j.filter(function(b,c){return c!==a}).every(Y)&&c.onCompleted()}function e(a){j[a]=!0,j.every(Y)&&c.onCompleted()}for(var f=function(){return!1},g=a.length,h=o(g,f),i=!1,j=o(g,f),k=new Array(g),l=new Array(g),m=0;g>m;m++)!function(b){var f=a[b],g=new $b;bb(f)&&(f=Mc(f)),g.setDisposable(f.subscribe(function(a){k[b]=a,d(b)},function(a){c.onError(a)},function(){e(b)})),l[b]=g}(m);return new Vb(l)},this)};rc.concat=function(){var a=Ob.call(arguments,0);return a.unshift(this),Jc.apply(this,a)};var Jc=yc.concat=function(){return tc(n(arguments,0)).concat()};rc.concatAll=function(){return this.merge(1)},rc.concatObservable=function(){return this.merge(1)},rc.merge=function(a){if("number"!=typeof a)return Kc(this,a);var b=this;return new Tc(function(c){function d(a){var b=new $b;f.add(b),bb(a)&&(a=Mc(a)),b.setDisposable(a.subscribe(function(a){c.onNext(a)},function(a){c.onError(a)},function(){f.remove(b),h.length>0?d(h.shift()):(e--,g&&0===e&&c.onCompleted())}))}var e=0,f=new Vb,g=!1,h=[];return f.add(b.subscribe(function(b){a>e?(e++,d(b)):h.push(b)},function(a){c.onError(a)},function(){g=!0,0===e&&c.onCompleted()})),f},b)};var Kc=yc.merge=function(){var a,b;return arguments[0]?X(arguments[0])?(a=arguments[0],b=Ob.call(arguments,1)):(a=ec,b=Ob.call(arguments,0)):(a=ec,b=Ob.call(arguments,1)),Array.isArray(b[0])&&(b=b[0]),z(a,b).mergeAll()};rc.mergeAll=function(){var a=this;return new Tc(function(b){var c=new Vb,d=!1,e=new $b;return c.add(e),e.setDisposable(a.subscribe(function(a){var e=new $b;c.add(e),bb(a)&&(a=Mc(a)),e.setDisposable(a.subscribe(function(a){b.onNext(a)},function(a){b.onError(a)},function(){c.remove(e),d&&1===c.length&&b.onCompleted()}))},function(a){b.onError(a)},function(){d=!0,1===c.length&&b.onCompleted()})),c},a)},rc.mergeObservable=function(){return this.mergeAll.apply(this,arguments)},rc.skipUntil=function(a){var b=this;return new Tc(function(c){var d=!1,e=new Vb(b.subscribe(function(a){d&&c.onNext(a)},function(a){c.onError(a)},function(){d&&c.onCompleted()}));bb(a)&&(a=Mc(a));var f=new $b;return e.add(f),f.setDisposable(a.subscribe(function(){d=!0,f.dispose()},function(a){c.onError(a)},function(){f.dispose()})),e},b)},rc["switch"]=rc.switchLatest=function(){var a=this;return new Tc(function(b){var c=!1,d=new _b,e=!1,f=0,g=a.subscribe(function(a){var g=new $b,h=++f;c=!0,d.setDisposable(g),bb(a)&&(a=Mc(a)),g.setDisposable(a.subscribe(function(a){f===h&&b.onNext(a)},function(a){f===h&&b.onError(a)},function(){f===h&&(c=!1,e&&b.onCompleted())}))},b.onError.bind(b),function(){e=!0,!c&&b.onCompleted()});return new Vb(g,d)},a)},rc.takeUntil=function(a){var b=this;return new Tc(function(c){return bb(a)&&(a=Mc(a)),new Vb(b.subscribe(c),a.subscribe(function(){c.onCompleted()},function(a){c.onError(a)},W))},b)},rc.withLatestFrom=function(){var a=this,b=Ob.call(arguments),c=b.pop();if("undefined"==typeof a)throw new Error("Source observable not found for withLatestFrom().");if("function"!=typeof c)throw new Error("withLatestFrom() expects a resultSelector function.");return Array.isArray(b[0])&&(b=b[0]),new Tc(function(d){for(var e=function(){return!1},f=b.length,g=o(f,e),h=!1,i=new Array(f),j=new Array(f+1),k=0;f>k;k++)!function(a){var c=b[a],e=new $b;bb(c)&&(c=Mc(c)),e.setDisposable(c.subscribe(function(b){i[a]=b,g[a]=!0,h=g.every(Y)},d.onError.bind(d),function(){})),j[a]=e}(k);var l=new $b;return l.setDisposable(a.subscribe(function(a){var b,e=[a].concat(i);if(h){try{b=c.apply(null,e)}catch(f){return void d.onError(f)}d.onNext(b)}},d.onError.bind(d),function(){d.onCompleted()})),j[f]=l,new Vb(j)},this)},rc.zip=function(){if(Array.isArray(arguments[0]))return B.apply(this,arguments);var a=this,b=Ob.call(arguments),c=b.pop();return b.unshift(a),new Tc(function(d){function e(b){var e,f;if(h.every(function(a){return a.length>0})){try{f=h.map(function(a){return a.shift()}),e=c.apply(a,f)}catch(g){return void d.onError(g)}d.onNext(e)}else i.filter(function(a,c){return c!==b}).every(Y)&&d.onCompleted()}function f(a){i[a]=!0,i.every(function(a){return a})&&d.onCompleted()}for(var g=b.length,h=o(g,function(){return[]}),i=o(g,function(){return!1}),j=new Array(g),k=0;g>k;k++)!function(a){var c=b[a],g=new $b;bb(c)&&(c=Mc(c)),g.setDisposable(c.subscribe(function(b){h[a].push(b),e(a)},function(a){d.onError(a)},function(){f(a)})),j[a]=g}(k);return new Vb(j)},a)},yc.zip=function(){var a=Ob.call(arguments,0),b=a.shift();return b.zip.apply(b,a)},yc.zipArray=function(){var a=n(arguments,0);return new Tc(function(b){function c(a){if(f.every(function(a){return a.length>0})){var c=f.map(function(a){return a.shift()});b.onNext(c)}else if(g.filter(function(b,c){return c!==a}).every(Y))return void b.onCompleted()}function d(a){return g[a]=!0,g.every(Y)?void b.onCompleted():void 0}for(var e=a.length,f=o(e,function(){return[]}),g=o(e,function(){return!1}),h=new Array(e),i=0;e>i;i++)!function(e){h[e]=new $b,h[e].setDisposable(a[e].subscribe(function(a){f[e].push(a),c(e)},function(a){b.onError(a)},function(){d(e)}))}(i);return new Vb(h)})},rc.asObservable=function(){var a=this;return new Tc(function(b){return a.subscribe(b)},this)},rc.dematerialize=function(){var a=this;return new Tc(function(b){return a.subscribe(function(a){return a.accept(b)},function(a){b.onError(a)},function(){b.onCompleted()})},this)},rc.distinctUntilChanged=function(a,b){var c=this;return a||(a=Y),b||(b=$),new Tc(function(d){var e,f=!1;return c.subscribe(function(c){var g,h=!1;try{g=a(c)}catch(i){return void d.onError(i)}if(f)try{h=b(e,g)}catch(i){return void d.onError(i)}f&&h||(f=!0,e=g,d.onNext(c))},function(a){d.onError(a)},function(){d.onCompleted()})},this)},rc["do"]=rc.tap=function(a,b,c){var d,e=this;return"function"==typeof a?d=a:(d=function(b){a.onNext(b)},b=function(b){a.onError(b)},c=function(){a.onCompleted()}),new Tc(function(a){return e.subscribe(function(b){try{d(b)}catch(c){a.onError(c)}a.onNext(b)},function(c){if(b)try{b(c)}catch(d){a.onError(d)}a.onError(c)},function(){if(c)try{c()}catch(b){a.onError(b)}a.onCompleted()})},this)},rc.doAction=function(){return this.tap.apply(this,arguments)},rc.doOnNext=rc.tapOnNext=function(a,b){return this.tap("undefined"!=typeof b?function(c){a.call(b,c)}:a)},rc.doOnError=rc.tapOnError=function(a,b){return this.tap(W,"undefined"!=typeof b?function(c){a.call(b,c)}:a)},rc.doOnCompleted=rc.tapOnCompleted=function(a,b){return this.tap(W,null,"undefined"!=typeof b?function(){a.call(b)}:a)},rc["finally"]=rc.ensure=function(a){var b=this;return new Tc(function(c){var d;try{d=b.subscribe(c)}catch(e){throw a(),e}return Yb(function(){try{d.dispose()}catch(b){throw b}finally{a()}})},this)},rc.finallyAction=function(a){return this.ensure(a)},rc.ignoreElements=function(){var a=this;return new Tc(function(b){return a.subscribe(W,function(a){b.onError(a)},function(){b.onCompleted()})},a)},rc.materialize=function(){var a=this;return new Tc(function(b){return a.subscribe(function(a){b.onNext(mc(a))},function(a){b.onNext(nc(a)),b.onCompleted()},function(){b.onNext(oc()),b.onCompleted()})},a)},rc.repeat=function(a){return sc(this,a).concat()},rc.retry=function(a){return sc(this,a).catchError()},rc.retryWhen=function(a){return sc(this).catchErrorWhen(a)},rc.scan=function(){var a,b,c=!1,d=this;return 2===arguments.length?(c=!0,a=arguments[0],b=arguments[1]):b=arguments[0],new Tc(function(e){var f,g,h;return d.subscribe(function(d){!h&&(h=!0);try{f?g=b(g,d):(g=c?b(a,d):d,f=!0)}catch(i){return void e.onError(i)}e.onNext(g)},function(a){e.onError(a)},function(){!h&&c&&e.onNext(a),e.onCompleted()})},d)},rc.skipLast=function(a){var b=this;return new Tc(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&c.onNext(d.shift())},function(a){c.onError(a)},function(){c.onCompleted()})},b)},rc.startWith=function(){var a,b,c=0;return arguments.length&&X(arguments[0])?(b=arguments[0],c=1):b=ec,a=Ob.call(arguments,c),tc([Ec(a,b),this]).concat()},rc.takeLast=function(a){var b=this;return new Tc(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&d.shift()},function(a){c.onError(a)},function(){for(;d.length>0;)c.onNext(d.shift());c.onCompleted()})},b)},rc.selectConcat=rc.concatMap=function(a,b,c){return cb(a)&&cb(b)?this.concatMap(function(c,d){var e=a(c,d);return bb(e)&&(e=Mc(e)),(nb(e)||mb(e))&&(e=Dc(e)),e.map(function(a,e){return b(c,a,d,e)})}):cb(a)?C(this,a,c):C(this,function(){return a})},rc.select=rc.map=function(a,b){var c=cb(a)?pb(a,b,3):function(){return a},d=this;return new Tc(function(a){var b=0;return d.subscribe(function(e){try{var f=c(e,b++,d)}catch(g){return void a.onError(g)}a.onNext(f)},function(b){a.onError(b)},function(){a.onCompleted()})},d)},rc.pluck=function(a){return this.map(function(b){return b[a]})},rc.selectMany=rc.flatMap=function(a,b,c){return cb(a)&&cb(b)?this.flatMap(function(c,d){var e=a(c,d);return bb(e)&&(e=Mc(e)),(nb(e)||mb(e))&&(e=Dc(e)),e.map(function(a,e){return b(c,a,d,e)})},c):cb(a)?D(this,a,c):D(this,function(){return a})},rc.selectSwitch=rc.flatMapLatest=rc.switchMap=function(a,b){return this.select(a,b).switchLatest()},rc.skip=function(a){if(0>a)throw new Error(db);var b=this;return new Tc(function(c){var d=a;return b.subscribe(function(a){0>=d?c.onNext(a):d--},function(a){c.onError(a)},function(){c.onCompleted()})},b)},rc.skipWhile=function(a,b){var c=this,d=pb(a,b,3);return new Tc(function(a){var b=0,e=!1;return c.subscribe(function(f){if(!e)try{e=!d(f,b++,c)}catch(g){return void a.onError(g)}e&&a.onNext(f)},function(b){a.onError(b)},function(){a.onCompleted()})},c)},rc.take=function(a,b){if(0>a)throw new RangeError(db);if(0===a)return Bc(b);var c=this;return new Tc(function(b){var d=a;return c.subscribe(function(a){d-->0&&(b.onNext(a),0===d&&b.onCompleted())},function(a){b.onError(a)},function(){b.onCompleted()})},c)},rc.takeWhile=function(a,b){var c=this,d=pb(a,b,3);return new Tc(function(a){var b=0,e=!0;return c.subscribe(function(f){if(e){try{e=d(f,b++,c)}catch(g){return void a.onError(g)}e?a.onNext(f):a.onCompleted()}},function(b){a.onError(b)},function(){a.onCompleted()})},c)},rc.where=rc.filter=function(a,b){var c=this;return a=pb(a,b,3),new Tc(function(b){var d=0;return c.subscribe(function(e){try{var f=a(e,d++,c)}catch(g){return void b.onError(g)}f&&b.onNext(e)},function(a){b.onError(a)},function(){b.onCompleted()})},c)},yc.fromCallback=function(a,b,c){return function(){var d=Ob.call(arguments,0);return new Tc(function(e){function f(){var a=arguments;if(c){try{a=c(a)}catch(b){return void e.onError(b)}e.onNext(a)}else a.length<=1?e.onNext.apply(e,a):e.onNext(a);e.onCompleted()}d.push(f),a.apply(b,d)}).publishLast().refCount()}},yc.fromNodeCallback=function(a,b,c){return function(){var d=Ob.call(arguments,0);return new Tc(function(e){function f(a){if(a)return void e.onError(a);var b=Ob.call(arguments,1);if(c){try{b=c(b)}catch(d){return void e.onError(d)}e.onNext(b)}else b.length<=1?e.onNext.apply(e,b):e.onNext(b);e.onCompleted()}d.push(f),a.apply(b,d)}).publishLast().refCount()}},V.config.useNativeEvents=!1,yc.fromEvent=function(a,b,c){if(a.addListener)return Lc(function(c){a.addListener(b,c)},function(c){a.removeListener(b,c)},c);if(!V.config.useNativeEvents){if("function"==typeof a.on&&"function"==typeof a.off)return Lc(function(c){a.on(b,c)},function(c){a.off(b,c)},c);if(Q.Ember&&"function"==typeof Q.Ember.addListener)return Lc(function(c){Ember.addListener(a,b,c)},function(c){Ember.removeListener(a,b,c)},c)}return new Tc(function(d){return G(a,b,function(a){var b=a;if(c)try{b=c(arguments)}catch(e){return void d.onError(e)}d.onNext(b)})}).publish().refCount()};var Lc=yc.fromEventPattern=function(a,b,c){return new Tc(function(d){function e(a){var b=a;if(c)try{b=c(arguments)}catch(e){return void d.onError(e)}d.onNext(b)}var f=a(e);return Yb(function(){b&&b(e,f)})}).publish().refCount()},Mc=yc.fromPromise=function(a){return Ac(function(){var b=new V.AsyncSubject;return a.then(function(a){b.onNext(a),b.onCompleted()},b.onError.bind(b)),b})};rc.toPromise=function(a){if(a||(a=V.config.Promise),!a)throw new TypeError("Promise type not provided nor in Rx.config.Promise");var b=this;return new a(function(a,c){var d,e=!1;b.subscribe(function(a){d=a,e=!0},c,function(){e&&a(d)})})},yc.startAsync=function(a){var b;try{b=a()}catch(c){return Gc(c)}return Mc(b)},rc.multicast=function(a,b){var c=this;return"function"==typeof a?new Tc(function(d){var e=c.multicast(a());return new Vb(b(e).subscribe(d),e.connect())},c):new Nc(c,a)},rc.publish=function(a){return a&&cb(a)?this.multicast(function(){return new Wc},a):this.multicast(new Wc)},rc.share=function(){return this.publish().refCount()},rc.publishLast=function(a){return a&&cb(a)?this.multicast(function(){return new Xc},a):this.multicast(new Xc)},rc.publishValue=function(a,b){return 2===arguments.length?this.multicast(function(){return new Zc(b)},a):this.multicast(new Zc(a))},rc.shareValue=function(a){return this.publishValue(a).refCount()},rc.replay=function(a,b,c,d){return a&&cb(a)?this.multicast(function(){return new $c(b,c,d)},a):this.multicast(new $c(b,c,d))},rc.shareReplay=function(a,b,c){return this.replay(null,a,b,c).refCount()};{var Nc=V.ConnectableObservable=function(a){function b(b,c){var d,e=!1,f=b.asObservable();this.connect=function(){return e||(e=!0,d=new Vb(f.subscribe(c),Yb(function(){e=!1}))),d},a.call(this,function(a){return c.subscribe(a)})}return Pb(b,a),b.prototype.refCount=function(){var a,b=0,c=this;return new Tc(function(d){var e=1===++b,f=c.subscribe(d);return e&&(a=c.connect()),function(){f.dispose(),0===--b&&a.dispose()}})},b}(yc),Oc=yc.interval=function(a,b){return K(a,a,X(b)?b:kc)};yc.timer=function(b,c,d){var e;return X(d)||(d=kc),c!==a&&"number"==typeof c?e=c:X(c)&&(d=c),b instanceof Date&&e===a?H(b.getTime(),d):b instanceof Date&&e!==a?(e=c,I(b.getTime(),e,d)):e===a?J(b,d):K(b,e,d)}}rc.delay=function(a,b){return X(b)||(b=kc),a instanceof Date?M(this,a.getTime(),b):L(this,a,b)},rc.debounce=rc.throttleWithTimeout=function(a,b){X(b)||(b=kc);var c=this;return new Tc(function(d){var e,f=new _b,g=!1,h=0,i=c.subscribe(function(c){g=!0,e=c,h++;var i=h,j=new $b;f.setDisposable(j),j.setDisposable(b.scheduleWithRelative(a,function(){g&&h===i&&d.onNext(e),g=!1}))},function(a){f.dispose(),d.onError(a),g=!1,h++},function(){f.dispose(),g&&d.onNext(e),d.onCompleted(),g=!1,h++});return new Vb(i,f)},this)},rc.throttle=function(a,b){return this.debounce(a,b)},rc.timestamp=function(a){return X(a)||(a=kc),this.map(function(b){return{value:b,timestamp:a.now()}})},rc.sample=rc.throttleLatest=function(a,b){return X(b)||(b=kc),"number"==typeof a?N(this,Oc(a,b)):N(this,a)},rc.timeout=function(a,b,c){(null==b||"string"==typeof b)&&(b=Gc(new Error(b||"Timeout"))),X(c)||(c=kc);var d=this,e=a instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new Tc(function(f){function g(){var d=h;l.setDisposable(c[e](a,function(){h===d&&(bb(b)&&(b=Mc(b)),j.setDisposable(b.subscribe(f)))}))}var h=0,i=new $b,j=new _b,k=!1,l=new _b;return j.setDisposable(i),g(),i.setDisposable(d.subscribe(function(a){k||(h++,f.onNext(a),g())},function(a){k||(h++,f.onError(a))},function(){k||(h++,f.onCompleted())})),new Vb(j,l)},d)},rc.throttleFirst=function(a,b){X(b)||(b=kc);var c=+a||0;if(0>=c)throw new RangeError("windowDuration cannot be less or equal zero.");var d=this;return new Tc(function(a){var e=0;return d.subscribe(function(d){var f=b.now();(0===e||f-e>=c)&&(e=f,a.onNext(d))},function(b){a.onError(b)},function(){a.onCompleted()})},d)};var Pc=function(a){function b(a){var b=this.source.publish(),c=b.subscribe(a),d=Zb,e=this.pauser.distinctUntilChanged().subscribe(function(a){a?d=b.connect():(d.dispose(),d=Zb)});return new Vb(c,d,e)}function c(c,d){this.source=c,this.controller=new Wc,this.pauser=d&&d.subscribe?this.controller.merge(d):this.controller,a.call(this,b,c)}return Pb(c,a),c.prototype.pause=function(){this.controller.onNext(!1)},c.prototype.resume=function(){this.controller.onNext(!0)},c}(yc);rc.pausable=function(a){return new Pc(this,a)};var Qc=function(b){function c(b){var c,d=[],e=O(this.source,this.pauser.distinctUntilChanged().startWith(!1),function(a,b){return{data:a,shouldFire:b}}).subscribe(function(e){if(c!==a&&e.shouldFire!=c){if(c=e.shouldFire,e.shouldFire)for(;d.length>0;)b.onNext(d.shift())}else c=e.shouldFire,e.shouldFire?b.onNext(e.data):d.push(e.data)},function(a){for(;d.length>0;)b.onNext(d.shift());b.onError(a)},function(){for(;d.length>0;)b.onNext(d.shift());b.onCompleted()});return e}function d(a,d){this.source=a,this.controller=new Wc,this.pauser=d&&d.subscribe?this.controller.merge(d):this.controller,b.call(this,c,a)}return Pb(d,b),d.prototype.pause=function(){this.controller.onNext(!1)},d.prototype.resume=function(){this.controller.onNext(!0)},d}(yc);rc.pausableBuffered=function(a){return new Qc(this,a)};var Rc=function(a){function b(a){return this.source.subscribe(a)}function c(c,d){a.call(this,b,c),this.subject=new Sc(d),this.source=c.multicast(this.subject).refCount()}return Pb(c,a),c.prototype.request=function(a){return null==a&&(a=-1),this.subject.request(a)},c}(yc),Sc=function(a){function b(a){return this.subject.subscribe(a)}function c(c){null==c&&(c=!0),a.call(this,b),this.subject=new Wc,this.enableQueue=c,this.queue=c?[]:null,this.requestedCount=0,this.requestedDisposable=Zb,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.controlledDisposable=Zb}return Pb(c,a),Qb(c.prototype,uc,{onCompleted:function(){this.hasCompleted=!0,(!this.enableQueue||0===this.queue.length)&&this.subject.onCompleted()},onError:function(a){this.hasFailed=!0,this.error=a,(!this.enableQueue||0===this.queue.length)&&this.subject.onError(a)},onNext:function(a){var b=!1;0===this.requestedCount?this.enableQueue&&this.queue.push(a):(-1!==this.requestedCount&&0===this.requestedCount--&&this.disposeCurrentRequest(),b=!0),b&&this.subject.onNext(a)},_processRequest:function(a){if(this.enableQueue){for(;this.queue.length>=a&&a>0;)this.subject.onNext(this.queue.shift()),a--;return 0!==this.queue.length?{numberOfItems:a,returnValue:!0}:{numberOfItems:a,returnValue:!1}}return this.hasFailed?(this.subject.onError(this.error),this.controlledDisposable.dispose(),this.controlledDisposable=Zb):this.hasCompleted&&(this.subject.onCompleted(),this.controlledDisposable.dispose(),this.controlledDisposable=Zb),{numberOfItems:a,returnValue:!1}},request:function(a){this.disposeCurrentRequest();var b=this,c=this._processRequest(a),a=c.numberOfItems;return c.returnValue?Zb:(this.requestedCount=a,this.requestedDisposable=Yb(function(){b.requestedCount=0}),this.requestedDisposable)},disposeCurrentRequest:function(){this.requestedDisposable.dispose(),this.requestedDisposable=Zb}}),c}(yc);rc.controlled=function(a){return null==a&&(a=!0),new Rc(this,a)},rc.transduce=function(a){function b(a){return{init:function(){return a},step:function(a,b){return a.onNext(b)},result:function(a){return a.onCompleted()}}}var c=this;return new Tc(function(d){var e=a(b(d));return c.subscribe(function(a){try{e.step(d,a)}catch(b){d.onError(b)}},d.onError.bind(d),function(){e.result(d)})},c)};var Tc=V.AnonymousObservable=function(a){function b(a){return a&&"function"==typeof a.dispose?a:"function"==typeof a?Yb(a):Zb}function c(d,e){function f(a){var c=function(){try{e.setDisposable(b(d(e)))}catch(a){if(!e.fail(a))throw a}},e=new Uc(a);return fc.scheduleRequired()?fc.schedule(c):c(),e}return this.source=e,this instanceof c?void a.call(this,f):new c(d)}return Pb(c,a),c}(yc),Uc=function(a){function b(b){a.call(this),this.observer=b,this.m=new $b}Pb(b,a);var c=b.prototype;return c.next=function(a){var b=!1;try{this.observer.onNext(a),b=!0}catch(c){throw c}finally{!b&&this.dispose()}},c.error=function(a){try{this.observer.onError(a)}catch(b){throw b}finally{this.dispose()}},c.completed=function(){try{this.observer.onCompleted()}catch(a){throw a}finally{this.dispose()}},c.setDisposable=function(a){this.m.setDisposable(a)},c.getDisposable=function(){return this.m.getDisposable()},c.dispose=function(){a.prototype.dispose.call(this),this.m.dispose()},b}(wc),Vc=function(a,b){this.subject=a,this.observer=b};Vc.prototype.dispose=function(){if(!this.subject.isDisposed&&null!==this.observer){var a=this.subject.observers.indexOf(this.observer);this.subject.observers.splice(a,1),this.observer=null}};var Wc=V.Subject=function(a){function c(a){return b.call(this),this.isStopped?this.hasError?(a.onError(this.error),Zb):(a.onCompleted(),Zb):(this.observers.push(a),new Vc(this,a))}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return Pb(d,a),Qb(d.prototype,uc.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(b.call(this),!this.isStopped){var a=this.observers.slice(0);this.isStopped=!0;for(var c=0,d=a.length;d>c;c++)a[c].onCompleted();this.observers.length=0}},onError:function(a){if(b.call(this),!this.isStopped){var c=this.observers.slice(0);this.isStopped=!0,this.error=a,this.hasError=!0;for(var d=0,e=c.length;e>d;d++)c[d].onError(a);this.observers.length=0}},onNext:function(a){if(b.call(this),!this.isStopped)for(var c=this.observers.slice(0),d=0,e=c.length;e>d;d++)c[d].onNext(a)},dispose:function(){this.isDisposed=!0,this.observers=null}}),d.create=function(a,b){return new Yc(a,b)},d}(yc),Xc=V.AsyncSubject=function(a){function c(a){return b.call(this),this.isStopped?(this.hasError?a.onError(this.error):this.hasValue?(a.onNext(this.value),a.onCompleted()):a.onCompleted(),Zb):(this.observers.push(a),new Vc(this,a))}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return Pb(d,a),Qb(d.prototype,uc,{hasObservers:function(){return b.call(this),this.observers.length>0},onCompleted:function(){var a,c;if(b.call(this),!this.isStopped){this.isStopped=!0;var d=this.observers.slice(0),c=d.length;if(this.hasValue)for(a=0;c>a;a++){var e=d[a];e.onNext(this.value),e.onCompleted()}else for(a=0;c>a;a++)d[a].onCompleted();this.observers.length=0}},onError:function(a){if(b.call(this),!this.isStopped){var c=this.observers.slice(0);this.isStopped=!0,this.hasError=!0,this.error=a;for(var d=0,e=c.length;e>d;d++)c[d].onError(a);this.observers.length=0}},onNext:function(a){b.call(this),this.isStopped||(this.value=a,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),d}(yc),Yc=V.AnonymousSubject=function(a){function b(a){this.observable.subscribe(a)}function c(c,d){this.observer=c,this.observable=d,a.call(this,b)}return Pb(c,a),Qb(c.prototype,uc.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(a){this.observer.onError(a)},onNext:function(a){this.observer.onNext(a)}}),c}(yc),Zc=V.BehaviorSubject=function(a){function c(a){return b.call(this),this.isStopped?(this.hasError?a.onError(this.error):a.onCompleted(),Zb):(this.observers.push(a),a.onNext(this.value),new Vc(this,a))}function d(b){a.call(this,c),this.value=b,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return Pb(d,a),Qb(d.prototype,uc,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(b.call(this),!this.isStopped){this.isStopped=!0;for(var a=0,c=this.observers.slice(0),d=c.length;d>a;a++)c[a].onCompleted();this.observers.length=0}},onError:function(a){if(b.call(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=a;for(var c=0,d=this.observers.slice(0),e=d.length;e>c;c++)d[c].onError(a);this.observers.length=0}},onNext:function(a){if(b.call(this),!this.isStopped){this.value=a;for(var c=0,d=this.observers.slice(0),e=d.length;e>c;c++)d[c].onNext(a)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.exception=null}}),d}(yc),$c=V.ReplaySubject=function(a){function c(a,b){return Yb(function(){b.dispose(),!a.isDisposed&&a.observers.splice(a.observers.indexOf(b),1)})}function d(a){var d=new zc(this.scheduler,a),e=c(this,d);b.call(this),this._trim(this.scheduler.now()),this.observers.push(d);for(var f=0,g=this.q.length;g>f;f++)d.onNext(this.q[f].value);return this.hasError?d.onError(this.error):this.isStopped&&d.onCompleted(),d.ensureActive(),e}function e(b,c,e){this.bufferSize=null==b?Number.MAX_VALUE:b,this.windowSize=null==c?Number.MAX_VALUE:c,this.scheduler=e||fc,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,a.call(this,d)}return Pb(e,a),Qb(e.prototype,uc.prototype,{hasObservers:function(){return this.observers.length>0},_trim:function(a){for(;this.q.length>this.bufferSize;)this.q.shift();for(;this.q.length>0&&a-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(a){if(b.call(this),!this.isStopped){var c=this.scheduler.now();this.q.push({interval:c,value:a}),this._trim(c);for(var d=this.observers.slice(0),e=0,f=d.length;f>e;e++){var g=d[e];g.onNext(a),g.ensureActive()}}},onError:function(a){if(b.call(this),!this.isStopped){this.isStopped=!0,this.error=a,this.hasError=!0;var c=this.scheduler.now();this._trim(c);for(var d=this.observers.slice(0),e=0,f=d.length;f>e;e++){var g=d[e];g.onError(a),g.ensureActive()}this.observers=[]}},onCompleted:function(){if(b.call(this),!this.isStopped){this.isStopped=!0;var a=this.scheduler.now();this._trim(a);for(var c=this.observers.slice(0),d=0,e=c.length;e>d;d++){var f=c[d];f.onCompleted(),f.ensureActive()}this.observers=[]}},dispose:function(){this.isDisposed=!0,this.observers=null}}),e}(yc);V.Pauser=function(a){function b(){a.call(this)}return Pb(b,a),b.prototype.pause=function(){this.onNext(!1)},b.prototype.resume=function(){this.onNext(!0)},b}(Wc),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Q.Rx=V,define(function(){return V})):R&&S?T?(S.exports=V).Rx=V:R.Rx=V:Q.Rx=V;var _c=g()}).call(this); //# sourceMappingURL=rx.lite.compat.map
garrypolley/jsdelivr
files/rxjs/2.3.24/rx.lite.compat.min.js
JavaScript
mit
58,455
<?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Twig_Tests_Node_BlockTest extends Twig_Test_NodeTestCase { /** * @covers Twig_Node_Block::__construct */ public function testConstructor() { $body = new Twig_Node_Text('foo', 1); $node = new Twig_Node_Block('foo', $body, 1); $this->assertEquals($body, $node->getNode('body')); $this->assertEquals('foo', $node->getAttribute('name')); } /** * @covers Twig_Node_Block::compile * @dataProvider getTests */ public function testCompile($node, $source, $environment = null) { parent::testCompile($node, $source, $environment); } public function getTests() { $body = new Twig_Node_Text('foo', 1); $node = new Twig_Node_Block('foo', $body, 1); return array( array($node, <<<EOF // line 1 public function block_foo(\$context, array \$blocks = array()) { echo "foo"; } EOF ), ); } }
Chivan/Dirigendo
vendor/twig/twig/test/Twig/Tests/Node/BlockTest.php
PHP
mit
1,154
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["am","pm"],DAY:["\u09b0\u09ac\u09bf\u09ac\u09be\u09b0","\u09b8\u09cb\u09ae\u09ac\u09be\u09b0","\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0","\u09ac\u09c1\u09a7\u09ac\u09be\u09b0","\u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0","\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0","\u09b6\u09a8\u09bf\u09ac\u09be\u09b0"],MONTH:["\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0","\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0","\u09ae\u09be\u09b0\u09cd\u099a","\u098f\u09aa\u09cd\u09b0\u09bf\u09b2","\u09ae\u09c7","\u099c\u09c1\u09a8","\u099c\u09c1\u09b2\u09be\u0987","\u0986\u0997\u09b8\u09cd\u099f","\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0","\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0","\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0","\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0"],SHORTDAY:["\u09b0\u09ac\u09bf","\u09b8\u09cb\u09ae","\u09ae\u0999\u09cd\u0997\u09b2","\u09ac\u09c1\u09a7","\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf","\u09b6\u09c1\u0995\u09cd\u09b0","\u09b6\u09a8\u09bf"],SHORTMONTH:["\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0","\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0","\u09ae\u09be\u09b0\u09cd\u099a","\u098f\u09aa\u09cd\u09b0\u09bf\u09b2","\u09ae\u09c7","\u099c\u09c1\u09a8","\u099c\u09c1\u09b2\u09be\u0987","\u0986\u0997\u09b8\u09cd\u099f","\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0","\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0","\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0","\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0"],fullDate:"EEEE, d MMMM, y",longDate:"d MMMM, y",medium:"d MMM, y h:mm:ss a",mediumDate:"d MMM, y",mediumTime:"h:mm:ss a","short":"d/M/yy h:mm a",shortDate:"d/M/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"\u09f3",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:2,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:2,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a4",posPre:"",posSuf:"\u00a4"}]},id:"bn-bd",pluralCat:function(e,c){var d=e|0;if(d==0||e==1){return b.ONE}return b.OTHER}})}]);
melvinsembrano/cdnjs
ajax/libs/angular-i18n/1.2.28/angular-locale_bn-bd.min.js
JavaScript
mit
2,319
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07","\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"],DAY:["\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c","\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c","\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23","\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18","\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35","\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c","\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c"],MONTH:["\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21","\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c","\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21","\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19","\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21","\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19","\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21","\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21","\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19","\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21","\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19","\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21"],SHORTDAY:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],SHORTMONTH:["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."],fullDate:"EEEE\u0e17\u0e35\u0e48 d MMMM G y",longDate:"d MMMM y",medium:"d MMM y HH:mm:ss",mediumDate:"d MMM y",mediumTime:"HH:mm:ss","short":"d/M/yy HH:mm",shortDate:"d/M/yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u0e3f",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4-",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"th",pluralCat:function(d,c){return b.OTHER}})}]);
tresni/cdnjs
ajax/libs/angular-i18n/1.3.1/angular-locale_th.min.js
JavaScript
mit
2,112
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u4e0a\u5348","\u4e0b\u5348"],DAY:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],MONTH:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],SHORTDAY:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],SHORTMONTH:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],fullDate:"y\u5e74M\u6708d\u65e5EEEE",longDate:"y\u5e74M\u6708d\u65e5",medium:"y\u5e74M\u6708d\u65e5 ah:mm:ss",mediumDate:"y\u5e74M\u6708d\u65e5",mediumTime:"ah:mm:ss","short":"y/M/d ah:mm",shortDate:"y/M/d",shortTime:"ah:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"NT$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4-",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"zh-hant-tw",pluralCat:function(d,c){return b.OTHER}})}]);
calvinf/cdnjs
ajax/libs/angular-i18n/1.3.0-rc.4/angular-locale_zh-hant-tw.min.js
JavaScript
mit
1,307
"use strict";angular.module("ngLocale",[],["$provide",function(a){var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function c(f){f=f+"";var e=f.indexOf(".");return(e==-1)?0:f.length-e-1}function b(j,e){var g=e;if(undefined===g){g=Math.min(c(j),3)}var i=Math.pow(10,g);var h=((j*i)|0)%i;return{v:g,f:h}}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["nede\u013ea","pondelok","utorok","streda","\u0161tvrtok","piatok","sobota"],MONTH:["janu\u00e1ra","febru\u00e1ra","marca","apr\u00edla","m\u00e1ja","j\u00fana","j\u00fala","augusta","septembra","okt\u00f3bra","novembra","decembra"],SHORTDAY:["ne","po","ut","st","\u0161t","pi","so"],SHORTMONTH:["jan","feb","mar","apr","m\u00e1j","j\u00fan","j\u00fal","aug","sep","okt","nov","dec"],fullDate:"EEEE, d. MMMM y",longDate:"d. MMMM y",medium:"d.M.y H:mm:ss",mediumDate:"d.M.y",mediumTime:"H:mm:ss","short":"d.M.y H:mm",shortDate:"d.M.y",shortTime:"H:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"sk-sk",pluralCat:function(h,f){var g=h|0;var e=b(h,f);if(g==1&&e.v==0){return d.ONE}if(g>=2&&g<=4&&e.v==0){return d.FEW}if(e.v!=0){return d.MANY}return d.OTHER}})}]);
2947721120/cdnjs
ajax/libs/angular-i18n/1.2.27/angular-locale_sk-sk.min.js
JavaScript
mit
1,398
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u0442\u04af\u0441\u043a\u0435 \u0434\u0435\u0439\u0456\u043d","\u0442\u04af\u0441\u0442\u0435\u043d \u043a\u0435\u0439\u0456\u043d"],DAY:["\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456","\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456","\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456","\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456","\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456","\u0436\u04b1\u043c\u0430","\u0441\u0435\u043d\u0431\u0456"],MONTH:["\u049b\u0430\u04a3\u0442\u0430\u0440","\u0430\u049b\u043f\u0430\u043d","\u043d\u0430\u0443\u0440\u044b\u0437","\u0441\u04d9\u0443\u0456\u0440","\u043c\u0430\u043c\u044b\u0440","\u043c\u0430\u0443\u0441\u044b\u043c","\u0448\u0456\u043b\u0434\u0435","\u0442\u0430\u043c\u044b\u0437","\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a","\u049b\u0430\u0437\u0430\u043d","\u049b\u0430\u0440\u0430\u0448\u0430","\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d"],SHORTDAY:["\u0436\u0441.","\u0434\u0441.","\u0441\u0441.","\u0441\u0440.","\u0431\u0441.","\u0436\u043c.","\u0441\u0431."],SHORTMONTH:["\u049b\u0430\u04a3.","\u0430\u049b\u043f.","\u043d\u0430\u0443.","\u0441\u04d9\u0443.","\u043c\u0430\u043c.","\u043c\u0430\u0443.","\u0448\u0456\u043b.","\u0442\u0430\u043c.","\u049b\u044b\u0440.","\u049b\u0430\u0437.","\u049b\u0430\u0440.","\u0436\u0435\u043b\u0442."],fullDate:"EEEE, d MMMM y '\u0436'.",longDate:"d MMMM y '\u0436'.",medium:"dd.MM.y HH:mm:ss",mediumDate:"dd.MM.y",mediumTime:"HH:mm:ss","short":"dd/MM/yy HH:mm",shortDate:"dd/MM/yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20b8",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"kk",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
amoyeh/cdnjs
ajax/libs/angular-i18n/1.2.27/angular-locale_kk.min.js
JavaScript
mit
2,080
(function(){function e(e){return"string"==typeof e?e.replace(/[^0-9%]/g,""):e}function t(e){var t,i;if(e&&!e.splice){for(t=[],i=0;!0&&e[i];i++)t[i]=e[i];return t}return e}var i,n,r=tinymce.explode("id,name,width,height,style,align,class,hspace,vspace,bgcolor,type"),s=tinymce.makeMap(r.join(",")),o=tinymce.html.Node,a=tinymce.util.JSON;i=[["Flash","d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],["ShockWave","166b1bca-3f9c-11cf-8075-444553540000","application/x-director","http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"],["WindowsMedia","6bf52a52-394a-11d3-b153-00c04f79faa6,22d6f312-b0f6-11d0-94ab-0080c74c7e95,05589fa1-c356-11ce-bf01-00aa0055595a","application/x-mplayer2","http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"],["QuickTime","02bf25d5-8c17-4b23-bc80-d3488abddc6b","video/quicktime","http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"],["RealMedia","cfcdaa03-8be4-11cf-b84b-0020afbbccfa","audio/x-pn-realaudio-plugin","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],["Java","8ad9c840-044e-11d1-b3e9-00805f499d93","application/x-java-applet","http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0"],["Silverlight","dfeaf541-f3e1-4c24-acac-99c30715084a","application/x-silverlight-2"],["Iframe"],["Video"],["EmbeddedAudio"],["Audio"]],tinymce.create("tinymce.plugins.MediaPlugin",{init:function(e,t){function s(t){return t&&"IMG"===t.nodeName&&e.dom.hasClass(t,"mceItemMedia")}var o,l,h,c,u=this,d={};for(u.editor=e,u.url=t,n="",o=0;i.length>o;o++){for(c=i[o][0],h={name:c,clsids:tinymce.explode(i[o][1]||""),mimes:tinymce.explode(i[o][2]||""),codebase:i[o][3]},l=0;h.clsids.length>l;l++)d["clsid:"+h.clsids[l]]=h;for(l=0;h.mimes.length>l;l++)d[h.mimes[l]]=h;d["mceItem"+c]=h,d[c.toLowerCase()]=h,n+=(n?"|":"")+c}tinymce.each(e.getParam("media_types","video=mp4,m4v,ogv,webm;silverlight=xap;flash=swf,flv;shockwave=dcr;quicktime=mov,qt,mpg,mpeg;shockwave=dcr;windowsmedia=avi,wmv,wm,asf,asx,wmx,wvx;realmedia=rm,ra,ram;java=jar;audio=mp3,ogg").split(";"),function(e){var t,i,n;for(e=e.split(/=/),i=tinymce.explode(e[1].toLowerCase()),t=0;i.length>t;t++)n=d[e[0].toLowerCase()],n&&(d[i[t]]=n)}),n=RegExp("write("+n+")\\(([^)]+)\\)"),u.lookup=d,e.onPreInit.add(function(){e.schema.addValidElements("object[id|style|width|height|classid|codebase|*],param[name|value],embed[id|style|width|height|type|src|*],video[*],audio[*],source[*]"),e.parser.addNodeFilter("object,embed,video,audio,script,iframe",function(e){for(var t=e.length;t--;)u.objectToImg(e[t])}),e.serializer.addNodeFilter("img",function(e,t,i){for(var n,r=e.length;r--;)n=e[r],-1!==(n.attr("class")||"").indexOf("mceItemMedia")&&u.imgToObject(n,i)})}),e.onInit.add(function(){e.theme&&e.theme.onResolveName&&e.theme.onResolveName.add(function(t,i){"img"===i.name&&e.dom.hasClass(i.node,"mceItemMedia")&&(i.name="media")}),e&&e.plugins.contextmenu&&e.plugins.contextmenu.onContextMenu.add(function(e,t,i){"IMG"===i.nodeName&&-1!==i.className.indexOf("mceItemMedia")&&t.add({title:"media.edit",icon:"media",cmd:"mceMedia"})})}),e.addCommand("mceMedia",function(){var i,n;n=e.selection.getNode(),s(n)&&(i=e.dom.getAttrib(n,"data-mce-json"),i&&(i=a.parse(i),tinymce.each(r,function(t){var r=e.dom.getAttrib(n,t);r&&(i[t]=r)}),i.type=u.getType(n.className).name.toLowerCase())),i||(i={type:"flash",video:{sources:[]},params:{}}),e.windowManager.open({file:t+"/media.htm",width:430+parseInt(e.getLang("media.delta_width",0)),height:500+parseInt(e.getLang("media.delta_height",0)),inline:1},{plugin_url:t,data:i})}),e.addButton("media",{title:"media.desc",cmd:"mceMedia"}),e.onNodeChange.add(function(e,t,i){t.setActive("media",s(i))})},convertUrl:function(e,t){var i=this,n=i.editor,r=n.settings,s=r.url_converter,o=r.url_converter_scope||i;return e?t?n.documentBaseURI.toAbsolute(e):s.call(o,e,"src","object"):e},getInfo:function(){return{longname:"Media",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media",version:tinymce.majorVersion+"."+tinymce.minorVersion}},dataToImg:function(i,n){var r,s,o,l,h=this,c=h.editor;if(c.documentBaseURI,i.params.src=h.convertUrl(i.params.src,n),s=i.video.attrs,s&&(s.src=h.convertUrl(s.src,n)),s&&(s.poster=h.convertUrl(s.poster,n)),r=t(i.video.sources))for(l=0;r.length>l;l++)r[l].src=h.convertUrl(r[l].src,n);return o=h.editor.dom.create("img",{id:i.id,style:i.style,align:i.align,hspace:i.hspace,vspace:i.vspace,src:h.editor.theme.url+"/img/trans.gif","class":"mceItemMedia mceItem"+h.getType(i.type).name,"data-mce-json":a.serialize(i,"'")}),o.width=i.width=e(i.width||("audio"==i.type?"300":"320")),o.height=i.height=e(i.height||("audio"==i.type?"32":"240")),o},dataToHtml:function(e,t){return this.editor.serializer.serialize(this.dataToImg(e,t),{forced_root_block:"",force_absolute:t})},htmlToData:function(e){var t,i,n;return n={type:"flash",video:{sources:[]},params:{}},t=this.editor.parser.parse(e),i=t.getAll("img")[0],i&&(n=a.parse(i.attr("data-mce-json")),n.type=this.getType(i.attr("class")).name.toLowerCase(),tinymce.each(r,function(e){var t=i.attr(e);t&&(n[e]=t)})),n},getType:function(e){var t,i,n;for(i=tinymce.explode(e," "),t=0;i.length>t;t++)if(n=this.lookup[i[t]])return n},imgToObject:function(i,n){function s(e,t){var i,n,r,s,o;o=E.getParam("flash_video_player_url",S.convertUrl(S.url+"/moxieplayer.swf")),o&&(i=E.documentBaseURI,p.params.src=o,E.getParam("flash_video_player_absvideourl",!0)&&(e=i.toAbsolute(e||"",!0),t=i.toAbsolute(t||"",!0)),r="",n=E.getParam("flash_video_player_flashvars",{url:"$url",poster:"$poster"}),tinymce.each(n,function(i,n){i=i.replace(/\$url/,e||""),i=i.replace(/\$poster/,t||""),i.length>0&&(r+=(r?"&":"")+n+"="+escape(i))}),r.length&&(p.params.flashvars=r),s=E.getParam("flash_video_player_params",{allowfullscreen:!0,allowscriptaccess:!0}),tinymce.each(s,function(e,t){p.params[t]=""+e}))}var l,h,c,u,d,p,f,m,g,y,v,b,x,L,w,C,S=this,E=S.editor;if(p=i.attr("data-mce-json")){if(p=a.parse(p),y=this.getType(i.attr("class")),w=i.attr("data-mce-style"),w||(w=i.attr("style"),w&&(w=E.dom.serializeStyle(E.dom.parseStyle(w,"img")))),p.width=i.attr("width")||p.width,p.height=i.attr("height")||p.height,"Iframe"===y.name){x=new o("iframe",1),tinymce.each(r,function(e){var t=i.attr(e);"class"==e&&t&&(t=t.replace(/mceItem.+ ?/g,"")),t&&t.length>0&&x.attr(e,t)});for(u in p.params)x.attr(u,p.params[u]);return x.attr({style:w,src:p.params.src}),i.replace(x),void 0}if(this.editor.settings.media_use_script)return x=new o("script",1).attr("type","text/javascript"),d=new o("#text",3),d.value="write"+y.name+"("+a.serialize(tinymce.extend(p.params,{width:i.attr("width"),height:i.attr("height")}))+");",x.append(d),i.replace(x),void 0;if("Video"===y.name&&p.video.sources[0]){for(l=new o("video",1).attr(tinymce.extend({id:i.attr("id"),width:e(i.attr("width")),height:e(i.attr("height")),style:w},p.video.attrs)),p.video.attrs&&(L=p.video.attrs.poster),m=p.video.sources=t(p.video.sources),v=0;m.length>v;v++)/\.mp4$/.test(m[v].src)&&(b=m[v].src);for(m[0].type||(l.attr("src",m[0].src),m.splice(0,1)),v=0;m.length>v;v++)f=new o("source",1).attr(m[v]),f.shortEnded=!0,l.append(f);b?(s(b,L),y=S.getType("flash")):p.params.src=""}if("Audio"===y.name&&p.video.sources[0]){for(C=new o("audio",1).attr(tinymce.extend({id:i.attr("id"),width:e(i.attr("width")),height:e(i.attr("height")),style:w},p.video.attrs)),p.video.attrs&&(L=p.video.attrs.poster),m=p.video.sources=t(p.video.sources),m[0].type||(C.attr("src",m[0].src),m.splice(0,1)),v=0;m.length>v;v++)f=new o("source",1).attr(m[v]),f.shortEnded=!0,C.append(f);p.params.src=""}if("EmbeddedAudio"===y.name){c=new o("embed",1),c.shortEnded=!0,c.attr({id:i.attr("id"),width:e(i.attr("width")),height:e(i.attr("height")),style:w,type:i.attr("type")});for(u in p.params)c.attr(u,p.params[u]);tinymce.each(r,function(e){p[e]&&"type"!=e&&c.attr(e,p[e])}),p.params.src=""}if(p.params.src){/\.flv$/i.test(p.params.src)&&s(p.params.src,""),n&&n.force_absolute&&(p.params.src=E.documentBaseURI.toAbsolute(p.params.src)),h=new o("object",1).attr({id:i.attr("id"),width:e(i.attr("width")),height:e(i.attr("height")),style:w}),tinymce.each(r,function(e){var t=p[e];"class"==e&&t&&(t=t.replace(/mceItem.+ ?/g,"")),t&&"type"!=e&&h.attr(e,t)});for(u in p.params)g=new o("param",1),g.shortEnded=!0,d=p.params[u],"src"===u&&"WindowsMedia"===y.name&&(u="url"),g.attr({name:u,value:d}),h.append(g);if(this.editor.getParam("media_strict",!0))h.attr({data:p.params.src,type:y.mimes[0]});else{h.attr({classid:"clsid:"+y.clsids[0],codebase:y.codebase}),c=new o("embed",1),c.shortEnded=!0,c.attr({id:i.attr("id"),width:e(i.attr("width")),height:e(i.attr("height")),style:w,type:y.mimes[0]});for(u in p.params)c.attr(u,p.params[u]);tinymce.each(r,function(e){p[e]&&"type"!=e&&c.attr(e,p[e])}),h.append(c)}p.object_html&&(d=new o("#text",3),d.raw=!0,d.value=p.object_html,h.append(d)),l&&l.append(h)}l&&p.video_html&&(d=new o("#text",3),d.raw=!0,d.value=p.video_html,l.append(d)),C&&p.video_html&&(d=new o("#text",3),d.raw=!0,d.value=p.video_html,C.append(d));var _=l||C||h||c;_?i.replace(_):i.remove()}},objectToImg:function(t){function i(e){return new tinymce.html.Serializer({inner:!0,validate:!1}).serialize(e)}function l(e,t){return R[(e.attr(t)||"").toLowerCase()]}function h(e){var t=e.replace(/^.*\.([^.]+)$/,"$1");return R[t.toLowerCase()||""]}var c,u,d,p,f,m,g,y,v,b,x,L,w,C,S,E,_,O,T,k,P,A,M,N,R=this.lookup,D=this.editor.settings.url_converter,I=this.editor.settings.url_converter_scope;if(t.parent){if("script"===t.name){if(t.firstChild&&(T=n.exec(t.firstChild.value)),!T)return;O=T[1],_={video:{},params:a.parse(T[2])},y=_.params.width,v=_.params.height}if(_=_||{video:{},params:{}},f=new o("img",1),f.attr({src:this.editor.theme.url+"/img/trans.gif"}),m=t.name,"video"===m||"audio"==m){d=t,c=t.getAll("object")[0],u=t.getAll("embed")[0],y=d.attr("width"),v=d.attr("height"),g=d.attr("id"),_.video={attrs:{},sources:[]},k=_.video.attrs;for(m in d.attributes.map)k[m]=d.attributes.map[m];for(S=t.attr("src"),S&&_.video.sources.push({src:D.call(I,S,"src",t.name)}),E=d.getAll("source"),x=0;E.length>x;x++)S=E[x].remove(),_.video.sources.push({src:D.call(I,S.attr("src"),"src","source"),type:S.attr("type"),media:S.attr("media")});k.poster&&(k.poster=D.call(I,k.poster,"poster",t.name))}if("object"===t.name&&(c=t,u=t.getAll("embed")[0]),"embed"===t.name&&(u=t),"iframe"===t.name&&(p=t,O="Iframe"),c){for(y=y||c.attr("width"),v=v||c.attr("height"),b=b||c.attr("style"),g=g||c.attr("id"),P=P||c.attr("hspace"),A=A||c.attr("vspace"),M=M||c.attr("align"),N=N||c.attr("bgcolor"),_.name=c.attr("name"),C=c.getAll("param"),x=0;C.length>x;x++)w=C[x],m=w.remove().attr("name"),s[m]||(_.params[m]=w.attr("value"));_.params.src=_.params.src||c.attr("data")}if(u){y=y||u.attr("width"),v=v||u.attr("height"),b=b||u.attr("style"),g=g||u.attr("id"),P=P||u.attr("hspace"),A=A||u.attr("vspace"),M=M||u.attr("align"),N=N||u.attr("bgcolor");for(m in u.attributes.map)s[m]||_.params[m]||(_.params[m]=u.attributes.map[m])}if(p){y=e(p.attr("width")),v=e(p.attr("height")),b=b||p.attr("style"),g=p.attr("id"),P=p.attr("hspace"),A=p.attr("vspace"),M=p.attr("align"),N=p.attr("bgcolor"),tinymce.each(r,function(e){f.attr(e,p.attr(e))});for(m in p.attributes.map)s[m]||_.params[m]||(_.params[m]=p.attributes.map[m])}_.params.movie&&(_.params.src=_.params.src||_.params.movie,delete _.params.movie),_.params.src&&(_.params.src=D.call(I,_.params.src,"src","object")),d&&("video"===t.name?O=R.video.name:"audio"===t.name&&(O=R.audio.name)),c&&!O&&(O=(l(c,"clsid")||l(c,"classid")||l(c,"type")||{}).name),u&&!O&&(O=(l(u,"type")||h(_.params.src)||{}).name),u&&"EmbeddedAudio"==O&&(_.params.type=u.attr("type")),t.replace(f),u&&u.remove(),c&&(L=i(c.remove()),L&&(_.object_html=L)),d&&(L=i(d.remove()),L&&(_.video_html=L)),_.hspace=P,_.vspace=A,_.align=M,_.bgcolor=N,f.attr({id:g,"class":"mceItemMedia mceItem"+(O||"Flash"),style:b,width:y||("audio"==t.name?"300":"320"),height:v||("audio"==t.name?"32":"240"),hspace:P,vspace:A,align:M,bgcolor:N,"data-mce-json":a.serialize(_,"'")})}}}),tinymce.PluginManager.add("media",tinymce.plugins.MediaPlugin)})();
Sneezry/cdnjs
ajax/libs/tinymce/3.5.8/plugins/media/editor_plugin_src.min.js
JavaScript
mit
12,371
(function(){var e=tinymce.DOM,t=tinymce.dom.Element,i=tinymce.dom.Event,n=tinymce.each,r=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(t,i){t.onBeforeRenderUI.add(function(){t.windowManager=new tinymce.InlineWindowManager(t),e.loadCSS(i+"/skins/"+(t.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}}),tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(e){var t=this;t.parent(e),t.zIndex=3e5,t.count=0,t.windows={}},open:function(n,r){var s,o,a,l,h,c,u,d=this,p="",f=d.editor,m=0,g=0;return n=n||{},r=r||{},n.inline?(u=d._frontWindow(),u&&e.get(u.id+"_ifr")&&(u.focussedElement=e.get(u.id+"_ifr").contentWindow.document.activeElement),n.type||(d.bookmark=f.selection.getBookmark(1)),s=e.uniqueId(),o=e.getViewPort(),n.width=parseInt(n.width||320),n.height=parseInt(n.height||240)+(tinymce.isIE?8:0),n.min_width=parseInt(n.min_width||150),n.min_height=parseInt(n.min_height||100),n.max_width=parseInt(n.max_width||2e3),n.max_height=parseInt(n.max_height||2e3),n.left=n.left||Math.round(Math.max(o.x,o.x+o.w/2-n.width/2)),n.top=n.top||Math.round(Math.max(o.y,o.y+o.h/2-n.height/2)),n.movable=n.resizable=!0,r.mce_width=n.width,r.mce_height=n.height,r.mce_inline=!0,r.mce_window_id=s,r.mce_auto_focus=n.auto_focus,d.features=n,d.params=r,d.onOpen.dispatch(d,n,r),n.type&&(p+=" mceModal",n.type&&(p+=" mce"+n.type.substring(0,1).toUpperCase()+n.type.substring(1)),n.resizable=!1),n.statusbar&&(p+=" mceStatusbar"),n.resizable&&(p+=" mceResizable"),n.minimizable&&(p+=" mceMinimizable"),n.maximizable&&(p+=" mceMaximizable"),n.movable&&(p+=" mceMovable"),d._addAll(e.doc.body,["div",{id:s,role:"dialog","aria-labelledby":n.type?s+"_content":s+"_title","class":(f.settings.inlinepopups_skin||"clearlooks2")+(tinymce.isIE&&window.getSelection?" ie9":""),style:"width:100px;height:100px"},["div",{id:s+"_wrapper","class":"mceWrapper"+p},["div",{id:s+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:s+"_title"},n.title||""]],["div",{id:s+"_middle","class":"mceMiddle"},["div",{id:s+"_left","class":"mceLeft",tabindex:"0"}],["span",{id:s+"_content"}],["div",{id:s+"_right","class":"mceRight",tabindex:"0"}]],["div",{id:s+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:s+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:s+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:s+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:s+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:s+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:s+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:s+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:s+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:s+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]),e.setStyles(s,{top:-1e4,left:-1e4}),tinymce.isGecko&&e.setStyle(s,"overflow","auto"),n.type||(m+=e.get(s+"_left").clientWidth,m+=e.get(s+"_right").clientWidth,g+=e.get(s+"_top").clientHeight,g+=e.get(s+"_bottom").clientHeight),e.setStyles(s,{top:n.top,left:n.left,width:n.width+m,height:n.height+g}),c=n.url||n.file,c&&(tinymce.relaxedDomain&&(c+=(-1==c.indexOf("?")?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain),c=tinymce._addVer(c)),n.type?(e.add(s+"_wrapper","a",{id:s+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok"),"confirm"==n.type&&e.add(s+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel"),e.add(s+"_middle","div",{"class":"mceIcon"}),e.setHTML(s+"_content",n.content.replace("\n","<br />")),i.add(s,"keyup",function(e){var t=27;return e.keyCode===t?(n.button_func(!1),i.cancel(e)):void 0}),i.add(s,"keydown",function(t){var n,r=9;return t.keyCode===r?(n=e.select("a.mceCancel",s+"_wrapper")[0],n&&n!==t.target?n.focus():e.get(s+"_ok").focus(),i.cancel(t)):void 0})):(e.add(s+"_content","iframe",{id:s+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"}),e.setStyles(s+"_ifr",{width:n.width,height:n.height}),e.setAttrib(s+"_ifr","src",c)),a=i.add(s,"mousedown",function(t){var n,r,o=t.target;if(n=d.windows[s],d.focus(s),"A"==o.nodeName||"a"==o.nodeName){if("mceClose"==o.className)return d.close(null,s),i.cancel(t);if("mceMax"==o.className)n.oldPos=n.element.getXY(),n.oldSize=n.element.getSize(),r=e.getViewPort(),r.w-=2,r.h-=2,n.element.moveTo(r.x,r.y),n.element.resizeTo(r.w,r.h),e.setStyles(s+"_ifr",{width:r.w-n.deltaWidth,height:r.h-n.deltaHeight}),e.addClass(s+"_wrapper","mceMaximized");else if("mceMed"==o.className)n.element.moveTo(n.oldPos.x,n.oldPos.y),n.element.resizeTo(n.oldSize.w,n.oldSize.h),n.iframeElement.resizeTo(n.oldSize.w-n.deltaWidth,n.oldSize.h-n.deltaHeight),e.removeClass(s+"_wrapper","mceMaximized");else{if("mceMove"==o.className)return d._startDrag(s,t,o.className);if(e.hasClass(o,"mceResize"))return d._startDrag(s,t,o.className.substring(13))}}}),l=i.add(s,"click",function(e){var t=e.target;if(d.focus(s),"A"==t.nodeName||"a"==t.nodeName)switch(t.className){case"mceClose":return d.close(null,s),i.cancel(e);case"mceButton mceOk":case"mceButton mceCancel":return n.button_func("mceButton mceOk"==t.className),i.cancel(e)}}),i.add([s+"_left",s+"_right"],"focus",function(t){var i=e.get(s+"_ifr");if(i){var n=i.contentWindow.document.body,r=e.select(":input:enabled,*[tabindex=0]",n);t.target.id===s+"_left"?r[r.length-1].focus():r[0].focus()}else e.get(s+"_ok").focus()}),h=d.windows[s]={id:s,mousedown_func:a,click_func:l,element:new t(s,{blocker:1,container:f.getContainer()}),iframeElement:new t(s+"_ifr"),features:n,deltaWidth:m,deltaHeight:g},h.iframeElement.on("focus",function(){d.focus(s)}),0==d.count&&"modal"==d.editor.getParam("dialog_type","modal")?(e.add(e.doc.body,"div",{id:"mceModalBlocker","class":(d.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:d.zIndex-1}}),e.show("mceModalBlocker"),e.setAttrib(e.doc.body,"aria-hidden","true")):e.setStyle("mceModalBlocker","z-index",d.zIndex-1),(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||tinymce.isIE&&!e.boxModel)&&e.setStyles("mceModalBlocker",{position:"absolute",left:o.x,top:o.y,width:o.w-2,height:o.h-2}),e.setAttrib(s,"aria-hidden","false"),d.focus(s),d._fixIELayout(s,1),e.get(s+"_ok")&&e.get(s+"_ok").focus(),d.count++,h):d.parent(n,r)},focus:function(t){var i,n=this;(i=n.windows[t])&&(i.zIndex=this.zIndex++,i.element.setStyle("zIndex",i.zIndex),i.element.update(),t+="_wrapper",e.removeClass(n.lastId,"mceFocus"),e.addClass(t,"mceFocus"),n.lastId=t,i.focussedElement?i.focussedElement.focus():e.get(t+"_ok")?e.get(i.id+"_ok").focus():e.get(i.id+"_ifr")&&e.get(i.id+"_ifr").focus())},_addAll:function(e,t){var i,n=this,s=tinymce.DOM;if(r(t,"string"))e.appendChild(s.doc.createTextNode(t));else if(t.length)for(e=e.appendChild(s.create(t[0],t[1])),i=2;t.length>i;i++)n._addAll(e,t[i])},_startDrag:function(n,r,s){function o(){h||(C._fixIELayout(n,0),e.add(S.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(C.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:C.zIndex+1}}),(tinymce.isIE6||tinymce.isIE&&!e.boxModel)&&e.setStyles("mceEventBlocker",{position:"absolute",left:f.x,top:f.y,width:f.w-2,height:f.h-2}),h=new t("mceEventBlocker"),h.update(),c=O.getXY(),u=O.getSize(),m=p.x+c.x-f.x,g=p.y+c.y-f.y,e.add(h.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:m,top:g,width:u.w,height:u.h}}),d=new t("mcePlaceHolder"))}var a,l,h,c,u,d,p,f,m,g,y,v,b,x,L,w,C=this,S=e.doc,E=C.windows[n],O=E.element;return O.getXY(),p={x:0,y:0},f=e.getViewPort(),f.w-=2,f.h-=2,y=r.screenX,v=r.screenY,b=x=L=w=0,a=i.add(S,"mouseup",function(t){return i.remove(S,"mouseup",a),i.remove(S,"mousemove",l),h&&h.remove(),O.moveBy(b,x),O.resizeBy(L,w),u=O.getSize(),e.setStyles(n+"_ifr",{width:u.w-E.deltaWidth,height:u.h-E.deltaHeight}),C._fixIELayout(n,1),i.cancel(t)}),"Move"!=s&&o(),l=i.add(S,"mousemove",function(e){var t,n,r;switch(o(),t=e.screenX-y,n=e.screenY-v,s){case"ResizeW":b=t,L=0-t;break;case"ResizeE":L=t;break;case"ResizeN":case"ResizeNW":case"ResizeNE":"ResizeNW"==s?(b=t,L=0-t):"ResizeNE"==s&&(L=t),x=n,w=0-n;break;case"ResizeS":case"ResizeSW":case"ResizeSE":"ResizeSW"==s?(b=t,L=0-t):"ResizeSE"==s&&(L=t),w=n;break;case"mceMove":b=t,x=n}return(r=E.features.min_width-u.w)>L&&(0!==b&&(b+=L-r),L=r),(r=E.features.min_height-u.h)>w&&(0!==x&&(x+=w-r),w=r),L=Math.min(L,E.features.max_width-u.w),w=Math.min(w,E.features.max_height-u.h),b=Math.max(b,f.x-(m+f.x)),x=Math.max(x,f.y-(g+f.y)),b=Math.min(b,f.w+f.x-(m+u.w+f.x)),x=Math.min(x,f.h+f.y-(g+u.h+f.y)),0!==b+x&&(0>m+b&&(b=0),0>g+x&&(x=0),d.moveTo(m+b,g+x)),0!==L+w&&d.resizeTo(u.w+L,u.h+w),i.cancel(e)}),i.cancel(r)},resizeBy:function(e,t,i){var n=this.windows[i];n&&(n.element.resizeBy(e,t),n.iframeElement.resizeBy(e,t))},close:function(t,n){var r,s,n,o=this,a=e.doc;return n=o._findId(n||t),o.windows[n]?(o.count--,0==o.count&&(e.remove("mceModalBlocker"),e.setAttrib(e.doc.body,"aria-hidden","false"),o.editor.focus()),(r=o.windows[n])&&(o.onClose.dispatch(o),i.remove(a,"mousedown",r.mousedownFunc),i.remove(a,"click",r.clickFunc),i.clear(n),i.clear(n+"_ifr"),e.setAttrib(n+"_ifr","src",'javascript:""'),r.element.remove(),delete o.windows[n],s=o._frontWindow(),s&&o.focus(s.id)),void 0):(o.parent(t),void 0)},_frontWindow:function(){var e,t=0;return n(this.windows,function(i){i.zIndex>t&&(e=i,t=i.zIndex)}),e},setTitle:function(t,i){var n;t=this._findId(t),(n=e.get(t+"_title"))&&(n.innerHTML=e.encode(i))},alert:function(t,i){var n,r=this;n=r.open({title:r,type:"alert",button_func:function(e){i&&i.call(e||r,e),r.close(null,n.id)},content:e.encode(r.editor.getLang(t,t)),inline:1,width:400,height:130})},confirm:function(t,i){var n,r=this;n=r.open({title:r,type:"confirm",button_func:function(e){i&&i.call(e||r,e),r.close(null,n.id)},content:e.encode(r.editor.getLang(t,t)),inline:1,width:400,height:130})},_findId:function(t){var i=this;return"string"==typeof t?t:(n(i.windows,function(i){var n=e.get(i.id+"_ifr");return n&&t==n.contentWindow?(t=i.id,!1):void 0}),t)},_fixIELayout:function(t,i){var r,s;tinymce.isIE6&&(n(["n","s","w","e","nw","ne","sw","se"],function(n){var r=e.get(t+"_resize_"+n);e.setStyles(r,{width:i?r.clientWidth:"",height:i?r.clientHeight:"",cursor:e.getStyle(r,"cursor",1)}),e.setStyle(t+"_bottom","bottom","-1px"),r=0}),(r=this.windows[t])&&(r.element.hide(),r.element.show(),n(e.select("div,a",t),function(e){"none"!=e.currentStyle.backgroundImage&&(s=new Image,s.src=e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1"))}),e.get(t).style.filter=""))}}),tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();
spalger/cdnjs
ajax/libs/tinymce/3.5.8/plugins/inlinepopups/editor_plugin_src.min.js
JavaScript
mit
11,668
"use strict";angular.module("ngLocale",[],["$provide",function(a){var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function c(f){f=f+"";var e=f.indexOf(".");return(e==-1)?0:f.length-e-1}function b(j,e){var g=e;if(undefined===g){g=Math.min(c(j),3)}var i=Math.pow(10,g);var h=((j*i)|0)%i;return{v:g,f:h}}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u0f66\u0f94\u0f0b\u0f51\u0fb2\u0f7c\u0f0b","\u0f55\u0fb1\u0f72\u0f0b\u0f51\u0fb2\u0f7c\u0f0b"],DAY:["\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b","\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b","\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b","\u0f42\u0f5f\u0f60\u0f0b\u0f67\u0fb3\u0f42\u0f0b\u0f54\u0f0b","\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74\u0f0b","\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0f44\u0f66\u0f0b","\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b"],MONTH:["\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f66\u0f74\u0f58\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54\u0f0b"],SHORTDAY:["\u0f49\u0f72\u0f0b\u0f58\u0f0b","\u0f5f\u0fb3\u0f0b\u0f56\u0f0b","\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b","\u0f67\u0fb3\u0f42\u0f0b\u0f54\u0f0b","\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74\u0f0b","\u0f66\u0f44\u0f66\u0f0b","\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b"],SHORTMONTH:["\u0f5f\u0fb3\u0f0b\u0f21","\u0f5f\u0fb3\u0f0b\u0f22","\u0f5f\u0fb3\u0f0b\u0f23","\u0f5f\u0fb3\u0f0b\u0f24","\u0f5f\u0fb3\u0f0b\u0f25","\u0f5f\u0fb3\u0f0b\u0f26","\u0f5f\u0fb3\u0f0b\u0f27","\u0f5f\u0fb3\u0f0b\u0f28","\u0f5f\u0fb3\u0f0b\u0f29","\u0f5f\u0fb3\u0f0b\u0f21\u0f20","\u0f5f\u0fb3\u0f0b\u0f21\u0f21","\u0f5f\u0fb3\u0f0b\u0f21\u0f22"],fullDate:"y MMMM d, EEEE",longDate:"\u0f66\u0fa6\u0fb1\u0f72\u0f0b\u0f63\u0f7c\u0f0by MMMM\u0f60\u0f72\u0f0b\u0f59\u0f7a\u0f66\u0f0bd\u0f51",medium:"y \u0f63\u0f7c\u0f0b\u0f60\u0f72\u0f0bMMM\u0f59\u0f7a\u0f66\u0f0bd HH:mm:ss",mediumDate:"y \u0f63\u0f7c\u0f0b\u0f60\u0f72\u0f0bMMM\u0f59\u0f7a\u0f66\u0f0bd",mediumTime:"HH:mm:ss","short":"y-MM-dd HH:mm",shortDate:"y-MM-dd",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u00a5",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4\u00a0-",negSuf:"",posPre:"\u00a4\u00a0",posSuf:""}]},id:"bo-cn",pluralCat:function(h,f){var g=h|0;var e=b(h,f);if(g==1&&e.v==0){return d.ONE}return d.OTHER}})}]);
emijrp/cdnjs
ajax/libs/angular-i18n/1.2.26/angular-locale_bo-cn.min.js
JavaScript
mit
3,258
"use strict";angular.module("ngLocale",[],["$provide",function(a){var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function c(f){f=f+"";var e=f.indexOf(".");return(e==-1)?0:f.length-e-1}function b(j,e){var g=e;if(undefined===g){g=Math.min(c(j),3)}var i=Math.pow(10,g);var h=((j*i)|0)%i;return{v:g,f:h}}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["pre podne","popodne"],DAY:["nedelja","ponedeljak","utorak","sreda","\u010detvrtak","petak","subota"],MONTH:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],SHORTDAY:["ned","pon","uto","sre","\u010det","pet","sub"],SHORTMONTH:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],fullDate:"EEEE, dd. MMMM y.",longDate:"dd. MMMM y.",medium:"dd.MM.y. HH.mm.ss",mediumDate:"dd.MM.y.",mediumTime:"HH.mm.ss","short":"d.M.yy. HH.mm",shortDate:"d.M.yy.",shortTime:"HH.mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"sr-latn-xk",pluralCat:function(h,f){var g=h|0;var e=b(h,f);if(e.v==0&&g%10==1&&g%100!=11||e.f%10==1&&e.f%100!=11){return d.ONE}if(e.v==0&&g%10>=2&&g%10<=4&&(g%100<12||g%100>14)||e.f%10>=2&&e.f%10<=4&&(e.f%100<12||e.f%100>14)){return d.FEW}return d.OTHER}})}]);
mscharl/cdnjs
ajax/libs/angular-i18n/1.2.25/angular-locale_sr-latn-xk.min.js
JavaScript
mit
1,463
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u064f\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"],MONTH:["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],SHORTDAY:["\u0a10\u0a24.","\u0a38\u0a4b\u0a2e.","\u0a2e\u0a70\u0a17\u0a32.","\u0a2c\u0a41\u0a27.","\u0a35\u0a40\u0a30.","\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30.","\u0a38\u0a3c\u0a28\u0a40."],SHORTMONTH:["\u0a1c\u0a28\u0a35\u0a30\u0a40","\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40","\u0a2e\u0a3e\u0a30\u0a1a","\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32","\u0a2e\u0a08","\u0a1c\u0a42\u0a28","\u0a1c\u0a41\u0a32\u0a3e\u0a08","\u0a05\u0a17\u0a38\u0a24","\u0a38\u0a24\u0a70\u0a2c\u0a30","\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30","\u0a28\u0a35\u0a70\u0a2c\u0a30","\u0a26\u0a38\u0a70\u0a2c\u0a30"],fullDate:"EEEE, dd MMMM y",longDate:"d MMMM y",medium:"d MMM y h:mm:ss a",mediumDate:"d MMM y",mediumTime:"h:mm:ss a","short":"dd/MM/y h:mm a",shortDate:"dd/MM/y",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"Rs",DECIMAL_SEP:"\u066b",GROUP_SEP:",",PATTERNS:[{gSize:2,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:2,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4-",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"pa-arab",pluralCat:function(d,c){if(d>=0&&d<=1){return b.ONE}return b.OTHER}})}]);
calvinf/cdnjs
ajax/libs/angular-i18n/1.2.28/angular-locale_pa-arab.min.js
JavaScript
mit
1,892
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = function(src, name, line){ var coverage = _yuitest_coverage[src], funcId = name + ":" + line; if (!coverage.functions[funcId]){ coverage.calledFunctions++; } coverage.functions[funcId]++; }; } _yuitest_coverage["build/json-parse/json-parse.js"] = { lines: {}, functions: {}, coveredLines: 0, calledLines: 0, coveredFunctions: 0, calledFunctions: 0, path: "build/json-parse/json-parse.js", code: [] }; _yuitest_coverage["build/json-parse/json-parse.js"].code=["YUI.add('json-parse', function (Y, NAME) {","","/**"," * <p>The JSON module adds support for serializing JavaScript objects into"," * JSON strings and parsing JavaScript objects from strings in JSON format.</p>"," *"," * <p>The JSON namespace is added to your YUI instance including static methods"," * Y.JSON.parse(..) and Y.JSON.stringify(..).</p>"," *"," * <p>The functionality and method signatures follow the ECMAScript 5"," * specification. In browsers with native JSON support, the native"," * implementation is used.</p>"," *"," * <p>The <code>json</code> module is a rollup of <code>json-parse</code> and"," * <code>json-stringify</code>.</p>"," *"," * <p>As their names suggest, <code>json-parse</code> adds support for parsing"," * JSON data (Y.JSON.parse) and <code>json-stringify</code> for serializing"," * JavaScript data into JSON strings (Y.JSON.stringify). You may choose to"," * include either of the submodules individually if you don't need the"," * complementary functionality, or include the rollup for both.</p>"," *"," * @module json"," * @main json"," * @class JSON"," * @static"," */","","/**"," * Provides Y.JSON.parse method to accept JSON strings and return native"," * JavaScript objects."," *"," * @module json"," * @submodule json-parse"," * @for JSON"," * @static"," */","","","// All internals kept private for security reasons","function fromGlobal(ref) {"," var g = ((typeof global === 'object') ? global : undefined);"," return ((Y.UA.nodejs && g) ? g : (Y.config.win || {}))[ref];","}","",""," /**"," * Alias to native browser implementation of the JSON object if available."," *"," * @property Native"," * @type {Object}"," * @private"," */","var _JSON = fromGlobal('JSON'),",""," Native = (Object.prototype.toString.call(_JSON) === '[object JSON]' && _JSON),"," useNative = !!Native,",""," /**"," * Replace certain Unicode characters that JavaScript may handle incorrectly"," * during eval--either by deleting them or treating them as line"," * endings--with escape sequences."," * IMPORTANT NOTE: This regex will be used to modify the input if a match is"," * found."," *"," * @property _UNICODE_EXCEPTIONS"," * @type {RegExp}"," * @private"," */"," _UNICODE_EXCEPTIONS = /[\\u0000\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,","",""," /**"," * First step in the safety evaluation. Regex used to replace all escape"," * sequences (i.e. \"\\\\\", etc) with '@' characters (a non-JSON character)."," *"," * @property _ESCAPES"," * @type {RegExp}"," * @private"," */"," _ESCAPES = /\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,",""," /**"," * Second step in the safety evaluation. Regex used to replace all simple"," * values with ']' characters."," *"," * @property _VALUES"," * @type {RegExp}"," * @private"," */"," _VALUES = /\"[^\"\\\\\\n\\r]*\"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,",""," /**"," * Third step in the safety evaluation. Regex used to remove all open"," * square brackets following a colon, comma, or at the beginning of the"," * string."," *"," * @property _BRACKETS"," * @type {RegExp}"," * @private"," */"," _BRACKETS = /(?:^|:|,)(?:\\s*\\[)+/g,",""," /**"," * Final step in the safety evaluation. Regex used to test the string left"," * after all previous replacements for invalid characters."," *"," * @property _UNSAFE"," * @type {RegExp}"," * @private"," */"," _UNSAFE = /[^\\],:{}\\s]/,",""," /**"," * Replaces specific unicode characters with their appropriate \\unnnn"," * format. Some browsers ignore certain characters during eval."," *"," * @method escapeException"," * @param c {String} Unicode character"," * @return {String} the \\unnnn escapement of the character"," * @private"," */"," _escapeException = function (c) {"," return '\\\\u'+('0000'+(+(c.charCodeAt(0))).toString(16)).slice(-4);"," },",""," /**"," * Traverses nested objects, applying a reviver function to each (key,value)"," * from the scope if the key:value's containing object. The value returned"," * from the function will replace the original value in the key:value pair."," * If the value returned is undefined, the key will be omitted from the"," * returned object."," *"," * @method _revive"," * @param data {MIXED} Any JavaScript data"," * @param reviver {Function} filter or mutation function"," * @return {MIXED} The results of the filtered data"," * @private"," */"," _revive = function (data, reviver) {"," var walk = function (o,key) {"," var k,v,value = o[key];"," if (value && typeof value === 'object') {"," for (k in value) {"," if (value.hasOwnProperty(k)) {"," v = walk(value, k);"," if (v === undefined) {"," delete value[k];"," } else {"," value[k] = v;"," }"," }"," }"," }"," return reviver.call(o,key,value);"," };",""," return typeof reviver === 'function' ? walk({'':data},'') : data;"," },",""," /**"," * Parse a JSON string, returning the native JavaScript representation."," *"," * @param s {string} JSON string data"," * @param reviver {function} (optional) function(k,v) passed each key value"," * pair of object literals, allowing pruning or altering values"," * @return {MIXED} the native JavaScript representation of the JSON string"," * @throws SyntaxError"," * @method parse"," * @static"," */"," // JavaScript implementation in lieu of native browser support. Based on"," // the json2.js library from http://json.org"," _parse = function (s,reviver) {"," // Replace certain Unicode characters that are otherwise handled"," // incorrectly by some browser implementations."," // NOTE: This modifies the input if such characters are found!"," s = s.replace(_UNICODE_EXCEPTIONS, _escapeException);",""," // Test for any remaining invalid characters"," if (!_UNSAFE.test(s.replace(_ESCAPES,'@')."," replace(_VALUES,']')."," replace(_BRACKETS,''))) {",""," // Eval the text into a JavaScript data structure, apply any"," // reviver function, and return"," return _revive( eval('(' + s + ')'), reviver );"," }",""," throw new SyntaxError('JSON.parse');"," };","","Y.namespace('JSON').parse = function (s,reviver) {"," if (typeof s !== 'string') {"," s += '';"," }",""," return Native && Y.JSON.useNativeParse ?"," Native.parse(s,reviver) : _parse(s,reviver);","};","","function workingNative( k, v ) {"," return k === \"ok\" ? true : v;","}","","// Double check basic functionality. This is mainly to catch early broken","// implementations of the JSON API in Firefox 3.1 beta1 and beta2","if ( Native ) {"," try {"," useNative = ( Native.parse( '{\"ok\":false}', workingNative ) ).ok;"," }"," catch ( e ) {"," useNative = false;"," }","}","","/**"," * Leverage native JSON parse if the browser has a native implementation."," * In general, this is a good idea. See the Known Issues section in the"," * JSON user guide for caveats. The default value is true for browsers with"," * native JSON support."," *"," * @property useNativeParse"," * @type Boolean"," * @default true"," * @static"," */","Y.JSON.useNativeParse = useNative;","","","}, '@VERSION@', {\"requires\": [\"yui-base\"]});"]; _yuitest_coverage["build/json-parse/json-parse.js"].lines = {"1":0,"41":0,"42":0,"43":0,"54":0,"124":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"150":0,"155":0,"158":0,"178":0,"181":0,"187":0,"190":0,"193":0,"194":0,"195":0,"198":0,"202":0,"203":0,"208":0,"209":0,"210":0,"213":0,"228":0}; _yuitest_coverage["build/json-parse/json-parse.js"].functions = {"fromGlobal:41":0,"_escapeException:123":0,"walk:141":0,"_revive:140":0,"_parse:174":0,"parse:193":0,"workingNative:202":0,"(anonymous 1):1":0}; _yuitest_coverage["build/json-parse/json-parse.js"].coveredLines = 32; _yuitest_coverage["build/json-parse/json-parse.js"].coveredFunctions = 8; _yuitest_coverline("build/json-parse/json-parse.js", 1); YUI.add('json-parse', function (Y, NAME) { /** * <p>The JSON module adds support for serializing JavaScript objects into * JSON strings and parsing JavaScript objects from strings in JSON format.</p> * * <p>The JSON namespace is added to your YUI instance including static methods * Y.JSON.parse(..) and Y.JSON.stringify(..).</p> * * <p>The functionality and method signatures follow the ECMAScript 5 * specification. In browsers with native JSON support, the native * implementation is used.</p> * * <p>The <code>json</code> module is a rollup of <code>json-parse</code> and * <code>json-stringify</code>.</p> * * <p>As their names suggest, <code>json-parse</code> adds support for parsing * JSON data (Y.JSON.parse) and <code>json-stringify</code> for serializing * JavaScript data into JSON strings (Y.JSON.stringify). You may choose to * include either of the submodules individually if you don't need the * complementary functionality, or include the rollup for both.</p> * * @module json * @main json * @class JSON * @static */ /** * Provides Y.JSON.parse method to accept JSON strings and return native * JavaScript objects. * * @module json * @submodule json-parse * @for JSON * @static */ // All internals kept private for security reasons _yuitest_coverfunc("build/json-parse/json-parse.js", "(anonymous 1)", 1); _yuitest_coverline("build/json-parse/json-parse.js", 41); function fromGlobal(ref) { _yuitest_coverfunc("build/json-parse/json-parse.js", "fromGlobal", 41); _yuitest_coverline("build/json-parse/json-parse.js", 42); var g = ((typeof global === 'object') ? global : undefined); _yuitest_coverline("build/json-parse/json-parse.js", 43); return ((Y.UA.nodejs && g) ? g : (Y.config.win || {}))[ref]; } /** * Alias to native browser implementation of the JSON object if available. * * @property Native * @type {Object} * @private */ _yuitest_coverline("build/json-parse/json-parse.js", 54); var _JSON = fromGlobal('JSON'), Native = (Object.prototype.toString.call(_JSON) === '[object JSON]' && _JSON), useNative = !!Native, /** * Replace certain Unicode characters that JavaScript may handle incorrectly * during eval--either by deleting them or treating them as line * endings--with escape sequences. * IMPORTANT NOTE: This regex will be used to modify the input if a match is * found. * * @property _UNICODE_EXCEPTIONS * @type {RegExp} * @private */ _UNICODE_EXCEPTIONS = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, /** * First step in the safety evaluation. Regex used to replace all escape * sequences (i.e. "\\", etc) with '@' characters (a non-JSON character). * * @property _ESCAPES * @type {RegExp} * @private */ _ESCAPES = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, /** * Second step in the safety evaluation. Regex used to replace all simple * values with ']' characters. * * @property _VALUES * @type {RegExp} * @private */ _VALUES = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, /** * Third step in the safety evaluation. Regex used to remove all open * square brackets following a colon, comma, or at the beginning of the * string. * * @property _BRACKETS * @type {RegExp} * @private */ _BRACKETS = /(?:^|:|,)(?:\s*\[)+/g, /** * Final step in the safety evaluation. Regex used to test the string left * after all previous replacements for invalid characters. * * @property _UNSAFE * @type {RegExp} * @private */ _UNSAFE = /[^\],:{}\s]/, /** * Replaces specific unicode characters with their appropriate \unnnn * format. Some browsers ignore certain characters during eval. * * @method escapeException * @param c {String} Unicode character * @return {String} the \unnnn escapement of the character * @private */ _escapeException = function (c) { _yuitest_coverfunc("build/json-parse/json-parse.js", "_escapeException", 123); _yuitest_coverline("build/json-parse/json-parse.js", 124); return '\\u'+('0000'+(+(c.charCodeAt(0))).toString(16)).slice(-4); }, /** * Traverses nested objects, applying a reviver function to each (key,value) * from the scope if the key:value's containing object. The value returned * from the function will replace the original value in the key:value pair. * If the value returned is undefined, the key will be omitted from the * returned object. * * @method _revive * @param data {MIXED} Any JavaScript data * @param reviver {Function} filter or mutation function * @return {MIXED} The results of the filtered data * @private */ _revive = function (data, reviver) { _yuitest_coverfunc("build/json-parse/json-parse.js", "_revive", 140); _yuitest_coverline("build/json-parse/json-parse.js", 141); var walk = function (o,key) { _yuitest_coverfunc("build/json-parse/json-parse.js", "walk", 141); _yuitest_coverline("build/json-parse/json-parse.js", 142); var k,v,value = o[key]; _yuitest_coverline("build/json-parse/json-parse.js", 143); if (value && typeof value === 'object') { _yuitest_coverline("build/json-parse/json-parse.js", 144); for (k in value) { _yuitest_coverline("build/json-parse/json-parse.js", 145); if (value.hasOwnProperty(k)) { _yuitest_coverline("build/json-parse/json-parse.js", 146); v = walk(value, k); _yuitest_coverline("build/json-parse/json-parse.js", 147); if (v === undefined) { _yuitest_coverline("build/json-parse/json-parse.js", 148); delete value[k]; } else { _yuitest_coverline("build/json-parse/json-parse.js", 150); value[k] = v; } } } } _yuitest_coverline("build/json-parse/json-parse.js", 155); return reviver.call(o,key,value); }; _yuitest_coverline("build/json-parse/json-parse.js", 158); return typeof reviver === 'function' ? walk({'':data},'') : data; }, /** * Parse a JSON string, returning the native JavaScript representation. * * @param s {string} JSON string data * @param reviver {function} (optional) function(k,v) passed each key value * pair of object literals, allowing pruning or altering values * @return {MIXED} the native JavaScript representation of the JSON string * @throws SyntaxError * @method parse * @static */ // JavaScript implementation in lieu of native browser support. Based on // the json2.js library from http://json.org _parse = function (s,reviver) { // Replace certain Unicode characters that are otherwise handled // incorrectly by some browser implementations. // NOTE: This modifies the input if such characters are found! _yuitest_coverfunc("build/json-parse/json-parse.js", "_parse", 174); _yuitest_coverline("build/json-parse/json-parse.js", 178); s = s.replace(_UNICODE_EXCEPTIONS, _escapeException); // Test for any remaining invalid characters _yuitest_coverline("build/json-parse/json-parse.js", 181); if (!_UNSAFE.test(s.replace(_ESCAPES,'@'). replace(_VALUES,']'). replace(_BRACKETS,''))) { // Eval the text into a JavaScript data structure, apply any // reviver function, and return _yuitest_coverline("build/json-parse/json-parse.js", 187); return _revive( eval('(' + s + ')'), reviver ); } _yuitest_coverline("build/json-parse/json-parse.js", 190); throw new SyntaxError('JSON.parse'); }; _yuitest_coverline("build/json-parse/json-parse.js", 193); Y.namespace('JSON').parse = function (s,reviver) { _yuitest_coverfunc("build/json-parse/json-parse.js", "parse", 193); _yuitest_coverline("build/json-parse/json-parse.js", 194); if (typeof s !== 'string') { _yuitest_coverline("build/json-parse/json-parse.js", 195); s += ''; } _yuitest_coverline("build/json-parse/json-parse.js", 198); return Native && Y.JSON.useNativeParse ? Native.parse(s,reviver) : _parse(s,reviver); }; _yuitest_coverline("build/json-parse/json-parse.js", 202); function workingNative( k, v ) { _yuitest_coverfunc("build/json-parse/json-parse.js", "workingNative", 202); _yuitest_coverline("build/json-parse/json-parse.js", 203); return k === "ok" ? true : v; } // Double check basic functionality. This is mainly to catch early broken // implementations of the JSON API in Firefox 3.1 beta1 and beta2 _yuitest_coverline("build/json-parse/json-parse.js", 208); if ( Native ) { _yuitest_coverline("build/json-parse/json-parse.js", 209); try { _yuitest_coverline("build/json-parse/json-parse.js", 210); useNative = ( Native.parse( '{"ok":false}', workingNative ) ).ok; } catch ( e ) { _yuitest_coverline("build/json-parse/json-parse.js", 213); useNative = false; } } /** * Leverage native JSON parse if the browser has a native implementation. * In general, this is a good idea. See the Known Issues section in the * JSON user guide for caveats. The default value is true for browsers with * native JSON support. * * @property useNativeParse * @type Boolean * @default true * @static */ _yuitest_coverline("build/json-parse/json-parse.js", 228); Y.JSON.useNativeParse = useNative; }, '@VERSION@', {"requires": ["yui-base"]});
steakknife/cdnjs
ajax/libs/yui/3.7.3/json-parse/json-parse-coverage.js
JavaScript
mit
19,373
CodeMirror.multiplexingMode = function(outer /*, others */) { // Others should be {open, close, mode [, delimStyle] [, innerStyle]} objects var others = Array.prototype.slice.call(arguments, 1); var n_others = others.length; function indexOf(string, pattern, from) { if (typeof pattern == "string") return string.indexOf(pattern, from); var m = pattern.exec(from ? string.slice(from) : string); return m ? m.index + from : -1; } return { startState: function() { return { outer: CodeMirror.startState(outer), innerActive: null, inner: null }; }, copyState: function(state) { return { outer: CodeMirror.copyState(outer, state.outer), innerActive: state.innerActive, inner: state.innerActive && CodeMirror.copyState(state.innerActive.mode, state.inner) }; }, token: function(stream, state) { if (!state.innerActive) { var cutOff = Infinity, oldContent = stream.string; for (var i = 0; i < n_others; ++i) { var other = others[i]; var found = indexOf(oldContent, other.open, stream.pos); if (found == stream.pos) { stream.match(other.open); state.innerActive = other; state.inner = CodeMirror.startState(other.mode, outer.indent ? outer.indent(state.outer, "") : 0); return other.delimStyle; } else if (found != -1 && found < cutOff) { cutOff = found; } } if (cutOff != Infinity) stream.string = oldContent.slice(0, cutOff); var outerToken = outer.token(stream, state.outer); if (cutOff != Infinity) stream.string = oldContent; return outerToken; } else { var curInner = state.innerActive, oldContent = stream.string; if (!curInner.close && stream.sol()) { state.innerActive = state.inner = null; return this.token(stream, state); } var found = curInner.close ? indexOf(oldContent, curInner.close, stream.pos) : -1; if (found == stream.pos) { stream.match(curInner.close); state.innerActive = state.inner = null; return curInner.delimStyle; } if (found > -1) stream.string = oldContent.slice(0, found); var innerToken = curInner.mode.token(stream, state.inner); if (found > -1) stream.string = oldContent; if (curInner.innerStyle) { if (innerToken) innerToken = innerToken + ' ' + curInner.innerStyle; else innerToken = curInner.innerStyle; } return innerToken; } }, indent: function(state, textAfter) { var mode = state.innerActive ? state.innerActive.mode : outer; if (!mode.indent) return CodeMirror.Pass; return mode.indent(state.innerActive ? state.inner : state.outer, textAfter); }, blankLine: function(state) { var mode = state.innerActive ? state.innerActive.mode : outer; if (mode.blankLine) { mode.blankLine(state.innerActive ? state.inner : state.outer); } if (!state.innerActive) { for (var i = 0; i < n_others; ++i) { var other = others[i]; if (other.open === "\n") { state.innerActive = other; state.inner = CodeMirror.startState(other.mode, mode.indent ? mode.indent(state.outer, "") : 0); } } } else if (state.innerActive.close === "\n") { state.innerActive = state.inner = null; } }, electricChars: outer.electricChars, innerMode: function(state) { return state.inner ? {state: state.inner, mode: state.innerActive.mode} : {state: state.outer, mode: outer}; } }; };
xirzec/cdnjs
ajax/libs/codemirror/3.22.0/addon/mode/multiplex.js
JavaScript
mit
3,736
/************* Ice Theme (by thezoggy) *************/ /* overall */ .tablesorter-ice { width: 100%; background-color: #fff; margin: 10px 0 15px; text-align: left; border-spacing: 0; border: #ccc 1px solid; border-width: 1px 0 0 1px; } .tablesorter-ice th, .tablesorter-ice td { border: #ccc 1px solid; border-width: 0 1px 1px 0; } /* header */ .tablesorter-ice th, .tablesorter-ice thead td { font: 12px/18px Arial, Sans-serif; color: #555; background-color: #f6f8f9; border-collapse: collapse; padding: 4px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); } .tablesorter-ice tbody td, .tablesorter-ice tfoot th, .tablesorter-ice tfoot td { padding: 4px; vertical-align: top; } .tablesorter-ice .header, .tablesorter-ice .tablesorter-header { background: #f6f8f9 no-repeat center right; background-image: url(data:image/gif;base64,R0lGODlhDAAMAMQAAAJEjAJCiwJBigJAiANFjgNGjgNEjQRIkQRHkANIkAVMlAVQmAZWnQZUnAdYoAhdpAhZoAlhqQlepQliqQppsApmrQxutgtutQtutAxwtwxwtg1yug1zugxtsw1yuP8A/yH5BAEAAB8ALAAAAAAMAAwAAAUx4Cd+3GiOW4ado2d9VMVm1xg9ptadTsP+QNZEcjoQTBDGCAFgLRSfQgCYMAiCn8EvBAA7); /* background-image: url(images/ice-unsorted.gif) */ padding: 4px 20px 4px 4px; white-space: normal; cursor: pointer; } .tablesorter-ice .headerSortUp, .tablesorter-ice .tablesorter-headerSortUp, .tablesorter-ice .tablesorter-headerAsc { color: #333; background: #ebedee no-repeat center right; background-image: url(data:image/gif;base64,R0lGODlhDAAMANUAAAJCiwNHkANFjgNEjQRIkQNJkQRMlARKkwRKkgVPlwZSmgdaogdYnwhfpghcowlhqgliqglgqAlgpwljqwporwpmrQplrAtsswtqsgtrsgtqsQxttAtvtQtttAxyuQxwtwxxtwxvtg10uw1zuQ1xuP8A/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACUALAAAAAAMAAwAAAY6wJKwJBoahyNQ6Dj0fDoZCpPEuWgqk4jxs8FQLI+Gg8Esm5kQydFQMC7IwkOAqUiUCAIzIjA4lwBlQQA7); /* background-image: url(images/ice-desc.gif) */ } .tablesorter-ice .headerSortDown, .tablesorter-ice .tablesorter-headerSortDown, .tablesorter-ice .tablesorter-headerDesc { color: #333; background: #ebedee no-repeat center right; background-image: url(data:image/gif;base64,R0lGODlhDAAMANUAAAE/iAJBigNFjgNEjQNFjQNDiwRHkQRHjwNHjwROlgRMlQRMlARJkgRKkgZQmAVPlgZWnQZSmgZRmAdXoAdXnwdUnAdbogdZoQhbowlhqAlepglkrAliqQtstAtqsQxyugxyuQxwuAxxuAxxtwxwtgxvtQ10vA12vA10u/8A/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACkALAAAAAAMAAwAAAY6wJQwdRoah6bP6DhEiVIdDxNEGm4yxlDpiJkwv2AmR2OhVCSJBsJ4gUQeCwOB6VAwBAXwYRAIpwBfQQA7); /* background-image: url(images/ice-asc.gif); */ } .tablesorter-ice thead .sorter-false { background-image: none; padding: 4px; } /* tfoot */ .tablesorter-ice tfoot .tablesorter-headerSortUp, .tablesorter-ice tfoot .tablesorter-headerSortDown, .tablesorter-ice tfoot .tablesorter-headerAsc, .tablesorter-ice tfoot .tablesorter-headerDesc { background: #ebedee; } /* tbody */ .tablesorter-ice td { color: #333; } /* hovered row colors */ .tablesorter-ice tbody > tr:hover > td, .tablesorter-ice tbody > tr.even:hover > td, .tablesorter-ice tbody > tr.odd:hover > td { background: #ebf2fa; } /* table processing indicator */ .tablesorter-ice .tablesorter-processing { background-position: center center !important; background-repeat: no-repeat !important; /* background-image: url(../addons/pager/icons/loading.gif) !important; */ background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !important; } /* Zebra Widget - row alternating colors */ .tablesorter-ice tr.odd td { background-color: #dfdfdf; } .tablesorter-ice tr.even td { background-color: #efefef; } /* Column Widget - column sort colors */ .tablesorter-ice td.primary, .tablesorter-ice tr.odd td.primary { background-color: #9ae5e5; } .tablesorter-ice tr.even td.primary { background-color: #c2f0f0; } .tablesorter-ice td.secondary, .tablesorter-ice tr.odd td.secondary { background-color: #c2f0f0; } .tablesorter-ice tr.even td.secondary { background-color: #d5f5f5; } .tablesorter-ice td.tertiary, .tablesorter-ice tr.odd td.tertiary { background-color: #d5f5f5; } .tablesorter-ice tr.even td.tertiary { background-color: #ebfafa; } /* filter widget */ .tablesorter-ice .tablesorter-filter-row td { background: #eee; line-height: normal; text-align: center; /* center the input */ -webkit-transition: line-height 0.1s ease; -moz-transition: line-height 0.1s ease; -o-transition: line-height 0.1s ease; transition: line-height 0.1s ease; } /* optional disabled input styling */ .tablesorter-ice .tablesorter-filter-row .disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: not-allowed; } /* hidden filter row */ .tablesorter-ice .tablesorter-filter-row.hideme td { /*** *********************************************** ***/ /*** change this padding to modify the thickness ***/ /*** of the closed filter row (height = padding x 2) ***/ padding: 2px; /*** *********************************************** ***/ margin: 0; line-height: 0; cursor: pointer; } .tablesorter-ice .tablesorter-filter-row.hideme .tablesorter-filter { height: 1px; min-height: 0; border: 0; padding: 0; margin: 0; /* don't use visibility: hidden because it disables tabbing */ opacity: 0; filter: alpha(opacity=0); } /* filters */ .tablesorter-ice .tablesorter-filter { width: 98%; height: inherit; margin: 4px; padding: 4px; background-color: #fff; border: 1px solid #bbb; color: #333; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: height 0.1s ease; -moz-transition: height 0.1s ease; -o-transition: height 0.1s ease; transition: height 0.1s ease; }
mgoldsborough/cdnjs
ajax/libs/jquery.tablesorter/2.7.7/css/theme.ice.css
CSS
mit
6,154
/************* Ice Theme (by thezoggy) *************/ /* overall */ .tablesorter-ice { width: 100%; background-color: #fff; margin: 10px 0 15px; text-align: left; border-spacing: 0; border: #ccc 1px solid; border-width: 1px 0 0 1px; } .tablesorter-ice th, .tablesorter-ice td { border: #ccc 1px solid; border-width: 0 1px 1px 0; } /* header */ .tablesorter-ice th, .tablesorter-ice thead td { font: 12px/18px Arial, Sans-serif; color: #555; background-color: #f6f8f9; border-collapse: collapse; padding: 4px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); } .tablesorter-ice tbody td, .tablesorter-ice tfoot th, .tablesorter-ice tfoot td { padding: 4px; vertical-align: top; } .tablesorter-ice .header, .tablesorter-ice .tablesorter-header { background: #f6f8f9 no-repeat center right; background-image: url(data:image/gif;base64,R0lGODlhDAAMAMQAAAJEjAJCiwJBigJAiANFjgNGjgNEjQRIkQRHkANIkAVMlAVQmAZWnQZUnAdYoAhdpAhZoAlhqQlepQliqQppsApmrQxutgtutQtutAxwtwxwtg1yug1zugxtsw1yuP8A/yH5BAEAAB8ALAAAAAAMAAwAAAUx4Cd+3GiOW4ado2d9VMVm1xg9ptadTsP+QNZEcjoQTBDGCAFgLRSfQgCYMAiCn8EvBAA7); /* background-image: url(images/ice-unsorted.gif) */ padding: 4px 20px 4px 4px; white-space: normal; cursor: pointer; } .tablesorter-ice .headerSortUp, .tablesorter-ice .tablesorter-headerSortUp, .tablesorter-ice .tablesorter-headerAsc { color: #333; background: #ebedee no-repeat center right; background-image: url(data:image/gif;base64,R0lGODlhDAAMANUAAAJCiwNHkANFjgNEjQRIkQNJkQRMlARKkwRKkgVPlwZSmgdaogdYnwhfpghcowlhqgliqglgqAlgpwljqwporwpmrQplrAtsswtqsgtrsgtqsQxttAtvtQtttAxyuQxwtwxxtwxvtg10uw1zuQ1xuP8A/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACUALAAAAAAMAAwAAAY6wJKwJBoahyNQ6Dj0fDoZCpPEuWgqk4jxs8FQLI+Gg8Esm5kQydFQMC7IwkOAqUiUCAIzIjA4lwBlQQA7); /* background-image: url(images/ice-desc.gif) */ } .tablesorter-ice .headerSortDown, .tablesorter-ice .tablesorter-headerSortDown, .tablesorter-ice .tablesorter-headerDesc { color: #333; background: #ebedee no-repeat center right; background-image: url(data:image/gif;base64,R0lGODlhDAAMANUAAAE/iAJBigNFjgNEjQNFjQNDiwRHkQRHjwNHjwROlgRMlQRMlARJkgRKkgZQmAVPlgZWnQZSmgZRmAdXoAdXnwdUnAdbogdZoQhbowlhqAlepglkrAliqQtstAtqsQxyugxyuQxwuAxxuAxxtwxwtgxvtQ10vA12vA10u/8A/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACkALAAAAAAMAAwAAAY6wJQwdRoah6bP6DhEiVIdDxNEGm4yxlDpiJkwv2AmR2OhVCSJBsJ4gUQeCwOB6VAwBAXwYRAIpwBfQQA7); /* background-image: url(images/ice-asc.gif); */ } .tablesorter-ice thead .sorter-false { background-image: none; padding: 4px; } /* tfoot */ .tablesorter-ice tfoot .tablesorter-headerSortUp, .tablesorter-ice tfoot .tablesorter-headerSortDown, .tablesorter-ice tfoot .tablesorter-headerAsc, .tablesorter-ice tfoot .tablesorter-headerDesc { background: #ebedee; } /* tbody */ .tablesorter-ice td { color: #333; } /* hovered row colors */ .tablesorter-ice tbody > tr:hover > td, .tablesorter-ice tbody > tr.even:hover > td, .tablesorter-ice tbody > tr.odd:hover > td { background: #ebf2fa; } /* table processing indicator */ .tablesorter-ice .tablesorter-processing { background-position: center center !important; background-repeat: no-repeat !important; /* background-image: url(../addons/pager/icons/loading.gif) !important; */ background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !important; } /* Zebra Widget - row alternating colors */ .tablesorter-ice tr.odd td { background-color: #dfdfdf; } .tablesorter-ice tr.even td { background-color: #efefef; } /* Column Widget - column sort colors */ .tablesorter-ice td.primary, .tablesorter-ice tr.odd td.primary { background-color: #9ae5e5; } .tablesorter-ice tr.even td.primary { background-color: #c2f0f0; } .tablesorter-ice td.secondary, .tablesorter-ice tr.odd td.secondary { background-color: #c2f0f0; } .tablesorter-ice tr.even td.secondary { background-color: #d5f5f5; } .tablesorter-ice td.tertiary, .tablesorter-ice tr.odd td.tertiary { background-color: #d5f5f5; } .tablesorter-ice tr.even td.tertiary { background-color: #ebfafa; } /* filter widget */ .tablesorter-ice .tablesorter-filter-row td { background: #eee; line-height: normal; text-align: center; /* center the input */ -webkit-transition: line-height 0.1s ease; -moz-transition: line-height 0.1s ease; -o-transition: line-height 0.1s ease; transition: line-height 0.1s ease; } /* optional disabled input styling */ .tablesorter-ice .tablesorter-filter-row .disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: not-allowed; } /* hidden filter row */ .tablesorter-ice .tablesorter-filter-row.hideme td { /*** *********************************************** ***/ /*** change this padding to modify the thickness ***/ /*** of the closed filter row (height = padding x 2) ***/ padding: 2px; /*** *********************************************** ***/ margin: 0; line-height: 0; cursor: pointer; } .tablesorter-ice .tablesorter-filter-row.hideme .tablesorter-filter { height: 1px; min-height: 0; border: 0; padding: 0; margin: 0; /* don't use visibility: hidden because it disables tabbing */ opacity: 0; filter: alpha(opacity=0); } /* filters */ .tablesorter-ice .tablesorter-filter { width: 98%; height: inherit; margin: 4px; padding: 4px; background-color: #fff; border: 1px solid #bbb; color: #333; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: height 0.1s ease; -moz-transition: height 0.1s ease; -o-transition: height 0.1s ease; transition: height 0.1s ease; }
algolia/cdnjs
ajax/libs/jquery.tablesorter/2.8.2/css/theme.ice.css
CSS
mit
6,154
/*! * jQuery Cookie Plugin v1.4.0 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{a=decodeURIComponent(a.replace(g," "))}catch(b){return}try{return h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setDate(k.getDate()+j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});
buliaoyin/buliaoyin.github.io
themes/ichi/assets/js/vendor/jquery.cookie.js
JavaScript
mit
1,385
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.registerGlobalHelper("fold", "comment", function(mode) { return mode.blockCommentStart && mode.blockCommentEnd; }, function(cm, start) { var mode = cm.getModeAt(start), startToken = mode.blockCommentStart, endToken = mode.blockCommentEnd; if (!startToken || !endToken) return; var line = start.line, lineText = cm.getLine(line); var startCh; for (var at = start.ch, pass = 0;;) { var found = at <= 0 ? -1 : lineText.lastIndexOf(startToken, at - 1); if (found == -1) { if (pass == 1) return; pass = 1; at = lineText.length; continue; } if (pass == 1 && found < start.ch) return; if (/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1)))) { startCh = found + startToken.length; break; } at = found - 1; } var depth = 1, lastLine = cm.lastLine(), end, endCh; outer: for (var i = line; i <= lastLine; ++i) { var text = cm.getLine(i), pos = i == line ? startCh : 0; for (;;) { var nextOpen = text.indexOf(startToken, pos), nextClose = text.indexOf(endToken, pos); if (nextOpen < 0) nextOpen = text.length; if (nextClose < 0) nextClose = text.length; pos = Math.min(nextOpen, nextClose); if (pos == text.length) break; if (pos == nextOpen) ++depth; else if (!--depth) { end = i; endCh = pos; break outer; } ++pos; } } if (end == null || line == end && endCh == startCh) return; return {from: CodeMirror.Pos(line, startCh), to: CodeMirror.Pos(end, endCh)}; }); });
vv1133/vvblog
static/js/editormd/lib/codemirror/addon/fold/comment-fold.js
JavaScript
mit
1,999
AmCharts.maps.worldRussiaSplitLow={svg:{defs:{"amcharts:ammap":{projection:"mercator",leftLongitude:"-169.522279",topLatitude:"83.646363",rightLongitude:"190.122401",bottomLatitude:"-55.621433"}},g:{path:[{id:"AE",title:"United Arab Emirates",d:"M619.87,393.72L620.37,393.57L620.48,394.41L622.67,393.93L624.99,394.01L626.68,394.1L628.6,392.03L630.7,390.05L632.47,388.15L633,389.2L633.38,391.64L631.95,391.65L631.72,393.65L632.22,394.07L630.95,394.67L630.94,395.92L630.12,397.18L630.05,398.39L629.48,399.03L621.06,397.51L619.98,394.43z"},{id:"AF",title:"Afghanistan",d:"M646.88,356.9L649.74,358.2L651.85,357.74L652.44,356.19L654.65,355.67L656.23,354.62L656.79,351.83L659.15,351.15L659.59,349.9L660.92,350.84L661.76,350.95L663.32,350.98L665.44,351.72L666.29,352.14L668.32,351.02L669.27,351.69L670.17,350.09L671.85,350.16L672.28,349.64L672.58,348.21L673.79,346.98L675.3,347.78L675,348.87L675.85,349.04L675.58,351.99L676.69,353.14L677.67,352.4L678.92,352.06L680.66,350.49L682.59,350.75L685.49,350.75L685.99,351.76L684.35,352.15L682.93,352.8L679.71,353.2L676.7,353.93L675.06,355.44L675.72,356.9L676.05,358.6L674.65,360.03L674.77,361.33L674,362.55L671.33,362.44L672.43,364.66L670.65,365.51L669.46,367.51L669.61,369.49L668.51,370.41L667.48,370.11L665.33,370.54L665.03,371.45L662.94,371.45L661.38,373.29L661.28,376.04L657.63,377.37L655.68,377.09L655.11,377.79L653.44,377.39L650.63,377.87L645.94,376.23L648.48,373.3L648.25,371.2L646.13,370.65L645.91,368.56L644.99,365.92L646.19,364.09L644.97,363.6L645.74,361.15z"},{id:"AL",title:"Albania",d:"M532.98,334.66L532.63,335.93L533.03,337.52L534.19,338.42L534.13,339.39L533.22,339.93L533.05,341.12L531.75,342.88L531.27,342.63L531.22,341.83L529.66,340.6L529.42,338.85L529.66,336.32L530.04,335.16L529.57,334.57L529.38,333.38L530.6,331.51L530.77,332.23L531.53,331.89L532.13,332.91L532.8,333.29z"},{id:"AM",title:"Armenia",d:"M597.45,337.5L601.35,336.92L601.93,337.9L603,338.54L602.43,339.46L603.93,340.72L603.14,341.88L604.33,342.87L605.59,343.46L605.65,345.96L604.63,346.06L603.49,343.98L603.5,343.43L602.26,343.44L601.43,342.46L600.85,342.56L599.74,341.5L597.66,340.59L597.93,338.8z"},{id:"AO",title:"Angola",d:"M521.03,479.78l0.69,2.09l0.8,1.68l0.64,0.91l1.07,1.47l1.85,-0.23l0.93,-0.4l1.55,0.4l0.42,-0.7l0.7,-1.64l1.74,-0.11l0.15,-0.49l1.43,-0.01l-0.24,1.01l3.4,-0.02l0.05,1.77l0.57,1.09l-0.41,1.7l0.21,1.74l0.94,1.05l-0.15,3.37l0.69,-0.26l1.22,0.07l1.74,-0.42l1.28,0.17l0.3,0.88l-0.32,1.38l0.49,1.34l-0.42,1.07l0.24,0.99l-5.84,-0.04l-0.13,9.16l1.89,2.38l1.83,1.82l-5.15,1.19l-6.79,-0.41l-1.94,-1.4l-11.37,0.13l-0.42,0.21l-1.67,-1.32l-1.82,-0.09l-1.68,0.5l-1.35,0.56l-0.26,-1.83l0.39,-2.55l0.97,-2.65l0.15,-1.24l0.91,-2.59l0.67,-1.17l1.61,-1.87l0.9,-1.27l0.29,-2.11l-0.15,-1.61l-0.84,-1.01l-0.75,-1.72l-0.69,-1.69l0.15,-0.59l0.86,-1.12l-0.85,-2.72l-0.57,-1.88l-1.4,-1.77l0.27,-0.54l1.16,-0.38l0.81,0.05l0.98,-0.34L521.03,479.78zM510.12,479.24l-0.71,0.3l-0.75,-2.1l1.13,-1.21l0.85,-0.47l1.05,0.96l-1.02,0.59l-0.46,0.72L510.12,479.24z"},{id:"AR",title:"Argentina",d:"M291.6,648.91l-2.66,0.25l-1.43,-1.73l-1.69,-0.13l-3,0l0,-10.57l1.08,2.15l1.4,3.53l3.65,2.87l3.93,1.21L291.6,648.91zM293.1,526.47l1.65,2.18l1.09,-2.43l3.2,0.12l0.45,0.64l5.15,4.94l2.29,0.46l3.43,2.26l2.89,1.2l0.4,1.36l-2.76,4.73l2.83,0.85l3.15,0.48l2.22,-0.5l2.54,-2.4l0.46,-2.74l1.39,-0.59l1.41,1.79l-0.06,2.49l-2.36,1.73l-1.88,1.28l-3.16,3.08l-3.74,4.37l-0.7,2.59l-0.75,3.37l0.03,3.3l-0.61,0.74l-0.22,2.17l-0.19,1.76l3.56,2.91l-0.38,2.37l1.75,1.51l-0.14,1.7l-2.69,4.52l-4.16,1.91l-5.62,0.75l-3.08,-0.36l0.59,2.15l-0.57,2.72l0.52,1.85l-1.68,1.3l-2.87,0.51l-2.7,-1.35l-1.08,0.97l0.39,3.71l1.89,1.14l1.54,-1.19l0.84,1.96l-2.58,1.18l-2.25,2.38l-0.41,3.91l-0.66,2.11l-2.65,0.01l-2.2,2.04l-0.8,3.01l2.76,2.98l2.68,0.83l-0.96,3.73l-3.31,2.38l-1.82,5.03l-2.56,1.72l-1.15,2.06l0.91,4.64l1.87,2.63l-1.18,-0.23l-2.6,-0.71l-6.78,-0.61l-1.16,-2.63l0.05,-3.33l-1.87,0.28l-0.99,-1.6l-0.25,-4.6l2.15,-1.88l0.89,-2.68l-0.33,-2.11l1.49,-3.52l1.02,-5.35l-0.3,-2.33l1.22,-0.75l-0.3,-1.48l-1.3,-0.78l0.92,-1.63l-1.27,-1.46l-0.65,-4.4l1.13,-0.77l-0.47,-4.54l0.66,-3.75l0.75,-3.22l1.68,-1.3l-0.85,-3.46l-0.01,-3.22l2.12,-2.26l-0.06,-2.87l1.6,-3.31l0.01,-3.09l-0.73,-0.61l-1.29,-5.69l1.73,-3.34l-0.27,-3.11l1,-2.9l1.84,-2.96l1.98,-1.95l-0.84,-1.23l0.59,-1l-0.09,-5.14l3.05,-1.51l0.96,-3.16l-0.34,-0.76l2.34,-2.72L293.1,526.47z"},{id:"AT",title:"Austria",d:"M522.86,309.85L522.65,311.56L521.07,311.57L521.61,312.46L520.68,315.11L520.15,315.8L517.7,315.9L516.28,316.82L513.96,316.51L509.95,315.46L509.33,314.03L506.56,314.75L506.23,315.52L504.53,314.94L503.1,314.83L501.83,314.09L502.26,313.08L502.15,312.34L503,312.12L504.42,313.26L504.82,312.17L507.29,312.35L509.3,311.61L510.64,311.73L511.51,312.58L511.78,311.88L511.38,309.16L512.39,308.62L513.37,306.67L515.46,308.04L517.03,306.3L518.02,305.98L520.2,307.28L521.51,307.06L522.81,307.86L522.58,308.4z"},{id:"AU",title:"Australia",d:"M882.93,588.16l2.71,1.28l1.53,-0.51l2.19,-0.71l1.68,0.25l0.2,4.43l-0.96,1.3l-0.29,3.06l-0.98,-1.05l-1.95,2.67l-0.58,-0.21l-1.72,-0.12l-1.73,-3.28l-0.38,-2.5l-1.62,-3.25l0.07,-1.7L882.93,588.16zM877.78,502.1l1.01,2.25l1.8,-1.08l0.93,1.22l1.35,1.13l-0.29,1.28l0.6,2.48l0.43,1.45l0.71,0.35l0.76,2.5l-0.27,1.52l0.91,1.99l3.04,1.54l1.98,1.41l1.88,1.29l-0.37,0.72l1.6,1.87l1.09,3.25l1.12,-0.66l1.14,1.31l0.69,-0.46l0.48,3.21l1.99,1.87l1.3,1.17l2.19,2.49l0.79,2.49l0.07,1.77l-0.19,1.94l1.34,2.68l-0.16,2.81l-0.49,1.48l-0.76,2.87l0.06,1.86l-0.55,2.34l-1.24,3l-2.08,1.63l-1.02,2.59l-0.94,1.67l-0.83,2.93l-1.08,1.71l-0.71,2.58l-0.36,2.4l0.14,1.11l-1.61,1.22l-3.14,0.13l-2.59,1.45l-1.29,1.38l-1.69,1.54l-2.32,-1.58l-1.72,-0.63l0.44,-1.85l-1.53,0.67l-2.46,2.58l-2.42,-0.97l-1.59,-0.56l-1.6,-0.25l-2.71,-1.03l-1.81,-2.18l-0.52,-2.66l-0.65,-1.75l-1.38,-1.4l-2.7,-0.41l0.92,-1.66l-0.68,-2.52l-1.37,2.35l-2.5,0.63l1.47,-1.88l0.42,-1.95l1.08,-1.65l-0.22,-2.47l-2.28,2.85l-1.75,1.15l-1.07,2.69l-2.19,-1.4l0.09,-1.79l-1.75,-2.43l-1.48,-1.25l0.53,-0.77l-3.6,-2l-1.97,-0.09l-2.7,-1.6l-5.02,0.31l-3.63,1.18l-3.19,1.1l-2.68,-0.22l-2.97,1.7l-2.43,0.77l-0.54,1.75l-1.04,1.36l-2.38,0.08l-1.76,0.3l-2.48,-0.61l-2.02,0.37l-1.92,0.15l-1.67,1.8l-0.82,-0.15l-1.41,0.96l-1.35,1.08l-2.05,-0.13l-1.88,0l-2.97,-2.17l-1.51,-0.64l0.06,-1.93l1.39,-0.46l0.48,-0.76l-0.1,-1.2l0.34,-2.3l-0.31,-1.95l-1.48,-3.29l-0.46,-1.85l0.12,-1.83l-1.12,-2.08l-0.07,-0.93l-1.24,-1.26l-0.35,-2.47l-1.6,-2.48l-0.39,-1.33l1.23,1.35l-0.95,-2.88l1.39,0.9l0.83,1.2l-0.05,-1.59l-1.39,-2.43l-0.27,-0.97l-0.65,-0.92l0.3,-1.77l0.57,-0.75l0.38,-1.52l-0.3,-1.77l1.16,-2.17l0.21,2.29l1.18,-2.07l2.28,-1l1.37,-1.28l2.14,-1.1l1.27,-0.23l0.77,0.37l2.21,-1.11l1.7,-0.33l0.42,-0.65l0.74,-0.27l1.55,0.07l2.95,-0.87l1.52,-1.31l0.72,-1.58l1.64,-1.49l0.13,-1.17l0.07,-1.59l1.96,-2.47l1.18,2.51l1.19,-0.58l-1,-1.38l0.88,-1.41l1.24,0.63l0.34,-2.21l1.53,-1.42l0.68,-1.14l1.41,-0.49l0.04,-0.8l1.23,0.34l0.05,-0.72l1.23,-0.41l1.36,-0.39l2.07,1.32l1.56,1.71l1.75,0.02l1.78,0.27l-0.59,-1.58l1.34,-2.3l1.26,-0.75l-0.44,-0.71l1.22,-1.63l1.7,-1.01l1.43,0.34l2.36,-0.54l-0.05,-1.45l-2.05,-0.94l1.49,-0.41l1.86,0.7l1.49,1.17l2.36,0.73l0.8,-0.29l1.74,0.88l1.64,-0.82l1.05,0.25l0.66,-0.55l1.29,1.41l-0.75,1.53l-1.06,1.16l-0.96,0.1l0.33,1.15l-0.82,1.43l-1,1.41l0.2,0.81l2.23,1.6l2.16,0.93l1.44,1l2.03,1.72l0.79,0l1.47,0.75l0.43,0.9l2.68,0.99l1.85,-1l0.55,-1.57l0.57,-1.29l0.35,-1.59l0.85,-2.3l-0.39,-1.39l0.2,-0.84l-0.32,-1.64l0.37,-2.16l0.54,-0.58l-0.44,-0.95l0.68,-1.51l0.53,-1.56l0.07,-0.81l1.04,-1.06l0.79,1.39l0.19,1.78l0.7,0.34l0.12,1.2l1.02,1.45l0.21,1.62L877.78,502.1z"},{id:"AZ",title:"Azerbaijan",d:"M601.43,342.46l0.83,0.97l1.24,-0.01l-0.01,0.56l1.14,2.08l-1.92,-0.48l-1.42,-1.66l-0.44,-1.37L601.43,342.46zM608.08,337.03l1.24,0.25l0.48,-0.95l1.67,-1.51l1.47,1.97l1.43,2.62l1.31,0.17l0.86,0.99l-2.31,0.29l-0.49,2.82l-0.48,1.26l-1.03,0.84l0.08,1.77l-0.7,0.18l-1.75,-1.87l0.97,-1.78l-0.83,-1.06l-1.05,0.27l-3.31,2.66l-0.06,-2.5l-1.26,-0.59l-1.19,-0.99l0.79,-1.16l-1.49,-1.26l0.56,-0.92l-1.07,-0.64l-0.58,-0.97l0.69,-0.61l2.09,1.07l1.51,0.22l0.38,-0.43l-1.38,-2.02l0.73,-0.52l0.79,0.13L608.08,337.03z"},{id:"BA",title:"Bosnia and Herzegovina",d:"M528.54,323.11L529.56,323.1L528.86,324.82L530.21,326.32L529.8,328.14L529.14,328.31L528.61,328.67L527.7,329.56L527.29,331.66L524.81,330.22L523.75,328.61L522.68,327.76L521.39,326.31L520.79,325.1L519.41,323.27L520,321.63L521.01,322.54L521.61,321.72L522.92,321.63L525.33,322.29L527.27,322.23z"},{id:"BD",title:"Bangladesh",d:"M735.09,400.41L735.04,402.56L734.06,402.1L734.24,404.51L733.44,402.95L733.28,401.43L732.74,399.98L731.57,398.22L728.99,398.1L729.25,399.35L728.37,401.02L727.17,400.41L726.76,400.96L725.97,400.63L724.89,400.36L724.45,397.88L723.48,395.6L723.95,393.76L722.23,392.94L722.85,391.82L724.6,390.67L722.58,389.04L723.57,386.93L725.79,388.27L727.13,388.43L727.38,390.58L730.04,391L732.65,390.95L734.26,391.48L732.97,394.07L731.71,394.25L730.85,395.98L732.38,397.56L732.84,395.62L733.62,395.61z"},{id:"BE",title:"Belgium",d:"M484.55,295.91L486.6,296.26L489.2,295.33L490.97,297.28L492.52,298.32L492.2,301.29L491.47,301.45L491.16,303.88L488.71,301.91L487.27,302.25L485.31,300.19L484.01,298.42L482.71,298.35L482.3,296.79z"},{id:"BF",title:"Burkina Faso",d:"M467.33,436.4L465.41,435.67L464.09,435.78L463.11,436.49L461.85,435.89L461.36,434.96L460.1,434.34L459.91,432.7L460.68,431.49L460.61,430.53L462.84,428.17L463.25,426.21L464.02,425.51L465.38,425.89L466.55,425.31L466.93,424.57L469.11,423.29L469.64,422.39L472.26,421.19L473.81,420.78L474.51,421.33L476.3,421.32L476.08,422.72L476.46,424.03L478.04,425.9L478.12,427.28L481.36,427.93L481.29,429.88L480.68,430.74L479.31,431L478.74,432.24L477.78,432.56L475.32,432.5L474.02,432.28L473.12,432.74L471.88,432.53L467.01,432.66L466.94,434.27z"},{id:"BG",title:"Bulgaria",d:"M538.78,325.56L539.59,327.16L540.67,326.87L542.83,327.48L546.95,327.68L548.34,326.69L551.64,325.79L553.68,327.2L555.33,327.61L553.87,329.2L552.85,331.93L553.75,334.09L551.34,333.58L548.48,334.76L548.45,336.62L545.9,336.97L543.93,335.67L541.68,336.7L539.61,336.59L539.41,334.12L538,332.91L538.47,332.37L538.16,331.92L538.63,330.71L539.7,329.52L538.34,327.86L538.09,326.44z"},{id:"BI",title:"Burundi",d:"M557.52,475.93L557.34,472.56L556.63,471.3L558.34,471.52L559.2,469.93L560.69,470.11L560.85,471.21L561.45,471.84L561.48,472.75L560.79,473.33L559.69,474.79L558.68,475.8z"},{id:"BJ",title:"Benin",d:"M482.8,445.92L480.48,446.25L479.79,444.31L479.92,437.85L479.35,437.27L479.25,435.88L478.27,434.89L477.42,434.06L477.78,432.56L478.74,432.24L479.31,431L480.68,430.74L481.29,429.88L482.23,429.05L483.24,429.04L485.38,430.68L485.27,431.63L485.9,433.31L485.35,434.45L485.64,435.21L484.28,436.96L483.42,437.83L482.89,439.6L482.96,441.39z"},{id:"BN",title:"Brunei Darussalam",d:"M795.46,450.77L796.57,449.72L798.96,448.19L798.83,449.57L798.67,451.35L797.33,451.26L796.74,452.21z"},{id:"BO",title:"Bolivia",d:"M299.04,526.35L295.84,526.22L294.75,528.65L293.1,526.47L289.43,525.74L287.1,528.46L285.07,528.87L283.97,524.72L282.47,521.38L283.35,518.51L281.88,517.26L281.51,515.14L280.13,513.14L281.9,510L280.69,507.56L281.34,506.59L280.83,505.52L281.93,504.08L281.99,501.64L282.12,499.62L282.73,498.66L280.3,494.08L282.39,494.32L283.83,494.25L284.46,493.4L286.91,492.25L288.38,491.19L292.05,490.71L291.76,492.83L292.1,493.92L291.87,495.82L294.92,498.37L298.06,498.84L299.16,499.91L301.06,500.48L302.22,501.31L303.98,501.28L305.61,502.13L305.73,503.79L306.28,504.63L306.32,505.88L305.5,505.92L306.58,509.29L311.95,509.41L311.54,511.09L311.84,512.24L313.37,513.06L314.04,514.88L313.54,517.2L312.77,518.49L313.04,520.18L312.16,520.79L312.12,519.88L309.5,518.37L306.9,518.32L302.01,519.18L300.67,521.8L300.6,523.4L299.49,526.99z"},{id:"BR",title:"Brazil",d:"M313.68,551.79L317.42,547.42L320.59,544.34L322.47,543.06L324.83,541.33L324.89,538.84L323.48,537.05L322.09,537.64L322.64,535.86L323.02,534.04L323.02,532.36L322.01,531.81L320.96,532.3L319.92,532.17L319.59,530.99L319.33,528.22L318.8,527.32L316.91,526.5L315.77,527.09L312.81,526.51L312.99,522.45L312.16,520.79L313.04,520.18L312.77,518.49L313.54,517.2L314.04,514.88L313.37,513.06L311.84,512.24L311.54,511.09L311.95,509.41L306.58,509.29L305.5,505.92L306.32,505.88L306.28,504.63L305.73,503.79L305.61,502.13L303.98,501.28L302.22,501.31L301.06,500.48L299.16,499.91L298.06,498.84L294.92,498.37L291.87,495.82L292.1,493.92L291.76,492.83L292.05,490.71L288.38,491.19L286.91,492.25L284.46,493.4L283.83,494.25L282.39,494.32L280.3,494.08L278.72,494.57L277.44,494.24L277.63,489.94L275.33,491.6L272.86,491.53L271.8,490.02L269.94,489.86L270.53,488.65L268.97,486.93L267.8,484.4L268.54,483.89L268.54,482.7L270.24,481.89L269.96,480.38L270.67,479.4L270.88,478.1L274.08,476.19L276.38,475.66L276.75,475.24L279.28,475.37L280.54,467.72L280.61,466.51L280.17,464.92L278.93,463.9L278.94,461.88L280.52,461.42L281.08,461.71L281.17,460.64L279.53,460.35L279.5,458.61L284.96,458.67L285.89,457.71L286.67,458.59L287.21,460.24L287.74,459.89L289.29,461.37L291.47,461.19L292.01,460.33L294.09,459.68L295.25,459.23L295.57,458.05L297.58,457.25L297.42,456.67L295.05,456.43L294.66,454.67L294.77,452.8L293.52,452.08L294.04,451.82L296.12,452.18L298.35,452.88L299.16,452.22L301.17,451.78L304.31,450.74L305.34,449.67L304.96,448.88L306.42,448.76L307.08,449.4L306.71,450.63L307.67,451.05L308.32,452.35L307.54,453.33L307.09,455.71L307.81,457.12L308.01,458.41L309.74,459.71L311.12,459.85L311.43,459.31L312.31,459.19L313.58,458.7L314.49,457.96L316.04,458.19L316.72,458.09L318.25,458.32L318.5,457.75L318.03,457.2L318.31,456.39L319.44,456.64L320.77,456.35L322.37,456.94L323.6,457.52L324.47,456.76L325.09,456.88L325.48,457.67L326.82,457.47L327.89,456.41L328.75,454.35L330.41,451.8L331.37,451.67L332.06,453.21L333.63,458.09L335.13,458.55L335.21,460.47L333.1,462.76L333.97,463.6L338.93,464.04L339.03,466.83L341.16,465L344.69,466.01L349.34,467.71L350.71,469.34L350.25,470.88L353.51,470.02L358.97,471.5L363.16,471.39L367.3,473.7L370.88,476.83L373.04,477.63L375.44,477.75L376.46,478.63L377.41,482.2L377.88,483.89L376.76,488.55L375.33,490.39L371.38,494.33L369.59,497.54L367.52,500.02L366.82,500.08L366.03,502.18L366.23,507.58L365.45,512.06L365.15,513.99L364.27,515.14L363.77,519.08L360.93,522.96L360.45,526.05L358.18,527.36L357.52,529.17L354.48,529.16L350.07,530.33L348.09,531.68L344.95,532.57L341.65,535.01L339.28,538.07L338.87,540.39L339.34,542.12L338.81,545.3L338.18,546.85L336.22,548.6L333.11,554.28L330.64,556.87L328.73,558.41L327.46,561.57L325.6,563.48L324.82,561.58L326.06,560.01L324.44,557.76L322.24,555.94L319.35,553.86L318.31,553.95L315.5,551.45z"},{id:"BS",title:"Bahamas",d:"M257.86,395.2l-0.69,0.15l-0.71,-1.76l-1.05,-0.89l0.61,-1.95l0.84,0.12l0.98,2.55L257.86,395.2zM257.06,386.51l-3.06,0.5l-0.2,-1.15l1.32,-0.25l1.85,0.09L257.06,386.51zM259.36,386.48l-0.48,2.21l-0.52,-0.4l0.05,-1.63l-1.26,-1.23l-0.01,-0.36L259.36,386.48z"},{id:"BT",title:"Bhutan",d:"M732.36,382.78L733.5,383.78L733.3,385.71L731.01,385.8L728.65,385.59L726.88,386.08L724.33,384.89L724.28,384.26L726.13,381.92L727.64,381.12L729.65,381.85L731.13,381.93z"},{id:"BW",title:"Botswana",d:"M547.17,515.95L547.73,516.47L548.62,518.18L551.79,521.43L552.99,521.75L553,522.8L553.82,524.7L555.99,525.16L557.78,526.52L553.81,528.74L551.29,531L550.36,533.03L549.52,534.18L547.99,534.43L547.5,535.9L547.21,536.86L545.42,537.58L543.14,537.43L541.8,536.57L540.62,536.19L539.25,536.91L538.56,538.39L537.23,539.32L535.83,540.71L533.82,541.03L533.2,539.94L533.46,538.04L531.79,535.11L531.04,534.65L531.04,525.79L533.8,525.68L533.88,515.11L535.97,515.02L540.29,513.99L541.37,515.2L543.15,514.05L544.01,514.04L545.59,513.38L546.09,513.6z"},{id:"BY",title:"Belarus",d:"M541.1,284.07L543.81,284.11L546.85,282.31L547.5,279.59L549.8,278.02L549.54,275.82L551.24,274.98L554.26,273.05L557.21,274.31L557.61,275.54L559.08,274.95L561.82,276.13L562.09,278.44L561.49,279.76L563.25,282.91L564.39,283.78L564.22,284.64L566.11,285.47L566.92,286.72L565.83,287.74L563.57,287.58L563.03,288.02L563.69,289.56L564.38,292.49L561.97,292.76L561.11,293.76L560.92,296.02L559.81,295.59L557.28,295.81L556.54,294.76L555.49,295.54L554.44,294.89L552.23,294.8L549.1,293.72L546.27,293.36L544.1,293.46L542.56,294.69L541.22,294.86L541.17,292.85L540.3,290.73L541.98,289.79L542,287.94L541.22,286.16z"},{id:"BZ",title:"Belize",d:"M225.31,412.96L225.29,412.53L225.63,412.39L226.14,412.74L227.14,410.97L227.67,410.93L227.68,411.36L228.21,411.37L228.17,412.17L227.71,413.44L227.96,413.89L227.67,414.94L227.84,415.21L227.52,416.68L226.97,417.46L226.46,417.55L225.9,418.55L225.07,418.55L225.29,415.27z"},{id:"CA",title:"Canada",d:"M198.93,96.23l-0.22,-5.9l3.63,0.58l1.63,0.96l3.35,4.92l-0.76,4.97l-4.15,2.77l-2.28,-3.12L198.93,96.23zM212.14,108.88l0.33,-1.49l-1.97,-2.45l-5.65,-0.19l0.75,3.68l5.25,0.83L212.14,108.88zM248.49,155.83l3.08,5.1l0.81,0.57l3.07,-1.27l3.02,0.2l2.98,0.28l-0.25,-2.64l-4.84,-5.38l-6.42,-1.08l-1.35,0.67L248.49,155.83zM183.06,93.13l-2.71,4.19l6.24,0.52l4.61,4.44l4.58,1.5l-1.09,-5.68l-2.14,-6.73l-7.58,-5.35l-5.5,-2.04l0.2,5.69L183.06,93.13zM208.96,82.89l5.13,-0.12l-2.22,4l-0.04,5.3l3.01,5.76l5.81,1.77l4.96,-0.99l5.18,-10.73l3.85,-4.45l-3.38,-4.97l-2.21,-10.65l-4.6,-3.19l-4.72,-3.68l-3.58,-9.56l-6.52,0.94l1.23,4.15l-2.87,1.25l-1.94,5.32l-1.94,7.46l1.78,7.26L208.96,82.89zM145.21,136.27l3.92,1.95l12.67,-1.3l-5.82,4.77l0.36,3.43l4.26,-0.24l7.07,-4.58l9.5,-1.67l1.71,-5.22l-0.49,-5.57l-2.94,-0.5l-2.5,1.93l-1.1,-4.13l-0.95,-5.7l-2.9,-1.42l-2.57,4.41l4.01,11.05l-4.9,-0.85l-4.98,-6.79l-7.89,-4l-2.64,3.32L145.21,136.27zM167.77,94.21l-3.65,-2.9l-1.5,-0.66l-2.88,4.28l-0.05,2l4.66,0.01L167.77,94.21zM166.31,106.56l0.93,-3.99l-3.95,-2.12l-4.09,1.39l-2.27,4.26l4.16,4.21L166.31,106.56zM195.4,139.8l4.62,-1.11l1.28,-8.25l-0.09,-5.95l-2.14,-5.56l-0.22,1.6l-3.94,-0.7l-4.22,4.09l-3.02,-0.37l0.18,8.92l4.6,-0.87l-0.06,6.47L195.4,139.8zM192.12,185.41l-5.06,-3.93l-4.71,-4.21l-0.87,-6.18l-1.76,-8.92l-3.14,-3.84l-2.79,-1.55l-2.47,1.42l1.99,9.59l-1.41,3.73l-2.29,-8.98l-2.56,-3.11l-3.17,4.81l-3.9,-4.76l-6.24,2.87l1.4,-4.46l-2.87,-1.87l-7.51,5.84l-1.95,3.71l-2.35,6.77l4.9,2.32l4.33,-0.12l-6.5,3.46l1.48,3.13l3.98,0.17l5.99,-0.67l5.42,1.96l-3.66,1.44l-3.95,-0.37l-4.33,1.41l-1.87,0.87l3.45,6.35l2.49,-0.88l3.83,2.15l1.52,3.65l4.99,-0.73l7.1,-1.16l5.26,-2.65l3.26,-0.48l4.82,2.12l5.07,1.22l0.94,-2.86l-1.79,-3.05l4.6,-0.64L192.12,185.41zM199.86,184.43l-1.96,3.54l-2.47,2.49l3.83,3.54l2.28,-0.85l3.78,2.36l1.74,-2.73l-1.71,-3.03l-0.84,-1.53l-1.68,-1.46L199.86,184.43zM182.25,154.98l-2.13,-2.17l-3.76,0.4l-0.95,1.38l4.37,6.75L182.25,154.98zM210.94,168.15l3.01,-6.93l3.34,-1.85l4.19,-8.74l-5.36,-2.47l-5.84,-0.36l-2.78,2.77l-1.47,4.23l-0.04,4.82l1.75,8.19L210.94,168.15zM228.09,145.15l5.76,-0.18l8.04,-1.61l3.59,1.28l4.18,-2.26l1.75,-2.84l-0.63,-4.52l-3,-4.23l-4.56,-0.8l-5.71,0.97l-4.46,2.44l-4.09,-0.94l-3.78,-0.5l-1.78,-2.7l-3.22,-2.61l0.64,-4.43l-2.42,-3.98l-5.52,0.03l-3.11,-3.99l-5.78,-0.8l-1.06,5.1l3.25,3.74l5.8,1.45l2.81,5.09l0.34,5.6l0.97,5.99l7.45,3.42L228.09,145.15zM139.07,126.88l5.21,-5.05l2.62,-0.59l2.16,-4.23l0.38,-9.77l-3.85,1.91l-4.3,-0.18l-5.76,8.19l-4.76,8.98l3.8,2.51L139.07,126.88zM211.25,143.05l1.53,-4.14l-1.02,-3.46l-2.45,-3.92l-4.03,3.02l-1.49,4.92l3.4,2.79L211.25,143.05zM202.94,154.49l-0.73,-2.88l-5,1.26l-3.34,-2.11l-3.32,4.8l3.09,6.28l-5.72,-1.17l-0.06,3.01l6.97,7.05l1.94,3.38l2.7,0.73l4.6,-3.41l0.5,-8.21l-4.24,-4.07L202.94,154.49zM128.95,308.23l-1.16,-2.34l-2.8,-1.77l-1.39,-2.05l-0.95,-1.5l-2.64,-0.46l-1.72,-0.67l-2.94,-0.96l-0.24,1.02l1.08,2.38l2.89,0.78l0.5,1.23l2.51,1.5l0.84,1.51l4.6,1.92L128.95,308.23zM250.65,230.6l-2,-2.11l-2.06,0.5l-0.25,-3.06l-3.21,-2.04l-3.07,-2.27l-1.63,-1.75l-1.43,1.03l-0.52,-2.96l-2.03,-0.55l-0.96,6.13l-0.36,5.11l-2.44,3.14l3.8,-0.6l0.96,3.65l3.99,-3.23l2.78,-3.38l1.57,2.86l4.36,1.51L250.65,230.6zM130.12,178.05l7.38,-4.18V170l3.48,-6.41l6.88,-6.69l3.52,-2.47l-3.01,-4.2l-2.72,-2.95l-7.16,-0.57l-4,-2.16l-9.48,1.63l2.74,6.23l-2.43,6.43l-1.94,6.87l-1.2,3.86l6.47,4.69L130.12,178.05zM264.36,205.36l0.32,-1.01l-0.03,-3.17l-2.19,-2.08l-2.57,1.05l-1.19,4.17l0.7,3.56l3.14,-0.36L264.36,205.36zM288.18,212.9l4.41,6.6l3.45,2.85l4.92,-7.87l0.87,-4.93l-4.41,-0.47l-4.03,-6.7l-4.45,-1.64l-6.6,-4.97l5.15,-3.63l-2.65,-7.54l-2.44,-3.35l-6.77,-3.35l-2.92,-5.55l-5.21,1.99l-0.36,-3.86l-3.86,-4.32l-6.22,-4.71l-2.65,3.71l-5.55,2.66l0.42,-6.06l-4.81,-10.05l-7.11,4.06l-2.59,7.7l-2.21,-5.92l2.06,-6.37l-7.24,2.65l-2.88,3.99l-2.15,8.42l0.89,9.05l3.98,0.04l-2.93,3.92l2.33,2.96l4.55,1.25l5.93,2.42l10.2,1.82l5.08,-1.04l1.5,-2.42l2.21,2.79l2.47,0.46l2.97,4.96l-1.8,1.98l5.68,2.63l4.29,3.68l1.08,2.55l0.77,3.24l-3.63,6.93l-0.98,3.44l0.94,2.42l-5.77,0.86l-5.27,0.12l-1.85,4.87l2.37,2.23l8.11,-1.03l-0.04,-1.89l4.08,3.15l4.18,3.28l-0.98,1.77l3.4,3.02l6.02,3.53l7.6,2.39l-0.46,-2.09l-2.92,-3.67l-3.96,-5.37l7.03,5l3.54,1.66l0.97,-4.44l-1.82,-6.3l-1.16,-1.73l-3.81,-3.03l-2.95,-3.91l0.35,-3.94L288.18,212.9zM222.35,51.34l2.34,7.29l4.96,5.88l9.81,-1.09l6.31,1.97l-4.38,6.05l-2.21,-1.78l-7.66,-0.71l1.19,8.31l3.96,6.04l-0.8,5.2l-4.97,3.46l-2.27,5.47l4.55,2.65l3.82,8.55l-7.5,-5.7l-1.71,0.94l1.38,9.38l-5.18,2.83l0.35,5.85l5.3,0.63l4.17,1.44l8.24,-1.84l7.33,3.27l7.49,-7.19l-0.06,-3.02l-4.79,0.48l-0.39,-2.84l3.92,-3.83l1.33,-5.15l4.33,-3.83l2.66,-4.76l-2.32,-7.1l1.94,-2.65l-3.86,-1.89l8.49,-1.63l1.79,-3.15l5.78,-2.6l4.8,-13.47l4.57,-4.94l6.62,-11.12l-6.1,0.1l2.54,-4.3l6.78,-3.99l6.84,-8.9l0.12,-5.73l-5.13,-6.04l-6.02,-2.93l-7.49,-1.82l-6.07,-1.49l-6.07,-1.5l-8.1,3.98l-1.49,-2.53l-8.57,0.98l-5.03,2.57l-3.7,3.65l-2.13,11.74L239,24.52l-3.48,-1.14l-4.12,7.97l-5.5,3.35l-3.27,0.66l-4.17,3.84l0.61,6.65L222.35,51.34zM296.75,316.34l-0.98,-1.98l-1.06,1.26l0.7,1.36l3.56,1.71l1.04,-0.26l1.38,-1.66l-2.6,0.11L296.75,316.34zM239.75,238.48l0.61,1.63l1.98,0.14l3.28,-3.34l0.06,-1.19l-3.85,-0.06L239.75,238.48zM301.88,304.92l-2.87,-1.8l-3.69,-1.09l-0.97,0.37l2.61,2.04l3.63,1.34l1.36,-0.08L301.88,304.92zM326.76,309.71l-0.36,-2.24l-1.96,0.72l0.87,-3.11l-2.8,-1.32l-1.29,1.05l-2.49,-1.18l0.98,-1.51l-1.88,-0.93l-1.83,1.47l1.86,-3.82l1.5,-2.8l0.54,-1.22l-1.3,-0.2l-2.43,1.55l-1.74,2.53l-2.9,6.92l-2.35,2.56l1.22,1.14l-1.75,1.47l0.43,1.23l5.44,0.13l3.01,-0.25l2.69,1.01l-1.98,1.93l1.67,0.14l3.25,-3.58l0.78,0.53l-0.61,3.37l1.84,0.77l1.27,-0.15l1.18,-3.61L326.76,309.71zM305.57,314.47l-2.81,4.56l-4.63,0.58l-3.64,-2.01l-0.92,-3.07l-0.89,-4.46l2.65,-2.83l-2.48,-2.09l-4.19,0.43l-5.88,3.53l-4.5,5.45l-2.38,0.67l3.23,-3.8l4.04,-5.57l3.57,-1.9l2.35,-3.11l2.9,-0.3l4.21,0.03l6,0.92l4.74,-0.71l3.53,-3.62l4.62,-1.59l2.01,-1.58l2.04,-1.71l-0.2,-5.19l-1.13,-1.77l-2.18,-0.63l-1.11,-4.05l-1.8,-1.55l-4.47,-1.26l-2.52,-2.82l-3.73,-2.83l1.13,-3.2l-3.1,-6.26l-3.65,-6.89l-2.18,-4.98l-1.86,2.61l-2.68,6.05l-4.06,2.97l-2.03,-3.16l-2.56,-0.85l-0.93,-6.99l0.08,-4.8l-5,-0.44l-0.85,-2.27l-3.45,-3.44l-2.61,-2.04l-2.32,1.58l-2.88,-0.58l-4.81,-1.65l-1.95,1.4l0.94,9.18l1.22,5.12l-3.31,5.75l3.41,4.02l1.9,4.44l0.23,3.42l-1.55,3.5l-3.18,3.46l-4.49,2.28l1.98,2.53l1.46,7.4l-1.52,4.68l-2.16,1.46l-4.17,-4.28l-2.03,-5.17l-0.87,-4.76l0.46,-4.19l-3.05,-0.47l-4.63,-0.28l-2.97,-2.08l-3.51,-1.37l-2.01,-2.38l-2.8,-1.94l-5.21,-2.23l-3.92,1.02l-1.31,-3.95l-1.26,-4.99l-4.12,-0.9l0.15,-6.41l1.09,-4.48l3.04,-6.6l3.43,-4.9l3.26,-0.77l0.19,-4.05l2.21,-2.68l4.01,-0.42l3.25,-4.39l0.82,-2.9l2.7,-5.73l0.84,-3.5l2.9,2.11l3.9,-1.08l5.49,-4.96l0.36,-3.54l-1.98,-3.98l2.09,-4.06l-0.17,-3.87l-3.76,-3.95l-4.14,-1.19l-3.98,-0.62l-0.15,8.71l-2.04,6.56l-2.93,5.3l-2.71,-4.95l0.84,-5.61l-3.35,-5.02l-3.75,6.09l0.01,-7.99l-5.21,-1.63l2.49,-4.01l-3.81,-9.59l-2.84,-3.91l-3.7,-1.44l-3.32,6.43l-0.22,9.34l3.27,3.29l3,4.91l-1.27,7.71l-2.26,-0.2l-1.78,5.88l0.02,-7l-4.34,-2.58l-2.49,1.33l0.32,4.67l-4.09,-0.18l-4.35,1.17l-4.95,-3.35l-3.13,0.6l-2.82,-4.11l-2.26,-1.84l-2.24,0.77l-3.41,0.35l-1.81,2.61l2.86,3.19l-3.05,3.72l-2.99,-4.42l-2.39,1.3l-7.57,0.87l-5.07,-1.59l3.94,-3.74l-3.78,-3.9l-2.75,0.5l-3.86,-1.32l-6.56,-2.89l-4.29,-3.37l-3.4,-0.47l-1.06,2.36l-3.44,1.31l-0.38,-6.15l-3.73,5.5l-4.74,-7.32l-1.94,-0.89l-0.63,3.91l-2.09,1.9l-1.93,-3.39l-4.59,2.05l-4.2,3.55l-4.17,-0.98l-3.4,2.5l-2.46,3.28l-2.92,-0.72l-4.41,-3.8l-5.23,-1.94l-0.02,27.65l-0.01,35.43l2.76,0.17l2.73,1.56l1.96,2.44l2.49,3.6l2.73,-3.05l2.81,-1.79l1.49,2.85l1.89,2.23l2.57,2.42l1.75,3.79l2.87,5.88l4.77,3.2l0.08,3.12l-1.56,2.35l0.06,2.48l3.39,3.45l0.49,3.76l3.59,1.96l-0.4,2.79l1.56,3.96l5.08,1.82l2,1.89l5.43,4.23l0.38,0.01h7.96h8.32h2.76h8.55h8.27h8.41l8.42,0l9.53,0l9.59,0l5.8,0l0.01,-1.64l0.95,-0.02l0.5,2.35l0.87,0.72l1.96,0.26l2.86,0.67l2.72,1.3l2.27,-0.55l3.45,1.09l1.14,-1.66l1.59,-0.66l0.62,-1.03l0.63,-0.55l2.61,0.86l1.93,0.1l0.67,0.57l0.94,2.38l3.15,0.63l-0.49,1.18l1.11,1.21l-0.48,1.56l1.18,0.51l-0.59,1.37l0.75,0.13l0.53,-0.6l0.55,0.9l2.1,0.5l2.13,0.04l2.27,0.41l2.51,0.78l0.91,1.26l1.82,3.04l-0.9,1.3l-2.28,-0.54l-1.42,-2.44l0.36,2.49l-1.34,2.17l0.15,1.84l-0.23,1.07l-1.81,1.27l-1.32,2.09l-0.62,1.32l1.54,0.24l2.08,-1.2l1.23,-1.06l0.83,-0.17l1.54,0.38l0.75,-0.59l1.37,-0.48l2.44,-0.47v0l0,0l-0.25,-1.15l-0.13,0.04l-0.86,0.2l-1.12,-0.36l0.84,-1.32l0.85,-0.46l1.98,-0.56l2.37,-0.53l1.24,0.73l0.78,-0.85l0.89,-0.54l0.6,0.29l0.03,0.06l2.87,-2.73l1.27,-0.73l4.26,-0.03l5.17,0l0.28,-0.98l0.9,-0.2l1.19,-0.62l1,-1.82l0.86,-3.15l2.14,-3.1l0.93,1.08l1.88,-0.7l1.25,1.19l0,5.52l1.83,2.25l3.12,-0.48l4.49,-0.13l-4.87,3.26l0.11,3.29l2.13,0.28l3.13,-2.79l2.78,-1.58l6.21,-2.35l3.47,-2.62l-1.81,-1.46L305.57,314.47zM251.91,243.37l1.1,-3.12l-0.71,-1.23l-1.15,-0.13l-1.08,1.8l-0.13,0.41l0.74,1.77L251.91,243.37zM109.25,279.8L109.25,279.8l1.56,-2.35L109.25,279.8z"},{id:"CD",title:"Democratic Republic of Congo",d:"M561.71,453.61L561.54,456.87L562.66,457.24L561.76,458.23L560.68,458.97L559.61,460.43L559.02,461.72L558.86,463.96L558.21,465.02L558.19,467.12L557.38,467.9L557.28,469.56L556.89,469.77L556.63,471.3L557.34,472.56L557.52,475.93L558.02,478.5L557.74,479.96L558.3,481.58L559.93,483.15L561.44,486.7L560.34,486.41L556.57,486.89L555.82,487.22L555.02,489.02L555.65,490.27L555.15,493.62L554.8,496.47L555.56,496.98L557.52,498.08L558.29,497.57L558.53,500.65L556.38,500.62L555.23,499.05L554.2,497.83L552.05,497.43L551.42,495.94L549.7,496.84L547.46,496.44L546.52,495.15L544.74,494.89L543.43,494.96L543.27,494.08L542.3,494.01L541.02,493.84L539.29,494.26L538.07,494.19L537.37,494.45L537.52,491.08L536.59,490.03L536.38,488.3L536.79,486.6L536.23,485.51L536.18,483.75L532.77,483.77L533.02,482.76L531.59,482.77L531.44,483.26L529.7,483.37L528.99,485L528.57,485.71L527.02,485.31L526.1,485.71L524.24,485.93L523.17,484.46L522.53,483.55L521.72,481.87L521.03,479.78L512.76,479.75L511.77,480.08L510.96,480.03L509.8,480.41L509.41,479.54L510.12,479.24L510.21,478.02L510.67,477.3L511.69,476.72L512.43,477L513.39,475.93L514.91,475.96L515.09,476.75L516.14,477.25L517.79,475.49L519.42,474.13L520.13,473.24L520.04,470.94L521.26,468.23L522.54,466.8L524.39,465.46L524.71,464.57L524.78,463.55L525.24,462.58L525.09,461L525.44,458.53L525.99,456.79L526.83,455.3L526.99,453.62L527.24,451.67L528.34,450.25L529.84,449.35L532.15,450.3L533.93,451.33L535.98,451.61L538.07,452.15L538.91,450.47L539.3,450.25L540.57,450.53L543.7,449.14L544.8,449.73L545.71,449.65L546.13,448.97L547.17,448.73L549.28,449.02L551.08,449.08L552.01,448.79L553.7,451.1L554.96,451.43L555.71,450.96L557.01,451.15L558.57,450.56L559.24,451.75z"},{id:"CF",title:"Central African Republic",d:"M518.09,442.66L520.41,442.44L520.93,441.72L521.39,441.78L522.09,442.41L525.62,441.34L526.81,440.24L528.28,439.25L528,438.26L528.79,438L531.5,438.18L534.14,436.87L536.16,433.78L537.59,432.64L539.36,432.15L539.68,433.37L541.3,435.14L541.3,436.29L540.85,437.47L541.03,438.34L542,439.15L544.14,440.39L545.67,441.52L545.7,442.44L547.58,443.9L548.75,445.11L549.46,446.79L551.56,447.9L552.01,448.79L551.08,449.08L549.28,449.02L547.17,448.73L546.13,448.97L545.71,449.65L544.8,449.73L543.7,449.14L540.57,450.53L539.3,450.25L538.91,450.47L538.07,452.15L535.98,451.61L533.93,451.33L532.15,450.3L529.84,449.35L528.34,450.25L527.24,451.67L526.99,453.62L525.19,453.46L523.29,452.99L521.62,454.47L520.15,457.07L519.85,456.26L519.73,454.99L518.45,454.09L517.41,452.65L517.17,451.65L515.85,450.19L516.07,449.36L515.79,448.18L516.01,446.01L516.68,445.5z"},{id:"CG",title:"Republic of Congo",d:"M511.69,476.72L510.64,475.76L509.79,476.23L508.66,477.43L506.36,474.48L508.49,472.94L507.44,471.09L508.4,470.39L510.29,470.05L510.51,468.81L512.01,470.15L514.49,470.27L515.35,468.95L515.7,467.1L515.39,464.92L514.07,463.28L515.28,460.05L514.58,459.5L512.5,459.72L511.71,458.29L511.92,457.07L515.45,457.18L517.72,457.91L519.95,458.57L520.15,457.07L521.62,454.47L523.29,452.99L525.19,453.46L526.99,453.62L526.83,455.3L525.99,456.79L525.44,458.53L525.09,461L525.24,462.58L524.78,463.55L524.71,464.57L524.39,465.46L522.54,466.8L521.26,468.23L520.04,470.94L520.13,473.24L519.42,474.13L517.79,475.49L516.14,477.25L515.09,476.75L514.91,475.96L513.39,475.93L512.43,477z"},{id:"CH",title:"Switzerland",d:"M502.15,312.34L502.26,313.08L501.83,314.09L503.1,314.83L504.53,314.94L504.31,316.61L503.08,317.3L501,316.79L500.39,318.42L499.06,318.55L498.57,317.91L497,319.27L495.65,319.46L494.44,318.6L493.48,316.83L492.14,317.47L492.18,315.63L494.23,313.32L494.14,312.27L495.42,312.66L496.19,311.95L498.57,311.98L499.15,311.08z"},{id:"CI",title:"Côte d'Ivoire",d:"M467.24,449.46L465.97,449.49L464.01,448.94L462.22,448.97L458.89,449.46L456.95,450.27L454.17,451.29L453.63,451.22L453.84,448.92L454.11,448.57L454.03,447.46L452.84,446.29L451.95,446.1L451.13,445.33L451.74,444.09L451.46,442.73L451.59,441.91L452.04,441.91L452.2,440.68L451.98,440.14L452.25,439.75L453.29,439.41L452.6,437.15L451.95,435.99L452.18,435.02L452.74,434.81L453.1,434.55L453.88,434.97L456.04,435L456.56,434.17L457.04,434.23L457.85,433.91L458.29,435.12L458.94,434.76L460.1,434.34L461.36,434.96L461.85,435.89L463.11,436.49L464.09,435.78L465.41,435.67L467.33,436.4L468.07,440.41L466.89,442.77L466.16,445.94L467.37,448.35z"},{id:"CL",title:"Chile",d:"M282.81,636.73l0,10.57l3,0l1.69,0.13l-0.93,1.98l-2.4,1.53l-1.38,-0.16l-1.66,-0.4l-2.04,-1.48l-2.94,-0.71l-3.53,-2.71l-2.86,-2.57l-3.86,-5.25l2.31,0.97l3.94,3.13l3.72,1.7l1.45,-2.17l0.91,-3.2l2.58,-1.91L282.81,636.73zM283.97,524.72l1.1,4.15l2.02,-0.41l0.34,0.76l-0.96,3.16l-3.05,1.51l0.09,5.14l-0.59,1l0.84,1.23l-1.98,1.95l-1.84,2.96l-1,2.9l0.27,3.11l-1.73,3.34l1.29,5.69l0.73,0.61l-0.01,3.09l-1.6,3.31l0.06,2.87l-2.12,2.26l0.01,3.22l0.85,3.46l-1.68,1.3l-0.75,3.22l-0.66,3.75l0.47,4.54l-1.13,0.77l0.65,4.4l1.27,1.46l-0.92,1.63l1.3,0.78l0.3,1.48l-1.22,0.75l0.3,2.33l-1.02,5.35l-1.49,3.52l0.33,2.11l-0.89,2.68l-2.15,1.88l0.25,4.6l0.99,1.6l1.87,-0.28l-0.05,3.33l1.16,2.63l6.78,0.61l2.6,0.71l-2.49,-0.03l-1.35,1.13l-2.53,1.67l-0.45,4.38l-1.19,0.11l-3.16,-1.54l-3.21,-3.25l0,0l-3.49,-2.63l-0.88,-2.87l0.79,-2.62l-1.41,-2.94l-0.36,-7.34l1.19,-4.03l2.96,-3.19l-4.26,-1.19l2.67,-3.57l0.95,-6.56l3.12,1.37l1.46,-7.97l-1.88,-1l-0.88,4.75l-1.77,-0.54l0.88,-5.42l0.96,-6.84l1.29,-2.48l-0.81,-3.5l-0.23,-3.98l1.18,-0.11l1.72,-5.6l1.94,-5.43l1.19,-4.97l-0.65,-4.91l0.84,-2.67l-0.34,-3.96l1.64,-3.87l0.51,-6.04l0.9,-6.37l0.88,-6.75l-0.21,-4.87l-0.58,-4.15l1.44,-0.75l0.75,-1.5l1.37,1.99l0.37,2.12l1.47,1.25l-0.88,2.87L283.97,524.72z"},{id:"CM",title:"Cameroon",d:"M511.92,457.07L511.57,456.92L509.91,457.28L508.2,456.9L506.87,457.09L502.31,457.02L502.72,454.82L501.62,452.98L500.34,452.5L499.77,451.25L499.05,450.85L499.09,450.08L499.81,448.1L501.14,445.4L501.95,445.37L503.62,443.73L504.69,443.69L506.26,444.84L508.19,443.89L508.45,442.73L509.08,441.59L509.51,440.17L511.01,439.01L511.58,437.04L512.17,436.41L512.57,434.94L513.31,433.13L515.67,430.93L515.82,429.98L516.13,429.47L515.02,428.33L515.11,427.43L515.9,427.26L517.01,429.09L517.2,430.98L517.1,432.87L518.62,435.44L517.06,435.41L516.27,435.61L514.99,435.33L514.38,436.66L516.03,438.31L517.25,438.79L517.65,439.96L518.53,441.89L518.09,442.66L516.68,445.5L516.01,446.01L515.79,448.18L516.07,449.36L515.85,450.19L517.17,451.65L517.41,452.65L518.45,454.09L519.73,454.99L519.85,456.26L520.15,457.07L519.95,458.57L517.72,457.91L515.45,457.18z"},{id:"CN",title:"China",d:"M785.88,406.27l0.63,1.13l-1.23,1.3l-0.65,1.7l-2.42,1.41l-2.3,-0.91l-0.08,-2.53l1.38,-1.34l3.06,-0.83L785.88,406.27zM849.21,309.6l-2.43,1.65l-4.26,0l-1.13,-3.95l-3.32,-3.03l-4.88,-1.38l-1.04,-4.28l-0.98,-2.73l-1.05,-1.94l-1.73,-4.61l-2.46,-1.71l-4.2,-1.39l-3.72,0.13l-3.48,0.84l-2.32,2.31l1.54,1.1l0.04,2.52l-1.56,1.45l-2.53,4.73l0.03,1.93l-3.95,2.74l-3.37,-1.63l-1.37,3.25l-1.98,4.23l0.72,1.71l1.59,-0.53l2.77,0.65l2.16,-1.54l2.25,1.33l2.54,2.89l-0.31,1.45l-2.21,-0.46l-4.07,0.54l-1.97,1.16l-2.05,2.66l-4.28,1.55l-2.79,2.1l-2.88,-0.8l-1.58,-0.36l-1.47,2.54l0.9,1.5l0.45,1.28l-1.96,1.3l-2.01,2.05l-3.28,1.34l-4.2,0.14l-4.53,1.31l-3.26,2.01l-1.24,-1.16l-3.39,0l-4.15,-2.29l-2.77,-0.57l-3.73,0.53l-5.79,-0.85l-3.09,0.09l-1.65,-2.27l-1.28,-3.57l-1.73,-0.43l-3.39,-2.45l-3.78,-0.55l-3.33,-0.68l-1.01,-1.73l1.08,-4.73l-1.93,-3.32l-4,-1.57l-2.36,-2.23l-0.74,-2.97l-1.1,0.35l-2.13,2.83l-2.33,0.39l-0.13,4.19l-1.56,1.86l-5.56,-1.35l-2.02,7.26l-1.44,0.89l-5.55,1.58l2.52,6.75l-1.92,1l0.22,2.17l-0.39,0.85l-4.42,2.03l-1,1.48l-3.6,0.44l-1.06,2.35l-2.97,-0.49l-1.94,0.72l-2.68,1.73l0.39,0.85l-0.8,0.83l0.71,3.32l0.92,-0.36l1.7,0.81l-0.1,1.38l0.42,2.01l0.5,1.01l2.07,1.63l0.83,2.66l4.42,1.33l0.14,-0.04l3.88,-1.37l2.88,1.37l-0.91,2.76l-1.6,2.23l-1.24,0.1h-0.05l-0.18,1.74l1.12,1.71l-0.09,1.69l-2.01,-0.44l0.79,3.63l2.75,2.07l3.9,2.26l1.16,-0.77l2.25,0.99l2.83,2.09l1.58,0.46l0.94,1.53l2.18,0.63l2.28,1.39l3.17,0.73l3.27,0.31l1.71,-0.66l0.24,2.48l1.85,-2.34l1.51,-0.8l2,0.73l1.48,0.08l1.23,0.85l2.26,-0.39l2.55,-2.36l3.23,-2.03l2.35,0.78l2,-1.35l1.31,1.99l-0.95,1.33l3.02,0.47l1.64,-0.24l0.94,1.86l1.22,0.75l0.08,2.4l-0.11,2.57l-2.66,2.58l-0.34,3.63l2.96,-0.51l0.67,2.8l1.78,0.59l-0.82,2.51l2.08,1.13l1.21,0.55l2.06,-0.87l0.08,1.24l0.25,0.7l1.5,0.08l-0.42,-3.43l1.45,-0.44l1.5,-0.74l2.24,0.02l2.73,-0.35l2.39,-1.62l1.35,1.14l2.56,0.55l-0.44,1.74l1.33,1.22l2.82,0.78l1.33,-0.49l3.76,0.96l-0.66,1.16l0.74,2.16l1.55,-0.17l0.96,-3.15l2.97,-0.46l3.92,-1.5l1.59,-1.5l0.97,0.98l1.71,-1.34l3.16,-0.35l3.9,-2.55l3.86,-2.82l2.6,-3.68l2.27,-4.09l2.05,-3.41l1.57,-0.28l0.71,-2.52l0.43,-2.61l-1.65,-1l-0.67,-1.73l1.76,-0.89l0.05,-2.43l-1.9,-2.53l-1.71,-3.05l-1.1,-3.31l-3.02,-1.86l1.44,-2.39l2.73,-1.73l1.31,-1.87l3.97,-0.97l-0.46,-1.84l-1.81,-0.09l-2.49,-1.37l-3.14,2.51l-2.22,-1.02l-0.09,-1.58l-2.29,-0.58l-1.48,-2.41l1.43,-1.68l2.75,-0.17l1.73,-2.34l3.17,-2.54l2.44,-1.3l1.48,1.93l-2.22,2.45l0.59,1.41l-1.49,1.67l3.02,-0.98l2.06,-1.69l3.92,-1.06l2.28,-2.35l3.09,-1.98l1.93,-2.64l1.33,1.17l2.42,0.14l-0.44,-1.97l4.33,-1.62l1.11,-2.13l1.81,2.24l-0.02,-1.93l1.43,-0.1l0.4,-4.55l-0.74,-3.36l2.41,-1.4l3.4,0.7l1.89,-3.89l0.96,-4.46l1.09,-1.51l1.47,-3.76L849.21,309.6z"},{id:"CO",title:"Colombia",d:"M263.92,463.81L262.72,463.15L261.34,462.23L260.54,462.67L258.16,462.28L257.48,461.08L256.96,461.13L254.15,459.54L253.77,458.67L254.82,458.46L254.7,457.07L255.35,456.06L256.74,455.87L257.93,454.12L259,452.66L257.96,451.99L258.49,450.37L257.86,447.81L258.46,447.08L258.02,444.71L256.88,443.21L257.24,441.85L258.15,442.05L258.68,441.21L258.03,439.56L258.37,439.14L259.81,439.23L261.92,437.26L263.07,436.96L263.1,436.03L263.62,433.64L265.23,432.32L266.99,432.27L267.21,431.68L269.41,431.91L271.62,430.48L272.71,429.84L274.06,428.47L275.06,428.64L275.79,429.39L275.25,430.35L273.45,430.83L272.74,432.25L271.65,433.06L270.84,434.12L270.49,436.13L269.72,437.79L271.16,437.97L271.52,439.27L272.14,439.89L272.36,441.02L272.03,442.06L272.13,442.65L272.82,442.88L273.49,443.86L277.09,443.59L278.72,443.95L280.7,446.36L281.83,446.06L283.85,446.21L285.45,445.89L286.44,446.38L285.93,447.88L285.31,448.82L285.09,450.83L285.65,452.68L286.45,453.51L286.54,454.14L285.12,455.53L286.14,456.14L286.89,457.12L287.74,459.89L287.21,460.24L286.67,458.59L285.89,457.71L284.96,458.67L279.5,458.61L279.53,460.35L281.17,460.64L281.08,461.71L280.52,461.42L278.94,461.88L278.93,463.9L280.17,464.92L280.61,466.51L280.54,467.72L279.28,475.37L277.88,473.88L277.04,473.82L278.85,470.98L276.7,469.67L275.02,469.91L274.01,469.43L272.46,470.17L270.37,469.82L268.72,466.9L267.42,466.18L266.53,464.86L264.67,463.54z"},{id:"CR",title:"Costa Rica",d:"M242.63,440.4L241.11,439.77L240.54,439.18L240.86,438.69L240.76,438.07L239.98,437.39L238.88,436.84L237.91,436.48L237.73,435.65L236.99,435.14L237.17,435.97L236.61,436.64L235.97,435.86L235.07,435.58L234.69,435.01L234.71,434.15L235.08,433.25L234.29,432.85L234.93,432.31L235.35,431.94L237.2,432.69L237.84,432.32L238.73,432.56L239.2,433.14L240.02,433.33L240.69,432.73L241.41,434.27L242.49,435.41L243.81,436.62L242.72,436.87L242.74,438L243.32,438.42L242.9,438.76L243.01,439.27L242.78,439.84z"},{id:"CU",title:"Cuba",d:"M244.58,396.94L247.01,397.16L249.21,397.19L251.84,398.22L252.96,399.33L255.58,398.99L256.57,399.69L258.95,401.56L260.69,402.91L261.61,402.87L263.29,403.48L263.08,404.32L265.15,404.44L267.27,405.66L266.94,406.35L265.07,406.73L263.18,406.88L261.25,406.64L257.24,406.93L259.12,405.27L257.98,404.5L256.17,404.3L255.2,403.44L254.53,401.74L252.95,401.85L250.33,401.05L249.49,400.42L245.84,399.95L244.86,399.36L245.91,398.61L243.16,398.46L241.15,400.02L239.98,400.06L239.58,400.8L238.2,401.13L237,400.84L238.48,399.91L239.08,398.82L240.35,398.15L241.78,397.56L243.91,397.27z"},{id:"CY",title:"Cyprus",d:"M570.31,358.29L572.2,356.83L569.65,357.85L567.63,357.8L567.23,358.63L567.03,358.65L565.7,358.77L566.35,360.14L567.72,360.58L570.6,359.2L570.51,358.93z"},{id:"CZ",title:"Czech Republic",d:"M522.81,307.86L521.51,307.06L520.2,307.28L518.02,305.98L517.03,306.3L515.46,308.04L513.37,306.67L511.79,304.84L510.36,303.8L510.06,301.98L509.57,300.68L511.61,299.73L512.65,298.63L514.66,297.77L515.37,296.93L516.11,297.44L517.36,296.97L518.69,298.4L520.78,298.79L520.61,300L522.13,300.9L522.55,299.77L524.47,300.26L524.74,301.63L526.82,301.89L528.11,304.02L527.28,304.03L526.84,304.8L526.2,304.99L526.02,305.96L525.48,306.17L525.4,306.56L524.45,307L523.2,306.93z"},{id:"DE",title:"Germany",d:"M503.07,278.92L503.12,280.8L505.96,281.92L505.93,283.62L508.78,282.72L510.35,281.41L513.52,283.3L514.84,284.81L515.5,287.2L514.72,288.45L515.73,290.1L516.43,292.55L516.21,294.11L517.36,296.97L516.11,297.44L515.37,296.93L514.66,297.77L512.65,298.63L511.61,299.73L509.57,300.68L510.06,301.98L510.36,303.8L511.79,304.84L513.37,306.67L512.39,308.62L511.38,309.16L511.78,311.88L511.51,312.58L510.64,311.73L509.3,311.61L507.29,312.35L504.82,312.17L504.42,313.26L503,312.12L502.15,312.34L499.15,311.08L498.57,311.98L496.19,311.95L496.54,308.97L497.96,306.07L493.92,305.29L492.6,304.16L492.76,302.27L492.2,301.29L492.52,298.32L492.04,293.63L493.73,293.63L494.44,291.92L495.14,287.69L494.61,286.11L495.16,285.11L497.5,284.85L498.02,285.89L499.93,283.56L499.29,281.77L499.16,279.02L501.28,279.66z"},{id:"DJ",title:"Djibouti",d:"M596.05,427.72L596.71,428.6L596.62,429.79L595.02,430.47L596.23,431.24L595.19,432.76L594.57,432.26L593.9,432.46L592.33,432.41L592.28,431.55L592.07,430.76L593.01,429.43L594,428.17L595.2,428.42z"},{id:"DK",title:"Denmark",d:"M510.83,275.84l-1.68,3.97l-2.93,-2.76l-0.39,-2.05l4.11,-1.66L510.83,275.84zM505.85,271.59l-0.69,1.9l-0.83,-0.55l-2.02,3.59l0.76,2.39l-1.79,0.74l-2.12,-0.64l-1.14,-2.72l-0.08,-5.12l0.47,-1.38l0.8,-1.54l2.47,-0.32l0.98,-1.43l2.26,-1.47l-0.1,2.68l-0.83,1.68l0.34,1.43L505.85,271.59z"},{id:"DO",title:"Dominican Republic",d:"M274.18,407.35L274.53,406.84L276.72,406.86L278.38,407.62L279.12,407.54L279.63,408.59L281.16,408.53L281.07,409.41L282.32,409.52L283.7,410.6L282.66,411.8L281.32,411.16L280.04,411.28L279.12,411.14L278.61,411.68L277.53,411.86L277.11,411.14L276.18,411.57L275.06,413.57L274.34,413.11L274.19,412.27L274.25,411.47L273.53,410.59L274.21,410.09L274.43,408.96z"},{id:"DZ",title:"Algeria",d:"M508.9,396.08L499.29,401.83L491.17,407.68L487.22,409L484.11,409.29L484.08,407.41L482.78,406.93L481.03,406.08L480.37,404.69L470.91,398.14L461.45,391.49L450.9,383.96L450.96,383.35L450.96,383.14L450.93,379.39L455.46,377.03L458.26,376.54L460.55,375.68L461.63,374.06L464.91,372.77L465.03,370.36L466.65,370.07L467.92,368.86L471.59,368.3L472.1,367.02L471.36,366.31L470.39,362.78L470.23,360.73L469.17,358.55L471.86,356.68L474.9,356.08L476.67,354.65L479.37,353.6L484.12,352.98L488.76,352.69L490.17,353.21L492.81,351.84L495.81,351.81L496.95,352.62L498.86,352.41L498.29,354.2L498.74,357.48L498.08,360.3L496.35,362.18L496.6,364.71L498.89,366.69L498.92,367.5L500.64,368.83L501.84,374.69L502.75,377.53L502.9,379.01L502.41,381.6L502.61,383.04L502.25,384.76L502.5,386.73L501.38,388.02L503.04,390.28L503.15,391.6L504.14,393.31L505.45,392.75L507.67,394.17z"},{id:"EC",title:"Ecuador",d:"M250.1,472.87L251.59,470.79L250.98,469.57L249.91,470.87L248.23,469.64L248.8,468.86L248.33,466.33L249.31,465.91L249.83,464.18L250.89,462.38L250.69,461.25L252.23,460.65L254.15,459.54L256.96,461.13L257.48,461.08L258.16,462.28L260.54,462.67L261.34,462.23L262.72,463.15L263.92,463.81L264.31,465.92L263.44,467.73L260.38,470.65L257.01,471.75L255.29,474.18L254.76,476.06L253.17,477.21L252,475.8L250.86,475.5L249.7,475.72L249.63,474.7L250.43,474.04z"},{id:"EE",title:"Estonia",d:"M543.42,264.71L543.75,261.59L542.72,262.26L540.94,260.36L540.69,257.25L544.24,255.72L547.77,254.91L550.81,255.83L553.71,255.66L554.13,256.62L552.14,259.76L552.97,264.72L551.77,266.38L549.45,266.37L547.04,264.43L545.81,263.78z"},{id:"EG",title:"Egypt",d:"M573.17,377.28L572.38,378.57L571.78,380.97L571.02,382.61L570.36,383.17L569.43,382.15L568.16,380.73L566.16,376.16L565.88,376.45L567.04,379.82L568.76,383L570.88,387.88L571.91,389.56L572.81,391.3L575.33,394.7L574.77,395.23L574.86,397.2L578.13,399.91L578.62,400.53L567.5,400.53L556.62,400.53L545.35,400.53L545.35,389.3L545.35,378.12L544.51,375.54L545.23,373.54L544.8,372.15L545.81,370.58L549.54,370.53L552.24,371.39L555.02,372.36L556.32,372.86L558.48,371.83L559.63,370.9L562.11,370.63L564.1,371.04L564.87,372.66L565.52,371.59L567.76,372.36L569.95,372.55L571.33,371.73z"},{id:"ER",title:"Eritrea",d:"M594,428.17L593.04,427.24L591.89,425.57L590.65,424.65L589.92,423.65L587.48,422.5L585.56,422.47L584.88,421.86L583.24,422.54L581.54,421.23L580.66,423.38L577.4,422.78L577.1,421.63L578.31,417.38L578.58,415.45L579.46,414.55L581.53,414.07L582.95,412.4L584.58,415.78L585.35,418.45L586.89,419.86L590.71,422.58L592.27,424.22L593.79,425.88L594.67,426.86L596.05,427.72L595.2,428.42z"},{id:"ES",title:"Spain",d:"M449.92,334.56L450.06,331.88L448.92,330.22L452.88,327.45L456.31,328.15L460.08,328.12L463.06,328.78L465.39,328.58L469.92,328.7L471.04,330.19L476.2,331.92L477.22,331.1L480.38,332.82L483.63,332.33L483.78,334.52L481.12,337.01L477.53,337.79L477.28,339.03L475.55,341.06L474.47,344.02L475.56,346.07L473.94,347.67L473.34,349.97L471.22,350.67L469.23,353.36L465.68,353.41L463,353.35L461.25,354.57L460.18,355.88L458.8,355.59L457.77,354.42L456.97,352.42L454.35,351.88L454.12,350.72L455.16,349.4L455.54,348.44L454.58,347.38L455.35,345.03L454.23,342.86L455.44,342.56L455.55,340.84L456.01,340.31L456.04,337.43L457.34,336.43L456.56,334.55L454.92,334.42L454.44,334.89L452.79,334.9L452.08,333.06L450.94,333.61z"},{id:"ET",title:"Ethiopia",d:"M581.54,421.23L583.24,422.54L584.88,421.86L585.56,422.47L587.48,422.5L589.92,423.65L590.65,424.65L591.89,425.57L593.04,427.24L594,428.17L593.01,429.43L592.07,430.76L592.28,431.55L592.33,432.41L593.9,432.46L594.57,432.26L595.19,432.76L594.58,433.77L595.62,435.33L596.65,436.69L597.72,437.7L606.89,441.04L609.25,441.02L601.32,449.44L597.67,449.56L595.17,451.53L593.38,451.58L592.61,452.46L590.69,452.46L589.56,451.52L587,452.69L586.17,453.85L584.3,453.63L583.68,453.31L583.02,453.38L582.14,453.36L578.59,450.98L576.64,450.98L575.68,450.07L575.68,448.5L574.22,448.03L572.57,444.98L571.29,444.33L570.79,443.21L569.37,441.84L567.65,441.64L568.61,440.03L570.09,439.96L570.51,439.1L570.48,436.57L571.31,433.61L572.63,432.81L572.92,431.65L574.12,429.48L575.81,428.06L576.95,425.25L577.4,422.78L580.66,423.38z"},{id:"FK",title:"Falkland Islands",d:"M303.66,633.13L307.02,630.44L309.41,631.56L311.09,629.77L313.33,631.78L312.49,633.36L308.7,634.72L307.44,633.13L305.06,635.18z"},{id:"FI",title:"Finland",d:"M555.42,193.1L555.01,198.5L559.31,203.49L556.72,208.97L559.98,216.93L558.09,222.69L560.62,227.55L559.47,231.69L563.62,235.95L562.56,239.05L559.96,242.5L553.96,249.91L548.87,250.36L543.94,252.43L539.38,253.61L537.75,250.54L535.04,248.67L535.66,242.95L534.3,237.54L535.64,233.96L538.18,230.02L544.59,223L546.47,221.61L546.17,218.77L542.27,215.55L541.33,212.85L541.25,201.73L536.88,196.58L533.14,192.77L534.82,190.69L537.94,194.84L541.6,194.45L544.61,196.32L547.28,192.88L548.66,187.03L553.01,184.25L556.61,187.51z"},{id:"FJ",title:"Fiji",d:"M980.53,508.61l-0.35,1.4l-0.23,0.16l-1.78,0.72l-1.79,0.61l-0.36,-1.09l1.4,-0.6l0.89,-0.16l1.64,-0.91L980.53,508.61zM974.69,512.92l-1.27,-0.36l-1.08,1l0.27,1.29l1.55,0.36l1.74,-0.4l0.46,-1.53l-0.96,-0.84L974.69,512.92z"},{id:"FR",title:"France",d:"M502.06,333.54l-0.93,2.89l-1.27,-0.76l-0.65,-2.53l0.57,-1.41l1.81,-1.45L502.06,333.54zM485.31,300.19l1.96,2.06l1.44,-0.34l2.45,1.97l0.63,0.37l0.81,-0.09l1.32,1.12l4.04,0.79l-1.42,2.9l-0.36,2.98l-0.77,0.71l-1.28,-0.38l0.09,1.05l-2.05,2.3l-0.04,1.84l1.34,-0.63l0.96,1.77l-0.12,1.13l0.83,1.5l-0.97,1.21l0.72,3.04l1.52,0.49l-0.32,1.68l-2.54,2.17l-5.53,-1.04l-4.08,1.24l-0.32,2.29l-3.25,0.49l-3.15,-1.72l-1.02,0.82l-5.16,-1.73l-1.12,-1.49l1.45,-2.32l0.53,-7.88l-2.89,-4.26l-2.07,-2.09l-4.29,-1.6l-0.28,-3.07l3.64,-0.92l4.71,1.09l-0.89,-4.84l2.65,1.85l6.53,-3.37l0.84,-3.61l2.45,-0.9l0.41,1.56l1.3,0.07L485.31,300.19z"},{id:"GA",title:"Gabon",d:"M506.36,474.48L503.48,471.66L501.62,469.36L499.92,466.48L500.01,465.56L500.62,464.66L501.3,462.64L501.87,460.57L502.82,460.41L506.89,460.44L506.87,457.09L508.2,456.9L509.91,457.28L511.57,456.92L511.92,457.07L511.71,458.29L512.5,459.72L514.58,459.5L515.28,460.05L514.07,463.28L515.39,464.92L515.7,467.1L515.35,468.95L514.49,470.27L512.01,470.15L510.51,468.81L510.29,470.05L508.4,470.39L507.44,471.09L508.49,472.94z"},{id:"GB",title:"United Kingdom",d:"M459.38,281l-1.5,3.29l-2.12,-0.98l-1.73,0.07l0.58,-2.57l-0.58,-2.6l2.35,-0.2L459.38,281zM466.83,260.24l-3,5.73l2.86,-0.72l3.07,0.03l-0.73,4.22l-2.52,4.53l2.9,0.32l0.22,0.52l2.5,5.79l1.92,0.77l1.73,5.41l0.8,1.84l3.4,0.88l-0.34,2.93l-1.43,1.33l1.12,2.33l-2.52,2.33l-3.75,-0.04l-4.77,1.21l-1.31,-0.87l-1.85,2.06l-2.59,-0.5l-1.97,1.67l-1.49,-0.87l4.11,-4.64l2.51,-0.97l-0.02,0l-4.38,-0.75l-0.79,-1.8l2.93,-1.41l-1.54,-2.48l0.53,-3.06l4.17,0.42l0,0l0.41,-2.74l-1.88,-2.95l-0.04,-0.07l-3.4,-0.85l-0.67,-1.32l1.02,-2.2l-0.92,-1.37l-1.51,2.34l-0.16,-4.8l-1.42,-2.59l1.02,-5.36l2.18,-4.31l2.24,0.42L466.83,260.24z"},{id:"GE",title:"Georgia",d:"M591.76,335.85L592.18,334.25L591.48,331.68L589.86,330.27L588.31,329.83L587.28,328.66L587.62,328.2L589.99,328.86L594.12,329.48L597.94,331.31L598.43,332.02L600.13,331.42L602.75,332.22L603.6,333.77L605.37,334.64L604.64,335.15L606.02,337.17L605.64,337.6L604.13,337.38L602.04,336.32L601.35,336.92L597.45,337.5L594.75,335.68z"},{id:"GF",title:"French Guiana",d:"M327.89,456.41l-1.07,1.06l-1.34,0.2l-0.38,-0.78l-0.63,-0.12l-0.87,0.76l-1.22,-0.57l0.71,-1.19l0.24,-1.27l0.48,-1.2l-1.09,-1.65l-0.22,-1.91l1.46,-2.41l0.95,0.31l2.06,0.66l2.97,2.36l0.46,1.14l-1.66,2.55L327.89,456.41z"},{id:"GH",title:"Ghana",d:"M478.23,446.84L473.83,448.48L472.27,449.44L469.74,450.25L467.24,449.46L467.37,448.35L466.16,445.94L466.89,442.77L468.07,440.41L467.33,436.4L466.94,434.27L467.01,432.66L471.88,432.53L473.12,432.74L474.02,432.28L475.32,432.5L475.11,433.39L476.28,434.85L476.28,436.9L476.55,439.12L477.25,440.15L476.63,442.68L476.85,444.08L477.6,445.86z"},{id:"GL",title:"Greenland",d:"M344.13,23.91L353.55,10.3L363.39,11.37L366.96,2.42L376.87,0L399.27,3.15L416.81,21.74L411.63,30.04L400.9,30.97L385.81,33L387.22,36.64L397.15,34.4L405.59,41.31L411.04,35.19L413.37,42.34L410.29,53.31L417.43,46.38L431.04,38.83L439.45,42.64L441.02,50.76L429.59,63.42L428.01,67.32L419.05,70.18L425.54,70.97L422.26,82.48L420,92.07L420.09,107.33L423.46,115.67L419.08,116.18L414.47,120.06L419.64,126.36L420.3,135.98L417.3,137L420.93,146.15L414.71,146.9L417.96,151.04L417.04,154.55L413.09,156.06L409.18,156.09L412.69,162.57L412.73,166.7L407.18,162.87L405.74,165.36L409.52,167.65L413.2,173.13L414.26,180.08L409.26,181.7L407.1,178.44L403.63,173.46L404.59,179.33L401.34,183.74L408.72,184.09L412.59,184.54L405.07,191.57L397.45,197.7L389.25,200.31L386.16,200.35L383.26,203.22L379.36,210.85L373.33,215.74L371.39,216.03L367.65,217.7L363.63,219.29L361.22,223.41L361.18,227.97L359.77,232.13L355.19,237.08L356.32,241.79L355.06,246.64L353.63,252.2L349.68,252.54L345.54,247.91L339.93,247.88L337.21,244.7L335.34,238.9L330.48,231.22L329.06,227.07L328.68,221.18L324.79,214.91L325.8,209.74L323.93,207.21L326.7,198.56L330.92,195.71L332.03,192.45L332.62,186.19L329.41,189.05L327.89,190.24L325.37,191.38L321.93,188.77L321.74,183.22L322.84,178.74L325.44,178.62L331.16,180.87L326.34,175.44L323.83,172.43L321.04,173.67L318.7,171.48L321.83,162.98L320.13,159.45L317.9,152.71L314.53,141.8L310.96,137.63L310.99,133L303.46,126.31L297.51,125.46L290.02,125.93L283.18,126.79L279.92,123.04L275.05,115.38L282.41,111.41L288.06,110.73L276.06,107.37L269.74,101.93L270.13,96.59L280.74,89.72L291.01,82.56L292.09,76.92L284.53,71.16L286.97,64.52L296.68,52.19L300.76,50.21L299.59,41.64L306.23,36.4L314.85,33.19L323.47,33.01L326.53,39.31L333.97,27.99L340.66,35.77L344.59,37.36L350.42,43.77L343.75,33z"},{id:"GM",title:"Gambia",d:"M428.03,426.43L428.39,425.16L431.44,425.07L432.08,424.4L432.97,424.35L434.07,425.06L434.94,425.07L435.87,424.59L436.43,425.41L435.22,426.06L434,426.01L432.8,425.4L431.76,426.06L431.26,426.09L430.58,426.49z"},{id:"GN",title:"Guinea",d:"M451.59,441.91L450.8,441.84L450.23,442.97L449.43,442.96L448.89,442.36L449.07,441.23L447.9,439.51L447.17,439.82L446.57,439.89L445.8,440.05L445.83,439.02L445.38,438.28L445.47,437.46L444.86,436.27L444.08,435.26L441.84,435.26L441.19,435.79L440.41,435.85L439.93,436.46L439.61,437.25L438.11,438.49L436.88,436.82L435.79,435.71L435.07,435.35L434.37,434.78L434.06,433.53L433.65,432.91L432.83,432.44L434.08,431.06L434.93,431.11L435.66,430.63L436.28,430.63L436.72,430.25L436.48,429.31L436.79,429.01L436.84,428.04L438.19,428.07L440.21,428.77L440.83,428.7L441.04,428.39L442.56,428.61L442.97,428.45L443.13,429.5L443.58,429.49L444.31,429.11L444.77,429.21L445.55,429.93L446.75,430.16L447.52,429.54L448.43,429.16L449.1,428.76L449.66,428.84L450.28,429.46L450.62,430.25L451.77,431.44L451.19,432.17L451.08,433.09L451.68,432.81L452.03,433.15L451.88,433.99L452.74,434.81L452.18,435.02L451.95,435.99L452.6,437.15L453.29,439.41L452.25,439.75L451.98,440.14L452.2,440.68L452.04,441.91z"},{id:"GQ",title:"Equatorial Guinea",d:"M501.87,460.57L501.34,460.15L502.31,457.02L506.87,457.09L506.89,460.44L502.82,460.41z"},{id:"GR",title:"Greece",d:"M541.7,356.71l1.53,1.16l2.18,-0.2l2.09,0.24l-0.07,0.59l1.53,-0.41l-0.35,1.01l-4.04,0.29l0.03,-0.56l-3.42,-0.67L541.7,356.71zM549.85,335.75l-0.87,2.33l-0.67,0.41l-1.71,-0.1l-1.46,-0.35l-3.4,0.96l1.94,2.06l-1.42,0.59l-1.56,0l-1.48,-1.88l-0.53,0.8l0.63,2.18l1.4,1.7l-1.06,0.79l1.56,1.65l1.39,1.03l0.04,2l-2.59,-0.94l0.83,1.8l-1.78,0.37l1.06,3.08l-1.86,0.04l-2.3,-1.51l-1.05,-2.81l-0.49,-2.36l-1.09,-1.64l-1.44,-2.05l-0.19,-1.03l1.3,-1.76l0.17,-1.19l0.91,-0.53l0.06,-0.97l1.83,-0.33l1.07,-0.81l1.52,0.07l0.46,-0.65l0.53,-0.12l2.07,0.11l2.24,-1.02l1.98,1.3l2.55,-0.35l0.03,-1.86L549.85,335.75z"},{id:"GT",title:"Guatemala",d:"M222.64,424.75L221.2,424.25L219.45,424.2L218.17,423.63L216.66,422.45L216.73,421.61L217.05,420.93L216.66,420.39L218.01,418.03L221.6,418.02L221.68,417.04L221.22,416.86L220.91,416.23L219.87,415.56L218.83,414.58L220.1,414.58L220.1,412.93L222.72,412.93L225.31,412.96L225.29,415.27L225.07,418.55L225.9,418.55L226.82,419.08L227.06,418.64L227.88,419.01L226.61,420.12L225.28,420.93L225.08,421.48L225.3,422.04L224.72,422.78L224.06,422.95L224.21,423.29L223.69,423.61L222.73,424.33z"},{id:"GW",title:"Guinea-Bissau",d:"M432.83,432.44L431.33,431.25L430.15,431.07L429.51,430.26L429.52,429.83L428.67,429.23L428.49,428.62L429.98,428.15L430.91,428.24L431.66,427.92L436.84,428.04L436.79,429.01L436.48,429.31L436.72,430.25L436.28,430.63L435.66,430.63L434.93,431.11L434.08,431.06z"},{id:"GY",title:"Guyana",d:"M307.7,440L309.54,441.03L311.28,442.86L311.35,444.31L312.41,444.38L313.91,445.74L315.02,446.72L314.57,449.24L312.87,449.97L313.02,450.62L312.5,452.07L313.75,454.09L314.64,454.1L315.01,455.67L316.72,458.09L316.04,458.19L314.49,457.96L313.58,458.7L312.31,459.19L311.43,459.31L311.12,459.85L309.74,459.71L308.01,458.41L307.81,457.12L307.09,455.71L307.54,453.33L308.32,452.35L307.67,451.05L306.71,450.63L307.08,449.4L306.42,448.76L304.96,448.88L303.07,446.76L303.83,445.99L303.77,444.69L305.5,444.24L306.19,443.72L305.23,442.68L305.48,441.65z"},{id:"HN",title:"Honduras",d:"M230.43,426.9L229.95,426.01L229.09,425.76L229.29,424.61L228.91,424.3L228.33,424.1L227.1,424.44L227,424.05L226.15,423.59L225.55,423.02L224.72,422.78L225.3,422.04L225.08,421.48L225.28,420.93L226.61,420.12L227.88,419.01L228.17,419.13L228.79,418.62L229.59,418.58L229.85,418.81L230.29,418.67L231.59,418.93L232.89,418.85L233.79,418.53L234.12,418.21L235.01,418.36L235.68,418.56L236.41,418.49L236.97,418.24L238.25,418.64L238.7,418.7L239.55,419.24L240.36,419.89L241.38,420.33L242.12,421.13L241.16,421.07L240.77,421.46L239.8,421.84L239.09,421.84L238.47,422.21L237.91,422.08L237.43,421.64L237.14,421.72L236.78,422.41L236.51,422.38L236.46,422.98L235.48,423.77L234.97,424.11L234.68,424.47L233.85,423.89L233.25,424.65L232.66,424.63L232,424.7L232.06,426.11L231.65,426.13L231.3,426.79z"},{id:"HR",title:"Croatia",d:"M528.05,318.93L528.73,320.48L529.62,321.62L528.54,323.11L527.27,322.23L525.33,322.29L522.92,321.63L521.61,321.72L521.01,322.54L520,321.63L519.41,323.27L520.79,325.1L521.39,326.31L522.68,327.76L523.75,328.61L524.81,330.22L527.29,331.66L526.98,332.3L524.35,330.9L522.72,329.52L520.16,328.38L517.8,325.53L518.37,325.23L517.09,323.59L517.03,322.25L515.23,321.63L514.37,323.34L513.54,322.01L513.61,320.63L513.71,320.57L515.66,320.71L516.18,320.03L517.13,320.68L518.23,320.76L518.22,319.64L519.19,319.23L519.47,317.61L521.7,316.53L522.59,317.03L524.69,318.76L527,319.53z"},{id:"HT",title:"Haiti",d:"M270.04,406.75L271.75,406.88L274.18,407.35L274.43,408.96L274.21,410.09L273.53,410.59L274.25,411.47L274.19,412.27L272.33,411.77L271.01,411.97L269.3,411.76L267.99,412.31L266.48,411.39L266.73,410.44L269.31,410.85L271.43,411.09L272.44,410.43L271.16,409.16L271.18,408.03L269.41,407.57z"},{id:"HU",title:"Hungary",d:"M520.68,315.11L521.61,312.46L521.07,311.57L522.65,311.56L522.86,309.85L524.29,310.92L525.32,311.38L527.68,310.87L527.9,310.03L529.02,309.9L530.38,309.25L530.68,309.52L532,309L532.66,308L533.58,307.75L536.58,309.03L537.18,308.6L538.73,309.74L538.93,310.86L537.22,311.73L535.89,314.53L534.2,317.29L531.95,318.05L530.2,317.88L528.05,318.93L527,319.53L524.69,318.76L522.59,317.03L521.7,316.53L521.15,315.16z"},{id:"ID",title:"Indonesia",d:"M813.72,492.06l-1.18,0.05l-3.72,-1.98l2.61,-0.56l1.47,0.86l0.98,0.86L813.72,492.06zM824.15,491.78l-2.4,0.62l-0.34,-0.34l0.25,-0.96l1.21,-1.72l2.77,-1.12l0.28,0.56l0.05,0.86L824.15,491.78zM805.83,486.01l1.01,0.75l1.73,-0.23l0.7,1.2l-3.24,0.57l-1.94,0.38l-1.51,-0.02l0.96,-1.62l1.54,-0.02L805.83,486.01zM819.86,486l-0.41,1.56l-4.21,0.8l-3.73,-0.35l-0.01,-1.03l2.23,-0.59l1.76,0.84l1.87,-0.21L819.86,486zM779.82,482.31l5.37,0.28l0.62,-1.16l5.2,1.35l1.02,1.82l4.21,0.51l3.44,1.67l-3.2,1.07l-3.08,-1.13l-2.54,0.08l-2.91,-0.21l-2.62,-0.51l-3.25,-1.07l-2.06,-0.28l-1.17,0.35l-5.11,-1.16l-0.49,-1.21l-2.57,-0.21l1.92,-2.68l3.4,0.17l2.26,1.09l1.16,0.21L779.82,482.31zM853,480.73l-1.44,1.91l-0.27,-2.11l0.5,-1.01l0.59,-0.95l0.64,0.82L853,480.73zM832.04,473.02l-1.05,0.93l-1.94,-0.51l-0.55,-1.2l2.84,-0.13L832.04,473.02zM841.08,472.01l1.02,2.13l-2.37,-1.15l-2.34,-0.23l-1.58,0.18l-1.94,-0.1l0.67,-1.53l3.46,-0.12L841.08,472.01zM851.37,466.59l0.78,4.51l2.9,1.67l2.34,-2.96l3.22,-1.68l2.49,0l2.4,0.97l2.08,1l3.01,0.53l0.05,9.1l0.05,9.16l-2.5,-2.31l-2.85,-0.57l-0.69,0.8l-3.55,0.09l1.19,-2.29l1.77,-0.78l-0.73,-3.05l-1.35,-2.35l-5.44,-2.37l-2.31,-0.23l-4.21,-2.58l-0.83,1.36l-1.08,0.25l-0.64,-1.02l-0.01,-1.21l-2.14,-1.37l3.02,-1l2,0.05l-0.24,-0.74l-4.1,-0.01l-1.11,-1.66l-2.5,-0.51l-1.19,-1.38l3.78,-0.67l1.44,-0.91l4.5,1.14L851.37,466.59zM826.41,459.43l-2.25,2.76l-2.11,0.54l-2.7,-0.54l-4.67,0.14l-2.45,0.4l-0.4,2.11l2.51,2.48l1.51,-1.26l5.23,-0.95l-0.23,1.28l-1.22,-0.4l-1.22,1.63l-2.47,1.08l2.65,3.57l-0.51,0.96l2.52,3.22l-0.02,1.84l-1.5,0.82l-1.1,-0.98l1.36,-2.29l-2.75,1.08l-0.7,-0.77l0.36,-1.08l-2.02,-1.64l0.21,-2.72l-1.87,0.85l0.24,3.25l0.11,4l-1.78,0.41l-1.2,-0.82l0.8,-2.57l-0.43,-2.69l-1.18,-0.02l-0.87,-1.91l1.16,-1.83l0.4,-2.21l1.41,-4.2l0.59,-1.15l2.38,-2.07l2.19,0.82l3.54,0.39l3.22,-0.12l2.77,-2.02L826.41,459.43zM836.08,460.23l-0.15,2.43l-1.45,-0.27l-0.43,1.69l1.16,1.47l-0.79,0.33l-1.13,-1.76l-0.83,-3.56l0.56,-2.23l0.93,-1.01l0.2,1.52l1.66,0.24L836.08,460.23zM805.76,458.29l3.14,2.58l-3.32,0.33l-0.94,1.9l0.12,2.52l-2.7,1.91L802,470.3l-1.08,4.27l-0.41,-0.99l-3.19,1.26l-1.11,-1.71l-2,-0.16l-1.4,-0.89l-3.33,1l-1.02,-1.35l-1.84,0.15l-2.31,-0.32l-0.43,-3.74l-1.4,-0.77l-1.35,-2.38l-0.39,-2.44l0.33,-2.58l1.67,-1.85l0.47,1.86l1.92,1.57l1.81,-0.57l1.79,0.2l1.63,-1.41l1.34,-0.24l2.65,0.78l2.29,-0.59l1.44,-3.88l1.08,-0.97l0.97,-3.17l3.22,0l2.43,0.47l-1.59,2.52l2.06,2.64L805.76,458.29zM771.95,479.71l-3.1,0.06l-2.36,-2.34l-3.6,-2.28l-1.2,-1.69l-2.12,-2.27l-1.39,-2.09l-2.13,-3.9l-2.46,-2.32l-0.82,-2.39l-1.03,-2.17l-2.53,-1.75l-1.47,-2.39l-2.11,-1.56l-2.92,-3.08l-0.25,-1.42l1.81,0.11l4.34,0.54l2.48,2.73l2.17,1.89l1.55,1.16l2.66,3l2.85,0.04l2.36,1.91l1.62,2.33l2.13,1.27l-1.12,2.27l1.61,0.97l1.01,0.07l0.48,1.94l0.98,1.56l2.06,0.25l1.36,1.76l-0.7,3.47L771.95,479.71z"},{id:"IE",title:"Ireland",d:"M457.88,284.29L458.34,287.65L456.22,291.77L451.25,294.45L447.28,293.77L449.55,288.99L448.09,284.22L451.9,280.47L454.02,278.2L454.6,280.8L454.02,283.37L455.76,283.31z"},{id:"IL",title:"Israel",d:"M575.41,366.82L574.92,367.87L573.9,367.41L573.32,369.61L574.02,369.97L573.31,370.43L573.18,371.29L574.5,370.84L574.57,372.11L573.17,377.28L571.33,371.73L572.14,370.65L571.95,370.46L572.69,368.93L573.26,366.43L573.66,365.59L573.74,365.56L574.68,365.56L574.94,364.98L575.69,364.93L575.73,366.3L575.35,366.8z"},{id:"IN",title:"India",d:"M748.36,382.43L748.14,381.23L745.12,380.76L746.07,379.42L744.75,377.44L742.75,378.78L740.4,378L737.17,380.03L734.62,382.38L732.36,382.78L733.5,383.78L733.3,385.71L731.01,385.8L728.65,385.59L726.88,386.08L724.33,384.89L724.28,384.26L724.04,381.78L722.33,382.45L722.11,383.8L722.48,385.79L722.16,387.03L719.83,387.08L716.45,386.35L714.29,386.06L712.67,384.47L708.83,384.06L705.17,382.29L702.53,380.74L699.81,379.54L700.9,376.55L702.68,375.09L698.78,372.82L696.03,370.76L695.24,367.13L697.25,367.57L697.34,365.88L696.23,364.17L696.41,362.43L696.46,362.43L697.7,362.33L699.3,360.1L700.21,357.34L697.33,355.97L693.45,357.34L693.31,357.38L693.5,357.44L688.89,356.05L688.06,353.39L685.99,351.76L684.35,352.15L682.93,352.8L681.65,352.96L681.53,353.07L678.45,355.41L678.81,356.56L679.77,356.55L682.81,359.16L680.94,360.84L681.52,365.64L683.9,366.63L683.99,366.6L684,366.64L686.27,368.27L683.88,370.18L683.92,372.51L681.2,375.75L679.44,379.01L676.51,382.33L673.25,382.09L670.16,385.39L672,386.79L672.32,389.18L673.89,390.74L674.45,393.38L668.28,393.37L666.41,395.41L669.7,397.99L670.53,399.17L669.18,400.26L672.84,403.89L674.82,404.25L678.9,402.46L679.44,405.26L679.43,408.84L680.27,412.61L681.43,418.25L683.98,422.22L684.47,424.02L685.16,427.6L686.65,430.34L687.63,431.68L688.71,434.54L690.01,438.5L692.66,441.13L693.79,440.32L694.73,438.4L697.29,437.6L696.44,436.67L697.71,434.52L699.16,434.38L699.18,429.55L700.36,426.84L700.21,424.47L699.63,420.72L700.47,418.52L701.78,418.36L704.31,417.33L705.71,416.61L705.71,415.27L708.5,413.36L710.61,411.51L713.75,408.05L717.78,406.05L719.28,404.29L719.12,402.04L722.58,401.42L724.48,401.46L724.89,400.36L724.45,397.88L723.48,395.6L723.95,393.76L722.23,392.94L722.85,391.82L724.6,390.67L722.58,389.04L723.57,386.93L725.79,388.27L727.13,388.43L727.38,390.58L730.04,391L732.65,390.95L734.26,391.48L732.97,394.07L731.71,394.25L730.85,395.98L732.38,397.56L732.84,395.62L733.62,395.61L735.09,400.41L736.48,399.69L736.18,398.41L736.81,397.38L736.92,394.23L739.11,394.93L740.36,392.41L740.51,390.91L742.05,388.31L741.97,386.53L745.6,384.37L747.6,384.94L747.37,383.01z"},{id:"IQ",title:"Iraq",d:"M602.61,355.77L604.44,356.81L604.66,358.81L603.24,359.98L602.59,362.62L604.54,365.8L607.97,367.62L609.42,370.12L608.96,372.49L609.85,372.49L609.88,374.22L611.43,375.91L609.77,375.76L607.88,375.49L605.82,378.57L600.61,378.31L592.71,371.82L588.53,369.53L585.15,368.64L584.02,364.6L590.23,361.1L591.29,356.98L591.02,354.46L592.56,353.6L594,351.42L595.2,350.87L598.46,351.33L599.45,352.22L600.79,351.63z"},{id:"IR",title:"Iran",d:"M626.44,351.53L628.91,350.85L630.9,348.83L632.77,348.93L634,348.27L636,348.6L639.1,350.39L641.34,350.78L644.54,353.87L646.63,353.99L646.88,356.9L645.74,361.15L644.97,363.6L646.19,364.09L644.99,365.92L645.91,368.56L646.13,370.65L648.25,371.2L648.48,373.3L645.94,376.23L647.32,377.91L648.45,379.84L651.13,381.24L651.21,384.01L652.55,384.52L652.78,385.96L648.74,387.57L647.68,391.17L642.41,390.24L639.35,389.53L636.19,389.12L634.99,385.31L633.65,384.75L631.49,385.31L628.67,386.82L625.24,385.79L622.41,383.38L619.71,382.48L617.84,379.47L615.77,375.2L614.26,375.72L612.48,374.65L611.43,375.91L609.88,374.22L609.85,372.49L608.96,372.49L609.42,370.12L607.97,367.62L604.54,365.8L602.59,362.62L603.24,359.98L604.66,358.81L604.44,356.81L602.61,355.77L600.79,351.63L599.26,348.8L599.8,347.71L598.93,343.59L600.85,342.56L601.29,343.93L602.71,345.59L604.63,346.06L605.65,345.96L608.96,343.3L610.01,343.03L610.83,344.1L609.87,345.88L611.62,347.74L612.31,347.57L613.2,350.18L615.86,350.91L617.81,352.67L621.79,353.27L626.17,352.35z"},{id:"IS",title:"Iceland",d:"M434.57,212.43L433.93,216.91L437.09,221.51L433.45,226.52L425.36,230.9L422.94,232.05L419.25,231.12L411.43,229.11L414.19,226.27L408.09,223.07L413.05,221.79L412.93,219.82L407.05,218.25L408.94,213.78L413.19,212.75L417.56,217.43L421.82,213.68L425.35,215.64L429.92,211.93z"},{id:"IT",title:"Italy",d:"M518.77,347.88l-1.01,2.78l0.42,1.09l-0.59,1.79l-2.14,-1.31l-1.43,-0.38l-3.91,-1.79l0.39,-1.82l3.28,0.32l2.86,-0.39L518.77,347.88zM501.08,337.06l1.68,2.62l-0.39,4.81l-1.27,-0.23l-1.14,1.2l-1.06,-0.95l-0.11,-4.38l-0.64,-2.1l1.54,0.19L501.08,337.06zM509.95,315.46l4.01,1.05l-0.3,1.99l0.67,1.71l-2.23,-0.58l-2.28,1.42l0.16,1.97l-0.34,1.12l0.92,1.99l2.63,1.95l1.41,3.17l3.12,3.05l2.2,-0.02l0.68,0.83l-0.79,0.74l2.51,1.35l2.06,1.12l2.4,1.92l0.29,0.68l-0.52,1.31l-1.56,-1.7l-2.44,-0.6l-1.18,2.36l2.03,1.34l-0.33,1.88l-1.17,0.21l-1.5,3.06l-1.17,0.27l0.01,-1.08l0.57,-1.91l0.61,-0.77l-1.09,-2.09l-0.86,-1.83l-1.16,-0.46l-0.83,-1.58l-1.8,-0.67l-1.21,-1.49l-2.07,-0.24l-2.19,-1.68l-2.56,-2.45l-1.91,-2.19l-0.87,-3.8l-1.4,-0.45l-2.28,-1.29l-1.29,0.53l-1.62,1.8l-1.17,0.28l0.32,-1.68l-1.52,-0.49l-0.72,-3.04l0.97,-1.21l-0.83,-1.5l0.12,-1.13l1.21,0.86l1.35,-0.19l1.57,-1.36l0.49,0.64l1.34,-0.13l0.61,-1.63l2.07,0.51l1.24,-0.68l0.22,-1.67l1.7,0.58l0.33,-0.78l2.77,-0.71L509.95,315.46z"},{id:"JM",title:"Jamaica",d:"M257.76,410.96L259.65,411.22L261.14,411.93L261.6,412.73L259.63,412.78L258.78,413.27L257.21,412.8L255.61,411.73L255.94,411.06L257.12,410.86z"},{id:"JO",title:"Jordan",d:"M574.92,367.87L575.41,366.82L578.53,368.14L584.02,364.6L585.15,368.64L584.62,369.13L579,370.78L581.8,374.04L580.87,374.58L580.41,375.67L578.27,376.11L577.6,377.27L576.38,378.25L573.26,377.74L573.17,377.28L574.57,372.11L574.5,370.84L574.92,369.88z"},{id:"JP",title:"Japan",d:"M852.76,362.01l0.36,1.15l-1.58,2.03l-1.15,-1.07l-1.44,0.78l-0.74,1.95l-1.83,-0.95l0.02,-1.58l1.55,-2l1.59,0.39l1.15,-1.42L852.76,362.01zM870.53,351.73l-1.06,2.78l0.49,1.73l-1.46,2.42l-3.58,1.6l-4.93,0.21l-4,3.84l-1.88,-1.29L854,360.5l-4.88,0.75l-3.32,1.59l-3.28,0.06l2.84,2.46l-1.87,5.61l-1.81,1.37l-1.36,-1.27l0.69,-2.96l-1.77,-0.96l-1.14,-2.28l2.65,-1.03l1.47,-2.11l2.82,-1.75l2.06,-2.33l5.58,-1.02l3,0.7l2.93,-6.17l1.87,1.67l4.11,-3.51l1.59,-1.38l1.76,-4.38l-0.48,-4.1l1.18,-2.33l2.98,-0.68l1.53,5.11l-0.08,2.94l-2.59,3.6L870.53,351.73zM878.76,325.8l1.97,0.83l1.98,-1.65l0.62,4.35l-4.16,1.05l-2.46,3.76l-4.41,-2.58l-1.53,4.12l-3.12,0.06l-0.39,-3.74l1.39,-2.94l3,-0.21l0.82,-5.38l0.83,-3.09l3.29,4.12L878.76,325.8z"},{id:"KE",title:"Kenya",d:"M590.19,465.78L591.85,468.07L589.89,469.19L589.2,470.35L588.14,470.55L587.75,472.52L586.85,473.64L586.3,475.5L585.17,476.42L581.15,473.63L580.95,472.01L570.79,466.34L570.31,466.03L570.29,463.08L571.09,461.95L572.47,460.11L573.49,458.08L572.26,454.88L571.93,453.48L570.6,451.54L572.32,449.87L574.22,448.03L575.68,448.5L575.68,450.07L576.64,450.98L578.59,450.98L582.14,453.36L583.02,453.38L583.68,453.31L584.3,453.63L586.17,453.85L587,452.69L589.56,451.52L590.69,452.46L592.61,452.46L590.16,455.63z"},{id:"KG",title:"Kyrgyzstan",d:"M674.22,333.11L674.85,331.45L676.69,330.91L681.31,332.22L681.74,329.98L683.33,329.18L687.33,330.79L688.35,330.37L693,330.47L697.16,330.87L698.56,332.24L700.29,332.79L699.9,333.65L695.48,335.68L694.48,337.16L690.88,337.6L689.82,339.95L686.85,339.46L684.92,340.18L682.24,341.9L682.63,342.75L681.83,343.58L676.53,344.13L673.06,342.96L670.02,343.24L670.29,341.14L673.34,341.75L674.37,340.62L676.5,340.98L680.09,338.34L676.77,336.38L674.77,337.31L672.7,335.91L675.05,333.48z"},{id:"KH",title:"Cambodia",d:"M765.44,433.6L764.3,432.12L762.89,429.18L762.22,425.73L764.02,423.35L767.64,422.8L770.27,423.21L772.58,424.34L773.85,422.35L776.34,423.41L776.99,425.33L776.64,428.75L771.93,430.94L773.16,432.67L770.22,432.87L767.79,434.01z"},{id:"KP",title:"North Korea",d:"M841.55,332.62L841.94,333.29L840.88,333.06L839.66,334.33L838.82,335.61L838.93,338.28L837.48,339.09L836.98,339.74L835.92,340.82L834.05,341.42L832.84,342.4L832.75,343.97L832.42,344.37L833.54,344.95L835.13,346.53L834.72,347.39L833.53,347.62L831.55,347.79L830.46,349.39L829.2,349.27L829.03,349.59L827.67,348.92L827.33,349.58L826.51,349.87L826.41,349.21L825.68,348.89L824.93,348.32L825.7,346.75L826.36,346.33L826.11,345.68L826.82,343.74L826.63,343.15L825,342.75L823.68,341.78L825.96,339.43L829.05,337.45L830.98,334.8L832.31,335.97L834.73,336.11L834.29,334.14L838.62,332.51L839.74,330.38z"},{id:"KR",title:"South Korea",d:"M835.13,346.53L837.55,350.71L838.24,352.98L838.26,356.96L837.21,358.84L834.67,359.5L832.43,360.91L829.9,361.2L829.59,359.35L830.11,356.78L828.87,353.18L830.95,352.59L829.03,349.59L829.2,349.27L830.46,349.39L831.55,347.79L833.53,347.62L834.72,347.39z"},{id:"XK",title:"Kosovo",d:"M533.47,333.92L533.34,334.69L532.98,334.66L532.8,333.29L532.13,332.91L531.53,331.89L532.05,331.04L532.72,330.76L533.11,329.5L533.61,329.28L534.01,329.82L534.54,330.06L534.9,330.67L535.36,330.85L535.91,331.55L536.31,331.53L535.99,332.46L535.66,332.91L535.75,333.19L535.12,333.33z"},{id:"KW",title:"Kuwait",d:"M609.77,375.76L610.35,377.17L610.1,377.9L611,380.31L609.02,380.39L608.32,378.88L605.82,378.57L607.88,375.49z"},{id:"KZ",title:"Kazakhstan",d:"M674.22,333.11L672.61,333.81L668.92,336.42L667.69,339.07L666.64,339.09L665.88,337.34L662.31,337.22L661.74,334.16L660.37,334.13L660.58,330.33L657.23,327.53L652.42,327.83L649.13,328.39L646.45,324.89L644.16,323.41L639.81,320.57L639.29,320.22L632.07,322.57L632.18,336.7L630.74,336.88L628.78,333.95L626.88,332.89L623.7,333.68L622.46,334.93L622.3,334.01L622.99,332.44L622.46,331.12L619.21,329.82L617.94,326.35L616.4,325.37L616.3,324.09L619.03,324.46L619.14,321.58L621.52,320.94L623.97,321.53L624.48,317.62L623.98,315.11L621.17,315.31L618.79,314.31L615.54,316.1L612.93,316.96L611.5,316.3L611.79,314.2L610,311.44L607.92,311.55L605.54,308.72L607.16,305.5L606.34,304.63L608.57,299.86L611.46,302.39L611.81,299.2L617.59,294.35L621.97,294.23L628.16,297.33L631.47,299.12L634.45,297.25L638.89,297.17L642.48,299.46L643.3,298.15L647.23,298.34L647.94,296.23L643.39,293.14L646.08,290.91L645.56,289.66L648.25,288.45L646.23,285.25L647.51,283.63L658,281.97L659.37,280.78L666.39,278.99L668.91,276.95L673.95,278.01L674.83,283.02L677.76,281.86L681.36,283.49L681.13,286.07L683.82,285.8L690.84,281.31L689.82,282.81L693.4,286.47L699.66,298.05L701.16,295.72L705.02,298.28L709.05,297.14L710.59,297.94L711.94,300.49L713.9,301.33L715.1,303.18L718.71,302.6L720.2,305.23L718.06,308.06L715.73,308.46L715.6,312.64L714.04,314.5L708.48,313.15L706.46,320.41L705.02,321.3L699.47,322.88L701.99,329.63L700.07,330.63L700.29,332.79L698.56,332.24L697.16,330.87L693,330.47L688.35,330.37L687.33,330.79L683.33,329.18L681.74,329.98L681.31,332.22L676.69,330.91L674.85,331.45z"},{id:"LA",title:"Lao People's Democratic Republic",d:"M770.27,423.21L771.18,421.91L771.31,419.47L769.04,416.94L768.86,414.07L766.73,411.69L764.61,411.49L764.05,412.51L762.4,412.59L761.56,412.08L758.61,413.82L758.54,411.2L759.23,408.09L757.34,407.96L757.18,406.18L755.96,405.26L756.56,404.16L758.95,402.22L759.2,402.92L760.69,403L760.27,399.57L761.72,399.13L763.36,401.5L764.62,404.22L768.07,404.25L769.16,406.84L767.37,407.61L766.56,408.68L769.92,410.44L772.25,413.9L774.02,416.47L776.14,418.49L776.85,420.53L776.34,423.41L773.85,422.35L772.58,424.34z"},{id:"LB",title:"Lebanon",d:"M575.69,364.93L574.94,364.98L574.68,365.56L573.74,365.56L574.74,362.83L576.13,360.45L576.19,360.33L577.45,360.51L577.91,361.83L576.38,363.1z"},{id:"LK",title:"Sri Lanka",d:"M704.57,442.37L704.15,445.29L702.98,446.09L700.54,446.73L699.2,444.5L698.71,440.47L699.98,435.89L701.91,437.46L703.22,439.44z"},{id:"LR",title:"Liberia",d:"M453.63,451.22L452.89,451.24L450,449.91L447.46,447.78L445.07,446.25L443.18,444.44L443.85,443.54L444,442.73L445.26,441.2L446.57,439.89L447.17,439.82L447.9,439.51L449.07,441.23L448.89,442.36L449.43,442.96L450.23,442.97L450.8,441.84L451.59,441.91L451.46,442.73L451.74,444.09L451.13,445.33L451.95,446.1L452.84,446.29L454.03,447.46L454.11,448.57L453.84,448.92z"},{id:"LS",title:"Lesotho",d:"M556.5,547.75L557.48,548.71L556.62,550.27L556.14,551.32L554.58,551.82L554.06,552.86L553.06,553.18L550.96,550.69L552.45,548.66L553.97,547.41L555.28,546.77z"},{id:"LT",title:"Lithuania",d:"M538.99,282.09L538.76,280.87L539.06,279.54L537.82,278.77L534.89,277.91L534.29,273.75L537.5,272.2L542.2,272.53L544.96,272.03L545.35,273.08L546.84,273.4L549.54,275.82L549.8,278.02L547.5,279.59L546.85,282.31L543.81,284.11L541.1,284.07L540.43,282.61z"},{id:"LU",title:"Luxembourg",d:"M492.2,301.29L492.76,302.27L492.6,304.16L491.79,304.26L491.16,303.88L491.47,301.45z"},{id:"LV",title:"Latvia",d:"M534.29,273.75L534.39,269.94L535.77,266.7L538.41,264.92L540.63,268.8L542.88,268.7L543.42,264.71L545.81,263.78L547.04,264.43L549.45,266.37L551.77,266.38L553.12,267.57L553.35,270.06L554.26,273.05L551.24,274.98L549.54,275.82L546.84,273.4L545.35,273.08L544.96,272.03L542.2,272.53L537.5,272.2z"},{id:"LY",title:"Libya",d:"M516.89,397.93L514.91,399.05L513.33,397.39L508.9,396.08L507.67,394.17L505.45,392.75L504.14,393.31L503.15,391.6L503.04,390.28L501.38,388.02L502.5,386.73L502.25,384.76L502.61,383.04L502.41,381.6L502.9,379.01L502.75,377.53L501.84,374.69L503.21,373.94L503.45,372.56L503.15,371.21L505.08,369.95L505.94,368.9L507.31,367.95L507.47,365.4L510.76,366.55L511.94,366.26L514.28,366.82L518,368.29L519.31,371.21L521.83,371.85L525.78,373.21L528.77,374.82L530.14,373.98L531.48,372.49L530.83,369.98L531.71,368.38L533.73,366.83L535.66,366.38L539.45,367.06L540.41,368.54L541.45,368.55L542.34,369.11L545.13,369.5L545.81,370.58L544.8,372.15L545.23,373.54L544.51,375.54L545.35,378.12L545.35,389.3L545.35,400.53L545.35,406.49L542.13,406.5L542.09,407.74L530.91,402.04L519.72,396.27z"},{id:"MA",title:"Morocco",d:"M471.36,366.31L470.39,362.78L470.23,360.73L469.17,358.55L467.95,358.51L465.05,357.76L462.38,358L460.69,356.54L458.63,356.52L457.74,358.63L455.87,362.14L453.79,363.53L450.98,365.06L449.18,367.3L448.8,369.04L447.73,371.86L448.43,375.89L446.09,378.57L444.69,379.42L442.48,381.59L439.87,381.94L438.46,383.15L438.41,383.19L436.63,386.39L434.77,387.53L433.75,389.44L433.69,391.09L432.94,392.88L432,393.37L430.44,395.31L429.48,397.46L429.66,398.48L428.74,400.05L427.66,400.87L427.53,402.26L427.41,403.53L428.02,402.53L439,402.55L438.47,398.2L439.16,396.65L441.78,396.38L441.69,388.52L450.9,388.69L450.9,383.96L450.96,383.35L450.96,383.14L450.93,379.39L455.46,377.03L458.26,376.54L460.55,375.68L461.63,374.06L464.91,372.77L465.03,370.36L466.65,370.07L467.92,368.86L471.59,368.3L472.1,367.02z"},{id:"MD",title:"Moldova",d:"M549.89,309.45L550.56,308.83L552.42,308.41L554.49,309.72L555.64,309.88L556.91,311L556.71,312.41L557.73,313.08L558.13,314.8L559.11,315.84L558.92,316.44L559.44,316.86L558.7,317.15L557.04,317.04L556.77,316.47L556.18,316.8L556.38,317.52L555.61,318.81L555.12,320.18L554.42,320.62L553.91,318.79L554.21,317.07L554.12,315.28L552.5,312.84L551.61,311.09L550.74,309.85z"},{id:"ME",title:"Montenegro",d:"M530.77,332.23L530.6,331.51L529.38,333.38L529.57,334.57L528.98,334.28L528.2,333.05L526.98,332.3L527.29,331.66L527.7,329.56L528.61,328.67L529.14,328.31L529.88,328.97L530.29,329.51L531.21,329.92L532.28,330.71L532.05,331.04L531.53,331.89z"},{id:"MG",title:"Madagascar",d:"M614.17,498.4L614.91,499.61L615.6,501.5L616.06,504.96L616.78,506.31L616.5,507.69L616.01,508.55L615.05,506.85L614.53,507.71L615.06,509.85L614.81,511.09L614.04,511.76L613.86,514.24L612.76,517.66L611.38,521.75L609.64,527.42L608.57,531.63L607.3,535.18L605.02,535.91L602.57,537.22L600.96,536.43L598.73,535.33L597.96,533.71L597.77,531L596.79,528.58L596.53,526.41L597.03,524.25L598.32,523.73L598.33,522.74L599.67,520.48L599.92,518.6L599.27,517.2L598.74,515.35L598.52,512.65L599.5,511.02L599.87,509.17L601.27,509.07L602.84,508.47L603.87,507.95L605.11,507.91L606.7,506.26L609.01,504.48L609.85,503.04L609.47,501.81L610.66,502.16L612.21,500.17L612.26,498.45L613.19,497.17z"},{id:"MK",title:"Macedonia",d:"M532.98,334.66L533.34,334.69L533.47,333.92L535.12,333.33L535.75,333.19L536.71,332.97L538,332.91L539.41,334.12L539.61,336.59L539.07,336.71L538.61,337.36L537.09,337.29L536.02,338.1L534.19,338.42L533.03,337.52L532.63,335.93z"},{id:"ML",title:"Mali",d:"M441.13,422.22L442.07,421.7L442.54,420L443.43,419.93L445.39,420.73L446.97,420.16L448.05,420.35L448.48,419.71L459.73,419.67L460.35,417.64L459.86,417.28L458.51,404.6L457.16,391.54L461.45,391.49L470.91,398.14L480.37,404.69L481.03,406.08L482.78,406.93L484.08,407.41L484.11,409.29L487.22,409L487.23,415.75L485.69,417.69L485.45,419.48L482.96,419.93L479.14,420.18L478.1,421.21L476.3,421.32L474.51,421.33L473.81,420.78L472.26,421.19L469.64,422.39L469.11,423.29L466.93,424.57L466.55,425.31L465.38,425.89L464.02,425.51L463.25,426.21L462.84,428.17L460.61,430.53L460.68,431.49L459.91,432.7L460.1,434.34L458.94,434.76L458.29,435.12L457.85,433.91L457.04,434.23L456.56,434.17L456.04,435L453.88,434.97L453.1,434.55L452.74,434.81L451.88,433.99L452.03,433.15L451.68,432.81L451.08,433.09L451.19,432.17L451.77,431.44L450.62,430.25L450.28,429.46L449.66,428.84L449.1,428.76L448.43,429.16L447.52,429.54L446.75,430.16L445.55,429.93L444.77,429.21L444.31,429.11L443.58,429.49L443.13,429.5L442.97,428.45L443.1,427.56L442.86,426.46L441.81,425.65L441.26,424.01z"},{id:"MM",title:"Myanmar",d:"M754.36,405.95L752.72,407.23L750.74,407.37L749.46,410.56L748.28,411.09L749.64,413.66L751.42,415.79L752.56,417.71L751.54,420.23L750.57,420.76L751.24,422.21L753.11,424.49L753.43,426.09L753.38,427.42L754.48,430.02L752.94,432.67L751.58,435.58L751.31,433.48L752.17,431.3L751.23,429.62L751.46,426.51L750.32,425.03L749.41,421.59L748.9,417.93L747.69,415.53L745.84,416.99L742.65,419.05L741.08,418.79L739.34,418.12L740.31,414.51L739.73,411.77L737.53,408.38L737.87,407.31L736.23,406.93L734.24,404.51L734.06,402.1L735.04,402.56L735.09,400.41L736.48,399.69L736.18,398.41L736.81,397.38L736.92,394.23L739.11,394.93L740.36,392.41L740.51,390.91L742.05,388.31L741.97,386.53L745.6,384.37L747.6,384.94L747.37,383.01L748.36,382.43L748.14,381.23L749.78,380.99L750.72,382.85L751.94,383.6L752.03,386L751.91,388.57L749.26,391.15L748.92,394.78L751.88,394.28L752.55,397.08L754.33,397.67L753.51,400.17L755.59,401.3L756.81,401.85L758.86,400.98L758.95,402.22L756.56,404.16L755.96,405.26z"},{id:"MN",title:"Mongolia",d:"M721.29,304.88L724.25,304.14L729.6,300.4L733.87,298.33L736.3,299.68L739.23,299.74L741.1,301.79L743.9,301.94L747.96,303.03L750.68,300L749.54,297.4L752.45,292.74L755.59,294.61L758.13,295.14L761.43,296.29L761.96,299.61L765.95,301.45L768.6,300.64L772.14,300.07L774.95,300.65L777.7,302.74L779.4,304.94L782,304.9L785.53,305.59L788.11,304.53L791.8,303.82L795.91,300.76L797.59,301.23L799.06,302.69L802.4,302.33L801.04,305.58L799.06,309.8L799.78,311.51L801.37,310.98L804.13,311.63L806.29,310.09L808.54,311.42L811.08,314.31L810.77,315.76L808.56,315.3L804.49,315.84L802.51,317L800.46,319.66L796.18,321.21L793.39,323.31L790.51,322.51L788.93,322.15L787.46,324.69L788.35,326.19L788.81,327.47L786.84,328.77L784.83,330.82L781.56,332.15L777.35,332.3L772.82,333.61L769.56,335.62L768.32,334.46L764.93,334.46L760.78,332.17L758.01,331.6L754.28,332.13L748.49,331.28L745.4,331.37L743.76,329.1L742.48,325.53L740.75,325.1L737.36,322.65L733.58,322.1L730.25,321.42L729.24,319.69L730.32,314.96L728.39,311.65L724.39,310.08L722.03,307.85z"},{id:"MR",title:"Mauritania",d:"M441.13,422.22L439.28,420.24L437.58,418.11L435.72,417.34L434.38,416.49L432.81,416.52L431.45,417.15L430.05,416.9L429.09,417.83L428.85,416.27L429.63,414.83L429.98,412.08L429.67,409.17L429.33,407.7L429.61,406.23L428.89,404.81L427.41,403.53L428.02,402.53L439,402.55L438.47,398.2L439.16,396.65L441.78,396.38L441.69,388.52L450.9,388.69L450.9,383.96L461.45,391.49L457.16,391.54L458.51,404.6L459.86,417.28L460.35,417.64L459.73,419.67L448.48,419.71L448.05,420.35L446.97,420.16L445.39,420.73L443.43,419.93L442.54,420L442.07,421.7z"},{id:"MW",title:"Malawi",d:"M572.15,495.69L571.37,497.85L572.15,501.57L573.13,501.53L574.14,502.45L575.31,504.53L575.55,508.25L574.34,508.86L573.48,510.87L571.65,509.08L571.45,507.04L572.04,505.69L571.87,504.54L570.77,503.81L569.99,504.07L568.38,502.69L566.91,501.95L567.76,499.29L568.64,498.3L568.1,495.94L568.66,493.64L569.14,492.87L568.43,490.47L567.11,489.21L569.85,489.73L570.42,490.51L571.37,491.83z"},{id:"MX",title:"Mexico",d:"M202.89,388.72L201.8,391.43L201.31,393.64L201.1,397.72L200.83,399.19L201.32,400.83L202.19,402.3L202.75,404.61L204.61,406.82L205.26,408.51L206.36,409.96L209.34,410.75L210.5,411.97L212.96,411.15L215.09,410.86L217.19,410.33L218.96,409.82L220.74,408.62L221.41,406.89L221.64,404.4L222.13,403.53L224.02,402.74L226.99,402.05L229.47,402.15L231.17,401.9L231.84,402.53L231.75,403.97L230.24,405.74L229.58,407.55L230.09,408.06L229.67,409.34L228.97,411.63L228.26,410.88L227.67,410.93L227.14,410.97L226.14,412.74L225.63,412.39L225.29,412.53L225.31,412.96L222.72,412.93L220.1,412.93L220.1,414.58L218.83,414.58L219.87,415.56L220.91,416.23L221.22,416.86L221.68,417.04L221.6,418.02L218.01,418.03L216.66,420.39L217.05,420.93L216.73,421.61L216.66,422.45L213.49,419.34L212.04,418.4L209.75,417.64L208.19,417.85L205.93,418.94L204.52,419.23L202.54,418.47L200.44,417.91L197.82,416.58L195.72,416.17L192.54,414.82L190.2,413.42L189.49,412.64L187.92,412.47L185.05,411.54L183.88,410.2L180.87,408.53L179.47,406.66L178.8,405.21L179.73,404.92L179.44,404.07L180.09,403.3L180.1,402.26L179.16,400.92L178.9,399.72L177.96,398.2L175.49,395.18L172.67,392.79L171.31,390.88L168.9,389.62L168.39,388.86L168.82,386.94L167.39,386.21L165.73,384.69L165.03,382.5L163.52,382.24L161.9,380.58L160.58,379.03L160.46,378.03L158.95,375.61L157.96,373.13L158,371.88L155.97,370.59L155.04,370.73L153.44,369.83L152.99,371.16L153.45,372.72L153.72,375.15L154.69,376.48L156.77,378.69L157.23,379.44L157.66,379.66L158.02,380.76L158.52,380.71L159.09,382.75L159.94,383.55L160.53,384.66L162.3,386.26L163.23,389.15L164.06,390.5L164.84,391.94L164.99,393.56L166.34,393.66L167.47,395.05L168.49,396.41L168.42,396.95L167.24,398.06L166.74,398.05L166,396.2L164.17,394.47L162.15,392.99L160.71,392.21L160.8,389.96L160.38,388.28L159.04,387.32L157.11,385.93L156.74,386.33L156.04,385.51L154.31,384.76L152.66,382.93L152.86,382.69L154.01,382.87L155.05,381.69L155.16,380.26L153,377.99L151.36,377.1L150.32,375.09L149.28,372.97L147.98,370.36L146.84,367.4L150.03,367.15L153.59,366.79L153.33,367.43L157.56,369.04L163.96,371.35L169.54,371.32L171.76,371.32L171.76,369.97L176.62,369.97L177.64,371.14L179.08,372.17L180.74,373.6L181.67,375.29L182.37,377.05L183.82,378.02L186.15,378.98L187.91,376.45L190.21,376.39L192.18,377.67L193.59,379.85L194.56,381.71L196.21,383.51L196.83,385.7L197.62,387.17L199.8,388.13L201.79,388.81z"},{id:"MY",title:"Malaysia",d:"M758.65,446.07l0.22,1.44l1.85,-0.33l0.92,-1.15l0.64,0.26l1.66,1.69l1.18,1.87l0.16,1.88l-0.3,1.27l0.27,0.96l0.21,1.65l0.99,0.77l1.1,2.46l-0.05,0.94l-1.99,0.19l-2.65,-2.06l-3.32,-2.21l-0.33,-1.42l-1.62,-1.87l-0.39,-2.31l-1.01,-1.52l0.31,-2.04l-0.62,-1.19l0.49,-0.5L758.65,446.07zM807.84,450.9l-2.06,0.95l-2.43,-0.47l-3.22,0l-0.97,3.17l-1.08,0.97l-1.44,3.88l-2.29,0.59l-2.65,-0.78l-1.34,0.24l-1.63,1.41l-1.79,-0.2l-1.81,0.57l-1.92,-1.57l-0.47,-1.86l2.05,0.96l2.17,-0.52l0.56,-2.36l1.2,-0.53l3.36,-0.6l2.01,-2.21l1.38,-1.77l1.28,1.45l0.59,-0.95l1.34,0.09l0.16,-1.78l0.13,-1.38l2.16,-1.95l1.41,-2.19l1.13,-0.01l1.44,1.42l0.13,1.22l1.85,0.78l2.34,0.84l-0.2,1.1l-1.88,0.14L807.84,450.9z"},{id:"MZ",title:"Mozambique",d:"M572.15,495.69L574.26,495.46L577.63,496.26L578.37,495.9L580.32,495.83L581.32,494.98L583,495.02L586.06,493.92L588.29,492.28L588.75,493.55L588.63,496.38L588.98,498.88L589.09,503.36L589.58,504.76L588.75,506.83L587.66,508.84L585.87,510.64L583.31,511.75L580.15,513.16L576.98,516.31L575.9,516.85L573.94,518.94L572.79,519.63L572.55,521.75L573.88,524L574.43,525.76L574.47,526.66L574.96,526.51L574.88,529.47L574.43,530.88L575.09,531.4L574.67,532.67L573.5,533.76L571.19,534.8L567.82,536.46L566.59,537.61L566.83,538.91L567.54,539.12L567.3,540.76L565.18,540.74L564.94,539.36L564.52,537.97L564.28,536.86L564.78,533.43L564.05,531.26L562.71,527L565.66,523.59L566.4,521.44L566.83,521.17L567.14,519.43L566.69,518.55L566.81,516.35L567.36,514.31L567.35,510.62L565.9,509.68L564.56,509.47L563.96,508.75L562.66,508.14L560.32,508.2L560.14,507.12L559.87,505.07L568.38,502.69L569.99,504.07L570.77,503.81L571.87,504.54L572.04,505.69L571.45,507.04L571.65,509.08L573.48,510.87L574.34,508.86L575.55,508.25L575.31,504.53L574.14,502.45L573.13,501.53L572.15,501.57L571.37,497.85z"},{id:"NA",title:"Namibia",d:"M521.08,546.54L519,544.15L517.9,541.85L517.28,538.82L516.59,536.57L515.65,531.85L515.59,528.22L515.23,526.58L514.14,525.34L512.69,522.87L511.22,519.3L510.61,517.45L508.32,514.58L508.15,512.33L509.5,511.78L511.18,511.28L513,511.37L514.67,512.69L515.09,512.48L526.46,512.36L528.4,513.76L535.19,514.17L540.34,512.98L542.64,512.31L544.46,512.48L545.56,513.14L545.59,513.38L544.01,514.04L543.15,514.05L541.37,515.2L540.29,513.99L535.97,515.02L533.88,515.11L533.8,525.68L531.04,525.79L531.04,534.65L531.03,546.17L528.53,547.8L527.03,548.03L525.26,547.43L524,547.2L523.53,545.84L522.42,544.97z"},{id:"NC",title:"New Caledonia",d:"M940.08,523.48L942.38,525.34L943.83,526.72L942.77,527.45L941.22,526.63L939.22,525.28L937.41,523.69L935.56,521.59L935.17,520.58L936.37,520.63L937.95,521.64L939.18,522.65z"},{id:"NE",title:"Niger",d:"M481.29,429.88L481.36,427.93L478.12,427.28L478.04,425.9L476.46,424.03L476.08,422.72L476.3,421.32L478.1,421.21L479.14,420.18L482.96,419.93L485.45,419.48L485.69,417.69L487.23,415.75L487.22,409L491.17,407.68L499.29,401.83L508.9,396.08L513.33,397.39L514.91,399.05L516.89,397.93L517.58,402.6L518.63,403.38L518.68,404.33L519.84,405.35L519.23,406.63L518.15,412.61L518.01,416.4L514.43,419.14L513.22,422.94L514.39,424L514.38,425.85L516.18,425.92L515.9,427.26L515.11,427.43L515.02,428.33L514.49,428.4L512.6,425.27L511.94,425.15L509.75,426.75L507.58,425.92L506.07,425.75L505.26,426.15L503.61,426.07L501.96,427.29L500.53,427.36L497.14,425.88L495.81,426.58L494.38,426.53L493.33,425.45L490.51,424.38L487.5,424.72L486.77,425.34L486.38,426.99L485.57,428.14L485.38,430.68L483.24,429.04L482.23,429.05z"},{id:"NG",title:"Nigeria",d:"M499.09,450.08L496.18,451.08L495.11,450.94L494.03,451.56L491.79,451.5L490.29,449.75L489.37,447.73L487.38,445.89L485.27,445.92L482.8,445.92L482.96,441.39L482.89,439.6L483.42,437.83L484.28,436.96L485.64,435.21L485.35,434.45L485.9,433.31L485.27,431.63L485.38,430.68L485.57,428.14L486.38,426.99L486.77,425.34L487.5,424.72L490.51,424.38L493.33,425.45L494.38,426.53L495.81,426.58L497.14,425.88L500.53,427.36L501.96,427.29L503.61,426.07L505.26,426.15L506.07,425.75L507.58,425.92L509.75,426.75L511.94,425.15L512.6,425.27L514.49,428.4L515.02,428.33L516.13,429.47L515.82,429.98L515.67,430.93L513.31,433.13L512.57,434.94L512.17,436.41L511.58,437.04L511.01,439.01L509.51,440.17L509.08,441.59L508.45,442.73L508.19,443.89L506.26,444.84L504.69,443.69L503.62,443.73L501.95,445.37L501.14,445.4L499.81,448.1z"},{id:"NI",title:"Nicaragua",d:"M234.93,432.31L233.96,431.41L232.65,430.26L232.03,429.3L230.85,428.41L229.44,427.12L229.75,426.68L230.22,427.11L230.43,426.9L231.3,426.79L231.65,426.13L232.06,426.11L232,424.7L232.66,424.63L233.25,424.65L233.85,423.89L234.68,424.47L234.97,424.11L235.48,423.77L236.46,422.98L236.51,422.38L236.78,422.41L237.14,421.72L237.43,421.64L237.91,422.08L238.47,422.21L239.09,421.84L239.8,421.84L240.77,421.46L241.16,421.07L242.12,421.13L241.88,421.41L241.74,422.05L242.02,423.1L241.38,424.08L241.08,425.23L240.98,426.5L241.14,427.23L241.21,428.52L240.78,428.8L240.52,430.02L240.71,430.77L240.13,431.5L240.27,432.26L240.69,432.73L240.02,433.33L239.2,433.14L238.73,432.56L237.84,432.32L237.2,432.69L235.35,431.94z"},{id:"NL",title:"Netherlands",d:"M492.28,285.98L494.61,286.11L495.14,287.69L494.44,291.92L493.73,293.63L492.04,293.63L492.52,298.32L490.97,297.28L489.2,295.33L486.6,296.26L484.55,295.91L485.99,294.67L488.45,287.93z"},{id:"NO",title:"Norway",d:"M554.23,175.61l8.77,6.24l-3.61,2.23l3.07,5.11l-4.77,3.19l-2.26,0.72l1.19,-5.59l-3.6,-3.25l-4.35,2.78l-1.38,5.85l-2.67,3.44l-3.01,-1.87l-3.66,0.38l-3.12,-4.15l-1.68,2.09l-1.74,0.32l-0.41,5.08l-5.28,-1.22l-0.74,4.22l-2.69,-0.03l-1.85,5.24l-2.8,7.87l-4.35,9.5l1.02,2.23l-0.98,2.55l-2.78,-0.11l-1.82,5.91l0.17,8.04l1.79,2.98l-0.93,6.73l-2.33,3.81l-1.24,3.15l-1.88,-3.35l-5.54,6.27l-3.74,1.24l-3.88,-2.71l-1,-5.86l-0.89,-13.26l2.58,-3.88l7.4,-5.18l5.54,-6.59l5.13,-9.3l6.74,-13.76l4.7,-5.67l7.71,-9.89l6.15,-3.59l4.61,0.44l4.27,-6.99l5.11,0.38L554.23,175.61z"},{id:"NP",title:"Nepal",d:"M722.33,382.45L722.11,383.8L722.48,385.79L722.16,387.03L719.83,387.08L716.45,386.35L714.29,386.06L712.67,384.47L708.83,384.06L705.17,382.29L702.53,380.74L699.81,379.54L700.9,376.55L702.68,375.09L703.84,374.31L706.09,375.31L708.92,377.4L710.49,377.86L711.43,379.39L713.61,380.02L715.89,381.41L719.06,382.14z"},{id:"NZ",title:"New Zealand",d:"M960.38,588.63l0.64,1.53l1.99,-1.5l0.81,1.57l0,1.57l-1.04,1.74l-1.83,2.8l-1.43,1.54l1.03,1.86l-2.16,0.05l-2.4,1.46l-0.75,2.57l-1.59,4.03l-2.2,1.8l-1.4,1.16l-2.58,-0.09l-1.82,-1.34l-3.05,-0.28l-0.47,-1.48l1.51,-2.96l3.53,-3.87l1.81,-0.73l2.01,-1.47l2.4,-2.01l1.68,-1.98l1.25,-2.81l1.06,-0.95l0.42,-2.07l1.97,-1.7L960.38,588.63zM964.84,571.61l2.03,3.67l0.06,-2.38l1.27,0.95l0.42,2.65l2.26,1.15l1.89,0.28l1.6,-1.35l1.42,0.41l-0.68,3.15l-0.85,2.09l-2.14,-0.07l-0.75,1.1l0.26,1.56l-0.41,0.68l-1.06,1.97l-1.39,2.53l-2.17,1.49l-0.48,-0.98l-1.17,-0.54l1.62,-3.04l-0.92,-2.01l-3.02,-1.45l0.08,-1.31l2.03,-1.25l0.47,-2.74l-0.13,-2.28l-1.14,-2.34l0.08,-0.61l-1.34,-1.43l-2.21,-3.04l-1.17,-2.41l1.04,-0.27l1.53,1.89l2.18,0.89L964.84,571.61z"},{id:"OM",title:"Oman",d:"M640.29,403.18l-1.05,2.04l-1.27,-0.16l-0.58,0.71l-0.45,1.5l0.34,1.98l-0.26,0.36l-1.29,-0.01l-1.75,1.1l-0.27,1.43l-0.64,0.62l-1.74,-0.02l-1.1,0.74l0.01,1.18l-1.36,0.81l-1.55,-0.27l-1.88,0.98l-1.3,0.16l-0.92,-2.04l-2.19,-4.84l8.41,-2.96l1.87,-5.97l-1.29,-2.14l0.07,-1.22l0.82,-1.26l0.01,-1.25l1.27,-0.6l-0.5,-0.42l0.23,-2l1.43,-0.01l1.26,2.09l1.57,1.11l2.06,0.4l1.66,0.55l1.27,1.74l0.76,1l1,0.38l-0.01,0.67l-1.02,1.79l-0.45,0.84L640.29,403.18zM633.37,388.64L633,389.2l-0.53,-1.06l0.82,-1.06l0.35,0.27L633.37,388.64z"},{id:"PA",title:"Panama",d:"M256.88,443.21L255.95,442.4L255.35,440.88L256.04,440.13L255.33,439.94L254.81,439.01L253.41,438.23L252.18,438.41L251.62,439.39L250.48,440.09L249.87,440.19L249.6,440.78L250.93,442.3L250.17,442.66L249.76,443.08L248.46,443.22L247.97,441.54L247.61,442.02L246.68,441.86L246.12,440.72L244.97,440.54L244.24,440.21L243.04,440.21L242.95,440.82L242.63,440.4L242.78,439.84L243.01,439.27L242.9,438.76L243.32,438.42L242.74,438L242.72,436.87L243.81,436.62L244.81,437.63L244.75,438.23L245.87,438.35L246.14,438.12L246.91,438.82L248.29,438.61L249.48,437.9L251.18,437.33L252.14,436.49L253.69,436.65L253.58,436.93L255.15,437.03L256.4,437.52L257.31,438.36L258.37,439.14L258.03,439.56L258.68,441.21L258.15,442.05L257.24,441.85z"},{id:"PE",title:"Peru",d:"M280.13,513.14L279.38,514.65L277.94,515.39L275.13,513.71L274.88,512.51L269.33,509.59L264.3,506.42L262.13,504.64L260.97,502.27L261.43,501.44L259.06,497.69L256.29,492.45L253.65,486.83L252.5,485.54L251.62,483.48L249.44,481.64L247.44,480.51L248.35,479.26L246.99,476.59L247.86,474.64L250.1,472.87L250.43,474.04L249.63,474.7L249.7,475.72L250.86,475.5L252,475.8L253.17,477.21L254.76,476.06L255.29,474.18L257.01,471.75L260.38,470.65L263.44,467.73L264.31,465.92L263.92,463.81L264.67,463.54L266.53,464.86L267.42,466.18L268.72,466.9L270.37,469.82L272.46,470.17L274.01,469.43L275.02,469.91L276.7,469.67L278.85,470.98L277.04,473.82L277.88,473.88L279.28,475.37L276.75,475.24L276.38,475.66L274.08,476.19L270.88,478.1L270.67,479.4L269.96,480.38L270.24,481.89L268.54,482.7L268.54,483.89L267.8,484.4L268.97,486.93L270.53,488.65L269.94,489.86L271.8,490.02L272.86,491.53L275.33,491.6L277.63,489.94L277.44,494.24L278.72,494.57L280.3,494.08L282.73,498.66L282.12,499.62L281.99,501.64L281.93,504.08L280.83,505.52L281.34,506.59L280.69,507.56L281.9,510z"},{id:"PG",title:"Papua New Guinea",d:"M912.32,482.42l-0.79,0.28l-1.21,-1.08l-1.23,-1.78l-0.6,-2.13l0.39,-0.27l0.3,0.83l0.85,0.63l1.36,1.77l1.32,0.95L912.32,482.42zM901.39,478.67l-1.47,0.23l-0.44,0.79l-1.53,0.68l-1.44,0.66l-1.49,0l-2.3,-0.81l-1.6,-0.78l0.23,-0.87l2.51,0.41l1.53,-0.22l0.42,-1.34l0.4,-0.07l0.27,1.49l1.6,-0.21l0.79,-0.96l1.57,-1l-0.31,-1.65l1.68,-0.05l0.57,0.46l-0.06,1.55L901.39,478.67zM887.96,484.02l2.5,1.84l1.82,2.99l1.61,-0.09l-0.11,1.25l2.17,0.48l-0.84,0.53l2.98,1.19l-0.31,0.82l-1.86,0.2l-0.69,-0.73l-2.41,-0.32l-2.83,-0.43l-2.18,-1.8l-1.59,-1.55l-1.46,-2.46l-3.66,-1.23l-2.38,0.8l-1.71,0.93l0.36,2.08l-2.2,0.97l-1.57,-0.47l-2.9,-0.12l-0.05,-9.16l-0.05,-9.1l4.87,1.92l5.18,1.6l1.93,1.43l1.56,1.41l0.43,1.65l4.67,1.73l0.68,1.49l-2.58,0.3L887.96,484.02zM904.63,475.93l-0.88,0.74l-0.53,-1.65l-0.65,-1.08l-1.27,-0.91l-1.6,-1.19l-2.02,-0.82l0.78,-0.67l1.51,0.78l0.95,0.61l1.18,0.67l1.12,1.17l1.07,0.89L904.63,475.93z"},{id:"PH",title:"Philippines",d:"M829.59,439.86l0.29,1.87l0.17,1.58l-0.96,2.57l-1.02,-2.86l-1.31,1.42l0.9,2.06l-0.8,1.31l-3.3,-1.63l-0.79,-2.03l0.86,-1.33l-1.78,-1.33l-0.88,1.17l-1.32,-0.11l-2.08,1.57l-0.46,-0.82l1.1,-2.37l1.77,-0.79l1.53,-1.06l0.99,1.27l2.13,-0.77l0.46,-1.26l1.98,-0.08l-0.17,-2.18l2.27,1.34l0.24,1.42L829.59,439.86zM822.88,434.6l-1.01,0.93l-0.88,1.79l-0.88,0.84l-1.73,-1.95l0.58,-0.76l0.7,-0.79l0.31,-1.76l1.55,-0.17l-0.45,1.91l2.08,-2.74L822.88,434.6zM807.52,437.32l-3.73,2.67l1.38,-1.97l2.03,-1.74l1.68,-1.96l1.47,-2.82l0.5,2.31l-1.85,1.56L807.52,437.32zM817,430.02l1.68,0.88l1.78,0l-0.05,1.19l-1.3,1.2l-1.78,0.85l-0.1,-1.32l0.2,-1.45L817,430.02zM827.14,429.25l0.79,3.18l-2.16,-0.75l0.06,0.95l0.69,1.75l-1.33,0.63l-0.12,-1.99l-0.84,-0.15l-0.44,-1.72l1.65,0.23l-0.04,-1.08l-1.71,-2.18l2.69,0.06L827.14,429.25zM816,426.66l-0.74,2.47l-1.2,-1.42l-1.43,-2.18l2.4,0.1L816,426.66zM815.42,410.92l1.73,0.84l0.86,-0.76l0.25,0.75l-0.46,1.22l0.96,2.09l-0.74,2.42l-1.65,0.96l-0.44,2.33l0.63,2.29l1.49,0.32l1.24,-0.34l3.5,1.59l-0.27,1.56l0.92,0.69l-0.29,1.32l-2.18,-1.4l-1.04,-1.5l-0.72,1.05l-1.79,-1.72l-2.55,0.42l-1.4,-0.63l0.14,-1.19l0.88,-0.73l-0.84,-0.67l-0.36,1.04l-1.38,-1.65l-0.42,-1.26l-0.1,-2.77l1.13,0.96l0.29,-4.55l0.91,-2.66L815.42,410.92z"},{id:"PK",title:"Pakistan",d:"M681.52,365.64L680.94,360.84L682.81,359.16L679.77,356.55L678.81,356.56L678.45,355.41L681.53,353.07L681.65,352.96L679.71,353.2L676.7,353.93L675.06,355.44L675.72,356.9L676.05,358.6L674.65,360.03L674.77,361.33L674,362.55L671.33,362.44L672.43,364.66L670.65,365.51L669.46,367.51L669.61,369.49L668.51,370.41L667.48,370.11L665.33,370.54L665.03,371.45L662.94,371.45L661.38,373.29L661.28,376.04L657.63,377.37L655.68,377.09L655.11,377.79L653.44,377.39L650.63,377.87L645.94,376.23L647.32,377.91L648.45,379.84L651.13,381.24L651.21,384.01L652.55,384.52L652.78,385.96L648.74,387.57L647.68,391.17L651.63,390.73L656.19,390.68L661.35,390.1L663.52,392.44L664.36,394.64L666.41,395.41L668.28,393.37L674.45,393.38L673.89,390.74L672.32,389.18L672,386.79L670.16,385.39L673.25,382.09L676.51,382.33L679.44,379.01L681.2,375.75L683.92,372.51L683.88,370.18L686.27,368.27L684,366.64L683.99,366.6L683.9,366.63z"},{id:"PL",title:"Poland",d:"M517.36,296.97L516.21,294.11L516.43,292.55L515.73,290.1L514.72,288.45L515.5,287.2L514.84,284.81L516.76,283.42L521.13,281.2L524.67,279.56L527.46,280.38L527.67,281.56L530.38,281.62L533.83,282.17L538.99,282.09L540.43,282.61L541.1,284.07L541.22,286.16L542,287.94L541.98,289.79L540.3,290.73L541.17,292.85L541.22,294.86L542.63,298.75L542.33,299.99L540.94,300.5L538.39,304.11L539.11,306.03L538.5,305.78L535.84,304.14L533.82,304.74L532.5,304.3L530.84,305.22L529.43,303.7L528.27,304.28L528.11,304.02L526.82,301.89L524.74,301.63L524.47,300.26L522.55,299.77L522.13,300.9L520.61,300L520.78,298.79L518.69,298.4z"},{id:"PR",title:"Puerto Rico",d:"M289.41,410.89L290.84,411.15L291.35,411.73L290.63,412.47L288.52,412.45L286.88,412.55L286.72,411.3L287.11,410.87z"},{id:"PS",title:"Palestinian Territories",d:"M574.92,367.87L574.92,369.88L574.5,370.84L573.18,371.29L573.31,370.43L574.02,369.97L573.32,369.61L573.9,367.41z"},{id:"PT",title:"Portugal",d:"M449.92,334.56L450.94,333.61L452.08,333.06L452.79,334.9L454.44,334.89L454.92,334.42L456.56,334.55L457.34,336.43L456.04,337.43L456.01,340.31L455.55,340.84L455.44,342.56L454.23,342.86L455.35,345.03L454.58,347.38L455.54,348.44L455.16,349.4L454.12,350.72L454.35,351.88L453.23,352.79L451.75,352.3L450.3,352.68L450.73,349.94L450.47,347.76L449.21,347.43L448.54,346.08L448.77,343.72L449.88,342.41L450.08,340.94L450.67,338.73L450.6,337.16L450.04,335.82z"},{id:"PY",title:"Paraguay",d:"M299.49,526.99L300.6,523.4L300.67,521.8L302.01,519.18L306.9,518.32L309.5,518.37L312.12,519.88L312.16,520.79L312.99,522.45L312.81,526.51L315.77,527.09L316.91,526.5L318.8,527.32L319.33,528.22L319.59,530.99L319.92,532.17L320.96,532.3L322.01,531.81L323.02,532.36L323.02,534.04L322.64,535.86L322.09,537.64L321.63,540.39L319.09,542.79L316.87,543.29L313.72,542.81L310.9,541.96L313.66,537.23L313.25,535.86L310.37,534.66L306.94,532.4L304.65,531.94z"},{id:"QA",title:"Qatar",d:"M617.72,392.16L617.53,389.92L618.29,388.3L619.05,387.96L619.9,388.93L619.95,390.74L619.34,392.55L618.56,392.77z"},{id:"RO",title:"Romania",d:"M538.93,310.86L540.14,309.97L541.88,310.43L543.67,310.45L544.97,311.46L545.93,310.82L548,310.42L548.71,309.44L549.89,309.45L550.74,309.85L551.61,311.09L552.5,312.84L554.12,315.28L554.21,317.07L553.91,318.79L554.42,320.62L555.67,321.35L556.98,320.71L558.26,321.39L558.32,322.42L556.96,323.26L556.11,322.9L555.33,327.61L553.68,327.2L551.64,325.79L548.34,326.69L546.95,327.68L542.83,327.48L540.67,326.87L539.59,327.16L538.78,325.56L538.27,324.88L538.92,324.22L538.22,323.73L537.34,324.61L535.71,323.47L535.49,321.84L533.78,320.9L533.47,319.63L531.95,318.05L534.2,317.29L535.89,314.53L537.22,311.73z"},{id:"RS",title:"Serbia",d:"M533.78,320.9L535.49,321.84L535.71,323.47L537.34,324.61L538.22,323.73L538.92,324.22L538.27,324.88L538.78,325.56L538.09,326.44L538.34,327.86L539.7,329.52L538.63,330.71L538.16,331.92L538.47,332.37L538,332.91L536.71,332.97L535.75,333.19L535.66,332.91L535.99,332.46L536.31,331.53L535.91,331.55L535.36,330.85L534.9,330.67L534.54,330.06L534.01,329.82L533.61,329.28L533.11,329.5L532.72,330.76L532.05,331.04L532.28,330.71L531.21,329.92L530.29,329.51L529.88,328.97L529.14,328.31L529.8,328.14L530.21,326.32L528.86,324.82L529.56,323.1L528.54,323.11L529.62,321.62L528.73,320.48L528.05,318.93L530.2,317.88L531.95,318.05L533.47,319.63z"},{id:"RU_europe",title:"Russia",d:"M607.24,63.78L601,63.25l5.47,-3.15l4.26,-0.21l0.57,4.65l1.61,-4.12l2.64,-2.9l4.16,3.85l-1.08,2.62l-3.76,2.23l-2.52,1.27l-0.39,2.72l-3.28,2.69l-3.04,-3.88L607.24,63.78zM642.66,290.85l-1.88,-0.67l-0.09,-2.65l1.13,-2.2l1.33,-1.39l-0.71,-1.75l-1.89,-1.07l-1.84,1.12l-1.9,1.5l-1.81,-2.32l-1.2,-1.83l-1.3,-2.44l3.08,-0.37l2.57,-0.64l1.66,-2.67l-0.31,-2.15l-2.11,-1.76l0.56,-2.42l2.17,-2.73l1.78,-3.54l1.77,-5l1.34,-8.84l1.89,-19.97l5.23,-4.07l4.82,-5.44l3.93,-3.13l3.76,-3.86l2.03,-4.04l-0.92,-7.34l-8.56,-7.41l-3.88,-2.49l-8.28,-2.44l-1.46,2.66l2.94,4.58l-3.19,5.09l-3.2,-4.62l-4.16,3.19l-5.25,0.21l-2.01,2.58l-3.48,-0.78l2.76,-4.64l-2.11,-0.38l-9.79,6.54l-5.86,3.52l-0.69,4.61l-4.33,1.54L603,208.5l-0.02,-4.04l3.55,-0.91l-1.6,-4.18l-7.84,-2.44l2.06,4.69l-1.37,4.41l2.34,4.28l-1.63,4.81l-2.62,-2.43l-2.59,-0.4l-6.53,6.74l1.89,4.88l-2.36,1.59l-6.78,-4.1l-1.78,2.51l1.69,2.8l-0.36,3.11l-2.19,-1.66l-3.61,-1.97l-0.18,-6.75l-0.18,-3.15l-4.57,-5.1l2.06,-0.9l12.52,5.31l4.58,-1.85l3.11,-3.69l-0.19,-4.8l-2.15,-3.51l-10.59,-8.65l-7.68,-1.88l-4.61,-4.86l-2.89,2.81l-4.77,3.19l-2.26,0.72l-0.41,5.4l4.29,4.99l-2.59,5.48l3.26,7.96l-1.89,5.76l2.52,4.85l-1.15,4.15l4.15,4.26l-1.05,3.1l-2.6,3.45l-6,7.41l2.94,2.68l-3.19,3.07l0.42,0.96l-2,3.13l0.83,4.96l-1.2,1.66l1.35,1.19l0.24,2.49l0.9,2.99l2.95,1.26l0.4,1.24l1.47,-0.59l2.74,1.18l0.27,2.31l-0.6,1.31l1.76,3.15l1.14,0.87l-0.17,0.86l1.89,0.83l0.81,1.25l-1.09,1.02l-2.26,-0.16l-0.54,0.44l0.66,1.54l0.69,2.94l1.05,0.18l0.71,-1.04l0.85,0.23l2.91,-0.44l1.79,2.58l-0.7,0.91l0.23,1.39l2.24,0.22l1,1.93l-0.06,0.87l3.56,1.54l2.15,-0.69l1.73,2.04l1.64,-0.05l4.13,1.41l0.03,1.26l-1.14,2.23l0.62,2.33l-0.44,1.4l-2.71,0.31l-1.45,1.16l-0.09,1.83l2.52,-0.66l0.07,0.9l-4.13,1.67l1.57,1.6l-2.33,3.35l-2.04,0.64l2.42,2.32l3.2,1.48l3.57,3.27l0.34,-0.45l2.37,0.66l4.13,0.62l3.82,1.83l0.49,0.71l1.7,-0.6l2.62,0.79l0.86,1.55l1.76,0.87l0.79,0.13l1.93,2.27l1.24,0.25l0.48,-0.95l1.67,-1.51l-3.06,-4.46l0.28,-2.59l-2.55,-3.7l2.79,-4.09l2.72,-0.66l1.28,-2.39l-1.42,-0.66l0.28,-2.1l-1.79,-2.76l-2.08,0.12l-2.38,-2.84l1.62,-3.21l-0.82,-0.87l2.24,-4.77l2.88,2.53l0.35,-3.19l5.79,-4.85l4.38,-0.12l6.18,3.1l3.32,1.79l2.98,-1.87l4.45,-0.09l3.59,2.29l0.81,-1.31l3.94,0.19l0.7,-2.11l-4.54,-3.1l0.37,-0.3l-0.3,-0.11L642.66,290.85zM622.39,166.28l-2.87,1.96l0.41,4.83l5.08,2.35l0.74,3.82l9.16,1.1l1.66,-0.74l-5.36,-7.11l-0.57,-7.52l4.39,-9.14l4.18,-9.82l8.71,-10.17l8.56,-5.34l9.93,-5.74l1.88,-3.71l-1.95,-4.83l-5.46,1.6l-4.8,4.49l-9.33,2.22l-9.26,7.41l-6.27,5.85l0.76,4.87l-6.71,9.03l2.58,1.22l-5.56,8.27L622.39,166.28zM537.82,278.77l-2.94,-0.86l-3.87,1.58l-0.64,2.13l3.45,0.55l5.16,-0.07l-0.22,-1.23l0.3,-1.33L537.82,278.77z"},{id:"RU_asia",title:"Russia",d:"M873.57,150.63l3.98,3.81l0.34,2.57l-4.25,0.07l-5.75,-1.08l-0.49,-0.52l2.66,-3.92L873.57,150.63zM769.87,98.34l0.83,-5.72l-7.11,-8.34l-2.11,-0.98l-2.3,1.7l-5.12,18.6L769.87,98.34zM894.64,142.03l3.24,-4.25l-7.04,-2.88l-5.23,-1.68l-0.67,3.59l5.21,4.27L894.64,142.03zM979.95,178.65l3.66,-0.52l2.89,-2.06l0.24,-1.19l-4.06,-2.51l-2.38,-0.02l-0.36,0.37l-3.57,3.64l0.5,2.73L979.95,178.65zM869.51,140.34l10.33,0.3l2.21,-8.14l-10.13,-6.07l-7.4,-0.51l-3.7,2.18l-1.51,7.75l5.55,7.01L869.51,140.34zM736.89,82.07l4.65,5.73l7.81,4.2l6.12,-1.8l0.69,-13.62l-6.46,-16.04l-5.45,-9.02l-6.07,4.11l-7.28,11.83l3.83,3.27L736.89,82.07zM1002.78,209.19l-7.61,-1.07l0.65,5.15l-1.89,-1.74l0.24,-4.44l-7.35,-7.34l-6.87,-5.86l-3.92,-3.44l-8.06,-3.84l-5.83,0.49l-8.95,-2.29l-1.25,3.62l2.27,5.07l-3.47,2.48l-4.88,-6.99l-5.31,0.89l-5.29,-1.57l-4.97,0.21l-3.75,1.64l-3.45,-2.29l0.34,-6.02l-2.33,-3.5l-5.58,-1.41l-11.32,1.62l-7.34,-6.65l-2.39,-5.35l-25.32,-6.06l-3.7,4.07l2.02,8.4l-4.59,-1.24l-2.07,2.47l-5.43,-2.72l-4.78,2.38l-4.5,-4l-2.71,9.18l-4.41,-3.49l-3.52,-6.98l1.66,-3.84l-1.29,-6.04l-4.53,-5.14l-4.48,0.05l-5.95,-1.74l-0.16,7.47l-11.72,-1.43l-0.68,-4.58l-9,-1.65l-4.48,1.57l-1.23,2.56l-1.43,-6.39l-2.52,1.91l-4.15,-2.55l-3.48,-1.43l2.11,-3.08l7.37,-5.92l3.1,-3.24l0.7,-5.85l-2.25,-4.35l-6.32,-5.84l-8.2,-0.16l-2.56,2.94l-0.76,-6.03l-6.35,-1.92l3.82,-3.13l-4.81,-4.21l-6.62,5.31l-2.68,5.33l-0.77,5.24l-5.15,-0.2l-6.29,6.24l-2.29,-2.61l-7.36,1.08l-0.94,3.15l-7.4,1.51l-5.45,5.51l-3.22,0.3l-3.25,7.02l2.28,5.38l-6.08,1.32l-6.74,-0.44l-4.88,2.02l0.28,10.28l2.49,7.62l-5.18,-5.18l-5.82,0.49l-4.69,3.58l1.28,6.37l-3,-1.59l1.11,-8.67l-1.47,-5.19l-1.4,0.22l0.65,6.62l-5.02,6.04l3.64,7.03l-2.24,8.28l0.67,4.42l3.07,0.64l-1.31,5.08l1.63,4.26l-2.43,3.49l-0.74,3.55l-3.08,1.82l-1.12,2.51l-3.21,-1.02l5.49,-10.2l1.2,-5.01l-3.09,-4.73l0.64,-11.07l-0.9,-5.94l-1.74,-2.78l2.66,-7.28l-0.58,-5.18l-7.42,-2.51l-2.08,1.88l-1.84,8.42l-5.17,7.99l0.08,2.74l1.5,6.49l-0.92,3.83l3.38,0.78l0.08,1.68l2.85,4.11l-1.88,3.97l-1.6,-1.39l0.92,7.34l-2.03,4.04l-3.76,3.86l-3.93,3.13l-4.82,5.44l-5.23,4.07l-1.89,19.97l-1.34,8.84l-1.77,5l-1.78,3.54l-2.17,2.73l-0.56,2.42l2.11,1.76l0.31,2.15l-1.66,2.67l-2.57,0.64l-3.08,0.37l1.3,2.44l1.2,1.83l1.81,2.32l1.9,-1.5l1.84,-1.12l1.89,1.07l0.71,1.75l-1.33,1.39l-1.13,2.2l0.09,2.65l1.88,0.67l0.8,1.88l0.3,0.11l2.33,-1.92l-0.53,-1.25l2.69,-1.2l-2.02,-3.21l1.29,-1.62l10.49,-1.66l1.37,-1.19l7.02,-1.79l2.52,-2.03l5.04,1.06l0.88,5.01l2.93,-1.17l3.6,1.63l-0.23,2.58l2.69,-0.27l7.03,-4.49l-1.03,1.5l3.58,3.66l6.27,11.58l1.49,-2.33l3.86,2.57l4.03,-1.14l1.55,0.8l1.35,2.55l1.96,0.85l1.19,1.84l3.61,-0.58l1.49,2.63l1.1,-0.35l2.96,-0.74l5.35,-3.74l4.26,-2.07l2.44,1.35l2.92,0.06l1.87,2.04l2.8,0.16l4.05,1.09l2.73,-3.03l-1.14,-2.6l2.9,-4.66l3.14,1.87l2.54,0.53l3.3,1.15l0.53,3.32l3.98,1.84l2.65,-0.81l3.55,-0.57l2.81,0.58l2.75,2.09l1.7,2.2l2.6,-0.04l3.53,0.7l2.58,-1.06l3.69,-0.71l4.11,-3.06l1.68,0.47l1.47,1.46l3.35,-0.36l3.37,1.63l3.95,-2.74l-0.03,-1.93l2.53,-4.72l1.56,-1.45l-0.04,-2.52l-1.54,-1.1l2.32,-2.31l3.48,-0.84l3.72,-0.13l4.2,1.39l2.46,1.71l1.73,4.61l1.05,1.94l0.98,2.73l1.04,4.28l4.88,1.38l3.32,3.03l1.13,3.95l4.26,0l2.43,-1.65l4.63,-1.24l-1.47,3.76l-1.09,1.51l-0.96,4.46l-1.89,3.89l-3.4,-0.7l-2.41,1.4l0.74,3.36l-0.4,4.55l-1.43,0.1l0.02,1.93l0.39,0.66l0.44,-1.26l3.76,-2.79l1.76,1.86l1.77,-0.05l3.74,-2.25l1.81,-2.28l3.78,-4.53l3.81,-4.66l0.94,-2.82l4.23,-6.01l1.26,-6.85l0.24,-5.27l2.19,-4.51l-0.09,-3.92l-4.05,-5.19l-3.08,-0.31l-1.79,2.38l-2.72,-1.05l-1.38,-3l-4.42,-0.61l10.75,-11.78l9.08,-10.33l9.22,-1.62l8.57,0.94l3.47,-2.7l4.36,0.84l-0.2,3.95l4.33,-0.56l6.26,-1.42l-2.32,-3.38l7.02,-9.56l7.24,-2l2.3,7.14l7.11,-6.36l1.68,-4.92l3.41,-0.51l-2.25,8.37l-5.04,4.57l-4.83,5.73l-5.01,6.78l-4.36,1.18l-0.15,2.44l-2.37,3.07l-1.35,6.95l1.56,10.65l1.2,6.69l1.04,3.08l4.04,-4.18l0.84,-4.66l4.18,-1.14l0.97,-5.4l4.9,-2.47l-1.17,-2.1l1.2,-4.15l2.6,-0.19l0.38,-7.46l-3.19,-1.17l-0.1,-2.14l3.36,-5.22l0.9,-3.63l3.75,0.76l2.7,-2.39l1.28,2.08l7.31,-4.42l4.01,3.9l1.03,-2.55l4.07,-3.5l4.29,-4.1l2.49,-0.69l7.84,-4.51l5.23,1.32l0.72,-1.6l-0.33,-2.53l-1.29,-1.67l-1.67,-5.2l-2.53,-3.44l3.63,0.48l3.6,-2.89l0.02,-0.04l1.59,-2.83l-1.26,-3.19l3.36,-1.64l-0.61,2.55l1.52,2.37l3.19,-0.87l2.85,1.1l0.63,2.89l3.73,1.92l2.14,2.26l2.63,0.19l1.12,-1.35l0.07,-6.46l4.6,-0.7l2.78,-2.97L1002.78,209.19zM880.84,306.25l-2.82,-7.68l-1.16,-4.51l0.07,-4.5l-0.97,-4.5l-0.73,-3.15l-1.25,0.67l1.11,2.21l-2.59,2.17l-0.25,6.3l1.64,4.41l-0.12,5.85l-0.65,3.24l0.32,4.54l-0.31,4.01l0.52,3.4l1.84,-3.13l2.13,2.44l0.08,-2.84l-2.73,-4.23l1.72,-6.11L880.84,306.25z"},{id:"RW",title:"Rwanda",d:"M560.54,466.55L561.66,468.12L561.49,469.76L560.69,470.11L559.2,469.93L558.34,471.52L556.63,471.3L556.89,469.77L557.28,469.56L557.38,467.9L558.19,467.12L558.87,467.41z"},{id:"SA",title:"Saudi Arabia",d:"M595.2,417.22L594.84,415.98L593.99,415.1L593.77,413.93L592.33,412.89L590.83,410.43L590.04,408.02L588.1,405.98L586.85,405.5L584.99,402.65L584.67,400.57L584.79,398.78L583.18,395.42L581.87,394.23L580.35,393.6L579.43,391.84L579.58,391.15L578.8,389.55L577.98,388.86L576.89,386.54L575.18,384.02L573.75,381.86L572.36,381.87L572.79,380.13L572.92,379.02L573.26,377.74L576.38,378.25L577.6,377.27L578.27,376.11L580.41,375.67L580.87,374.58L581.8,374.04L579,370.78L584.62,369.13L585.15,368.64L588.53,369.53L592.71,371.82L600.61,378.31L605.82,378.57L608.32,378.88L609.02,380.39L611,380.31L612.1,383.04L613.48,383.75L613.96,384.86L615.87,386.17L616.04,387.46L615.76,388.49L616.12,389.53L616.92,390.4L617.3,391.41L617.72,392.16L618.56,392.77L619.34,392.55L619.87,393.72L619.98,394.43L621.06,397.51L629.48,399.03L630.05,398.39L631.33,400.53L629.46,406.5L621.05,409.46L612.97,410.59L610.35,411.91L608.34,414.98L607.03,415.46L606.33,414.49L605.26,414.64L602.55,414.35L602.03,414.05L598.8,414.12L598.04,414.39L596.89,413.63L596.14,415.06L596.43,416.29z"},{id:"SB",title:"Solomon Islands",d:"M929.81,492.75l0.78,0.97l-1.96,-0.02l-1.07,-1.74l1.67,0.69L929.81,492.75zM926.26,491.02l-1.09,0.06l-1.72,-0.29l-0.59,-0.44l0.18,-1.12l1.85,0.44l0.91,0.59L926.26,491.02zM928.58,490.25l-0.42,0.52l-2.08,-2.45l-0.58,-1.68h0.95l1.01,2.25L928.58,490.25zM923.52,486.69l0.12,0.57l-2.2,-1.19l-1.54,-1.01l-1.05,-0.94l0.42,-0.29l1.29,0.67l2.3,1.29L923.52,486.69zM916.97,483.91l-0.56,0.16l-1.23,-0.64l-1.15,-1.15l0.14,-0.47l1.67,1.18L916.97,483.91z"},{id:"SD",title:"Sudan",d:"M570.48,436.9L570.09,436.85L570.14,435.44L569.8,434.47L568.36,433.35L568.02,431.3L568.36,429.2L567.06,429.01L566.87,429.64L565.18,429.79L565.86,430.62L566.1,432.33L564.56,433.89L563.16,435.93L561.72,436.22L559.36,434.57L558.3,435.15L558.01,435.98L556.57,436.51L556.47,437.09L553.68,437.09L553.29,436.51L551.27,436.41L550.26,436.9L549.49,436.65L548.05,435L547.57,434.23L545.54,434.62L544.77,435.93L544.05,438.45L543.09,438.98L542.23,439.29L542,439.15L541.03,438.34L540.85,437.47L541.3,436.29L541.3,435.14L539.68,433.37L539.36,432.15L539.39,431.46L538.36,430.63L538.33,428.97L537.75,427.87L536.76,428.04L537.04,426.99L537.77,425.79L537.45,424.61L538.37,423.73L537.79,423.06L538.53,421.28L539.81,419.15L542.23,419.35L542.09,407.74L542.13,406.5L545.35,406.49L545.35,400.53L556.62,400.53L567.5,400.53L578.62,400.53L579.52,403.47L578.91,404.01L579.32,407.07L580.35,410.59L581.41,411.32L582.95,412.4L581.53,414.07L579.46,414.55L578.58,415.45L578.31,417.38L577.1,421.63L577.4,422.78L576.95,425.25L575.81,428.06L574.12,429.48L572.92,431.65L572.63,432.81L571.31,433.61L570.48,436.57z"},{id:"SE",title:"Sweden",d:"M537.45,217.49L534.73,222.18L535.17,226.2L530.71,231.33L525.3,236.67L523.25,245.08L525.25,249.15L527.93,252.29L525.36,258.52L522.44,259.78L521.37,268.62L519.78,273.38L516.38,272.89L514.79,276.84L511.54,277.07L510.65,272.36L508.3,266.55L506.17,259.05L507.41,255.9L509.74,252.09L510.67,245.36L508.88,242.38L508.7,234.34L510.53,228.43L513.31,228.54L514.28,225.99L513.26,223.76L517.61,214.26L520.42,206.39L522.27,201.15L524.96,201.17L525.71,196.96L530.99,198.18L531.4,193.1L533.14,192.77L536.88,196.58L541.25,201.73L541.33,212.85L542.27,215.55z"},{id:"SI",title:"Slovenia",d:"M513.96,316.51L516.28,316.82L517.7,315.9L520.15,315.8L520.68,315.11L521.15,315.16L521.7,316.53L519.47,317.61L519.19,319.23L518.22,319.64L518.23,320.76L517.13,320.68L516.18,320.03L515.66,320.71L513.71,320.57L514.33,320.21L513.66,318.5z"},{id:"SJ",title:"Svalbard and Jan Mayen",d:"M544.58,104.49l-6.26,5.36l-4.95,-3.02l1.94,-3.42l-1.69,-4.34l5.81,-2.78l1.11,5.18L544.58,104.49zM526.43,77.81l9.23,11.29l-7.06,5.66l-1.56,10.09l-2.46,2.49l-1.33,10.51l-3.38,0.48l-6.03,-7.64l2.54,-4.62l-4.2,-3.86l-5.46,-11.82l-2.18,-11.79l7.64,-5.69l1.54,5.56l3.99,-0.22l1.06,-5.43l4.12,-0.56L526.43,77.81zM546.6,66.35l5.5,5.8l-4.16,8.52l-8.13,1.81l-8.27,-2.56l-0.5,-4.32l-4.02,-0.28l-3.07,-7.48l8.66,-4.72l4.07,4.08l2.84,-5.09L546.6,66.35z"},{id:"SK",title:"Slovakia",d:"M528.11,304.02L528.27,304.28L529.43,303.7L530.84,305.22L532.5,304.3L533.82,304.74L535.84,304.14L538.5,305.78L537.73,306.89L537.18,308.6L536.58,309.03L533.58,307.75L532.66,308L532,309L530.68,309.52L530.38,309.25L529.02,309.9L527.9,310.03L527.68,310.87L525.32,311.38L524.29,310.92L522.86,309.85L522.58,308.4L522.81,307.86L523.2,306.93L524.45,307L525.4,306.56L525.48,306.17L526.02,305.96L526.2,304.99L526.84,304.8L527.28,304.03z"},{id:"SL",title:"Sierra Leone",d:"M443.18,444.44L442.42,444.23L440.41,443.1L438.95,441.6L438.46,440.57L438.11,438.49L439.61,437.25L439.93,436.46L440.41,435.85L441.19,435.79L441.84,435.26L444.08,435.26L444.86,436.27L445.47,437.46L445.38,438.28L445.83,439.02L445.8,440.05L446.57,439.89L445.26,441.2L444,442.73L443.85,443.54z"},{id:"SN",title:"Senegal",d:"M428.39,425.16L427.23,422.92L425.83,421.9L427.07,421.35L428.43,419.32L429.09,417.83L430.05,416.9L431.45,417.15L432.81,416.52L434.38,416.49L435.72,417.34L437.58,418.11L439.28,420.24L441.13,422.22L441.26,424.01L441.81,425.65L442.86,426.46L443.1,427.56L442.97,428.45L442.56,428.61L441.04,428.39L440.83,428.7L440.21,428.77L438.19,428.07L436.84,428.04L431.66,427.92L430.91,428.24L429.98,428.15L428.49,428.62L428.03,426.43L430.58,426.49L431.26,426.09L431.76,426.06L432.8,425.4L434,426.01L435.22,426.06L436.43,425.41L435.87,424.59L434.94,425.07L434.07,425.06L432.97,424.35L432.08,424.4L431.44,425.07z"},{id:"SO",title:"Somalia",d:"M618.63,430.43L618.56,429.64L617.5,429.65L616.17,430.63L614.68,430.91L613.39,431.33L612.5,431.39L610.9,431.49L609.9,432.01L608.51,432.2L606.04,433.08L602.99,433.41L600.34,434.14L598.95,434.13L597.69,432.94L597.14,431.77L596.23,431.24L595.19,432.76L594.58,433.77L595.62,435.33L596.65,436.69L597.72,437.7L606.89,441.04L609.25,441.02L601.32,449.44L597.67,449.56L595.17,451.53L593.38,451.58L592.61,452.46L590.16,455.63L590.19,465.78L591.85,468.07L592.48,467.41L593.13,465.95L596.2,462.57L598.81,460.45L603.01,457.69L605.81,455.43L609.11,451.62L611.5,448.49L613.91,444.39L615.64,440.8L616.99,437.65L617.78,434.6L618.38,433.58L618.37,432.08z"},{id:"SR",title:"Suriname",d:"M315.02,446.72L318.38,447.28L318.68,446.77L320.95,446.57L323.96,447.33L322.5,449.73L322.72,451.64L323.83,453.3L323.34,454.5L323.09,455.77L322.37,456.94L320.77,456.35L319.44,456.64L318.31,456.39L318.03,457.2L318.5,457.75L318.25,458.32L316.72,458.09L315.01,455.67L314.64,454.1L313.75,454.09L312.5,452.07L313.02,450.62L312.87,449.97L314.57,449.24z"},{id:"SS",title:"South Sudan",d:"M570.48,436.9L570.51,439.1L570.09,439.96L568.61,440.03L567.65,441.64L569.37,441.84L570.79,443.21L571.29,444.33L572.57,444.98L574.22,448.03L572.32,449.87L570.6,451.54L568.87,452.82L566.9,452.82L564.64,453.47L562.86,452.84L561.71,453.61L559.24,451.75L558.57,450.56L557.01,451.15L555.71,450.96L554.96,451.43L553.7,451.1L552.01,448.79L551.56,447.9L549.46,446.79L548.75,445.11L547.58,443.9L545.7,442.44L545.67,441.52L544.14,440.39L542.23,439.29L543.09,438.98L544.05,438.45L544.77,435.93L545.54,434.62L547.57,434.23L548.05,435L549.49,436.65L550.26,436.9L551.27,436.41L553.29,436.51L553.68,437.09L556.47,437.09L556.57,436.51L558.01,435.98L558.3,435.15L559.36,434.57L561.72,436.22L563.16,435.93L564.56,433.89L566.1,432.33L565.86,430.62L565.18,429.79L566.87,429.64L567.06,429.01L568.36,429.2L568.02,431.3L568.36,433.35L569.8,434.47L570.14,435.44L570.09,436.85z"},{id:"SV",title:"El Salvador",d:"M229.09,425.76L228.78,426.43L227.16,426.39L226.15,426.12L224.99,425.55L223.43,425.37L222.64,424.75L222.73,424.33L223.69,423.61L224.21,423.29L224.06,422.95L224.72,422.78L225.55,423.02L226.15,423.59L227,424.05L227.1,424.44L228.33,424.1L228.91,424.3L229.29,424.61z"},{id:"SY",title:"Syria",d:"M584.02,364.6L578.53,368.14L575.41,366.82L575.35,366.8L575.73,366.3L575.69,364.93L576.38,363.1L577.91,361.83L577.45,360.51L576.19,360.33L575.93,357.72L576.61,356.31L577.36,355.56L578.11,354.8L578.27,352.86L579.18,353.54L582.27,352.57L583.76,353.22L586.07,353.21L589.29,351.9L590.81,351.96L594,351.42L592.56,353.6L591.02,354.46L591.29,356.98L590.23,361.1z"},{id:"SZ",title:"Swaziland",d:"M565.18,540.74L564.61,542.13L562.97,542.46L561.29,540.77L561.27,539.69L562.03,538.52L562.3,537.62L563.11,537.4L564.52,537.97L564.94,539.36z"},{id:"TD",title:"Chad",d:"M515.9,427.26L516.18,425.92L514.38,425.85L514.39,424L513.22,422.94L514.43,419.14L518.01,416.4L518.15,412.61L519.23,406.63L519.84,405.35L518.68,404.33L518.63,403.38L517.58,402.6L516.89,397.93L519.72,396.27L530.91,402.04L542.09,407.74L542.23,419.35L539.81,419.15L538.53,421.28L537.79,423.06L538.37,423.73L537.45,424.61L537.77,425.79L537.04,426.99L536.76,428.04L537.75,427.87L538.33,428.97L538.36,430.63L539.39,431.46L539.36,432.15L537.59,432.64L536.16,433.78L534.14,436.87L531.5,438.18L528.79,438L528,438.26L528.28,439.25L526.81,440.24L525.62,441.34L522.09,442.41L521.39,441.78L520.93,441.72L520.41,442.44L518.09,442.66L518.53,441.89L517.65,439.96L517.25,438.79L516.03,438.31L514.38,436.66L514.99,435.33L516.27,435.61L517.06,435.41L518.62,435.44L517.1,432.87L517.2,430.98L517.01,429.09z"},{id:"TF",title:"French Southern and Antarctic Lands",d:"M668.54,619.03L670.34,620.36L672.99,620.9L673.09,621.71L672.31,623.67L668,623.95L667.93,621.66L668.35,619.9z"},{id:"TG",title:"Togo",d:"M480.48,446.25L478.23,446.84L477.6,445.86L476.85,444.08L476.63,442.68L477.25,440.15L476.55,439.12L476.28,436.9L476.28,434.85L475.11,433.39L475.32,432.5L477.78,432.56L477.42,434.06L478.27,434.89L479.25,435.88L479.35,437.27L479.92,437.85L479.79,444.31z"},{id:"TH",title:"Thailand",d:"M762.89,429.18L760.37,427.87L757.97,427.93L758.38,425.68L755.91,425.7L755.69,428.84L754.18,432.99L753.27,435.49L753.46,437.54L755.28,437.63L756.42,440.2L756.93,442.63L758.49,444.24L760.19,444.57L761.64,446.02L760.73,447.17L758.87,447.51L758.65,446.07L756.37,444.84L755.88,445.34L754.77,444.27L754.29,442.88L752.8,441.29L751.44,439.96L750.98,441.61L750.45,440.05L750.76,438.29L751.58,435.58L752.94,432.67L754.48,430.02L753.38,427.42L753.43,426.09L753.11,424.49L751.24,422.21L750.57,420.76L751.54,420.23L752.56,417.71L751.42,415.79L749.64,413.66L748.28,411.09L749.46,410.56L750.74,407.37L752.72,407.23L754.36,405.95L755.96,405.26L757.18,406.18L757.34,407.96L759.23,408.09L758.54,411.2L758.61,413.82L761.56,412.08L762.4,412.59L764.05,412.51L764.61,411.49L766.73,411.69L768.86,414.07L769.04,416.94L771.31,419.47L771.18,421.91L770.27,423.21L767.64,422.8L764.02,423.35L762.22,425.73z"},{id:"TJ",title:"Tajikistan",d:"M674.37,340.62L673.34,341.75L670.29,341.14L670.02,343.24L673.06,342.96L676.53,344.13L681.83,343.58L682.54,346.91L683.46,346.55L685.16,347.36L685.07,348.74L685.49,350.75L682.59,350.75L680.66,350.49L678.92,352.06L677.67,352.4L676.69,353.14L675.58,351.99L675.85,349.04L675,348.87L675.3,347.78L673.79,346.98L672.58,348.21L672.28,349.64L671.85,350.16L670.17,350.09L669.27,351.69L668.32,351.02L666.29,352.14L665.44,351.72L667.01,348.15L666.41,345.49L664.35,344.63L665.08,343.04L667.42,343.21L668.75,341.2L669.64,338.85L673.39,337.99L672.81,339.7L673.21,340.72z"},{id:"TL",title:"Timor-Leste",d:"M825.65,488.25L825.98,487.59L828.39,486.96L830.35,486.86L831.22,486.51L832.28,486.86L831.25,487.62L828.33,488.85L825.98,489.67L825.93,488.81z"},{id:"TM",title:"Turkmenistan",d:"M646.88,356.9L646.63,353.99L644.54,353.87L641.34,350.78L639.1,350.39L636,348.6L634,348.27L632.77,348.93L630.9,348.83L628.91,350.85L626.44,351.53L625.92,349.04L626.33,345.31L624.14,344.09L624.86,341.61L623,341.39L623.62,338.3L626.26,339.21L628.73,338.02L626.68,335.79L625.88,333.65L623.62,334.61L623.34,337.34L622.46,334.93L623.7,333.68L626.88,332.89L628.78,333.95L630.74,336.88L632.18,336.7L635.34,336.65L634.88,334.77L637.28,333.47L639.64,331.27L643.42,333.27L643.72,336.26L644.79,337.03L647.82,336.86L648.76,337.53L650.14,341.32L653.35,343.83L655.18,345.52L658.11,347.27L661.84,348.79L661.76,350.95L660.92,350.84L659.59,349.9L659.15,351.15L656.79,351.83L656.23,354.62L654.65,355.67L652.44,356.19L651.85,357.74L649.74,358.2z"},{id:"TN",title:"Tunisia",d:"M501.84,374.69L500.64,368.83L498.92,367.5L498.89,366.69L496.6,364.71L496.35,362.18L498.08,360.3L498.74,357.48L498.29,354.2L498.86,352.41L501.92,351L503.88,351.42L503.8,353.19L506.18,351.9L506.38,352.57L504.97,354.28L504.96,355.88L505.93,356.73L505.56,359.69L503.71,361.4L504.24,363.23L505.69,363.29L506.4,364.88L507.47,365.4L507.31,367.95L505.94,368.9L505.08,369.95L503.15,371.21L503.45,372.56L503.21,373.94z"},{id:"TR",title:"Turkey",d:"M578.75,336.6l4.02,1.43l3.27,-0.57l2.41,0.33l3.31,-1.94l2.99,-0.18l2.7,1.83l0.48,1.3l-0.27,1.79l2.08,0.91l1.1,1.06l-1.92,1.03l0.88,4.11l-0.55,1.1l1.53,2.82l-1.34,0.59l-0.98,-0.89l-3.26,-0.45l-1.2,0.55l-3.19,0.54l-1.51,-0.06l-3.23,1.31l-2.31,0.01l-1.49,-0.66l-3.09,0.97l-0.92,-0.68l-0.15,1.94l-0.75,0.76l-0.75,0.76l-1.03,-1.57l1.06,-1.3l-1.71,0.3l-2.35,-0.8l-1.93,2l-4.26,0.39l-2.27,-1.86l-3.02,-0.12l-0.65,1.44l-1.94,0.41l-2.71,-1.85l-3.06,0.06l-1.66,-3.48l-2.05,-1.96l1.36,-2.78l-1.78,-1.72l3.11,-3.48l4.32,-0.15l1.18,-2.81l5.34,0.49l3.37,-2.42l3.27,-1.06l4.64,-0.08L578.75,336.6zM551.5,338.99l-2.34,1.98l-0.88,-1.71l0.04,-0.76l0.67,-0.41l0.87,-2.33l-1.37,-0.99l2.86,-1.18l2.41,0.5l0.33,1.44l2.45,1.2l-0.51,0.91l-3.33,0.2L551.5,338.99z"},{id:"TT",title:"Trinidad and Tobago",d:"M302.31,433.24L303.92,432.87L304.51,432.97L304.4,435.08L302.06,435.39L301.55,435.14L302.37,434.36z"},{id:"TW",title:"Taiwan",d:"M816.7,393.27L815.01,398.14L813.81,400.62L812.33,398.07L812.01,395.82L813.66,392.82L815.91,390.5L817.19,391.41z"},{id:"TZ",title:"Tanzania",d:"M570.31,466.03L570.79,466.34L580.95,472.01L581.15,473.63L585.17,476.42L583.88,479.87L584.04,481.46L585.84,482.48L585.92,483.21L585.15,484.91L585.31,485.76L585.13,487.11L586.11,488.87L587.27,491.66L588.29,492.28L586.06,493.92L583,495.02L581.32,494.98L580.32,495.83L578.37,495.9L577.63,496.26L574.26,495.46L572.15,495.69L571.37,491.83L570.42,490.51L569.85,489.73L567.11,489.21L565.51,488.36L563.73,487.89L562.61,487.41L561.44,486.7L559.93,483.15L558.3,481.58L557.74,479.96L558.02,478.5L557.52,475.93L558.68,475.8L559.69,474.79L560.79,473.33L561.48,472.75L561.45,471.84L560.85,471.21L560.69,470.11L561.49,469.76L561.66,468.12L560.54,466.55L561.53,466.21L564.6,466.25z"},{id:"UA",title:"Ukraine",d:"M564.38,292.49L565.42,292.68L566.13,291.64L566.98,291.87L569.89,291.43L571.68,294L570.98,294.92L571.21,296.31L573.45,296.52L574.45,298.45L574.39,299.32L577.95,300.86L580.1,300.17L581.83,302.21L583.47,302.16L587.6,303.57L587.63,304.84L586.5,307.07L587.11,309.4L586.67,310.79L583.96,311.1L582.51,312.26L582.43,314.09L580.19,314.42L578.32,315.74L575.7,315.95L573.28,317.47L573.45,319.97L574.82,320.93L577.68,320.69L577.13,322.11L574.06,322.79L570.25,325.06L568.7,324.27L569.31,322.42L566.25,321.26L566.75,320.49L569.43,319.16L568.62,318.24L564.26,317.22L564.07,315.71L561.47,316.21L560.43,318.44L558.26,321.39L556.98,320.71L555.67,321.35L554.42,320.62L555.12,320.18L555.61,318.81L556.38,317.52L556.18,316.8L556.77,316.47L557.04,317.04L558.7,317.15L559.44,316.86L558.92,316.44L559.11,315.84L558.13,314.8L557.73,313.08L556.71,312.41L556.91,311L555.64,309.88L554.49,309.72L552.42,308.41L550.56,308.83L549.89,309.45L548.71,309.44L548,310.42L545.93,310.82L544.97,311.46L543.67,310.45L541.88,310.43L540.14,309.97L538.93,310.86L538.73,309.74L537.18,308.6L537.73,306.89L538.5,305.78L539.11,306.03L538.39,304.11L540.94,300.5L542.33,299.99L542.63,298.75L541.22,294.86L542.56,294.69L544.1,293.46L546.27,293.36L549.1,293.72L552.23,294.8L554.44,294.89L555.49,295.54L556.54,294.76L557.28,295.81L559.81,295.59L560.92,296.02L561.11,293.76L561.97,292.76z"},{id:"UG",title:"Uganda",d:"M564.6,466.25L561.53,466.21L560.54,466.55L558.87,467.41L558.19,467.12L558.21,465.02L558.86,463.96L559.02,461.72L559.61,460.43L560.68,458.97L561.76,458.23L562.66,457.24L561.54,456.87L561.71,453.61L562.86,452.84L564.64,453.47L566.9,452.82L568.87,452.82L570.6,451.54L571.93,453.48L572.26,454.88L573.49,458.08L572.47,460.11L571.09,461.95L570.29,463.08L570.31,466.03z"},{id:"US",title:"United States",d:"M109.25,279.8L109.25,279.8l-1.54,-1.83l-2.47,-1.57l-0.79,-4.36l-3.61,-4.13l-1.51,-4.94l-2.69,-0.34l-4.46,-0.13l-3.29,-1.54l-5.8,-5.64l-2.68,-1.05l-4.9,-1.99l-3.88,0.48l-5.51,-2.59l-3.33,-2.43l-3.11,1.21l0.58,3.93l-1.55,0.36l-3.24,1.16l-2.47,1.86l-3.11,1.16l-0.4,-3.24l1.26,-5.53l2.98,-1.77l-0.77,-1.46l-3.57,3.22l-1.91,3.77l-4.04,3.95l2.05,2.65l-2.65,3.85l-3.01,2.21l-2.81,1.59l-0.69,2.29l-4.38,2.63l-0.89,2.36l-3.28,2.13l-1.92,-0.38l-2.62,1.38l-2.85,1.67l-2.33,1.63l-4.81,1.38l-0.44,-0.81l3.07,-2.27l2.74,-1.51l2.99,-2.71l3.48,-0.56l1.38,-2.06l3.89,-3.05l0.63,-1.03l2.07,-1.83l0.48,-4l1.43,-3.17l-3.23,1.64l-0.9,-0.93l-1.52,1.95l-1.83,-2.73l-0.76,1.94l-1.05,-2.7l-2.8,2.17l-1.72,0l-0.24,-3.23l0.51,-2.02l-1.81,-1.98l-3.65,1.07l-2.37,-2.63l-1.92,-1.36l-0.01,-3.25l-2.16,-2.48l1.08,-3.41l2.29,-3.37l1,-3.15l2.27,-0.45l1.92,0.99l2.26,-3.01l2.04,0.54l2.14,-1.96l-0.52,-2.92l-1.57,-1.16l2.08,-2.52l-1.72,0.07l-2.98,1.43l-0.85,1.43l-2.21,-1.43l-3.97,0.73l-4.11,-1.56l-1.18,-2.65l-3.55,-3.91l3.94,-2.87l6.25,-3.41h2.31l-0.38,3.48l5.92,-0.27l-2.28,-4.34l-3.45,-2.72l-1.99,-3.64l-2.69,-3.17l-3.85,-2.38l1.57,-4.03l4.97,-0.25l3.54,-3.58l0.67,-3.92l2.86,-3.91l2.73,-0.95l5.31,-3.76l2.58,0.57l4.31,-4.61l4.24,1.83l2.03,3.87l1.25,-1.65l4.74,0.51l-0.17,1.95l4.29,1.43l2.86,-0.84l5.91,2.64l5.39,0.78l2.16,1.07l3.73,-1.34l4.25,2.46l3.05,1.13l-0.02,27.65l-0.01,35.43l2.76,0.17l2.73,1.56l1.96,2.44l2.49,3.6l2.73,-3.05l2.81,-1.79l1.49,2.85l1.89,2.23l2.57,2.42l1.75,3.79l2.87,5.88l4.77,3.2l0.08,3.12L109.25,279.8zM285.18,314.23l-1.25,-1.19l-1.88,0.7l-0.93,-1.08l-2.14,3.1l-0.86,3.15l-1,1.82l-1.19,0.62l-0.9,0.2l-0.28,0.98l-5.17,0l-4.26,0.03l-1.27,0.73l-2.87,2.73l0.29,0.54l0.17,1.51l-2.1,1.27l-2.3,-0.32l-2.2,-0.14l-1.33,0.44l0.25,1.15l0,0l0.05,0.37l-2.42,2.27l-2.11,1.09l-1.44,0.51l-1.66,1.03l-2.03,0.5l-1.4,-0.19l-1.73,-0.77l0.96,-1.45l0.62,-1.32l1.32,-2.09l-0.14,-1.57l-0.5,-2.24l-1.04,-0.39l-1.74,1.7l-0.56,-0.03l-0.14,-0.97l1.54,-1.56l0.26,-1.79l-0.23,-1.79l-2.08,-1.55l-2.38,-0.8l-0.39,1.52l-0.62,0.4l-0.5,1.95l-0.26,-1.33l-1.12,0.95l-0.7,1.32l-0.73,1.92l-0.14,1.64l0.93,2.38l-0.08,2.51l-1.14,1.84l-0.57,0.52l-0.76,0.41l-0.95,0.02l-0.26,-0.25l-0.76,-1.98l-0.02,-0.98l0.08,-0.94l-0.35,-1.87l0.53,-2.18l0.63,-2.71l1.46,-3.03l-0.42,0.01l-2.06,2.54l-0.38,-0.46l1.1,-1.42l1.67,-2.57l1.91,-0.36l2.19,-0.8l2.21,0.42l0.09,0.02l2.47,-0.36l-1.4,-1.61l-0.75,-0.13l-0.86,-0.16l-0.59,-1.14l-2.75,0.36l-2.49,0.9l-1.97,-1.55l-1.59,-0.52l0.9,-2.17l-2.48,1.37l-2.25,1.33l-2.16,1.04l-1.72,-1.4l-2.81,0.85l0.01,-0.6l1.9,-1.73l1.99,-1.65l2.86,-1.37l-3.45,-1.09l-2.27,0.55l-2.72,-1.3l-2.86,-0.67l-1.96,-0.26l-0.87,-0.72l-0.5,-2.35l-0.95,0.02l-0.01,1.64l-5.8,0l-9.59,0l-9.53,0l-8.42,0h-8.41h-8.27h-8.55h-2.76h-8.32h-7.96l0.95,3.47l0.45,3.41l-0.69,1.09l-1.49,-3.91l-4.05,-1.42l-0.34,0.82l0.82,1.94l0.89,3.53l0.51,5.42l-0.34,3.59l-0.34,3.54l-1.1,3.61l0.9,2.9l0.1,3.2l-0.61,3.05l1.49,1.99l0.39,2.95l2.17,2.99l1.24,1.17l-0.1,0.82l2.34,4.85l2.72,3.45l0.34,1.87l0.71,0.55l2.6,0.33l1,0.91l1.57,0.17l0.31,0.96l1.31,0.4l1.82,1.92l0.47,1.7l3.19,-0.25l3.56,-0.36l-0.26,0.65l4.23,1.6l6.4,2.31l5.58,-0.02l2.22,0l0.01,-1.35l4.86,0l1.02,1.16l1.43,1.03l1.67,1.43l0.93,1.69l0.7,1.77l1.45,0.97l2.33,0.96l1.77,-2.53l2.29,-0.06l1.98,1.28l1.41,2.18l0.97,1.86l1.65,1.8l0.62,2.19l0.79,1.47l2.19,0.96l1.99,0.68l1.09,-0.09l-0.53,-1.06l-0.14,-1.5l0.03,-2.16l0.65,-1.42l1.53,-1.51l2.79,-1.37l2.55,-2.37l2.36,-0.75l1.74,-0.23l2.04,0.74l2.45,-0.4l2.09,1.69l2.03,0.1l1.05,-0.61l1.04,0.47l0.53,-0.42l-0.6,-0.63l0.05,-1.3l-0.5,-0.86l1.16,-0.5l2.14,-0.22l2.49,0.36l3.17,-0.41l1.76,0.8l1.36,1.5l0.5,0.16l2.83,-1.46l1.09,0.49l2.19,2.68l0.79,1.75l-0.58,2.1l0.42,1.23l1.3,2.4l1.49,2.68l1.07,0.71l0.44,1.35l1.38,0.37l0.84,-0.39l0.7,-1.89l0.12,-1.21l0.09,-2.1l-1.33,-3.65l-0.02,-1.37l-1.25,-2.25l-0.94,-2.75l-0.5,-2.25l0.43,-2.31l1.32,-1.94l1.58,-1.57l3.08,-2.16l0.4,-1.12l1.42,-1.23l1.4,-0.22l1.84,-1.98l2.9,-1.01l1.78,-2.53l-0.39,-3.46l-0.29,-1.21l-0.8,-0.24l-0.12,-3.35l-1.93,-1.14l1.85,0.56l-0.6,-2.26l0.54,-1.55l0.33,2.97l1.43,1.36l-0.87,2.4l0.26,0.14l1.58,-2.81l0.9,-1.38l-0.04,-1.35l-0.7,-0.64l-0.58,-1.94l0.92,0.9l0.62,0.19l0.21,0.92l2.04,-2.78l0.61,-2.62l-0.83,-0.17l0.85,-1.02l-0.08,0.45l1.79,-0.01l3.93,-1.11l-0.83,-0.7l-4.12,0.7l2.34,-1.07l1.63,-0.18l1.22,-0.19l2.07,-0.65l1.35,0.07l1.89,-0.61l0.22,-1.07l-0.84,-0.84l0.29,1.37l-1.16,-0.09l-0.93,-1.99l0.03,-2.01l0.48,-0.86l1.48,-2.28l2.96,-1.15l2.88,-1.34l2.99,-1.9l-0.48,-1.29l-1.83,-2.25L285.18,314.23zM45.62,263.79l-1.5,0.8l-2.55,1.86l0.43,2.42l1.43,1.32l2.8,-1.95l2.43,-2.47l-1.19,-1.63L45.62,263.79zM0,235.22l2.04,-1.26l0.23,-0.68L0,232.61V235.22zM8.5,250.59l-2.77,0.97l1.7,1.52l1.84,1.04l1.72,-0.87l-0.27,-2.15L8.5,250.59zM105.85,283.09l-2.69,0.38l-1.32,-0.62l-0.17,1.52l0.52,2.07l1.42,1.46l1.04,2.13l1.69,2.1l1.12,0.01l-2.44,-3.7L105.85,283.09zM37.13,403.77l-1,-0.28l-0.27,0.26l0.02,0.19l0.32,0.24l0.48,0.63l0.94,-0.21l0.23,-0.36L37.13,403.77zM34.14,403.23l1.5,0.09l0.09,-0.32l-1.38,-0.13L34.14,403.23zM40.03,406.52l-0.5,-0.26l-1.07,-0.5l-0.21,-0.06l-0.16,0.28l0.19,0.58l-0.49,0.48l-0.14,0.33l0.46,1.08l-0.08,0.83l0.7,0.42l0.41,-0.49l0.9,-0.46l1.1,-0.63l0.07,-0.16l-0.71,-1.04L40.03,406.52zM32.17,401.38l-0.75,0.41l0.11,0.12l0.36,0.68l0.98,0.11l0.2,0.04l0.15,-0.17l-0.81,-0.99L32.17,401.38zM27.77,399.82l-0.43,0.3l-0.15,0.22l0.94,0.55l0.33,-0.3l-0.06,-0.7L27.77,399.82z"},{id:"UY",title:"Uruguay",d:"M313.68,551.79L315.5,551.45L318.31,553.95L319.35,553.86L322.24,555.94L324.44,557.76L326.06,560.01L324.82,561.58L325.6,563.48L324.39,565.6L321.22,567.48L319.15,566.8L317.63,567.17L315.04,565.71L313.14,565.82L311.43,563.95L311.65,561.79L312.26,561.05L312.23,557.75L312.98,554.38z"},{id:"UZ",title:"Uzbekistan",d:"M661.76,350.95L661.84,348.79L658.11,347.27L655.18,345.52L653.35,343.83L650.14,341.32L648.76,337.53L647.82,336.86L644.79,337.03L643.72,336.26L643.42,333.27L639.64,331.27L637.28,333.47L634.88,334.77L635.34,336.65L632.18,336.7L632.07,322.57L639.29,320.22L639.81,320.57L644.16,323.41L646.45,324.89L649.13,328.39L652.42,327.83L657.23,327.53L660.58,330.33L660.37,334.13L661.74,334.16L662.31,337.22L665.88,337.34L666.64,339.09L667.69,339.07L668.92,336.42L672.61,333.81L674.22,333.11L675.05,333.48L672.7,335.91L674.77,337.31L676.77,336.38L680.09,338.34L676.5,340.98L674.37,340.62L673.21,340.72L672.81,339.7L673.39,337.99L669.64,338.85L668.75,341.2L667.42,343.21L665.08,343.04L664.35,344.63L666.41,345.49L667.01,348.15L665.44,351.72L663.32,350.98z"},{id:"VE",title:"Venezuela",d:"M275.25,430.35L275.17,431.02L273.52,431.35L274.44,432.64L274.4,434.13L273.17,435.77L274.23,438.01L275.44,437.83L276.07,435.79L275.2,434.79L275.06,432.65L278.55,431.49L278.16,430.15L279.14,429.25L280.15,431.25L282.12,431.3L283.94,432.88L284.05,433.82L286.56,433.84L289.56,433.55L291.17,434.82L293.31,435.17L294.88,434.29L294.91,433.57L298.39,433.4L301.75,433.36L299.37,434.2L300.32,435.54L302.57,435.75L304.69,437.14L305.14,439.4L306.6,439.33L307.7,440L305.48,441.65L305.23,442.68L306.19,443.72L305.5,444.24L303.77,444.69L303.83,445.99L303.07,446.76L304.96,448.88L305.34,449.67L304.31,450.74L301.17,451.78L299.16,452.22L298.35,452.88L296.12,452.18L294.04,451.82L293.52,452.08L294.77,452.8L294.66,454.67L295.05,456.43L297.42,456.67L297.58,457.25L295.57,458.05L295.25,459.23L294.09,459.68L292.01,460.33L291.47,461.19L289.29,461.37L287.74,459.89L286.89,457.12L286.14,456.14L285.12,455.53L286.54,454.14L286.45,453.51L285.65,452.68L285.09,450.83L285.31,448.82L285.93,447.88L286.44,446.38L285.45,445.89L283.85,446.21L281.83,446.06L280.7,446.36L278.72,443.95L277.09,443.59L273.49,443.86L272.82,442.88L272.13,442.65L272.03,442.06L272.36,441.02L272.14,439.89L271.52,439.27L271.16,437.97L269.72,437.79L270.49,436.13L270.84,434.12L271.65,433.06L272.74,432.25L273.45,430.83z"},{id:"VN",title:"Vietnam",d:"M778.21,401.87L774.47,404.43L772.13,407.24L771.51,409.29L773.66,412.38L776.28,416.2L778.82,417.99L780.53,420.32L781.81,425.64L781.43,430.66L779.1,432.53L775.88,434.36L773.6,436.72L770.1,439.34L769.08,437.53L769.87,435.62L767.79,434.01L770.22,432.87L773.16,432.67L771.93,430.94L776.64,428.75L776.99,425.33L776.34,423.41L776.85,420.53L776.14,418.49L774.02,416.47L772.25,413.9L769.92,410.44L766.56,408.68L767.37,407.61L769.16,406.84L768.07,404.25L764.62,404.22L763.36,401.5L761.72,399.13L763.23,398.39L765.46,398.41L768.19,398.06L770.58,396.44L771.93,397.58L774.5,398.13L774.05,399.87L775.39,401.09z"},{id:"VU",title:"Vanuatu",d:"M945.87,509.9l-0.92,0.38l-0.94,-1.27l0.1,-0.78L945.87,509.9zM943.8,505.46l0.46,2.33l-0.75,-0.36l-0.58,0.16l-0.4,-0.8l-0.06,-2.21L943.8,505.46z"},{id:"YE",title:"Yemen",d:"M624.16,416.33L622.13,417.12L621.59,418.4L621.52,419.39L618.73,420.61L614.25,421.96L611.74,423.99L610.51,424.14L609.67,423.97L608.03,425.17L606.24,425.72L603.89,425.87L603.18,426.03L602.57,426.78L601.83,426.99L601.4,427.72L600.01,427.66L599.11,428.04L597.17,427.9L596.44,426.23L596.52,424.66L596.07,423.81L595.52,421.69L594.71,420.5L595.27,420.36L594.98,419.04L595.32,418.48L595.2,417.22L596.43,416.29L596.14,415.06L596.89,413.63L598.04,414.39L598.8,414.12L602.03,414.05L602.55,414.35L605.26,414.64L606.33,414.49L607.03,415.46L608.34,414.98L610.35,411.91L612.97,410.59L621.05,409.46L623.25,414.3z"},{id:"ZA",title:"South Africa",d:"M563.63,548.71l-0.55,0.46l-1.19,1.63l-0.78,1.66l-1.59,2.33l-3.17,3.38l-1.98,1.98l-2.12,1.51l-2.93,1.3l-1.43,0.17l-0.36,0.93l-1.7,-0.5l-1.39,0.64l-3.04,-0.65l-1.7,0.41l-1.16,-0.18l-2.89,1.33l-2.39,0.54l-1.73,1.28l-1.28,0.08l-1.19,-1.21l-0.95,-0.06l-1.21,-1.51l-0.13,0.47l-0.37,-0.91l0.02,-1.96l-0.91,-2.23l0.9,-0.6l-0.07,-2.53l-1.84,-3.05l-1.41,-2.74l0,-0.01l-2.01,-4.15l1.34,-1.57l1.11,0.87l0.47,1.36l1.26,0.23l1.76,0.6l1.51,-0.23l2.5,-1.63l0,-11.52l0.76,0.46l1.66,2.93l-0.26,1.89l0.63,1.1l2.01,-0.32l1.4,-1.39l1.33,-0.93l0.69,-1.48l1.37,-0.72l1.18,0.38l1.34,0.87l2.28,0.15l1.79,-0.72l0.28,-0.96l0.49,-1.47l1.53,-0.25l0.84,-1.15l0.93,-2.03l2.52,-2.26l3.97,-2.22l1.14,0.03l1.36,0.51l0.94,-0.36l1.49,0.3l1.34,4.26l0.73,2.17l-0.5,3.43l0.24,1.11l-1.42,-0.57l-0.81,0.22l-0.26,0.9l-0.77,1.17l0.03,1.08l1.67,1.7l1.64,-0.34l0.57,-1.39l2.13,0.03l-0.7,2.28l-0.33,2.62l-0.73,1.43L563.63,548.71zM556.5,547.75l-1.22,-0.98l-1.31,0.65l-1.52,1.25l-1.5,2.03l2.1,2.48l1,-0.32l0.52,-1.03l1.56,-0.5l0.48,-1.05l0.86,-1.56L556.5,547.75z"},{id:"ZM",title:"Zambia",d:"M567.11,489.21L568.43,490.47L569.14,492.87L568.66,493.64L568.1,495.94L568.64,498.3L567.76,499.29L566.91,501.95L568.38,502.69L559.87,505.07L560.14,507.12L558.01,507.52L556.42,508.67L556.08,509.68L555.07,509.9L552.63,512.3L551.08,514.19L550.13,514.26L549.22,513.92L546.09,513.6L545.59,513.38L545.56,513.14L544.46,512.48L542.64,512.31L540.34,512.98L538.51,511.16L536.62,508.78L536.75,499.62L542.59,499.66L542.35,498.67L542.77,497.6L542.28,496.27L542.6,494.89L542.3,494.01L543.27,494.08L543.43,494.96L544.74,494.89L546.52,495.15L547.46,496.44L549.7,496.84L551.42,495.94L552.05,497.43L554.2,497.83L555.23,499.05L556.38,500.62L558.53,500.65L558.29,497.57L557.52,498.08L555.56,496.98L554.8,496.47L555.15,493.62L555.65,490.27L555.02,489.02L555.82,487.22L556.57,486.89L560.34,486.41L561.44,486.7L562.61,487.41L563.73,487.89L565.51,488.36z"},{id:"ZW",title:"Zimbabwe",d:"M562.71,527L561.22,526.7L560.27,527.06L558.92,526.55L557.78,526.52L555.99,525.16L553.82,524.7L553,522.8L552.99,521.75L551.79,521.43L548.62,518.18L547.73,516.47L547.17,515.95L546.09,513.6L549.22,513.92L550.13,514.26L551.08,514.19L552.63,512.3L555.07,509.9L556.08,509.68L556.42,508.67L558.01,507.52L560.14,507.12L560.32,508.2L562.66,508.14L563.96,508.75L564.56,509.47L565.9,509.68L567.35,510.62L567.36,514.31L566.81,516.35L566.69,518.55L567.14,519.43L566.83,521.17L566.4,521.44L565.66,523.59z"}]}}};
simudream/cdnjs
ajax/libs/ammaps/3.10.0/maps/js/worldRussiaSplitLow.min.js
JavaScript
mit
129,925
describe('Array', function() { var testSubject; beforeEach(function() { testSubject = [2, 3, undefined, true, 'hej', null, false, 0]; delete testSubject[1]; }); function createArrayLikeFromArray(arr) { var o = {}; Array.prototype.forEach.call(arr, function(e, i) { o[i]=e; }); o.length = arr.length; return o; }; describe('forEach', function() { "use strict"; var expected, actual; beforeEach(function() { expected = {0:2, 2: undefined, 3:true, 4: 'hej', 5:null, 6:false, 7:0 }; actual = {}; }); it('should pass the right parameters', function() { var callback = jasmine.createSpy('callback'), array = ['1']; array.forEach(callback); expect(callback).toHaveBeenCalledWith('1', 0, array); }); it('should not affect elements added to the array after it has begun', function() { var arr = [1,2,3], i = 0; arr.forEach(function(a) { i++; arr.push(a+3); }); expect(arr).toEqual([1,2,3,4,5,6]); expect(i).toBe(3); }); it('should set the right context when given none', function() { var context; [1].forEach(function() {context = this;}); expect(context).toBe(function() {return this}.call()); }); it('should iterate all', function() { testSubject.forEach(function(obj, index) { actual[index] = obj; }); expect(actual).toExactlyMatch(expected); }); it('should iterate all using a context', function() { var o = { a: actual }; testSubject.forEach(function(obj, index) { this.a[index] = obj; }, o); expect(actual).toExactlyMatch(expected); }); it('should iterate all in an array-like object', function() { var ts = createArrayLikeFromArray(testSubject); Array.prototype.forEach.call(ts, function(obj, index) { actual[index] = obj; }); expect(actual).toExactlyMatch(expected); }); it('should iterate all in an array-like object using a context', function() { var ts = createArrayLikeFromArray(testSubject), o = { a: actual }; Array.prototype.forEach.call(ts, function(obj, index) { this.a[index] = obj; }, o); expect(actual).toExactlyMatch(expected); }); describe('strings', function() { var str = 'Hello, World!', toString = Object.prototype.toString; it('should iterate all in a string', function() { actual = []; Array.prototype.forEach.call(str, function(item, index) { actual[index] = item; }); expect(actual).toExactlyMatch(str.split('')); }); it('should iterate all in a string using a context', function() { actual = []; var o = { a: actual }; Array.prototype.forEach.call(str, function(item, index) { this.a[index] = item; }, o); expect(actual).toExactlyMatch(str.split('')); }); it('should have String object for third argument of callback', function() { Array.prototype.forEach.call(str, function(item, index, obj) { actual = obj; }); expect(typeof actual).toBe("object"); expect(toString.call(actual)).toBe("[object String]"); }); }); }); describe('some', function() { var actual, expected, numberOfRuns; beforeEach(function() { expected = {0:2, 2: undefined, 3:true }; actual = {}; numberOfRuns = 0; }); it('should pass the correct values along to the callback', function() { var callback = jasmine.createSpy('callback'); var array = ['1']; array.some(callback); expect(callback).toHaveBeenCalledWith('1', 0, array); }); it('should not affect elements added to the array after it has begun', function() { var arr = [1,2,3], i = 0; arr.some(function(a) { i++; arr.push(a+3); return i > 3; }); expect(arr).toEqual([1,2,3,4,5,6]); expect(i).toBe(3); }); it('should set the right context when given none', function() { var context; [1].some(function() {context = this;}); expect(context).toBe(function() {return this}.call()); }); it('should return false if it runs to the end', function() { actual = testSubject.some(function() {}); expect(actual).toBeFalsy(); }); it('should return true if it is stopped somewhere', function() { actual = testSubject.some(function() { return true; }); expect(actual).toBeTruthy(); }); it('should return false if there are no elements', function() { actual = [].some(function() { return true; }); expect(actual).toBeFalsy(); }); it('should stop after 3 elements', function() { testSubject.some(function(obj, index) { actual[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return true; } return false; }); expect(actual).toExactlyMatch(expected); }); it('should stop after 3 elements using a context', function() { var o = { a: actual }; testSubject.some(function(obj, index) { this.a[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return true; } return false; }, o); expect(actual).toExactlyMatch(expected); }); it('should stop after 3 elements in an array-like object', function() { var ts = createArrayLikeFromArray(testSubject); Array.prototype.some.call(ts, function(obj, index) { actual[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return true; } return false; }); expect(actual).toExactlyMatch(expected); }); it('should stop after 3 elements in an array-like object using a context', function() { var ts = createArrayLikeFromArray(testSubject); var o = { a: actual }; Array.prototype.some.call(ts, function(obj, index) { this.a[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return true; } return false; }, o); expect(actual).toExactlyMatch(expected); }); }); describe('every', function() { var actual, expected, numberOfRuns; beforeEach(function() { expected = {0:2, 2: undefined, 3:true }; actual = {}; numberOfRuns = 0; }); it('should pass the correct values along to the callback', function() { var callback = jasmine.createSpy('callback'); var array = ['1']; array.every(callback); expect(callback).toHaveBeenCalledWith('1', 0, array); }); it('should not affect elements added to the array after it has begun', function() { var arr = [1,2,3], i = 0; arr.every(function(a) { i++; arr.push(a+3); return i <= 3; }); expect(arr).toEqual([1,2,3,4,5,6]); expect(i).toBe(3); }); it('should set the right context when given none', function() { var context; [1].every(function() {context = this;}); expect(context).toBe(function() {return this}.call()); }); it('should return true if the array is empty', function() { actual = [].every(function() { return true; }); expect(actual).toBeTruthy(); actual = [].every(function() { return false; }); expect(actual).toBeTruthy(); }); it('should return true if it runs to the end', function() { actual = [1,2,3].every(function() { return true; }); expect(actual).toBeTruthy(); }); it('should return false if it is stopped before the end', function() { actual = [1,2,3].every(function() { return false; }); expect(actual).toBeFalsy(); }); it('should return after 3 elements', function() { testSubject.every(function(obj, index) { actual[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return false; } return true; }); expect(actual).toExactlyMatch(expected); }); it('should stop after 3 elements using a context', function() { var o = { a: actual }; testSubject.every(function(obj, index) { this.a[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return false; } return true; }, o); expect(actual).toExactlyMatch(expected); }); it('should stop after 3 elements in an array-like object', function() { var ts = createArrayLikeFromArray(testSubject); Array.prototype.every.call(ts, function(obj, index) { actual[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return false; } return true; }); expect(actual).toExactlyMatch(expected); }); it('should stop after 3 elements in an array-like object using a context', function() { var ts = createArrayLikeFromArray(testSubject); var o = { a: actual }; Array.prototype.every.call(ts, function(obj, index) { this.a[index] = obj; numberOfRuns += 1; if(numberOfRuns == 3) { return false; } return true; }, o); expect(actual).toExactlyMatch(expected); }); }); describe('indexOf', function() { "use strict"; var actual, expected, testSubject; beforeEach(function() { testSubject = [2, 3, undefined, true, 'hej', null, 2, false, 0]; delete testSubject[1]; }); it('should find the element', function() { expected = 4; actual = testSubject.indexOf('hej'); expect(actual).toEqual(expected); }); it('should not find the element', function() { expected = -1; actual = testSubject.indexOf('mus'); expect(actual).toEqual(expected); }); it('should find undefined as well', function() { expected = -1; actual = testSubject.indexOf(undefined); expect(actual).not.toEqual(expected); }); it('should skip unset indexes', function() { expected = 2; actual = testSubject.indexOf(undefined); expect(actual).toEqual(expected); }); it('should use a strict test', function() { actual = testSubject.indexOf(null); expect(actual).toEqual(5); actual = testSubject.indexOf('2'); expect(actual).toEqual(-1); }); it('should skip the first if fromIndex is set', function() { expect(testSubject.indexOf(2, 2)).toEqual(6); expect(testSubject.indexOf(2, 0)).toEqual(0); expect(testSubject.indexOf(2, 6)).toEqual(6); }); it('should work with negative fromIndex', function() { expect(testSubject.indexOf(2, -3)).toEqual(6); expect(testSubject.indexOf(2, -9)).toEqual(0); }); it('should work with fromIndex being greater than the length', function() { expect(testSubject.indexOf(0, 20)).toEqual(-1); }); it('should work with fromIndex being negative and greater than the length', function() { expect(testSubject.indexOf('hej', -20)).toEqual(4); }); describe('Array-like', function ArrayLike() { var indexOf = Array.prototype.indexOf, testAL; beforeEach(function beforeEach() { testAL = {}; testSubject = [2, 3, undefined, true, 'hej', null, 2, false, 0]; testSubject.forEach(function (o,i) { testAL[i] = o; }); testAL.length = testSubject.length; }); it('should find the element (array-like)', function() { expected = 4; actual = indexOf.call(testAL, 'hej'); expect(actual).toEqual(expected); }); it('should not find the element (array-like)', function() { expected = -1; actual = indexOf.call(testAL, 'mus'); expect(actual).toEqual(expected); }); it('should find undefined as well (array-like)', function() { expected = -1; actual = indexOf.call(testAL, undefined); expect(actual).not.toEqual(expected); }); it('should skip unset indexes (array-like)', function() { expected = 2; actual = indexOf.call(testAL, undefined); expect(actual).toEqual(expected); }); it('should use a strict test (array-like)', function() { actual = Array.prototype.indexOf.call(testAL, null); expect(actual).toEqual(5); actual = Array.prototype.indexOf.call(testAL, '2'); expect(actual).toEqual(-1); }); it('should skip the first if fromIndex is set (array-like)', function() { expect(indexOf.call(testAL, 2, 2)).toEqual(6); expect(indexOf.call(testAL, 2, 0)).toEqual(0); expect(indexOf.call(testAL, 2, 6)).toEqual(6); }); it('should work with negative fromIndex (array-like)', function() { expect(indexOf.call(testAL, 2, -3)).toEqual(6); expect(indexOf.call(testAL, 2, -9)).toEqual(0); }); it('should work with fromIndex being greater than the length (array-like)', function() { expect(indexOf.call(testAL, 0, 20)).toEqual(-1); }); it('should work with fromIndex being negative and greater than the length (array-like)', function() { expect(indexOf.call(testAL, 'hej', -20)).toEqual(4); }); }); }); describe('lastIndexOf', function() { "use strict"; var actual, expected, testSubject, testAL; beforeEach(function() { testSubject = [2, 3, undefined, true, 'hej', null, 2, 3, false, 0]; delete testSubject[1]; delete testSubject[7]; }); describe('Array', function() { it('should find the element', function() { expected = 4; actual = testSubject.lastIndexOf('hej'); expect(actual).toEqual(expected); }); it('should not find the element', function() { expected = -1; actual = testSubject.lastIndexOf('mus'); expect(actual).toEqual(expected); }); it('should find undefined as well', function() { expected = -1; actual = testSubject.lastIndexOf(undefined); expect(actual).not.toEqual(expected); }); it('should skip unset indexes', function() { expected = 2; actual = testSubject.lastIndexOf(undefined); expect(actual).toEqual(expected); }); it('should use a strict test', function() { actual = testSubject.lastIndexOf(null); expect(actual).toEqual(5); actual = testSubject.lastIndexOf('2'); expect(actual).toEqual(-1); }); it('should skip the first if fromIndex is set', function() { expect(testSubject.lastIndexOf(2, 2)).toEqual(0); expect(testSubject.lastIndexOf(2, 0)).toEqual(0); expect(testSubject.lastIndexOf(2, 6)).toEqual(6); }); it('should work with negative fromIndex', function() { expect(testSubject.lastIndexOf(2, -3)).toEqual(6); expect(testSubject.lastIndexOf(2, -9)).toEqual(0); }); it('should work with fromIndex being greater than the length', function() { expect(testSubject.lastIndexOf(2, 20)).toEqual(6); }); it('should work with fromIndex being negative and greater than the length', function() { expect(testSubject.lastIndexOf(2, -20)).toEqual(-1); }); }); describe('Array like', function() { var lastIndexOf = Array.prototype.lastIndexOf, testAL; beforeEach(function() { testAL = {}; testSubject.forEach(function (o,i) { testAL[i] = o; }); testAL.length = testSubject.length; }); it('should find the element (array-like)', function() { expected = 4; actual = lastIndexOf.call(testAL, 'hej'); expect(actual).toEqual(expected); }); it('should not find the element (array-like)', function() { expected = -1; actual = lastIndexOf.call(testAL, 'mus'); expect(actual).toEqual(expected); }); it('should find undefined as well (array-like)', function() { expected = -1; actual = lastIndexOf.call(testAL, undefined); expect(actual).not.toEqual(expected); }); it('should skip unset indexes (array-like)', function() { expected = 2; actual = lastIndexOf.call(testAL, undefined); expect(actual).toEqual(expected); }); it('should use a strict test (array-like)', function() { actual = lastIndexOf.call(testAL, null); expect(actual).toEqual(5); actual = lastIndexOf.call(testAL, '2'); expect(actual).toEqual(-1); }); it('should skip the first if fromIndex is set', function() { expect(lastIndexOf.call(testAL, 2, 2)).toEqual(0); expect(lastIndexOf.call(testAL, 2, 0)).toEqual(0); expect(lastIndexOf.call(testAL, 2, 6)).toEqual(6); }); it('should work with negative fromIndex', function() { expect(lastIndexOf.call(testAL, 2, -3)).toEqual(6); expect(lastIndexOf.call(testAL, 2, -9)).toEqual(0); }); it('should work with fromIndex being greater than the length', function() { expect(lastIndexOf.call(testAL, 2, 20)).toEqual(6); }); it('should work with fromIndex being negative and greater than the length', function() { expect(lastIndexOf.call(testAL, 2, -20)).toEqual(-1); }); }); }); describe('filter', function() { var filteredArray, callback = function callback(o, i, arr) { return ( i != 3 && i != 5 ); }; beforeEach(function() { testSubject = [2, 3, undefined, true, 'hej', 3, null, false, 0]; delete testSubject[1]; filteredArray = [2, undefined, 'hej', null, false, 0]; }); describe('Array object', function() { it('should call the callback with the proper arguments', function() { var callback = jasmine.createSpy('callback'), arr = ['1']; arr.filter(callback); expect(callback).toHaveBeenCalledWith('1', 0, arr); }); it('should not affect elements added to the array after it has begun', function() { var arr = [1,2,3], i = 0; arr.filter(function(a) { i++; if(i <= 4) { arr.push(a+3); } return true; }); expect(arr).toEqual([1,2,3,4,5,6]); expect(i).toBe(3); }); it('should skip non-set values', function() { var passedValues = {}; testSubject = [1,2,3,4]; delete testSubject[1]; testSubject.filter(function(o, i) { passedValues[i] = o; return true; }); expect(passedValues).toExactlyMatch(testSubject); }); it('should pass the right context to the filter', function() { var passedValues = {}; testSubject = [1,2,3,4]; delete testSubject[1]; testSubject.filter(function(o, i) { this[i] = o; return true; }, passedValues); expect(passedValues).toExactlyMatch(testSubject); }); it('should set the right context when given none', function() { var context; [1].filter(function() {context = this;}); expect(context).toBe(function() {return this}.call()); }); it('should remove only the values for which the callback returns false', function() { var result = testSubject.filter(callback); expect(result).toExactlyMatch(filteredArray); }); it('should leave the original array untouched', function() { var copy = testSubject.slice(); testSubject.filter(callback); expect(testSubject).toExactlyMatch(copy); }); it('should not be affected by same-index mutation', function () { var results = [1, 2, 3] .filter(function (value, index, array) { array[index] = 'a'; return true; }); expect(results).toEqual([1, 2, 3]); }); }); describe('Array like', function() { beforeEach(function() { testSubject = createArrayLikeFromArray(testSubject); }); it('should call the callback with the proper arguments', function() { var callback = jasmine.createSpy('callback'), arr = createArrayLikeFromArray(['1']); Array.prototype.filter.call(arr, callback); expect(callback).toHaveBeenCalledWith('1', 0, arr); }); it('should not affect elements added to the array after it has begun', function() { var arr = createArrayLikeFromArray([1,2,3]), i = 0; Array.prototype.filter.call(arr, function(a) { i++; if(i <= 4) { arr[i+2] = a+3; } return true; }); delete arr.length; expect(arr).toExactlyMatch([1,2,3,4,5,6]); expect(i).toBe(3); }); it('should skip non-set values', function() { var passedValues = {}; testSubject = createArrayLikeFromArray([1,2,3,4]); delete testSubject[1]; Array.prototype.filter.call(testSubject, function(o, i) { passedValues[i] = o; return true; }); delete testSubject.length; expect(passedValues).toExactlyMatch(testSubject); }); it('should set the right context when given none', function() { var context; Array.prototype.filter.call(createArrayLikeFromArray([1]), function() {context = this;}, undefined); expect(context).toBe(function() {return this}.call()); }); it('should pass the right context to the filter', function() { var passedValues = {}; testSubject = createArrayLikeFromArray([1,2,3,4]); delete testSubject[1]; Array.prototype.filter.call(testSubject, function(o, i) { this[i] = o; return true; }, passedValues); delete testSubject.length; expect(passedValues).toExactlyMatch(testSubject); }); it('should remove only the values for which the callback returns false', function() { var result = Array.prototype.filter.call(testSubject, callback); expect(result).toExactlyMatch(filteredArray); }); it('should leave the original array untouched', function() { var copy = createArrayLikeFromArray(testSubject); Array.prototype.filter.call(testSubject, callback); expect(testSubject).toExactlyMatch(copy); }); }); }); describe('map', function() { var callback; beforeEach(function() { var i = 0; callback = function() { return i++; }; }); describe('Array object', function() { it('should call callback with the right parameters', function() { var callback = jasmine.createSpy('callback'), array = [1]; array.map(callback); expect(callback).toHaveBeenCalledWith(1, 0, array); }); it('should set the context correctly', function() { var context = {}; testSubject.map(function(o,i) { this[i] = o; }, context); expect(context).toExactlyMatch(testSubject); }); it('should set the right context when given none', function() { var context; [1].map(function() {context = this;}); expect(context).toBe(function() {return this}.call()); }); it('should not change the array it is called on', function() { var copy = testSubject.slice(); testSubject.map(callback); expect(testSubject).toExactlyMatch(copy); }); it('should only run for the number of objects in the array when it started', function() { var arr = [1,2,3], i = 0; arr.map(function(o) { arr.push(o+3); i++; return o; }); expect(arr).toExactlyMatch([1,2,3,4,5,6]); expect(i).toBe(3); }); it('should properly translate the values as according to the callback', function() { var result = testSubject.map(callback), expected = [0,0,1,2,3,4,5,6]; delete expected[1]; expect(result).toExactlyMatch(expected); }); it('should skip non-existing values', function() { var array = [1,2,3,4], i = 0; delete array[2]; array.map(function() { i++; }); expect(i).toBe(3); }); }); describe('Array-like', function() { beforeEach(function() { testSubject = createArrayLikeFromArray(testSubject); }); it('should call callback with the right parameters', function() { var callback = jasmine.createSpy('callback'), array = createArrayLikeFromArray([1]); Array.prototype.map.call(array, callback); expect(callback).toHaveBeenCalledWith(1, 0, array); }); it('should set the context correctly', function() { var context = {}; Array.prototype.map.call(testSubject, function(o,i) { this[i] = o; }, context); delete testSubject.length; expect(context).toExactlyMatch(testSubject); }); it('should set the right context when given none', function() { var context; Array.prototype.map.call(createArrayLikeFromArray([1]), function() {context = this;}); expect(context).toBe(function() {return this}.call()); }); it('should not change the array it is called on', function() { var copy = createArrayLikeFromArray(testSubject); Array.prototype.map.call(testSubject, callback); expect(testSubject).toExactlyMatch(copy); }); it('should only run for the number of objects in the array when it started', function() { var arr = createArrayLikeFromArray([1,2,3]), i = 0; Array.prototype.map.call(arr, function(o) { Array.prototype.push.call(arr, o+3); i++; return o; }); delete arr.length; expect(arr).toExactlyMatch([1,2,3,4,5,6]); expect(i).toBe(3); }); it('should properly translate the values as according to the callback', function() { var result = Array.prototype.map.call(testSubject, callback), expected = [0,0,1,2,3,4,5,6]; delete expected[1]; expect(result).toExactlyMatch(expected); }); it('should skip non-existing values', function() { var array = createArrayLikeFromArray([1,2,3,4]), i = 0; delete array[2]; Array.prototype.map.call(array, function() { i++; }); expect(i).toBe(3); }); }); }); describe('reduce', function() { beforeEach(function() { testSubject = [1,2,3]; }); describe('Array', function() { it('should pass the correct arguments to the callback', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduce(spy); expect(spy.calls[0].args).toExactlyMatch([1, 2, 1, testSubject]); }); it('should start with the right initialValue', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduce(spy, 0); expect(spy.calls[0].args).toExactlyMatch([0, 1, 0, testSubject]); }); it('should not affect elements added to the array after it has begun', function() { var arr = [1,2,3], i = 0; arr.reduce(function(a, b) { i++; if(i <= 4) { arr.push(a+3); }; return b; }); expect(arr).toEqual([1,2,3,4,5]); expect(i).toBe(2); }); it('should work as expected for empty arrays', function() { var spy = jasmine.createSpy(); expect(function() { [].reduce(spy); }).toThrow(); expect(spy).not.toHaveBeenCalled(); }); it('should throw correctly if no callback is given', function() { expect(function() { testSubject.reduce(); }).toThrow(); }); it('should return the expected result', function() { expect(testSubject.reduce(function(a,b) { return (a||'').toString()+(b||'').toString(); })).toEqual(testSubject.join('')); }); it('should not directly affect the passed array', function() { var copy = testSubject.slice(); testSubject.reduce(function(a,b) { return a+b; }); expect(testSubject).toEqual(copy); }); it('should skip non-set values', function() { delete testSubject[1]; var visited = {}; testSubject.reduce(function(a,b) { if(a) visited[a] = true; if(b) visited[b] = true; return 0; }); expect(visited).toEqual({ '1': true, '3': true }); }); it('should have the right length', function() { expect(testSubject.reduce.length).toBe(1); }); }); describe('Array-like objects', function() { beforeEach(function() { testSubject = createArrayLikeFromArray(testSubject); testSubject.reduce = Array.prototype.reduce; }); it('should pass the correct arguments to the callback', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduce(spy); expect(spy.calls[0].args).toExactlyMatch([1, 2, 1, testSubject]); }); it('should start with the right initialValue', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduce(spy, 0); expect(spy.calls[0].args).toExactlyMatch([0, 1, 0, testSubject]); }); it('should not affect elements added to the array after it has begun', function() { var arr = createArrayLikeFromArray([1,2,3]), i = 0; Array.prototype.reduce.call(arr, function(a, b) { i++; if(i <= 4) { arr[i+2] = a+3; }; return b; }); expect(arr).toEqual({ 0: 1, 1: 2, 2: 3, 3: 4, 4: 5, length: 3 }); expect(i).toBe(2); }); it('should work as expected for empty arrays', function() { var spy = jasmine.createSpy(); expect(function() { Array.prototype.reduce.call({length: 0}, spy); }).toThrow(); expect(spy).not.toHaveBeenCalled(); }); it('should throw correctly if no callback is given', function() { expect(function() { testSubject.reduce(); }).toThrow(); }); it('should return the expected result', function() { expect(testSubject.reduce(function(a,b) { return (a||'').toString()+(b||'').toString(); })).toEqual('123'); }); it('should not directly affect the passed array', function() { var copy = createArrayLikeFromArray(testSubject); testSubject.reduce(function(a,b) { return a+b; }); delete(testSubject.reduce); expect(testSubject).toEqual(copy); }); it('should skip non-set values', function() { delete testSubject[1]; var visited = {}; testSubject.reduce(function(a,b) { if(a) visited[a] = true; if(b) visited[b] = true; return 0; }); expect(visited).toEqual({ '1': true, '3': true }); }); it('should have the right length', function() { expect(testSubject.reduce.length).toBe(1); }); }); }); describe('reduceRight', function() { beforeEach(function() { testSubject = [1,2,3]; }); describe('Array', function() { it('should pass the correct arguments to the callback', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduceRight(spy); expect(spy.calls[0].args).toExactlyMatch([3, 2, 1, testSubject]); }); it('should start with the right initialValue', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduceRight(spy, 0); expect(spy.calls[0].args).toExactlyMatch([0, 3, 2, testSubject]); }); it('should not affect elements added to the array after it has begun', function() { var arr = [1,2,3], i = 0; arr.reduceRight(function(a, b) { i++; if(i <= 4) { arr.push(a+3); }; return b; }); expect(arr).toEqual([1,2,3,6,5]); expect(i).toBe(2); }); it('should work as expected for empty arrays', function() { var spy = jasmine.createSpy(); expect(function() { [].reduceRight(spy); }).toThrow(); expect(spy).not.toHaveBeenCalled(); }); it('should work as expected for empty arrays with an initial value', function() { var spy = jasmine.createSpy(), result; result = [].reduceRight(spy, ''); expect(spy).not.toHaveBeenCalled(); expect(result).toBe(''); }); it('should throw correctly if no callback is given', function() { expect(function() { testSubject.reduceRight(); }).toThrow(); }); it('should return the expected result', function() { expect(testSubject.reduceRight(function(a,b) { return (a||'').toString()+(b||'').toString(); })).toEqual('321'); }); it('should not directly affect the passed array', function() { var copy = testSubject.slice(); testSubject.reduceRight(function(a,b) { return a+b; }); expect(testSubject).toEqual(copy); }); it('should skip non-set values', function() { delete testSubject[1]; var visited = {}; testSubject.reduceRight(function(a,b) { if(a) visited[a] = true; if(b) visited[b] = true; return 0; }); expect(visited).toEqual({ '1': true, '3': true }); }); it('should have the right length', function() { expect(testSubject.reduceRight.length).toBe(1); }); }); describe('Array-like objects', function() { beforeEach(function() { testSubject = createArrayLikeFromArray(testSubject); testSubject.reduceRight = Array.prototype.reduceRight; }); it('should pass the correct arguments to the callback', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduceRight(spy); expect(spy.calls[0].args).toExactlyMatch([3, 2, 1, testSubject]); }); it('should start with the right initialValue', function() { var spy = jasmine.createSpy().andReturn(0); testSubject.reduceRight(spy, 0); expect(spy.calls[0].args).toExactlyMatch([0, 3, 2, testSubject]); }); it('should not affect elements added to the array after it has begun', function() { var arr = createArrayLikeFromArray([1,2,3]), i = 0; Array.prototype.reduceRight.call(arr, function(a, b) { i++; if(i <= 4) { arr[i+2] = a+3; }; return b; }); expect(arr).toEqual({ 0: 1, 1: 2, 2: 3, 3: 6, 4: 5, length: 3 // does not get updated on property assignment }); expect(i).toBe(2); }); it('should work as expected for empty arrays', function() { var spy = jasmine.createSpy(); expect(function() { Array.prototype.reduceRight.call({length:0}, spy); }).toThrow(); expect(spy).not.toHaveBeenCalled(); }); it('should throw correctly if no callback is given', function() { expect(function() { testSubject.reduceRight(); }).toThrow(); }); it('should return the expected result', function() { expect(testSubject.reduceRight(function(a,b) { return (a||'').toString()+(b||'').toString(); })).toEqual('321'); }); it('should not directly affect the passed array', function() { var copy = createArrayLikeFromArray(testSubject); testSubject.reduceRight(function(a,b) { return a+b; }); delete(testSubject.reduceRight); expect(testSubject).toEqual(copy); }); it('should skip non-set values', function() { delete testSubject[1]; var visited = {}; testSubject.reduceRight(function(a,b) { if(a) visited[a] = true; if(b) visited[b] = true; return 0; }); expect(visited).toEqual({ '1': true, '3': true }); }); it('should have the right length', function() { expect(testSubject.reduceRight.length).toBe(1); }); }); }); describe('isArray', function () { it('should work for Array', function () { var ret = Array.isArray([]); expect(ret).toBe(true); }); it('should fail for other objects', function () { var objects = [ "someString", true, false, 42, 0, {}, Object.create && Object.create(null) || null, /foo/, arguments, document.getElementsByTagName("div") ]; objects.forEach(function (v) { expect(Array.isArray(v)).toBe(false); }); }); }); describe('unshift', function () { it('should return length', function () { expect([].unshift(0)).toEqual(1); }); }); describe('splice', function () { var b = ["b"], a = [1, "a", b], test; var makeArray = function(l, prefix) { prefix = prefix || ""; var a = []; while (l--) { a.unshift(prefix + Array(l + 1).join(" ") + l) } return a }; beforeEach(function() { test = a.slice(0); }); it('basic implementation test 1', function () { expect(test.splice(0)).toEqual(a); }); it('basic implementation test 2', function () { test.splice(0, 2); expect(test).toEqual([b]); }); it('should return right result 1', function () { expect((function() { var array = []; array.splice(0, 0, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20); array.splice(1, 0, "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16", "F17", "F18", "F19", "F20", "F21","F22", "F23", "F24", "F25", "F26"); array.splice(5, 0, "XXX"); return array.join("|"); }())).toBe("1|F1|F2|F3|F4|XXX|F5|F6|F7|F8|F9|F10|F11|F12|F13|F14|F15|F16|F17|F18|F19|F20|F21|F22|F23|F24|F25|F26|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20"); }); it('should return right result 2', function () { expect((function() { var array = makeArray(6); array.splice(array.length - 1, 1, ""); array.splice(0, 1, 1,2,3,4); array.splice(0, 0, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, 21, 22, 23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45); array.splice(4, 0, "99999999999999"); return array.join("|"); }())).toBe("1|2|3|4|99999999999999|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|1|2|3|4| 1| 2| 3| 4|"); }); it('should return right result 3', function () { expect((function() { var array = [1,2,3]; array.splice(0); array.splice(0, 1, 1,2,3,4,5,6,7,8,9,10); array.splice(1, 1, "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16", "F17", "F18", "F19", "F20", "F21","F22", "F23", "F24", "F25", "F26"); array.splice(5, 1, "YYY", "XXX"); array.splice(0, 1); array.splice(0, 2); array.pop(); array.push.apply(array, makeArray(10, "-")); array.splice(array.length - 2, 10); array.splice(); array.splice(1, 1, 1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9); array.splice(1, 1, "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16", "F17", "F18", "F19", "F20", "F21","F22", "F23", "F24", "F25", "F26",1,23,4,5,6,7,8); array.splice(30, 10); array.splice(30, 1); array.splice(30, 0); array.splice(2, 5, 1,2,3,"P", "LLL", "CCC", "YYY", "XXX"); array.push(1,2,3,4,5,6); array.splice(1, 6, 1,2,3,4,5,6,7,8,9,4,5,6,7,8,9); array.splice(3, 7); array.unshift(7,8,9,10,11); array.pop(); array.splice(5, 2); array.pop(); array.unshift.apply(array, makeArray(8, "~")); array.pop(); array.splice(3, 1, "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16", "F17", "F18", "F19", "F20", "F21","F22", "F23", "F24", "F25", "F26",1,23,4,5,6,7,8); array.splice(4, 5, "P", "LLL", "CCC", "YYY", "XXX"); return array.join("|"); }())).toBe("~0|~ 1|~ 2|F1|P|LLL|CCC|YYY|XXX|F7|F8|F9|F10|F11|F12|F13|F14|F15|F16|F17|F18|F19|F20|F21|F22|F23|F24|F25|F26|1|23|4|5|6|7|8|~ 4|~ 5|~ 6|~ 7|7|8|9|10|11|2|4|5|6|7|8|9|CCC|YYY|XXX|F7|F8|F9|F10|F11|F12|F13|F14|F15|F16|F17|F18|F19|F20|F21|F22|F23|F24|F25|F26|1|23|4|9|10|1|2|3|4|5|6|7|8|9|YYY|XXX|F6|F7|F8|F9|F10|F11|F12|F13|F14|F15|F16|F17|F18|F19|F20|F21|F22|F23|F24|F25|F26|3|4|5|6|7|8|9|-0|- 1|- 2|- 3|- 4|- 5|- 6|- 7|1|2|3"); }); it('should do nothing if method called with no arguments', function () { expect(test.splice()).toEqual([]); expect(test).toEqual(a); }); //TODO:: Is this realy TRUE behavior? it('should set first argument to 0 if first argument is set but undefined', function () { var test2 = test.slice(0); expect(test.splice(void 0, 2)).toEqual(test2.splice(0, 2)); expect(test).toEqual(test2); }); it('should deleted and return all items after "start" when second argument is undefined', function () { expect(test.splice(0)).toEqual(a); expect(test).toEqual([]); }); it('should deleted and return all items after "start" when second argument is undefined', function () { expect(test.splice(2)).toEqual([b]); expect(test).toEqual([1, "a"]); }); it('runshould have the right length', function () { expect(test.splice.length).toBe(2); }); }); });
kmccanless/Yoplay
control/public/scripts/es5-shim/tests/spec/s-array.js
JavaScript
mit
50,494
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e<b.length;e=e+1){f=(""+b[e]).split(".");g=YAHOO;for(c=(f[0]=="YAHOO")?1:0;c<f.length;c=c+1){g[f[c]]=g[f[c]]||{};g=g[f[c]];}}return g;};YAHOO.log=function(d,a,c){var b=YAHOO.widget.Logger;if(b&&b.log){return b.log(d,a,c);}else{return false;}};YAHOO.register=function(a,f,e){var k=YAHOO.env.modules,c,j,h,g,d;if(!k[a]){k[a]={versions:[],builds:[]};}c=k[a];j=e.version;h=e.build;g=YAHOO.env.listeners;c.name=a;c.version=j;c.build=h;c.versions.push(j);c.builds.push(h);c.mainClass=f;for(d=0;d<g.length;d=d+1){g[d](c);}if(f){f.VERSION=j;f.BUILD=h;}else{YAHOO.log("mainClass is undefined for module "+a,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null;};YAHOO.env.parseUA=function(d){var e=function(i){var j=0;return parseFloat(i.replace(/\./g,function(){return(j++==1)?"":".";}));},h=navigator,g={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,caja:h&&h.cajaVersion,secure:false,os:null},c=d||(navigator&&navigator.userAgent),f=window&&window.location,b=f&&f.href,a;g.secure=b&&(b.toLowerCase().indexOf("https")===0);if(c){if((/windows|win32/i).test(c)){g.os="windows";}else{if((/macintosh/i).test(c)){g.os="macintosh";}else{if((/rhino/i).test(c)){g.os="rhino";}}}if((/KHTML/).test(c)){g.webkit=1;}a=c.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){g.webkit=e(a[1]);if(/ Mobile\//.test(c)){g.mobile="Apple";a=c.match(/OS ([^\s]*)/);if(a&&a[1]){a=e(a[1].replace("_","."));}g.ios=a;g.ipad=g.ipod=g.iphone=0;a=c.match(/iPad|iPod|iPhone/);if(a&&a[0]){g[a[0].toLowerCase()]=g.ios;}}else{a=c.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(a){g.mobile=a[0];}if(/webOS/.test(c)){g.mobile="WebOS";a=c.match(/webOS\/([^\s]*);/);if(a&&a[1]){g.webos=e(a[1]);}}if(/ Android/.test(c)){g.mobile="Android";a=c.match(/Android ([^\s]*);/);if(a&&a[1]){g.android=e(a[1]);}}}a=c.match(/Chrome\/([^\s]*)/);if(a&&a[1]){g.chrome=e(a[1]);}else{a=c.match(/AdobeAIR\/([^\s]*)/);if(a){g.air=a[0];}}}if(!g.webkit){a=c.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){g.opera=e(a[1]);a=c.match(/Version\/([^\s]*)/);if(a&&a[1]){g.opera=e(a[1]);}a=c.match(/Opera Mini[^;]*/);if(a){g.mobile=a[0];}}else{a=c.match(/MSIE\s([^;]*)/);if(a&&a[1]){g.ie=e(a[1]);}else{a=c.match(/Gecko\/([^\s]*)/);if(a){g.gecko=1;a=c.match(/rv:([^\s\)]*)/);if(a&&a[1]){g.gecko=e(a[1]);}}}}}}return g;};YAHOO.env.ua=YAHOO.env.parseUA();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var b=YAHOO_config.listener,a=YAHOO.env.listeners,d=true,c;if(b){for(c=0;c<a.length;c++){if(a[c]==b){d=false;break;}}if(d){a.push(b);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var f=YAHOO.lang,a=Object.prototype,c="[object Array]",h="[object Function]",i="[object Object]",b=[],g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"},d=["toString","valueOf"],e={isArray:function(j){return a.toString.apply(j)===c;},isBoolean:function(j){return typeof j==="boolean";},isFunction:function(j){return(typeof j==="function")||a.toString.apply(j)===h;},isNull:function(j){return j===null;},isNumber:function(j){return typeof j==="number"&&isFinite(j);},isObject:function(j){return(j&&(typeof j==="object"||f.isFunction(j)))||false;},isString:function(j){return typeof j==="string";},isUndefined:function(j){return typeof j==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(l,k){var j,n,m;for(j=0;j<d.length;j=j+1){n=d[j];m=k[n];if(f.isFunction(m)&&m!=a[n]){l[n]=m;}}}:function(){},escapeHTML:function(j){return j.replace(/[&<>"'\/`]/g,function(k){return g[k];});},extend:function(m,n,l){if(!n||!m){throw new Error("extend failed, please check that "+"all dependencies are included.");}var k=function(){},j;k.prototype=n.prototype;m.prototype=new k();m.prototype.constructor=m;m.superclass=n.prototype;if(n.prototype.constructor==a.constructor){n.prototype.constructor=n;}if(l){for(j in l){if(f.hasOwnProperty(l,j)){m.prototype[j]=l[j];}}f._IEEnumFix(m.prototype,l);}},augmentObject:function(n,m){if(!m||!n){throw new Error("Absorb failed, verify dependencies.");}var j=arguments,l,o,k=j[2];if(k&&k!==true){for(l=2;l<j.length;l=l+1){n[j[l]]=m[j[l]];}}else{for(o in m){if(k||!(o in n)){n[o]=m[o];}}f._IEEnumFix(n,m);}return n;},augmentProto:function(m,l){if(!l||!m){throw new Error("Augment failed, verify dependencies.");}var j=[m.prototype,l.prototype],k;for(k=2;k<arguments.length;k=k+1){j.push(arguments[k]);}f.augmentObject.apply(this,j);return m;},dump:function(j,p){var l,n,r=[],t="{...}",k="f(){...}",q=", ",m=" => ";if(!f.isObject(j)){return j+"";}else{if(j instanceof Date||("nodeType" in j&&"tagName" in j)){return j;}else{if(f.isFunction(j)){return k;}}}p=(f.isNumber(p))?p:3;if(f.isArray(j)){r.push("[");for(l=0,n=j.length;l<n;l=l+1){if(f.isObject(j[l])){r.push((p>0)?f.dump(j[l],p-1):t);}else{r.push(j[l]);}r.push(q);}if(r.length>1){r.pop();}r.push("]");}else{r.push("{");for(l in j){if(f.hasOwnProperty(j,l)){r.push(l+m);if(f.isObject(j[l])){r.push((p>0)?f.dump(j[l],p-1):t);}else{r.push(j[l]);}r.push(q);}}if(r.length>1){r.pop();}r.push("}");}return r.join("");},substitute:function(x,y,E,l){var D,C,B,G,t,u,F=[],p,z=x.length,A="dump",r=" ",q="{",m="}",n,w;for(;;){D=x.lastIndexOf(q,z);if(D<0){break;}C=x.indexOf(m,D);if(D+1>C){break;}p=x.substring(D+1,C);G=p;u=null;B=G.indexOf(r);if(B>-1){u=G.substring(B+1);G=G.substring(0,B);}t=y[G];if(E){t=E(G,t,u);}if(f.isObject(t)){if(f.isArray(t)){t=f.dump(t,parseInt(u,10));}else{u=u||"";n=u.indexOf(A);if(n>-1){u=u.substring(4);}w=t.toString();if(w===i||n>-1){t=f.dump(t,parseInt(u,10));}else{t=w;}}}else{if(!f.isString(t)&&!f.isNumber(t)){t="~-"+F.length+"-~";F[F.length]=p;}}x=x.substring(0,D)+t+x.substring(C+1);if(l===false){z=D-1;}}for(D=F.length-1;D>=0;D=D-1){x=x.replace(new RegExp("~-"+D+"-~"),"{"+F[D]+"}","g");}return x;},trim:function(j){try{return j.replace(/^\s+|\s+$/g,"");}catch(k){return j; }},merge:function(){var n={},k=arguments,j=k.length,m;for(m=0;m<j;m=m+1){f.augmentObject(n,k[m],true);}return n;},later:function(t,k,u,n,p){t=t||0;k=k||{};var l=u,s=n,q,j;if(f.isString(u)){l=k[u];}if(!l){throw new TypeError("method undefined");}if(!f.isUndefined(n)&&!f.isArray(s)){s=[n];}q=function(){l.apply(k,s||b);};j=(p)?setInterval(q,t):setTimeout(q,t);return{interval:p,cancel:function(){if(this.interval){clearInterval(j);}else{clearTimeout(j);}}};},isValue:function(j){return(f.isObject(j)||f.isString(j)||f.isNumber(j)||f.isBoolean(j));}};f.hasOwnProperty=(a.hasOwnProperty)?function(j,k){return j&&j.hasOwnProperty&&j.hasOwnProperty(k);}:function(j,k){return !f.isUndefined(j[k])&&j.constructor.prototype[k]!==j[k];};e.augmentObject(f,e,true);YAHOO.util.Lang=f;f.augment=f.augmentProto;YAHOO.augment=f.augmentProto;YAHOO.extend=f.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.9.0",build:"2800"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var e=YAHOO.util,k=YAHOO.lang,L=YAHOO.env.ua,a=YAHOO.lang.trim,B={},F={},m=/^t(?:able|d|h)$/i,w=/color$/i,j=window.document,v=j.documentElement,C="ownerDocument",M="defaultView",U="documentElement",S="compatMode",z="offsetLeft",o="offsetTop",T="offsetParent",x="parentNode",K="nodeType",c="tagName",n="scrollLeft",H="scrollTop",p="getBoundingClientRect",V="getComputedStyle",y="currentStyle",l="CSS1Compat",A="BackCompat",E="class",f="className",i="",b=" ",R="(?:^|\\s)",J="(?= |$)",t="g",O="position",D="fixed",u="relative",I="left",N="top",Q="medium",P="borderLeftWidth",q="borderTopWidth",d=L.opera,h=L.webkit,g=L.gecko,s=L.ie;e.Dom={CUSTOM_ATTRIBUTES:(!v.hasAttribute)?{"for":"htmlFor","class":f}:{"htmlFor":"for","className":E},DOT_ATTRIBUTES:{checked:true},get:function(aa){var ac,X,ab,Z,W,G,Y=null;if(aa){if(typeof aa=="string"||typeof aa=="number"){ac=aa+"";aa=j.getElementById(aa);G=(aa)?aa.attributes:null;if(aa&&G&&G.id&&G.id.value===ac){return aa;}else{if(aa&&j.all){aa=null;X=j.all[ac];if(X&&X.length){for(Z=0,W=X.length;Z<W;++Z){if(X[Z].id===ac){return X[Z];}}}}}}else{if(e.Element&&aa instanceof e.Element){aa=aa.get("element");}else{if(!aa.nodeType&&"length" in aa){ab=[];for(Z=0,W=aa.length;Z<W;++Z){ab[ab.length]=e.Dom.get(aa[Z]);}aa=ab;}}}Y=aa;}return Y;},getComputedStyle:function(G,W){if(window[V]){return G[C][M][V](G,null)[W];}else{if(G[y]){return e.Dom.IE_ComputedStyle.get(G,W);}}},getStyle:function(G,W){return e.Dom.batch(G,e.Dom._getStyle,W);},_getStyle:function(){if(window[V]){return function(G,Y){Y=(Y==="float")?Y="cssFloat":e.Dom._toCamel(Y);var X=G.style[Y],W;if(!X){W=G[C][M][V](G,null);if(W){X=W[Y];}}return X;};}else{if(v[y]){return function(G,Y){var X;switch(Y){case"opacity":X=100;try{X=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(Z){try{X=G.filters("alpha").opacity;}catch(W){}}return X/100;case"float":Y="styleFloat";default:Y=e.Dom._toCamel(Y);X=G[y]?G[y][Y]:null;return(G.style[Y]||X);}};}}}(),setStyle:function(G,W,X){e.Dom.batch(G,e.Dom._setStyle,{prop:W,val:X});},_setStyle:function(){if(!window.getComputedStyle&&j.documentElement.currentStyle){return function(W,G){var X=e.Dom._toCamel(G.prop),Y=G.val;if(W){switch(X){case"opacity":if(Y===""||Y===null||Y===1){W.style.removeAttribute("filter");}else{if(k.isString(W.style.filter)){W.style.filter="alpha(opacity="+Y*100+")";if(!W[y]||!W[y].hasLayout){W.style.zoom=1;}}}break;case"float":X="styleFloat";default:W.style[X]=Y;}}else{}};}else{return function(W,G){var X=e.Dom._toCamel(G.prop),Y=G.val;if(W){if(X=="float"){X="cssFloat";}W.style[X]=Y;}else{}};}}(),getXY:function(G){return e.Dom.batch(G,e.Dom._getXY);},_canPosition:function(G){return(e.Dom._getStyle(G,"display")!=="none"&&e.Dom._inDoc(G));},_getXY:function(W){var X,G,Z,ab,Y,aa,ac=Math.round,ad=false;if(e.Dom._canPosition(W)){Z=W[p]();ab=W[C];X=e.Dom.getDocumentScrollLeft(ab);G=e.Dom.getDocumentScrollTop(ab);ad=[Z[I],Z[N]];if(Y||aa){ad[0]-=aa;ad[1]-=Y;}if((G||X)){ad[0]+=X;ad[1]+=G;}ad[0]=ac(ad[0]);ad[1]=ac(ad[1]);}else{}return ad;},getX:function(G){var W=function(X){return e.Dom.getXY(X)[0];};return e.Dom.batch(G,W,e.Dom,true);},getY:function(G){var W=function(X){return e.Dom.getXY(X)[1];};return e.Dom.batch(G,W,e.Dom,true);},setXY:function(G,X,W){e.Dom.batch(G,e.Dom._setXY,{pos:X,noRetry:W});},_setXY:function(G,Z){var aa=e.Dom._getStyle(G,O),Y=e.Dom.setStyle,ad=Z.pos,W=Z.noRetry,ab=[parseInt(e.Dom.getComputedStyle(G,I),10),parseInt(e.Dom.getComputedStyle(G,N),10)],ac,X;ac=e.Dom._getXY(G);if(!ad||ac===false){return false;}if(aa=="static"){aa=u;Y(G,O,aa);}if(isNaN(ab[0])){ab[0]=(aa==u)?0:G[z];}if(isNaN(ab[1])){ab[1]=(aa==u)?0:G[o];}if(ad[0]!==null){Y(G,I,ad[0]-ac[0]+ab[0]+"px");}if(ad[1]!==null){Y(G,N,ad[1]-ac[1]+ab[1]+"px");}if(!W){X=e.Dom._getXY(G);if((ad[0]!==null&&X[0]!=ad[0])||(ad[1]!==null&&X[1]!=ad[1])){e.Dom._setXY(G,{pos:ad,noRetry:true});}}},setX:function(W,G){e.Dom.setXY(W,[G,null]);},setY:function(G,W){e.Dom.setXY(G,[null,W]);},getRegion:function(G){var W=function(X){var Y=false;if(e.Dom._canPosition(X)){Y=e.Region.getRegion(X);}else{}return Y;};return e.Dom.batch(G,W,e.Dom,true);},getClientWidth:function(){return e.Dom.getViewportWidth();},getClientHeight:function(){return e.Dom.getViewportHeight();},getElementsByClassName:function(ab,af,ac,ae,X,ad){af=af||"*";ac=(ac)?e.Dom.get(ac):null||j;if(!ac){return[];}var W=[],G=ac.getElementsByTagName(af),Z=e.Dom.hasClass;for(var Y=0,aa=G.length;Y<aa;++Y){if(Z(G[Y],ab)){W[W.length]=G[Y];}}if(ae){e.Dom.batch(W,ae,X,ad);}return W;},hasClass:function(W,G){return e.Dom.batch(W,e.Dom._hasClass,G);},_hasClass:function(X,W){var G=false,Y;if(X&&W){Y=e.Dom._getAttribute(X,f)||i;if(Y){Y=Y.replace(/\s+/g,b);}if(W.exec){G=W.test(Y);}else{G=W&&(b+Y+b).indexOf(b+W+b)>-1;}}else{}return G;},addClass:function(W,G){return e.Dom.batch(W,e.Dom._addClass,G);},_addClass:function(X,W){var G=false,Y;if(X&&W){Y=e.Dom._getAttribute(X,f)||i;if(!e.Dom._hasClass(X,W)){e.Dom.setAttribute(X,f,a(Y+b+W));G=true;}}else{}return G;},removeClass:function(W,G){return e.Dom.batch(W,e.Dom._removeClass,G);},_removeClass:function(Y,X){var W=false,aa,Z,G;if(Y&&X){aa=e.Dom._getAttribute(Y,f)||i;e.Dom.setAttribute(Y,f,aa.replace(e.Dom._getClassRegex(X),i));Z=e.Dom._getAttribute(Y,f);if(aa!==Z){e.Dom.setAttribute(Y,f,a(Z));W=true;if(e.Dom._getAttribute(Y,f)===""){G=(Y.hasAttribute&&Y.hasAttribute(E))?E:f;Y.removeAttribute(G);}}}else{}return W;},replaceClass:function(X,W,G){return e.Dom.batch(X,e.Dom._replaceClass,{from:W,to:G});},_replaceClass:function(Y,X){var W,ab,aa,G=false,Z;if(Y&&X){ab=X.from;aa=X.to;if(!aa){G=false;}else{if(!ab){G=e.Dom._addClass(Y,X.to);}else{if(ab!==aa){Z=e.Dom._getAttribute(Y,f)||i;W=(b+Z.replace(e.Dom._getClassRegex(ab),b+aa).replace(/\s+/g,b)).split(e.Dom._getClassRegex(aa));W.splice(1,0,b+aa);e.Dom.setAttribute(Y,f,a(W.join(i)));G=true;}}}}else{}return G;},generateId:function(G,X){X=X||"yui-gen";var W=function(Y){if(Y&&Y.id){return Y.id;}var Z=X+YAHOO.env._id_counter++; if(Y){if(Y[C]&&Y[C].getElementById(Z)){return e.Dom.generateId(Y,Z+X);}Y.id=Z;}return Z;};return e.Dom.batch(G,W,e.Dom,true)||W.apply(e.Dom,arguments);},isAncestor:function(W,X){W=e.Dom.get(W);X=e.Dom.get(X);var G=false;if((W&&X)&&(W[K]&&X[K])){if(W.contains&&W!==X){G=W.contains(X);}else{if(W.compareDocumentPosition){G=!!(W.compareDocumentPosition(X)&16);}}}else{}return G;},inDocument:function(G,W){return e.Dom._inDoc(e.Dom.get(G),W);},_inDoc:function(W,X){var G=false;if(W&&W[c]){X=X||W[C];G=e.Dom.isAncestor(X[U],W);}else{}return G;},getElementsBy:function(W,af,ab,ad,X,ac,ae){af=af||"*";ab=(ab)?e.Dom.get(ab):null||j;var aa=(ae)?null:[],G;if(ab){G=ab.getElementsByTagName(af);for(var Y=0,Z=G.length;Y<Z;++Y){if(W(G[Y])){if(ae){aa=G[Y];break;}else{aa[aa.length]=G[Y];}}}if(ad){e.Dom.batch(aa,ad,X,ac);}}return aa;},getElementBy:function(X,G,W){return e.Dom.getElementsBy(X,G,W,null,null,null,true);},batch:function(X,ab,aa,Z){var Y=[],W=(Z)?aa:null;X=(X&&(X[c]||X.item))?X:e.Dom.get(X);if(X&&ab){if(X[c]||X.length===undefined){return ab.call(W,X,aa);}for(var G=0;G<X.length;++G){Y[Y.length]=ab.call(W||X[G],X[G],aa);}}else{return false;}return Y;},getDocumentHeight:function(){var W=(j[S]!=l||h)?j.body.scrollHeight:v.scrollHeight,G=Math.max(W,e.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var W=(j[S]!=l||h)?j.body.scrollWidth:v.scrollWidth,G=Math.max(W,e.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,W=j[S];if((W||s)&&!d){G=(W==l)?v.clientHeight:j.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,W=j[S];if(W||s){G=(W==l)?v.clientWidth:j.body.clientWidth;}return G;},getAncestorBy:function(G,W){while((G=G[x])){if(e.Dom._testElement(G,W)){return G;}}return null;},getAncestorByClassName:function(W,G){W=e.Dom.get(W);if(!W){return null;}var X=function(Y){return e.Dom.hasClass(Y,G);};return e.Dom.getAncestorBy(W,X);},getAncestorByTagName:function(W,G){W=e.Dom.get(W);if(!W){return null;}var X=function(Y){return Y[c]&&Y[c].toUpperCase()==G.toUpperCase();};return e.Dom.getAncestorBy(W,X);},getPreviousSiblingBy:function(G,W){while(G){G=G.previousSibling;if(e.Dom._testElement(G,W)){return G;}}return null;},getPreviousSibling:function(G){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,W){while(G){G=G.nextSibling;if(e.Dom._testElement(G,W)){return G;}}return null;},getNextSibling:function(G){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,X){var W=(e.Dom._testElement(G.firstChild,X))?G.firstChild:null;return W||e.Dom.getNextSiblingBy(G.firstChild,X);},getFirstChild:function(G,W){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getFirstChildBy(G);},getLastChildBy:function(G,X){if(!G){return null;}var W=(e.Dom._testElement(G.lastChild,X))?G.lastChild:null;return W||e.Dom.getPreviousSiblingBy(G.lastChild,X);},getLastChild:function(G){G=e.Dom.get(G);return e.Dom.getLastChildBy(G);},getChildrenBy:function(W,Y){var X=e.Dom.getFirstChildBy(W,Y),G=X?[X]:[];e.Dom.getNextSiblingBy(X,function(Z){if(!Y||Y(Z)){G[G.length]=Z;}return false;});return G;},getChildren:function(G){G=e.Dom.get(G);if(!G){}return e.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||j;return Math.max(G[U].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||j;return Math.max(G[U].scrollTop,G.body.scrollTop);},insertBefore:function(W,G){W=e.Dom.get(W);G=e.Dom.get(G);if(!W||!G||!G[x]){return null;}return G[x].insertBefore(W,G);},insertAfter:function(W,G){W=e.Dom.get(W);G=e.Dom.get(G);if(!W||!G||!G[x]){return null;}if(G.nextSibling){return G[x].insertBefore(W,G.nextSibling);}else{return G[x].appendChild(W);}},getClientRegion:function(){var X=e.Dom.getDocumentScrollTop(),W=e.Dom.getDocumentScrollLeft(),Y=e.Dom.getViewportWidth()+W,G=e.Dom.getViewportHeight()+X;return new e.Region(X,Y,G,W);},setAttribute:function(W,G,X){e.Dom.batch(W,e.Dom._setAttribute,{attr:G,val:X});},_setAttribute:function(X,W){var G=e.Dom._toCamel(W.attr),Y=W.val;if(X&&X.setAttribute){if(e.Dom.DOT_ATTRIBUTES[G]&&X.tagName&&X.tagName!="BUTTON"){X[G]=Y;}else{G=e.Dom.CUSTOM_ATTRIBUTES[G]||G;X.setAttribute(G,Y);}}else{}},getAttribute:function(W,G){return e.Dom.batch(W,e.Dom._getAttribute,G);},_getAttribute:function(W,G){var X;G=e.Dom.CUSTOM_ATTRIBUTES[G]||G;if(e.Dom.DOT_ATTRIBUTES[G]){X=W[G];}else{if(W&&"getAttribute" in W){if(/^(?:href|src)$/.test(G)){X=W.getAttribute(G,2);}else{X=W.getAttribute(G);}}else{}}return X;},_toCamel:function(W){var X=B;function G(Y,Z){return Z.toUpperCase();}return X[W]||(X[W]=W.indexOf("-")===-1?W:W.replace(/-([a-z])/gi,G));},_getClassRegex:function(W){var G;if(W!==undefined){if(W.exec){G=W;}else{G=F[W];if(!G){W=W.replace(e.Dom._patterns.CLASS_RE_TOKENS,"\\$1");W=W.replace(/\s+/g,b);G=F[W]=new RegExp(R+W+J,t);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,W){return G&&G[K]==1&&(!W||W(G));},_calcBorders:function(X,Y){var W=parseInt(e.Dom[V](X,q),10)||0,G=parseInt(e.Dom[V](X,P),10)||0;if(g){if(m.test(X[c])){W=0;G=0;}}Y[0]+=G;Y[1]+=W;return Y;}};var r=e.Dom[V];if(L.opera){e.Dom[V]=function(W,G){var X=r(W,G);if(w.test(G)){X=e.Dom.Color.toRGB(X);}return X;};}if(L.webkit){e.Dom[V]=function(W,G){var X=r(W,G);if(X==="rgba(0, 0, 0, 0)"){X="transparent";}return X;};}if(L.ie&&L.ie>=8){e.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(d,e,a,c){this.top=d;this.y=d;this[1]=d;this.right=e;this.bottom=a;this.left=c;this.x=c;this[0]=c;this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(f){var d=Math.max(this.top,f.top),e=Math.min(this.right,f.right),a=Math.min(this.bottom,f.bottom),c=Math.max(this.left,f.left); if(a>=d&&e>=c){return new YAHOO.util.Region(d,e,a,c);}else{return null;}};YAHOO.util.Region.prototype.union=function(f){var d=Math.min(this.top,f.top),e=Math.max(this.right,f.right),a=Math.max(this.bottom,f.bottom),c=Math.min(this.left,f.left);return new YAHOO.util.Region(d,e,a,c);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(e){var g=YAHOO.util.Dom.getXY(e),d=g[1],f=g[0]+e.offsetWidth,a=g[1]+e.offsetHeight,c=g[0];return new YAHOO.util.Region(d,f,a,c);};YAHOO.util.Point=function(a,b){if(YAHOO.lang.isArray(a)){b=a[1];a=a[0];}YAHOO.util.Point.superclass.constructor.call(this,b,a,b,a);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var b=YAHOO.util,a="clientTop",f="clientLeft",j="parentNode",k="right",w="hasLayout",i="px",u="opacity",l="auto",d="borderLeftWidth",g="borderTopWidth",p="borderRightWidth",v="borderBottomWidth",s="visible",q="transparent",n="height",e="width",h="style",t="currentStyle",r=/^width|height$/,o=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,m={get:function(x,z){var y="",A=x[t][z];if(z===u){y=b.Dom.getStyle(x,u);}else{if(!A||(A.indexOf&&A.indexOf(i)>-1)){y=A;}else{if(b.Dom.IE_COMPUTED[z]){y=b.Dom.IE_COMPUTED[z](x,z);}else{if(o.test(A)){y=b.Dom.IE.ComputedStyle.getPixel(x,z);}else{y=A;}}}}return y;},getOffset:function(z,E){var B=z[t][E],x=E.charAt(0).toUpperCase()+E.substr(1),C="offset"+x,y="pixel"+x,A="",D;if(B==l){D=z[C];if(D===undefined){A=0;}A=D;if(r.test(E)){z[h][E]=D;if(z[C]>D){A=D-(z[C]-D);}z[h][E]=l;}}else{if(!z[h][y]&&!z[h][E]){z[h][E]=B;}A=z[h][y];}return A+i;},getBorderWidth:function(x,z){var y=null;if(!x[t][w]){x[h].zoom=1;}switch(z){case g:y=x[a];break;case v:y=x.offsetHeight-x.clientHeight-x[a];break;case d:y=x[f];break;case p:y=x.offsetWidth-x.clientWidth-x[f];break;}return y+i;},getPixel:function(y,x){var A=null,B=y[t][k],z=y[t][x];y[h][k]=z;A=y[h].pixelRight;y[h][k]=B;return A+i;},getMargin:function(y,x){var z;if(y[t][x]==l){z=0+i;}else{z=b.Dom.IE.ComputedStyle.getPixel(y,x);}return z;},getVisibility:function(y,x){var z;while((z=y[t])&&z[x]=="inherit"){y=y[j];}return(z)?z[x]:s;},getColor:function(y,x){return b.Dom.Color.toRGB(y[t][x])||q;},getBorderColor:function(y,x){var z=y[t],A=z[x]||z.color;return b.Dom.Color.toRGB(b.Dom.Color.toHex(A));}},c={};c.top=c.right=c.bottom=c.left=c[e]=c[n]=m.getOffset;c.color=m.getColor;c[g]=c[p]=c[v]=c[d]=m.getBorderWidth;c.marginTop=c.marginRight=c.marginBottom=c.marginLeft=m.getMargin;c.visibility=m.getVisibility;c.borderColor=c.borderTopColor=c.borderRightColor=c.borderBottomColor=c.borderLeftColor=m.getBorderColor;b.Dom.IE_COMPUTED=c;b.Dom.IE_ComputedStyle=m;})();(function(){var c="toString",a=parseInt,b=RegExp,d=YAHOO.util;d.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(e){if(!d.Dom.Color.re_RGB.test(e)){e=d.Dom.Color.toHex(e);}if(d.Dom.Color.re_hex.exec(e)){e="rgb("+[a(b.$1,16),a(b.$2,16),a(b.$3,16)].join(", ")+")";}return e;},toHex:function(f){f=d.Dom.Color.KEYWORDS[f]||f;if(d.Dom.Color.re_RGB.exec(f)){f=[Number(b.$1).toString(16),Number(b.$2).toString(16),Number(b.$3).toString(16)];for(var e=0;e<f.length;e++){if(f[e].length<2){f[e]="0"+f[e];}}f=f.join("");}if(f.length<6){f=f.replace(d.Dom.Color.re_hex3,"$1$1");}if(f!=="transparent"&&f.indexOf("#")<0){f="#"+f;}return f.toUpperCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.9.0",build:"2800"});YAHOO.util.CustomEvent=function(d,c,b,a,e){this.type=d;this.scope=c||window;this.silent=b;this.fireOnce=e;this.fired=false;this.firedWith=null;this.signature=a||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var f="_YUICEOnSubscribe";if(d!==f){this.subscribeEvent=new YAHOO.util.CustomEvent(f,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(b,c,d){if(!b){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(b,c,d);}var a=new YAHOO.util.Subscriber(b,c,d);if(this.fireOnce&&this.fired){this.notify(a,this.firedWith);}else{this.subscribers.push(a);}},unsubscribe:function(d,f){if(!d){return this.unsubscribeAll();}var e=false;for(var b=0,a=this.subscribers.length;b<a;++b){var c=this.subscribers[b];if(c&&c.contains(d,f)){this._delete(b);e=true;}}return e;},fire:function(){this.lastError=null;var h=[],a=this.subscribers.length;var d=[].slice.call(arguments,0),c=true,f,b=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=d;}}this.fired=true;if(!a&&this.silent){return true;}if(!this.silent){}var e=this.subscribers.slice();for(f=0;f<a;++f){var g=e[f];if(!g||!g.fn){b=true;}else{c=this.notify(g,d);if(false===c){if(!this.silent){}break;}}}return(c!==false);},notify:function(g,c){var b,i=null,f=g.getScope(this.scope),a=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(c.length>0){i=c[0];}try{b=g.fn.call(f,i,g.obj);}catch(h){this.lastError=h;if(a){throw h;}}}else{try{b=g.fn.call(f,this.type,c,g.obj);}catch(d){this.lastError=d;if(a){throw d;}}}return b;},unsubscribeAll:function(){var a=this.subscribers.length,b;for(b=a-1;b>-1;b--){this._delete(b);}this.subscribers=[];return a;},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj;}this.subscribers.splice(a,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(a,b,c){this.fn=a;this.obj=YAHOO.lang.isUndefined(b)?null:b;this.overrideContext=c;};YAHOO.util.Subscriber.prototype.getScope=function(a){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return a;};YAHOO.util.Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b);}else{return(this.fn==a);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var g=false,h=[],j=[],a=0,e=[],b=0,c={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},d=YAHOO.env.ua.ie,f="focusin",i="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:d,_interval:null,_dri:null,_specialTypes:{focusin:(d?"focusin":"focus"),focusout:(d?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(q,m,o,p,n){var k=(YAHOO.lang.isString(q))?[q]:q;for(var l=0;l<k.length;l=l+1){e.push({id:k[l],fn:m,obj:o,overrideContext:p,checkReady:n});}a=this.POLL_RETRYS;this.startInterval();},onContentReady:function(n,k,l,m){this.onAvailable(n,k,l,m,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(m,k,v,p,t,y){if(!v||!v.call){return false;}if(this._isValidCollection(m)){var w=true;for(var q=0,s=m.length;q<s;++q){w=this.on(m[q],k,v,p,t)&&w;}return w;}else{if(YAHOO.lang.isString(m)){var o=this.getEl(m);if(o){m=o;}else{this.onAvailable(m,function(){YAHOO.util.Event._addListener(m,k,v,p,t,y);});return true;}}}if(!m){return false;}if("unload"==k&&p!==this){j[j.length]=[m,k,v,p,t];return true;}var l=m;if(t){if(t===true){l=p;}else{l=t;}}var n=function(z){return v.call(l,YAHOO.util.Event.getEvent(z,m),p);};var x=[m,k,v,n,l,p,t,y];var r=h.length;h[r]=x;try{this._simpleAdd(m,k,n,y);}catch(u){this.lastError=u;this.removeListener(m,k,v);return false;}return true;},_getType:function(k){return this._specialTypes[k]||k;},addListener:function(m,p,l,n,o){var k=((p==f||p==i)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(m,this._getType(p),l,n,o,k);},addFocusListener:function(l,k,m,n){return this.on(l,f,k,m,n);},removeFocusListener:function(l,k){return this.removeListener(l,f,k);},addBlurListener:function(l,k,m,n){return this.on(l,i,k,m,n);},removeBlurListener:function(l,k){return this.removeListener(l,i,k);},removeListener:function(l,k,r){var m,p,u;k=this._getType(k);if(typeof l=="string"){l=this.getEl(l);}else{if(this._isValidCollection(l)){var s=true;for(m=l.length-1;m>-1;m--){s=(this.removeListener(l[m],k,r)&&s);}return s;}}if(!r||!r.call){return this.purgeElement(l,false,k);}if("unload"==k){for(m=j.length-1;m>-1;m--){u=j[m];if(u&&u[0]==l&&u[1]==k&&u[2]==r){j.splice(m,1);return true;}}return false;}var n=null;var o=arguments[3];if("undefined"===typeof o){o=this._getCacheIndex(h,l,k,r);}if(o>=0){n=h[o];}if(!l||!n){return false;}var t=n[this.CAPTURE]===true?true:false;try{this._simpleRemove(l,k,n[this.WFN],t);}catch(q){this.lastError=q;return false;}delete h[o][this.WFN];delete h[o][this.FN];h.splice(o,1);return true;},getTarget:function(m,l){var k=m.target||m.srcElement;return this.resolveTextNode(k);},resolveTextNode:function(l){try{if(l&&3==l.nodeType){return l.parentNode;}}catch(k){return null;}return l;},getPageX:function(l){var k=l.pageX;if(!k&&0!==k){k=l.clientX||0;if(this.isIE){k+=this._getScrollLeft();}}return k;},getPageY:function(k){var l=k.pageY;if(!l&&0!==l){l=k.clientY||0;if(this.isIE){l+=this._getScrollTop();}}return l;},getXY:function(k){return[this.getPageX(k),this.getPageY(k)];},getRelatedTarget:function(l){var k=l.relatedTarget; if(!k){if(l.type=="mouseout"){k=l.toElement;}else{if(l.type=="mouseover"){k=l.fromElement;}}}return this.resolveTextNode(k);},getTime:function(m){if(!m.time){var l=new Date().getTime();try{m.time=l;}catch(k){this.lastError=k;return l;}}return m.time;},stopEvent:function(k){this.stopPropagation(k);this.preventDefault(k);},stopPropagation:function(k){if(k.stopPropagation){k.stopPropagation();}else{k.cancelBubble=true;}},preventDefault:function(k){if(k.preventDefault){k.preventDefault();}else{k.returnValue=false;}},getEvent:function(m,k){var l=m||window.event;if(!l){var n=this.getEvent.caller;while(n){l=n.arguments[0];if(l&&Event==l.constructor){break;}n=n.caller;}}return l;},getCharCode:function(l){var k=l.keyCode||l.charCode||0;if(YAHOO.env.ua.webkit&&(k in c)){k=c[k];}return k;},_getCacheIndex:function(n,q,r,p){for(var o=0,m=n.length;o<m;o=o+1){var k=n[o];if(k&&k[this.FN]==p&&k[this.EL]==q&&k[this.TYPE]==r){return o;}}return -1;},generateId:function(k){var l=k.id;if(!l){l="yuievtautoid-"+b;++b;k.id=l;}return l;},_isValidCollection:function(l){try{return(l&&typeof l!=="string"&&l.length&&!l.tagName&&!l.alert&&typeof l[0]!=="undefined");}catch(k){return false;}},elCache:{},getEl:function(k){return(typeof k==="string")?document.getElementById(k):k;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(l){if(!g){g=true;var k=YAHOO.util.Event;k._ready();k._tryPreloadAttach();}},_ready:function(l){var k=YAHOO.util.Event;if(!k.DOMReady){k.DOMReady=true;k.DOMReadyEvent.fire();k._simpleRemove(document,"DOMContentLoaded",k._ready);}},_tryPreloadAttach:function(){if(e.length===0){a=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var q=!g;if(!q){q=(a>0&&e.length>0);}var p=[];var r=function(t,u){var s=t;if(u.overrideContext){if(u.overrideContext===true){s=u.obj;}else{s=u.overrideContext;}}u.fn.call(s,u.obj);};var l,k,o,n,m=[];for(l=0,k=e.length;l<k;l=l+1){o=e[l];if(o){n=this.getEl(o.id);if(n){if(o.checkReady){if(g||n.nextSibling||!q){m.push(o);e[l]=null;}}else{r(n,o);e[l]=null;}}else{p.push(o);}}}for(l=0,k=m.length;l<k;l=l+1){o=m[l];r(this.getEl(o.id),o);}a--;if(q){for(l=e.length-1;l>-1;l--){o=e[l];if(!o||!o.id){e.splice(l,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(p,q,s){var n=(YAHOO.lang.isString(p))?this.getEl(p):p;var r=this.getListeners(n,s),o,k;if(r){for(o=r.length-1;o>-1;o--){var m=r[o];this.removeListener(n,m.type,m.fn);}}if(q&&n&&n.childNodes){for(o=0,k=n.childNodes.length;o<k;++o){this.purgeElement(n.childNodes[o],q,s);}}},getListeners:function(n,k){var q=[],m;if(!k){m=[h,j];}else{if(k==="unload"){m=[j];}else{k=this._getType(k);m=[h];}}var s=(YAHOO.lang.isString(n))?this.getEl(n):n;for(var p=0;p<m.length;p=p+1){var u=m[p];if(u){for(var r=0,t=u.length;r<t;++r){var o=u[r];if(o&&o[this.EL]===s&&(!k||k===o[this.TYPE])){q.push({type:o[this.TYPE],fn:o[this.FN],obj:o[this.OBJ],adjust:o[this.OVERRIDE],scope:o[this.ADJ_SCOPE],index:r});}}}}return(q.length)?q:null;},_unload:function(s){var m=YAHOO.util.Event,p,o,n,r,q,t=j.slice(),k;for(p=0,r=j.length;p<r;++p){n=t[p];if(n){try{k=window;if(n[m.ADJ_SCOPE]){if(n[m.ADJ_SCOPE]===true){k=n[m.UNLOAD_OBJ];}else{k=n[m.ADJ_SCOPE];}}n[m.FN].call(k,m.getEvent(s,n[m.EL]),n[m.UNLOAD_OBJ]);}catch(w){}t[p]=null;}}n=null;k=null;j=null;if(h){for(o=h.length-1;o>-1;o--){n=h[o];if(n){try{m.removeListener(n[m.EL],n[m.TYPE],n[m.FN],o);}catch(v){}}}n=null;}try{m._simpleRemove(window,"unload",m._unload);m._simpleRemove(window,"load",m._load);}catch(u){}},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var k=document.documentElement,l=document.body;if(k&&(k.scrollTop||k.scrollLeft)){return[k.scrollTop,k.scrollLeft];}else{if(l){return[l.scrollTop,l.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(m,n,l,k){m.addEventListener(n,l,(k));};}else{if(window.attachEvent){return function(m,n,l,k){m.attachEvent("on"+n,l);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(m,n,l,k){m.removeEventListener(n,l,(k));};}else{if(window.detachEvent){return function(l,m,k){l.detachEvent("on"+m,k);};}else{return function(){};}}}()};}();(function(){var a=YAHOO.util.Event;a.on=a.addListener;a.onFocus=a.addFocusListener;a.onBlur=a.addBlurListener; /*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */ if(a.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;a._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var b=document.createElement("p");a._dri=setInterval(function(){try{b.doScroll("left");clearInterval(a._dri);a._dri=null;a._ready();b=null;}catch(c){}},a.POLL_INTERVAL);}}else{if(a.webkit&&a.webkit<525){a._dri=setInterval(function(){var c=document.readyState;if("loaded"==c||"complete"==c){clearInterval(a._dri);a._dri=null;a._ready();}},a.POLL_INTERVAL);}else{a._simpleAdd(document,"DOMContentLoaded",a._ready);}}a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);a._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,c,f,e){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[a];if(d){d.subscribe(c,f,e);}else{this.__yui_subscribers=this.__yui_subscribers||{};var b=this.__yui_subscribers;if(!b[a]){b[a]=[];}b[a].push({fn:c,obj:f,overrideContext:e});}},unsubscribe:function(c,e,g){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(c){var f=a[c];if(f){return f.unsubscribe(e,g);}}else{var b=true;for(var d in a){if(YAHOO.lang.hasOwnProperty(a,d)){b=b&&a[d].unsubscribe(e,g); }}return b;}return false;},unsubscribeAll:function(a){return this.unsubscribe(a);},createEvent:function(b,g){this.__yui_events=this.__yui_events||{};var e=g||{},d=this.__yui_events,f;if(d[b]){}else{f=new YAHOO.util.CustomEvent(b,e.scope||this,e.silent,YAHOO.util.CustomEvent.FLAT,e.fireOnce);d[b]=f;if(e.onSubscribeCallback){f.subscribeEvent.subscribe(e.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var a=this.__yui_subscribers[b];if(a){for(var c=0;c<a.length;++c){f.subscribe(a[c].fn,a[c].obj,a[c].overrideContext);}}}return d[b];},fireEvent:function(b){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[b];if(!d){return null;}var a=[];for(var c=1;c<arguments.length;++c){a.push(arguments[c]);}return d.fire.apply(d,a);},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true;}}return false;}};(function(){var a=YAHOO.util.Event,c=YAHOO.lang;YAHOO.util.KeyListener=function(d,i,e,f){if(!d){}else{if(!i){}else{if(!e){}}}if(!f){f=YAHOO.util.KeyListener.KEYDOWN;}var g=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(c.isString(d)){d=document.getElementById(d);}if(c.isFunction(e)){g.subscribe(e);}else{g.subscribe(e.fn,e.scope,e.correctScope);}function h(o,n){if(!i.shift){i.shift=false;}if(!i.alt){i.alt=false;}if(!i.ctrl){i.ctrl=false;}if(o.shiftKey==i.shift&&o.altKey==i.alt&&o.ctrlKey==i.ctrl){var j,m=i.keys,l;if(YAHOO.lang.isArray(m)){for(var k=0;k<m.length;k++){j=m[k];l=a.getCharCode(o);if(j==l){g.fire(l,o);break;}}}else{l=a.getCharCode(o);if(m==l){g.fire(l,o);}}}}this.enable=function(){if(!this.enabled){a.on(d,f,h);this.enabledEvent.fire(i);}this.enabled=true;};this.disable=function(){if(this.enabled){a.removeListener(d,f,h);this.disabledEvent.fire(i);}this.enabled=false;};this.toString=function(){return"KeyListener ["+i.keys+"] "+d.tagName+(d.id?"["+d.id+"]":"");};};var b=YAHOO.util.KeyListener;b.KEYDOWN="keydown";b.KEYUP="keyup";b.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.9.0",build:"2800"});YAHOO.register("yahoo-dom-event", YAHOO, {version: "2.9.0", build: "2800"});
smcguinness/cdnjs
ajax/libs/yui/2.9.0/yahoo-dom-event/yahoo-dom-event.js
JavaScript
mit
37,510
define( "dojo/cldr/nls/hu/hebrew", //begin v1.x content { "quarters-format-abbr": [ "N1", "N2", "N3", "N4" ], "dateFormat-medium": "yyyy.MM.dd.", "dateFormatItem-MMMEd": "MMM d., E", "dateFormatItem-MEd": "M. d., E", "dateFormatItem-yMEd": "yyyy.MM.dd., E", "dateFormatItem-Hm": "H:mm", "dateFormatItem-H": "H", "eraNarrow": [ "TÉ" ], "timeFormat-full": "H:mm:ss zzzz", "dateFormatItem-Md": "M. d.", "months-standAlone-wide": [ "Tisri", "Hesván", "Kiszlév", "Tévész", "Svát", "Ádár risón", "Ádár", "Niszán", "Ijár", "Sziván", null, "Áv" ], "months-format-wide-leap": "Ádár séni", "eraNames": [ "TÉ" ], "days-standAlone-narrow": [ "V", "H", "K", "Sz", "Cs", "P", "Sz" ], "dayPeriods-format-wide-pm": "du.", "months-standAlone-abbr": [ "Tisri", "Hesván", "Kiszlév", "Tévész", "Svát", "Ádár risón", "Ádár", "Niszán", "Ijár", "Sziván", null, "Áv" ], "dayPeriods-format-wide-am": "de.", "timeFormat-medium": "H:mm:ss", "dateFormat-long": "y. MMMM d.", "dateFormatItem-Hms": "H:mm:ss", "dateFormat-short": "yyyy.MM.dd.", "dateFormatItem-yMMMEd": "y. MMM d., E", "months-format-wide": [ "Tisri", "Hesván", "Kiszlév", "Tévész", "Svát", "Ádár risón", "Ádár", "Niszán", "Ijár", "Sziván", null, "Áv" ], "timeFormat-short": "H:mm", "months-format-abbr": [ "Tisri", "Hesván", "Kiszlév", "Tévész", "Svát", "Ádár risón", "Ádár", "Niszán", "Ijár", "Sziván", null, "Áv" ], "eraAbbr": [ "TÉ" ], "timeFormat-long": "H:mm:ss z", "days-format-wide": [ "vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat" ], "quarters-format-wide": [ "I. negyedév", "II. negyedév", "III. negyedév", "IV. negyedév" ], "dateFormat-full": "y. MMMM d., EEEE", "dateFormatItem-MMMd": "MMM d.", "days-format-abbr": [ "V", "H", "K", "Sze", "Cs", "P", "Szo" ] } //end v1.x content );
Nadeermalangadan/cdnjs
ajax/libs/dojo/1.7.6/cldr/nls/hu/hebrew.js.uncompressed.js
JavaScript
mit
2,033
define( "dojo/cldr/nls/nl/buddhist", //begin v1.x content { "dateFormatItem-yM": "M-y G", "dateFormatItem-yQ": "Q y G", "dateFormatItem-MMMEd": "E d MMM", "dateFormatItem-yQQQ": "QQQ y G", "dateFormatItem-MMdd": "dd-MM", "dateFormatItem-MMM": "LLL", "months-standAlone-narrow": [ "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" ], "dateFormatItem-y": "y G", "dateFormatItem-Ed": "E d", "dateFormatItem-yMMM": "MMM y G", "days-standAlone-narrow": [ "Z", "M", "D", "W", "D", "V", "Z" ], "dateFormatItem-yyyyMMMM": "MMMM y G", "dateFormat-long": "d MMMM y G", "dateFormatItem-Hm": "HH:mm", "dateFormatItem-MMd": "d-MM", "dateFormatItem-yyMM": "MM-yy G", "dateFormat-medium": "d MMM y G", "dateFormatItem-yyMMM": "MMM yy G", "dateFormatItem-yyQQQQ": "QQQQ yy G", "dateFormatItem-yMd": "d-M-y G", "dateFormatItem-ms": "mm:ss", "dateFormatItem-MMMd": "d-MMM", "dateFormatItem-yyQ": "Q yy G", "months-format-abbr": [ "jan.", "feb.", "mrt.", "apr.", "mei", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec." ], "dateFormatItem-MMMMd": "d MMMM", "quarters-format-abbr": [ "K1", "K2", "K3", "K4" ], "days-format-abbr": [ "zo", "ma", "di", "wo", "do", "vr", "za" ], "dateFormatItem-M": "L", "dateFormatItem-yMMMd": "d MMM y G", "dateFormatItem-MEd": "E d-M", "dateFormat-short": "dd-MM-yy G", "dateFormatItem-yMMMEd": "EEE d MMM y G", "dateFormat-full": "EEEE d MMMM y G", "dateFormatItem-Md": "d-M", "dateFormatItem-yMEd": "EEE d-M-y G", "months-format-wide": [ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december" ], "dateFormatItem-d": "d", "quarters-format-wide": [ "1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal" ], "days-format-wide": [ "zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag" ] } //end v1.x content );
bdukes/cdnjs
ajax/libs/dojo/1.7.6/cldr/nls/nl/buddhist.js.uncompressed.js
JavaScript
mit
2,009
define( "dojo/cldr/nls/zh/islamic", //begin v1.x content { "dateFormatItem-yM": "yyyy-M", "dateFormatItem-yQ": "y年QQQ", "dayPeriods-format-wide-pm": "下午", "dateFormatItem-MMMEd": "MMMd日E", "dateTimeFormat-full": "{1}{0}", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-yQQQ": "y年QQQ", "dateFormatItem-MMdd": "MM-dd", "dateFormatItem-MMM": "LLL", "dayPeriods-format-wide-am": "上午", "dateFormatItem-y": "y年", "timeFormat-full": "zzzzah时mm分ss秒", "dateFormatItem-yyyy": "GGGyy年", "dateFormatItem-Ed": "d日E", "dateFormatItem-yMMM": "y年MMM", "days-standAlone-narrow": [ "日", "一", "二", "三", "四", "五", "六" ], "dateFormat-long": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", "dateFormatItem-Hm": "H:mm", "dateFormat-medium": "Gyy-MM-dd", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-ms": "mm:ss", "dateTimeFormat-long": "{1}{0}", "dateFormatItem-yyyyMd": "GGGGGyy-MM-dd", "dateFormatItem-yyyyMMMd": "GGGGGyy年MMMd日", "dateFormatItem-MMMd": "MMMd日", "timeFormat-long": "zah时mm分ss秒", "timeFormat-short": "ah:mm", "dateFormatItem-H": "H时", "quarters-format-abbr": [ "1季", "2季", "3季", "4季" ], "days-format-abbr": [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ], "dateFormatItem-MMMMdd": "MMMMdd日", "dateFormatItem-M": "M月", "dateFormatItem-MEd": "M-dE", "dateFormatItem-hm": "ah:mm", "dateFormat-short": "Gyy-MM-dd", "dateFormatItem-yyyyM": "GGGGGyy-MM", "dateFormatItem-yMMMEd": "y年MMMd日EEE", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-Md": "M-d", "dateFormatItem-yyyyQ": "Gy年QQQ", "dateFormatItem-yMEd": "y年M月d日,E", "dateFormatItem-yyyyMMM": "GGGGGyy年MMM", "dateFormatItem-d": "d日", "quarters-format-wide": [ "第1季度", "第2季度", "第3季度", "第4季度" ], "days-format-wide": [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ], "dateFormatItem-h": "ah时" } //end v1.x content );
wenzhixin/cdnjs
ajax/libs/dojo/1.7.5/cldr/nls/zh/islamic.js.uncompressed.js
JavaScript
mit
2,066
/* * # Semantic UI * https://github.com/Semantic-Org/Semantic-UI * http://www.semantic-ui.com/ * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Modal *******************************/ .ui.modal { display: none; position: fixed; z-index: 1001; top: 50%; left: 50%; text-align: left; width: 90%; margin-left: -45%; background: #ffffff; border: none; box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8); border-radius: 0.2857rem; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; will-change: top, left, margin, transform, opacity; } .ui.modal > :first-child:not(.icon), .ui.modal > .icon:first-child + * { border-top-left-radius: 0.2857rem; border-top-right-radius: 0.2857rem; } .ui.modal > :last-child { border-bottom-left-radius: 0.2857rem; border-bottom-right-radius: 0.2857rem; } /******************************* Content *******************************/ /*-------------- Close ---------------*/ .ui.modal > .close { cursor: pointer; position: absolute; top: -2.5rem; right: -2.5rem; z-index: 1; opacity: 0.8; font-size: 1.25em; color: #ffffff; width: 2.25rem; height: 2.25rem; padding: 0.625rem 0rem 0rem 0rem; } .ui.modal > .close:hover { opacity: 1; } /*-------------- Header ---------------*/ .ui.modal > .header { display: block; font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif; background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff; margin: 0em; padding: 1.2rem 2rem; box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05); font-size: 1.6em; line-height: 1.3em; font-weight: bold; color: rgba(0, 0, 0, 0.85); border-bottom: 1px solid rgba(39, 41, 43, 0.15); } /*-------------- Content ---------------*/ .ui.modal > .content { display: table; table-layout: fixed; width: 100%; font-size: 1em; line-height: 1.4; padding: 2rem; background: #ffffff; } /* Image */ .ui.modal > .content > .image { display: table-cell; width: ''; vertical-align: top; } .ui.modal > .content > .image[class*="top aligned"] { vertical-align: top; } .ui.modal > .content > .image[class*="top aligned"] { vertical-align: middle; } /* Description */ .ui.modal > .content > .description { display: table-cell; vertical-align: top; } .ui.modal > .content > .icon + .description, .ui.modal > .content > .image + .description { min-width: ''; width: 80%; padding-left: 2em; } /*rtl:ignore*/ .ui.modal > .content > .image > i.icon { font-size: 8rem; margin: 0em; opacity: 1; width: auto; } /*-------------- Actions ---------------*/ .ui.modal .actions { background: #efefef; padding: 1rem 2rem; border-top: 1px solid rgba(39, 41, 43, 0.15); text-align: right; } .ui.modal .actions > .button { margin-left: 0.75em; } /*------------------- Responsive --------------------*/ /* Modal Width */ @media only screen and (max-width: 767px) { .ui.modal { width: 95%; margin: 0em 0em 0em -47.5%; } } @media only screen and (min-width: 768px) { .ui.modal { width: 88%; margin: 0em 0em 0em -44%; } } @media only screen and (min-width: 992px) { .ui.modal { width: 74%; margin: 0em 0em 0em -37%; } } @media only screen and (min-width: 1400px) { .ui.modal { width: 56%; margin: 0em 0em 0em -28%; } } @media only screen and (min-width: 1920px) { .ui.modal { width: 42%; margin: 0em 0em 0em -21%; } } /* Tablet and Mobile */ @media only screen and (max-width: 992px) { .ui.modal > .header { padding-right: 2.25rem; } .ui.modal > .close { top: 0.905rem; right: 1rem; color: rgba(0, 0, 0, 0.8); } } /* Mobile */ @media only screen and (max-width: 767px) { .ui.modal > .header { padding: 0.75rem 1rem !important; padding-right: 2.25rem !important; } .ui.modal > .content { display: block; padding: 1rem !important; } .ui.modal > .close { top: 0.5rem !important; right: 0.5rem !important; } /*rtl:ignore*/ .ui.modal .content > .image { display: block; max-width: 100%; margin: 0em auto !important; text-align: center; padding: 0rem 0rem 1rem !important; } .ui.modal > .content > .image > i.icon { font-size: 5rem; text-align: center; } /*rtl:ignore*/ .ui.modal .content > .description { display: block; width: 100% !important; margin: 0em !important; padding: 1rem 0rem !important; box-shadow: none; } .ui.modal > .actions { padding: 1rem 1rem -1rem !important; } .ui.modal .actions > .buttons, .ui.modal .actions > .button { margin-bottom: 2rem; } } /******************************* Types *******************************/ .ui.basic.modal { background-color: transparent; border: none; box-shadow: 0px 0px 0px 0px; color: #ffffff; } .ui.basic.modal > .header, .ui.basic.modal > .content, .ui.basic.modal > .actions { background-color: transparent; } .ui.basic.modal > .header { color: #ffffff; } .ui.basic.modal > .close { top: 1rem; right: 1.5rem; } /* Tablet and Mobile */ @media only screen and (max-width: 992px) { .ui.basic.modal > .close { color: #ffffff; } } /******************************* Variations *******************************/ /* A modal that cannot fit on the page */ .scrolling.dimmable.dimmed { overflow: hidden; } .scrolling.dimmable.dimmed > .dimmer { overflow: auto; -webkit-overflow-scrolling: touch; } .scrolling.dimmable > .dimmer { position: fixed; } .ui.scrolling.modal { position: static; margin: 3.5rem auto !important; } @media only screen and (max-width: 992px) { .ui.scrolling.modal { margin-top: 1rem; margin-bottom: 1rem; } } /******************************* States *******************************/ .ui.active.modal { display: block; } /******************************* Variations *******************************/ /*-------------- Full Screen ---------------*/ .ui.fullscreen.modal { width: 95% !important; left: 2.5% !important; margin: 1em auto; } .ui.fullscreen.scrolling.modal { left: 0em !important; } .ui.fullscreen.modal > .header { padding-right: 2.25rem; } .ui.fullscreen.modal > .close { top: 0.905rem; right: 1rem; color: rgba(0, 0, 0, 0.8); } @media only screen and (max-width: 767px) { .ui.fullscreen.modal { width: auto !important; margin: 1em !important; } } /*-------------- Size ---------------*/ .ui.modal { font-size: 1rem; } /* Small */ .ui.small.modal > .header { font-size: 1.3em; } /* Small Modal Width */ @media only screen and (max-width: 767px) { .ui.small.modal { width: 95%; margin: 0em 0em 0em -47.5%; } } @media only screen and (min-width: 768px) { .ui.small.modal { width: 52.8%; margin: 0em 0em 0em -26.4%; } } @media only screen and (min-width: 992px) { .ui.small.modal { width: 44.4%; margin: 0em 0em 0em -22.2%; } } @media only screen and (min-width: 1400px) { .ui.small.modal { width: 33.6%; margin: 0em 0em 0em -16.8%; } } @media only screen and (min-width: 1920px) { .ui.small.modal { width: 25.2%; margin: 0em 0em 0em -12.6%; } } /* Large Modal Width */ .ui.large.modal > .header { font-size: 1.6em; } @media only screen and (max-width: 767px) { .ui.large.modal { width: 95%; margin: 0em 0em 0em -47.5%; } } @media only screen and (min-width: 768px) { .ui.large.modal { width: 88%; margin: 0em 0em 0em -44%; } } @media only screen and (min-width: 992px) { .ui.large.modal { width: 88.8%; margin: 0em 0em 0em -44.4%; } } @media only screen and (min-width: 1400px) { .ui.large.modal { width: 67.2%; margin: 0em 0em 0em -33.6%; } } @media only screen and (min-width: 1920px) { .ui.large.modal { width: 50.4%; margin: 0em 0em 0em -25.2%; } } /******************************* Theme Overrides *******************************/ /******************************* Site Overrides *******************************/
simudream/cdnjs
ajax/libs/semantic-ui/1.1.1/components/modal.css
CSS
mit
8,306
<?php /* * 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. * * This software consists of voluntary contributions made by many individuals * and is licensed under the MIT license. For more information, see * <http://www.doctrine-project.org>. */ namespace Doctrine\ORM\Query\Expr; /** * Expression class for building DQL and parts. * * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco <guilhermeblanco@hotmail.com> * @author Jonathan Wage <jonwage@gmail.com> * @author Roman Borschel <roman@code-factory.org> */ class Composite extends Base { /** * @return string */ public function __toString() { if ($this->count() === 1) { return (string) $this->parts[0]; } $components = array(); foreach ($this->parts as $part) { $components[] = $this->processQueryPart($part); } return implode($this->separator, $components); } /** * @param string $part * * @return string */ private function processQueryPart($part) { $queryPart = (string) $part; if (is_object($part) && $part instanceof self && $part->count() > 1) { return $this->preSeparator . $queryPart . $this->postSeparator; } // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND") if (stripos($queryPart, ' OR ') !== false || stripos($queryPart, ' AND ') !== false) { return $this->preSeparator . $queryPart . $this->postSeparator; } return $queryPart; } }
akraxx/projetk
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Expr/Composite.php
PHP
mit
2,355
<?php /* * 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. * * This software consists of voluntary contributions made by many individuals * and is licensed under the MIT license. For more information, see * <http://www.doctrine-project.org>. */ namespace Doctrine\ORM\Query\Expr; /** * Expression class for building DQL and parts. * * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco <guilhermeblanco@hotmail.com> * @author Jonathan Wage <jonwage@gmail.com> * @author Roman Borschel <roman@code-factory.org> */ class Composite extends Base { /** * @return string */ public function __toString() { if ($this->count() === 1) { return (string) $this->parts[0]; } $components = array(); foreach ($this->parts as $part) { $components[] = $this->processQueryPart($part); } return implode($this->separator, $components); } /** * @param string $part * * @return string */ private function processQueryPart($part) { $queryPart = (string) $part; if (is_object($part) && $part instanceof self && $part->count() > 1) { return $this->preSeparator . $queryPart . $this->postSeparator; } // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND") if (stripos($queryPart, ' OR ') !== false || stripos($queryPart, ' AND ') !== false) { return $this->preSeparator . $queryPart . $this->postSeparator; } return $queryPart; } }
alirezafshar/WebProject
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Expr/Composite.php
PHP
mit
2,355
.dragtable-sortable{list-style-type:none;margin:0;padding:0;-moz-user-select:none;z-index:10}.dragtable-sortable li{margin:0;padding:0;float:left;font-size:1em}.dragtable-sortable table{margin-top:0}.dragtable-sortable td,.dragtable-sortable th{border-left:0}.dragtable-sortable li:first-child td,.dragtable-sortable li:first-child th{border-left:1px solid #CCC}.ui-sortable-helper{opacity:.7;filter:alpha(opacity=70)}.ui-sortable-placeholder{-moz-box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;-webkit-box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;border-bottom:1px solid rgba(0,0,0,.2);border-top:1px solid rgba(0,0,0,.2);visibility:visible!important;background:#EFEFEF}.ui-sortable-placeholder *{opacity:0;visibility:hidden}.table-handle,.table-handle-disabled{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyIiBoZWlnaHQ9IjEzIj48cmVjdCBzdHlsZT0iZmlsbDojMzMzO2ZpbGwtb3BhY2l0eTouODsiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHg9IjEiIHk9IjIiLz4JPHJlY3Qgc3R5bGU9ImZpbGw6IzMzMztmaWxsLW9wYWNpdHk6Ljg7IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4PSIxIiB5PSI0Ii8+CTxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iNiIvPjxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iOCIvPjxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iMTAiLz48L3N2Zz4=);background-repeat:repeat-x;height:13px;margin:0 1px;cursor:move}.table-handle-disabled{opacity:0;cursor:not-allowed}.dragtable-sortable table{margin-bottom:0}
sajochiu/cdnjs
ajax/libs/jquery.tablesorter/2.26.5/css/dragtable.mod.min.css
CSS
mit
1,606
/* global _ */ (function () { 'use strict'; /* jshint ignore:start */ // Underscore's Template Module // Courtesy of underscorejs.org var _ = (function (_) { _.defaults = function (object) { if (!object) { return object; } for (var argsIndex = 1, argsLength = arguments.length; argsIndex < argsLength; argsIndex++) { var iterable = arguments[argsIndex]; if (iterable) { for (var key in iterable) { if (object[key] == null) { object[key] = iterable[key]; } } } } return object; } // By default, Underscore uses ERB-style template delimiters, change the // following template settings to use alternative delimiters. _.templateSettings = { evaluate : /<%([\s\S]+?)%>/g, interpolate : /<%=([\s\S]+?)%>/g, escape : /<%-([\s\S]+?)%>/g }; // When customizing `templateSettings`, if you don't want to define an // interpolation, evaluation or escaping regex, we need one that is // guaranteed not to match. var noMatch = /(.)^/; // Certain characters need to be escaped so that they can be put into a // string literal. var escapes = { "'": "'", '\\': '\\', '\r': 'r', '\n': 'n', '\t': 't', '\u2028': 'u2028', '\u2029': 'u2029' }; var escaper = /\\|'|\r|\n|\t|\u2028|\u2029/g; // JavaScript micro-templating, similar to John Resig's implementation. // Underscore templating handles arbitrary delimiters, preserves whitespace, // and correctly escapes quotes within interpolated code. _.template = function(text, data, settings) { var render; settings = _.defaults({}, settings, _.templateSettings); // Combine delimiters into one regular expression via alternation. var matcher = new RegExp([ (settings.escape || noMatch).source, (settings.interpolate || noMatch).source, (settings.evaluate || noMatch).source ].join('|') + '|$', 'g'); // Compile the template source, escaping string literals appropriately. var index = 0; var source = "__p+='"; text.replace(matcher, function(match, escape, interpolate, evaluate, offset) { source += text.slice(index, offset) .replace(escaper, function(match) { return '\\' + escapes[match]; }); if (escape) { source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'"; } if (interpolate) { source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'"; } if (evaluate) { source += "';\n" + evaluate + "\n__p+='"; } index = offset + match.length; return match; }); source += "';\n"; // If a variable is not specified, place data values in local scope. if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n'; source = "var __t,__p='',__j=Array.prototype.join," + "print=function(){__p+=__j.call(arguments,'');};\n" + source + "return __p;\n"; try { render = new Function(settings.variable || 'obj', '_', source); } catch (e) { e.source = source; throw e; } if (data) return render(data, _); var template = function(data) { return render.call(this, data, _); }; // Provide the compiled function source as a convenience for precompilation. template.source = 'function(' + (settings.variable || 'obj') + '){\n' + source + '}'; return template; }; return _; })({}); if (location.hostname === 'todomvc.com') { window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } /* jshint ignore:end */ function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); } } function findRoot() { var base = location.href.indexOf('examples/'); return location.href.substr(0, base); } function getFile(file, callback) { if (!location.host) { return console.info('Miss the info bar? Run TodoMVC from a server to avoid a cross-origin error.'); } var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); xhr.send(); xhr.onload = function () { if (xhr.status === 200 && callback) { callback(xhr.responseText); } }; } function Learn(learnJSON, config) { if (!(this instanceof Learn)) { return new Learn(learnJSON, config); } var template, framework; if (typeof learnJSON !== 'object') { try { learnJSON = JSON.parse(learnJSON); } catch (e) { return; } } if (config) { template = config.template; framework = config.framework; } if (!template && learnJSON.templates) { template = learnJSON.templates.todomvc; } if (!framework && document.querySelector('[data-framework]')) { framework = document.querySelector('[data-framework]').dataset.framework; } this.template = template; if (learnJSON.backend) { this.frameworkJSON = learnJSON.backend; this.frameworkJSON.issueLabel = framework; this.append({ backend: true }); } else if (learnJSON[framework]) { this.frameworkJSON = learnJSON[framework]; this.frameworkJSON.issueLabel = framework; this.append(); } this.fetchIssueCount(); } Learn.prototype.append = function (opts) { var aside = document.createElement('aside'); aside.innerHTML = _.template(this.template, this.frameworkJSON); aside.className = 'learn'; if (opts && opts.backend) { // Remove demo link var sourceLinks = aside.querySelector('.source-links'); var heading = sourceLinks.firstElementChild; var sourceLink = sourceLinks.lastElementChild; // Correct link path var href = sourceLink.getAttribute('href'); sourceLink.setAttribute('href', href.substr(href.lastIndexOf('http'))); sourceLinks.innerHTML = heading.outerHTML + sourceLink.outerHTML; } else { // Localize demo links var demoLinks = aside.querySelectorAll('.demo-link'); Array.prototype.forEach.call(demoLinks, function (demoLink) { if (demoLink.getAttribute('href').substr(0, 4) !== 'http') { demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href')); } }); } document.body.className = (document.body.className + ' learn-bar').trim(); document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; Learn.prototype.fetchIssueCount = function () { var issueLink = document.getElementById('issue-count-link'); if (issueLink) { var url = issueLink.href.replace('https://github.com', 'https://api.github.com/repos'); var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onload = function (e) { var parsedResponse = JSON.parse(e.target.responseText); if (parsedResponse instanceof Array) { var count = parsedResponse.length if (count !== 0) { issueLink.innerHTML = 'This app has ' + count + ' open issues'; document.getElementById('issue-count').style.display = 'inline'; } } }; xhr.send(); } }; redirect(); getFile('learn.json', Learn); })();
kimyongyeon/todomvc
examples/chaplin-brunch/node_modules/todomvc-common/base.js
JavaScript
mit
7,091
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.registerHelper("fold", "markdown", function(cm, start) { var maxDepth = 100; function isHeader(lineNo) { var tokentype = cm.getTokenTypeAt(CodeMirror.Pos(lineNo, 0)); return tokentype && /\bheader\b/.test(tokentype); } function headerLevel(lineNo, line, nextLine) { var match = line && line.match(/^#+/); if (match && isHeader(lineNo)) return match[0].length; match = nextLine && nextLine.match(/^[=\-]+\s*$/); if (match && isHeader(lineNo + 1)) return nextLine[0] == "=" ? 1 : 2; return maxDepth; } var firstLine = cm.getLine(start.line), nextLine = cm.getLine(start.line + 1); var level = headerLevel(start.line, firstLine, nextLine); if (level === maxDepth) return undefined; var lastLineNo = cm.lastLine(); var end = start.line, nextNextLine = cm.getLine(end + 2); while (end < lastLineNo) { if (headerLevel(end + 1, nextLine, nextNextLine) <= level) break; ++end; nextLine = nextNextLine; nextNextLine = cm.getLine(end + 2); } return { from: CodeMirror.Pos(start.line, firstLine.length), to: CodeMirror.Pos(end, cm.getLine(end).length) }; }); });
abbychau/cdnjs
ajax/libs/codemirror/4.8.0/addon/fold/markdown-fold.js
JavaScript
mit
1,605
<?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\HttpFoundation; use Doctrine\DBAL\Platforms\MySqlPlatform; use Doctrine\DBAL\Driver\Connection; /** * DBAL based session storage. * * @author Fabien Potencier <fabien@symfony.com> * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ class DbalSessionHandler implements \SessionHandlerInterface { /** * @var Connection */ private $con; /** * @var string */ private $tableName; /** * Constructor. * * @param Connection $con An instance of Connection. * @param string $tableName Table name. */ public function __construct(Connection $con, $tableName = 'sessions') { $this->con = $con; $this->tableName = $tableName; } /** * {@inheritdoc} */ public function open($path = null, $name = null) { return true; } /** * {@inheritdoc} */ public function close() { // do nothing return true; } /** * {@inheritdoc} */ public function destroy($id) { try { $this->con->executeQuery("DELETE FROM {$this->tableName} WHERE sess_id = :id", array( 'id' => $id, )); } catch (\PDOException $e) { throw new \RuntimeException(sprintf('PDOException was thrown when trying to manipulate session data: %s', $e->getMessage()), 0, $e); } return true; } /** * {@inheritdoc} */ public function gc($lifetime) { try { $this->con->executeQuery("DELETE FROM {$this->tableName} WHERE sess_time < :time", array( 'time' => time() - $lifetime, )); } catch (\PDOException $e) { throw new \RuntimeException(sprintf('PDOException was thrown when trying to manipulate session data: %s', $e->getMessage()), 0, $e); } return true; } /** * {@inheritdoc} */ public function read($id) { try { $data = $this->con->executeQuery("SELECT sess_data FROM {$this->tableName} WHERE sess_id = :id", array( 'id' => $id, ))->fetchColumn(); if (false !== $data) { return base64_decode($data); } // session does not exist, create it $this->createNewSession($id); return ''; } catch (\PDOException $e) { throw new \RuntimeException(sprintf('PDOException was thrown when trying to read the session data: %s', $e->getMessage()), 0, $e); } } /** * {@inheritdoc} */ public function write($id, $data) { $platform = $this->con->getDatabasePlatform(); // this should maybe be abstracted in Doctrine DBAL if ($platform instanceof MySqlPlatform) { $sql = "INSERT INTO {$this->tableName} (sess_id, sess_data, sess_time) VALUES (%1\$s, %2\$s, %3\$d) " ."ON DUPLICATE KEY UPDATE sess_data = VALUES(sess_data), sess_time = CASE WHEN sess_time = %3\$d THEN (VALUES(sess_time) + 1) ELSE VALUES(sess_time) END"; } else { $sql = "UPDATE {$this->tableName} SET sess_data = %2\$s, sess_time = %3\$d WHERE sess_id = %1\$s"; } try { $rowCount = $this->con->exec(sprintf( $sql, $this->con->quote($id), //session data can contain non binary safe characters so we need to encode it $this->con->quote(base64_encode($data)), time() )); if (!$rowCount) { // No session exists in the database to update. This happens when we have called // session_regenerate_id() $this->createNewSession($id, $data); } } catch (\PDOException $e) { throw new \RuntimeException(sprintf('PDOException was thrown when trying to write the session data: %s', $e->getMessage()), 0, $e); } return true; } /** * Creates a new session with the given $id and $data * * @param string $id * @param string $data */ private function createNewSession($id, $data = '') { $this->con->exec(sprintf("INSERT INTO {$this->tableName} (sess_id, sess_data, sess_time) VALUES (%s, %s, %d)", $this->con->quote($id), //session data can contain non binary safe characters so we need to encode it $this->con->quote(base64_encode($data)), time() )); return true; } }
serviom/mobd2
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php
PHP
mit
4,843
/*! * Qoopido.js library v3.6.1, 2015-2-5 * https://github.com/dlueth/qoopido.js * (c) 2015 Dirk Lueth * Dual licensed under MIT and GPL */ !function(t){window.qoopido.register("particle",t,["./emitter","./pool/module","./vector/2d"])}(function(t,i,o,e,s,c,n){"use strict";var l,a=t["pool/module"].create(t["vector/2d"],null,!0);return l=t.emitter.extend({_velocity:null,_acceleration:null,position:null,velocity:null,acceleration:null,_constructor:function(t,i){this._velocity=a.obtain(0,0),this._acceleration=a.obtain(0,0),this.position=a.obtain(t,i),this.velocity=a.obtain(0,0),this.acceleration=[],l._parent._constructor.call(this)},_obtain:function(t,i){this.position.x=t||0,this.position.y=i||0,this.velocity.x=0,this.velocity.y=0,this.acceleration.length=0},_destroy:function(){this._velocity=this._velocity.dispose(),this._acceleration=this._acceleration.dispose(),this.position=this.position.dispose(),this.velocity=this.velocity.dispose()},update:function(t){t="undefined"!=typeof t?parseFloat(t):1;for(var i,o=0;(i=this.acceleration[o])!==n;o++)this.velocity.add(i);this._velocity.x=this.velocity.x*t,this._velocity.y=this.velocity.y*t,this.position.add(this._velocity)}})});
jasonpang/cdnjs
ajax/libs/qoopido.js/3.6.1/particle.js
JavaScript
mit
1,186
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror", require("../xml/xml"))); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../xml/xml"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) { var htmlFound = CodeMirror.modes.hasOwnProperty("xml"); var htmlMode = CodeMirror.getMode(cmCfg, htmlFound ? {name: "xml", htmlMode: true} : "text/plain"); var aliases = { html: "htmlmixed", js: "javascript", json: "application/json", c: "text/x-csrc", "c++": "text/x-c++src", java: "text/x-java", csharp: "text/x-csharp", "c#": "text/x-csharp", scala: "text/x-scala" }; var getMode = (function () { var i, modes = {}, mimes = {}, mime; var list = []; for (var m in CodeMirror.modes) if (CodeMirror.modes.propertyIsEnumerable(m)) list.push(m); for (i = 0; i < list.length; i++) { modes[list[i]] = list[i]; } var mimesList = []; for (var m in CodeMirror.mimeModes) if (CodeMirror.mimeModes.propertyIsEnumerable(m)) mimesList.push({mime: m, mode: CodeMirror.mimeModes[m]}); for (i = 0; i < mimesList.length; i++) { mime = mimesList[i].mime; mimes[mime] = mimesList[i].mime; } for (var a in aliases) { if (aliases[a] in modes || aliases[a] in mimes) modes[a] = aliases[a]; } return function (lang) { return modes[lang] ? CodeMirror.getMode(cmCfg, modes[lang]) : null; }; }()); // Should characters that affect highlighting be highlighted separate? // Does not include characters that will be output (such as `1.` and `-` for lists) if (modeCfg.highlightFormatting === undefined) modeCfg.highlightFormatting = false; // Maximum number of nested blockquotes. Set to 0 for infinite nesting. // Excess `>` will emit `error` token. if (modeCfg.maxBlockquoteDepth === undefined) modeCfg.maxBlockquoteDepth = 0; // Should underscores in words open/close em/strong? if (modeCfg.underscoresBreakWords === undefined) modeCfg.underscoresBreakWords = true; // Turn on fenced code blocks? ("```" to start/end) if (modeCfg.fencedCodeBlocks === undefined) modeCfg.fencedCodeBlocks = false; // Turn on task lists? ("- [ ] " and "- [x] ") if (modeCfg.taskLists === undefined) modeCfg.taskLists = false; var codeDepth = 0; var header = 'header' , code = 'comment' , quote = 'quote' , list1 = 'variable-2' , list2 = 'variable-3' , list3 = 'keyword' , hr = 'hr' , image = 'tag' , formatting = 'formatting' , linkinline = 'link' , linkemail = 'link' , linktext = 'link' , linkhref = 'string' , em = 'em' , strong = 'strong'; var hrRE = /^([*\-=_])(?:\s*\1){2,}\s*$/ , ulRE = /^[*\-+]\s+/ , olRE = /^[0-9]+\.\s+/ , taskListRE = /^\[(x| )\](?=\s)/ // Must follow ulRE or olRE , atxHeaderRE = /^#+/ , setextHeaderRE = /^(?:\={1,}|-{1,})$/ , textRE = /^[^#!\[\]*_\\<>` "'(]+/; function switchInline(stream, state, f) { state.f = state.inline = f; return f(stream, state); } function switchBlock(stream, state, f) { state.f = state.block = f; return f(stream, state); } // Blocks function blankLine(state) { // Reset linkTitle state state.linkTitle = false; // Reset EM state state.em = false; // Reset STRONG state state.strong = false; // Reset state.quote state.quote = 0; if (!htmlFound && state.f == htmlBlock) { state.f = inlineNormal; state.block = blockNormal; } // Reset state.trailingSpace state.trailingSpace = 0; state.trailingSpaceNewLine = false; // Mark this line as blank state.thisLineHasContent = false; return null; } function blockNormal(stream, state) { var sol = stream.sol(); var prevLineIsList = (state.list !== false); if (state.list !== false && state.indentationDiff >= 0) { // Continued list if (state.indentationDiff < 4) { // Only adjust indentation if *not* a code block state.indentation -= state.indentationDiff; } state.list = null; } else if (state.list !== false && state.indentation > 0) { state.list = null; state.listDepth = Math.floor(state.indentation / 4); } else if (state.list !== false) { // No longer a list state.list = false; state.listDepth = 0; } var match = null; if (state.indentationDiff >= 4) { state.indentation -= 4; stream.skipToEnd(); return code; } else if (stream.eatSpace()) { return null; } else if (match = stream.match(atxHeaderRE)) { state.header = match[0].length <= 6 ? match[0].length : 6; if (modeCfg.highlightFormatting) state.formatting = "header"; state.f = state.inline; return getType(state); } else if (state.prevLineHasContent && (match = stream.match(setextHeaderRE))) { state.header = match[0].charAt(0) == '=' ? 1 : 2; if (modeCfg.highlightFormatting) state.formatting = "header"; state.f = state.inline; return getType(state); } else if (stream.eat('>')) { state.indentation++; state.quote = sol ? 1 : state.quote + 1; if (modeCfg.highlightFormatting) state.formatting = "quote"; stream.eatSpace(); return getType(state); } else if (stream.peek() === '[') { return switchInline(stream, state, footnoteLink); } else if (stream.match(hrRE, true)) { return hr; } else if ((!state.prevLineHasContent || prevLineIsList) && (stream.match(ulRE, false) || stream.match(olRE, false))) { var listType = null; if (stream.match(ulRE, true)) { listType = 'ul'; } else { stream.match(olRE, true); listType = 'ol'; } state.indentation += 4; state.list = true; state.listDepth++; if (modeCfg.taskLists && stream.match(taskListRE, false)) { state.taskList = true; } state.f = state.inline; if (modeCfg.highlightFormatting) state.formatting = ["list", "list-" + listType]; return getType(state); } else if (modeCfg.fencedCodeBlocks && stream.match(/^```([\w+#]*)/, true)) { // try switching mode state.localMode = getMode(RegExp.$1); if (state.localMode) state.localState = state.localMode.startState(); switchBlock(stream, state, local); if (modeCfg.highlightFormatting) state.formatting = "code-block"; state.code = true; return getType(state); } return switchInline(stream, state, state.inline); } function htmlBlock(stream, state) { var style = htmlMode.token(stream, state.htmlState); if ((htmlFound && state.htmlState.tagStart === null && !state.htmlState.context) || (state.md_inside && stream.current().indexOf(">") > -1)) { state.f = inlineNormal; state.block = blockNormal; state.htmlState = null; } return style; } function local(stream, state) { if (stream.sol() && stream.match(/^```/, true)) { state.localMode = state.localState = null; state.f = inlineNormal; state.block = blockNormal; if (modeCfg.highlightFormatting) state.formatting = "code-block"; state.code = true; var returnType = getType(state); state.code = false; return returnType; } else if (state.localMode) { return state.localMode.token(stream, state.localState); } else { stream.skipToEnd(); return code; } } // Inline function getType(state) { var styles = []; if (state.formatting) { styles.push(formatting); if (typeof state.formatting === "string") state.formatting = [state.formatting]; for (var i = 0; i < state.formatting.length; i++) { styles.push(formatting + "-" + state.formatting[i]); if (state.formatting[i] === "header") { styles.push(formatting + "-" + state.formatting[i] + "-" + state.header); } // Add `formatting-quote` and `formatting-quote-#` for blockquotes // Add `error` instead if the maximum blockquote nesting depth is passed if (state.formatting[i] === "quote") { if (!modeCfg.maxBlockquoteDepth || modeCfg.maxBlockquoteDepth >= state.quote) { styles.push(formatting + "-" + state.formatting[i] + "-" + state.quote); } else { styles.push("error"); } } } } if (state.taskOpen) { styles.push("meta"); return styles.length ? styles.join(' ') : null; } if (state.taskClosed) { styles.push("property"); return styles.length ? styles.join(' ') : null; } if (state.linkHref) { styles.push(linkhref); return styles.length ? styles.join(' ') : null; } if (state.strong) { styles.push(strong); } if (state.em) { styles.push(em); } if (state.linkText) { styles.push(linktext); } if (state.code) { styles.push(code); } if (state.header) { styles.push(header); styles.push(header + "-" + state.header); } if (state.quote) { styles.push(quote); // Add `quote-#` where the maximum for `#` is modeCfg.maxBlockquoteDepth if (!modeCfg.maxBlockquoteDepth || modeCfg.maxBlockquoteDepth >= state.quote) { styles.push(quote + "-" + state.quote); } else { styles.push(quote + "-" + modeCfg.maxBlockquoteDepth); } } if (state.list !== false) { var listMod = (state.listDepth - 1) % 3; if (!listMod) { styles.push(list1); } else if (listMod === 1) { styles.push(list2); } else { styles.push(list3); } } if (state.trailingSpaceNewLine) { styles.push("trailing-space-new-line"); } else if (state.trailingSpace) { styles.push("trailing-space-" + (state.trailingSpace % 2 ? "a" : "b")); } return styles.length ? styles.join(' ') : null; } function handleText(stream, state) { if (stream.match(textRE, true)) { return getType(state); } return undefined; } function inlineNormal(stream, state) { var style = state.text(stream, state); if (typeof style !== 'undefined') return style; if (state.list) { // List marker (*, +, -, 1., etc) state.list = null; return getType(state); } if (state.taskList) { var taskOpen = stream.match(taskListRE, true)[1] !== "x"; if (taskOpen) state.taskOpen = true; else state.taskClosed = true; if (modeCfg.highlightFormatting) state.formatting = "task"; state.taskList = false; return getType(state); } state.taskOpen = false; state.taskClosed = false; if (state.header && stream.match(/^#+$/, true)) { if (modeCfg.highlightFormatting) state.formatting = "header"; return getType(state); } // Get sol() value now, before character is consumed var sol = stream.sol(); var ch = stream.next(); if (ch === '\\') { stream.next(); if (modeCfg.highlightFormatting) { var type = getType(state); return type ? type + " formatting-escape" : "formatting-escape"; } } // Matches link titles present on next line if (state.linkTitle) { state.linkTitle = false; var matchCh = ch; if (ch === '(') { matchCh = ')'; } matchCh = (matchCh+'').replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"); var regex = '^\\s*(?:[^' + matchCh + '\\\\]+|\\\\\\\\|\\\\.)' + matchCh; if (stream.match(new RegExp(regex), true)) { return linkhref; } } // If this block is changed, it may need to be updated in GFM mode if (ch === '`') { var previousFormatting = state.formatting; if (modeCfg.highlightFormatting) state.formatting = "code"; var t = getType(state); var before = stream.pos; stream.eatWhile('`'); var difference = 1 + stream.pos - before; if (!state.code) { codeDepth = difference; state.code = true; return getType(state); } else { if (difference === codeDepth) { // Must be exact state.code = false; return t; } state.formatting = previousFormatting; return getType(state); } } else if (state.code) { return getType(state); } if (ch === '!' && stream.match(/\[[^\]]*\] ?(?:\(|\[)/, false)) { stream.match(/\[[^\]]*\]/); state.inline = state.f = linkHref; return image; } if (ch === '[' && stream.match(/.*\](\(| ?\[)/, false)) { state.linkText = true; if (modeCfg.highlightFormatting) state.formatting = "link"; return getType(state); } if (ch === ']' && state.linkText) { if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); state.linkText = false; state.inline = state.f = linkHref; return type; } if (ch === '<' && stream.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/, false)) { state.f = state.inline = linkInline; if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); if (type){ type += " "; } else { type = ""; } return type + linkinline; } if (ch === '<' && stream.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/, false)) { state.f = state.inline = linkInline; if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); if (type){ type += " "; } else { type = ""; } return type + linkemail; } if (ch === '<' && stream.match(/^\w/, false)) { if (stream.string.indexOf(">") != -1) { var atts = stream.string.substring(1,stream.string.indexOf(">")); if (/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(atts)) { state.md_inside = true; } } stream.backUp(1); state.htmlState = CodeMirror.startState(htmlMode); return switchBlock(stream, state, htmlBlock); } if (ch === '<' && stream.match(/^\/\w*?>/)) { state.md_inside = false; return "tag"; } var ignoreUnderscore = false; if (!modeCfg.underscoresBreakWords) { if (ch === '_' && stream.peek() !== '_' && stream.match(/(\w)/, false)) { var prevPos = stream.pos - 2; if (prevPos >= 0) { var prevCh = stream.string.charAt(prevPos); if (prevCh !== '_' && prevCh.match(/(\w)/, false)) { ignoreUnderscore = true; } } } } if (ch === '*' || (ch === '_' && !ignoreUnderscore)) { if (sol && stream.peek() === ' ') { // Do nothing, surrounded by newline and space } else if (state.strong === ch && stream.eat(ch)) { // Remove STRONG if (modeCfg.highlightFormatting) state.formatting = "strong"; var t = getType(state); state.strong = false; return t; } else if (!state.strong && stream.eat(ch)) { // Add STRONG state.strong = ch; if (modeCfg.highlightFormatting) state.formatting = "strong"; return getType(state); } else if (state.em === ch) { // Remove EM if (modeCfg.highlightFormatting) state.formatting = "em"; var t = getType(state); state.em = false; return t; } else if (!state.em) { // Add EM state.em = ch; if (modeCfg.highlightFormatting) state.formatting = "em"; return getType(state); } } else if (ch === ' ') { if (stream.eat('*') || stream.eat('_')) { // Probably surrounded by spaces if (stream.peek() === ' ') { // Surrounded by spaces, ignore return getType(state); } else { // Not surrounded by spaces, back up pointer stream.backUp(1); } } } if (ch === ' ') { if (stream.match(/ +$/, false)) { state.trailingSpace++; } else if (state.trailingSpace) { state.trailingSpaceNewLine = true; } } return getType(state); } function linkInline(stream, state) { var ch = stream.next(); if (ch === ">") { state.f = state.inline = inlineNormal; if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); if (type){ type += " "; } else { type = ""; } return type + linkinline; } stream.match(/^[^>]+/, true); return linkinline; } function linkHref(stream, state) { // Check if space, and return NULL if so (to avoid marking the space) if(stream.eatSpace()){ return null; } var ch = stream.next(); if (ch === '(' || ch === '[') { state.f = state.inline = getLinkHrefInside(ch === "(" ? ")" : "]"); if (modeCfg.highlightFormatting) state.formatting = "link-string"; state.linkHref = true; return getType(state); } return 'error'; } function getLinkHrefInside(endChar) { return function(stream, state) { var ch = stream.next(); if (ch === endChar) { state.f = state.inline = inlineNormal; if (modeCfg.highlightFormatting) state.formatting = "link-string"; var returnState = getType(state); state.linkHref = false; return returnState; } if (stream.match(inlineRE(endChar), true)) { stream.backUp(1); } state.linkHref = true; return getType(state); }; } function footnoteLink(stream, state) { if (stream.match(/^[^\]]*\]:/, false)) { state.f = footnoteLinkInside; stream.next(); // Consume [ if (modeCfg.highlightFormatting) state.formatting = "link"; state.linkText = true; return getType(state); } return switchInline(stream, state, inlineNormal); } function footnoteLinkInside(stream, state) { if (stream.match(/^\]:/, true)) { state.f = state.inline = footnoteUrl; if (modeCfg.highlightFormatting) state.formatting = "link"; var returnType = getType(state); state.linkText = false; return returnType; } stream.match(/^[^\]]+/, true); return linktext; } function footnoteUrl(stream, state) { // Check if space, and return NULL if so (to avoid marking the space) if(stream.eatSpace()){ return null; } // Match URL stream.match(/^[^\s]+/, true); // Check for link title if (stream.peek() === undefined) { // End of line, set flag to check next line state.linkTitle = true; } else { // More content on line, check if link title stream.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/, true); } state.f = state.inline = inlineNormal; return linkhref; } var savedInlineRE = []; function inlineRE(endChar) { if (!savedInlineRE[endChar]) { // Escape endChar for RegExp (taken from http://stackoverflow.com/a/494122/526741) endChar = (endChar+'').replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"); // Match any non-endChar, escaped character, as well as the closing // endChar. savedInlineRE[endChar] = new RegExp('^(?:[^\\\\]|\\\\.)*?(' + endChar + ')'); } return savedInlineRE[endChar]; } var mode = { startState: function() { return { f: blockNormal, prevLineHasContent: false, thisLineHasContent: false, block: blockNormal, htmlState: null, indentation: 0, inline: inlineNormal, text: handleText, formatting: false, linkText: false, linkHref: false, linkTitle: false, em: false, strong: false, header: 0, taskList: false, list: false, listDepth: 0, quote: 0, trailingSpace: 0, trailingSpaceNewLine: false }; }, copyState: function(s) { return { f: s.f, prevLineHasContent: s.prevLineHasContent, thisLineHasContent: s.thisLineHasContent, block: s.block, htmlState: s.htmlState && CodeMirror.copyState(htmlMode, s.htmlState), indentation: s.indentation, localMode: s.localMode, localState: s.localMode ? CodeMirror.copyState(s.localMode, s.localState) : null, inline: s.inline, text: s.text, formatting: false, linkTitle: s.linkTitle, em: s.em, strong: s.strong, header: s.header, taskList: s.taskList, list: s.list, listDepth: s.listDepth, quote: s.quote, trailingSpace: s.trailingSpace, trailingSpaceNewLine: s.trailingSpaceNewLine, md_inside: s.md_inside }; }, token: function(stream, state) { // Reset state.formatting state.formatting = false; if (stream.sol()) { var forceBlankLine = !!state.header; // Reset state.header state.header = 0; if (stream.match(/^\s*$/, true) || forceBlankLine) { state.prevLineHasContent = false; blankLine(state); return forceBlankLine ? this.token(stream, state) : null; } else { state.prevLineHasContent = state.thisLineHasContent; state.thisLineHasContent = true; } // Reset state.taskList state.taskList = false; // Reset state.code state.code = false; // Reset state.trailingSpace state.trailingSpace = 0; state.trailingSpaceNewLine = false; state.f = state.block; var indentation = stream.match(/^\s*/, true)[0].replace(/\t/g, ' ').length; var difference = Math.floor((indentation - state.indentation) / 4) * 4; if (difference > 4) difference = 4; var adjustedIndentation = state.indentation + difference; state.indentationDiff = adjustedIndentation - state.indentation; state.indentation = adjustedIndentation; if (indentation > 0) return null; } var result = state.f(stream, state); if (stream.start == stream.pos) return this.token(stream, state); else return result; }, innerMode: function(state) { if (state.block == htmlBlock) return {state: state.htmlState, mode: htmlMode}; if (state.localState) return {state: state.localState, mode: state.localMode}; return {state: state, mode: mode}; }, blankLine: blankLine, getType: getType, fold: "markdown" }; return mode; }, "xml"); CodeMirror.defineMIME("text/x-markdown", "markdown"); });
RoryStolzenberg/cdnjs
ajax/libs/codemirror/4.7.0/mode/markdown/markdown.js
JavaScript
mit
22,905
pre code{display:block;padding:.5em;background:#f0f0f0}pre code,pre .subst,pre .tag .title,pre .lisp .title,pre .clojure .built_in,pre .nginx .title{color:black}pre .string,pre .title,pre .constant,pre .parent,pre .tag .value,pre .rules .value,pre .rules .value .number,pre .preprocessor,pre .ruby .symbol,pre .ruby .symbol .string,pre .aggregate,pre .template_tag,pre .django .variable,pre .smalltalk .class,pre .addition,pre .flow,pre .stream,pre .bash .variable,pre .apache .tag,pre .apache .cbracket,pre .tex .command,pre .tex .special,pre .erlang_repl .function_or_atom,pre .markdown .header{color:#800}pre .comment,pre .annotation,pre .template_comment,pre .diff .header,pre .chunk,pre .markdown .blockquote{color:#888}pre .number,pre .date,pre .regexp,pre .literal,pre .smalltalk .symbol,pre .smalltalk .char,pre .go .constant,pre .change,pre .markdown .bullet,pre .markdown .link_url{color:#080}pre .label,pre .javadoc,pre .ruby .string,pre .decorator,pre .filter .argument,pre .localvars,pre .array,pre .attr_selector,pre .important,pre .pseudo,pre .pi,pre .doctype,pre .deletion,pre .envvar,pre .shebang,pre .apache .sqbracket,pre .nginx .built_in,pre .tex .formula,pre .erlang_repl .reserved,pre .prompt,pre .markdown .link_label,pre .vhdl .attribute,pre .clojure .attribute,pre .coffeescript .property{color:#88F}pre .keyword,pre .id,pre .phpdoc,pre .title,pre .built_in,pre .aggregate,pre .css .tag,pre .javadoctag,pre .phpdoc,pre .yardoctag,pre .smalltalk .class,pre .winutils,pre .bash .variable,pre .apache .tag,pre .go .typename,pre .tex .command,pre .markdown .strong,pre .request,pre .status{font-weight:bold}pre .markdown .emphasis{font-style:italic}pre .nginx .built_in{font-weight:normal}pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .javascript,pre .xml .vbscript,pre .xml .css,pre .xml .cdata{opacity:.5}
MMore/cdnjs
ajax/libs/highlight.js/7.3/styles/default.min.css
CSS
mit
1,860
/*! * Piwik - Web Analytics * * JavaScript tracking client * * @link http://piwik.org * @source https://github.com/piwik/piwik/blob/master/js/piwik.js * @license http://www.opensource.org/licenses/bsd-license.php Simplified BSD */ if(!this.JSON2){this.JSON2={}}(function(){function d(f){return f<10?"0"+f:f}function l(n,m){var f=Object.prototype.toString.apply(n);if(f==="[object Date]"){return isFinite(n.valueOf())?n.getUTCFullYear()+"-"+d(n.getUTCMonth()+1)+"-"+d(n.getUTCDate())+"T"+d(n.getUTCHours())+":"+d(n.getUTCMinutes())+":"+d(n.getUTCSeconds())+"Z":null}if(f==="[object String]"||f==="[object Number]"||f==="[object Boolean]"){return n.valueOf()}if(f!=="[object Array]"&&typeof n.toJSON==="function"){return n.toJSON(m)}return n}var c=new RegExp("[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]","g"),e='\\\\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]',i=new RegExp("["+e,"g"),j,b,k={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},h; function a(f){i.lastIndex=0;return i.test(f)?'"'+f.replace(i,function(m){var n=k[m];return typeof n==="string"?n:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+f+'"'}function g(s,p){var n,m,t,f,q=j,o,r=p[s];if(r&&typeof r==="object"){r=l(r,s)}if(typeof h==="function"){r=h.call(p,s,r)}switch(typeof r){case"string":return a(r);case"number":return isFinite(r)?String(r):"null";case"boolean":case"null":return String(r);case"object":if(!r){return"null"}j+=b;o=[];if(Object.prototype.toString.apply(r)==="[object Array]"){f=r.length;for(n=0;n<f;n+=1){o[n]=g(n,r)||"null"}t=o.length===0?"[]":j?"[\n"+j+o.join(",\n"+j)+"\n"+q+"]":"["+o.join(",")+"]";j=q;return t}if(h&&typeof h==="object"){f=h.length;for(n=0;n<f;n+=1){if(typeof h[n]==="string"){m=h[n];t=g(m,r);if(t){o.push(a(m)+(j?": ":":")+t)}}}}else{for(m in r){if(Object.prototype.hasOwnProperty.call(r,m)){t=g(m,r);if(t){o.push(a(m)+(j?": ":":")+t)}}}}t=o.length===0?"{}":j?"{\n"+j+o.join(",\n"+j)+"\n"+q+"}":"{"+o.join(",")+"}";j=q; return t}}if(typeof JSON2.stringify!=="function"){JSON2.stringify=function(o,m,n){var f;j="";b="";if(typeof n==="number"){for(f=0;f<n;f+=1){b+=" "}}else{if(typeof n==="string"){b=n}}h=m;if(m&&typeof m!=="function"&&(typeof m!=="object"||typeof m.length!=="number")){throw new Error("JSON.stringify")}return g("",{"":o})}}if(typeof JSON2.parse!=="function"){JSON2.parse=function(o,f){var n;function m(s,r){var q,p,t=s[r];if(t&&typeof t==="object"){for(q in t){if(Object.prototype.hasOwnProperty.call(t,q)){p=m(t,q);if(p!==undefined){t[q]=p}else{delete t[q]}}}}return f.call(s,r,t)}o=String(o);c.lastIndex=0;if(c.test(o)){o=o.replace(c,function(p){return"\\u"+("0000"+p.charCodeAt(0).toString(16)).slice(-4)})}if((new RegExp("^[\\],:{}\\s]*$")).test(o.replace(new RegExp('\\\\(?:["\\\\/bfnrt]|u[0-9a-fA-F]{4})',"g"),"@").replace(new RegExp('"[^"\\\\\n\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?',"g"),"]").replace(new RegExp("(?:^|:|,)(?:\\s*\\[)+","g"),""))){n=eval("("+o+")"); return typeof f==="function"?m({"":n},""):n}throw new SyntaxError("JSON.parse")}}}());var _paq=_paq||[],Piwik=Piwik||(function(){var f,a={},o=document,c=navigator,A=screen,x=window,l=false,v=[],h=x.encodeURIComponent,w=x.decodeURIComponent,d=unescape,B,E;function q(M){var i=typeof M;return i!=="undefined"}function m(i){return typeof i==="function"}function z(i){return typeof i==="object"}function j(i){return typeof i==="string"||i instanceof String}function H(){var M,O,N;for(M=0;M<arguments.length;M+=1){N=arguments[M];O=N.shift();if(j(O)){B[O].apply(B,N)}else{O.apply(B,N)}}}function K(O,N,M,i){if(O.addEventListener){O.addEventListener(N,M,i);return true}if(O.attachEvent){return O.attachEvent("on"+N,M)}O["on"+N]=M}function F(N,Q){var M="",P,O;for(P in a){if(Object.prototype.hasOwnProperty.call(a,P)){O=a[P][N];if(m(O)){M+=O(Q)}}}return M}function I(){var i;F("unload");if(f){do{i=new Date()}while(i.getTimeAlias()<f)}}function G(){var M;if(!l){l=true;F("load");for(M=0;M<v.length;M++){v[M]() }}return true}function k(){var M;if(o.addEventListener){K(o,"DOMContentLoaded",function i(){o.removeEventListener("DOMContentLoaded",i,false);G()})}else{if(o.attachEvent){o.attachEvent("onreadystatechange",function i(){if(o.readyState==="complete"){o.detachEvent("onreadystatechange",i);G()}});if(o.documentElement.doScroll&&x===x.top){(function i(){if(!l){try{o.documentElement.doScroll("left")}catch(N){setTimeout(i,0);return}G()}}())}}}if((new RegExp("WebKit")).test(c.userAgent)){M=setInterval(function(){if(l||/loaded|complete/.test(o.readyState)){clearInterval(M);G()}},10)}K(x,"load",G,false)}function e(N,M){var i=o.createElement("script");i.type="text/javascript";i.src=N;if(i.readyState){i.onreadystatechange=function(){var O=this.readyState;if(O==="loaded"||O==="complete"){i.onreadystatechange=null;M()}}}else{i.onload=M}o.getElementsByTagName("head")[0].appendChild(i)}function r(){var i="";try{i=x.top.document.referrer}catch(N){if(x.parent){try{i=x.parent.document.referrer}catch(M){i="" }}}if(i===""){i=o.referrer}return i}function g(i){var N=new RegExp("^([a-z]+):"),M=N.exec(i);return M?M[1]:null}function b(i){var N=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),M=N.exec(i);return M?M[1]:i}function y(N,M){var Q=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+)[?])([^#]+)"),P=Q.exec(N),O=new RegExp("(?:^|&)"+M+"=([^&]*)"),i=P?O.exec(P[1]):0;return i?w(i[1]):""}function n(i){return d(h(i))}function J(ac){var O=function(W,i){return(W<<i)|(W>>>(32-i))},ad=function(aj){var ai="",ah,W;for(ah=7;ah>=0;ah--){W=(aj>>>(ah*4))&15;ai+=W.toString(16)}return ai},R,af,ae,N=[],V=1732584193,T=4023233417,S=2562383102,Q=271733878,P=3285377520,ab,aa,Z,Y,X,ag,M,U=[];ac=n(ac);M=ac.length;for(af=0;af<M-3;af+=4){ae=ac.charCodeAt(af)<<24|ac.charCodeAt(af+1)<<16|ac.charCodeAt(af+2)<<8|ac.charCodeAt(af+3);U.push(ae)}switch(M&3){case 0:af=2147483648;break;case 1:af=ac.charCodeAt(M-1)<<24|8388608;break;case 2:af=ac.charCodeAt(M-2)<<24|ac.charCodeAt(M-1)<<16|32768;break;case 3:af=ac.charCodeAt(M-3)<<24|ac.charCodeAt(M-2)<<16|ac.charCodeAt(M-1)<<8|128; break}U.push(af);while((U.length&15)!==14){U.push(0)}U.push(M>>>29);U.push((M<<3)&4294967295);for(R=0;R<U.length;R+=16){for(af=0;af<16;af++){N[af]=U[R+af]}for(af=16;af<=79;af++){N[af]=O(N[af-3]^N[af-8]^N[af-14]^N[af-16],1)}ab=V;aa=T;Z=S;Y=Q;X=P;for(af=0;af<=19;af++){ag=(O(ab,5)+((aa&Z)|(~aa&Y))+X+N[af]+1518500249)&4294967295;X=Y;Y=Z;Z=O(aa,30);aa=ab;ab=ag}for(af=20;af<=39;af++){ag=(O(ab,5)+(aa^Z^Y)+X+N[af]+1859775393)&4294967295;X=Y;Y=Z;Z=O(aa,30);aa=ab;ab=ag}for(af=40;af<=59;af++){ag=(O(ab,5)+((aa&Z)|(aa&Y)|(Z&Y))+X+N[af]+2400959708)&4294967295;X=Y;Y=Z;Z=O(aa,30);aa=ab;ab=ag}for(af=60;af<=79;af++){ag=(O(ab,5)+(aa^Z^Y)+X+N[af]+3395469782)&4294967295;X=Y;Y=Z;Z=O(aa,30);aa=ab;ab=ag}V=(V+ab)&4294967295;T=(T+aa)&4294967295;S=(S+Z)&4294967295;Q=(Q+Y)&4294967295;P=(P+X)&4294967295}ag=ad(V)+ad(T)+ad(S)+ad(Q)+ad(P);return ag.toLowerCase()}function D(N,i,M){if(N==="translate.googleusercontent.com"){if(M===""){M=i}i=y(i,"u");N=b(i)}else{if(N==="cc.bingj.com"||N==="webcache.googleusercontent.com"||N.slice(0,5)==="74.6."){i=o.links[0].href; N=b(i)}}return[N,i,M]}function s(M){var i=M.length;if(M.charAt(--i)==="."){M=M.slice(0,i)}if(M.slice(0,2)==="*."){M=M.slice(1)}return M}function L(M){if(!j(M)){M=M.text||"";var i=o.getElementsByTagName("title");if(i&&q(i[0])){M=i[0].text}}return M}function t(P,T){var V="Piwik_Overlay",S=o.referrer,i=P;if(i.slice(-9)==="piwik.php"){i=i.slice(0,i.length-9)}i.slice(i.slice(0,7)==="http://"?7:8,i.length);S.slice(S.slice(0,7)==="http://"?7:8,S.length);if(S.slice(0,i.length)===i){var N=new RegExp("^"+i+"index\\.php\\?module=Overlay&action=startOverlaySession&idsite=([0-9]+)&period=([^&]+)&date=([^&]+)$");var O=N.exec(S);if(O){var Q=O[1];if(Q!==String(T)){return false}var R=O[2],M=O[3];x.name=V+"###"+R+"###"+M}}var U=x.name.split("###");return U.length===3&&U[0]===V}function C(N,O){var Q=x.name.split("###"),P=Q[1],M=Q[2],i=N;if(i.slice(-9)==="piwik.php"){i=i.slice(0,i.length-9)}e(i+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(i,O,P,M)})}function u(af,aE){var P=D(o.domain,x.location.href,r()),aX=s(P[0]),bb=P[1],aK=P[2],aI="GET",O=af||"",a1=aE||"",av,al=o.title,an="7z|aac|ar[cj]|as[fx]|avi|bin|csv|deb|dmg|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|ppt|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xls|xml|z|zip",aG=[aX],S=[],az=[],ae=[],aF=500,T,ag,U,V,ap=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],ak=["pk_kwd","piwik_kwd","utm_term"],a9="_pk_",Y,ba,W=false,a4,ar,au,ac=63072000000,ad=1800000,aw=15768000000,R=false,aA={},a5=200,aQ={},a2={},aN=false,aL=false,aJ,aB,Z,ao=J,aM,at; function aS(bk,bh,bg,bj,bf,bi){if(W){return}var be;if(bg){be=new Date();be.setTime(be.getTime()+bg)}o.cookie=bk+"="+h(bh)+(bg?";expires="+be.toGMTString():"")+";path="+(bj||"/")+(bf?";domain="+bf:"")+(bi?";secure":"")}function ab(bg){if(W){return 0}var be=new RegExp("(^|;)[ ]*"+bg+"=([^;]*)"),bf=be.exec(o.cookie);return bf?w(bf[2]):0}function a6(be){var bf;if(U){bf=new RegExp("#.*");return be.replace(bf,"")}return be}function aW(bg,be){var bh=g(be),bf;if(bh){return be}if(be.slice(0,1)==="/"){return g(bg)+"://"+b(bg)+be}bg=a6(bg);if((bf=bg.indexOf("?"))>=0){bg=bg.slice(0,bf)}if((bf=bg.lastIndexOf("/"))!==bg.length-1){bg=bg.slice(0,bf+1)}return bg+be}function aH(bh){var bf,be,bg;for(bf=0;bf<aG.length;bf++){be=s(aG[bf].toLowerCase());if(bh===be){return true}if(be.slice(0,1)==="."){if(bh===be.slice(1)){return true}bg=bh.length-be.length;if((bg>0)&&(bh.slice(bg)===be)){return true}}}return false}function bd(be){var bf=new Image(1,1);bf.onload=function(){};bf.src=O+(O.indexOf("?")<0?"?":"&")+be }function aT(be){try{var bg=x.XMLHttpRequest?new x.XMLHttpRequest():x.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;bg.open("POST",O,true);bg.onreadystatechange=function(){if(this.readyState===4&&this.status!==200){bd(be)}};bg.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");bg.send(be)}catch(bf){bd(be)}}function aq(bg,bf){var be=new Date();if(!a4){if(aI==="POST"){aT(bg)}else{bd(bg)}f=be.getTime()+bf}}function aR(be){return a9+be+"."+a1+"."+aM}function Q(){if(W){return"0"}if(!q(c.cookieEnabled)){var be=aR("testcookie");aS(be,"1");return ab(be)==="1"?"1":"0"}return c.cookieEnabled?"1":"0"}function aC(){aM=ao((Y||aX)+(ba||"/")).slice(0,4)}function aa(){var bf=aR("cvar"),be=ab(bf);if(be.length){be=JSON2.parse(be);if(z(be)){return be}}return{}}function N(){if(R===false){R=aa()}}function a0(){var be=new Date();aJ=be.getTime()}function X(bi,bf,be,bh,bg,bj){aS(aR("id"),bi+"."+bf+"."+be+"."+bh+"."+bg+"."+bj,ac,ba,Y)}function M(){var bf=new Date(),be=Math.round(bf.getTime()/1000),bh=ab(aR("id")),bg; if(bh){bg=bh.split(".");bg.unshift("0")}else{if(!at){at=ao((c.userAgent||"")+(c.platform||"")+JSON2.stringify(a2)+be).slice(0,16)}bg=["1",at,be,0,be,"",""]}return bg}function i(){var be=ab(aR("ref"));if(be.length){try{be=JSON2.parse(be);if(z(be)){return be}}catch(bf){}}return["","",0,""]}function am(bg,bF,bG,bi){var bD,bf=new Date(),bo=Math.round(bf.getTime()/1000),bI,bE,bk,bw,bA,bn,by,bl,bC,bj=1024,bJ,br,bz=R,bu=aR("id"),bp=aR("ses"),bq=aR("ref"),bK=aR("cvar"),bx=M(),bt=ab(bp),bB=i(),bH=av||bb,bm,be;if(W){W=false;aS(bu,"",-86400,ba,Y);aS(bp,"",-86400,ba,Y);aS(bK,"",-86400,ba,Y);aS(bq,"",-86400,ba,Y);W=true}if(a4){return""}bI=bx[0];bE=bx[1];bw=bx[2];bk=bx[3];bA=bx[4];bn=bx[5];if(!q(bx[6])){bx[6]=""}by=bx[6];if(!q(bi)){bi=""}var bs=o.characterSet||o.charset;if(!bs||bs.toLowerCase()==="utf-8"){bs=null}bm=bB[0];be=bB[1];bl=bB[2];bC=bB[3];if(!bt){bk++;bn=bA;if(!au||!bm.length){for(bD in ap){if(Object.prototype.hasOwnProperty.call(ap,bD)){bm=y(bH,ap[bD]);if(bm.length){break}}}for(bD in ak){if(Object.prototype.hasOwnProperty.call(ak,bD)){be=y(bH,ak[bD]); if(be.length){break}}}}bJ=b(aK);br=bC.length?b(bC):"";if(bJ.length&&!aH(bJ)&&(!au||!br.length||aH(br))){bC=aK}if(bC.length||bm.length){bl=bo;bB=[bm,be,bl,a6(bC.slice(0,bj))];aS(bq,JSON2.stringify(bB),aw,ba,Y)}}bg+="&idsite="+a1+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+bf.getHours()+"&m="+bf.getMinutes()+"&s="+bf.getSeconds()+"&url="+h(a6(bH))+(aK.length?"&urlref="+h(a6(aK)):"")+"&_id="+bE+"&_idts="+bw+"&_idvc="+bk+"&_idn="+bI+(bm.length?"&_rcn="+h(bm):"")+(be.length?"&_rck="+h(be):"")+"&_refts="+bl+"&_viewts="+bn+(String(by).length?"&_ects="+by:"")+(String(bC).length?"&_ref="+h(a6(bC.slice(0,bj))):"")+(bs?"&cs="+h(bs):"");var bh=JSON2.stringify(aA);if(bh.length>2){bg+="&cvar="+h(bh)}for(bD in a2){if(Object.prototype.hasOwnProperty.call(a2,bD)){bg+="&"+bD+"="+a2[bD]}}if(bF){bg+="&data="+h(JSON2.stringify(bF))}else{if(V){bg+="&data="+h(JSON2.stringify(V))}}if(R){var bv=JSON2.stringify(R);if(bv.length>2){bg+="&_cvar="+h(bv)}for(bD in bz){if(Object.prototype.hasOwnProperty.call(bz,bD)){if(R[bD][0]===""||R[bD][1]===""){delete R[bD] }}}aS(bK,JSON2.stringify(R),ad,ba,Y)}X(bE,bw,bk,bo,bn,q(bi)&&String(bi).length?bi:by);aS(bp,"*",ad,ba,Y);bg+=F(bG);return bg}function aV(bh,bg,bl,bi,be,bo){var bj="idgoal=0",bk,bf=new Date(),bm=[],bn;if(String(bh).length){bj+="&ec_id="+h(bh);bk=Math.round(bf.getTime()/1000)}bj+="&revenue="+bg;if(String(bl).length){bj+="&ec_st="+bl}if(String(bi).length){bj+="&ec_tx="+bi}if(String(be).length){bj+="&ec_sh="+be}if(String(bo).length){bj+="&ec_dt="+bo}if(aQ){for(bn in aQ){if(Object.prototype.hasOwnProperty.call(aQ,bn)){if(!q(aQ[bn][1])){aQ[bn][1]=""}if(!q(aQ[bn][2])){aQ[bn][2]=""}if(!q(aQ[bn][3])||String(aQ[bn][3]).length===0){aQ[bn][3]=0}if(!q(aQ[bn][4])||String(aQ[bn][4]).length===0){aQ[bn][4]=1}bm.push(aQ[bn])}}bj+="&ec_items="+h(JSON2.stringify(bm))}bj=am(bj,V,"ecommerce",bk);aq(bj,aF)}function aU(be,bi,bh,bg,bf,bj){if(String(be).length&&q(bi)){aV(be,bi,bh,bg,bf,bj)}}function a8(be){if(q(be)){aV("",be,"","","","")}}function ay(bh,bi){var be=new Date(),bg=am("action_name="+h(L(bh||al)),bi,"log"); aq(bg,aF);if(T&&ag&&!aL){aL=true;K(o,"click",a0);K(o,"mouseup",a0);K(o,"mousedown",a0);K(o,"mousemove",a0);K(o,"mousewheel",a0);K(x,"DOMMouseScroll",a0);K(x,"scroll",a0);K(o,"keypress",a0);K(o,"keydown",a0);K(o,"keyup",a0);K(x,"resize",a0);K(x,"focus",a0);K(x,"blur",a0);aJ=be.getTime();setTimeout(function bf(){var bj=new Date(),bk;if((aJ+ag)>bj.getTime()){if(T<bj.getTime()){bk=am("ping=1",bi,"ping");aq(bk,aF)}setTimeout(bf,ag)}},ag)}}function aj(be,bh,bf,bi){var bg=am("search="+h(be)+(bh?"&search_cat="+h(bh):"")+(q(bf)?"&search_count="+bf:""),bi,"sitesearch");aq(bg,aF)}function aD(be,bh,bg){var bf=am("idgoal="+be+(bh?"&revenue="+bh:""),bg,"goal");aq(bf,aF)}function aZ(bf,be,bh){var bg=am(be+"="+h(a6(bf)),bh,"link");aq(bg,aF)}function a3(bf,be){if(bf!==""){return bf+be.charAt(0).toUpperCase()+be.slice(1)}return be}function ai(bj){var bi,be,bh=["","webkit","ms","moz"],bg;if(!ar){for(be=0;be<bh.length;be++){bg=bh[be];if(Object.prototype.hasOwnProperty.call(o,a3(bg,"hidden"))){if(o[a3(bg,"visibilityState")]==="prerender"){bi=true }break}}}if(bi){K(o,bg+"visibilitychange",function bf(){o.removeEventListener(bg+"visibilitychange",bf,false);bj()});return}bj()}function ah(bg,bf){var bh,be="(^| )(piwik[_-]"+bf;if(bg){for(bh=0;bh<bg.length;bh++){be+="|"+bg[bh]}}be+=")( |$)";return new RegExp(be)}function aY(bh,be,bi){var bg=ah(az,"download"),bf=ah(ae,"link"),bj=new RegExp("\\.("+an+")([?&#]|$)","i");return bf.test(bh)?"link":(bg.test(bh)||bj.test(be)?"download":(bi?0:"link"))}function aP(bj){var bh,bf,be;while((bh=bj.parentNode)!==null&&q(bh)&&((bf=bj.tagName.toUpperCase())!=="A"&&bf!=="AREA")){bj=bh}if(q(bj.href)){var bk=bj.hostname||b(bj.href),bl=bk.toLowerCase(),bg=bj.href.replace(bk,bl),bi=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i");if(!bi.test(bg)){be=aY(bj.className,bg,aH(bl));if(be){bg=d(bg);aZ(bg,be)}}}}function bc(be){var bf,bg;be=be||x.event;bf=be.which||be.button;bg=be.target||be.srcElement;if(be.type==="click"){if(bg){aP(bg)}}else{if(be.type==="mousedown"){if((bf===1||bf===2)&&bg){aB=bf; Z=bg}else{aB=Z=null}}else{if(be.type==="mouseup"){if(bf===aB&&bg===Z){aP(bg)}aB=Z=null}}}}function aO(bf,be){if(be){K(bf,"mouseup",bc,false);K(bf,"mousedown",bc,false)}else{K(bf,"click",bc,false)}}function ax(bf){if(!aN){aN=true;var bg,be=ah(S,"ignore"),bh=o.links;if(bh){for(bg=0;bg<bh.length;bg++){if(!be.test(bh[bg].className)){aO(bh[bg],bf)}}}}}function a7(){var bf,bg,bh={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"},be=(new RegExp("Mac OS X.*Safari/")).test(c.userAgent)?x.devicePixelRatio||1:1;if(!((new RegExp("MSIE")).test(c.userAgent))){if(c.mimeTypes&&c.mimeTypes.length){for(bf in bh){if(Object.prototype.hasOwnProperty.call(bh,bf)){bg=c.mimeTypes[bh[bf]];a2[bf]=(bg&&bg.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&q(c.javaEnabled)&&c.javaEnabled()){a2.java="1" }if(m(x.GearsFactory)){a2.gears="1"}a2.cookie=Q()}a2.res=A.width*be+"x"+A.height*be}a7();aC();return{getVisitorId:function(){return(M())[1]},getVisitorInfo:function(){return M()},getAttributionInfo:function(){return i()},getAttributionCampaignName:function(){return i()[0]},getAttributionCampaignKeyword:function(){return i()[1]},getAttributionReferrerTimestamp:function(){return i()[2]},getAttributionReferrerUrl:function(){return i()[3]},setTrackerUrl:function(be){O=be},setSiteId:function(be){a1=be},setCustomData:function(be,bf){if(z(be)){V=be}else{if(!V){V=[]}V[be]=bf}},getCustomData:function(){return V},setCustomVariable:function(bf,be,bi,bg){var bh;if(!q(bg)){bg="visit"}if(bf>0){be=q(be)&&!j(be)?String(be):be;bi=q(bi)&&!j(bi)?String(bi):bi;bh=[be.slice(0,a5),bi.slice(0,a5)];if(bg==="visit"||bg===2){N();R[bf]=bh}else{if(bg==="page"||bg===3){aA[bf]=bh}}}},getCustomVariable:function(bf,bg){var be;if(!q(bg)){bg="visit"}if(bg==="page"||bg===3){be=aA[bf]}else{if(bg==="visit"||bg===2){N();be=R[bf] }}if(!q(be)||(be&&be[0]==="")){return false}return be},deleteCustomVariable:function(be,bf){if(this.getCustomVariable(be,bf)){this.setCustomVariable(be,"","",bf)}},setLinkTrackingTimer:function(be){aF=be},setDownloadExtensions:function(be){an=be},addDownloadExtensions:function(be){an+="|"+be},setDomains:function(be){aG=j(be)?[be]:be;aG.push(aX)},setIgnoreClasses:function(be){S=j(be)?[be]:be},setRequestMethod:function(be){aI=be||"GET"},setReferrerUrl:function(be){aK=be},setCustomUrl:function(be){av=aW(bb,be)},setDocumentTitle:function(be){al=be},setDownloadClasses:function(be){az=j(be)?[be]:be},setLinkClasses:function(be){ae=j(be)?[be]:be},setCampaignNameKey:function(be){ap=j(be)?[be]:be},setCampaignKeywordKey:function(be){ak=j(be)?[be]:be},discardHashTag:function(be){U=be},setCookieNamePrefix:function(be){a9=be;R=aa()},setCookieDomain:function(be){Y=s(be);aC()},setCookiePath:function(be){ba=be;aC()},setVisitorCookieTimeout:function(be){ac=be*1000},setSessionCookieTimeout:function(be){ad=be*1000 },setReferralCookieTimeout:function(be){aw=be*1000},setConversionAttributionFirstReferrer:function(be){au=be},disableCookies:function(){W=true;a2.cookie="0"},setDoNotTrack:function(bf){var be=c.doNotTrack||c.msDoNotTrack;a4=bf&&(be==="yes"||be==="1");if(a4){this.disableCookies()}},addListener:function(bf,be){aO(bf,be)},enableLinkTracking:function(be){if(l){ax(be)}else{v.push(function(){ax(be)})}},setHeartBeatTimer:function(bg,bf){var be=new Date();T=be.getTime()+bg*1000;ag=bf*1000},killFrame:function(){if(x.location!==x.top.location){x.top.location=x.location}},redirectFile:function(be){if(x.location.protocol==="file:"){x.location=be}},setCountPreRendered:function(be){ar=be},trackGoal:function(be,bg,bf){ai(function(){aD(be,bg,bf)})},trackLink:function(bf,be,bg){ai(function(){aZ(bf,be,bg)})},trackPageView:function(be,bf){if(t(O,a1)){ai(function(){C(O,a1)})}else{ai(function(){ay(be,bf)})}},trackSiteSearch:function(be,bg,bf){ai(function(){aj(be,bg,bf)})},setEcommerceView:function(bh,be,bg,bf){if(!q(bg)||!bg.length){bg="" }else{if(bg instanceof Array){bg=JSON2.stringify(bg)}}aA[5]=["_pkc",bg];if(q(bf)&&String(bf).length){aA[2]=["_pkp",bf]}if((!q(bh)||!bh.length)&&(!q(be)||!be.length)){return}if(q(bh)&&bh.length){aA[3]=["_pks",bh]}if(!q(be)||!be.length){be=""}aA[4]=["_pkn",be]},addEcommerceItem:function(bi,be,bg,bf,bh){if(bi.length){aQ[bi]=[bi,be,bg,bf,bh]}},trackEcommerceOrder:function(be,bi,bh,bg,bf,bj){aU(be,bi,bh,bg,bf,bj)},trackEcommerceCartUpdate:function(be){a8(be)}}}function p(){return{push:H}}K(x,"beforeunload",I,false);k();Date.prototype.getTimeAlias=Date.prototype.getTime;B=new u();for(E=0;E<_paq.length;E++){if(_paq[E][0]==="setTrackerUrl"||_paq[E][0]==="setSiteId"){H(_paq[E]);delete _paq[E]}}for(E=0;E<_paq.length;E++){if(_paq[E]){H(_paq[E])}}_paq=new p();return{addPlugin:function(i,M){a[i]=M},getTracker:function(i,M){return new u(i,M)},getAsyncTracker:function(){return B}}}()),piwik_track,piwik_log=function(b,f,d,g){function a(h){try{return eval("piwik_"+h)}catch(i){}return}var c,e=Piwik.getTracker(d,f); e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}};
menuka94/cdnjs
ajax/libs/piwik/1.11-b1/piwik.js
JavaScript
mit
21,589
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","fi",{title:"Saavutettavuus ohjeet",contents:"Ohjeen sisällöt. Sulkeaksesi tämän dialogin paina ESC.",legend:[{name:"Yleinen",items:[{name:"Editorin työkalupalkki",legend:"Paina ${toolbarFocus} siirtyäksesi työkalupalkkiin. Siirry seuraavaan ja edelliseen työkalupalkin ryhmään TAB ja SHIFT-TAB näppäimillä. Siirry seuraavaan ja edelliseen työkalupainikkeeseen käyttämällä NUOLI OIKEALLE tai NUOLI VASEMMALLE näppäimillä. Paina VÄLILYÖNTI tai ENTER näppäintä aktivoidaksesi työkalupainikkeen."}, {name:"Editorin dialogi",legend:"Dialogin sisällä, painamalla TAB siirryt seuraavaan dialogin kenttään, painamalla SHIFT+TAB siirryt aiempaan kenttään, painamalla ENTER lähetät dialogin, painamalla ESC peruutat dialogin. Dialogeille joissa on useita välilehtiä, paina ALT+F10 siirtyäksesi välillehtilistaan. Siirtyäksesi seuraavaan välilehteen paina TAB tai NUOLI OIKEALLE. Siirry edelliseen välilehteen painamalla SHIFT+TAB tai nuoli vasemmalle. Paina VÄLILYÖNTI tai ENTER valitaksesi välilehden."},{name:"Editorin oheisvalikko", legend:"Paina ${contextMenu} tai SOVELLUSPAINIKETTA avataksesi oheisvalikon. Liiku seuraavaan valikon vaihtoehtoon TAB tai NUOLI ALAS näppäimillä. Siirry edelliseen vaihtoehtoon SHIFT+TAB tai NUOLI YLÖS näppäimillä. Paina VÄLILYÖNTI tai ENTER valitaksesi valikon kohdan. Avataksesi nykyisen kohdan alivalikon paina VÄLILYÖNTI tai ENTER tai NUOLI OIKEALLE painiketta. Siirtyäksesi takaisin valikon ylemmälle tasolle paina ESC tai NUOLI vasemmalle. Oheisvalikko suljetaan ESC painikkeella."},{name:"Editorin listalaatikko", legend:"Listalaatikon sisällä siirry seuraavaan listan kohtaan TAB tai NUOLI ALAS painikkeilla. Siirry edelliseen listan kohtaan SHIFT+TAB tai NUOLI YLÖS painikkeilla. Paina VÄLILYÖNTI tai ENTER valitaksesi listan vaihtoehdon. Paina ESC sulkeaksesi listalaatikon."},{name:"Editorin elementtipolun palkki",legend:"Paina ${elementsPathFocus} siirtyäksesi elementtipolun palkkiin. Siirry seuraavaan elementtipainikkeeseen TAB tai NUOLI OIKEALLE painikkeilla. Siirry aiempaan painikkeeseen SHIFT+TAB tai NUOLI VASEMMALLE painikkeilla. Paina VÄLILYÖNTI tai ENTER valitaksesi elementin editorissa."}]}, {name:"Komennot",items:[{name:"Peruuta komento",legend:"Paina ${undo}"},{name:"Tee uudelleen komento",legend:"Paina ${redo}"},{name:"Lihavoi komento",legend:"Paina ${bold}"},{name:"Kursivoi komento",legend:"Paina ${italic}"},{name:"Alleviivaa komento",legend:"Paina ${underline}"},{name:"Linkki komento",legend:"Paina ${link}"},{name:"Pienennä työkalupalkki komento",legend:"Paina ${toolbarCollapse}"},{name:"Siirry aiempaan fokustilaan komento",legend:"Paina ${accessPreviousSpace} siiryäksesi lähimpään kursorin edellä olevaan saavuttamattomaan fokustilaan, esimerkiksi: kaksi vierekkäistä HR elementtiä. Toista näppäinyhdistelmää päästäksesi kauempana oleviin fokustiloihin."}, {name:"Siirry seuraavaan fokustilaan komento",legend:"Paina ${accessPreviousSpace} siiryäksesi lähimpään kursorin jälkeen olevaan saavuttamattomaan fokustilaan, esimerkiksi: kaksi vierekkäistä HR elementtiä. Toista näppäinyhdistelmää päästäksesi kauempana oleviin fokustiloihin."},{name:"Saavutettavuus ohjeet",legend:"Paina ${a11yHelp}"}]}]});
itplanes/AdminLTE
plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js
JavaScript
mit
3,453
webshims.register("mediaelement-jaris",function(a,b,c,d,e,f){"use strict";var g=b.mediaelement,h=c.swfmini,i=Modernizr.audio&&Modernizr.video,j=h.hasFlashPlayerVersion("9.0.115"),k=0,l="ActiveXObject"in c&&i,m={paused:!0,ended:!1,currentSrc:"",duration:c.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,seeking:!1,error:null,buffered:{start:function(a){return a?void b.error("buffered index size error"):0},end:function(a){return a?void b.error("buffered index size error"):0},length:0}},n=Object.keys(m),o={currentTime:0,volume:1,muted:!1},p=(Object.keys(o),a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,currentTime:0,_ppFlag:e,_calledMeta:!1,lastDuration:0},m,o)),q=function(a){try{a.nodeName}catch(c){return null}var d=b.data(a,"mediaelement");return d&&"third"==d.isActive?d:null},r=function(b,c){c=a.Event(c),c.preventDefault(),a.event.trigger(c,e,b)},s=f.playerPath||b.cfg.basePath+"swf/"+(f.playerName||"JarisFLVPlayer.swf");b.extendUNDEFProp(f.params,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent",allowNetworking:"all"}),b.extendUNDEFProp(f.vars,{controltype:"1",jsapi:"1"}),b.extendUNDEFProp(f.attrs,{bgcolor:"#000000"});var t=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer),a>=3&&b.readyState<3&&(b.readyState=a,r(b._elem,"canplay"),b.paused||r(b._elem,"playing"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){t(4,b)},4e3)),a>=4&&b.readyState<4&&(b.readyState=a,r(b._elem,"canplaythrough")),b.readyState=a},u=function(b){b.seeking&&Math.abs(b.currentTime-b._lastSeektime)<2&&(b.seeking=!1,a(b._elem).triggerHandler("seeked"))};g.jarisEvent={};var v,w={onPlayPause:function(a,b,c){var d,e;if(null==c)try{d=b.api.api_get("isPlaying")}catch(f){}else d=c;d==b.paused&&(b.paused=!d,e=b.paused?"pause":"play",b._ppFlag=!0,r(b._elem,e),b.readyState<3&&t(3,b),b.paused||r(b._elem,"playing"))},onSeek:function(b,c){c._lastSeektime=b.seekTime,c.seeking=!0,a(c._elem).triggerHandler("seeking"),clearTimeout(c._seekedTimer),c._seekedTimer=setTimeout(function(){u(c),c.seeking=!1},300)},onConnectionFailed:function(){b.error("media error")},onNotBuffering:function(a,b){t(3,b)},onDataInitialized:function(a,b){var c,d=b.duration;b.duration=a.duration,d==b.duration||isNaN(b.duration)||b._calledMeta&&(c=Math.abs(b.lastDuration-b.duration))<2||(b.videoHeight=a.height,b.videoWidth=a.width,b.networkState||(b.networkState=2),b.readyState<1&&t(1,b),clearTimeout(b._durationChangeTimer),b._calledMeta&&b.duration?b._durationChangeTimer=setTimeout(function(){b.lastDuration=b.duration,r(b._elem,"durationchange")},c>50?0:c>9?9:99):(b.lastDuration=b.duration,b.duration&&r(b._elem,"durationchange"),b._calledMeta||r(b._elem,"loadedmetadata")),b._calledMeta=!0)},onBuffering:function(a,b){b.ended&&(b.ended=!1),t(1,b),r(b._elem,"waiting")},onTimeUpdate:function(a,b){b.ended&&(b.ended=!1),b.readyState<3&&(t(3,b),r(b._elem,"playing")),b.seeking&&u(b),r(b._elem,"timeupdate")},onProgress:function(b,c){if(c.ended&&(c.ended=!1),c.duration&&!isNaN(c.duration)){var d=b.loaded/b.total;d>.02&&.2>d?t(3,c):d>.2&&(d>.99&&(c.networkState=1),t(4,c)),c._bufferedEnd&&c._bufferedEnd>d&&(c._bufferedStart=c.currentTime||0),c._bufferedEnd=d,c.buffered.length=1,a.event.trigger("progress",e,c._elem,!0)}},onPlaybackFinished:function(a,b){b.readyState<4&&t(4,b),b.ended=!0,r(b._elem,"ended")},onVolumeChange:function(a,b){(b.volume!=a.volume||b.muted!=a.mute)&&(b.volume=a.volume,b.muted=a.mute,r(b._elem,"volumechange"))},ready:function(){var c=function(a){var b=!0;try{a.api.api_get("volume")}catch(c){b=!1}return b};return function(d,e){var f=0,g=function(){return f>9?void(e.tryedReframeing=0):(f++,e.tryedReframeing++,void(c(e)?(e.wasSwfReady=!0,e.tryedReframeing=0,y(e),x(e)):e.tryedReframeing<6?e.tryedReframeing<3?(e.reframeTimer=setTimeout(g,9),e.shadowElem.css({overflow:"visible"}),setTimeout(function(){e.shadowElem.css({overflow:"hidden"})},1)):(e.shadowElem.css({overflow:"hidden"}),a(e._elem).mediaLoad()):(clearTimeout(e.reframeTimer),b.error("reframing error"))))};e&&e.api&&(e.tryedReframeing||(e.tryedReframeing=0),clearTimeout(v),clearTimeout(e.reframeTimer),e.shadowElem.removeClass("flashblocker-assumed"),f?e.reframeTimer=setTimeout(g,9):g())}}()};w.onMute=w.onVolumeChange;var x=function(a){var c,d=a.actionQueue.length,e=0;if(d&&"third"==a.isActive)for(;a.actionQueue.length&&d>e;){e++,c=a.actionQueue.shift();try{a.api[c.fn].apply(a.api,c.args)}catch(f){b.warn(f)}}a.actionQueue.length&&(a.actionQueue=[])},y=function(b){b&&((b._ppFlag===e&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===e||!b.paused))try{a(b._elem).play(),b._ppFlag=!0}catch(c){}},1),b.muted&&a.prop(b._elem,"muted",!0),1!=b.volume&&a.prop(b._elem,"volume",b.volume))},z=a.noop;if(i){var A={play:1,playing:1},B=["play","pause","playing","canplay","progress","waiting","ended","loadedmetadata","durationchange","emptied"],C=B.map(function(a){return a+".webshimspolyfill"}).join(" "),D=function(c){var d=b.data(c.target,"mediaelement");if(d){var e=c.originalEvent&&c.originalEvent.type===c.type;e==("third"==d.activating)&&(c.stopImmediatePropagation(),A[c.type]&&(d.isActive!=d.activating?a(c.target).pause():e&&(a.prop(c.target,"pause")._supvalue||a.noop).apply(c.target)))}};z=function(c){a(c).off(C).on(C,D),B.forEach(function(a){b.moveToFirstEvent(c,a)})},z(d)}g.setActive=function(c,d,e){if(e||(e=b.data(c,"mediaelement")),e&&e.isActive!=d){"html5"!=d&&"third"!=d&&b.warn("wrong type for mediaelement activating: "+d);var f=b.data(c,"shadowData");e.activating=d,a(c).pause(),e.isActive=d,"third"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(c).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1),a(c).trigger("mediaelementapichange")}};var E=function(){var a=["_calledMeta","lastDuration","_bufferedEnd","_bufferedStart","_ppFlag","currentSrc","currentTime","duration","ended","networkState","paused","seeking","videoHeight","videoWidth"],b=a.length;return function(c){if(c){clearTimeout(c._seekedTimer);var d=b,e=c.networkState;for(t(0,c),clearTimeout(c._durationChangeTimer);--d>-1;)delete c[a[d]];c.actionQueue=[],c.buffered.length=0,e&&r(c._elem,"emptied")}}}(),F=function(){var b={},e=function(c){var e,f,g;return b[c.currentSrc]?e=b[c.currentSrc]:c.videoHeight&&c.videoWidth?(b[c.currentSrc]={width:c.videoWidth,height:c.videoHeight},e=b[c.currentSrc]):(f=a.attr(c._elem,"poster"))&&(e=b[f],e||(g=d.createElement("img"),g.onload=function(){b[f]={width:this.width,height:this.height},b[f].height&&b[f].width?G(c,a.prop(c._elem,"controls")):delete b[f],g.onload=null},g.src=f,g.complete&&g.onload&&g.onload())),e||{width:300,height:"video"==c._elemNodeName?150:50}},f=function(a,b){return a.style[b]||a.currentStyle&&a.currentStyle[b]||c.getComputedStyle&&(c.getComputedStyle(a,null)||{})[b]||""},g=["minWidth","maxWidth","minHeight","maxHeight"],h=function(a,b){var c,d,e=!1;for(c=0;4>c;c++)d=f(a,g[c]),parseFloat(d,10)&&(e=!0,b[g[c]]=d);return e},i=function(b){var c,d,g=b._elem,i={width:"auto"==f(g,"width"),height:"auto"==f(g,"height")},j={width:!i.width&&a(g).width(),height:!i.height&&a(g).height()};return(i.width||i.height)&&(c=e(b),d=c.width/c.height,i.width&&i.height?(j.width=c.width,j.height=c.height):i.width?j.width=j.height*d:i.height&&(j.height=j.width/d),h(g,j)&&(b.shadowElem.css(j),i.width&&(j.width=b.shadowElem.height()*d),i.height&&(j.height=(i.width?j.width:b.shadowElem.width())/d),i.width&&i.height&&(b.shadowElem.css(j),j.height=b.shadowElem.width()/d,j.width=j.height*d,b.shadowElem.css(j),j.width=b.shadowElem.height()*d,j.height=j.width/d),Modernizr.video||(j.width=b.shadowElem.width(),j.height=b.shadowElem.height()))),j};return i}(),G=function(b,c){var d,e=b.shadowElem;a(b._elem)[c?"addClass":"removeClass"]("webshims-controls"),("third"==b.isActive||"third"==b.activating)&&("audio"!=b._elemNodeName||c?(b._elem.style.display="",d=F(b),b._elem.style.display="none",e.css(d)):e.css({width:0,height:0}))},H=function(){var b={"":1,auto:1};return function(c){var d=a.attr(c,"preload");return null==d||"none"==d||a.prop(c,"autoplay")?!1:(d=a.prop(c,"preload"),!!(b[d]||"metadata"==d&&a(c).is(".preload-in-doubt, video:not([poster])")))}}(),I={A:/&amp;/g,a:/&/g,e:/\=/g,q:/\?/g},J=function(a){return a.replace?a.replace(I.A,"%26").replace(I.a,"%26").replace(I.e,"%3D").replace(I.q,"%3F"):a};if("matchMedia"in c){var K=!1;try{K=c.matchMedia("only all").matches}catch(L){}K&&(g.sortMedia=function(a,b){try{a=!a.media||matchMedia(a.media).matches,b=!b.media||matchMedia(b.media).matches}catch(c){return 0}return a==b?0:a?-1:1})}g.createSWF=function(c,e,l){if(!j)return void setTimeout(function(){a(c).mediaLoad()},1);var m={};1>k?k=1:k++,l||(l=b.data(c,"mediaelement")),((m.height=a.attr(c,"height")||"")||(m.width=a.attr(c,"width")||""))&&(a(c).css(m),b.warn("width or height content attributes used. Webshims prefers the usage of CSS (computed styles or inline styles) to detect size of a video/audio. It's really more powerfull."));var n,o="audio/rtmp"==e.type||"video/rtmp"==e.type,q=a.extend({},f.vars,{poster:J(a.attr(c,"poster")&&a.prop(c,"poster")||""),source:J(e.streamId||e.srcProp),server:J(e.server||"")}),r=a(c).data("vars")||{},t=a.prop(c,"controls"),u="jarisplayer-"+b.getID(c),x=a.extend({},f.params,a(c).data("params")),y=c.nodeName.toLowerCase(),A=a.extend({},f.attrs,{name:u,id:u},a(c).data("attrs")),B=function(){"third"==l.isActive&&G(l,a.prop(c,"controls"))};return l&&l.swfCreated?(g.setActive(c,"third",l),l.currentSrc=e.srcProp,l.shadowElem.html('<div id="'+u+'">'),l.api=!1,l.actionQueue=[],n=l.shadowElem,E(l)):(a(d.getElementById("wrapper-"+u)).remove(),n=a('<div class="polyfill-'+y+" polyfill-mediaelement "+b.shadowClass+'" id="wrapper-'+u+'"><div id="'+u+'"></div>').css({position:"relative",overflow:"hidden"}),l=b.data(c,"mediaelement",b.objectCreate(p,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:y},_elem:{value:c},currentSrc:{value:e.srcProp},swfCreated:{value:!0},id:{value:u.replace(/-/g,"")},buffered:{value:{start:function(a){return a>=l.buffered.length?void b.error("buffered index size error"):0},end:function(a){return a>=l.buffered.length?void b.error("buffered index size error"):(l.duration-l._bufferedStart)*l._bufferedEnd+l._bufferedStart},length:0}}})),n.insertBefore(c),i&&a.extend(l,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted"),paused:a.prop(c,"paused")}),b.addShadowDom(c,n),b.data(c,"mediaelement")||b.data(c,"mediaelement",l),z(c),g.setActive(c,"third",l),G(l,t),a(c).on({"updatemediaelementdimensions loadedmetadata emptied":B,remove:function(a){!a.originalEvent&&g.jarisEvent[l.id]&&g.jarisEvent[l.id].elem==c&&(delete g.jarisEvent[l.id],clearTimeout(v),clearTimeout(l.flashBlock))}}).onWSOff("updateshadowdom",B)),g.jarisEvent[l.id]&&g.jarisEvent[l.id].elem!=c?void b.error("something went wrong"):(g.jarisEvent[l.id]||(g.jarisEvent[l.id]=function(a){if("ready"==a.type){var b=function(){l.api&&(l.paused||l.api.api_play(),H(c)&&l.api.api_preload(),w.ready(a,l))};l.api?b():setTimeout(b,9)}else l.currentTime=a.position,l.api&&(!l._calledMeta&&isNaN(a.duration)&&l.duration!=a.duration&&isNaN(l.duration)&&w.onDataInitialized(a,l),l._ppFlag||"onPlayPause"==a.type||w.onPlayPause(a,l),w[a.type]&&w[a.type](a,l)),l.duration=a.duration},g.jarisEvent[l.id].elem=c),a.extend(q,{id:u,evtId:l.id,controls:""+t,autostart:"false",nodename:y},r),o?q.streamtype="rtmp":"audio/mpeg"==e.type||"audio/mp3"==e.type?(q.type="audio",q.streamtype="file"):"video/youtube"==e.type&&(q.streamtype="youtube"),f.changeSWF(q,c,e,l,"embed"),clearTimeout(l.flashBlock),void h.embedSWF(s,u,"100%","100%","9.0.115",!1,q,x,A,function(d){if(d.success){var e=function(){(!d.ref.parentNode&&n[0].parentNode||"none"==d.ref.style.display)&&(n.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed")),a(d.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})};l.api=d.ref,t||a(d.ref).attr("tabindex","-1").css("outline","none"),l.flashBlock=setTimeout(e,99),v||(clearTimeout(v),v=setTimeout(function(){e();var c=a(d.ref);c[0].offsetWidth>1&&c[0].offsetHeight>1&&0===location.protocol.indexOf("file:")?b.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(c[0].offsetWidth<2||c[0].offsetHeight<2)&&b.warn("JS-SWF connection can't be established on hidden or unconnected flash objects"),c=null},8e3))}}))};var M=function(a,b,c,d){return d=d||q(a),d?(d.api&&d.api[b]?d.api[b].apply(d.api,c||[]):(d.actionQueue.push({fn:b,args:c}),d.actionQueue.length>10&&setTimeout(function(){d.actionQueue.length>5&&d.actionQueue.shift()},99)),d):!1};if(["audio","video"].forEach(function(c){var d,e={},f=function(a){("audio"!=c||"videoHeight"!=a&&"videoWidth"!=a)&&(e[a]={get:function(){var b=q(this);return b?b[a]:i&&d[a].prop._supget?d[a].prop._supget.apply(this):p[a]},writeable:!1})},g=function(a,b){f(a),delete e[a].writeable,e[a].set=b};g("seeking"),g("volume",function(a){var c=q(this);if(c)a*=1,isNaN(a)||((0>a||a>1)&&b.error("volume greater or less than allowed "+a/100),M(this,"api_volume",[a],c),c.volume!=a&&(c.volume=a,r(c._elem,"volumechange")),c=null);else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)}),g("muted",function(a){var b=q(this);if(b)a=!!a,M(this,"api_muted",[a],b),b.muted!=a&&(b.muted=a,r(b._elem,"volumechange")),b=null;else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)}),g("currentTime",function(a){var b=q(this);if(b)a*=1,isNaN(a)||M(this,"api_seek",[a],b);else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,arguments)}),["play","pause"].forEach(function(a){e[a]={value:function(){var b=q(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),M(this,"play"==a?"api_play":"api_pause",[],b),b._ppFlag=!0,b.paused!=("play"!=a)&&(b.paused="play"!=a,r(b._elem,a));else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}}),n.forEach(f),b.onNodeNamesPropertyModify(c,"controls",function(b,d){var e=q(this);a(this)[d?"addClass":"removeClass"]("webshims-controls"),e&&("audio"==c&&G(e,d),M(this,"api_controls",[d],e))}),b.onNodeNamesPropertyModify(c,"preload",function(){var c,d,e;H(this)&&(c=q(this),c?M(this,"api_preload",[],c):!l||!this.paused||this.error||a.data(this,"mediaerror")||this.readyState||this.networkState||this.autoplay||!a(this).is(":not(.nonnative-api-active)")||(e=this,d=b.data(e,"mediaelementBase")||b.data(e,"mediaelementBase",{}),clearTimeout(d.loadTimer),d.loadTimer=setTimeout(function(){a(e).mediaLoad()},9)))}),d=b.defineNodeNameProperties(c,e,"prop"),Modernizr.mediaDefaultMuted||b.defineNodeNameProperties(c,{defaultMuted:{get:function(){return null!=a.attr(this,"muted")},set:function(b){b?a.attr(this,"muted",""):a(this).removeAttr("muted")}}},"prop")}),j&&a.cleanData){var N=a.cleanData,O={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&k)for(b=0;c>b;b++)if(O[a[b].nodeName]&&"api_pause"in a[b]){k--;try{if(a[b].api_pause(),4==a[b].readyState)for(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(e){}}return N.apply(this,arguments)}}if(i?"media"in d.createElement("source")||b.reflectProperties("source",["media"]):(["poster","src"].forEach(function(a){b.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),b.defineNodeNamesProperty(["audio","video"],"preload",{reflect:!0,propType:"enumarated",defaultValue:"",limitedTo:["","auto","metadata","none"]}),b.reflectProperties("source",["type","media"]),["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)}),b.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"),j&&b.ready("WINDOWLOAD",function(){setTimeout(function(){k||(d.createElement("img").src=s)},9)})),f.experimentallyMimetypeCheck&&!function(){var b=a.fn.addBack?"addBack":"andSelf",c=function(){var c,d="media/unknown please provide mime type",e=a(this),f=[];e.not(".ws-after-check").find("source")[b]().filter("[data-wsrecheckmimetype]:not([type])").each(function(){var b=a(this).removeAttr("data-wsrecheckmimetype"),e=function(){b.attr("data-type",d)};try{f.push(a.ajax({type:"head",url:a.attr(this,"src"),success:function(a,e,f){var g=f.getResponseHeader("Content-Type");g&&(c=!0),b.attr("data-type",g||d)},error:e}))}catch(g){e()}}),f.length&&(e.addClass("ws-after-check"),a.when.apply(a,f).always(function(){e.mediaLoad(),setTimeout(function(){e.removeClass("ws-after-check")},9)}))};a("audio.media-error, video.media-error").each(c),a(d).on("mediaerror",function(a){c.call(a.target)})}(),i&&j&&!f.preferFlash){var P={3:1,4:1},Q=function(c){var e,g,h;!f.preferFlash&&(a(c.target).is("audio, video")||(h=c.target.parentNode)&&a("source",h).last()[0]==c.target)&&(e=a(c.target).closest("audio, video"))&&(g=e.prop("error"))&&P[g.code]&&(f.preferFlash?d.removeEventListener("error",Q,!0):e.is(".nonnative-api-active")||(f.preferFlash=!0,d.removeEventListener("error",Q,!0),a("audio, video").each(function(){b.mediaelement.selectSource(this)}),b.error("switching mediaelements option to 'preferFlash', due to an error with native player: "+c.target.src+" Mediaerror: "+e.prop("error")+"first error: "+g)))};setTimeout(function(){d.addEventListener("error",Q,!0),a("audio, video").each(function(){var b=a.prop(this,"error");return b&&P[b]?(Q({target:this}),!1):void 0})},9)}});
dc-js/cdnjs
ajax/libs/webshim/1.14.2/minified/shims/mediaelement-jaris.js
JavaScript
mit
17,877
(function(a){if(typeof define==="function"&&define.amd){define(["moment"],a)}else{if(typeof exports==="object"){module.exports=a(require("../moment"))}else{a(window.moment)}}}(function(a){return a.lang("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(e){var c=e%10,d=(~~(e%100/10)===1)?"th":(c===1)?"st":(c===2)?"nd":(c===3)?"rd":"th";return e+d},week:{dow:1,doy:4}})}));
gauravarora/cdnjs
ajax/libs/moment.js/2.3.1/lang/en-gb.min.js
JavaScript
mit
1,166
(function(a){if(typeof define==="function"&&define.amd){define(["moment"],a)}else{if(typeof exports==="object"){module.exports=a(require("../moment"))}else{a(window.moment)}}}(function(a){return a.lang("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(b,d,c){var e=b*100+d;if(e<900){return"早上"}else{if(e<1130){return"上午"}else{if(e<1230){return"中午"}else{if(e<1800){return"下午"}else{return"晚上"}}}}},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinal:function(b,c){switch(c){case"d":case"D":case"DDD":return b+"日";case"M":return b+"月";case"w":case"W":return b+"週";default:return b}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})}));
ruo91/cdnjs
ajax/libs/moment.js/2.6.0/lang/zh-tw.min.js
JavaScript
mit
1,488
(function(a){if(typeof define==="function"&&define.amd){define(["moment"],a)}else{if(typeof exports==="object"){module.exports=a(require("../moment"))}else{a(window.moment)}}}(function(a){return a.lang("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiem:function(b,d,c){if(b<12){return"午前"}else{return"午後"}},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}));
ppoffice/cdnjs
ajax/libs/moment.js/2.3.0/lang/ja.min.js
JavaScript
mit
1,087
/** * Select2 Galician translation * * Author: Leandro Regueiro <leandro.regueiro@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Non se atoparon resultados"; }, formatInputTooShort: function (input, min) { var n = min - input.length; if (n === 1) { return "Engada un carácter"; } else { return "Engada " + n + " caracteres"; } }, formatInputTooLong: function (input, max) { var n = input.length - max; if (n === 1) { return "Elimine un carácter"; } else { return "Elimine " + n + " caracteres"; } }, formatSelectionTooBig: function (limit) { if (limit === 1 ) { return "Só pode seleccionar un elemento"; } else { return "Só pode seleccionar " + limit + " elementos"; } }, formatLoadMore: function (pageNumber) { return "Cargando máis resultados..."; }, formatSearching: function () { return "Buscando..."; } }); })(jQuery);
potomak/cdnjs
ajax/libs/select2/3.4.4/select2_locale_gl.js
JavaScript
mit
1,277
YUI.add('app-content', function (Y, NAME) { /** `Y.App` extension that provides pjax-style content fetching and handling. @module app @submodule app-content @since 3.7.0 **/ var PjaxContent = Y.PjaxContent; /** `Y.App` extension that provides pjax-style content fetching and handling. This makes it easy to fetch server rendered content for URLs using Ajax. The HTML content returned from the server will be view-ified and set as the app's main content, making it seamless to use a mixture of server and client rendered views. When the `"app-content"` module is used, it will automatically mix itself into `Y.App`, and it provides three main features: - **`Y.App.Content.route`**: A stack of middleware which forms a pjax-style content route. - **`loadContent()`**: Route middleware which load content from a server. This makes an Ajax request for the requested URL, parses the returned content and puts it on the route's response object. - **`showContent()`**: Method which provides an easy way to view-ify HTML content which should be shown as an app's active/visible view. The following is an example of how these features can be used: // Creates a new app and registers the `"post"` view. var app = new Y.App({ views: { post: {type: Y.PostView} } }); // Uses a simple server rendered content route for the About page. app.route('/about/', Y.App.Content.route); // Uses the `loadContent()` middleware to fetch the contents of the post // from the server and shows that content in a `"post"` view. app.route('/posts/:id/', 'loadContent', function (req, res, next) { this.showContent(res.content.node, {view: 'post'}); }); @class App.Content @uses PjaxContent @extensionfor App @since 3.7.0 **/ function AppContent() { PjaxContent.apply(this, arguments); } /** A stack of middleware which forms a pjax-style content route. This route will load the rendered HTML content from the server, then create and show a new view using those contents. @property route @type Array @static @since 3.7.0 **/ AppContent.route = ['loadContent', '_contentRoute']; AppContent.prototype = { // -- Public Methods ------------------------------------------------------- /** Sets this app's `activeView` attribute using the specified `content`. This provides an easy way to view-ify HTML content which should be shown as this app's active/visible view. This method will determine the appropriate view `container` node based on the specified `content`. By default, a new `Y.View` instance will be created unless `options.view` is specified. Under the hood, this method calls the `showView()` method, so refer to its docs for more information. @method showContent @param {HTMLElement|Node|String} content The content to show, it may be provided as a selector string, a DOM element, or a `Y.Node` instance. @param {Object} [options] Optional objects containing any of the following properties in addition to any `showView()` options: @param {Object|String} [options.view] The name of a view defined in this app's `views`, or an object with the following properties: @param {String} options.view.name The name of a view defined in this app's `views`. @param {Object} [options.view.config] Optional configuration to use when creating the new view instance. This config object can also be used to update an existing or preserved view's attributes when `options.update` is `true`. **Note:** If a `container` is specified, it will be overridden by the `content` specified in the first argument. @param {Function} [callback] Optional callback function to call after the new `activeView` is ready to use. **Note:** this will override `options.callback` and it can be specified as either the second or third argument. The function will be passed the following: @param {View} callback.view A reference to the new `activeView`. @since 3.7.0 @see App.showView() **/ showContent: function (content, options, callback) { // Makes sure we have a node instance, and will query selector strings. content = Y.one(content); // Support the callback function being either the second or third arg. if (typeof options === 'function') { options = {callback: options}; callback = null; } // Mix in default option to *not* render the view because presumably we // have pre-rendered content here. This also creates a copy so we can // modify the object. options = Y.merge({render: false}, options); var view = options.view || '', viewName = typeof view === 'string' ? view : view.name, viewConfig = typeof view !== 'string' ? view.config : {}, viewInfo = this.getViewInfo(viewName), container, template, type, ViewConstructor; // Remove `view` from the `options` which will be passed along to the // `showView()` method. delete options.view; // When the specified `content` is a document fragment, we want to see // if it only contains a single node, and use that as the content. This // checks `childNodes` which will include text nodes. if (content && content.isFragment() && content.get('childNodes').size() === 1) { content = content.get('firstChild'); } // When the `content` is an element node (`nodeType` 1), we can use it // as-is for the `container`. Otherwise, we'll construct a new container // based on the `options.view`'s `containerTemplate`. if (content && content.get('nodeType') === 1) { container = content; } else { type = (viewInfo && viewInfo.type) || Y.View; // Looks for a namespaced constructor function on `Y`. ViewConstructor = typeof type === 'string' ? Y.Object.getValue(Y, type.split('.')) : type; // Find the correct node template for the view. template = ViewConstructor.prototype.containerTemplate; container = Y.Node.create(template); // Append the document fragment to the newly created `container` // node. This is the worst case where we have to create a wrapper // node around the `content`. container.append(content); } // Makes sure the view is created using _our_ `container` node. viewConfig = Y.merge(viewConfig, {container: container}); // Finally switch to the new `activeView`. We want to make sure `view` // is a string if it's falsy, that way a new view will be created. return this.showView(viewName, viewConfig, options, callback); }, // -- Protected Methods ---------------------------------------------------- /** Provides a default content route which will show a server rendered view. **Note:** This route callback assumes that it's called after the `loadContent()` middleware. @method _contentRoute @param {Object} req Request object. @param {Object} res Response Object. @param {Function} next Function to pass control to the next route callback. @protected @since 3.7.0 @see Y.App.Content.route **/ _contentRoute: function (req, res, next) { var content = res.content, doc = Y.config.doc, activeViewHandle; // We must have some content to work with. if (!(content && content.node)) { return next(); } if (content.title && doc) { // Make sure the `activeView` does actually change before we go // messing with the page title. activeViewHandle = this.onceAfter('activeViewChange', function () { doc.title = content.title; }); } this.showContent(content.node); // Detach the handle just in case. if (activeViewHandle) { activeViewHandle.detach(); } next(); } }; // Mix statics. AppContent.ATTRS = Y.Attribute.protectAttrs(PjaxContent.ATTRS); // Mix prototype. Y.mix(AppContent, PjaxContent, false, null, 1); // -- Namespace ---------------------------------------------------------------- Y.App.Content = AppContent; Y.Base.mix(Y.App, [AppContent]); }, '@VERSION@', {"requires": ["app-base", "pjax-content"]});
masahirotanaka/cdnjs
ajax/libs/yui/3.9.1/app-content/app-content.js
JavaScript
mit
8,627
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>AdminLTE 2 | Flot Charts</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.6 --> <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css"> <!-- Font Awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"> <!-- Theme style --> <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css"> <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. --> <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="hold-transition skin-blue sidebar-mini"> <div class="wrapper"> <header class="main-header"> <!-- Logo --> <a href="../../index2.html" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini"><b>A</b>LT</span> <!-- logo for regular state and mobile devices --> <span class="logo-lg"><b>Admin</b>LTE</span> </a> <!-- Header Navbar: style can be found in header.less --> <nav class="navbar navbar-static-top"> <!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <!-- Messages: style can be found in dropdown.less--> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-envelope-o"></i> <span class="label label-success">4</span> </a> <ul class="dropdown-menu"> <li class="header">You have 4 messages</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li><!-- start message --> <a href="#"> <div class="pull-left"> <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"> </div> <h4> Support Team <small><i class="fa fa-clock-o"></i> 5 mins</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <!-- end message --> <li> <a href="#"> <div class="pull-left"> <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> AdminLTE Design Team <small><i class="fa fa-clock-o"></i> 2 hours</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> Developers <small><i class="fa fa-clock-o"></i> Today</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> Sales Department <small><i class="fa fa-clock-o"></i> Yesterday</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> Reviewers <small><i class="fa fa-clock-o"></i> 2 days</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> </ul> </li> <li class="footer"><a href="#">See All Messages</a></li> </ul> </li> <!-- Notifications: style can be found in dropdown.less --> <li class="dropdown notifications-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-bell-o"></i> <span class="label label-warning">10</span> </a> <ul class="dropdown-menu"> <li class="header">You have 10 notifications</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li> <a href="#"> <i class="fa fa-users text-aqua"></i> 5 new members joined today </a> </li> <li> <a href="#"> <i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the page and may cause design problems </a> </li> <li> <a href="#"> <i class="fa fa-users text-red"></i> 5 new members joined </a> </li> <li> <a href="#"> <i class="fa fa-shopping-cart text-green"></i> 25 sales made </a> </li> <li> <a href="#"> <i class="fa fa-user text-red"></i> You changed your username </a> </li> </ul> </li> <li class="footer"><a href="#">View all</a></li> </ul> </li> <!-- Tasks: style can be found in dropdown.less --> <li class="dropdown tasks-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-flag-o"></i> <span class="label label-danger">9</span> </a> <ul class="dropdown-menu"> <li class="header">You have 9 tasks</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li><!-- Task item --> <a href="#"> <h3> Design some buttons <small class="pull-right">20%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">20% Complete</span> </div> </div> </a> </li> <!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Create a nice theme <small class="pull-right">40%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">40% Complete</span> </div> </div> </a> </li> <!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Some task I need to do <small class="pull-right">60%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">60% Complete</span> </div> </div> </a> </li> <!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Make beautiful transitions <small class="pull-right">80%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">80% Complete</span> </div> </div> </a> </li> <!-- end task item --> </ul> </li> <li class="footer"> <a href="#">View all tasks</a> </li> </ul> </li> <!-- User Account: style can be found in dropdown.less --> <li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image"> <span class="hidden-xs">Alexander Pierce</span> </a> <ul class="dropdown-menu"> <!-- User image --> <li class="user-header"> <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"> <p> Alexander Pierce - Web Developer <small>Member since Nov. 2012</small> </p> </li> <!-- Menu Body --> <li class="user-body"> <div class="row"> <div class="col-xs-4 text-center"> <a href="#">Followers</a> </div> <div class="col-xs-4 text-center"> <a href="#">Sales</a> </div> <div class="col-xs-4 text-center"> <a href="#">Friends</a> </div> </div> <!-- /.row --> </li> <!-- Menu Footer--> <li class="user-footer"> <div class="pull-left"> <a href="#" class="btn btn-default btn-flat">Profile</a> </div> <div class="pull-right"> <a href="#" class="btn btn-default btn-flat">Sign out</a> </div> </li> </ul> </li> <!-- Control Sidebar Toggle Button --> <li> <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a> </li> </ul> </div> </nav> </header> <!-- Left side column. contains the logo and sidebar --> <aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel --> <div class="user-panel"> <div class="pull-left image"> <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"> </div> <div class="pull-left info"> <p>Alexander Pierce</p> <a href="#"><i class="fa fa-circle text-success"></i> Online</a> </div> </div> <!-- search form --> <form action="#" method="get" class="sidebar-form"> <div class="input-group"> <input type="text" name="q" class="form-control" placeholder="Search..."> <span class="input-group-btn"> <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i> </button> </span> </div> </form> <!-- /.search form --> <!-- sidebar menu: : style can be found in sidebar.less --> <ul class="sidebar-menu"> <li class="header">MAIN NAVIGATION</li> <li class="treeview"> <a href="#"> <i class="fa fa-dashboard"></i> <span>Dashboard</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li> <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-files-o"></i> <span>Layout Options</span> <span class="pull-right-container"> <span class="label label-primary pull-right">4</span> </span> </a> <ul class="treeview-menu"> <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li> <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li> <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li> <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li> </ul> </li> <li> <a href="../widgets.html"> <i class="fa fa-th"></i> <span>Widgets</span> <span class="pull-right-container"> <small class="label pull-right bg-green">new</small> </span> </a> </li> <li class="treeview active"> <a href="#"> <i class="fa fa-pie-chart"></i> <span>Charts</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li> <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li> <li class="active"><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li> <li><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-laptop"></i> <span>UI Elements</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li> <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li> <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li> <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li> <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li> <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-edit"></i> <span>Forms</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li> <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li> <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-table"></i> <span>Tables</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li> <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li> </ul> </li> <li> <a href="../calendar.html"> <i class="fa fa-calendar"></i> <span>Calendar</span> <span class="pull-right-container"> <small class="label pull-right bg-red">3</small> <small class="label pull-right bg-blue">17</small> </span> </a> </li> <li> <a href="../mailbox/mailbox.html"> <i class="fa fa-envelope"></i> <span>Mailbox</span> <span class="pull-right-container"> <small class="label pull-right bg-yellow">12</small> <small class="label pull-right bg-green">16</small> <small class="label pull-right bg-red">5</small> </span> </a> </li> <li class="treeview"> <a href="#"> <i class="fa fa-folder"></i> <span>Examples</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li> <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li> <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li> <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li> <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li> <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li> <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li> <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li> <li><a href="../examples/pace.html"><i class="fa fa-circle-o"></i> Pace Page</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-share"></i> <span>Multilevel</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li> <li> <a href="#"><i class="fa fa-circle-o"></i> Level One <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li> <li> <a href="#"><i class="fa fa-circle-o"></i> Level Two <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li> <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li> </ul> </li> </ul> </li> <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li> </ul> </li> <li><a href="../../documentation/index.html"><i class="fa fa-book"></i> <span>Documentation</span></a></li> <li class="header">LABELS</li> <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li> <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li> </ul> </section> <!-- /.sidebar --> </aside> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Flot Charts <small>preview sample</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Charts</a></li> <li class="active">Flot</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <!-- interactive chart --> <div class="box box-primary"> <div class="box-header with-border"> <i class="fa fa-bar-chart-o"></i> <h3 class="box-title">Interactive Area Chart</h3> <div class="box-tools pull-right"> Real time <div class="btn-group" id="realtime" data-toggle="btn-toggle"> <button type="button" class="btn btn-default btn-xs active" data-toggle="on">On</button> <button type="button" class="btn btn-default btn-xs" data-toggle="off">Off</button> </div> </div> </div> <div class="box-body"> <div id="interactive" style="height: 300px;"></div> </div> <!-- /.box-body--> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> <div class="row"> <div class="col-md-6"> <!-- Line chart --> <div class="box box-primary"> <div class="box-header with-border"> <i class="fa fa-bar-chart-o"></i> <h3 class="box-title">Line Chart</h3> <div class="box-tools pull-right"> <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> </button> <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> </div> </div> <div class="box-body"> <div id="line-chart" style="height: 300px;"></div> </div> <!-- /.box-body--> </div> <!-- /.box --> <!-- Area chart --> <div class="box box-primary"> <div class="box-header with-border"> <i class="fa fa-bar-chart-o"></i> <h3 class="box-title">Full Width Area Chart</h3> <div class="box-tools pull-right"> <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> </button> <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> </div> </div> <div class="box-body"> <div id="area-chart" style="height: 338px;" class="full-width-chart"></div> </div> <!-- /.box-body--> </div> <!-- /.box --> </div> <!-- /.col --> <div class="col-md-6"> <!-- Bar chart --> <div class="box box-primary"> <div class="box-header with-border"> <i class="fa fa-bar-chart-o"></i> <h3 class="box-title">Bar Chart</h3> <div class="box-tools pull-right"> <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> </button> <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> </div> </div> <div class="box-body"> <div id="bar-chart" style="height: 300px;"></div> </div> <!-- /.box-body--> </div> <!-- /.box --> <!-- Donut chart --> <div class="box box-primary"> <div class="box-header with-border"> <i class="fa fa-bar-chart-o"></i> <h3 class="box-title">Donut Chart</h3> <div class="box-tools pull-right"> <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> </button> <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> </div> </div> <div class="box-body"> <div id="donut-chart" style="height: 300px;"></div> </div> <!-- /.box-body--> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <footer class="main-footer"> <div class="pull-right hidden-xs"> <b>Version</b> 2.3.8 </div> <strong>Copyright &copy; 2014-2016 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved. </footer> <!-- Control Sidebar --> <aside class="control-sidebar control-sidebar-dark"> <!-- Create the tabs --> <ul class="nav nav-tabs nav-justified control-sidebar-tabs"> <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li> <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <!-- Home tab content --> <div class="tab-pane" id="control-sidebar-home-tab"> <h3 class="control-sidebar-heading">Recent Activity</h3> <ul class="control-sidebar-menu"> <li> <a href="javascript:void(0)"> <i class="menu-icon fa fa-birthday-cake bg-red"></i> <div class="menu-info"> <h4 class="control-sidebar-subheading">Langdon's Birthday</h4> <p>Will be 23 on April 24th</p> </div> </a> </li> <li> <a href="javascript:void(0)"> <i class="menu-icon fa fa-user bg-yellow"></i> <div class="menu-info"> <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4> <p>New phone +1(800)555-1234</p> </div> </a> </li> <li> <a href="javascript:void(0)"> <i class="menu-icon fa fa-envelope-o bg-light-blue"></i> <div class="menu-info"> <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4> <p>nora@example.com</p> </div> </a> </li> <li> <a href="javascript:void(0)"> <i class="menu-icon fa fa-file-code-o bg-green"></i> <div class="menu-info"> <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4> <p>Execution time 5 seconds</p> </div> </a> </li> </ul> <!-- /.control-sidebar-menu --> <h3 class="control-sidebar-heading">Tasks Progress</h3> <ul class="control-sidebar-menu"> <li> <a href="javascript:void(0)"> <h4 class="control-sidebar-subheading"> Custom Template Design <span class="label label-danger pull-right">70%</span> </h4> <div class="progress progress-xxs"> <div class="progress-bar progress-bar-danger" style="width: 70%"></div> </div> </a> </li> <li> <a href="javascript:void(0)"> <h4 class="control-sidebar-subheading"> Update Resume <span class="label label-success pull-right">95%</span> </h4> <div class="progress progress-xxs"> <div class="progress-bar progress-bar-success" style="width: 95%"></div> </div> </a> </li> <li> <a href="javascript:void(0)"> <h4 class="control-sidebar-subheading"> Laravel Integration <span class="label label-warning pull-right">50%</span> </h4> <div class="progress progress-xxs"> <div class="progress-bar progress-bar-warning" style="width: 50%"></div> </div> </a> </li> <li> <a href="javascript:void(0)"> <h4 class="control-sidebar-subheading"> Back End Framework <span class="label label-primary pull-right">68%</span> </h4> <div class="progress progress-xxs"> <div class="progress-bar progress-bar-primary" style="width: 68%"></div> </div> </a> </li> </ul> <!-- /.control-sidebar-menu --> </div> <!-- /.tab-pane --> <!-- Stats tab content --> <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div> <!-- /.tab-pane --> <!-- Settings tab content --> <div class="tab-pane" id="control-sidebar-settings-tab"> <form method="post"> <h3 class="control-sidebar-heading">General Settings</h3> <div class="form-group"> <label class="control-sidebar-subheading"> Report panel usage <input type="checkbox" class="pull-right" checked> </label> <p> Some information about this general settings option </p> </div> <!-- /.form-group --> <div class="form-group"> <label class="control-sidebar-subheading"> Allow mail redirect <input type="checkbox" class="pull-right" checked> </label> <p> Other sets of options are available </p> </div> <!-- /.form-group --> <div class="form-group"> <label class="control-sidebar-subheading"> Expose author name in posts <input type="checkbox" class="pull-right" checked> </label> <p> Allow the user to show his name in blog posts </p> </div> <!-- /.form-group --> <h3 class="control-sidebar-heading">Chat Settings</h3> <div class="form-group"> <label class="control-sidebar-subheading"> Show me as online <input type="checkbox" class="pull-right" checked> </label> </div> <!-- /.form-group --> <div class="form-group"> <label class="control-sidebar-subheading"> Turn off notifications <input type="checkbox" class="pull-right"> </label> </div> <!-- /.form-group --> <div class="form-group"> <label class="control-sidebar-subheading"> Delete chat history <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a> </label> </div> <!-- /.form-group --> </form> </div> <!-- /.tab-pane --> </div> </aside> <!-- /.control-sidebar --> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> <div class="control-sidebar-bg"></div> </div> <!-- ./wrapper --> <!-- jQuery 2.2.3 --> <script src="../../plugins/jQuery/jquery-2.2.3.min.js"></script> <!-- Bootstrap 3.3.6 --> <script src="../../bootstrap/js/bootstrap.min.js"></script> <!-- FastClick --> <script src="../../plugins/fastclick/fastclick.js"></script> <!-- AdminLTE App --> <script src="../../dist/js/app.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="../../dist/js/demo.js"></script> <!-- FLOT CHARTS --> <script src="../../plugins/flot/jquery.flot.min.js"></script> <!-- FLOT RESIZE PLUGIN - allows the chart to redraw when the window is resized --> <script src="../../plugins/flot/jquery.flot.resize.min.js"></script> <!-- FLOT PIE PLUGIN - also used to draw donut charts --> <script src="../../plugins/flot/jquery.flot.pie.min.js"></script> <!-- FLOT CATEGORIES PLUGIN - Used to draw bar charts --> <script src="../../plugins/flot/jquery.flot.categories.min.js"></script> <!-- Page script --> <script> $(function () { /* * Flot Interactive Chart * ----------------------- */ // We use an inline data source in the example, usually data would // be fetched from a server var data = [], totalPoints = 100; function getRandomData() { if (data.length > 0) data = data.slice(1); // Do a random walk while (data.length < totalPoints) { var prev = data.length > 0 ? data[data.length - 1] : 50, y = prev + Math.random() * 10 - 5; if (y < 0) { y = 0; } else if (y > 100) { y = 100; } data.push(y); } // Zip the generated y values with the x values var res = []; for (var i = 0; i < data.length; ++i) { res.push([i, data[i]]); } return res; } var interactive_plot = $.plot("#interactive", [getRandomData()], { grid: { borderColor: "#f3f3f3", borderWidth: 1, tickColor: "#f3f3f3" }, series: { shadowSize: 0, // Drawing is faster without shadows color: "#3c8dbc" }, lines: { fill: true, //Converts the line chart to area chart color: "#3c8dbc" }, yaxis: { min: 0, max: 100, show: true }, xaxis: { show: true } }); var updateInterval = 500; //Fetch data ever x milliseconds var realtime = "on"; //If == to on then fetch data every x seconds. else stop fetching function update() { interactive_plot.setData([getRandomData()]); // Since the axes don't change, we don't need to call plot.setupGrid() interactive_plot.draw(); if (realtime === "on") setTimeout(update, updateInterval); } //INITIALIZE REALTIME DATA FETCHING if (realtime === "on") { update(); } //REALTIME TOGGLE $("#realtime .btn").click(function () { if ($(this).data("toggle") === "on") { realtime = "on"; } else { realtime = "off"; } update(); }); /* * END INTERACTIVE CHART */ /* * LINE CHART * ---------- */ //LINE randomly generated data var sin = [], cos = []; for (var i = 0; i < 14; i += 0.5) { sin.push([i, Math.sin(i)]); cos.push([i, Math.cos(i)]); } var line_data1 = { data: sin, color: "#3c8dbc" }; var line_data2 = { data: cos, color: "#00c0ef" }; $.plot("#line-chart", [line_data1, line_data2], { grid: { hoverable: true, borderColor: "#f3f3f3", borderWidth: 1, tickColor: "#f3f3f3" }, series: { shadowSize: 0, lines: { show: true }, points: { show: true } }, lines: { fill: false, color: ["#3c8dbc", "#f56954"] }, yaxis: { show: true, }, xaxis: { show: true } }); //Initialize tooltip on hover $('<div class="tooltip-inner" id="line-chart-tooltip"></div>').css({ position: "absolute", display: "none", opacity: 0.8 }).appendTo("body"); $("#line-chart").bind("plothover", function (event, pos, item) { if (item) { var x = item.datapoint[0].toFixed(2), y = item.datapoint[1].toFixed(2); $("#line-chart-tooltip").html(item.series.label + " of " + x + " = " + y) .css({top: item.pageY + 5, left: item.pageX + 5}) .fadeIn(200); } else { $("#line-chart-tooltip").hide(); } }); /* END LINE CHART */ /* * FULL WIDTH STATIC AREA CHART * ----------------- */ var areaData = [[2, 88.0], [3, 93.3], [4, 102.0], [5, 108.5], [6, 115.7], [7, 115.6], [8, 124.6], [9, 130.3], [10, 134.3], [11, 141.4], [12, 146.5], [13, 151.7], [14, 159.9], [15, 165.4], [16, 167.8], [17, 168.7], [18, 169.5], [19, 168.0]]; $.plot("#area-chart", [areaData], { grid: { borderWidth: 0 }, series: { shadowSize: 0, // Drawing is faster without shadows color: "#00c0ef" }, lines: { fill: true //Converts the line chart to area chart }, yaxis: { show: false }, xaxis: { show: false } }); /* END AREA CHART */ /* * BAR CHART * --------- */ var bar_data = { data: [["January", 10], ["February", 8], ["March", 4], ["April", 13], ["May", 17], ["June", 9]], color: "#3c8dbc" }; $.plot("#bar-chart", [bar_data], { grid: { borderWidth: 1, borderColor: "#f3f3f3", tickColor: "#f3f3f3" }, series: { bars: { show: true, barWidth: 0.5, align: "center" } }, xaxis: { mode: "categories", tickLength: 0 } }); /* END BAR CHART */ /* * DONUT CHART * ----------- */ var donutData = [ {label: "Series2", data: 30, color: "#3c8dbc"}, {label: "Series3", data: 20, color: "#0073b7"}, {label: "Series4", data: 50, color: "#00c0ef"} ]; $.plot("#donut-chart", donutData, { series: { pie: { show: true, radius: 1, innerRadius: 0.5, label: { show: true, radius: 2 / 3, formatter: labelFormatter, threshold: 0.1 } } }, legend: { show: false } }); /* * END DONUT CHART */ }); /* * Custom Label formatter * ---------------------- */ function labelFormatter(label, series) { return '<div style="font-size:13px; text-align:center; padding:2px; color: #fff; font-weight: 600;">' + label + "<br>" + Math.round(series.percent) + "%</div>"; } </script> </body> </html>
ghign0/gBlog
web/vendor/almasaeed2010/adminlte/pages/charts/flot.html
HTML
mit
40,408
#include "sass.hpp" #include <cstring> #include "util.hpp" #include "context.hpp" #include "sass/functions.h" #include "sass_functions.hpp" extern "C" { using namespace Sass; Sass_Function_List ADDCALL sass_make_function_list(size_t length) { return (Sass_Function_List) calloc(length + 1, sizeof(Sass_Function_Entry)); } Sass_Function_Entry ADDCALL sass_make_function(const char* signature, Sass_Function_Fn function, void* cookie) { Sass_Function_Entry cb = (Sass_Function_Entry) calloc(1, sizeof(Sass_Function)); if (cb == 0) return 0; cb->signature = signature; cb->function = function; cb->cookie = cookie; return cb; } // Setters and getters for callbacks on function lists Sass_Function_Entry ADDCALL sass_function_get_list_entry(Sass_Function_List list, size_t pos) { return list[pos]; } void sass_function_set_list_entry(Sass_Function_List list, size_t pos, Sass_Function_Entry cb) { list[pos] = cb; } const char* ADDCALL sass_function_get_signature(Sass_Function_Entry cb) { return cb->signature; } Sass_Function_Fn ADDCALL sass_function_get_function(Sass_Function_Entry cb) { return cb->function; } void* ADDCALL sass_function_get_cookie(Sass_Function_Entry cb) { return cb->cookie; } Sass_Importer_Entry ADDCALL sass_make_importer(Sass_Importer_Fn importer, double priority, void* cookie) { Sass_Importer_Entry cb = (Sass_Importer_Entry) calloc(1, sizeof(Sass_Importer)); if (cb == 0) return 0; cb->importer = importer; cb->priority = priority; cb->cookie = cookie; return cb; } Sass_Importer_Fn ADDCALL sass_importer_get_function(Sass_Importer_Entry cb) { return cb->importer; } double ADDCALL sass_importer_get_priority (Sass_Importer_Entry cb) { return cb->priority; } void* ADDCALL sass_importer_get_cookie(Sass_Importer_Entry cb) { return cb->cookie; } // Just in case we have some stray import structs void ADDCALL sass_delete_importer (Sass_Importer_Entry cb) { free(cb); } // Creator for sass custom importer function list Sass_Importer_List ADDCALL sass_make_importer_list(size_t length) { return (Sass_Importer_List) calloc(length + 1, sizeof(Sass_Importer_Entry)); } Sass_Importer_Entry ADDCALL sass_importer_get_list_entry(Sass_Importer_List list, size_t idx) { return list[idx]; } void ADDCALL sass_importer_set_list_entry(Sass_Importer_List list, size_t idx, Sass_Importer_Entry cb) { list[idx] = cb; } // Creator for sass custom importer return argument list Sass_Import_List ADDCALL sass_make_import_list(size_t length) { return (Sass_Import**) calloc(length + 1, sizeof(Sass_Import*)); } // Creator for a single import entry returned by the custom importer inside the list // We take ownership of the memory for source and srcmap (freed when context is destroyd) Sass_Import_Entry ADDCALL sass_make_import(const char* imp_path, const char* abs_path, char* source, char* srcmap) { Sass_Import* v = (Sass_Import*) calloc(1, sizeof(Sass_Import)); if (v == 0) return 0; v->imp_path = imp_path ? sass_copy_c_string(imp_path) : 0; v->abs_path = abs_path ? sass_copy_c_string(abs_path) : 0; v->source = source; v->srcmap = srcmap; v->error = 0; v->line = -1; v->column = -1; return v; } // Older style, but somehow still valid - keep around or deprecate? Sass_Import_Entry ADDCALL sass_make_import_entry(const char* path, char* source, char* srcmap) { return sass_make_import(path, path, source, srcmap); } // Upgrade a normal import entry to throw an error (original path can be re-used by error reporting) Sass_Import_Entry ADDCALL sass_import_set_error(Sass_Import_Entry import, const char* error, size_t line, size_t col) { if (import == 0) return 0; if (import->error) free(import->error); import->error = error ? sass_copy_c_string(error) : 0; import->line = line ? line : -1; import->column = col ? col : -1; return import; } // Setters and getters for entries on the import list void ADDCALL sass_import_set_list_entry(Sass_Import_List list, size_t idx, Sass_Import_Entry entry) { list[idx] = entry; } Sass_Import_Entry ADDCALL sass_import_get_list_entry(Sass_Import_List list, size_t idx) { return list[idx]; } // Deallocator for the allocated memory void ADDCALL sass_delete_import_list(Sass_Import_List list) { Sass_Import_List it = list; if (list == 0) return; while(*list) { sass_delete_import(*list); ++list; } free(it); } // Just in case we have some stray import structs void ADDCALL sass_delete_import(Sass_Import_Entry import) { free(import->imp_path); free(import->abs_path); free(import->source); free(import->srcmap); free(import->error); free(import); } // Getter for import entry const char* ADDCALL sass_import_get_imp_path(Sass_Import_Entry entry) { return entry->imp_path; } const char* ADDCALL sass_import_get_abs_path(Sass_Import_Entry entry) { return entry->abs_path; } const char* ADDCALL sass_import_get_source(Sass_Import_Entry entry) { return entry->source; } const char* ADDCALL sass_import_get_srcmap(Sass_Import_Entry entry) { return entry->srcmap; } // Getter for import error entry size_t ADDCALL sass_import_get_error_line(Sass_Import_Entry entry) { return entry->line; } size_t ADDCALL sass_import_get_error_column(Sass_Import_Entry entry) { return entry->column; } const char* ADDCALL sass_import_get_error_message(Sass_Import_Entry entry) { return entry->error; } // Explicit functions to take ownership of the memory // Resets our own property since we do not know if it is still alive char* ADDCALL sass_import_take_source(Sass_Import_Entry entry) { char* ptr = entry->source; entry->source = 0; return ptr; } char* ADDCALL sass_import_take_srcmap(Sass_Import_Entry entry) { char* ptr = entry->srcmap; entry->srcmap = 0; return ptr; } }
madslonnberg/blog
node_modules/node-sass/src/libsass/src/sass_functions.cpp
C++
mit
5,952
CKEDITOR.lang.zh={editor:"RTF 編輯器",editorPanel:"RTF 編輯器面板",common:{editorHelp:"按下 ALT 0 取得說明。",browseServer:"瀏覽伺服器",url:"URL",protocol:"通訊協定",upload:"上傳",uploadSubmit:"傳送至伺服器",image:"圖片",flash:"Flash",form:"表格",checkbox:"核取方塊",radio:"選項按鈕",textField:"文字欄位",textarea:"文字區域",hiddenField:"隱藏欄位",button:"按鈕",select:"選取欄位",imageButton:"影像按鈕",notSet:"<未設定>",id:"ID",name:"名稱",langDir:"語言方向",langDirLtr:"從左至右 (LTR)",langDirRtl:"從右至左 (RTL)",langCode:"語言代碼",longDescr:"完整描述 URL",cssClass:"樣式表類別",advisoryTitle:"標題",cssStyle:"樣式",ok:"確定",cancel:"取消",close:"關閉",preview:"預覽",resize:"調整大小",generalTab:"一般",advancedTab:"進階",validateNumberFailed:"此值不是數值。",confirmNewPage:"現存的修改尚未儲存,要開新檔案?",confirmCancel:"部份選項尚未儲存,要關閉對話框?",options:"選項",target:"目標",targetNew:"開新視窗 (_blank)",targetTop:"最上層視窗 (_top)",targetSelf:"相同視窗 (_self)",targetParent:"父視窗 (_parent)",langDirLTR:"由左至右 (LTR)",langDirRTL:"由右至左 (RTL)",styles:"樣式",cssClasses:"樣式表類別",width:"寬度",height:"高度",align:"對齊方式",alignLeft:"靠左對齊",alignRight:"靠右對齊",alignCenter:"置中對齊",alignTop:"頂端",alignMiddle:"中間對齊",alignBottom:"底端",invalidValue:"無效值。",invalidHeight:"高度必須為數字。",invalidWidth:"寬度必須為數字。",invalidCssLength:"「%1」的值應為正數,並可包含有效的 CSS 單位 (px, %, in, cm, mm, em, ex, pt, 或 pc)。",invalidHtmlLength:"「%1」的值應為正數,並可包含有效的 HTML 單位 (px 或 %)。",invalidInlineStyle:"行內樣式的值應包含一個以上的變數值組,其格式如「名稱:值」,並以分號區隔之。",cssLengthTooltip:"請輸入數值,單位是像素或有效的 CSS 單位 (px, %, in, cm, mm, em, ex, pt, 或 pc)。",unavailable:'%1<span class="cke_accessibility">,無法使用</span>'},about:{copy:"Copyright &copy; $1. All rights reserved.",dlgTitle:"關於 CKEditor",help:"檢閱 $1 尋求幫助。",moreInfo:"關於授權資訊,請參閱我們的網站:",title:"關於 CKEditor",userGuide:"CKEditor 使用者手冊"},basicstyles:{bold:"粗體",italic:"斜體",strike:"刪除線",subscript:"下標",superscript:"上標",underline:"底線"},bidi:{ltr:"文字方向從左至右",rtl:"文字方向從右至左"},blockquote:{toolbar:"引用段落"},clipboard:{copy:"複製",copyError:"瀏覽器的安全性設定不允許編輯器自動執行複製動作。請使用鍵盤快捷鍵 (Ctrl/Cmd+C) 複製。",cut:"剪下",cutError:"瀏覽器的安全性設定不允許編輯器自動執行剪下動作。請使用鏐盤快捷鍵 (Ctrl/Cmd+X) 剪下。",paste:"貼上",pasteArea:"貼上區",pasteMsg:"請使用鍵盤快捷鍵 (<strong>Ctrl/Cmd+V</strong>) 貼到下方區域中並按下「確定」。",securityMsg:"因為瀏覽器的安全性設定,本編輯器無法直接存取您的剪貼簿資料,請您自行在本視窗進行貼上動作。",title:"貼上"},button:{selectedLabel:"%1 (Selected)"},colorbutton:{auto:"自動",bgColorTitle:"背景顏色",colors:{"000":"黑色","800000":"栗色","8B4513":"鞍褐色","2F4F4F":"暗瓦灰色","008080":"水壓色","000080":"丈青澀","4B0082":"靛青","696969":"深灰色",B22222:"磚紅色",A52A2A:"褐色",DAA520:"金黃色","006400":"深綠色","40E0D0":"青綠色","0000CD":"藍色","800080":"紫色","808080":"灰色",F00:"紅色",FF8C00:"深橘色",FFD700:"金色","008000":"綠色","0FF":"藍綠色","00F":"藍色",EE82EE:"紫色",A9A9A9:"暗灰色",FFA07A:"亮鮭紅",FFA500:"橘色",FFFF00:"黃色","00FF00":"鮮綠色",AFEEEE:"綠松色",ADD8E6:"淺藍色",DDA0DD:"枚紅色",D3D3D3:"淺灰色",FFF0F5:"淺紫色",FAEBD7:"骨董白",FFFFE0:"淺黃色",F0FFF0:"蜜瓜綠",F0FFFF:"天藍色",F0F8FF:"愛麗斯蘭",E6E6FA:"淺紫色",FFF:"白色"},more:"更多顏色",panelTitle:"顏色",textColorTitle:"文字顏色"},colordialog:{clear:"清除",highlight:"高亮",options:"色彩選項",selected:"選取的色彩",title:"選取色彩"},templates:{button:"範本",emptyListMsg:"(尚未定義任何範本)",insertOption:"替代實際內容",options:"範本選項",selectPromptMsg:"請選擇要在編輯器中開啟的範本。",title:"內容範本"},contextmenu:{options:"內容功能表選項"},div:{IdInputLabel:"ID",advisoryTitleInputLabel:"標題",cssClassInputLabel:"樣式表類別",edit:"編輯 Div",inlineStyleInputLabel:"行內樣式",langDirLTRLabel:"由左至右 (LTR)",langDirLabel:"語言方向",langDirRTLLabel:"由右至左 (RTL)",languageCodeInputLabel:"語言碼",remove:"移除 Div",styleSelectLabel:"樣式",title:"建立 Div 容器",toolbar:"建立 Div 容器"},toolbar:{toolbarCollapse:"摺疊工具列",toolbarExpand:"展開工具列",toolbarGroups:{document:"文件",clipboard:"剪貼簿/復原",editing:"編輯選項",forms:"格式",basicstyles:"基本樣式",paragraph:"段落",links:"連結",insert:"插入",styles:"樣式",colors:"顏色",tools:"工具"},toolbars:"編輯器工具列"},elementspath:{eleLabel:"元件路徑",eleTitle:"%1 個元件"},find:{find:"尋找",findOptions:"尋找選項",findWhat:"尋找目標:",matchCase:"大小寫須相符",matchCyclic:"循環搜尋",matchWord:"全字拼寫須相符",notFoundMsg:"找不到指定的文字。",replace:"取代",replaceAll:"全部取代",replaceSuccessMsg:"已取代 %1 個指定項目。",replaceWith:"取代成:",title:"尋找及取代"},fakeobjects:{anchor:"錨點",flash:"Flash 動畫",hiddenfield:"隱藏欄位",iframe:"IFrame",unknown:"無法辨識的物件"},flash:{access:"腳本存取",accessAlways:"永遠",accessNever:"從不",accessSameDomain:"相同網域",alignAbsBottom:"絕對下方",alignAbsMiddle:"絕對置中",alignBaseline:"基準線",alignTextTop:"上層文字",bgcolor:"背景顏色",chkFull:"允許全螢幕",chkLoop:"重複播放",chkMenu:"啟用 Flash 選單",chkPlay:"自動播放",flashvars:"Flash 變數",hSpace:"HSpace",properties:"Flash 屬性",propertiesTab:"屬性",quality:"品質",qualityAutoHigh:"自動高",qualityAutoLow:"自動低",qualityBest:"最佳",qualityHigh:"高",qualityLow:"低",qualityMedium:"中",scale:"縮放比例",scaleAll:"全部顯示",scaleFit:"最適化",scaleNoBorder:"無框線",title:"Flash 屬性",vSpace:"VSpace",validateHSpace:"HSpace 必須為數字。",validateSrc:"URL 不可為空白。",validateVSpace:"VSpace 必須為數字。",windowMode:"視窗模式",windowModeOpaque:"不透明",windowModeTransparent:"透明",windowModeWindow:"視窗"},font:{fontSize:{label:"大小",voiceLabel:"字型大小",panelTitle:"字型大小"},label:"字型",panelTitle:"字型名稱",voiceLabel:"字型"},forms:{button:{title:"按鈕內容",text:"顯示文字 (值)",type:"類型",typeBtn:"按鈕",typeSbm:"送出",typeRst:"重設"},checkboxAndRadio:{checkboxTitle:"核取方塊內容",radioTitle:"選項按鈕內容",value:"數值",selected:"已選"},form:{title:"表單內容",menu:"表單內容",action:"動作",method:"方式",encoding:"編碼"},hidden:{title:"隱藏欄位內容",name:"名稱",value:"數值"},select:{title:"選取欄位內容",selectInfo:"選擇資訊",opAvail:"可用選項",value:"數值",size:"大小",lines:"行數",chkMulti:"允許多選",opText:"文字",opValue:"數值",btnAdd:"新增",btnModify:"修改",btnUp:"向上",btnDown:"向下",btnSetValue:"設為已選",btnDelete:"刪除"},textarea:{title:"文字區域內容",cols:"列",rows:"行"},textfield:{title:"文字欄位內容",name:"名字",value:"數值",charWidth:"字元寬度",maxChars:"最大字元數",type:"類型",typeText:"文字",typePass:"密碼",typeEmail:"電子郵件",typeSearch:"搜尋",typeTel:"電話號碼",typeUrl:"URL"}},format:{label:"格式",panelTitle:"段落格式",tag_address:"地址",tag_div:"標準 (DIV)",tag_h1:"標題 1",tag_h2:"標題 2",tag_h3:"標題 3",tag_h4:"標題 4",tag_h5:"標題 5",tag_h6:"標題 6",tag_p:"標準",tag_pre:"格式設定"},horizontalrule:{toolbar:"插入水平線"},iframe:{border:"顯示框架框線",noUrl:"請輸入 iframe URL",scrolling:"啟用捲軸列",title:"IFrame 屬性",toolbar:"IFrame"},image:{alertUrl:"請輸入圖片 URL",alt:"替代文字",border:"框線",btnUpload:"傳送到伺服器",button2Img:"請問您確定要將「圖片按鈕」轉換成「圖片」嗎?",hSpace:"HSpace",img2Button:"請問您確定要將「圖片」轉換成「圖片按鈕」嗎?",infoTab:"影像資訊",linkTab:"連結",lockRatio:"固定比例",menu:"影像屬性",resetSize:"重設大小",title:"影像屬性",titleButton:"影像按鈕屬性",upload:"上傳",urlMissing:"遺失圖片來源之 URL ",vSpace:"VSpace",validateBorder:"框線必須是整數。",validateHSpace:"HSpace 必須是整數。",validateVSpace:"VSpace 必須是整數。"},indent:{indent:"增加縮排",outdent:"減少縮排"},smiley:{options:"表情符號選項",title:"插入表情符號",toolbar:"表情符號"},justify:{block:"左右對齊",center:"置中",left:"靠左對齊",right:"靠右對齊"},language:{button:"設定語言",remove:"移除語言"},link:{acccessKey:"便捷鍵",advanced:"進階",advisoryContentType:"建議內容類型",advisoryTitle:"標題",anchor:{toolbar:"錨點",menu:"編輯錨點",title:"錨點內容",name:"錨點名稱",errorName:"請輸入錨點名稱",remove:"移除錨點"},anchorId:"依元件編號",anchorName:"依錨點名稱",charset:"連結資源的字元集",cssClasses:"樣式表類別",emailAddress:"電子郵件地址",emailBody:"郵件本文",emailSubject:"郵件主旨",id:"ID",info:"連結資訊",langCode:"語言碼",langDir:"語言方向",langDirLTR:"由左至右 (LTR)",langDirRTL:"由右至左 (RTL)",menu:"編輯連結",name:"名稱",noAnchors:"(本文件中無可用之錨點)",noEmail:"請輸入電子郵件",noUrl:"請輸入連結 URL",other:"<其他>",popupDependent:"獨立 (Netscape)",popupFeatures:"快顯視窗功能",popupFullScreen:"全螢幕 (IE)",popupLeft:"左側位置",popupLocationBar:"位置列",popupMenuBar:"功能表列",popupResizable:"可調大小",popupScrollBars:"捲軸",popupStatusBar:"狀態列",popupToolbar:"工具列",popupTop:"頂端位置",rel:"關係",selectAnchor:"選取一個錨點",styles:"樣式",tabIndex:"定位順序",target:"目標",targetFrame:"<框架>",targetFrameName:"目標框架名稱",targetPopup:"<快顯視窗>",targetPopupName:"快顯視窗名稱",title:"連結",toAnchor:"文字中的錨點連結",toEmail:"電子郵件",toUrl:"網址",toolbar:"連結",type:"連結類型",unlink:"取消連結",upload:"上傳"},list:{bulletedlist:"插入/移除項目符號清單",numberedlist:"插入/移除編號清單清單"},liststyle:{armenian:"亞美尼亞數字",bulletedTitle:"項目符號清單屬性",circle:"圓圈",decimal:"小數點 (1, 2, 3, etc.)",decimalLeadingZero:"前綴 0 十位數字 (01, 02, 03, 等)",disc:"圓點",georgian:"喬治王時代數字 (an, ban, gan, 等)",lowerAlpha:"小寫字母 (a, b, c, d, e 等)",lowerGreek:"小寫希臘字母 (alpha, beta, gamma, 等)",lowerRoman:"小寫羅馬數字 (i, ii, iii, iv, v 等)",none:"無",notset:"<未設定>",numberedTitle:"編號清單屬性",square:"方塊",start:"開始",type:"類型",upperAlpha:"大寫字母 (A, B, C, D, E 等)",upperRoman:"大寫羅馬數字 (I, II, III, IV, V 等)",validateStartNumber:"清單起始號碼須為一完整數字。"},magicline:{title:"在此插入段落"},maximize:{maximize:"最大化",minimize:"最小化"},newpage:{toolbar:"新增網頁"},pagebreak:{alt:"換頁",toolbar:"插入換頁符號以便列印"},pastetext:{button:"貼成純文字",title:"貼成純文字"},pastefromword:{confirmCleanup:"您想貼上的文字似乎是自 Word 複製而來,請問您是否要先清除 Word 的格式後再行貼上?",error:"由於發生內部錯誤,無法清除清除 Word 的格式。",title:"自 Word 貼上",toolbar:"自 Word 貼上"},preview:{preview:"預覽"},print:{toolbar:"列印"},removeformat:{toolbar:"移除格式"},save:{toolbar:"儲存"},selectall:{toolbar:"全選"},showblocks:{toolbar:"顯示區塊"},sourcearea:{toolbar:"原始碼"},specialchar:{options:"特殊字元選項",title:"選取特殊字元",toolbar:"插入特殊字元"},scayt:{btn_about:"關於即時拼寫檢查",btn_dictionaries:"字典",btn_disable:"關閉即時拼寫檢查",btn_enable:"啟用即時拼寫檢查",btn_langs:"語言",btn_options:"選項",text_title:""},stylescombo:{label:"樣式",panelTitle:"Formatting Styles",panelTitle1:"區塊樣式",panelTitle2:"內嵌樣式",panelTitle3:"物件樣式"},table:{border:"框線大小",caption:"標題",cell:{menu:"儲存格",insertBefore:"前方插入儲存格",insertAfter:"後方插入儲存格",deleteCell:"刪除儲存格",merge:"合併儲存格",mergeRight:"向右合併",mergeDown:"向下合併",splitHorizontal:"水平分割儲存格",splitVertical:"垂直分割儲存格",title:"儲存格屬性",cellType:"儲存格類型",rowSpan:"Rows Span",colSpan:"Columns Span",wordWrap:"自動斷行",hAlign:"水平對齊",vAlign:"垂直對齊",alignBaseline:"基準線",bgColor:"背景顏色",borderColor:"框線顏色",data:"資料",header:"Header",yes:"是",no:"否",invalidWidth:"儲存格寬度必須為數字。",invalidHeight:"儲存格高度必須為數字。",invalidRowSpan:"Rows span must be a whole number.",invalidColSpan:"Columns span must be a whole number.",chooseColor:"選擇"},cellPad:"Cell padding",cellSpace:"Cell spacing",column:{menu:"行",insertBefore:"Insert Column Before",insertAfter:"Insert Column After",deleteColumn:"Delete Columns"},columns:"行",deleteTable:"Delete Table",headers:"Headers",headersBoth:"Both",headersColumn:"First column",headersNone:"無",headersRow:"First Row",invalidBorder:"框線大小必須是整數。",invalidCellPadding:"Cell padding must be a positive number.",invalidCellSpacing:"Cell spacing must be a positive number.",invalidCols:"行數須為大於 0 的正整數。",invalidHeight:"表格高度必須為數字。",invalidRows:"Number of rows must be a number greater than 0.",invalidWidth:"表格寬度必須為數字。",menu:"表格屬性",row:{menu:"列",insertBefore:"Insert Row Before",insertAfter:"Insert Row After",deleteRow:"Delete Rows"},rows:"列",summary:"Summary",title:"表格屬性",toolbar:"表格",widthPc:"百分比",widthPx:"像素",widthUnit:"寬度單位"},undo:{redo:"取消復原",undo:"復原"},wsc:{btnIgnore:"忽略",btnIgnoreAll:"全部忽略",btnReplace:"取代",btnReplaceAll:"全部取代",btnUndo:"復原",changeTo:"更改為",errorLoading:"無法聯系侍服器: %s.",ieSpellDownload:"尚未安裝拼字檢查元件。您是否想要現在下載?",manyChanges:"拼字檢查完成:更改了 %1 個單字",noChanges:"拼字檢查完成:未更改任何單字",noMispell:"拼字檢查完成:未發現拼字錯誤",noSuggestions:"- 無建議值 -",notAvailable:"抱歉,服務目前暫不可用",notInDic:"不在字典中",oneChange:"拼字檢查完成:更改了 1 個單字",progress:"進行拼字檢查中…",title:"拼字檢查",toolbar:"拼字檢查"}};
cdnjs/cdnjs
ajax/libs/ckeditor/4.4.1/lang/zh.min.js
JavaScript
mit
15,188
CKEDITOR.lang.et={editor:"Rikkalik tekstiredaktor",editorPanel:"Rikkaliku tekstiredaktori paneel",common:{editorHelp:"Abi saamiseks vajuta ALT 0",browseServer:"Serveri sirvimine",url:"URL",protocol:"Protokoll",upload:"Laadi üles",uploadSubmit:"Saada serverisse",image:"Pilt",flash:"Flash",form:"Vorm",checkbox:"Märkeruut",radio:"Raadionupp",textField:"Tekstilahter",textarea:"Tekstiala",hiddenField:"Varjatud lahter",button:"Nupp",select:"Valiklahter",imageButton:"Piltnupp",notSet:"<määramata>",id:"ID",name:"Nimi",langDir:"Keele suund",langDirLtr:"Vasakult paremale (LTR)",langDirRtl:"Paremalt vasakule (RTL)",langCode:"Keele kood",longDescr:"Pikk kirjeldus URL",cssClass:"Stiilistiku klassid",advisoryTitle:"Soovituslik pealkiri",cssStyle:"Laad",ok:"Olgu",cancel:"Loobu",close:"Sulge",preview:"Eelvaade",resize:"Suuruse muutmiseks lohista",generalTab:"Üldine",advancedTab:"Täpsemalt",validateNumberFailed:"See väärtus pole number.",confirmNewPage:"Kõik salvestamata muudatused lähevad kaotsi. Kas oled kindel, et tahad laadida uue lehe?",confirmCancel:"Mõned valikud on muudetud. Kas oled kindel, et tahad dialoogi sulgeda?",options:"Valikud",target:"Sihtkoht",targetNew:"Uus aken (_blank)",targetTop:"Kõige ülemine aken (_top)",targetSelf:"Sama aken (_self)",targetParent:"Vanemaken (_parent)",langDirLTR:"Vasakult paremale (LTR)",langDirRTL:"Paremalt vasakule (RTL)",styles:"Stiili",cssClasses:"Stiililehe klassid",width:"Laius",height:"Kõrgus",align:"Joondus",alignLeft:"Vasak",alignRight:"Paremale",alignCenter:"Kesk",alignTop:"Üles",alignMiddle:"Keskele",alignBottom:"Alla",invalidValue:"Vigane väärtus.",invalidHeight:"Kõrgus peab olema number.",invalidWidth:"Laius peab olema number.",invalidCssLength:'"%1" välja jaoks määratud väärtus peab olema positiivne täisarv CSS ühikuga (px, %, in, cm, mm, em, ex, pt või pc) või ilma.',invalidHtmlLength:'"%1" välja jaoks määratud väärtus peab olema positiivne täisarv HTML ühikuga (px või %) või ilma.',invalidInlineStyle:'Reasisese stiili määrangud peavad koosnema paarisväärtustest (tuples), mis on semikoolonitega eraldatult järgnevas vormingus: "nimi : väärtus".',cssLengthTooltip:"Sisesta väärtus pikslites või number koos sobiva CSS-i ühikuga (px, %, in, cm, mm, em, ex, pt või pc).",unavailable:'%1<span class="cke_accessibility">, pole saadaval</span>'},about:{copy:"Copyright &copy; $1. Kõik õigused kaitstud.",dlgTitle:"CKEditorist",help:"Abi jaoks vaata $1.",moreInfo:"Litsentsi andmed leiab meie veebilehelt:",title:"CKEditorist",userGuide:"CKEditori kasutusjuhendit"},basicstyles:{bold:"Paks",italic:"Kursiiv",strike:"Läbijoonitud",subscript:"Allindeks",superscript:"Ülaindeks",underline:"Allajoonitud"},bidi:{ltr:"Teksti suund vasakult paremale",rtl:"Teksti suund paremalt vasakule"},blockquote:{toolbar:"Blokktsitaat"},clipboard:{copy:"Kopeeri",copyError:"Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt kopeerida. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+C).",cut:"Lõika",cutError:"Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt lõigata. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+X).",paste:"Aseta",pasteArea:"Asetamise ala",pasteMsg:"Palun aseta tekst järgnevasse kasti kasutades klaviatuuri klahvikombinatsiooni (<STRONG>Ctrl/Cmd+V</STRONG>) ja vajuta seejärel <STRONG>OK</STRONG>.",securityMsg:"Sinu veebisirvija turvaseadete tõttu ei oma redaktor otsest ligipääsu lõikelaua andmetele. Sa pead asetama need uuesti siia aknasse.",title:"Asetamine"},button:{selectedLabel:"%1 (Selected)"},colorbutton:{auto:"Automaatne",bgColorTitle:"Tausta värv",colors:{"000":"Must","800000":"Kastanpruun","8B4513":"Sadulapruun","2F4F4F":"Tume paehall","008080":"Sinakasroheline","000080":"Meresinine","4B0082":"Indigosinine","696969":"Tumehall",B22222:"Šamottkivi",A52A2A:"Pruun",DAA520:"Kuldkollane","006400":"Tumeroheline","40E0D0":"Türkiissinine","0000CD":"Keskmine sinine","800080":"Lilla","808080":"Hall",F00:"Punanae",FF8C00:"Tumeoranž",FFD700:"Kuldne","008000":"Roheline","0FF":"Tsüaniidsinine","00F":"Sinine",EE82EE:"Violetne",A9A9A9:"Tuhm hall",FFA07A:"Hele lõhe",FFA500:"Oranž",FFFF00:"Kollane","00FF00":"Lubja hall",AFEEEE:"Kahvatu türkiis",ADD8E6:"Helesinine",DDA0DD:"Ploomililla",D3D3D3:"Helehall",FFF0F5:"Lavendlipunane",FAEBD7:"Antiikvalge",FFFFE0:"Helekollane",F0FFF0:"Meloniroheline",F0FFFF:"Taevasinine",F0F8FF:"Beebisinine",E6E6FA:"Lavendel",FFF:"Valge"},more:"Rohkem värve...",panelTitle:"Värvid",textColorTitle:"Teksti värv"},colordialog:{clear:"Eemalda",highlight:"Näidis",options:"Värvi valikud",selected:"Valitud värv",title:"Värvi valimine"},templates:{button:"Mall",emptyListMsg:"(Ühtegi malli ei ole defineeritud)",insertOption:"Praegune sisu asendatakse",options:"Malli valikud",selectPromptMsg:"Palun vali mall, mis avada redaktoris<br />(praegune sisu läheb kaotsi):",title:"Sisumallid"},contextmenu:{options:"Kontekstimenüü valikud"},div:{IdInputLabel:"ID",advisoryTitleInputLabel:"Soovitatav pealkiri",cssClassInputLabel:"Stiililehe klassid",edit:"Muuda Div",inlineStyleInputLabel:"Reasisene stiil",langDirLTRLabel:"Vasakult paremale (LTR)",langDirLabel:"Keele suund",langDirRTLLabel:"Paremalt vasakule (RTL)",languageCodeInputLabel:" Keelekood",remove:"Eemalda Div",styleSelectLabel:"Stiil",title:"Div-konteineri loomine",toolbar:"Div-konteineri loomine"},toolbar:{toolbarCollapse:"Tööriistariba peitmine",toolbarExpand:"Tööriistariba näitamine",toolbarGroups:{document:"Dokument",clipboard:"Lõikelaud/tagasivõtmine",editing:"Muutmine",forms:"Vormid",basicstyles:"Põhistiilid",paragraph:"Lõik",links:"Lingid",insert:"Sisesta",styles:"Stiilid",colors:"Värvid",tools:"Tööriistad"},toolbars:"Redaktori tööriistaribad"},elementspath:{eleLabel:"Elementide asukoht",eleTitle:"%1 element"},find:{find:"Otsi",findOptions:"Otsingu valikud",findWhat:"Otsitav:",matchCase:"Suur- ja väiketähtede eristamine",matchCyclic:"Jätkatakse algusest",matchWord:"Ainult terved sõnad",notFoundMsg:"Otsitud teksti ei leitud.",replace:"Asenda",replaceAll:"Asenda kõik",replaceSuccessMsg:"%1 vastet asendati.",replaceWith:"Asendus:",title:"Otsimine ja asendamine"},fakeobjects:{anchor:"Ankur",flash:"Flashi animatsioon",hiddenfield:"Varjatud väli",iframe:"IFrame",unknown:"Tundmatu objekt"},flash:{access:"Skriptide ligipääs",accessAlways:"Kõigile",accessNever:"Mitte ühelegi",accessSameDomain:"Samalt domeenilt",alignAbsBottom:"Abs alla",alignAbsMiddle:"Abs keskele",alignBaseline:"Baasjoonele",alignTextTop:"Tekstist üles",bgcolor:"Tausta värv",chkFull:"Täisekraan lubatud",chkLoop:"Korduv",chkMenu:"Flashi menüü lubatud",chkPlay:"Automaatne start ",flashvars:"Flashi muutujad",hSpace:"H. vaheruum",properties:"Flashi omadused",propertiesTab:"Omadused",quality:"Kvaliteet",qualityAutoHigh:"Automaatne kõrge",qualityAutoLow:"Automaatne madal",qualityBest:"Parim",qualityHigh:"Kõrge",qualityLow:"Madal",qualityMedium:"Keskmine",scale:"Mastaap",scaleAll:"Näidatakse kõike",scaleFit:"Täpne sobivus",scaleNoBorder:"Äärist ei ole",title:"Flashi omadused",vSpace:"V. vaheruum",validateHSpace:"H. vaheruum peab olema number.",validateSrc:"Palun kirjuta lingi URL",validateVSpace:"V. vaheruum peab olema number.",windowMode:"Akna režiim",windowModeOpaque:"Läbipaistmatu",windowModeTransparent:"Läbipaistev",windowModeWindow:"Aken"},font:{fontSize:{label:"Suurus",voiceLabel:"Kirja suurus",panelTitle:"Suurus"},label:"Kiri",panelTitle:"Kiri",voiceLabel:"Kiri"},forms:{button:{title:"Nupu omadused",text:"Tekst (väärtus)",type:"Liik",typeBtn:"Nupp",typeSbm:"Saada",typeRst:"Lähtesta"},checkboxAndRadio:{checkboxTitle:"Märkeruudu omadused",radioTitle:"Raadionupu omadused",value:"Väärtus",selected:"Märgitud"},form:{title:"Vormi omadused",menu:"Vormi omadused",action:"Toiming",method:"Meetod",encoding:"Kodeering"},hidden:{title:"Varjatud lahtri omadused",name:"Nimi",value:"Väärtus"},select:{title:"Valiklahtri omadused",selectInfo:"Info",opAvail:"Võimalikud valikud:",value:"Väärtus",size:"Suurus",lines:"ridu",chkMulti:"Võimalik mitu valikut",opText:"Tekst",opValue:"Väärtus",btnAdd:"Lisa",btnModify:"Muuda",btnUp:"Üles",btnDown:"Alla",btnSetValue:"Määra vaikimisi",btnDelete:"Kustuta"},textarea:{title:"Tekstiala omadused",cols:"Veerge",rows:"Ridu"},textfield:{title:"Tekstilahtri omadused",name:"Nimi",value:"Väärtus",charWidth:"Laius (tähemärkides)",maxChars:"Maksimaalselt tähemärke",type:"Liik",typeText:"Tekst",typePass:"Parool",typeEmail:"E-mail",typeSearch:"Otsi",typeTel:"Telefon",typeUrl:"URL"}},format:{label:"Vorming",panelTitle:"Vorming",tag_address:"Aadress",tag_div:"Tavaline (DIV)",tag_h1:"Pealkiri 1",tag_h2:"Pealkiri 2",tag_h3:"Pealkiri 3",tag_h4:"Pealkiri 4",tag_h5:"Pealkiri 5",tag_h6:"Pealkiri 6",tag_p:"Tavaline",tag_pre:"Vormindatud"},horizontalrule:{toolbar:"Horisontaaljoone sisestamine"},iframe:{border:"Raami äärise näitamine",noUrl:"Vali iframe URLi liik",scrolling:"Kerimisribade lubamine",title:"IFrame omadused",toolbar:"IFrame"},image:{alertUrl:"Palun kirjuta pildi URL",alt:"Alternatiivne tekst",border:"Joon",btnUpload:"Saada serverisse",button2Img:"Kas tahad teisendada valitud pildiga nupu tavaliseks pildiks?",hSpace:"H. vaheruum",img2Button:"Kas tahad teisendada valitud tavalise pildi pildiga nupuks?",infoTab:"Pildi info",linkTab:"Link",lockRatio:"Lukusta kuvasuhe",menu:"Pildi omadused",resetSize:"Lähtesta suurus",title:"Pildi omadused",titleButton:"Piltnupu omadused",upload:"Lae üles",urlMissing:"Pildi lähte-URL on puudu.",vSpace:"V. vaheruum",validateBorder:"Äärise laius peab olema täisarv.",validateHSpace:"Horisontaalne vaheruum peab olema täisarv.",validateVSpace:"Vertikaalne vaheruum peab olema täisarv."},indent:{indent:"Taande suurendamine",outdent:"Taande vähendamine"},smiley:{options:"Emotikonide valikud",title:"Sisesta emotikon",toolbar:"Emotikon"},justify:{block:"Rööpjoondus",center:"Keskjoondus",left:"Vasakjoondus",right:"Paremjoondus"},language:{button:"Set language",remove:"Remove language"},link:{acccessKey:"Juurdepääsu võti",advanced:"Täpsemalt",advisoryContentType:"Juhendava sisu tüüp",advisoryTitle:"Juhendav tiitel",anchor:{toolbar:"Ankru sisestamine/muutmine",menu:"Ankru omadused",title:"Ankru omadused",name:"Ankru nimi",errorName:"Palun sisesta ankru nimi",remove:"Eemalda ankur"},anchorId:"Elemendi id järgi",anchorName:"Ankru nime järgi",charset:"Lingitud ressursi märgistik",cssClasses:"Stiilistiku klassid",emailAddress:"E-posti aadress",emailBody:"Sõnumi tekst",emailSubject:"Sõnumi teema",id:"ID",info:"Lingi info",langCode:"Keele suund",langDir:"Keele suund",langDirLTR:"Vasakult paremale (LTR)",langDirRTL:"Paremalt vasakule (RTL)",menu:"Muuda linki",name:"Nimi",noAnchors:"(Selles dokumendis pole ankruid)",noEmail:"Palun kirjuta e-posti aadress",noUrl:"Palun kirjuta lingi URL",other:"<muu>",popupDependent:"Sõltuv (Netscape)",popupFeatures:"Hüpikakna omadused",popupFullScreen:"Täisekraan (IE)",popupLeft:"Vasak asukoht",popupLocationBar:"Aadressiriba",popupMenuBar:"Menüüriba",popupResizable:"Suurust saab muuta",popupScrollBars:"Kerimisribad",popupStatusBar:"Olekuriba",popupToolbar:"Tööriistariba",popupTop:"Ülemine asukoht",rel:"Suhe",selectAnchor:"Vali ankur",styles:"Laad",tabIndex:"Tab indeks",target:"Sihtkoht",targetFrame:"<raam>",targetFrameName:"Sihtmärk raami nimi",targetPopup:"<hüpikaken>",targetPopupName:"Hüpikakna nimi",title:"Link",toAnchor:"Ankur sellel lehel",toEmail:"E-post",toUrl:"URL",toolbar:"Lingi lisamine/muutmine",type:"Lingi liik",unlink:"Lingi eemaldamine",upload:"Lae üles"},list:{bulletedlist:"Punktloend",numberedlist:"Numberloend"},liststyle:{armenian:"Armeenia numbrid",bulletedTitle:"Punktloendi omadused",circle:"Ring",decimal:"Numbrid (1, 2, 3, jne)",decimalLeadingZero:"Numbrid algusnulliga (01, 02, 03, jne)",disc:"Täpp",georgian:"Gruusia numbrid (an, ban, gan, jne)",lowerAlpha:"Väiketähed (a, b, c, d, e, jne)",lowerGreek:"Kreeka väiketähed (alpha, beta, gamma, jne)",lowerRoman:"Väiksed rooma numbrid (i, ii, iii, iv, v, jne)",none:"Puudub",notset:"<pole määratud>",numberedTitle:"Numberloendi omadused",square:"Ruut",start:"Algus",type:"Liik",upperAlpha:"Suurtähed (A, B, C, D, E, jne)",upperRoman:"Suured rooma numbrid (I, II, III, IV, V, jne)",validateStartNumber:"Loendi algusnumber peab olema täisarv."},magicline:{title:"Sisesta siia lõigu tekst"},maximize:{maximize:"Maksimeerimine",minimize:"Minimeerimine"},newpage:{toolbar:"Uus leht"},pagebreak:{alt:"Lehevahetuskoht",toolbar:"Lehevahetuskoha sisestamine"},pastetext:{button:"Asetamine tavalise tekstina",title:"Asetamine tavalise tekstina"},pastefromword:{confirmCleanup:"Tekst, mida tahad asetada näib pärinevat Wordist. Kas tahad selle enne asetamist puhastada?",error:"Asetatud andmete puhastamine ei olnud sisemise vea tõttu võimalik",title:"Asetamine Wordist",toolbar:"Asetamine Wordist"},preview:{preview:"Eelvaade"},print:{toolbar:"Printimine"},removeformat:{toolbar:"Vormingu eemaldamine"},save:{toolbar:"Salvestamine"},selectall:{toolbar:"Kõige valimine"},showblocks:{toolbar:"Blokkide näitamine"},sourcearea:{toolbar:"Lähtekood"},specialchar:{options:"Erimärkide valikud",title:"Erimärgi valimine",toolbar:"Erimärgi sisestamine"},scayt:{btn_about:"SCAYT-ist lähemalt",btn_dictionaries:"Sõnaraamatud",btn_disable:"SCAYT keelatud",btn_enable:"SCAYT lubatud",btn_langs:"Keeled",btn_options:"Valikud",text_title:""},stylescombo:{label:"Stiil",panelTitle:"Vormindusstiilid",panelTitle1:"Blokkstiilid",panelTitle2:"Reasisesed stiilid",panelTitle3:"Objektistiilid"},table:{border:"Joone suurus",caption:"Tabeli tiitel",cell:{menu:"Lahter",insertBefore:"Sisesta lahter enne",insertAfter:"Sisesta lahter peale",deleteCell:"Eemalda lahtrid",merge:"Ühenda lahtrid",mergeRight:"Ühenda paremale",mergeDown:"Ühenda alla",splitHorizontal:"Poolita lahter horisontaalselt",splitVertical:"Poolita lahter vertikaalselt",title:"Lahtri omadused",cellType:"Lahtri liik",rowSpan:"Ridade vahe",colSpan:"Tulpade vahe",wordWrap:"Sõnade murdmine",hAlign:"Horisontaalne joondus",vAlign:"Vertikaalne joondus",alignBaseline:"Baasjoon",bgColor:"Tausta värv",borderColor:"Äärise värv",data:"Andmed",header:"Päis",yes:"Jah",no:"Ei",invalidWidth:"Lahtri laius peab olema number.",invalidHeight:"Lahtri kõrgus peab olema number.",invalidRowSpan:"Ridade vahe peab olema täisarv.",invalidColSpan:"Tulpade vahe peab olema täisarv.",chooseColor:"Vali"},cellPad:"Lahtri täidis",cellSpace:"Lahtri vahe",column:{menu:"Veerg",insertBefore:"Sisesta veerg enne",insertAfter:"Sisesta veerg peale",deleteColumn:"Eemalda veerud"},columns:"Veerud",deleteTable:"Kustuta tabel",headers:"Päised",headersBoth:"Mõlemad",headersColumn:"Esimene tulp",headersNone:"Puudub",headersRow:"Esimene rida",invalidBorder:"Äärise suurus peab olema number.",invalidCellPadding:"Lahtrite polsterdus (padding) peab olema positiivne arv.",invalidCellSpacing:"Lahtrite vahe peab olema positiivne arv.",invalidCols:"Tulpade arv peab olema nullist suurem.",invalidHeight:"Tabeli kõrgus peab olema number.",invalidRows:"Ridade arv peab olema nullist suurem.",invalidWidth:"Tabeli laius peab olema number.",menu:"Tabeli omadused",row:{menu:"Rida",insertBefore:"Sisesta rida enne",insertAfter:"Sisesta rida peale",deleteRow:"Eemalda read"},rows:"Read",summary:"Kokkuvõte",title:"Tabeli omadused",toolbar:"Tabel",widthPc:"protsenti",widthPx:"pikslit",widthUnit:"laiuse ühik"},undo:{redo:"Toimingu kordamine",undo:"Tagasivõtmine"},wsc:{btnIgnore:"Ignoreeri",btnIgnoreAll:"Ignoreeri kõiki",btnReplace:"Asenda",btnReplaceAll:"Asenda kõik",btnUndo:"Võta tagasi",changeTo:"Muuda",errorLoading:"Viga rakenduse teenushosti laadimisel: %s.",ieSpellDownload:"Õigekirja kontrollija ei ole paigaldatud. Soovid sa selle alla laadida?",manyChanges:"Õigekirja kontroll sooritatud: %1 sõna muudetud",noChanges:"Õigekirja kontroll sooritatud: ühtegi sõna ei muudetud",noMispell:"Õigekirja kontroll sooritatud: õigekirjuvigu ei leitud",noSuggestions:"- Soovitused puuduvad -",notAvailable:"Kahjuks ei ole teenus praegu saadaval.",notInDic:"Puudub sõnastikust",oneChange:"Õigekirja kontroll sooritatud: üks sõna muudeti",progress:"Toimub õigekirja kontroll...",title:"Õigekirjakontroll",toolbar:"Õigekirjakontroll"}};
taydakov/cdnjs
ajax/libs/ckeditor/4.4.1/lang/et.min.js
JavaScript
mit
16,302
/*! jQuery UI - v1.10.4 - 2014-02-16 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(t){t.datepicker.regional.bg={closeText:"затвори",prevText:"&#x3C;назад",nextText:"напред&#x3E;",nextBigText:"&#x3E;&#x3E;",currentText:"днес",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Съ"],weekHeader:"Wk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},t.datepicker.setDefaults(t.datepicker.regional.bg)});
BanBart/Symfony2-Project
vendor/sonata-project/admin-bundle/Resources/public/vendor/jqueryui/ui/minified/i18n/jquery.ui.datepicker-bg.min.js
JavaScript
mit
1,048
<?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\Component\Translation\Tests\Dumper; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\JsonFileDumper; class JsonFileDumperTest extends \PHPUnit_Framework_TestCase { public function testDump() { if (PHP_VERSION_ID < 50400) { $this->markTestIncomplete('PHP below 5.4 doesn\'t support JSON pretty printing'); } $catalogue = new MessageCatalogue('en'); $catalogue->add(array('foo' => 'bar')); $tempDir = sys_get_temp_dir(); $dumper = new JsonFileDumper(); $dumper->dump($catalogue, array('path' => $tempDir)); $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.json'), file_get_contents($tempDir.'/messages.en.json')); unlink($tempDir.'/messages.en.json'); } }
spvernet/symfony_2
vendor/symfony/symfony/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php
PHP
mit
1,077
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/text",["./_base/kernel","require","./has","./request"],function(_1,_2,_3,_4){ var _5; if(1){ _5=function(_6,_7,_8){ _4(_6,{sync:!!_7}).then(_8); }; }else{ if(_2.getText){ _5=_2.getText; }else{ console.error("dojo/text plugin failed to load because loader does not support getText"); } } var _9={},_a=function(_b){ if(_b){ _b=_b.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""); var _c=_b.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im); if(_c){ _b=_c[1]; } }else{ _b=""; } return _b; },_d={},_e={}; _1.cache=function(_f,url,_10){ var key; if(typeof _f=="string"){ if(/\//.test(_f)){ key=_f; _10=url; }else{ key=_2.toUrl(_f.replace(/\./g,"/")+(url?("/"+url):"")); } }else{ key=_f+""; _10=url; } var val=(_10!=undefined&&typeof _10!="string")?_10.value:_10,_11=_10&&_10.sanitize; if(typeof val=="string"){ _9[key]=val; return _11?_a(val):val; }else{ if(val===null){ delete _9[key]; return null; }else{ if(!(key in _9)){ _5(key,true,function(_12){ _9[key]=_12; }); } return _11?_a(_9[key]):_9[key]; } } }; return {dynamic:true,normalize:function(id,_13){ var _14=id.split("!"),url=_14[0]; return (/^\./.test(url)?_13(url):url)+(_14[1]?"!"+_14[1]:""); },load:function(id,_15,_16){ var _17=id.split("!"),_18=_17.length>1,_19=_17[0],url=_15.toUrl(_17[0]),_1a="url:"+url,_1b=_d,_1c=function(_1d){ _16(_18?_a(_1d):_1d); }; if(_19 in _9){ _1b=_9[_19]; }else{ if(_15.cache&&_1a in _15.cache){ _1b=_15.cache[_1a]; }else{ if(url in _9){ _1b=_9[url]; } } } if(_1b===_d){ if(_e[url]){ _e[url].push(_1c); }else{ var _1e=_e[url]=[_1c]; _5(url,!_15.async,function(_1f){ _9[_19]=_9[url]=_1f; for(var i=0;i<_1e.length;){ _1e[i++](_1f); } delete _e[url]; }); } }else{ _1c(_1b); } }}; });
ram-nadella/cdnjs
ajax/libs/dojo/1.9.3/text.js
JavaScript
mit
1,907
.picker { overflow: hidden; } .picker-toolbar { height: 40px; } .picker-items { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; padding: 0; text-align: right; font-size: 24px; position: relative; } .picker-center-highlight { box-sizing: border-box; position: absolute; left: 0; width: 100%; top: 50%; margin-top: -18px; pointer-events: none } .picker-center-highlight:before, .picker-center-highlight:after { content: ''; position: absolute; height: 1px; width: 100%; background-color: #eaeaea; display: block; z-index: 15; -webkit-transform: scaleY(0.5); transform: scaleY(0.5); } .picker-center-highlight:before { left: 0; top: 0; bottom: auto; right: auto; } .picker-center-highlight:after { left: 0; bottom: 0; right: auto; top: auto; } .picker-slot { font-size: 18px; overflow: hidden; position: relative; max-height: 100% } .picker-slot.picker-slot-left { text-align: left; } .picker-slot.picker-slot-center { text-align: center; } .picker-slot.picker-slot-right { text-align: right; } .picker-slot.picker-slot-divider { color: #000; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center } .picker-slot-wrapper { -webkit-transition-duration: 0.3s; transition-duration: 0.3s; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .picker-slot-wrapper.dragging, .picker-slot-wrapper.dragging .picker-item { -webkit-transition-duration: 0s; transition-duration: 0s; } .picker-item { height: 36px; line-height: 36px; padding: 0 10px; white-space: nowrap; position: relative; overflow: hidden; text-overflow: ellipsis; color: #707274; left: 0; top: 0; width: 100%; box-sizing: border-box; -webkit-transition-duration: .3s; transition-duration: .3s; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .picker-slot-absolute .picker-item { position: absolute; } .picker-item.picker-item-far { pointer-events: none } .picker-item.picker-selected { color: #000; -webkit-transform: translate3d(0, 0, 0) rotateX(0); transform: translate3d(0, 0, 0) rotateX(0); } .picker-3d .picker-items { overflow: hidden; -webkit-perspective: 700px; perspective: 700px; } .picker-3d .picker-item, .picker-3d .picker-slot, .picker-3d .picker-slot-wrapper { -webkit-transform-style: preserve-3d; transform-style: preserve-3d } .picker-3d .picker-slot { overflow: visible } .picker-3d .picker-item { -webkit-transform-origin: center center; transform-origin: center center; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out }
wout/cdnjs
ajax/libs/mint-ui/2.2.4/picker/style.css
CSS
mit
3,089
<?php /** * Copyright 2014 Facebook, Inc. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by * Facebook. * * As with any software that integrates with the Facebook platform, your use * of this software is subject to the Facebook Developer Principles and * Policies [http://developers.facebook.com/policy/]. This copyright 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. * */ namespace Facebook\GraphNodes; /** * Class GraphNode * * @package Facebook */ class GraphNode extends Collection { /** * @var array Maps object key names to Graph object types. */ protected static $graphObjectMap = []; /** * Init this Graph object. * * @param array $data */ public function __construct(array $data = []) { parent::__construct($this->castItems($data)); } /** * Iterates over an array and detects the types each node * should be cast to and returns all the items as an array. * * @TODO Add auto-casting to AccessToken entities. * * @param array $data The array to iterate over. * * @return array */ public function castItems(array $data) { $items = []; foreach ($data as $k => $v) { if ($this->shouldCastAsDateTime($k) && (is_numeric($v) || $k === 'birthday' || $this->isIso8601DateString($v)) ) { $items[$k] = $this->castToDateTime($v); } else { $items[$k] = $v; } } return $items; } /** * Uncasts any auto-casted datatypes. * Basically the reverse of castItems(). * * @return array */ public function uncastItems() { $items = $this->asArray(); return array_map(function ($v) { if ($v instanceof \DateTime) { return $v->format(\DateTime::ISO8601); } return $v; }, $items); } /** * Get the collection of items as JSON. * * @param int $options * * @return string */ public function asJson($options = 0) { return json_encode($this->uncastItems(), $options); } /** * Detects an ISO 8601 formatted string. * * @param string $string * * @return boolean * * @see https://developers.facebook.com/docs/graph-api/using-graph-api/#readmodifiers * @see http://www.cl.cam.ac.uk/~mgk25/iso-time.html * @see http://en.wikipedia.org/wiki/ISO_8601 */ public function isIso8601DateString($string) { // This insane regex was yoinked from here: // http://www.pelagodesign.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/ // ...and I'm all like: // http://thecodinglove.com/post/95378251969/when-code-works-and-i-dont-know-why $crazyInsaneRegexThatSomehowDetectsIso8601 = '/^([\+-]?\d{4}(?!\d{2}\b))' . '((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?' . '|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d' . '|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])' . '((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d' . '([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/'; return preg_match($crazyInsaneRegexThatSomehowDetectsIso8601, $string) === 1; } /** * Determines if a value from Graph should be cast to DateTime. * * @param string $key * * @return boolean */ public function shouldCastAsDateTime($key) { return in_array($key, [ 'created_time', 'updated_time', 'start_time', 'end_time', 'backdated_time', 'issued_at', 'expires_at', 'birthday', 'publish_time' ], true); } /** * Casts a date value from Graph to DateTime. * * @param int|string $value * * @return \DateTime */ public function castToDateTime($value) { if (is_int($value)) { $dt = new \DateTime(); $dt->setTimestamp($value); } else { $dt = new \DateTime($value); } return $dt; } /** * Getter for $graphObjectMap. * * @return array */ public static function getObjectMap() { return static::$graphObjectMap; } }
thopiddock/bakasura
lib/facebook/src/Facebook/GraphNodes/GraphNode.php
PHP
mit
5,165
.oo-ui-icon-image{background-image:url(themes/mediawiki/images/icons/image-ltr.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/image-ltr.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/image-ltr.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/image-ltr.png)}.oo-ui-image-invert.oo-ui-icon-image{background-image:url(themes/mediawiki/images/icons/image-ltr-invert.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/image-ltr-invert.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/image-ltr-invert.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/image-ltr-invert.png)}.oo-ui-icon-imageAdd{background-image:url(themes/mediawiki/images/icons/imageAdd-ltr.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageAdd-ltr.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageAdd-ltr.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageAdd-ltr.png)}.oo-ui-image-invert.oo-ui-icon-imageAdd{background-image:url(themes/mediawiki/images/icons/imageAdd-ltr-invert.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageAdd-ltr-invert.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageAdd-ltr-invert.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageAdd-ltr-invert.png)}.oo-ui-icon-imageLock{background-image:url(themes/mediawiki/images/icons/imageLock-ltr.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageLock-ltr.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageLock-ltr.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageLock-ltr.png)}.oo-ui-image-invert.oo-ui-icon-imageLock{background-image:url(themes/mediawiki/images/icons/imageLock-ltr-invert.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageLock-ltr-invert.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageLock-ltr-invert.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageLock-ltr-invert.png)}.oo-ui-icon-imageGallery{background-image:url(themes/mediawiki/images/icons/imageGallery-ltr.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr.png)}.oo-ui-image-invert.oo-ui-icon-imageGallery{background-image:url(themes/mediawiki/images/icons/imageGallery-ltr-invert.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr-invert.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr-invert.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr-invert.png)}.oo-ui-icon-photoGallery{background-image:url(themes/mediawiki/images/icons/imageGallery-ltr.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr.png)}.oo-ui-image-invert.oo-ui-icon-photoGallery{background-image:url(themes/mediawiki/images/icons/imageGallery-ltr-invert.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr-invert.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr-invert.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/imageGallery-ltr-invert.png)}.oo-ui-icon-play{background-image:url(themes/mediawiki/images/icons/play-ltr.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/play-ltr.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/play-ltr.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/play-ltr.png)}.oo-ui-image-invert.oo-ui-icon-play{background-image:url(themes/mediawiki/images/icons/play-ltr-invert.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/play-ltr-invert.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/play-ltr-invert.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/play-ltr-invert.png)}.oo-ui-icon-stop{background-image:url(themes/mediawiki/images/icons/stop.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/stop.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/stop.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/stop.png)}.oo-ui-image-invert.oo-ui-icon-stop{background-image:url(themes/mediawiki/images/icons/stop-invert.png);background-image:-webkit-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/stop-invert.svg);background-image:linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/stop-invert.svg);background-image:-o-linear-gradient(transparent,transparent),url(themes/mediawiki/images/icons/stop-invert.png)}
dc-js/cdnjs
ajax/libs/oojs-ui/0.16.3/oojs-ui-mediawiki-icons-media.min.css
CSS
mit
6,311
/* * Lazy Load - jQuery plugin for lazy loading images * * Copyright (c) 2007-2013 Mika Tuupola * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * http://www.appelsiini.net/projects/lazyload * * Version: 1.8.4 * */ (function(a,b,c,d){var e=a(b);a.fn.lazyload=function(c){function i(){var b=0;f.each(function(){var c=a(this);if(h.skip_invisible&&!c.is(":visible"))return;if(!a.abovethetop(this,h)&&!a.leftofbegin(this,h))if(!a.belowthefold(this,h)&&!a.rightoffold(this,h))c.trigger("appear"),b=0;else if(++b>h.failure_limit)return!1})}var f=this,g,h={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return c&&(d!==c.failurelimit&&(c.failure_limit=c.failurelimit,delete c.failurelimit),d!==c.effectspeed&&(c.effect_speed=c.effectspeed,delete c.effectspeed),a.extend(h,c)),g=h.container===d||h.container===b?e:a(h.container),0===h.event.indexOf("scroll")&&g.bind(h.event,function(a){return i()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,c.one("appear",function(){if(!this.loaded){if(h.appear){var d=f.length;h.appear.call(b,d,h)}a("<img />").bind("load",function(){c.hide().attr("src",c.data(h.data_attribute))[h.effect](h.effect_speed),b.loaded=!0;var d=a.grep(f,function(a){return!a.loaded});f=a(d);if(h.load){var e=f.length;h.load.call(b,e,h)}}).attr("src",c.data(h.data_attribute))}}),0!==h.event.indexOf("scroll")&&c.bind(h.event,function(a){b.loaded||c.trigger("appear")})}),e.bind("resize",function(a){i()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent.persisted&&f.each(function(){a(this).trigger("appear")})}),a(b).load(function(){i()}),this},a.belowthefold=function(c,f){var g;return f.container===d||f.container===b?g=e.height()+e.scrollTop():g=a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return f.container===d||f.container===b?g=e.width()+e.scrollLeft():g=a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollTop():g=a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollLeft():g=a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!a.rightoffold(b,c)&&!a.leftofbegin(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})})(jQuery,window,document)
knpwrs/cdnjs
ajax/libs/jquery.lazyload/1.8.4/jquery.lazyload.min.js
JavaScript
mit
3,205
<?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\Component\Translation\Loader; use Symfony\Component\Config\Util\XmlUtils; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Exception\InvalidResourceException; use Symfony\Component\Translation\Exception\NotFoundResourceException; use Symfony\Component\Config\Resource\FileResource; /** * QtFileLoader loads translations from QT Translations XML files. * * @author Benjamin Eberlei <kontakt@beberlei.de> * * @api */ class QtFileLoader implements LoaderInterface { /** * {@inheritdoc} * * @api */ public function load($resource, $locale, $domain = 'messages') { if (!stream_is_local($resource)) { throw new InvalidResourceException(sprintf('This is not a local file "%s".', $resource)); } if (!file_exists($resource)) { throw new NotFoundResourceException(sprintf('File "%s" not found.', $resource)); } try { $dom = XmlUtils::loadFile($resource); } catch (\InvalidArgumentException $e) { throw new InvalidResourceException(sprintf('Unable to load "%s".', $resource), $e->getCode(), $e); } $internalErrors = libxml_use_internal_errors(true); libxml_clear_errors(); $xpath = new \DOMXPath($dom); $nodes = $xpath->evaluate('//TS/context/name[text()="'.$domain.'"]'); $catalogue = new MessageCatalogue($locale); if ($nodes->length == 1) { $translations = $nodes->item(0)->nextSibling->parentNode->parentNode->getElementsByTagName('message'); foreach ($translations as $translation) { $translationValue = (string) $translation->getElementsByTagName('translation')->item(0)->nodeValue; if (!empty($translationValue)) { $catalogue->set( (string) $translation->getElementsByTagName('source')->item(0)->nodeValue, $translationValue, $domain ); } $translation = $translation->nextSibling; } $catalogue->addResource(new FileResource($resource)); } libxml_use_internal_errors($internalErrors); return $catalogue; } }
inpronet/s2-0714
vendor/symfony/symfony/src/Symfony/Component/Translation/Loader/QtFileLoader.php
PHP
mit
2,548
YUI.add('dataschema-array', function (Y, NAME) { /** * Provides a DataSchema implementation which can be used to work with data * stored in arrays. * * @module dataschema * @submodule dataschema-array */ /** Provides a DataSchema implementation which can be used to work with data stored in arrays. See the `apply` method below for usage. @class DataSchema.Array @extends DataSchema.Base @static **/ var LANG = Y.Lang, SchemaArray = { //////////////////////////////////////////////////////////////////////// // // DataSchema.Array static methods // //////////////////////////////////////////////////////////////////////// /** Applies a schema to an array of data, returning a normalized object with results in the `results` property. The `meta` property of the response object is present for consistency, but is assigned an empty object. If the input data is absent or not an array, an `error` property will be added. The input array is expected to contain objects, arrays, or strings. If _schema_ is not specified or _schema.resultFields_ is not an array, `response.results` will be assigned the input array unchanged. When a _schema_ is specified, the following will occur: If the input array contains strings, they will be copied as-is into the `response.results` array. If the input array contains arrays, `response.results` will contain an array of objects with key:value pairs assuming the fields in _schema.resultFields_ are ordered in accordance with the data array values. If the input array contains objects, the identified _schema.resultFields_ will be used to extract a value from those objects for the output result. _schema.resultFields_ field identifiers are objects with the following properties: * `key` : <strong>(required)</strong> The locator name (String) * `parser`: A function or the name of a function on `Y.Parsers` used to convert the input value into a normalized type. Parser functions are passed the value as input and are expected to return a value. If no value parsing is needed, you can use strings as identifiers instead of objects (see example below). @example // Process array of arrays var schema = { resultFields: [ 'fruit', 'color' ] }, data = [ [ 'Banana', 'yellow' ], [ 'Orange', 'orange' ], [ 'Eggplant', 'purple' ] ]; var response = Y.DataSchema.Array.apply(schema, data); // response.results[0] is { fruit: "Banana", color: "yellow" } // Process array of objects data = [ { fruit: 'Banana', color: 'yellow', price: '1.96' }, { fruit: 'Orange', color: 'orange', price: '2.04' }, { fruit: 'Eggplant', color: 'purple', price: '4.31' } ]; response = Y.DataSchema.Array.apply(schema, data); // response.results[0] is { fruit: "Banana", color: "yellow" } // Use parsers schema.resultFields = [ { key: 'fruit', parser: function (val) { return val.toUpperCase(); } }, { key: 'price', parser: 'number' // Uses Y.Parsers.number } ]; response = Y.DataSchema.Array.apply(schema, data); // Note price was converted from a numeric string to a number // response.results[0] looks like { fruit: "BANANA", price: 1.96 } @method apply @param {Object} [schema] Schema to apply. Supported configuration properties are: @param {Array} [schema.resultFields] Field identifiers to locate/assign values in the response records. See above for details. @param {Array} data Array data. @return {Object} An Object with properties `results` and `meta` @static **/ apply: function(schema, data) { var data_in = data, data_out = {results:[],meta:{}}; if(LANG.isArray(data_in)) { if(schema && LANG.isArray(schema.resultFields)) { // Parse results data data_out = SchemaArray._parseResults.call(this, schema.resultFields, data_in, data_out); } else { data_out.results = data_in; Y.log("Schema resultFields property not found: " + Y.dump(schema), "warn", "dataschema-array"); } } else { Y.log("Array data could not be schema-parsed: " + Y.dump(data) + " " + Y.dump(data), "error", "dataschema-array"); data_out.error = new Error("Array schema parse failure"); } return data_out; }, /** * Schema-parsed list of results from full data * * @method _parseResults * @param fields {Array} Schema to parse against. * @param array_in {Array} Array to parse. * @param data_out {Object} In-progress parsed data to update. * @return {Object} Parsed data object. * @static * @protected */ _parseResults: function(fields, array_in, data_out) { var results = [], result, item, type, field, key, value, i, j; for(i=array_in.length-1; i>-1; i--) { result = {}; item = array_in[i]; type = (LANG.isObject(item) && !LANG.isFunction(item)) ? 2 : (LANG.isArray(item)) ? 1 : (LANG.isString(item)) ? 0 : -1; if(type > 0) { for(j=fields.length-1; j>-1; j--) { field = fields[j]; key = (!LANG.isUndefined(field.key)) ? field.key : field; value = (!LANG.isUndefined(item[key])) ? item[key] : item[j]; result[key] = Y.DataSchema.Base.parse.call(this, value, field); } } else if(type === 0) { result = item; } else { //TODO: null or {}? result = null; Y.log("Unexpected type while parsing array: " + Y.dump(item), "warn", "dataschema-array"); } results[i] = result; } data_out.results = results; return data_out; } }; Y.DataSchema.Array = Y.mix(SchemaArray, Y.DataSchema.Base); }, '@VERSION@', {"requires": ["dataschema-base"]});
mzdani/cdnjs
ajax/libs/yui/3.14.0/dataschema-array/dataschema-array-debug.js
JavaScript
mit
6,965
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datasource-textschema/datasource-textschema.js']) { __coverage__['build/datasource-textschema/datasource-textschema.js'] = {"path":"build/datasource-textschema/datasource-textschema.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"b":{"1":[0,0],"2":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":52}}},"2":{"name":"(anonymous_2)","line":15,"loc":{"start":{"line":15,"column":27},"end":{"line":15,"column":38}}},"3":{"name":"(anonymous_3)","line":64,"loc":{"start":{"line":64,"column":17},"end":{"line":64,"column":34}}},"4":{"name":"(anonymous_4)","line":82,"loc":{"start":{"line":82,"column":22},"end":{"line":82,"column":34}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":102,"column":81}},"2":{"start":{"line":15,"column":0},"end":{"line":17,"column":2}},"3":{"start":{"line":16,"column":4},"end":{"line":16,"column":71}},"4":{"start":{"line":19,"column":0},"end":{"line":54,"column":3}},"5":{"start":{"line":56,"column":0},"end":{"line":97,"column":3}},"6":{"start":{"line":65,"column":8},"end":{"line":65,"column":59}},"7":{"start":{"line":83,"column":8},"end":{"line":86,"column":49}},"8":{"start":{"line":88,"column":8},"end":{"line":91,"column":10}},"9":{"start":{"line":93,"column":8},"end":{"line":93,"column":51}},"10":{"start":{"line":95,"column":8},"end":{"line":95,"column":78}},"11":{"start":{"line":99,"column":0},"end":{"line":99,"column":66}}},"branchMap":{"1":{"line":86,"type":"binary-expr","locations":[{"start":{"line":86,"column":19},"end":{"line":86,"column":38}},{"start":{"line":86,"column":42},"end":{"line":86,"column":48}}]},"2":{"line":88,"type":"binary-expr","locations":[{"start":{"line":88,"column":27},"end":{"line":88,"column":75}},{"start":{"line":88,"column":79},"end":{"line":91,"column":9}}]}},"code":["(function () { YUI.add('datasource-textschema', function (Y, NAME) {","","/**"," * Extends DataSource with schema-parsing on text data."," *"," * @module datasource"," * @submodule datasource-textschema"," */","","/**"," * Adds schema-parsing to the DataSource Utility."," * @class DataSourceTextSchema"," * @extends Plugin.Base"," */","var DataSourceTextSchema = function() {"," DataSourceTextSchema.superclass.constructor.apply(this, arguments);","};","","Y.mix(DataSourceTextSchema, {"," /**"," * The namespace for the plugin. This will be the property on the host which"," * references the plugin instance."," *"," * @property NS"," * @type String"," * @static"," * @final"," * @value \"schema\""," */"," NS: \"schema\",",""," /**"," * Class name."," *"," * @property NAME"," * @type String"," * @static"," * @final"," * @value \"dataSourceTextSchema\""," */"," NAME: \"dataSourceTextSchema\",",""," /////////////////////////////////////////////////////////////////////////////"," //"," // DataSourceTextSchema Attributes"," //"," /////////////////////////////////////////////////////////////////////////////",""," ATTRS: {"," schema: {"," //value: {}"," }"," }","});","","Y.extend(DataSourceTextSchema, Y.Plugin.Base, {"," /**"," * Internal init() handler."," *"," * @method initializer"," * @param config {Object} Config object."," * @private"," */"," initializer: function(config) {"," this.doBefore(\"_defDataFn\", this._beforeDefDataFn);"," },",""," /**"," * Parses raw data into a normalized response."," *"," * @method _beforeDefDataFn"," * @param tId {Number} Unique transaction ID."," * @param request {Object} The request."," * @param callback {Object} The callback object with the following properties:"," * <dl>"," * <dt>success (Function)</dt> <dd>Success handler.</dd>"," * <dt>failure (Function)</dt> <dd>Failure handler.</dd>"," * </dl>"," * @param data {Object} Raw data."," * @protected"," */"," _beforeDefDataFn: function(e) {"," var schema = this.get('schema'),"," payload = e.details[0],"," // TODO: Do I need to sniff for DS.IO + isString(responseText)?"," data = e.data.responseText || e.data;",""," payload.response = Y.DataSchema.Text.apply.call(this, schema, data) || {"," meta: {},"," results: data"," };",""," this.get(\"host\").fire(\"response\", payload);",""," return new Y.Do.Halt(\"DataSourceTextSchema plugin halted _defDataFn\");"," }","});","","Y.namespace('Plugin').DataSourceTextSchema = DataSourceTextSchema;","","","}, '@VERSION@', {\"requires\": [\"datasource-local\", \"plugin\", \"dataschema-text\"]});","","}());"]}; } var __cov_1fCx$fER2VXeTmu6W07URA = __coverage__['build/datasource-textschema/datasource-textschema.js']; __cov_1fCx$fER2VXeTmu6W07URA.s['1']++;YUI.add('datasource-textschema',function(Y,NAME){__cov_1fCx$fER2VXeTmu6W07URA.f['1']++;__cov_1fCx$fER2VXeTmu6W07URA.s['2']++;var DataSourceTextSchema=function(){__cov_1fCx$fER2VXeTmu6W07URA.f['2']++;__cov_1fCx$fER2VXeTmu6W07URA.s['3']++;DataSourceTextSchema.superclass.constructor.apply(this,arguments);};__cov_1fCx$fER2VXeTmu6W07URA.s['4']++;Y.mix(DataSourceTextSchema,{NS:'schema',NAME:'dataSourceTextSchema',ATTRS:{schema:{}}});__cov_1fCx$fER2VXeTmu6W07URA.s['5']++;Y.extend(DataSourceTextSchema,Y.Plugin.Base,{initializer:function(config){__cov_1fCx$fER2VXeTmu6W07URA.f['3']++;__cov_1fCx$fER2VXeTmu6W07URA.s['6']++;this.doBefore('_defDataFn',this._beforeDefDataFn);},_beforeDefDataFn:function(e){__cov_1fCx$fER2VXeTmu6W07URA.f['4']++;__cov_1fCx$fER2VXeTmu6W07URA.s['7']++;var schema=this.get('schema'),payload=e.details[0],data=(__cov_1fCx$fER2VXeTmu6W07URA.b['1'][0]++,e.data.responseText)||(__cov_1fCx$fER2VXeTmu6W07URA.b['1'][1]++,e.data);__cov_1fCx$fER2VXeTmu6W07URA.s['8']++;payload.response=(__cov_1fCx$fER2VXeTmu6W07URA.b['2'][0]++,Y.DataSchema.Text.apply.call(this,schema,data))||(__cov_1fCx$fER2VXeTmu6W07URA.b['2'][1]++,{meta:{},results:data});__cov_1fCx$fER2VXeTmu6W07URA.s['9']++;this.get('host').fire('response',payload);__cov_1fCx$fER2VXeTmu6W07URA.s['10']++;return new Y.Do.Halt('DataSourceTextSchema plugin halted _defDataFn');}});__cov_1fCx$fER2VXeTmu6W07URA.s['11']++;Y.namespace('Plugin').DataSourceTextSchema=DataSourceTextSchema;},'@VERSION@',{'requires':['datasource-local','plugin','dataschema-text']});
Blueprint-Marketing/cdnjs
ajax/libs/yui/3.13.0/datasource-textschema/datasource-textschema-coverage.js
JavaScript
mit
6,563
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/dataschema-json/dataschema-json.js']) { __coverage__['build/dataschema-json/dataschema-json.js'] = {"path":"build/dataschema-json/dataschema-json.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":44,"loc":{"start":{"line":44,"column":13},"end":{"line":44,"column":31}}},"3":{"name":"(anonymous_3)","line":56,"loc":{"start":{"line":56,"column":16},"end":{"line":56,"column":35}}},"4":{"name":"(anonymous_4)","line":58,"loc":{"start":{"line":58,"column":16},"end":{"line":58,"column":32}}},"5":{"name":"(anonymous_5)","line":88,"loc":{"start":{"line":88,"column":22},"end":{"line":88,"column":44}}},"6":{"name":"(anonymous_6)","line":221,"loc":{"start":{"line":221,"column":11},"end":{"line":221,"column":34}}},"7":{"name":"(anonymous_7)","line":263,"loc":{"start":{"line":263,"column":19},"end":{"line":263,"column":55}}},"8":{"name":"(anonymous_8)","line":303,"loc":{"start":{"line":303,"column":21},"end":{"line":303,"column":58}}},"9":{"name":"(anonymous_9)","line":416,"loc":{"start":{"line":416,"column":16},"end":{"line":416,"column":56}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":439,"column":59}},"2":{"start":{"line":19,"column":0},"end":{"line":27,"column":15}},"3":{"start":{"line":29,"column":0},"end":{"line":433,"column":2}},"4":{"start":{"line":45,"column":8},"end":{"line":47,"column":18}},"5":{"start":{"line":49,"column":8},"end":{"line":75,"column":9}},"6":{"start":{"line":54,"column":12},"end":{"line":59,"column":34}},"7":{"start":{"line":56,"column":36},"end":{"line":56,"column":47}},"8":{"start":{"line":56,"column":47},"end":{"line":56,"column":65}},"9":{"start":{"line":58,"column":33},"end":{"line":58,"column":59}},"10":{"start":{"line":58,"column":59},"end":{"line":58,"column":77}},"11":{"start":{"line":65,"column":12},"end":{"line":65,"column":38}},"12":{"start":{"line":66,"column":12},"end":{"line":70,"column":13}},"13":{"start":{"line":67,"column":16},"end":{"line":69,"column":17}},"14":{"start":{"line":68,"column":20},"end":{"line":68,"column":67}},"15":{"start":{"line":76,"column":8},"end":{"line":76,"column":20}},"16":{"start":{"line":89,"column":8},"end":{"line":90,"column":30}},"17":{"start":{"line":91,"column":8},"end":{"line":98,"column":9}},"18":{"start":{"line":92,"column":12},"end":{"line":97,"column":13}},"19":{"start":{"line":93,"column":16},"end":{"line":93,"column":37}},"20":{"start":{"line":95,"column":16},"end":{"line":95,"column":33}},"21":{"start":{"line":96,"column":16},"end":{"line":96,"column":22}},"22":{"start":{"line":99,"column":8},"end":{"line":99,"column":20}},"23":{"start":{"line":222,"column":8},"end":{"line":223,"column":49}},"24":{"start":{"line":226,"column":8},"end":{"line":234,"column":9}},"25":{"start":{"line":227,"column":12},"end":{"line":233,"column":13}},"26":{"start":{"line":228,"column":16},"end":{"line":228,"column":45}},"27":{"start":{"line":231,"column":16},"end":{"line":231,"column":35}},"28":{"start":{"line":232,"column":16},"end":{"line":232,"column":32}},"29":{"start":{"line":236,"column":8},"end":{"line":247,"column":9}},"30":{"start":{"line":238,"column":12},"end":{"line":238,"column":86}},"31":{"start":{"line":241,"column":12},"end":{"line":243,"column":13}},"32":{"start":{"line":242,"column":16},"end":{"line":242,"column":87}},"33":{"start":{"line":246,"column":12},"end":{"line":246,"column":68}},"34":{"start":{"line":249,"column":8},"end":{"line":249,"column":24}},"35":{"start":{"line":264,"column":8},"end":{"line":272,"column":32}},"36":{"start":{"line":274,"column":8},"end":{"line":287,"column":9}},"37":{"start":{"line":279,"column":12},"end":{"line":283,"column":13}},"38":{"start":{"line":280,"column":16},"end":{"line":280,"column":105}},"39":{"start":{"line":282,"column":16},"end":{"line":282,"column":43}},"40":{"start":{"line":284,"column":15},"end":{"line":287,"column":9}},"41":{"start":{"line":285,"column":12},"end":{"line":285,"column":34}},"42":{"start":{"line":286,"column":12},"end":{"line":286,"column":73}},"43":{"start":{"line":289,"column":8},"end":{"line":289,"column":24}},"44":{"start":{"line":304,"column":8},"end":{"line":309,"column":27}},"45":{"start":{"line":312,"column":8},"end":{"line":347,"column":9}},"46":{"start":{"line":313,"column":12},"end":{"line":313,"column":30}},"47":{"start":{"line":314,"column":12},"end":{"line":314,"column":37}},"48":{"start":{"line":315,"column":12},"end":{"line":315,"column":43}},"49":{"start":{"line":318,"column":12},"end":{"line":318,"column":47}},"50":{"start":{"line":319,"column":12},"end":{"line":333,"column":13}},"51":{"start":{"line":320,"column":16},"end":{"line":331,"column":17}},"52":{"start":{"line":321,"column":20},"end":{"line":324,"column":23}},"53":{"start":{"line":326,"column":20},"end":{"line":330,"column":23}},"54":{"start":{"line":337,"column":12},"end":{"line":339,"column":53}},"55":{"start":{"line":341,"column":12},"end":{"line":346,"column":13}},"56":{"start":{"line":342,"column":16},"end":{"line":345,"column":19}},"57":{"start":{"line":351,"column":8},"end":{"line":400,"column":9}},"58":{"start":{"line":352,"column":12},"end":{"line":352,"column":24}},"59":{"start":{"line":353,"column":12},"end":{"line":353,"column":33}},"60":{"start":{"line":354,"column":12},"end":{"line":399,"column":13}},"61":{"start":{"line":356,"column":16},"end":{"line":378,"column":17}},"62":{"start":{"line":357,"column":20},"end":{"line":357,"column":43}},"63":{"start":{"line":358,"column":20},"end":{"line":358,"column":73}},"64":{"start":{"line":359,"column":20},"end":{"line":374,"column":21}},"65":{"start":{"line":360,"column":24},"end":{"line":360,"column":82}},"66":{"start":{"line":364,"column":24},"end":{"line":373,"column":25}},"67":{"start":{"line":365,"column":28},"end":{"line":368,"column":31}},"68":{"start":{"line":371,"column":28},"end":{"line":371,"column":53}},"69":{"start":{"line":372,"column":28},"end":{"line":372,"column":37}},"70":{"start":{"line":376,"column":20},"end":{"line":377,"column":80}},"71":{"start":{"line":381,"column":16},"end":{"line":387,"column":17}},"72":{"start":{"line":382,"column":20},"end":{"line":382,"column":42}},"73":{"start":{"line":384,"column":20},"end":{"line":386,"column":66}},"74":{"start":{"line":390,"column":16},"end":{"line":397,"column":17}},"75":{"start":{"line":391,"column":20},"end":{"line":391,"column":46}},"76":{"start":{"line":392,"column":20},"end":{"line":392,"column":81}},"77":{"start":{"line":394,"column":20},"end":{"line":396,"column":21}},"78":{"start":{"line":395,"column":24},"end":{"line":395,"column":43}},"79":{"start":{"line":398,"column":16},"end":{"line":398,"column":36}},"80":{"start":{"line":401,"column":8},"end":{"line":401,"column":35}},"81":{"start":{"line":402,"column":8},"end":{"line":402,"column":24}},"82":{"start":{"line":417,"column":8},"end":{"line":430,"column":9}},"83":{"start":{"line":418,"column":12},"end":{"line":418,"column":26}},"84":{"start":{"line":419,"column":12},"end":{"line":426,"column":13}},"85":{"start":{"line":420,"column":16},"end":{"line":425,"column":17}},"86":{"start":{"line":421,"column":20},"end":{"line":421,"column":63}},"87":{"start":{"line":422,"column":20},"end":{"line":424,"column":21}},"88":{"start":{"line":423,"column":24},"end":{"line":423,"column":88}},"89":{"start":{"line":429,"column":12},"end":{"line":429,"column":75}},"90":{"start":{"line":431,"column":8},"end":{"line":431,"column":24}},"91":{"start":{"line":436,"column":0},"end":{"line":436,"column":44}}},"branchMap":{"1":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":8},"end":{"line":49,"column":8}},{"start":{"line":49,"column":8},"end":{"line":49,"column":8}}]},"2":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":16},"end":{"line":67,"column":16}},{"start":{"line":67,"column":16},"end":{"line":67,"column":16}}]},"3":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":12},"end":{"line":92,"column":12}},{"start":{"line":92,"column":12},"end":{"line":92,"column":12}}]},"4":{"line":92,"type":"binary-expr","locations":[{"start":{"line":92,"column":16},"end":{"line":92,"column":30}},{"start":{"line":92,"column":35},"end":{"line":92,"column":50}}]},"5":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":8},"end":{"line":226,"column":8}},{"start":{"line":226,"column":8},"end":{"line":226,"column":8}}]},"6":{"line":236,"type":"if","locations":[{"start":{"line":236,"column":8},"end":{"line":236,"column":8}},{"start":{"line":236,"column":8},"end":{"line":236,"column":8}}]},"7":{"line":236,"type":"binary-expr","locations":[{"start":{"line":236,"column":12},"end":{"line":236,"column":29}},{"start":{"line":236,"column":33},"end":{"line":236,"column":39}}]},"8":{"line":241,"type":"if","locations":[{"start":{"line":241,"column":12},"end":{"line":241,"column":12}},{"start":{"line":241,"column":12},"end":{"line":241,"column":12}}]},"9":{"line":267,"type":"cond-expr","locations":[{"start":{"line":268,"column":25},"end":{"line":270,"column":61}},{"start":{"line":272,"column":24},"end":{"line":272,"column":31}}]},"10":{"line":268,"type":"binary-expr","locations":[{"start":{"line":268,"column":25},"end":{"line":268,"column":48}},{"start":{"line":270,"column":28},"end":{"line":270,"column":61}}]},"11":{"line":274,"type":"if","locations":[{"start":{"line":274,"column":8},"end":{"line":274,"column":8}},{"start":{"line":274,"column":8},"end":{"line":274,"column":8}}]},"12":{"line":279,"type":"if","locations":[{"start":{"line":279,"column":12},"end":{"line":279,"column":12}},{"start":{"line":279,"column":12},"end":{"line":279,"column":12}}]},"13":{"line":284,"type":"if","locations":[{"start":{"line":284,"column":15},"end":{"line":284,"column":15}},{"start":{"line":284,"column":15},"end":{"line":284,"column":15}}]},"14":{"line":314,"type":"binary-expr","locations":[{"start":{"line":314,"column":18},"end":{"line":314,"column":27}},{"start":{"line":314,"column":31},"end":{"line":314,"column":36}}]},"15":{"line":315,"type":"binary-expr","locations":[{"start":{"line":315,"column":22},"end":{"line":315,"column":35}},{"start":{"line":315,"column":39},"end":{"line":315,"column":42}}]},"16":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":12},"end":{"line":319,"column":12}},{"start":{"line":319,"column":12},"end":{"line":319,"column":12}}]},"17":{"line":320,"type":"if","locations":[{"start":{"line":320,"column":16},"end":{"line":320,"column":16}},{"start":{"line":320,"column":16},"end":{"line":320,"column":16}}]},"18":{"line":337,"type":"cond-expr","locations":[{"start":{"line":338,"column":24},"end":{"line":338,"column":36}},{"start":{"line":339,"column":24},"end":{"line":339,"column":52}}]},"19":{"line":341,"type":"if","locations":[{"start":{"line":341,"column":12},"end":{"line":341,"column":12}},{"start":{"line":341,"column":12},"end":{"line":341,"column":12}}]},"20":{"line":354,"type":"if","locations":[{"start":{"line":354,"column":12},"end":{"line":354,"column":12}},{"start":{"line":354,"column":12},"end":{"line":354,"column":12}}]},"21":{"line":359,"type":"if","locations":[{"start":{"line":359,"column":20},"end":{"line":359,"column":20}},{"start":{"line":359,"column":20},"end":{"line":359,"column":20}}]},"22":{"line":364,"type":"if","locations":[{"start":{"line":364,"column":24},"end":{"line":364,"column":24}},{"start":{"line":364,"column":24},"end":{"line":364,"column":24}}]},"23":{"line":385,"type":"cond-expr","locations":[{"start":{"line":386,"column":28},"end":{"line":386,"column":37}},{"start":{"line":386,"column":40},"end":{"line":386,"column":57}}]},"24":{"line":394,"type":"if","locations":[{"start":{"line":394,"column":20},"end":{"line":394,"column":20}},{"start":{"line":394,"column":20},"end":{"line":394,"column":20}}]},"25":{"line":417,"type":"if","locations":[{"start":{"line":417,"column":8},"end":{"line":417,"column":8}},{"start":{"line":417,"column":8},"end":{"line":417,"column":8}}]},"26":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":16},"end":{"line":420,"column":16}},{"start":{"line":420,"column":16},"end":{"line":420,"column":16}}]},"27":{"line":422,"type":"if","locations":[{"start":{"line":422,"column":20},"end":{"line":422,"column":20}},{"start":{"line":422,"column":20},"end":{"line":422,"column":20}}]},"28":{"line":422,"type":"binary-expr","locations":[{"start":{"line":422,"column":24},"end":{"line":422,"column":28}},{"start":{"line":422,"column":32},"end":{"line":422,"column":39}}]}},"code":["(function () { YUI.add('dataschema-json', function (Y, NAME) {","","/**","Provides a DataSchema implementation which can be used to work with JSON data.","","@module dataschema","@submodule dataschema-json","**/","","/**","Provides a DataSchema implementation which can be used to work with JSON data.","","See the `apply` method for usage.","","@class DataSchema.JSON","@extends DataSchema.Base","@static","**/","var LANG = Y.Lang,"," isFunction = LANG.isFunction,"," isObject = LANG.isObject,"," isArray = LANG.isArray,"," // TODO: I don't think the calls to Base.* need to be done via Base since"," // Base is mixed into SchemaJSON. Investigate for later."," Base = Y.DataSchema.Base,",""," SchemaJSON;","","SchemaJSON = {","","/////////////////////////////////////////////////////////////////////////////","//","// DataSchema.JSON static methods","//","/////////////////////////////////////////////////////////////////////////////"," /**"," * Utility function converts JSON locator strings into walkable paths"," *"," * @method getPath"," * @param locator {String} JSON value locator."," * @return {String[]} Walkable path to data value."," * @static"," */"," getPath: function(locator) {"," var path = null,"," keys = [],"," i = 0;",""," if (locator) {"," // Strip the [\"string keys\"] and [1] array indexes"," // TODO: the first two steps can probably be reduced to one with"," // /\\[\\s*(['\"])?(.*?)\\1\\s*\\]/g, but the array indices would be"," // stored as strings. This is not likely an issue."," locator = locator."," replace(/\\[\\s*(['\"])(.*?)\\1\\s*\\]/g,"," function (x,$1,$2) {keys[i]=$2;return '.@'+(i++);})."," replace(/\\[(\\d+)\\]/g,"," function (x,$1) {keys[i]=parseInt($1,10)|0;return '.@'+(i++);})."," replace(/^\\./,''); // remove leading dot",""," // Validate against problematic characters."," // commented out because the path isn't sent to eval, so it"," // should be safe. I'm not sure what makes a locator invalid."," //if (!/[^\\w\\.\\$@]/.test(locator)) {"," path = locator.split('.');"," for (i=path.length-1; i >= 0; --i) {"," if (path[i].charAt(0) === '@') {"," path[i] = keys[parseInt(path[i].substr(1),10)];"," }"," }"," /*}"," else {"," }"," */"," }"," return path;"," },",""," /**"," * Utility function to walk a path and return the value located there."," *"," * @method getLocationValue"," * @param path {String[]} Locator path."," * @param data {String} Data to traverse."," * @return {Object} Data value at location."," * @static"," */"," getLocationValue: function (path, data) {"," var i = 0,"," len = path.length;"," for (;i<len;i++) {"," if (isObject(data) && (path[i] in data)) {"," data = data[path[i]];"," } else {"," data = undefined;"," break;"," }"," }"," return data;"," },",""," /**"," Applies a schema to an array of data located in a JSON structure, returning"," a normalized object with results in the `results` property. Additional"," information can be parsed out of the JSON for inclusion in the `meta`"," property of the response object. If an error is encountered during"," processing, an `error` property will be added.",""," The input _data_ is expected to be an object or array. If it is a string,"," it will be passed through `Y.JSON.parse()`.",""," If _data_ contains an array of data records to normalize, specify the"," _schema.resultListLocator_ as a dot separated path string just as you would"," reference it in JavaScript. So if your _data_ object has a record array at"," _data.response.results_, use _schema.resultListLocator_ ="," \"response.results\". Bracket notation can also be used for array indices or"," object properties (e.g. \"response['results']\"); This is called a \"path"," locator\"",""," Field data in the result list is extracted with field identifiers in"," _schema.resultFields_. Field identifiers are objects with the following"," properties:",""," * `key` : <strong>(required)</strong> The path locator (String)"," * `parser`: A function or the name of a function on `Y.Parsers` used"," to convert the input value into a normalized type. Parser"," functions are passed the value as input and are expected to"," return a value.",""," If no value parsing is needed, you can use path locators (strings)"," instead of field identifiers (objects) -- see example below.",""," If no processing of the result list array is needed, _schema.resultFields_"," can be omitted; the `response.results` will point directly to the array.",""," If the result list contains arrays, `response.results` will contain an"," array of objects with key:value pairs assuming the fields in"," _schema.resultFields_ are ordered in accordance with the data array"," values.",""," If the result list contains objects, the identified _schema.resultFields_"," will be used to extract a value from those objects for the output result.",""," To extract additional information from the JSON, include an array of"," path locators in _schema.metaFields_. The collected values will be"," stored in `response.meta`.","",""," @example"," // Process array of arrays"," var schema = {"," resultListLocator: 'produce.fruit',"," resultFields: [ 'name', 'color' ]"," },"," data = {"," produce: {"," fruit: ["," [ 'Banana', 'yellow' ],"," [ 'Orange', 'orange' ],"," [ 'Eggplant', 'purple' ]"," ]"," }"," };",""," var response = Y.DataSchema.JSON.apply(schema, data);",""," // response.results[0] is { name: \"Banana\", color: \"yellow\" }","",""," // Process array of objects + some metadata"," schema.metaFields = [ 'lastInventory' ];",""," data = {"," produce: {"," fruit: ["," { name: 'Banana', color: 'yellow', price: '1.96' },"," { name: 'Orange', color: 'orange', price: '2.04' },"," { name: 'Eggplant', color: 'purple', price: '4.31' }"," ]"," },"," lastInventory: '2011-07-19'"," };",""," response = Y.DataSchema.JSON.apply(schema, data);",""," // response.results[0] is { name: \"Banana\", color: \"yellow\" }"," // response.meta.lastInventory is '2001-07-19'","",""," // Use parsers"," schema.resultFields = ["," {"," key: 'name',"," parser: function (val) { return val.toUpperCase(); }"," },"," {"," key: 'price',"," parser: 'number' // Uses Y.Parsers.number"," }"," ];",""," response = Y.DataSchema.JSON.apply(schema, data);",""," // Note price was converted from a numeric string to a number"," // response.results[0] looks like { fruit: \"BANANA\", price: 1.96 }",""," @method apply"," @param {Object} [schema] Schema to apply. Supported configuration"," properties are:"," @param {String} [schema.resultListLocator] Path locator for the"," location of the array of records to flatten into `response.results`"," @param {Array} [schema.resultFields] Field identifiers to"," locate/assign values in the response records. See above for"," details."," @param {Array} [schema.metaFields] Path locators to extract extra"," non-record related information from the data object."," @param {Object|Array|String} data JSON data or its string serialization."," @return {Object} An Object with properties `results` and `meta`"," @static"," **/"," apply: function(schema, data) {"," var data_in = data,"," data_out = { results: [], meta: {} };",""," // Convert incoming JSON strings"," if (!isObject(data)) {"," try {"," data_in = Y.JSON.parse(data);"," }"," catch(e) {"," data_out.error = e;"," return data_out;"," }"," }",""," if (isObject(data_in) && schema) {"," // Parse results data"," data_out = SchemaJSON._parseResults.call(this, schema, data_in, data_out);",""," // Parse meta data"," if (schema.metaFields !== undefined) {"," data_out = SchemaJSON._parseMeta(schema.metaFields, data_in, data_out);"," }"," }"," else {"," data_out.error = new Error(\"JSON schema parse failure\");"," }",""," return data_out;"," },",""," /**"," * Schema-parsed list of results from full data"," *"," * @method _parseResults"," * @param schema {Object} Schema to parse against."," * @param json_in {Object} JSON to parse."," * @param data_out {Object} In-progress parsed data to update."," * @return {Object} Parsed data object."," * @static"," * @protected"," */"," _parseResults: function(schema, json_in, data_out) {"," var getPath = SchemaJSON.getPath,"," getValue = SchemaJSON.getLocationValue,"," path = getPath(schema.resultListLocator),"," results = path ?"," (getValue(path, json_in) ||"," // Fall back to treat resultListLocator as a simple key"," json_in[schema.resultListLocator]) :"," // Or if no resultListLocator is supplied, use the input"," json_in;",""," if (isArray(results)) {"," // if no result fields are passed in, then just take"," // the results array whole-hog Sometimes you're getting"," // an array of strings, or want the whole object, so"," // resultFields don't make sense."," if (isArray(schema.resultFields)) {"," data_out = SchemaJSON._getFieldValues.call(this, schema.resultFields, results, data_out);"," } else {"," data_out.results = results;"," }"," } else if (schema.resultListLocator) {"," data_out.results = [];"," data_out.error = new Error(\"JSON results retrieval failure\");"," }",""," return data_out;"," },",""," /**"," * Get field data values out of list of full results"," *"," * @method _getFieldValues"," * @param fields {Array} Fields to find."," * @param array_in {Array} Results to parse."," * @param data_out {Object} In-progress parsed data to update."," * @return {Object} Parsed data object."," * @static"," * @protected"," */"," _getFieldValues: function(fields, array_in, data_out) {"," var results = [],"," len = fields.length,"," i, j,"," field, key, locator, path, parser, val,"," simplePaths = [], complexPaths = [], fieldParsers = [],"," result, record;",""," // First collect hashes of simple paths, complex paths, and parsers"," for (i=0; i<len; i++) {"," field = fields[i]; // A field can be a simple string or a hash"," key = field.key || field; // Find the key"," locator = field.locator || key; // Find the locator",""," // Validate and store locators for later"," path = SchemaJSON.getPath(locator);"," if (path) {"," if (path.length === 1) {"," simplePaths.push({"," key : key,"," path: path[0]"," });"," } else {"," complexPaths.push({"," key : key,"," path : path,"," locator: locator"," });"," }"," } else {"," }",""," // Validate and store parsers for later"," //TODO: use Y.DataSchema.parse?"," parser = (isFunction(field.parser)) ?"," field.parser :"," Y.Parsers[field.parser + ''];",""," if (parser) {"," fieldParsers.push({"," key : key,"," parser: parser"," });"," }"," }",""," // Traverse list of array_in, creating records of simple fields,"," // complex fields, and applying parsers as necessary"," for (i=array_in.length-1; i>=0; --i) {"," record = {};"," result = array_in[i];"," if(result) {"," // Cycle through complexLocators"," for (j=complexPaths.length - 1; j>=0; --j) {"," path = complexPaths[j];"," val = SchemaJSON.getLocationValue(path.path, result);"," if (val === undefined) {"," val = SchemaJSON.getLocationValue([path.locator], result);"," // Fail over keys like \"foo.bar\" from nested parsing"," // to single token parsing if a value is found in"," // results[\"foo.bar\"]"," if (val !== undefined) {"," simplePaths.push({"," key: path.key,"," path: path.locator"," });"," // Don't try to process the path as complex"," // for further results"," complexPaths.splice(i,1);"," continue;"," }"," }",""," record[path.key] = Base.parse.call(this,"," (SchemaJSON.getLocationValue(path.path, result)), path);"," }",""," // Cycle through simpleLocators"," for (j = simplePaths.length - 1; j >= 0; --j) {"," path = simplePaths[j];"," // Bug 1777850: The result might be an array instead of object"," record[path.key] = Base.parse.call(this,"," ((result[path.path] === undefined) ?"," result[j] : result[path.path]), path);"," }",""," // Cycle through fieldParsers"," for (j=fieldParsers.length-1; j>=0; --j) {"," key = fieldParsers[j].key;"," record[key] = fieldParsers[j].parser.call(this, record[key]);"," // Safety net"," if (record[key] === undefined) {"," record[key] = null;"," }"," }"," results[i] = record;"," }"," }"," data_out.results = results;"," return data_out;"," },",""," /**"," * Parses results data according to schema"," *"," * @method _parseMeta"," * @param metaFields {Object} Metafields definitions."," * @param json_in {Object} JSON to parse."," * @param data_out {Object} In-progress parsed data to update."," * @return {Object} Schema-parsed meta data."," * @static"," * @protected"," */"," _parseMeta: function(metaFields, json_in, data_out) {"," if (isObject(metaFields)) {"," var key, path;"," for(key in metaFields) {"," if (metaFields.hasOwnProperty(key)) {"," path = SchemaJSON.getPath(metaFields[key]);"," if (path && json_in) {"," data_out.meta[key] = SchemaJSON.getLocationValue(path, json_in);"," }"," }"," }"," }"," else {"," data_out.error = new Error(\"JSON meta data retrieval failure\");"," }"," return data_out;"," }","};","","// TODO: Y.Object + mix() might be better here","Y.DataSchema.JSON = Y.mix(SchemaJSON, Base);","","","}, '@VERSION@', {\"requires\": [\"dataschema-base\", \"json\"]});","","}());"]}; } var __cov_GxUuHPQ8FEO1Q4S85u1HAw = __coverage__['build/dataschema-json/dataschema-json.js']; __cov_GxUuHPQ8FEO1Q4S85u1HAw.s['1']++;YUI.add('dataschema-json',function(Y,NAME){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['1']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['2']++;var LANG=Y.Lang,isFunction=LANG.isFunction,isObject=LANG.isObject,isArray=LANG.isArray,Base=Y.DataSchema.Base,SchemaJSON;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['3']++;SchemaJSON={getPath:function(locator){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['2']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['4']++;var path=null,keys=[],i=0;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['5']++;if(locator){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['1'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['6']++;locator=locator.replace(/\[\s*(['"])(.*?)\1\s*\]/g,function(x,$1,$2){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['3']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['7']++;keys[i]=$2;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['8']++;return'.@'+i++;}).replace(/\[(\d+)\]/g,function(x,$1){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['4']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['9']++;keys[i]=parseInt($1,10)|0;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['10']++;return'.@'+i++;}).replace(/^\./,'');__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['11']++;path=locator.split('.');__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['12']++;for(i=path.length-1;i>=0;--i){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['13']++;if(path[i].charAt(0)==='@'){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['2'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['14']++;path[i]=keys[parseInt(path[i].substr(1),10)];}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['2'][1]++;}}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['1'][1]++;}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['15']++;return path;},getLocationValue:function(path,data){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['5']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['16']++;var i=0,len=path.length;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['17']++;for(;i<len;i++){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['18']++;if((__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['4'][0]++,isObject(data))&&(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['4'][1]++,path[i]in data)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['3'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['19']++;data=data[path[i]];}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['3'][1]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['20']++;data=undefined;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['21']++;break;}}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['22']++;return data;},apply:function(schema,data){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['6']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['23']++;var data_in=data,data_out={results:[],meta:{}};__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['24']++;if(!isObject(data)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['5'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['25']++;try{__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['26']++;data_in=Y.JSON.parse(data);}catch(e){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['27']++;data_out.error=e;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['28']++;return data_out;}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['5'][1]++;}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['29']++;if((__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['7'][0]++,isObject(data_in))&&(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['7'][1]++,schema)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['6'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['30']++;data_out=SchemaJSON._parseResults.call(this,schema,data_in,data_out);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['31']++;if(schema.metaFields!==undefined){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['8'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['32']++;data_out=SchemaJSON._parseMeta(schema.metaFields,data_in,data_out);}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['8'][1]++;}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['6'][1]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['33']++;data_out.error=new Error('JSON schema parse failure');}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['34']++;return data_out;},_parseResults:function(schema,json_in,data_out){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['7']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['35']++;var getPath=SchemaJSON.getPath,getValue=SchemaJSON.getLocationValue,path=getPath(schema.resultListLocator),results=path?(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['9'][0]++,(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['10'][0]++,getValue(path,json_in))||(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['10'][1]++,json_in[schema.resultListLocator])):(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['9'][1]++,json_in);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['36']++;if(isArray(results)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['11'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['37']++;if(isArray(schema.resultFields)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['12'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['38']++;data_out=SchemaJSON._getFieldValues.call(this,schema.resultFields,results,data_out);}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['12'][1]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['39']++;data_out.results=results;}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['11'][1]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['40']++;if(schema.resultListLocator){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['13'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['41']++;data_out.results=[];__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['42']++;data_out.error=new Error('JSON results retrieval failure');}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['13'][1]++;}}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['43']++;return data_out;},_getFieldValues:function(fields,array_in,data_out){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['8']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['44']++;var results=[],len=fields.length,i,j,field,key,locator,path,parser,val,simplePaths=[],complexPaths=[],fieldParsers=[],result,record;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['45']++;for(i=0;i<len;i++){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['46']++;field=fields[i];__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['47']++;key=(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['14'][0]++,field.key)||(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['14'][1]++,field);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['48']++;locator=(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['15'][0]++,field.locator)||(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['15'][1]++,key);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['49']++;path=SchemaJSON.getPath(locator);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['50']++;if(path){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['16'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['51']++;if(path.length===1){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['17'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['52']++;simplePaths.push({key:key,path:path[0]});}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['17'][1]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['53']++;complexPaths.push({key:key,path:path,locator:locator});}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['16'][1]++;}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['54']++;parser=isFunction(field.parser)?(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['18'][0]++,field.parser):(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['18'][1]++,Y.Parsers[field.parser+'']);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['55']++;if(parser){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['19'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['56']++;fieldParsers.push({key:key,parser:parser});}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['19'][1]++;}}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['57']++;for(i=array_in.length-1;i>=0;--i){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['58']++;record={};__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['59']++;result=array_in[i];__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['60']++;if(result){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['20'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['61']++;for(j=complexPaths.length-1;j>=0;--j){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['62']++;path=complexPaths[j];__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['63']++;val=SchemaJSON.getLocationValue(path.path,result);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['64']++;if(val===undefined){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['21'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['65']++;val=SchemaJSON.getLocationValue([path.locator],result);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['66']++;if(val!==undefined){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['22'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['67']++;simplePaths.push({key:path.key,path:path.locator});__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['68']++;complexPaths.splice(i,1);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['69']++;continue;}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['22'][1]++;}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['21'][1]++;}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['70']++;record[path.key]=Base.parse.call(this,SchemaJSON.getLocationValue(path.path,result),path);}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['71']++;for(j=simplePaths.length-1;j>=0;--j){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['72']++;path=simplePaths[j];__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['73']++;record[path.key]=Base.parse.call(this,result[path.path]===undefined?(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['23'][0]++,result[j]):(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['23'][1]++,result[path.path]),path);}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['74']++;for(j=fieldParsers.length-1;j>=0;--j){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['75']++;key=fieldParsers[j].key;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['76']++;record[key]=fieldParsers[j].parser.call(this,record[key]);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['77']++;if(record[key]===undefined){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['24'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['78']++;record[key]=null;}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['24'][1]++;}}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['79']++;results[i]=record;}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['20'][1]++;}}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['80']++;data_out.results=results;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['81']++;return data_out;},_parseMeta:function(metaFields,json_in,data_out){__cov_GxUuHPQ8FEO1Q4S85u1HAw.f['9']++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['82']++;if(isObject(metaFields)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['25'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['83']++;var key,path;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['84']++;for(key in metaFields){__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['85']++;if(metaFields.hasOwnProperty(key)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['26'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['86']++;path=SchemaJSON.getPath(metaFields[key]);__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['87']++;if((__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['28'][0]++,path)&&(__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['28'][1]++,json_in)){__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['27'][0]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['88']++;data_out.meta[key]=SchemaJSON.getLocationValue(path,json_in);}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['27'][1]++;}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['26'][1]++;}}}else{__cov_GxUuHPQ8FEO1Q4S85u1HAw.b['25'][1]++;__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['89']++;data_out.error=new Error('JSON meta data retrieval failure');}__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['90']++;return data_out;}};__cov_GxUuHPQ8FEO1Q4S85u1HAw.s['91']++;Y.DataSchema.JSON=Y.mix(SchemaJSON,Base);},'@VERSION@',{'requires':['dataschema-base','json']});
viskin/cdnjs
ajax/libs/yui/3.18.1/dataschema-json/dataschema-json-coverage.js
JavaScript
mit
40,415
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = function(src, name, line){ var coverage = _yuitest_coverage[src], funcId = name + ":" + line; if (!coverage.functions[funcId]){ coverage.calledFunctions++; } coverage.functions[funcId]++; }; } _yuitest_coverage["build/yql/yql.js"] = { lines: {}, functions: {}, coveredLines: 0, calledLines: 0, coveredFunctions: 0, calledFunctions: 0, path: "build/yql/yql.js", code: [] }; _yuitest_coverage["build/yql/yql.js"].code=["YUI.add('yql', function (Y, NAME) {","","/**"," * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/)."," * @module yql"," */","/**"," * Utility Class used under the hood my the YQL class"," * @class YQLRequest"," * @constructor"," * @param {String} sql The SQL statement to execute"," * @param {Function/Object} callback The callback to execute after the query (Falls through to JSONP)."," * @param {Object} params An object literal of extra parameters to pass along (optional)."," * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)"," */","var YQLRequest = function (sql, callback, params, opts) {",""," if (!params) {"," params = {};"," }"," params.q = sql;"," //Allow format override.. JSON-P-X"," if (!params.format) {"," params.format = Y.YQLRequest.FORMAT;"," }"," if (!params.env) {"," params.env = Y.YQLRequest.ENV;"," }",""," this._context = this;",""," if (opts && opts.context) {"," this._context = opts.context;"," delete opts.context;"," }",""," if (params && params.context) {"," this._context = params.context;"," delete params.context;"," }",""," this._params = params;"," this._opts = opts;"," this._callback = callback;","","};","","YQLRequest.prototype = {"," /**"," * @private"," * @property _jsonp"," * @description Reference to the JSONP instance used to make the queries"," */"," _jsonp: null,"," /**"," * @private"," * @property _opts"," * @description Holder for the opts argument"," */"," _opts: null,"," /**"," * @private"," * @property _callback"," * @description Holder for the callback argument"," */"," _callback: null,"," /**"," * @private"," * @property _params"," * @description Holder for the params argument"," */"," _params: null,"," /**"," * @private"," * @property _context"," * @description The context to execute the callback in"," */"," _context: null,"," /**"," * @private"," * @method _internal"," * @description Internal Callback Handler"," */"," _internal: function () {"," this._callback.apply(this._context, arguments);"," },"," /**"," * @method send"," * @description The method that executes the YQL Request."," * @chainable"," * @return {YQLRequest}"," */"," send: function () {"," var qs = [], url = ((this._opts && this._opts.proto) ? this._opts.proto : Y.YQLRequest.PROTO), o;",""," Y.each(this._params, function (v, k) {"," qs.push(k + '=' + encodeURIComponent(v));"," });",""," qs = qs.join('&');",""," url += ((this._opts && this._opts.base) ? this._opts.base : Y.YQLRequest.BASE_URL) + qs;",""," o = (!Y.Lang.isFunction(this._callback)) ? this._callback : { on: { success: this._callback } };",""," o.on = o.on || {};"," this._callback = o.on.success;",""," o.on.success = Y.bind(this._internal, this);",""," this._send(url, o);"," return this;"," },"," /**"," * Private method to send the request, overwritten in plugins"," * @method _send"," * @private"," * @param {String} url The URL to request"," * @param {Object} o The config object"," */"," _send: function(url, o) {"," if (o.allowCache !== false) {"," o.allowCache = true;"," }"," if (!this._jsonp) {"," this._jsonp = Y.jsonp(url, o);"," } else {"," this._jsonp.url = url;"," if (o.on && o.on.success) {"," this._jsonp._config.on.success = o.on.success;"," }"," this._jsonp.send();"," }"," }","};","","/**","* @static","* @property FORMAT","* @description Default format to use: json","*/","YQLRequest.FORMAT = 'json';","/**","* @static","* @property PROTO","* @description Default protocol to use: http","*/","YQLRequest.PROTO = 'http';","/**","* @static","* @property BASE_URL","* @description The base URL to query: query.yahooapis.com/v1/public/yql?","*/","YQLRequest.BASE_URL = ':/' + '/query.yahooapis.com/v1/public/yql?';","/**","* @static","* @property ENV","* @description The environment file to load: http://datatables.org/alltables.env","*/","YQLRequest.ENV = 'http:/' + '/datatables.org/alltables.env';","","Y.YQLRequest = YQLRequest;","","/**"," * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/)."," * @class YQL"," * @constructor"," * @param {String} sql The SQL statement to execute"," * @param {Function} callback The callback to execute after the query (optional)."," * @param {Object} params An object literal of extra parameters to pass along (optional)."," * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)"," */","Y.YQL = function (sql, callback, params, opts) {"," return new Y.YQLRequest(sql, callback, params, opts).send();","};","","","}, '@VERSION@', {\"requires\": [\"jsonp\", \"jsonp-url\"]});"]; _yuitest_coverage["build/yql/yql.js"].lines = {"1":0,"16":0,"18":0,"19":0,"21":0,"23":0,"24":0,"26":0,"27":0,"30":0,"32":0,"33":0,"34":0,"37":0,"38":0,"39":0,"42":0,"43":0,"44":0,"48":0,"85":0,"94":0,"96":0,"97":0,"100":0,"102":0,"104":0,"106":0,"107":0,"109":0,"111":0,"112":0,"122":0,"123":0,"125":0,"126":0,"128":0,"129":0,"130":0,"132":0,"142":0,"148":0,"154":0,"160":0,"162":0,"173":0,"174":0}; _yuitest_coverage["build/yql/yql.js"].functions = {"YQLRequest:16":0,"_internal:84":0,"(anonymous 2):96":0,"send:93":0,"_send:121":0,"YQL:173":0,"(anonymous 1):1":0}; _yuitest_coverage["build/yql/yql.js"].coveredLines = 47; _yuitest_coverage["build/yql/yql.js"].coveredFunctions = 7; _yuitest_coverline("build/yql/yql.js", 1); YUI.add('yql', function (Y, NAME) { /** * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/). * @module yql */ /** * Utility Class used under the hood my the YQL class * @class YQLRequest * @constructor * @param {String} sql The SQL statement to execute * @param {Function/Object} callback The callback to execute after the query (Falls through to JSONP). * @param {Object} params An object literal of extra parameters to pass along (optional). * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url) */ _yuitest_coverfunc("build/yql/yql.js", "(anonymous 1)", 1); _yuitest_coverline("build/yql/yql.js", 16); var YQLRequest = function (sql, callback, params, opts) { _yuitest_coverfunc("build/yql/yql.js", "YQLRequest", 16); _yuitest_coverline("build/yql/yql.js", 18); if (!params) { _yuitest_coverline("build/yql/yql.js", 19); params = {}; } _yuitest_coverline("build/yql/yql.js", 21); params.q = sql; //Allow format override.. JSON-P-X _yuitest_coverline("build/yql/yql.js", 23); if (!params.format) { _yuitest_coverline("build/yql/yql.js", 24); params.format = Y.YQLRequest.FORMAT; } _yuitest_coverline("build/yql/yql.js", 26); if (!params.env) { _yuitest_coverline("build/yql/yql.js", 27); params.env = Y.YQLRequest.ENV; } _yuitest_coverline("build/yql/yql.js", 30); this._context = this; _yuitest_coverline("build/yql/yql.js", 32); if (opts && opts.context) { _yuitest_coverline("build/yql/yql.js", 33); this._context = opts.context; _yuitest_coverline("build/yql/yql.js", 34); delete opts.context; } _yuitest_coverline("build/yql/yql.js", 37); if (params && params.context) { _yuitest_coverline("build/yql/yql.js", 38); this._context = params.context; _yuitest_coverline("build/yql/yql.js", 39); delete params.context; } _yuitest_coverline("build/yql/yql.js", 42); this._params = params; _yuitest_coverline("build/yql/yql.js", 43); this._opts = opts; _yuitest_coverline("build/yql/yql.js", 44); this._callback = callback; }; _yuitest_coverline("build/yql/yql.js", 48); YQLRequest.prototype = { /** * @private * @property _jsonp * @description Reference to the JSONP instance used to make the queries */ _jsonp: null, /** * @private * @property _opts * @description Holder for the opts argument */ _opts: null, /** * @private * @property _callback * @description Holder for the callback argument */ _callback: null, /** * @private * @property _params * @description Holder for the params argument */ _params: null, /** * @private * @property _context * @description The context to execute the callback in */ _context: null, /** * @private * @method _internal * @description Internal Callback Handler */ _internal: function () { _yuitest_coverfunc("build/yql/yql.js", "_internal", 84); _yuitest_coverline("build/yql/yql.js", 85); this._callback.apply(this._context, arguments); }, /** * @method send * @description The method that executes the YQL Request. * @chainable * @return {YQLRequest} */ send: function () { _yuitest_coverfunc("build/yql/yql.js", "send", 93); _yuitest_coverline("build/yql/yql.js", 94); var qs = [], url = ((this._opts && this._opts.proto) ? this._opts.proto : Y.YQLRequest.PROTO), o; _yuitest_coverline("build/yql/yql.js", 96); Y.each(this._params, function (v, k) { _yuitest_coverfunc("build/yql/yql.js", "(anonymous 2)", 96); _yuitest_coverline("build/yql/yql.js", 97); qs.push(k + '=' + encodeURIComponent(v)); }); _yuitest_coverline("build/yql/yql.js", 100); qs = qs.join('&'); _yuitest_coverline("build/yql/yql.js", 102); url += ((this._opts && this._opts.base) ? this._opts.base : Y.YQLRequest.BASE_URL) + qs; _yuitest_coverline("build/yql/yql.js", 104); o = (!Y.Lang.isFunction(this._callback)) ? this._callback : { on: { success: this._callback } }; _yuitest_coverline("build/yql/yql.js", 106); o.on = o.on || {}; _yuitest_coverline("build/yql/yql.js", 107); this._callback = o.on.success; _yuitest_coverline("build/yql/yql.js", 109); o.on.success = Y.bind(this._internal, this); _yuitest_coverline("build/yql/yql.js", 111); this._send(url, o); _yuitest_coverline("build/yql/yql.js", 112); return this; }, /** * Private method to send the request, overwritten in plugins * @method _send * @private * @param {String} url The URL to request * @param {Object} o The config object */ _send: function(url, o) { _yuitest_coverfunc("build/yql/yql.js", "_send", 121); _yuitest_coverline("build/yql/yql.js", 122); if (o.allowCache !== false) { _yuitest_coverline("build/yql/yql.js", 123); o.allowCache = true; } _yuitest_coverline("build/yql/yql.js", 125); if (!this._jsonp) { _yuitest_coverline("build/yql/yql.js", 126); this._jsonp = Y.jsonp(url, o); } else { _yuitest_coverline("build/yql/yql.js", 128); this._jsonp.url = url; _yuitest_coverline("build/yql/yql.js", 129); if (o.on && o.on.success) { _yuitest_coverline("build/yql/yql.js", 130); this._jsonp._config.on.success = o.on.success; } _yuitest_coverline("build/yql/yql.js", 132); this._jsonp.send(); } } }; /** * @static * @property FORMAT * @description Default format to use: json */ _yuitest_coverline("build/yql/yql.js", 142); YQLRequest.FORMAT = 'json'; /** * @static * @property PROTO * @description Default protocol to use: http */ _yuitest_coverline("build/yql/yql.js", 148); YQLRequest.PROTO = 'http'; /** * @static * @property BASE_URL * @description The base URL to query: query.yahooapis.com/v1/public/yql? */ _yuitest_coverline("build/yql/yql.js", 154); YQLRequest.BASE_URL = ':/' + '/query.yahooapis.com/v1/public/yql?'; /** * @static * @property ENV * @description The environment file to load: http://datatables.org/alltables.env */ _yuitest_coverline("build/yql/yql.js", 160); YQLRequest.ENV = 'http:/' + '/datatables.org/alltables.env'; _yuitest_coverline("build/yql/yql.js", 162); Y.YQLRequest = YQLRequest; /** * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/). * @class YQL * @constructor * @param {String} sql The SQL statement to execute * @param {Function} callback The callback to execute after the query (optional). * @param {Object} params An object literal of extra parameters to pass along (optional). * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url) */ _yuitest_coverline("build/yql/yql.js", 173); Y.YQL = function (sql, callback, params, opts) { _yuitest_coverfunc("build/yql/yql.js", "YQL", 173); _yuitest_coverline("build/yql/yql.js", 174); return new Y.YQLRequest(sql, callback, params, opts).send(); }; }, '@VERSION@', {"requires": ["jsonp", "jsonp-url"]});
jdh8/cdnjs
ajax/libs/yui/3.8.0pr2/yql/yql-coverage.js
JavaScript
mit
13,844
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/dataschema-base/dataschema-base.js']) { __coverage__['build/dataschema-base/dataschema-base.js'] = {"path":"build/dataschema-base/dataschema-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0]},"f":{"1":0,"2":0,"3":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":36,"loc":{"start":{"line":36,"column":11},"end":{"line":36,"column":34}}},"3":{"name":"(anonymous_3)","line":48,"loc":{"start":{"line":48,"column":11},"end":{"line":48,"column":34}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":66,"column":40}},"2":{"start":{"line":20,"column":0},"end":{"line":60,"column":2}},"3":{"start":{"line":37,"column":8},"end":{"line":37,"column":20}},"4":{"start":{"line":49,"column":8},"end":{"line":57,"column":9}},"5":{"start":{"line":50,"column":12},"end":{"line":51,"column":54}},"6":{"start":{"line":52,"column":12},"end":{"line":56,"column":13}},"7":{"start":{"line":53,"column":16},"end":{"line":53,"column":49}},"8":{"start":{"line":58,"column":8},"end":{"line":58,"column":21}},"9":{"start":{"line":62,"column":0},"end":{"line":62,"column":44}},"10":{"start":{"line":63,"column":0},"end":{"line":63,"column":23}}},"branchMap":{"1":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":8},"end":{"line":49,"column":8}},{"start":{"line":49,"column":8},"end":{"line":49,"column":8}}]},"2":{"line":50,"type":"cond-expr","locations":[{"start":{"line":51,"column":12},"end":{"line":51,"column":24}},{"start":{"line":51,"column":27},"end":{"line":51,"column":53}}]},"3":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":12},"end":{"line":52,"column":12}},{"start":{"line":52,"column":12},"end":{"line":52,"column":12}}]}},"code":["(function () { YUI.add('dataschema-base', function (Y, NAME) {","","/**"," * The DataSchema utility provides a common configurable interface for widgets to"," * apply a given schema to a variety of data."," *"," * @module dataschema"," * @main dataschema"," */","","/**"," * Provides the base DataSchema implementation, which can be extended to"," * create DataSchemas for specific data formats, such XML, JSON, text and"," * arrays."," *"," * @module dataschema"," * @submodule dataschema-base"," */","","var LANG = Y.Lang,","/**"," * Base class for the YUI DataSchema Utility."," * @class DataSchema.Base"," * @static"," */"," SchemaBase = {"," /**"," * Overridable method returns data as-is."," *"," * @method apply"," * @param schema {Object} Schema to apply."," * @param data {Object} Data."," * @return {Object} Schema-parsed data."," * @static"," */"," apply: function(schema, data) {"," return data;"," },",""," /**"," * Applies field parser, if defined"," *"," * @method parse"," * @param value {Object} Original value."," * @param field {Object} Field."," * @return {Object} Type-converted value."," */"," parse: function(value, field) {"," if(field.parser) {"," var parser = (LANG.isFunction(field.parser)) ?"," field.parser : Y.Parsers[field.parser+''];"," if(parser) {"," value = parser.call(this, value);"," }"," else {"," }"," }"," return value;"," }","};","","Y.namespace(\"DataSchema\").Base = SchemaBase;","Y.namespace(\"Parsers\");","","","}, '@VERSION@', {\"requires\": [\"base\"]});","","}());"]}; } var __cov_ogg_CNcIcpOXPnOEm1joVQ = __coverage__['build/dataschema-base/dataschema-base.js']; __cov_ogg_CNcIcpOXPnOEm1joVQ.s['1']++;YUI.add('dataschema-base',function(Y,NAME){__cov_ogg_CNcIcpOXPnOEm1joVQ.f['1']++;__cov_ogg_CNcIcpOXPnOEm1joVQ.s['2']++;var LANG=Y.Lang,SchemaBase={apply:function(schema,data){__cov_ogg_CNcIcpOXPnOEm1joVQ.f['2']++;__cov_ogg_CNcIcpOXPnOEm1joVQ.s['3']++;return data;},parse:function(value,field){__cov_ogg_CNcIcpOXPnOEm1joVQ.f['3']++;__cov_ogg_CNcIcpOXPnOEm1joVQ.s['4']++;if(field.parser){__cov_ogg_CNcIcpOXPnOEm1joVQ.b['1'][0]++;__cov_ogg_CNcIcpOXPnOEm1joVQ.s['5']++;var parser=LANG.isFunction(field.parser)?(__cov_ogg_CNcIcpOXPnOEm1joVQ.b['2'][0]++,field.parser):(__cov_ogg_CNcIcpOXPnOEm1joVQ.b['2'][1]++,Y.Parsers[field.parser+'']);__cov_ogg_CNcIcpOXPnOEm1joVQ.s['6']++;if(parser){__cov_ogg_CNcIcpOXPnOEm1joVQ.b['3'][0]++;__cov_ogg_CNcIcpOXPnOEm1joVQ.s['7']++;value=parser.call(this,value);}else{__cov_ogg_CNcIcpOXPnOEm1joVQ.b['3'][1]++;}}else{__cov_ogg_CNcIcpOXPnOEm1joVQ.b['1'][1]++;}__cov_ogg_CNcIcpOXPnOEm1joVQ.s['8']++;return value;}};__cov_ogg_CNcIcpOXPnOEm1joVQ.s['9']++;Y.namespace('DataSchema').Base=SchemaBase;__cov_ogg_CNcIcpOXPnOEm1joVQ.s['10']++;Y.namespace('Parsers');},'@VERSION@',{'requires':['base']});
maxklenk/cdnjs
ajax/libs/yui/3.14.0/dataschema-base/dataschema-base-coverage.js
JavaScript
mit
4,889
YUI.add('recordset-sort', function (Y, NAME) { /** * Adds default and custom sorting functionality to the Recordset utility * @module recordset * @submodule recordset-sort */ var Compare = Y.ArraySort.compare, isValue = Y.Lang.isValue; /** * Plugin that adds default and custom sorting functionality to the Recordset utility * @class RecordsetSort */ function RecordsetSort(field, desc, sorter) { RecordsetSort.superclass.constructor.apply(this, arguments); } Y.mix(RecordsetSort, { NS: "sort", NAME: "recordsetSort", ATTRS: { /** * @description The last properties used to sort. Consists of an object literal with the keys "field", "desc", and "sorter" * * @attribute lastSortProperties * @public * @type object */ lastSortProperties: { value: { field: undefined, desc: true, sorter: undefined }, validator: function(v) { return (isValue(v.field) && isValue(v.desc) && isValue(v.sorter)); } }, /** * @description Default sort function to use if none is specified by the user. * Takes two records, the key to sort by, and whether sorting direction is descending or not (boolean). * If two records have the same value for a given key, the ID is used as the tie-breaker. * * @attribute defaultSorter * @public * @type function */ defaultSorter: { value: function(recA, recB, field, desc) { var sorted = Compare(recA.getValue(field), recB.getValue(field), desc); if (sorted === 0) { return Compare(recA.get("id"), recB.get("id"), desc); } else { return sorted; } } }, /** * @description A boolean telling if the recordset is in a sorted state. * * @attribute defaultSorter * @public * @type function */ isSorted: { value: false } } }); Y.extend(RecordsetSort, Y.Plugin.Base, { /** * @description Sets up the default function to use when the "sort" event is fired. * * @method initializer * @protected */ initializer: function(config) { var self = this, host = this.get('host'); this.publish("sort", { defaultFn: Y.bind("_defSortFn", this) }); //Toggle the isSorted ATTR based on events. //Remove events dont affect isSorted, as they are just popped/sliced out this.on("sort", function() { self.set('isSorted', true); }); this.onHostEvent('add', function() { self.set('isSorted', false); }, host); this.onHostEvent('update', function() { self.set('isSorted', false); }, host); }, destructor: function(config) { }, /** * @description Method that all sort calls go through. * Sets up the lastSortProperties object with the details of the sort, and passes in parameters * to the "defaultSorter" or a custom specified sort function. * * @method _defSortFn * @private */ _defSortFn: function(e) { //have to work directly with _items here - changing the recordset. this.get("host")._items.sort(function(a, b) { return (e.sorter)(a, b, e.field, e.desc); }); this.set('lastSortProperties', e); }, /** * @description Sorts the recordset. * * @method sort * @param field {string} A key to sort by. * @param desc {boolean} True if you want sort order to be descending, false if you want sort order to be ascending * @public */ sort: function(field, desc, sorter) { this.fire("sort", { field: field, desc: desc, sorter: sorter || this.get("defaultSorter") }); }, /** * @description Resorts the recordset based on the last-used sort parameters (stored in 'lastSortProperties' ATTR) * * @method resort * @public */ resort: function() { var p = this.get('lastSortProperties'); this.fire("sort", { field: p.field, desc: p.desc, sorter: p.sorter || this.get("defaultSorter") }); }, /** * @description Reverses the recordset calling the standard array.reverse() method. * * @method reverse * @public */ reverse: function() { this.get('host')._items.reverse(); }, /** * @description Sorts the recordset based on the last-used sort parameters, but flips the order. (ie: Descending becomes ascending, and vice versa). * * @method flip * @public */ flip: function() { var p = this.get('lastSortProperties'); //If a predefined field is not provided by which to sort by, throw an error if (isValue(p.field)) { this.fire("sort", { field: p.field, desc: !p.desc, sorter: p.sorter || this.get("defaultSorter") }); } else { Y.log('You called flip before setting a field by which to sort by. Maybe you meant to call reverse().'); } } }); Y.namespace("Plugin").RecordsetSort = RecordsetSort; }, '@VERSION@', {"requires": ["arraysort", "recordset-base", "plugin"]});
stefanneculai/cdnjs
ajax/libs/yui/3.14.1/recordset-sort/recordset-sort-debug.js
JavaScript
mit
5,623
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2015, British Columbia Institute of Technology * * 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. * * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) * @license http://opensource.org/licenses/MIT MIT License * @link http://codeigniter.com * @since Version 2.1.0 * @filesource */ defined('BASEPATH') OR exit('No direct script access allowed'); /** * CUBRID Database Adapter Class * * Note: _DB is an extender class that the app controller * creates dynamically based on whether the query builder * class is being used or not. * * @package CodeIgniter * @subpackage Drivers * @category Database * @author Esen Sagynov * @link http://codeigniter.com/user_guide/database/ */ class CI_DB_cubrid_driver extends CI_DB { /** * Database driver * * @var string */ public $dbdriver = 'cubrid'; /** * Auto-commit flag * * @var bool */ public $auto_commit = TRUE; // -------------------------------------------------------------------- /** * Identifier escape character * * @var string */ protected $_escape_char = '`'; /** * ORDER BY random keyword * * @var array */ protected $_random_keyword = array('RANDOM()', 'RANDOM(%d)'); // -------------------------------------------------------------------- /** * Class constructor * * @param array $params * @return void */ public function __construct($params) { parent::__construct($params); if (preg_match('/^CUBRID:[^:]+(:[0-9][1-9]{0,4})?:[^:]+:[^:]*:[^:]*:(\?.+)?$/', $this->dsn, $matches)) { if (stripos($matches[2], 'autocommit=off') !== FALSE) { $this->auto_commit = FALSE; } } else { // If no port is defined by the user, use the default value empty($this->port) OR $this->port = 33000; } } // -------------------------------------------------------------------- /** * Non-persistent database connection * * @param bool $persistent * @return resource */ public function db_connect($persistent = FALSE) { if (preg_match('/^CUBRID:[^:]+(:[0-9][1-9]{0,4})?:[^:]+:([^:]*):([^:]*):(\?.+)?$/', $this->dsn, $matches)) { $func = ($persistent !== TRUE) ? 'cubrid_connect_with_url' : 'cubrid_pconnect_with_url'; return ($matches[2] === '' && $matches[3] === '' && $this->username !== '' && $this->password !== '') ? $func($this->dsn, $this->username, $this->password) : $func($this->dsn); } $func = ($persistent !== TRUE) ? 'cubrid_connect' : 'cubrid_pconnect'; return ($this->username !== '') ? $func($this->hostname, $this->port, $this->database, $this->username, $this->password) : $func($this->hostname, $this->port, $this->database); } // -------------------------------------------------------------------- /** * Reconnect * * Keep / reestablish the db connection if no queries have been * sent for a length of time exceeding the server's idle timeout * * @return void */ public function reconnect() { if (cubrid_ping($this->conn_id) === FALSE) { $this->conn_id = FALSE; } } // -------------------------------------------------------------------- /** * Database version number * * @return string */ public function version() { if (isset($this->data_cache['version'])) { return $this->data_cache['version']; } return ( ! $this->conn_id OR ($version = cubrid_get_server_info($this->conn_id)) === FALSE) ? FALSE : $this->data_cache['version'] = $version; } // -------------------------------------------------------------------- /** * Execute the query * * @param string $sql an SQL query * @return resource */ protected function _execute($sql) { return cubrid_query($sql, $this->conn_id); } // -------------------------------------------------------------------- /** * Begin Transaction * * @param bool $test_mode * @return bool */ public function trans_begin($test_mode = FALSE) { // When transactions are nested we only begin/commit/rollback the outermost ones if ( ! $this->trans_enabled OR $this->_trans_depth > 0) { return TRUE; } // Reset the transaction failure flag. // If the $test_mode flag is set to TRUE transactions will be rolled back // even if the queries produce a successful result. $this->_trans_failure = ($test_mode === TRUE); if (cubrid_get_autocommit($this->conn_id)) { cubrid_set_autocommit($this->conn_id, CUBRID_AUTOCOMMIT_FALSE); } return TRUE; } // -------------------------------------------------------------------- /** * Commit Transaction * * @return bool */ public function trans_commit() { // When transactions are nested we only begin/commit/rollback the outermost ones if ( ! $this->trans_enabled OR $this->_trans_depth > 0) { return TRUE; } cubrid_commit($this->conn_id); if ($this->auto_commit && ! cubrid_get_autocommit($this->conn_id)) { cubrid_set_autocommit($this->conn_id, CUBRID_AUTOCOMMIT_TRUE); } return TRUE; } // -------------------------------------------------------------------- /** * Rollback Transaction * * @return bool */ public function trans_rollback() { // When transactions are nested we only begin/commit/rollback the outermost ones if ( ! $this->trans_enabled OR $this->_trans_depth > 0) { return TRUE; } cubrid_rollback($this->conn_id); if ($this->auto_commit && ! cubrid_get_autocommit($this->conn_id)) { cubrid_set_autocommit($this->conn_id, CUBRID_AUTOCOMMIT_TRUE); } return TRUE; } // -------------------------------------------------------------------- /** * Platform-dependant string escape * * @param string * @return string */ protected function _escape_str($str) { return cubrid_real_escape_string($str, $this->conn_id); } // -------------------------------------------------------------------- /** * Affected Rows * * @return int */ public function affected_rows() { return cubrid_affected_rows(); } // -------------------------------------------------------------------- /** * Insert ID * * @return int */ public function insert_id() { return cubrid_insert_id($this->conn_id); } // -------------------------------------------------------------------- /** * List table query * * Generates a platform-specific query string so that the table names can be fetched * * @param bool $prefix_limit * @return string */ protected function _list_tables($prefix_limit = FALSE) { $sql = 'SHOW TABLES'; if ($prefix_limit !== FALSE && $this->dbprefix !== '') { return $sql." LIKE '".$this->escape_like_str($this->dbprefix)."%'"; } return $sql; } // -------------------------------------------------------------------- /** * Show column query * * Generates a platform-specific query string so that the column names can be fetched * * @param string $table * @return string */ protected function _list_columns($table = '') { return 'SHOW COLUMNS FROM '.$this->protect_identifiers($table, TRUE, NULL, FALSE); } // -------------------------------------------------------------------- /** * Returns an object with field data * * @param string $table * @return array */ public function field_data($table) { if (($query = $this->query('SHOW COLUMNS FROM '.$this->protect_identifiers($table, TRUE, NULL, FALSE))) === FALSE) { return FALSE; } $query = $query->result_object(); $retval = array(); for ($i = 0, $c = count($query); $i < $c; $i++) { $retval[$i] = new stdClass(); $retval[$i]->name = $query[$i]->Field; sscanf($query[$i]->Type, '%[a-z](%d)', $retval[$i]->type, $retval[$i]->max_length ); $retval[$i]->default = $query[$i]->Default; $retval[$i]->primary_key = (int) ($query[$i]->Key === 'PRI'); } return $retval; } // -------------------------------------------------------------------- /** * Error * * Returns an array containing code and message of the last * database error that has occured. * * @return array */ public function error() { return array('code' => cubrid_errno($this->conn_id), 'message' => cubrid_error($this->conn_id)); } // -------------------------------------------------------------------- /** * FROM tables * * Groups tables in FROM clauses if needed, so there is no confusion * about operator precedence. * * @return string */ protected function _from_tables() { if ( ! empty($this->qb_join) && count($this->qb_from) > 1) { return '('.implode(', ', $this->qb_from).')'; } return implode(', ', $this->qb_from); } // -------------------------------------------------------------------- /** * Close DB Connection * * @return void */ protected function _close() { cubrid_close($this->conn_id); } }
keephopealive/CI_Products
system/database/drivers/cubrid/cubrid_driver.php
PHP
mit
10,134
// Load modules var Url = require('url'); var Hoek = require('hoek'); var Cryptiles = require('cryptiles'); var Crypto = require('./crypto'); var Utils = require('./utils'); // Declare internals var internals = {}; // Generate an Authorization header for a given request /* uri: 'http://example.com/resource?a=b' or object from Url.parse() method: HTTP verb (e.g. 'GET', 'POST') options: { // Required credentials: { id: 'dh37fgj492je', key: 'aoijedoaijsdlaksjdl', algorithm: 'sha256' // 'sha1', 'sha256' }, // Optional ext: 'application-specific', // Application specific data sent via the ext attribute timestamp: Date.now(), // A pre-calculated timestamp nonce: '2334f34f', // A pre-generated nonce localtimeOffsetMsec: 400, // Time offset to sync with server time (ignored if timestamp provided) payload: '{"some":"payload"}', // UTF-8 encoded string for body hash generation (ignored if hash provided) contentType: 'application/json', // Payload content-type (ignored if hash provided) hash: 'U4MKKSmiVxk37JCCrAVIjV=', // Pre-calculated payload hash app: '24s23423f34dx', // Oz application id dlg: '234sz34tww3sd' // Oz delegated-by application id } */ exports.header = function (uri, method, options) { var result = { field: '', artifacts: {} }; // Validate inputs if (!uri || (typeof uri !== 'string' && typeof uri !== 'object') || !method || typeof method !== 'string' || !options || typeof options !== 'object') { result.err = 'Invalid argument type'; return result; } // Application time var timestamp = options.timestamp || Math.floor((Utils.now() + (options.localtimeOffsetMsec || 0)) / 1000) // Validate credentials var credentials = options.credentials; if (!credentials || !credentials.id || !credentials.key || !credentials.algorithm) { result.err = 'Invalid credential object'; return result; } if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { result.err = 'Unknown algorithm'; return result; } // Parse URI if (typeof uri === 'string') { uri = Url.parse(uri); } // Calculate signature var artifacts = { ts: timestamp, nonce: options.nonce || Cryptiles.randomString(6), method: method, resource: uri.pathname + (uri.search || ''), // Maintain trailing '?' host: uri.hostname, port: uri.port || (uri.protocol === 'http:' ? 80 : 443), hash: options.hash, ext: options.ext, app: options.app, dlg: options.dlg }; result.artifacts = artifacts; // Calculate payload hash if (!artifacts.hash && options.hasOwnProperty('payload')) { artifacts.hash = Crypto.calculatePayloadHash(options.payload, credentials.algorithm, options.contentType); } var mac = Crypto.calculateMac('header', credentials, artifacts); // Construct header var hasExt = artifacts.ext !== null && artifacts.ext !== undefined && artifacts.ext !== ''; // Other falsey values allowed var header = 'Hawk id="' + credentials.id + '", ts="' + artifacts.ts + '", nonce="' + artifacts.nonce + (artifacts.hash ? '", hash="' + artifacts.hash : '') + (hasExt ? '", ext="' + Utils.escapeHeaderAttribute(artifacts.ext) : '') + '", mac="' + mac + '"'; if (artifacts.app) { header += ', app="' + artifacts.app + (artifacts.dlg ? '", dlg="' + artifacts.dlg : '') + '"'; } result.field = header; return result; }; // Validate server response /* res: node's response object artifacts: object recieved from header().artifacts options: { payload: optional payload received required: specifies if a Server-Authorization header is required. Defaults to 'false' } */ exports.authenticate = function (res, credentials, artifacts, options) { artifacts = Hoek.clone(artifacts); options = options || {}; if (res.headers['www-authenticate']) { // Parse HTTP WWW-Authenticate header var attributes = Utils.parseAuthorizationHeader(res.headers['www-authenticate'], ['ts', 'tsm', 'error']); if (attributes instanceof Error) { return false; } // Validate server timestamp (not used to update clock since it is done via the SNPT client) if (attributes.ts) { var tsm = Crypto.calculateTsMac(attributes.ts, credentials); if (tsm !== attributes.tsm) { return false; } } } // Parse HTTP Server-Authorization header if (!res.headers['server-authorization'] && !options.required) { return true; } var attributes = Utils.parseAuthorizationHeader(res.headers['server-authorization'], ['mac', 'ext', 'hash']); if (attributes instanceof Error) { return false; } artifacts.ext = attributes.ext; artifacts.hash = attributes.hash; var mac = Crypto.calculateMac('response', credentials, artifacts); if (mac !== attributes.mac) { return false; } if (!options.hasOwnProperty('payload')) { return true; } if (!attributes.hash) { return false; } var calculatedHash = Crypto.calculatePayloadHash(options.payload, credentials.algorithm, res.headers['content-type']); return (calculatedHash === attributes.hash); }; // Generate a bewit value for a given URI /* * credentials is an object with the following keys: 'id, 'key', 'algorithm'. * options is an object with the following optional keys: 'ext', 'localtimeOffsetMsec' */ /* uri: 'http://example.com/resource?a=b' or object from Url.parse() options: { // Required credentials: { id: 'dh37fgj492je', key: 'aoijedoaijsdlaksjdl', algorithm: 'sha256' // 'sha1', 'sha256' }, ttlSec: 60 * 60, // TTL in seconds // Optional ext: 'application-specific', // Application specific data sent via the ext attribute localtimeOffsetMsec: 400 // Time offset to sync with server time }; */ exports.getBewit = function (uri, options) { // Validate inputs if (!uri || (typeof uri !== 'string' && typeof uri !== 'object') || !options || typeof options !== 'object' || !options.ttlSec) { return ''; } options.ext = (options.ext === null || options.ext === undefined ? '' : options.ext); // Zero is valid value // Application time var now = Utils.now() + (options.localtimeOffsetMsec || 0); // Validate credentials var credentials = options.credentials; if (!credentials || !credentials.id || !credentials.key || !credentials.algorithm) { return ''; } if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { return ''; } // Parse URI if (typeof uri === 'string') { uri = Url.parse(uri); } // Calculate signature var exp = Math.floor(now / 1000) + options.ttlSec; var mac = Crypto.calculateMac('bewit', credentials, { ts: exp, nonce: '', method: 'GET', resource: uri.pathname + (uri.search || ''), // Maintain trailing '?' host: uri.hostname, port: uri.port || (uri.protocol === 'http:' ? 80 : 443), ext: options.ext }); // Construct bewit: id\exp\mac\ext var bewit = credentials.id + '\\' + exp + '\\' + mac + '\\' + options.ext; return Utils.base64urlEncode(bewit); }; // Generate an authorization string for a message /* host: 'example.com', port: 8000, message: '{"some":"payload"}', // UTF-8 encoded string for body hash generation options: { // Required credentials: { id: 'dh37fgj492je', key: 'aoijedoaijsdlaksjdl', algorithm: 'sha256' // 'sha1', 'sha256' }, // Optional timestamp: Date.now(), // A pre-calculated timestamp nonce: '2334f34f', // A pre-generated nonce localtimeOffsetMsec: 400, // Time offset to sync with server time (ignored if timestamp provided) } */ exports.message = function (host, port, message, options) { // Validate inputs if (!host || typeof host !== 'string' || !port || typeof port !== 'number' || message === null || message === undefined || typeof message !== 'string' || !options || typeof options !== 'object') { return null; } // Application time var timestamp = options.timestamp || Math.floor((Utils.now() + (options.localtimeOffsetMsec || 0)) / 1000) // Validate credentials var credentials = options.credentials; if (!credentials || !credentials.id || !credentials.key || !credentials.algorithm) { // Invalid credential object return null; } if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { return null; } // Calculate signature var artifacts = { ts: timestamp, nonce: options.nonce || Cryptiles.randomString(6), host: host, port: port, hash: Crypto.calculatePayloadHash(message, credentials.algorithm) }; // Construct authorization var result = { id: credentials.id, ts: artifacts.ts, nonce: artifacts.nonce, hash: artifacts.hash, mac: Crypto.calculateMac('message', credentials, artifacts) }; return result; };
HaoWangNJ/CRM
node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/hawk/lib/client.js
JavaScript
mit
10,416
@keyframes popIn{0%{transform:scale(1,1)}25%{transform:scale(1.2,1)}50%{transform:scale(1.4,1)}100%{transform:scale(1,1)}}@keyframes popOut{0%{transform:scale(1,1)}25%{transform:scale(1.2,1)}50%{transform:scale(1.4,1)}100%{transform:scale(1,1)}}@keyframes splashIn{0%{transform:scale(1);opacity:1}25%{transform:scale(1.1);opacity:.8}50%{transform:scale(1.1);opacity:.9}100%{transform:scale(1);opacity:1}}@keyframes splashOut{0%{transform:scale(1);opacity:1}25%{transform:scale(1);opacity:.8}50%{transform:scale(1);opacity:.9}100%{transform:scale(0.5);opacity:1}}.checkbox-toggle{position:relative}.checkbox-toggle input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-toggle input+span{cursor:pointer;user-select:none}.checkbox-toggle input+span:before{position:absolute;left:0;display:inline-block}.checkbox-toggle input+span>h4{display:inline}.checkbox-slider{position:relative}.checkbox-slider input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-slider input+span{cursor:pointer;user-select:none}.checkbox-slider input+span:before{position:absolute;left:0;display:inline-block}.checkbox-slider input+span>h4{display:inline}.checkbox-slider input+span{padding-left:40px}.checkbox-slider input+span:before{content:"";height:20px;width:40px;background:rgba(100,100,100,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.8);transition:background .2s ease-out}.checkbox-slider input+span:after{width:20px;height:20px;position:absolute;left:0;top:0;display:block;background:#fff;transition:margin-left .1s ease-in-out;text-align:center;font-weight:700;content:""}.checkbox-slider input:checked+span:after{margin-left:20px;content:""}.checkbox-slider input:checked+span:before{transition:background .2s ease-in}.checkbox-slider--default{position:relative}.checkbox-slider--default input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-slider--default input+span{cursor:pointer;user-select:none}.checkbox-slider--default input+span:before{position:absolute;left:0;display:inline-block}.checkbox-slider--default input+span>h4{display:inline}.checkbox-slider--default input+span{padding-left:40px}.checkbox-slider--default input+span:before{content:"";height:20px;width:40px;background:rgba(100,100,100,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.8);transition:background .2s ease-out}.checkbox-slider--default input+span:after{width:20px;height:20px;position:absolute;left:0;top:0;display:block;background:#fff;transition:margin-left .1s ease-in-out;text-align:center;font-weight:700;content:""}.checkbox-slider--default input:checked+span:after{margin-left:20px;content:""}.checkbox-slider--default input:checked+span:before{transition:background .2s ease-in}.checkbox-slider--default input+span:after{background:#fff;border:solid transparent 1px;background-clip:content-box}.checkbox-slider--default input:checked+span:after{background:#5cb85c;border:solid transparent 1px;background-clip:content-box}.checkbox-slider--a{position:relative}.checkbox-slider--a input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-slider--a input+span{cursor:pointer;user-select:none}.checkbox-slider--a input+span:before{position:absolute;left:0;display:inline-block}.checkbox-slider--a input+span>h4{display:inline}.checkbox-slider--a input+span{padding-left:40px}.checkbox-slider--a input+span:before{content:"";height:20px;width:40px;background:rgba(100,100,100,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.8);transition:background .2s ease-out}.checkbox-slider--a input+span:after{width:20px;height:20px;position:absolute;left:0;top:0;display:block;background:#fff;transition:margin-left .1s ease-in-out;text-align:center;font-weight:700;content:""}.checkbox-slider--a input:checked+span:after{margin-left:20px;content:""}.checkbox-slider--a input:checked+span:before{transition:background .2s ease-in}.checkbox-slider--a input+span{padding-left:60px}.checkbox-slider--a input+span:before{content:"";width:60px}.checkbox-slider--a input+span:after{width:40px;font-size:10px;color:#000;content:"Off";border:solid transparent 1px;background-clip:content-box}.checkbox-slider--a input:checked+span:after{content:"On";color:#fff;background:#5cb85c;border:solid transparent 1px;background-clip:content-box}.checkbox-slider--a.checkbox-slider-sm input+span{padding-left:30px}.checkbox-slider--a.checkbox-slider-sm input+span:before{width:30px}.checkbox-slider--a.checkbox-slider-sm input+span:after{width:20px;font-size:5px}.checkbox-slider--a.checkbox-slider-sm input:checked+span:after{margin-left:10px}.checkbox-slider--a.checkbox-slider-md input+span{padding-left:90px}.checkbox-slider--a.checkbox-slider-md input+span:before{width:90px}.checkbox-slider--a.checkbox-slider-md input+span:after{width:60px;font-size:15px}.checkbox-slider--a.checkbox-slider-md input:checked+span:after{margin-left:30px}.checkbox-slider--a.checkbox-slider-lg input+span{padding-left:120px}.checkbox-slider--a.checkbox-slider-lg input+span:before{width:120px}.checkbox-slider--a.checkbox-slider-lg input+span:after{width:80px;font-size:20px}.checkbox-slider--a.checkbox-slider-lg input:checked+span:after{margin-left:40px}.checkbox-slider--b{position:relative}.checkbox-slider--b input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-slider--b input+span{cursor:pointer;user-select:none}.checkbox-slider--b input+span:before{position:absolute;left:0;display:inline-block}.checkbox-slider--b input+span>h4{display:inline}.checkbox-slider--b input+span{padding-left:40px}.checkbox-slider--b input+span:before{content:"";height:20px;width:40px;background:rgba(100,100,100,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.8);transition:background .2s ease-out}.checkbox-slider--b input+span:after{width:20px;height:20px;position:absolute;left:0;top:0;display:block;background:#fff;transition:margin-left .1s ease-in-out;text-align:center;font-weight:700;content:""}.checkbox-slider--b input:checked+span:after{margin-left:20px;content:""}.checkbox-slider--b input:checked+span:before{transition:background .2s ease-in}.checkbox-slider--b input+span{padding-left:40px}.checkbox-slider--b input+span:before{border-radius:20px;width:40px}.checkbox-slider--b input+span:after{background:#fff;content:"";width:20px;border:solid transparent 2px;background-clip:padding-box;border-radius:20px}.checkbox-slider--b input:not(:checked)+span:after{animation:popOut ease-in .3s normal}.checkbox-slider--b input:checked+span:after{content:"";margin-left:20px;border:solid transparent 2px;background-clip:padding-box;animation:popIn ease-in .3s normal}.checkbox-slider--b input:checked+span:before{background:#5cb85c}.checkbox-slider--b.checkbox-slider-md input+span:before{border-radius:30px}.checkbox-slider--b.checkbox-slider-md input+span:after{border-radius:30px}.checkbox-slider--b.checkbox-slider-lg input+span:before{border-radius:40px}.checkbox-slider--b.checkbox-slider-lg input+span:after{border-radius:40px}.checkbox-slider--b-flat{position:relative}.checkbox-slider--b-flat input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-slider--b-flat input+span{cursor:pointer;user-select:none}.checkbox-slider--b-flat input+span:before{position:absolute;left:0;display:inline-block}.checkbox-slider--b-flat input+span>h4{display:inline}.checkbox-slider--b-flat input+span{padding-left:40px}.checkbox-slider--b-flat input+span:before{content:"";height:20px;width:40px;background:rgba(100,100,100,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.8);transition:background .2s ease-out}.checkbox-slider--b-flat input+span:after{width:20px;height:20px;position:absolute;left:0;top:0;display:block;background:#fff;transition:margin-left .1s ease-in-out;text-align:center;font-weight:700;content:""}.checkbox-slider--b-flat input:checked+span:after{margin-left:20px;content:""}.checkbox-slider--b-flat input:checked+span:before{transition:background .2s ease-in}.checkbox-slider--b-flat input+span{padding-left:40px}.checkbox-slider--b-flat input+span:before{border-radius:20px;width:40px}.checkbox-slider--b-flat input+span:after{background:#fff;content:"";width:20px;border:solid transparent 2px;background-clip:padding-box;border-radius:20px}.checkbox-slider--b-flat input:not(:checked)+span:after{animation:popOut ease-in .3s normal}.checkbox-slider--b-flat input:checked+span:after{content:"";margin-left:20px;border:solid transparent 2px;background-clip:padding-box;animation:popIn ease-in .3s normal}.checkbox-slider--b-flat input:checked+span:before{background:#5cb85c}.checkbox-slider--b-flat.checkbox-slider-md input+span:before{border-radius:30px}.checkbox-slider--b-flat.checkbox-slider-md input+span:after{border-radius:30px}.checkbox-slider--b-flat.checkbox-slider-lg input+span:before{border-radius:40px}.checkbox-slider--b-flat.checkbox-slider-lg input+span:after{border-radius:40px}.checkbox-slider--b-flat input+span:before{box-shadow:none}.checkbox-slider--c{position:relative}.checkbox-slider--c input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-slider--c input+span{cursor:pointer;user-select:none}.checkbox-slider--c input+span:before{position:absolute;left:0;display:inline-block}.checkbox-slider--c input+span>h4{display:inline}.checkbox-slider--c input+span{padding-left:40px}.checkbox-slider--c input+span:before{content:"";height:20px;width:40px;background:rgba(100,100,100,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.8);transition:background .2s ease-out}.checkbox-slider--c input+span:after{width:20px;height:20px;position:absolute;left:0;top:0;display:block;background:#fff;transition:margin-left .1s ease-in-out;text-align:center;font-weight:700;content:""}.checkbox-slider--c input:checked+span:after{margin-left:20px;content:""}.checkbox-slider--c input:checked+span:before{transition:background .2s ease-in}.checkbox-slider--c input+span{padding-left:40px}.checkbox-slider--c input+span:before{height:2px!important;top:10px;box-shadow:none;width:40px;background:#555}.checkbox-slider--c input+span:after{box-shadow:none;width:20px;border:solid #555 2px;border-radius:20px}.checkbox-slider--c input:checked+span:after{background:#5cb85c;margin-left:20px;border:solid #5cb85c 2px;animation:splashIn ease-in .3s normal}.checkbox-slider--c input:checked+span:before{background:#5cb85c}.checkbox-slider--c.checkbox-slider-sm input+span:before{top:4px}.checkbox-slider--c.checkbox-slider-md input+span:before{top:14px}.checkbox-slider--c.checkbox-slider-md input+span:after{width:30px;border-radius:30px}.checkbox-slider--c.checkbox-slider-lg input+span:before{top:19px}.checkbox-slider--c.checkbox-slider-lg input+span:after{width:40px;border-radius:40px}.checkbox-slider--c-weight{position:relative}.checkbox-slider--c-weight input{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:0;height:0;margin:0 0;cursor:pointer;zoom:1;-webkit-opacity:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.checkbox-slider--c-weight input+span{cursor:pointer;user-select:none}.checkbox-slider--c-weight input+span:before{position:absolute;left:0;display:inline-block}.checkbox-slider--c-weight input+span>h4{display:inline}.checkbox-slider--c-weight input+span{padding-left:40px}.checkbox-slider--c-weight input+span:before{content:"";height:20px;width:40px;background:rgba(100,100,100,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.8);transition:background .2s ease-out}.checkbox-slider--c-weight input+span:after{width:20px;height:20px;position:absolute;left:0;top:0;display:block;background:#fff;transition:margin-left .1s ease-in-out;text-align:center;font-weight:700;content:""}.checkbox-slider--c-weight input:checked+span:after{margin-left:20px;content:""}.checkbox-slider--c-weight input:checked+span:before{transition:background .2s ease-in}.checkbox-slider--c-weight input+span{padding-left:40px}.checkbox-slider--c-weight input+span:before{height:2px!important;top:10px;box-shadow:none;width:40px;background:#555}.checkbox-slider--c-weight input+span:after{box-shadow:none;width:20px;border:solid #555 2px;border-radius:20px}.checkbox-slider--c-weight input:checked+span:after{background:#5cb85c;margin-left:20px;border:solid #5cb85c 2px;animation:splashIn ease-in .3s normal}.checkbox-slider--c-weight input:checked+span:before{background:#5cb85c}.checkbox-slider--c-weight.checkbox-slider-sm input+span:before{top:4px}.checkbox-slider--c-weight.checkbox-slider-md input+span:before{top:14px}.checkbox-slider--c-weight.checkbox-slider-md input+span:after{width:30px;border-radius:30px}.checkbox-slider--c-weight.checkbox-slider-lg input+span:before{top:19px}.checkbox-slider--c-weight.checkbox-slider-lg input+span:after{width:40px;border-radius:40px}.checkbox-slider--c-weight input+span:before{height:1px!important}.checkbox-slider--c-weight input:checked+span:before{height:2px!important}.checkbox-slider--c-weight input:not(:checked)+span:after{transform:scale(0.7);left:-6px}.checkbox-slider--default input:disabled+span:after{background:#777}.checkbox-slider--default input:disabled+span:before{box-shadow:0 0 0 #000}.checkbox-slider--default input:disabled+span{color:#777}.checkbox-slider--a input:disabled+span:after{background:#777;color:#fff}.checkbox-slider--a input:disabled+span:before{box-shadow:0 0 0 #000}.checkbox-slider--a input:disabled+span{color:#777}.checkbox-slider--b input:disabled+span:after{border:solid transparent 2px;border-radius:40px}.checkbox-slider--b input:disabled+span:before{box-shadow:0 0 0 #000}.checkbox-slider--b input:disabled+span{color:#777}.checkbox-slider--c input:disabled:checked+span:after{background:#777}.checkbox-slider--c input:disabled+span:after{border-color:#777}.checkbox-slider--c input:disabled+span:before{background:#777}.checkbox-slider--c input:disabled+span{color:#777}input:checked+.indicator-success{color:#5cb85c}input:checked+.indicator-info{color:#5bc0de}input:checked+.indicator-warning{color:#f0ad4e}input:checked+.indicator-danger{color:#d9534f}.checkbox-slider-sm{line-height:10px}.checkbox-slider-sm input+span{padding-left:20px}.checkbox-slider-sm input+span:before{width:20px}.checkbox-slider-sm input+span:after,.checkbox-slider-sm input+span:before{height:10px;line-height:10px}.checkbox-slider-sm input+span:after{width:10px;vertical-align:middle}.checkbox-slider-sm input:checked+span:after{margin-left:10px}.checkbox-slider-md{line-height:30px}.checkbox-slider-md input+span{padding-left:60px}.checkbox-slider-md input+span:before{width:60px}.checkbox-slider-md input+span:after,.checkbox-slider-md input+span:before{height:30px;line-height:30px}.checkbox-slider-md input+span:after{width:30px;vertical-align:middle}.checkbox-slider-md input:checked+span:after{margin-left:30px}.checkbox-slider-lg{line-height:40px}.checkbox-slider-lg input+span{padding-left:80px}.checkbox-slider-lg input+span:before{width:80px}.checkbox-slider-lg input+span:after,.checkbox-slider-lg input+span:before{height:40px;line-height:40px}.checkbox-slider-lg input+span:after{width:40px;vertical-align:middle}.checkbox-slider-lg input:checked+span:after{margin-left:40px}.checkbox-slider-info.checkbox-slider--default input:checked+span:after,.checkbox-slider-info.checkbox-slider--a input:checked+span:after,.checkbox-slider-info.checkbox-slider--c input:checked+span:after,.checkbox-slider-info.checkbox-slider--c-weight input:checked+span:after{background:#5bc0de}.checkbox-slider-info.checkbox-slider--c input:checked+span:after,.checkbox-slider-info.checkbox-slider--c-weight input:checked+span:after{border-color:#5bc0de}.checkbox-slider-info.checkbox-slider--b input:checked+span:before,.checkbox-slider-info.checkbox-slider--b-flat input:checked+span:before,.checkbox-slider-info.checkbox-slider--c input:checked+span:before,.checkbox-slider-info.checkbox-slider--c-weight input:checked+span:before{background:#5bc0de}.checkbox-slider-warning.checkbox-slider--default input:checked+span:after,.checkbox-slider-warning.checkbox-slider--a input:checked+span:after,.checkbox-slider-warning.checkbox-slider--c input:checked+span:after,.checkbox-slider-warning.checkbox-slider--c-weight input:checked+span:after{background:#f0ad4e}.checkbox-slider-warning.checkbox-slider--c input:checked+span:after,.checkbox-slider-warning.checkbox-slider--c-weight input:checked+span:after{border-color:#f0ad4e}.checkbox-slider-warning.checkbox-slider--b input:checked+span:before,.checkbox-slider-warning.checkbox-slider--b-flat input:checked+span:before,.checkbox-slider-warning.checkbox-slider--c input:checked+span:before,.checkbox-slider-warning.checkbox-slider--c-weight input:checked+span:before{background:#f0ad4e}.checkbox-slider-danger.checkbox-slider--default input:checked+span:after,.checkbox-slider-danger.checkbox-slider--a input:checked+span:after,.checkbox-slider-danger.checkbox-slider--c input:checked+span:after,.checkbox-slider-danger.checkbox-slider--c-weight input:checked+span:after{background:#d9534f}.checkbox-slider-danger.checkbox-slider--c input:checked+span:after,.checkbox-slider-danger.checkbox-slider--c-weight input:checked+span:after{border-color:#d9534f}.checkbox-slider-danger.checkbox-slider--b input:checked+span:before,.checkbox-slider-danger.checkbox-slider--b-flat input:checked+span:before,.checkbox-slider-danger.checkbox-slider--c input:checked+span:before,.checkbox-slider-danger.checkbox-slider--c-weight input:checked+span:before{background:#d9534f}
CyrusSUEN/cdnjs
ajax/libs/titatoggle/1.2.1/titatoggle-dist-min.css
CSS
mit
18,186
/*! Flickity v1.1.0 http://flickity.metafizzy.co ---------------------------------------------- */ .flickity-enabled{position:relative}.flickity-enabled:focus{outline:0}.flickity-viewport{overflow:hidden;position:relative;height:100%}.flickity-slider{position:absolute;width:100%;height:100%}.flickity-enabled.is-draggable{-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flickity-enabled.is-draggable .flickity-viewport{cursor:move;cursor:-webkit-grab;cursor:grab}.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down{cursor:-webkit-grabbing;cursor:grabbing}.flickity-prev-next-button{position:absolute;top:50%;width:44px;height:44px;border:none;border-radius:50%;background:#fff;background:hsla(0,0%,100%,.75);cursor:pointer;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.flickity-prev-next-button:hover{background:#fff}.flickity-prev-next-button:focus{outline:0;box-shadow:0 0 0 5px #09F}.flickity-prev-next-button:active{filter:alpha(opacity=60);opacity:.6}.flickity-prev-next-button.previous{left:10px}.flickity-prev-next-button.next{right:10px}.flickity-rtl .flickity-prev-next-button.previous{left:auto;right:10px}.flickity-rtl .flickity-prev-next-button.next{right:auto;left:10px}.flickity-prev-next-button:disabled{filter:alpha(opacity=30);opacity:.3;cursor:auto}.flickity-prev-next-button svg{position:absolute;left:20%;top:20%;width:60%;height:60%}.flickity-prev-next-button .arrow{fill:#333}.flickity-prev-next-button.no-svg{color:#333;font-size:26px}.flickity-page-dots{position:absolute;width:100%;bottom:-25px;padding:0;margin:0;list-style:none;text-align:center;line-height:1}.flickity-rtl .flickity-page-dots{direction:rtl}.flickity-page-dots .dot{display:inline-block;width:10px;height:10px;margin:0 8px;background:#333;border-radius:50%;filter:alpha(opacity=25);opacity:.25;cursor:pointer}.flickity-page-dots .dot.is-selected{filter:alpha(opacity=100);opacity:1}
yinghunglai/cdnjs
ajax/libs/flickity/1.1.0/flickity.min.css
CSS
mit
2,049
// Load modules var Any = require('./any'); var Errors = require('./errors'); var Hoek = require('hoek'); // Declare internals var internals = {}; internals.Binary = function () { Any.call(this); this._type = 'binary'; }; Hoek.inherits(internals.Binary, Any); internals.Binary.prototype._base = function (value, state, options) { var result = { value: value }; if (typeof value === 'string' && options.convert) { try { var converted = new Buffer(value, this._flags.encoding); result.value = converted; } catch (e) { } } result.errors = Buffer.isBuffer(result.value) ? null : Errors.create('binary.base', null, state, options); return result; }; internals.Binary.prototype.encoding = function (encoding) { Hoek.assert(Buffer.isEncoding(encoding), 'Invalid encoding:', encoding); var obj = this.clone(); obj._flags.encoding = encoding; return obj; }; internals.Binary.prototype.min = function (limit) { Hoek.assert(Hoek.isInteger(limit) && limit >= 0, 'limit must be a positive integer'); return this._test('min', limit, function (value, state, options) { if (value.length >= limit) { return null; } return Errors.create('binary.min', { limit: limit, value: value }, state, options); }); }; internals.Binary.prototype.max = function (limit) { Hoek.assert(Hoek.isInteger(limit) && limit >= 0, 'limit must be a positive integer'); return this._test('max', limit, function (value, state, options) { if (value.length <= limit) { return null; } return Errors.create('binary.max', { limit: limit, value: value }, state, options); }); }; internals.Binary.prototype.length = function (limit) { Hoek.assert(Hoek.isInteger(limit) && limit >= 0, 'limit must be a positive integer'); return this._test('length', limit, function (value, state, options) { if (value.length === limit) { return null; } return Errors.create('binary.length', { limit: limit, value: value }, state, options); }); }; module.exports = new internals.Binary();
apppur/node_chat
node_modules/xml2json/node_modules/joi/lib/binary.js
JavaScript
mit
2,214
!function(a){"function"==typeof define&&define.amd?define(["jquery","moment"],a):"object"==typeof exports?module.exports=a(require("jquery"),require("moment")):a(jQuery,moment)}(function(a,b){!function(){"use strict";var a={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},c={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},d=(b.defineLocale||b.lang).call(b,"ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(a){return"م"===a},meridiem:function(a,b,c){return 12>a?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(a){return a.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return c[a]}).replace(/،/g,",")},postformat:function(b){return b.replace(/\d/g,function(b){return a[b]}).replace(/,/g,"،")},week:{dow:6,doy:12}});return d}(),a.fullCalendar.datepickerLang("ar-sa","ar",{closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),a.fullCalendar.lang("ar-sa",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى"})});
yaqien378/Monitoring_Orela
vendors/fullcalendar/dist/lang/ar-sa.js
JavaScript
mit
2,891
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ /** * The Browser History Manager provides the ability to use the back/forward * navigation buttons in a DHTML application. It also allows a DHTML * application to be bookmarked in a specific state. * * This library requires the following static markup: * * &lt;iframe id="yui-history-iframe" src="path-to-real-asset-in-same-domain"&gt;&lt;/iframe&gt; * &lt;input id="yui-history-field" type="hidden"&gt; * * @module history * @requires yahoo,event * @namespace YAHOO.util * @title Browser History Manager */ /** * The History class provides the ability to use the back/forward navigation * buttons in a DHTML application. It also allows a DHTML application to * be bookmarked in a specific state. * * @class History * @constructor */ YAHOO.util.History = (function () { /** * Our hidden IFrame used to store the browsing history. * * @property _histFrame * @type HTMLIFrameElement * @default null * @private */ var _histFrame = null; /** * INPUT field (with type="hidden" or type="text") or TEXTAREA. * This field keeps the value of the initial state, current state * the list of all states across pages within a single browser session. * * @property _stateField * @type HTMLInputElement|HTMLTextAreaElement * @default null * @private */ var _stateField = null; /** * Flag used to tell whether YAHOO.util.History.initialize has been called. * * @property _initialized * @type boolean * @default false * @private */ var _initialized = false; /** * List of registered modules. * * @property _modules * @type array * @default [] * @private */ var _modules = []; /** * List of fully qualified states. This is used only by Safari. * * @property _fqstates * @type array * @default [] * @private */ var _fqstates = []; /** * location.hash is a bit buggy on Opera. I have seen instances where * navigating the history using the back/forward buttons, and hence * changing the URL, would not change location.hash. That's ok, the * implementation of an equivalent is trivial. * * @method _getHash * @return {string} The hash portion of the document's location * @private */ function _getHash() { var i, href; href = self.location.href; i = href.indexOf("#"); return i >= 0 ? href.substr(i + 1) : null; } /** * Stores all the registered modules' initial state and current state. * On Safari, we also store all the fully qualified states visited by * the application within a single browser session. The storage takes * place in the form field specified during initialization. * * @method _storeStates * @private */ function _storeStates() { var moduleName, moduleObj, initialStates = [], currentStates = []; for (moduleName in _modules) { if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) { moduleObj = _modules[moduleName]; initialStates.push(moduleName + "=" + moduleObj.initialState); currentStates.push(moduleName + "=" + moduleObj.currentState); } } _stateField.value = initialStates.join("&") + "|" + currentStates.join("&"); } /** * Sets the new currentState attribute of all modules depending on the new * fully qualified state. Also notifies the modules which current state has * changed. * * @method _handleFQStateChange * @param {string} fqstate Fully qualified state * @private */ function _handleFQStateChange(fqstate) { var i, len, moduleName, moduleObj, modules, states, tokens, currentState; if (!fqstate) { // Notifies all modules for (moduleName in _modules) { if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) { moduleObj = _modules[moduleName]; moduleObj.currentState = moduleObj.initialState; moduleObj.onStateChange(_decode(moduleObj.currentState)); } } return; } modules = []; states = fqstate.split("&"); for (i = 0, len = states.length; i < len; i++) { tokens = states[i].split("="); if (tokens.length === 2) { moduleName = tokens[0]; currentState = tokens[1]; modules[moduleName] = currentState; } } for (moduleName in _modules) { if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) { moduleObj = _modules[moduleName]; currentState = modules[moduleName]; if (!currentState || moduleObj.currentState !== currentState) { moduleObj.currentState = typeof currentState === 'undefined' ? moduleObj.initialState : currentState; moduleObj.onStateChange(_decode(moduleObj.currentState)); } } } } /** * Update the IFrame with our new state. * * @method _updateIFrame * @private * @return {boolean} true if successful. false otherwise. */ function _updateIFrame (fqstate) { var html, doc; html = '<html><body><div id="state">' + YAHOO.lang.escapeHTML(fqstate) + '</div></body></html>'; try { doc = _histFrame.contentWindow.document; doc.open(); doc.write(html); doc.close(); return true; } catch (e) { return false; } } /** * Periodically checks whether our internal IFrame is ready to be used. * * @method _checkIframeLoaded * @private */ function _checkIframeLoaded() { var doc, elem, fqstate, hash; if (!_histFrame.contentWindow || !_histFrame.contentWindow.document) { // Check again in 10 msec... setTimeout(_checkIframeLoaded, 10); return; } // Start the thread that will have the responsibility to // periodically check whether a navigate operation has been // requested on the main window. This will happen when // YAHOO.util.History.navigate has been called or after // the user has hit the back/forward button. doc = _histFrame.contentWindow.document; elem = doc.getElementById("state"); // We must use innerText, and not innerHTML because our string contains // the "&" character (which would end up being escaped as "&amp;") and // the string comparison would fail... fqstate = elem ? elem.innerText : null; hash = _getHash(); setInterval(function () { var newfqstate, states, moduleName, moduleObj, newHash, historyLength; doc = _histFrame.contentWindow.document; elem = doc.getElementById("state"); // See my comment above about using innerText instead of innerHTML... newfqstate = elem ? elem.innerText : null; newHash = _getHash(); if (newfqstate !== fqstate) { fqstate = newfqstate; _handleFQStateChange(fqstate); if (!fqstate) { states = []; for (moduleName in _modules) { if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) { moduleObj = _modules[moduleName]; states.push(moduleName + "=" + moduleObj.initialState); } } newHash = states.join("&"); } else { newHash = fqstate; } // Allow the state to be bookmarked by setting the top window's // URL fragment identifier. Note that here, we are on IE, and // IE does not touch the browser history when setting the hash // (unlike all the other browsers). I used to write: // self.location.replace( "#" + hash ); // but this had a side effect when the page was not the top frame. self.location.hash = newHash; hash = newHash; _storeStates(); } else if (newHash !== hash) { // The hash has changed. The user might have clicked on a link, // or modified the URL directly, or opened the same application // bookmarked in a specific state using a bookmark. However, we // know the hash change was not caused by a hit on the back or // forward buttons, or by a call to navigate() (because it would // have been handled above) We must handle these cases, which is // why we also need to keep track of hash changes on IE! // Note that IE6 has some major issues with this kind of user // interaction (the history stack gets completely messed up) // but it seems to work fine on IE7. hash = newHash; // Now, store a new history entry. The following will cause the // code above to execute, doing all the dirty work for us... _updateIFrame(newHash); } }, 50); _initialized = true; YAHOO.util.History.onLoadEvent.fire(); } /** * Finish up the initialization of the Browser History Manager. * * @method _initialize * @private */ function _initialize() { var i, len, parts, tokens, moduleName, moduleObj, initialStates, initialState, currentStates, currentState, counter, hash; // Decode the content of our storage field... parts = _stateField.value.split("|"); if (parts.length > 1) { initialStates = parts[0].split("&"); for (i = 0, len = initialStates.length; i < len; i++) { tokens = initialStates[i].split("="); if (tokens.length === 2) { moduleName = tokens[0]; initialState = tokens[1]; moduleObj = YAHOO.lang.hasOwnProperty(_modules, moduleName) && _modules[moduleName]; if (moduleObj) { moduleObj.initialState = initialState; } } } currentStates = parts[1].split("&"); for (i = 0, len = currentStates.length; i < len; i++) { tokens = currentStates[i].split("="); if (tokens.length >= 2) { moduleName = tokens[0]; currentState = tokens[1]; moduleObj = YAHOO.lang.hasOwnProperty(_modules, moduleName) && _modules[moduleName]; if (moduleObj) { moduleObj.currentState = currentState; } } } } if (parts.length > 2) { _fqstates = parts[2].split(","); } if (YAHOO.env.ua.ie) { if (typeof document.documentMode === "undefined" || document.documentMode < 8) { // IE < 8 or IE8 in quirks mode or IE7 standards mode _checkIframeLoaded(); } else { // IE8 in IE8 standards mode YAHOO.util.Event.on(top, "hashchange", function () { var hash = _getHash(); _handleFQStateChange(hash); _storeStates(); }); _initialized = true; YAHOO.util.History.onLoadEvent.fire(); } } else { // Start the thread that will have the responsibility to // periodically check whether a navigate operation has been // requested on the main window. This will happen when // YAHOO.util.History.navigate has been called or after // the user has hit the back/forward button. // On Gecko and Opera, we just need to watch the hash... hash = _getHash(); setInterval(function () { var state, newHash, newCounter; newHash = _getHash(); if (newHash !== hash) { hash = newHash; _handleFQStateChange(hash); _storeStates(); } }, 50); _initialized = true; YAHOO.util.History.onLoadEvent.fire(); } } /** * Wrapper around <code>decodeURIComponent()</code> that also converts + * chars into spaces. * * @method _decode * @param {String} string string to decode * @return {String} decoded string * @private * @since 2.9.0 */ function _decode(string) { return decodeURIComponent(string.replace(/\+/g, ' ')); } /** * Wrapper around <code>encodeURIComponent()</code> that converts spaces to * + chars. * * @method _encode * @param {String} string string to encode * @return {String} encoded string * @private * @since 2.9.0 */ function _encode(string) { return encodeURIComponent(string).replace(/%20/g, '+'); } return { /** * Fired when the Browser History Manager is ready. If you subscribe to * this event after the Browser History Manager has been initialized, * it will not fire. Therefore, it is recommended to use the onReady * method instead. * * @event onLoadEvent * @see onReady */ onLoadEvent: new YAHOO.util.CustomEvent("onLoad"), /** * Executes the supplied callback when the Browser History Manager is * ready. This will execute immediately if called after the Browser * History Manager onLoad event has fired. * * @method onReady * @param {function} fn what to execute when the Browser History Manager is ready. * @param {object} obj an optional object to be passed back as a parameter to fn. * @param {boolean|object} overrideContext If true, the obj passed in becomes fn's execution scope. * @see onLoadEvent */ onReady: function (fn, obj, overrideContext) { if (_initialized) { setTimeout(function () { var ctx = window; if (overrideContext) { if (overrideContext === true) { ctx = obj; } else { ctx = overrideContext; } } fn.call(ctx, "onLoad", [], obj); }, 0); } else { YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext); } }, /** * Registers a new module. * * @method register * @param {string} module Non-empty string uniquely identifying the * module you wish to register. * @param {string} initialState The initial state of the specified * module corresponding to its earliest history entry. * @param {function} onStateChange Callback called when the * state of the specified module has changed. * @param {object} obj An arbitrary object that will be passed as a * parameter to the handler. * @param {boolean} overrideContext If true, the obj passed in becomes the * execution scope of the listener. */ register: function (module, initialState, onStateChange, obj, overrideContext) { var scope, wrappedFn; if (typeof module !== "string" || YAHOO.lang.trim(module) === "" || typeof initialState !== "string" || typeof onStateChange !== "function") { throw new Error("Missing or invalid argument"); } if (YAHOO.lang.hasOwnProperty(_modules, module)) { // Here, we used to throw an exception. However, users have // complained about this behavior, so we now just return. return; } // Note: A module CANNOT be registered after calling // YAHOO.util.History.initialize. Indeed, we set the initial state // of each registered module in YAHOO.util.History.initialize. // If you could register a module after initializing the Browser // History Manager, you would not read the correct state using // YAHOO.util.History.getCurrentState when coming back to the // page using the back button. if (_initialized) { throw new Error("All modules must be registered before calling YAHOO.util.History.initialize"); } // Make sure the strings passed in do not contain our separators "," and "|" module = _encode(module); initialState = _encode(initialState); // If the user chooses to override the scope, we use the // custom object passed in as the execution scope. scope = null; if (overrideContext === true) { scope = obj; } else { scope = overrideContext; } wrappedFn = function (state) { return onStateChange.call(scope, state, obj); }; _modules[module] = { name: module, initialState: initialState, currentState: initialState, onStateChange: wrappedFn }; }, /** * Initializes the Browser History Manager. Call this method * from a script block located right after the opening body tag. * * @method initialize * @param {string|HTML Element} stateField <input type="hidden"> used * to store application states. Must be in the static markup. * @param {string|HTML Element} histFrame IFrame used to store * the history (only required on Internet Explorer) * @public */ initialize: function (stateField, histFrame) { if (_initialized) { // The browser history manager has already been initialized. return; } if (YAHOO.env.ua.opera && typeof history.navigationMode !== "undefined") { // Disable Opera's fast back/forward navigation mode and puts // it in compatible mode. This makes anchor-based history // navigation work after the page has been navigated away // from and re-activated, at the cost of slowing down // back/forward navigation to and from that page. history.navigationMode = "compatible"; } if (typeof stateField === "string") { stateField = document.getElementById(stateField); } if (!stateField || stateField.tagName.toUpperCase() !== "TEXTAREA" && (stateField.tagName.toUpperCase() !== "INPUT" || stateField.type !== "hidden" && stateField.type !== "text")) { throw new Error("Missing or invalid argument"); } _stateField = stateField; // IE < 8 or IE8 in quirks mode or IE7 standards mode if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) { if (typeof histFrame === "string") { histFrame = document.getElementById(histFrame); } if (!histFrame || histFrame.tagName.toUpperCase() !== "IFRAME") { throw new Error("Missing or invalid argument"); } _histFrame = histFrame; } // Note that the event utility MUST be included inline in the page. // If it gets loaded later (which you may want to do to improve the // loading speed of your site), the onDOMReady event never fires, // and the history library never gets fully initialized. YAHOO.util.Event.onDOMReady(_initialize); }, /** * Call this method when you want to store a new entry in the browser's history. * * @method navigate * @param {string} module Non-empty string representing your module. * @param {string} state String representing the new state of the specified module. * @return {boolean} Indicates whether the new state was successfully added to the history. * @public */ navigate: function (module, state) { var states; if (typeof module !== "string" || typeof state !== "string") { throw new Error("Missing or invalid argument"); } states = {}; states[module] = state; return YAHOO.util.History.multiNavigate(states); }, /** * Call this method when you want to store a new entry in the browser's history. * * @method multiNavigate * @param {object} states Associative array of module-state pairs to set simultaneously. * @return {boolean} Indicates whether the new state was successfully added to the history. * @public */ multiNavigate: function (states) { var currentStates, moduleName, moduleObj, currentState, fqstate; if (typeof states !== "object") { throw new Error("Missing or invalid argument"); } if (!_initialized) { throw new Error("The Browser History Manager is not initialized"); } for (moduleName in states) { if (!YAHOO.lang.hasOwnProperty(_modules, _encode(moduleName))) { throw new Error("The following module has not been registered: " + moduleName); } } // Generate our new full state string mod1=xxx&mod2=yyy currentStates = []; for (moduleName in _modules) { if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) { moduleObj = _modules[moduleName]; if (YAHOO.lang.hasOwnProperty(states, moduleName)) { currentState = states[_decode(moduleName)]; } else { currentState = _decode(moduleObj.currentState); } // Make sure the strings passed in do not contain our separators "," and "|" moduleName = _encode(moduleName); currentState = _encode(currentState); currentStates.push(moduleName + "=" + currentState); } } fqstate = currentStates.join("&"); if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) { return _updateIFrame(fqstate); } else { // Known bug: On Safari 1.x and 2.0, if you have tab browsing // enabled, Safari will show an endless loading icon in the // tab. This has apparently been fixed in recent WebKit builds. // One work around found by Dav Glass is to submit a form that // points to the same document. This indeed works on Safari 1.x // and 2.0 but creates bigger problems on WebKit. So for now, // we'll consider this an acceptable bug, and hope that Apple // comes out with their next version of Safari very soon. self.location.hash = fqstate; return true; } }, /** * Returns the current state of the specified module. * * @method getCurrentState * @param {string} module Non-empty string representing your module. * @return {string} The current state of the specified module. * @public */ getCurrentState: function (module) { var moduleObj; if (typeof module !== "string") { throw new Error("Missing or invalid argument"); } if (!_initialized) { throw new Error("The Browser History Manager is not initialized"); } moduleObj = YAHOO.lang.hasOwnProperty(_modules, module) && _modules[module]; if (!moduleObj) { throw new Error("No such registered module: " + module); } return _decode(moduleObj.currentState); }, /** * Returns the state of a module according to the URL fragment * identifier. This method is useful to initialize your modules * if your application was bookmarked from a particular state. * * @method getBookmarkedState * @param {string} module Non-empty string representing your module. * @return {string} The bookmarked state of the specified module. * @public */ getBookmarkedState: function (module) { var i, len, idx, hash, states, tokens, moduleName; if (typeof module !== "string") { throw new Error("Missing or invalid argument"); } // Use location.href instead of location.hash which is already // URL-decoded, which creates problems if the state value // contained special characters... idx = self.location.href.indexOf("#"); if (idx >= 0) { hash = self.location.href.substr(idx + 1); states = hash.split("&"); for (i = 0, len = states.length; i < len; i++) { tokens = states[i].split("="); if (tokens.length === 2) { moduleName = tokens[0]; if (moduleName === module) { return _decode(tokens[1]); } } } } return null; }, /** * Returns the value of the specified query string parameter. * This method is not used internally by the Browser History Manager. * However, it is provided here as a helper since many applications * using the Browser History Manager will want to read the value of * url parameters to initialize themselves. * * @method getQueryStringParameter * @param {string} paramName Name of the parameter we want to look up. * @param {string} queryString Optional URL to look at. If not specified, * this method uses the URL in the address bar. * @return {string} The value of the specified parameter, or null. * @public */ getQueryStringParameter: function (paramName, url) { var i, len, idx, queryString, params, tokens; url = url || self.location.href; idx = url.indexOf("?"); queryString = idx >= 0 ? url.substr(idx + 1) : url; // Remove the hash if any idx = queryString.lastIndexOf("#"); queryString = idx >= 0 ? queryString.substr(0, idx) : queryString; params = queryString.split("&"); for (i = 0, len = params.length; i < len; i++) { tokens = params[i].split("="); if (tokens.length >= 2) { if (tokens[0] === paramName) { return _decode(tokens[1]); } } } return null; } }; })(); YAHOO.register("history", YAHOO.util.History, {version: "2.9.0", build: "2800"});
tomalec/cdnjs
ajax/libs/yui/2.9.0/history/history-debug.js
JavaScript
mit
28,702
// Hungarian (hu) plupload.addI18n({"Stop Upload":"Feltöltés leállítása","Upload URL might be wrong or doesn't exist.":"A feltöltő URL hibás vagy nem létezik.","tb":"TB","Size":"Méret","Close":"Bezárás","Init error.":"Init hiba.","Add files to the upload queue and click the start button.":"A fájlok feltöltési sorhoz való hozzáadása után az Indítás gombra kell kattintani.","Filename":"Fájlnév","Image format either wrong or not supported.":"Rossz vagy nem támogatott képformátum.","Status":"Állapot","HTTP Error.":"HTTP-hiba.","Start Upload":"Feltöltés indítása","mb":"MB","kb":"kB","Duplicate file error.":"Duplikáltfájl-hiba.","File size error.":"Hibás fájlméret.","N/A":"Nem elérhető","gb":"GB","Error: Invalid file extension:":"Hiba: érvénytelen fájlkiterjesztés:","Select files":"Fájlok kiválasztása","%s already present in the queue.":"%s már szerepel a listában.","File: %s":"Fájl: %s","b":"b","Uploaded %d/%d files":"Feltöltött fájlok: %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"A feltöltés egyszerre csak %d fájlt fogad el, a többi fájl nem lesz feltöltve.","%d files queued":"%d fájl sorbaállítva","File: %s, size: %d, max file size: %d":"Fájl: %s, méret: %d, legnagyobb fájlméret: %d","Drag files here.":"Ide lehet húzni a fájlokat.","Runtime ran out of available memory.":"Futásidőben elfogyott a rendelkezésre álló memória.","File count error.":"A fájlok számával kapcsolatos hiba.","File extension error.":"Hibás fájlkiterjesztés.","Error: File too large:":"Hiba: a fájl túl nagy:","Add Files":"Fájlok hozzáadása"});
kiwi89/cdnjs
ajax/libs/plupload/2.1.2/i18n/hu.js
JavaScript
mit
1,659
YUI.add('resize-base', function (Y, NAME) { /** * The Resize Utility allows you to make an HTML element resizable. * @module resize * @main resize */ var Lang = Y.Lang, isArray = Lang.isArray, isBoolean = Lang.isBoolean, isNumber = Lang.isNumber, isString = Lang.isString, yArray = Y.Array, trim = Lang.trim, indexOf = yArray.indexOf, COMMA = ',', DOT = '.', EMPTY_STR = '', HANDLE_SUB = '{handle}', SPACE = ' ', ACTIVE = 'active', ACTIVE_HANDLE = 'activeHandle', ACTIVE_HANDLE_NODE = 'activeHandleNode', ALL = 'all', AUTO_HIDE = 'autoHide', BORDER = 'border', BOTTOM = 'bottom', CLASS_NAME = 'className', COLOR = 'color', DEF_MIN_HEIGHT = 'defMinHeight', DEF_MIN_WIDTH = 'defMinWidth', HANDLE = 'handle', HANDLES = 'handles', HANDLES_WRAPPER = 'handlesWrapper', HIDDEN = 'hidden', INNER = 'inner', LEFT = 'left', MARGIN = 'margin', NODE = 'node', NODE_NAME = 'nodeName', NONE = 'none', OFFSET_HEIGHT = 'offsetHeight', OFFSET_WIDTH = 'offsetWidth', PADDING = 'padding', PARENT_NODE = 'parentNode', POSITION = 'position', RELATIVE = 'relative', RESIZE = 'resize', RESIZING = 'resizing', RIGHT = 'right', STATIC = 'static', STYLE = 'style', TOP = 'top', WIDTH = 'width', WRAP = 'wrap', WRAPPER = 'wrapper', WRAP_TYPES = 'wrapTypes', EV_MOUSE_UP = 'resize:mouseUp', EV_RESIZE = 'resize:resize', EV_RESIZE_ALIGN = 'resize:align', EV_RESIZE_END = 'resize:end', EV_RESIZE_START = 'resize:start', T = 't', TR = 'tr', R = 'r', BR = 'br', B = 'b', BL = 'bl', L = 'l', TL = 'tl', concat = function() { return Array.prototype.slice.call(arguments).join(SPACE); }, // round the passed number to get rid of pixel-flickering toRoundNumber = function(num) { return Math.round(parseFloat(num)) || 0; }, getCompStyle = function(node, val) { return node.getComputedStyle(val); }, handleAttrName = function(handle) { return HANDLE + handle.toUpperCase(); }, isNode = function(v) { return (v instanceof Y.Node); }, toInitialCap = Y.cached( function(str) { return str.substring(0, 1).toUpperCase() + str.substring(1); } ), capitalize = Y.cached(function() { var out = [], args = yArray(arguments, 0, true); yArray.each(args, function(part, i) { if (i > 0) { part = toInitialCap(part); } out.push(part); }); return out.join(EMPTY_STR); }), getCN = Y.ClassNameManager.getClassName, CSS_RESIZE = getCN(RESIZE), CSS_RESIZE_HANDLE = getCN(RESIZE, HANDLE), CSS_RESIZE_HANDLE_ACTIVE = getCN(RESIZE, HANDLE, ACTIVE), CSS_RESIZE_HANDLE_INNER = getCN(RESIZE, HANDLE, INNER), CSS_RESIZE_HANDLE_INNER_PLACEHOLDER = getCN(RESIZE, HANDLE, INNER, HANDLE_SUB), CSS_RESIZE_HANDLE_PLACEHOLDER = getCN(RESIZE, HANDLE, HANDLE_SUB), CSS_RESIZE_HIDDEN_HANDLES = getCN(RESIZE, HIDDEN, HANDLES), CSS_RESIZE_HANDLES_WRAPPER = getCN(RESIZE, HANDLES, WRAPPER), CSS_RESIZE_WRAPPER = getCN(RESIZE, WRAPPER); /** A base class for Resize, providing: * Basic Lifecycle (initializer, renderUI, bindUI, syncUI, destructor) * Applies drag handles to an element to make it resizable * Here is the list of valid resize handles: `[ 't', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl' ]`. You can read this list as top, top-right, right, bottom-right, bottom, bottom-left, left, top-left. * The drag handles are inserted into the element and positioned absolute. Some elements, such as a textarea or image, don't support children. To overcome that, set wrap:true in your config and the element willbe wrapped for you automatically. Quick Example: var instance = new Y.Resize({ node: '#resize1', preserveRatio: true, wrap: true, maxHeight: 170, maxWidth: 400, handles: 't, tr, r, br, b, bl, l, tl' }); Check the list of <a href="Resize.html#attrs">Configuration Attributes</a> available for Resize. @class Resize @param config {Object} Object literal specifying widget configuration properties. @constructor @extends Base */ function Resize() { Resize.superclass.constructor.apply(this, arguments); } Y.mix(Resize, { /** * Static property provides a string to identify the class. * * @property NAME * @type String * @static */ NAME: RESIZE, /** * Static property used to define the default attribute * configuration for the Resize. * * @property ATTRS * @type Object * @static */ ATTRS: { /** * Stores the active handle during the resize. * * @attribute activeHandle * @default null * @private * @type String */ activeHandle: { value: null, validator: function(v) { return Y.Lang.isString(v) || Y.Lang.isNull(v); } }, /** * Stores the active handle element during the resize. * * @attribute activeHandleNode * @default null * @private * @type Node */ activeHandleNode: { value: null, validator: isNode }, /** * False to ensure that the resize handles are always visible, true to * display them only when the user mouses over the resizable borders. * * @attribute autoHide * @default false * @type boolean */ autoHide: { value: false, validator: isBoolean }, /** * The default minimum height of the element. Only used when * ResizeConstrained is not plugged. * * @attribute defMinHeight * @default 15 * @type Number */ defMinHeight: { value: 15, validator: isNumber }, /** * The default minimum width of the element. Only used when * ResizeConstrained is not plugged. * * @attribute defMinWidth * @default 15 * @type Number */ defMinWidth: { value: 15, validator: isNumber }, /** * The handles to use (any combination of): 't', 'b', 'r', 'l', 'bl', * 'br', 'tl', 'tr'. Can use a shortcut of All. * * @attribute handles * @default all * @type Array | String */ handles: { setter: '_setHandles', value: ALL }, /** * Node to wrap the resize handles. * * @attribute handlesWrapper * @type Node */ handlesWrapper: { readOnly: true, setter: Y.one, valueFn: '_valueHandlesWrapper' }, /** * The selector or element to resize. Required. * * @attribute node * @type Node */ node: { setter: Y.one }, /** * True when the element is being Resized. * * @attribute resizing * @default false * @type boolean */ resizing: { value: false, validator: isBoolean }, /** * True to wrap an element with a div if needed (required for textareas * and images, defaults to false) in favor of the handles config option. * The wrapper element type (default div) could be over-riden passing the * <code>wrapper</code> attribute. * * @attribute wrap * @default false * @type boolean */ wrap: { setter: '_setWrap', value: false, validator: isBoolean }, /** * Elements that requires a wrapper by default. Normally are elements * which cannot have children elements. * * @attribute wrapTypes * @default /canvas|textarea|input|select|button|img/i * @readOnly * @type Regex */ wrapTypes: { readOnly: true, value: /^canvas|textarea|input|select|button|img|iframe|table|embed$/i }, /** * Element to wrap the <code>wrapTypes</code>. This element will house * the handles elements. * * @attribute wrapper * @default div * @type String | Node * @writeOnce */ wrapper: { readOnly: true, valueFn: '_valueWrapper', writeOnce: true } }, RULES: { b: function(instance, dx, dy) { var info = instance.info, originalInfo = instance.originalInfo; info.offsetHeight = originalInfo.offsetHeight + dy; }, l: function(instance, dx) { var info = instance.info, originalInfo = instance.originalInfo; info.left = originalInfo.left + dx; info.offsetWidth = originalInfo.offsetWidth - dx; }, r: function(instance, dx) { var info = instance.info, originalInfo = instance.originalInfo; info.offsetWidth = originalInfo.offsetWidth + dx; }, t: function(instance, dx, dy) { var info = instance.info, originalInfo = instance.originalInfo; info.top = originalInfo.top + dy; info.offsetHeight = originalInfo.offsetHeight - dy; }, tr: function() { this.t.apply(this, arguments); this.r.apply(this, arguments); }, bl: function() { this.b.apply(this, arguments); this.l.apply(this, arguments); }, br: function() { this.b.apply(this, arguments); this.r.apply(this, arguments); }, tl: function() { this.t.apply(this, arguments); this.l.apply(this, arguments); } }, capitalize: capitalize }); Y.Resize = Y.extend( Resize, Y.Base, { /** * Array containing all possible resizable handles. * * @property ALL_HANDLES * @type {String} */ ALL_HANDLES: [ T, TR, R, BR, B, BL, L, TL ], /** * Regex which matches with the handles that could change the height of * the resizable element. * * @property REGEX_CHANGE_HEIGHT * @type {String} */ REGEX_CHANGE_HEIGHT: /^(t|tr|b|bl|br|tl)$/i, /** * Regex which matches with the handles that could change the left of * the resizable element. * * @property REGEX_CHANGE_LEFT * @type {String} */ REGEX_CHANGE_LEFT: /^(tl|l|bl)$/i, /** * Regex which matches with the handles that could change the top of * the resizable element. * * @property REGEX_CHANGE_TOP * @type {String} */ REGEX_CHANGE_TOP: /^(tl|t|tr)$/i, /** * Regex which matches with the handles that could change the width of * the resizable element. * * @property REGEX_CHANGE_WIDTH * @type {String} */ REGEX_CHANGE_WIDTH: /^(bl|br|l|r|tl|tr)$/i, /** * Template used to create the resize wrapper for the handles. * * @property HANDLES_WRAP_TEMPLATE * @type {String} */ HANDLES_WRAP_TEMPLATE: '<div class="'+CSS_RESIZE_HANDLES_WRAPPER+'"></div>', /** * Template used to create the resize wrapper node when needed. * * @property WRAP_TEMPLATE * @type {String} */ WRAP_TEMPLATE: '<div class="'+CSS_RESIZE_WRAPPER+'"></div>', /** * Template used to create each resize handle. * * @property HANDLE_TEMPLATE * @type {String} */ HANDLE_TEMPLATE: '<div class="'+concat(CSS_RESIZE_HANDLE, CSS_RESIZE_HANDLE_PLACEHOLDER)+'">' + '<div class="'+concat(CSS_RESIZE_HANDLE_INNER, CSS_RESIZE_HANDLE_INNER_PLACEHOLDER)+'">&nbsp;</div>' + '</div>', /** * Each box has a content area and optional surrounding padding and * border areas. This property stores the sum of all horizontal * surrounding * information needed to adjust the node height. * * @property totalHSurrounding * @default 0 * @type number */ totalHSurrounding: 0, /** * Each box has a content area and optional surrounding padding and * border areas. This property stores the sum of all vertical * surrounding * information needed to adjust the node height. * * @property totalVSurrounding * @default 0 * @type number */ totalVSurrounding: 0, /** * Stores the <a href="Resize.html#attr_node">node</a> * surrounding information retrieved from * <a href="Resize.html#method__getBoxSurroundingInfo">_getBoxSurroundingInfo</a>. * * @property nodeSurrounding * @type Object * @default null */ nodeSurrounding: null, /** * Stores the <a href="Resize.html#attr_wrapper">wrapper</a> * surrounding information retrieved from * <a href="Resize.html#method__getBoxSurroundingInfo">_getBoxSurroundingInfo</a>. * * @property wrapperSurrounding * @type Object * @default null */ wrapperSurrounding: null, /** * Whether the handle being dragged can change the height. * * @property changeHeightHandles * @default false * @type boolean */ changeHeightHandles: false, /** * Whether the handle being dragged can change the left. * * @property changeLeftHandles * @default false * @type boolean */ changeLeftHandles: false, /** * Whether the handle being dragged can change the top. * * @property changeTopHandles * @default false * @type boolean */ changeTopHandles: false, /** * Whether the handle being dragged can change the width. * * @property changeWidthHandles * @default false * @type boolean */ changeWidthHandles: false, /** * Store DD.Delegate reference for the respective Resize instance. * * @property delegate * @default null * @type Object */ delegate: null, /** * Stores the current values for the height, width, top and left. You are * able to manipulate these values on resize in order to change the resize * behavior. * * @property info * @type Object * @protected */ info: null, /** * Stores the last values for the height, width, top and left. * * @property lastInfo * @type Object * @protected */ lastInfo: null, /** * Stores the original values for the height, width, top and left, stored * on resize start. * * @property originalInfo * @type Object * @protected */ originalInfo: null, /** * Construction logic executed during Resize instantiation. Lifecycle. * * @method initializer * @protected */ initializer: function() { this._eventHandles = []; this.renderer(); }, /** * Create the DOM structure for the Resize. Lifecycle. * * @method renderUI * @protected */ renderUI: function() { var instance = this; instance._renderHandles(); }, /** * Bind the events on the Resize UI. Lifecycle. * * @method bindUI * @protected */ bindUI: function() { var instance = this; instance._createEvents(); instance._bindDD(); instance._bindHandle(); }, /** * Sync the Resize UI. * * @method syncUI * @protected */ syncUI: function() { var instance = this; this.get(NODE).addClass(CSS_RESIZE); // hide handles if AUTO_HIDE is true instance._setHideHandlesUI( instance.get(AUTO_HIDE) ); }, /** * Destructor lifecycle implementation for the Resize class. * Detaches all previously attached listeners and removes the Resize handles. * * @method destructor * @protected */ destructor: function() { var instance = this, node = instance.get(NODE), wrapper = instance.get(WRAPPER), pNode = wrapper.get(PARENT_NODE); Y.each( instance._eventHandles, function(handle) { handle.detach(); } ); instance._eventHandles.length = 0; // destroy handles dd and remove them from the dom instance.eachHandle(function(handleEl) { instance.delegate.dd.destroy(); // remove handle handleEl.remove(true); }); instance.delegate.destroy(); // unwrap node if (instance.get(WRAP)) { instance._copyStyles(wrapper, node); if (pNode) { pNode.insertBefore(node, wrapper); } wrapper.remove(true); } node.removeClass(CSS_RESIZE); node.removeClass(CSS_RESIZE_HIDDEN_HANDLES); }, /** * Creates DOM (or manipulates DOM for progressive enhancement) * This method is invoked by initializer(). It's chained automatically for * subclasses if required. * * @method renderer * @protected */ renderer: function() { this.renderUI(); this.bindUI(); this.syncUI(); }, /** * <p>Loop through each handle which is being used and executes a callback.</p> * <p>Example:</p> * <pre><code>instance.eachHandle( * function(handleName, index) { ... } * );</code></pre> * * @method eachHandle * @param {function} fn Callback function to be executed for each handle. */ eachHandle: function(fn) { var instance = this; Y.each( instance.get(HANDLES), function(handle, i) { var handleEl = instance.get( handleAttrName(handle) ); fn.apply(instance, [handleEl, handle, i]); } ); }, /** * Bind the handles DragDrop events to the Resize instance. * * @method _bindDD * @private */ _bindDD: function() { var instance = this; instance.delegate = new Y.DD.Delegate( { bubbleTargets: instance, container: instance.get(HANDLES_WRAPPER), dragConfig: { clickPixelThresh: 0, clickTimeThresh: 0, useShim: true, move: false }, nodes: DOT+CSS_RESIZE_HANDLE, target: false } ); instance._eventHandles.push( instance.on('drag:drag', instance._handleResizeEvent), instance.on('drag:dropmiss', instance._handleMouseUpEvent), instance.on('drag:end', instance._handleResizeEndEvent), instance.on('drag:start', instance._handleResizeStartEvent) ); }, /** * Bind the events related to the handles (_onHandleMouseEnter, _onHandleMouseLeave). * * @method _bindHandle * @private */ _bindHandle: function() { var instance = this, wrapper = instance.get(WRAPPER); instance._eventHandles.push( wrapper.on('mouseenter', Y.bind(instance._onWrapperMouseEnter, instance)), wrapper.on('mouseleave', Y.bind(instance._onWrapperMouseLeave, instance)), wrapper.delegate('mouseenter', Y.bind(instance._onHandleMouseEnter, instance), DOT+CSS_RESIZE_HANDLE), wrapper.delegate('mouseleave', Y.bind(instance._onHandleMouseLeave, instance), DOT+CSS_RESIZE_HANDLE) ); }, /** * Create the custom events used on the Resize. * * @method _createEvents * @private */ _createEvents: function() { var instance = this, // create publish function for kweight optimization publish = function(name, fn) { instance.publish(name, { defaultFn: fn, queuable: false, emitFacade: true, bubbles: true, prefix: RESIZE }); }; /** * Handles the resize start event. Fired when a handle starts to be * dragged. * * @event resize:start * @preventable _defResizeStartFn * @param {Event.Facade} event The resize start event. * @bubbles Resize * @type {Event.Custom} */ publish(EV_RESIZE_START, this._defResizeStartFn); /** * Handles the resize event. Fired on each pixel when the handle is * being dragged. * * @event resize:resize * @preventable _defResizeFn * @param {Event.Facade} event The resize event. * @bubbles Resize * @type {Event.Custom} */ publish(EV_RESIZE, this._defResizeFn); /** * Handles the resize align event. * * @event resize:align * @preventable _defResizeAlignFn * @param {Event.Facade} event The resize align event. * @bubbles Resize * @type {Event.Custom} */ publish(EV_RESIZE_ALIGN, this._defResizeAlignFn); /** * Handles the resize end event. Fired when a handle stop to be * dragged. * * @event resize:end * @preventable _defResizeEndFn * @param {Event.Facade} event The resize end event. * @bubbles Resize * @type {Event.Custom} */ publish(EV_RESIZE_END, this._defResizeEndFn); /** * Handles the resize mouseUp event. Fired when a mouseUp event happens on a * handle. * * @event resize:mouseUp * @preventable _defMouseUpFn * @param {Event.Facade} event The resize mouseUp event. * @bubbles Resize * @type {Event.Custom} */ publish(EV_MOUSE_UP, this._defMouseUpFn); }, /** * Responsible for loop each handle element and append to the wrapper. * * @method _renderHandles * @protected */ _renderHandles: function() { var instance = this, wrapper = instance.get(WRAPPER), handlesWrapper = instance.get(HANDLES_WRAPPER); instance.eachHandle(function(handleEl) { handlesWrapper.append(handleEl); }); wrapper.append(handlesWrapper); }, /** * Creates the handle element based on the handle name and initialize the * DragDrop on it. * * @method _buildHandle * @param {String} handle Handle name ('t', 'tr', 'b', ...). * @protected */ _buildHandle: function(handle) { var instance = this; return Y.Node.create( Y.Lang.sub(instance.HANDLE_TEMPLATE, { handle: handle }) ); }, /** * Basic resize calculations. * * @method _calcResize * @protected */ _calcResize: function() { var instance = this, handle = instance.handle, info = instance.info, originalInfo = instance.originalInfo, dx = info.actXY[0] - originalInfo.actXY[0], dy = info.actXY[1] - originalInfo.actXY[1]; if (handle && Y.Resize.RULES[handle]) { Y.Resize.RULES[handle](instance, dx, dy); } else { } }, /** * Helper method to update the current size value on * <a href="Resize.html#property_info">info</a> to respect the * min/max values and fix the top/left calculations. * * @method _checkSize * @param {String} offset 'offsetHeight' or 'offsetWidth' * @param {number} size Size to restrict the offset * @protected */ _checkSize: function(offset, size) { var instance = this, info = instance.info, originalInfo = instance.originalInfo, axis = (offset === OFFSET_HEIGHT) ? TOP : LEFT; // forcing the offsetHeight/offsetWidth to be the passed size info[offset] = size; // predicting, based on the original information, the last left valid in case of reach the min/max dimension // this calculation avoid browser event leaks when user interact very fast if (((axis === LEFT) && instance.changeLeftHandles) || ((axis === TOP) && instance.changeTopHandles)) { info[axis] = originalInfo[axis] + originalInfo[offset] - size; } }, /** * Copy relevant styles of the <a href="Resize.html#attr_node">node</a> * to the <a href="Resize.html#attr_wrapper">wrapper</a>. * * @method _copyStyles * @param {Node} node Node from. * @param {Node} wrapper Node to. * @protected */ _copyStyles: function(node, wrapper) { var position = node.getStyle(POSITION).toLowerCase(), surrounding = this._getBoxSurroundingInfo(node), wrapperStyle; // resizable wrapper should be positioned if (position === STATIC) { position = RELATIVE; } wrapperStyle = { position: position, left: getCompStyle(node, LEFT), top: getCompStyle(node, TOP) }; Y.mix(wrapperStyle, surrounding.margin); Y.mix(wrapperStyle, surrounding.border); wrapper.setStyles(wrapperStyle); // remove margin and border from the internal node node.setStyles({ border: 0, margin: 0 }); wrapper.sizeTo( node.get(OFFSET_WIDTH) + surrounding.totalHBorder, node.get(OFFSET_HEIGHT) + surrounding.totalVBorder ); }, // extract handle name from a string // using Y.cached to memoize the function for performance _extractHandleName: Y.cached( function(node) { var className = node.get(CLASS_NAME), match = className.match( new RegExp( getCN(RESIZE, HANDLE, '(\\w{1,2})\\b') ) ); return match ? match[1] : null; } ), /** * <p>Generates metadata to the <a href="Resize.html#property_info">info</a> * and <a href="Resize.html#property_originalInfo">originalInfo</a></p> * <pre><code>bottom, actXY, left, top, offsetHeight, offsetWidth, right</code></pre> * * @method _getInfo * @param {Node} node * @param {EventFacade} event * @private */ _getInfo: function(node, event) { var actXY = [0,0], drag = event.dragEvent.target, nodeXY = node.getXY(), nodeX = nodeXY[0], nodeY = nodeXY[1], offsetHeight = node.get(OFFSET_HEIGHT), offsetWidth = node.get(OFFSET_WIDTH); if (event) { // the xy that the node will be set to. Changing this will alter the position as it's dragged. actXY = (drag.actXY.length ? drag.actXY : drag.lastXY); } return { actXY: actXY, bottom: (nodeY + offsetHeight), left: nodeX, offsetHeight: offsetHeight, offsetWidth: offsetWidth, right: (nodeX + offsetWidth), top: nodeY }; }, /** * Each box has a content area and optional surrounding margin, * padding and * border areas. This method get all this information from * the passed node. For more reference see * <a href="http://www.w3.org/TR/CSS21/box.html#box-dimensions"> * http://www.w3.org/TR/CSS21/box.html#box-dimensions</a>. * * @method _getBoxSurroundingInfo * @param {Node} node * @private * @return {Object} */ _getBoxSurroundingInfo: function(node) { var info = { padding: {}, margin: {}, border: {} }; if (isNode(node)) { Y.each([ TOP, RIGHT, BOTTOM, LEFT ], function(dir) { var paddingProperty = capitalize(PADDING, dir), marginProperty = capitalize(MARGIN, dir), borderWidthProperty = capitalize(BORDER, dir, WIDTH), borderColorProperty = capitalize(BORDER, dir, COLOR), borderStyleProperty = capitalize(BORDER, dir, STYLE); info.border[borderColorProperty] = getCompStyle(node, borderColorProperty); info.border[borderStyleProperty] = getCompStyle(node, borderStyleProperty); info.border[borderWidthProperty] = getCompStyle(node, borderWidthProperty); info.margin[marginProperty] = getCompStyle(node, marginProperty); info.padding[paddingProperty] = getCompStyle(node, paddingProperty); }); } info.totalHBorder = (toRoundNumber(info.border.borderLeftWidth) + toRoundNumber(info.border.borderRightWidth)); info.totalHPadding = (toRoundNumber(info.padding.paddingLeft) + toRoundNumber(info.padding.paddingRight)); info.totalVBorder = (toRoundNumber(info.border.borderBottomWidth) + toRoundNumber(info.border.borderTopWidth)); info.totalVPadding = (toRoundNumber(info.padding.paddingBottom) + toRoundNumber(info.padding.paddingTop)); return info; }, /** * Sync the Resize UI with internal values from * <a href="Resize.html#property_info">info</a>. * * @method _syncUI * @protected */ _syncUI: function() { var instance = this, info = instance.info, wrapperSurrounding = instance.wrapperSurrounding, wrapper = instance.get(WRAPPER), node = instance.get(NODE); wrapper.sizeTo(info.offsetWidth, info.offsetHeight); if (instance.changeLeftHandles || instance.changeTopHandles) { wrapper.setXY([info.left, info.top]); } // if a wrap node is being used if (!wrapper.compareTo(node)) { // the original internal node borders were copied to the wrapper on // _copyStyles, to compensate that subtract the borders from the internal node node.sizeTo( info.offsetWidth - wrapperSurrounding.totalHBorder, info.offsetHeight - wrapperSurrounding.totalVBorder ); } // prevent webkit textarea resize if (Y.UA.webkit) { node.setStyle(RESIZE, NONE); } }, /** * Update <code>instance.changeHeightHandles, * instance.changeLeftHandles, instance.changeTopHandles, * instance.changeWidthHandles</code> information. * * @method _updateChangeHandleInfo * @private */ _updateChangeHandleInfo: function(handle) { var instance = this; instance.changeHeightHandles = instance.REGEX_CHANGE_HEIGHT.test(handle); instance.changeLeftHandles = instance.REGEX_CHANGE_LEFT.test(handle); instance.changeTopHandles = instance.REGEX_CHANGE_TOP.test(handle); instance.changeWidthHandles = instance.REGEX_CHANGE_WIDTH.test(handle); }, /** * Update <a href="Resize.html#property_info">info</a> values (bottom, actXY, left, top, offsetHeight, offsetWidth, right). * * @method _updateInfo * @private */ _updateInfo: function(event) { var instance = this; instance.info = instance._getInfo(instance.get(WRAPPER), event); }, /** * Update properties * <a href="Resize.html#property_nodeSurrounding">nodeSurrounding</a>, * <a href="Resize.html#property_nodeSurrounding">wrapperSurrounding</a>, * <a href="Resize.html#property_nodeSurrounding">totalVSurrounding</a>, * <a href="Resize.html#property_nodeSurrounding">totalHSurrounding</a>. * * @method _updateSurroundingInfo * @private */ _updateSurroundingInfo: function() { var instance = this, node = instance.get(NODE), wrapper = instance.get(WRAPPER), nodeSurrounding = instance._getBoxSurroundingInfo(node), wrapperSurrounding = instance._getBoxSurroundingInfo(wrapper); instance.nodeSurrounding = nodeSurrounding; instance.wrapperSurrounding = wrapperSurrounding; instance.totalVSurrounding = (nodeSurrounding.totalVPadding + wrapperSurrounding.totalVBorder); instance.totalHSurrounding = (nodeSurrounding.totalHPadding + wrapperSurrounding.totalHBorder); }, /** * Set the active state of the handles. * * @method _setActiveHandlesUI * @param {boolean} val True to activate the handles, false to deactivate. * @protected */ _setActiveHandlesUI: function(val) { var instance = this, activeHandleNode = instance.get(ACTIVE_HANDLE_NODE); if (activeHandleNode) { if (val) { // remove CSS_RESIZE_HANDLE_ACTIVE from all handles before addClass on the active instance.eachHandle( function(handleEl) { handleEl.removeClass(CSS_RESIZE_HANDLE_ACTIVE); } ); activeHandleNode.addClass(CSS_RESIZE_HANDLE_ACTIVE); } else { activeHandleNode.removeClass(CSS_RESIZE_HANDLE_ACTIVE); } } }, /** * Setter for the handles attribute * * @method _setHandles * @protected * @param {String} val */ _setHandles: function(val) { var instance = this, handles = []; // handles attr accepts both array or string if (isArray(val)) { handles = val; } else if (isString(val)) { // if the handles attr passed in is an ALL string... if (val.toLowerCase() === ALL) { handles = instance.ALL_HANDLES; } // otherwise, split the string to extract the handles else { Y.each( val.split(COMMA), function(node) { var handle = trim(node); // if its a valid handle, add it to the handles output if (indexOf(instance.ALL_HANDLES, handle) > -1) { handles.push(handle); } } ); } } return handles; }, /** * Set the visibility of the handles. * * @method _setHideHandlesUI * @param {boolean} val True to hide the handles, false to show. * @protected */ _setHideHandlesUI: function(val) { var instance = this, wrapper = instance.get(WRAPPER); if (!instance.get(RESIZING)) { if (val) { wrapper.addClass(CSS_RESIZE_HIDDEN_HANDLES); } else { wrapper.removeClass(CSS_RESIZE_HIDDEN_HANDLES); } } }, /** * Setter for the wrap attribute * * @method _setWrap * @protected * @param {boolean} val */ _setWrap: function(val) { var instance = this, node = instance.get(NODE), nodeName = node.get(NODE_NAME), typeRegex = instance.get(WRAP_TYPES); // if nodeName is listed on WRAP_TYPES force use the wrapper if (typeRegex.test(nodeName)) { val = true; } return val; }, /** * Default resize:mouseUp handler * * @method _defMouseUpFn * @param {EventFacade} event The Event object * @protected */ _defMouseUpFn: function() { var instance = this; instance.set(RESIZING, false); }, /** * Default resize:resize handler * * @method _defResizeFn * @param {EventFacade} event The Event object * @protected */ _defResizeFn: function(event) { var instance = this; instance._resize(event); }, /** * Logic method for _defResizeFn. Allow AOP. * * @method _resize * @param {EventFacade} event The Event object * @protected */ _resize: function(event) { var instance = this; instance._handleResizeAlignEvent(event.dragEvent); // _syncUI of the wrapper, not using proxy instance._syncUI(); }, /** * Default resize:align handler * * @method _defResizeAlignFn * @param {EventFacade} event The Event object * @protected */ _defResizeAlignFn: function(event) { var instance = this; instance._resizeAlign(event); }, /** * Logic method for _defResizeAlignFn. Allow AOP. * * @method _resizeAlign * @param {EventFacade} event The Event object * @protected */ _resizeAlign: function(event) { var instance = this, info, defMinHeight, defMinWidth; instance.lastInfo = instance.info; // update the instance.info values instance._updateInfo(event); info = instance.info; // basic resize calculations instance._calcResize(); // if Y.Plugin.ResizeConstrained is not plugged, check for min dimension if (!instance.con) { defMinHeight = (instance.get(DEF_MIN_HEIGHT) + instance.totalVSurrounding); defMinWidth = (instance.get(DEF_MIN_WIDTH) + instance.totalHSurrounding); if (info.offsetHeight <= defMinHeight) { instance._checkSize(OFFSET_HEIGHT, defMinHeight); } if (info.offsetWidth <= defMinWidth) { instance._checkSize(OFFSET_WIDTH, defMinWidth); } } }, /** * Default resize:end handler * * @method _defResizeEndFn * @param {EventFacade} event The Event object * @protected */ _defResizeEndFn: function(event) { var instance = this; instance._resizeEnd(event); }, /** * Logic method for _defResizeEndFn. Allow AOP. * * @method _resizeEnd * @param {EventFacade} event The Event object * @protected */ _resizeEnd: function(event) { var instance = this, drag = event.dragEvent.target; // reseting actXY from drag when drag end drag.actXY = []; // syncUI when resize end instance._syncUI(); instance._setActiveHandlesUI(false); instance.set(ACTIVE_HANDLE, null); instance.set(ACTIVE_HANDLE_NODE, null); instance.handle = null; }, /** * Default resize:start handler * * @method _defResizeStartFn * @param {EventFacade} event The Event object * @protected */ _defResizeStartFn: function(event) { var instance = this; instance._resizeStart(event); }, /** * Logic method for _defResizeStartFn. Allow AOP. * * @method _resizeStart * @param {EventFacade} event The Event object * @protected */ _resizeStart: function(event) { var instance = this, wrapper = instance.get(WRAPPER); instance.handle = instance.get(ACTIVE_HANDLE); instance.set(RESIZING, true); instance._updateSurroundingInfo(); // create an originalInfo information for reference instance.originalInfo = instance._getInfo(wrapper, event); instance._updateInfo(event); }, /** * Fires the resize:mouseUp event. * * @method _handleMouseUpEvent * @param {EventFacade} event resize:mouseUp event facade * @protected */ _handleMouseUpEvent: function(event) { this.fire(EV_MOUSE_UP, { dragEvent: event, info: this.info }); }, /** * Fires the resize:resize event. * * @method _handleResizeEvent * @param {EventFacade} event resize:resize event facade * @protected */ _handleResizeEvent: function(event) { this.fire(EV_RESIZE, { dragEvent: event, info: this.info }); }, /** * Fires the resize:align event. * * @method _handleResizeAlignEvent * @param {EventFacade} event resize:resize event facade * @protected */ _handleResizeAlignEvent: function(event) { this.fire(EV_RESIZE_ALIGN, { dragEvent: event, info: this.info }); }, /** * Fires the resize:end event. * * @method _handleResizeEndEvent * @param {EventFacade} event resize:end event facade * @protected */ _handleResizeEndEvent: function(event) { this.fire(EV_RESIZE_END, { dragEvent: event, info: this.info }); }, /** * Fires the resize:start event. * * @method _handleResizeStartEvent * @param {EventFacade} event resize:start event facade * @protected */ _handleResizeStartEvent: function(event) { if (!this.get(ACTIVE_HANDLE)) { //This handles the "touch" case this._setHandleFromNode(event.target.get('node')); } this.fire(EV_RESIZE_START, { dragEvent: event, info: this.info }); }, /** * Mouseenter event handler for the <a href="Resize.html#attr_wrapper">wrapper</a>. * * @method _onWrapperMouseEnter * @param {EventFacade} event * @protected */ _onWrapperMouseEnter: function() { var instance = this; if (instance.get(AUTO_HIDE)) { instance._setHideHandlesUI(false); } }, /** * Mouseleave event handler for the <a href="Resize.html#attr_wrapper">wrapper</a>. * * @method _onWrapperMouseLeave * @param {EventFacade} event * @protected */ _onWrapperMouseLeave: function() { var instance = this; if (instance.get(AUTO_HIDE)) { instance._setHideHandlesUI(true); } }, /** * Handles setting the activeHandle from a node, used from startDrag (for touch) and mouseenter (for mouse). * * @method _setHandleFromNode * @param {Node} node * @protected */ _setHandleFromNode: function(node) { var instance = this, handle = instance._extractHandleName(node); if (!instance.get(RESIZING)) { instance.set(ACTIVE_HANDLE, handle); instance.set(ACTIVE_HANDLE_NODE, node); instance._setActiveHandlesUI(true); instance._updateChangeHandleInfo(handle); } }, /** * Mouseenter event handler for the handles. * * @method _onHandleMouseEnter * @param {EventFacade} event * @protected */ _onHandleMouseEnter: function(event) { this._setHandleFromNode(event.currentTarget); }, /** * Mouseout event handler for the handles. * * @method _onHandleMouseLeave * @param {EventFacade} event * @protected */ _onHandleMouseLeave: function() { var instance = this; if (!instance.get(RESIZING)) { instance._setActiveHandlesUI(false); } }, /** * Default value for the wrapper handles node attribute * * @method _valueHandlesWrapper * @protected * @readOnly */ _valueHandlesWrapper: function() { return Y.Node.create(this.HANDLES_WRAP_TEMPLATE); }, /** * Default value for the wrapper attribute * * @method _valueWrapper * @protected * @readOnly */ _valueWrapper: function() { var instance = this, node = instance.get(NODE), pNode = node.get(PARENT_NODE), // by deafult the wrapper is always the node wrapper = node; // if the node is listed on the wrapTypes or wrap is set to true, create another wrapper if (instance.get(WRAP)) { wrapper = Y.Node.create(instance.WRAP_TEMPLATE); if (pNode) { pNode.insertBefore(wrapper, node); } wrapper.append(node); instance._copyStyles(node, wrapper); // remove positioning of wrapped node, the WRAPPER take care about positioning node.setStyles({ position: STATIC, left: 0, top: 0 }); } return wrapper; } } ); Y.each(Y.Resize.prototype.ALL_HANDLES, function(handle) { // creating ATTRS with the handles elements Y.Resize.ATTRS[handleAttrName(handle)] = { setter: function() { return this._buildHandle(handle); }, value: null, writeOnce: true }; }); }, '@VERSION@', {"requires": ["base", "widget", "event", "oop", "dd-drag", "dd-delegate", "dd-drop"], "skinnable": true});
StoneCypher/cdnjs
ajax/libs/yui/3.8.1/resize-base/resize-base.js
JavaScript
mit
49,861
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE /** * Smarty 2 and 3 mode. */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("smarty", function(config) { "use strict"; // our default settings; check to see if they're overridden var settings = { rightDelimiter: '}', leftDelimiter: '{', smartyVersion: 2 // for backward compatibility }; if (config.hasOwnProperty("leftDelimiter")) { settings.leftDelimiter = config.leftDelimiter; } if (config.hasOwnProperty("rightDelimiter")) { settings.rightDelimiter = config.rightDelimiter; } if (config.hasOwnProperty("smartyVersion") && config.smartyVersion === 3) { settings.smartyVersion = 3; } var keyFunctions = ["debug", "extends", "function", "include", "literal"]; var last; var regs = { operatorChars: /[+\-*&%=<>!?]/, validIdentifier: /[a-zA-Z0-9_]/, stringChar: /['"]/ }; var helpers = { cont: function(style, lastType) { last = lastType; return style; }, chain: function(stream, state, parser) { state.tokenize = parser; return parser(stream, state); } }; // our various parsers var parsers = { // the main tokenizer tokenizer: function(stream, state) { if (stream.match(settings.leftDelimiter, true)) { if (stream.eat("*")) { return helpers.chain(stream, state, parsers.inBlock("comment", "*" + settings.rightDelimiter)); } else { // Smarty 3 allows { and } surrounded by whitespace to NOT slip into Smarty mode state.depth++; var isEol = stream.eol(); var isFollowedByWhitespace = /\s/.test(stream.peek()); if (settings.smartyVersion === 3 && settings.leftDelimiter === "{" && (isEol || isFollowedByWhitespace)) { state.depth--; return null; } else { state.tokenize = parsers.smarty; last = "startTag"; return "tag"; } } } else { stream.next(); return null; } }, // parsing Smarty content smarty: function(stream, state) { if (stream.match(settings.rightDelimiter, true)) { if (settings.smartyVersion === 3) { state.depth--; if (state.depth <= 0) { state.tokenize = parsers.tokenizer; } } else { state.tokenize = parsers.tokenizer; } return helpers.cont("tag", null); } if (stream.match(settings.leftDelimiter, true)) { state.depth++; return helpers.cont("tag", "startTag"); } var ch = stream.next(); if (ch == "$") { stream.eatWhile(regs.validIdentifier); return helpers.cont("variable-2", "variable"); } else if (ch == "|") { return helpers.cont("operator", "pipe"); } else if (ch == ".") { return helpers.cont("operator", "property"); } else if (regs.stringChar.test(ch)) { state.tokenize = parsers.inAttribute(ch); return helpers.cont("string", "string"); } else if (regs.operatorChars.test(ch)) { stream.eatWhile(regs.operatorChars); return helpers.cont("operator", "operator"); } else if (ch == "[" || ch == "]") { return helpers.cont("bracket", "bracket"); } else if (ch == "(" || ch == ")") { return helpers.cont("bracket", "operator"); } else if (/\d/.test(ch)) { stream.eatWhile(/\d/); return helpers.cont("number", "number"); } else { if (state.last == "variable") { if (ch == "@") { stream.eatWhile(regs.validIdentifier); return helpers.cont("property", "property"); } else if (ch == "|") { stream.eatWhile(regs.validIdentifier); return helpers.cont("qualifier", "modifier"); } } else if (state.last == "pipe") { stream.eatWhile(regs.validIdentifier); return helpers.cont("qualifier", "modifier"); } else if (state.last == "whitespace") { stream.eatWhile(regs.validIdentifier); return helpers.cont("attribute", "modifier"); } if (state.last == "property") { stream.eatWhile(regs.validIdentifier); return helpers.cont("property", null); } else if (/\s/.test(ch)) { last = "whitespace"; return null; } var str = ""; if (ch != "/") { str += ch; } var c = null; while (c = stream.eat(regs.validIdentifier)) { str += c; } for (var i=0, j=keyFunctions.length; i<j; i++) { if (keyFunctions[i] == str) { return helpers.cont("keyword", "keyword"); } } if (/\s/.test(ch)) { return null; } return helpers.cont("tag", "tag"); } }, inAttribute: function(quote) { return function(stream, state) { var prevChar = null; var currChar = null; while (!stream.eol()) { currChar = stream.peek(); if (stream.next() == quote && prevChar !== '\\') { state.tokenize = parsers.smarty; break; } prevChar = currChar; } return "string"; }; }, inBlock: function(style, terminator) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { state.tokenize = parsers.tokenizer; break; } stream.next(); } return style; }; } }; // the public API for CodeMirror return { startState: function() { return { tokenize: parsers.tokenizer, mode: "smarty", last: null, depth: 0 }; }, token: function(stream, state) { var style = state.tokenize(stream, state); state.last = last; return style; }, electricChars: "" }; }); CodeMirror.defineMIME("text/x-smarty", "smarty"); });
schoren/cdnjs
ajax/libs/codemirror/4.10.0/mode/smarty/smarty.js
JavaScript
mit
6,419
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE /** * Smarty 2 and 3 mode. */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("smarty", function(config) { "use strict"; // our default settings; check to see if they're overridden var settings = { rightDelimiter: '}', leftDelimiter: '{', smartyVersion: 2 // for backward compatibility }; if (config.hasOwnProperty("leftDelimiter")) { settings.leftDelimiter = config.leftDelimiter; } if (config.hasOwnProperty("rightDelimiter")) { settings.rightDelimiter = config.rightDelimiter; } if (config.hasOwnProperty("smartyVersion") && config.smartyVersion === 3) { settings.smartyVersion = 3; } var keyFunctions = ["debug", "extends", "function", "include", "literal"]; var last; var regs = { operatorChars: /[+\-*&%=<>!?]/, validIdentifier: /[a-zA-Z0-9_]/, stringChar: /['"]/ }; var helpers = { cont: function(style, lastType) { last = lastType; return style; }, chain: function(stream, state, parser) { state.tokenize = parser; return parser(stream, state); } }; // our various parsers var parsers = { // the main tokenizer tokenizer: function(stream, state) { if (stream.match(settings.leftDelimiter, true)) { if (stream.eat("*")) { return helpers.chain(stream, state, parsers.inBlock("comment", "*" + settings.rightDelimiter)); } else { // Smarty 3 allows { and } surrounded by whitespace to NOT slip into Smarty mode state.depth++; var isEol = stream.eol(); var isFollowedByWhitespace = /\s/.test(stream.peek()); if (settings.smartyVersion === 3 && settings.leftDelimiter === "{" && (isEol || isFollowedByWhitespace)) { state.depth--; return null; } else { state.tokenize = parsers.smarty; last = "startTag"; return "tag"; } } } else { stream.next(); return null; } }, // parsing Smarty content smarty: function(stream, state) { if (stream.match(settings.rightDelimiter, true)) { if (settings.smartyVersion === 3) { state.depth--; if (state.depth <= 0) { state.tokenize = parsers.tokenizer; } } else { state.tokenize = parsers.tokenizer; } return helpers.cont("tag", null); } if (stream.match(settings.leftDelimiter, true)) { state.depth++; return helpers.cont("tag", "startTag"); } var ch = stream.next(); if (ch == "$") { stream.eatWhile(regs.validIdentifier); return helpers.cont("variable-2", "variable"); } else if (ch == "|") { return helpers.cont("operator", "pipe"); } else if (ch == ".") { return helpers.cont("operator", "property"); } else if (regs.stringChar.test(ch)) { state.tokenize = parsers.inAttribute(ch); return helpers.cont("string", "string"); } else if (regs.operatorChars.test(ch)) { stream.eatWhile(regs.operatorChars); return helpers.cont("operator", "operator"); } else if (ch == "[" || ch == "]") { return helpers.cont("bracket", "bracket"); } else if (ch == "(" || ch == ")") { return helpers.cont("bracket", "operator"); } else if (/\d/.test(ch)) { stream.eatWhile(/\d/); return helpers.cont("number", "number"); } else { if (state.last == "variable") { if (ch == "@") { stream.eatWhile(regs.validIdentifier); return helpers.cont("property", "property"); } else if (ch == "|") { stream.eatWhile(regs.validIdentifier); return helpers.cont("qualifier", "modifier"); } } else if (state.last == "pipe") { stream.eatWhile(regs.validIdentifier); return helpers.cont("qualifier", "modifier"); } else if (state.last == "whitespace") { stream.eatWhile(regs.validIdentifier); return helpers.cont("attribute", "modifier"); } if (state.last == "property") { stream.eatWhile(regs.validIdentifier); return helpers.cont("property", null); } else if (/\s/.test(ch)) { last = "whitespace"; return null; } var str = ""; if (ch != "/") { str += ch; } var c = null; while (c = stream.eat(regs.validIdentifier)) { str += c; } for (var i=0, j=keyFunctions.length; i<j; i++) { if (keyFunctions[i] == str) { return helpers.cont("keyword", "keyword"); } } if (/\s/.test(ch)) { return null; } return helpers.cont("tag", "tag"); } }, inAttribute: function(quote) { return function(stream, state) { var prevChar = null; var currChar = null; while (!stream.eol()) { currChar = stream.peek(); if (stream.next() == quote && prevChar !== '\\') { state.tokenize = parsers.smarty; break; } prevChar = currChar; } return "string"; }; }, inBlock: function(style, terminator) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { state.tokenize = parsers.tokenizer; break; } stream.next(); } return style; }; } }; // the public API for CodeMirror return { startState: function() { return { tokenize: parsers.tokenizer, mode: "smarty", last: null, depth: 0 }; }, token: function(stream, state) { var style = state.tokenize(stream, state); state.last = last; return style; }, electricChars: "" }; }); CodeMirror.defineMIME("text/x-smarty", "smarty"); });
sevypannella/cdnjs
ajax/libs/codemirror/4.13.0/mode/smarty/smarty.js
JavaScript
mit
6,419
/* * /MathJax/jax/output/SVG/fonts/Gyre-Termes/Monospace/Regular/Main.js * * Copyright (c) 2009-2014 The MathJax Consortium * * 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. */ MathJax.OutputJax.SVG.FONTDATA.FONTS.GyreTermesMathJax_Monospace={directory:"Monospace/Regular",family:"GyreTermesMathJax_Monospace",id:"GYRETERMESMONOSPACE",32:[0,0,600,0,0,""],160:[0,0,600,0,0,""],120432:[563,0,600,9,591,"591 21c0 -14 -9 -21 -27 -21h-156c-18 0 -27 7 -27 21c0 13 9 20 27 20h76l-56 147h-266l-54 -147h79c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-151c-18 0 -27 7 -27 21c0 13 9 20 27 20h31l179 481h-120c-18 0 -27 7 -27 21c0 13 9 20 27 20h204l197 -522h37 c18 0 27 -7 27 -20zM413 229l-112 293h-15l-108 -293h235"],120433:[563,0,600,43,541,"541 153c0 -84 -74 -153 -165 -153h-306c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v481h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h258c97 0 171 -63 171 -145c0 -51 -26 -88 -85 -120c84 -30 127 -78 127 -145zM458 419c0 58 -56 103 -129 103h-164v-209h147 c85 0 146 44 146 106zM500 153c0 66 -59 119 -186 119h-149v-231h208c71 0 127 50 127 112"],120434:[576,16,600,63,534,"534 106c0 -10 -12 -27 -38 -51c-49 -46 -110 -71 -174 -71c-136 0 -259 123 -259 258v83c0 132 107 251 242 251c66 0 126 -24 173 -69v29c0 18 7 27 21 27c13 0 20 -9 20 -27v-112c0 -18 -7 -27 -21 -27c-12 0 -19 8 -20 24c-4 61 -84 114 -173 114 c-111 0 -201 -97 -201 -216v-71c0 -120 100 -223 218 -223c69 0 120 26 174 90c7 8 11 10 18 10c12 0 20 -8 20 -19"],120435:[563,0,600,43,520,"520 254c0 -142 -101 -254 -230 -254h-220c-18 0 -27 7 -27 21c0 13 9 20 27 20h34v481h-34c-18 0 -27 7 -27 21c0 13 9 20 27 20h220c129 0 230 -112 230 -253v-56zM479 245v73c0 98 -74 204 -191 204h-143v-481h150c96 0 184 98 184 204"],120436:[563,0,600,43,520,"520 0h-450c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v481h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h429v-139c0 -18 -7 -27 -21 -27c-13 0 -20 9 -20 27v98h-293v-209h145v45c0 18 7 27 21 27c13 0 20 -9 20 -27v-131c0 -18 -7 -27 -20 -27c-14 0 -21 9 -21 27v45h-145 v-231h314v119c0 18 7 27 21 27c13 0 20 -9 20 -27v-160"],120437:[563,0,600,43,520,"520 424c0 -18 -7 -27 -21 -27c-13 0 -20 9 -20 27v98h-314v-209h145v45c0 18 7 27 20 27c14 0 21 -9 21 -27v-131c0 -18 -7 -27 -21 -27c-13 0 -20 9 -20 27v45h-145v-231h138c19 0 28 -7 28 -20c0 -14 -10 -21 -28 -21h-233c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v481 h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h450v-139"],120438:[576,16,600,63,562,"562 230c0 -14 -9 -21 -28 -21h-14v-173c-59 -34 -125 -52 -187 -52c-164 0 -270 102 -270 260v74c0 139 105 258 250 258c66 0 121 -18 166 -54v14c0 18 7 27 21 27s20 -8 20 -27v-91c0 -18 -7 -27 -20 -27s-19 8 -20 25c-4 51 -76 92 -165 92 c-122 0 -211 -105 -211 -218v-73c0 -136 88 -219 232 -219c52 0 87 8 143 34v150h-139c-18 0 -27 7 -27 21c0 13 9 20 27 20h194c19 0 28 -7 28 -20"],120439:[563,0,600,53,551,"551 21c0 -14 -10 -21 -27 -21h-141c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v231h-270v-231h54c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-140c-18 0 -28 7 -28 21c0 13 9 20 28 20h45v481h-25c-18 0 -27 7 -27 21c0 13 9 20 27 20h120c18 0 27 -7 27 -20 c0 -14 -9 -21 -27 -21h-54v-209h270v209h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h120c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-25v-481h46c18 0 27 -7 27 -20"],120440:[563,0,600,113,487,"487 21c0 -14 -10 -21 -28 -21h-319c-18 0 -27 7 -27 21c0 13 9 20 27 20h139v481h-139c-18 0 -27 7 -27 21c0 13 9 20 27 20h319c19 0 28 -7 28 -20c0 -14 -9 -21 -28 -21h-139v-481h139c19 0 28 -7 28 -20"],120441:[563,16,600,84,583,"583 543c0 -14 -9 -21 -27 -21h-96v-357c0 -99 -85 -181 -188 -181c-64 0 -116 25 -188 90v149c0 18 7 27 21 27c13 0 20 -9 20 -27v-130c51 -46 98 -68 148 -68c81 0 146 62 146 140v357h-159c-18 0 -27 7 -27 21c0 13 9 20 27 20h296c18 0 27 -7 27 -20"],120442:[563,0,600,43,572,"572 21c0 -14 -9 -21 -27 -21h-87c-73 203 -117 263 -212 294l-81 -73v-180h75c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-170c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v481h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h170c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-75v-249 l272 249h-37c-19 0 -28 7 -28 21c0 13 9 20 28 20h118c19 0 28 -7 28 -20c0 -14 -9 -21 -28 -21h-24l-214 -198c97 -40 134 -91 209 -283h56c18 0 27 -7 27 -20"],120443:[563,0,600,63,541,"541 0h-451c-18 0 -27 7 -27 21c0 13 9 20 27 20h96v481h-96c-18 0 -27 7 -27 21c0 13 9 20 27 20h233c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-96v-481h273v160c0 18 7 27 21 27c13 0 20 -9 20 -27v-201"],120444:[563,0,600,11,593,"593 21c0 -14 -9 -21 -27 -21h-149c-18 0 -27 7 -27 21c0 13 9 20 27 20h74v481h-8l-157 -353h-46l-159 353h-8v-481h74c19 0 28 -7 28 -20c0 -14 -10 -21 -28 -21h-149c-18 0 -27 7 -27 21c0 13 9 20 27 20h34v481h-25c-18 0 -27 7 -27 21c0 13 9 20 27 20h99l157 -348 l154 348h100c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-25v-481h34c18 0 27 -7 27 -20"],120445:[563,0,600,22,562,"562 543c0 -14 -9 -21 -27 -21h-34v-522h-52l-305 504v-463h75c18 0 27 -7 27 -20c0 -14 -10 -21 -27 -21h-150c-18 0 -27 7 -27 21c0 13 9 20 27 20h34v481h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h106l305 -504v463h-74c-19 0 -28 7 -28 21c0 13 9 20 28 20h149 c18 0 27 -7 27 -20"],120446:[576,16,600,51,549,"549 276c0 -161 -112 -292 -249 -292c-139 0 -249 131 -249 296s110 296 249 296c141 0 249 -130 249 -300zM508 277c0 144 -92 258 -208 258c-115 0 -208 -115 -208 -255s94 -255 208 -255c113 0 208 115 208 252"],120447:[563,0,600,43,499,"499 398c0 -93 -89 -167 -203 -167h-131v-190h138c19 0 28 -7 28 -20c0 -14 -10 -21 -28 -21h-233c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v481h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h240c106 0 189 -72 189 -165zM458 398c0 68 -65 124 -144 124h-149v-250h134 c87 0 159 57 159 126"],120448:[576,115,600,51,549,"549 280c0 -164 -106 -292 -244 -296l-54 -40c30 6 46 8 67 8c43 0 107 -26 127 -26c21 0 38 7 69 27c4 3 8 4 12 4c11 0 20 -9 20 -21c0 -20 -62 -51 -104 -51c-21 0 -83 26 -124 26c-30 0 -97 -11 -140 -23c-4 -1 -7 -2 -10 -2c-11 0 -20 9 -20 21c0 7 4 13 11 18 l90 65c-114 25 -198 149 -198 290c0 165 110 296 249 296s249 -131 249 -296zM508 277c0 144 -92 258 -208 258c-115 0 -208 -115 -208 -255s94 -255 208 -255c113 0 208 115 208 252"],120449:[563,0,600,43,589,"589 21c0 -14 -9 -21 -27 -21h-57c-88 162 -132 216 -208 251h-132v-210h75c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-170c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v481h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h248c97 0 180 -72 180 -156c0 -65 -46 -113 -139 -145 c63 -43 91 -80 172 -221h31c18 0 27 -7 27 -20zM457 408c0 60 -67 114 -139 114h-153v-230h114c98 0 178 52 178 116"],120450:[576,16,600,92,508,"508 151c0 -97 -86 -167 -206 -167c-69 0 -128 25 -169 72v-29c0 -18 -7 -27 -21 -27c-13 0 -20 9 -20 27v112c0 18 7 27 21 27c13 0 19 -8 20 -24c3 -66 77 -117 168 -117c93 0 163 54 163 128c0 35 -17 66 -45 84c-25 16 -45 22 -116 34c-141 24 -188 69 -188 150 c0 88 79 155 184 155c59 0 104 -18 146 -59v19c0 18 7 27 21 27c13 0 20 -9 20 -27v-103c0 -18 -7 -27 -20 -27s-20 8 -21 24c-4 60 -65 105 -143 105c-82 0 -143 -49 -143 -115c0 -61 34 -92 152 -111c77 -13 105 -21 135 -40c39 -24 62 -67 62 -118"],120451:[563,0,600,72,528,"528 449c0 -19 -6 -27 -20 -27c-12 0 -21 11 -21 27v73h-166v-481h105c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-251c-18 0 -27 7 -27 21c0 13 9 20 27 20h105v481h-167v-73c0 -18 -7 -27 -21 -27c-13 0 -20 9 -20 27v114h456v-114"],120452:[563,16,600,40,560,"560 543c0 -14 -9 -21 -27 -21h-34v-337c0 -114 -87 -201 -199 -201c-113 0 -199 87 -199 201v337h-34c-18 0 -27 7 -27 21s9 20 27 20h149c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-74v-337c0 -90 69 -160 158 -160c88 0 158 70 158 160v337h-74c-18 0 -27 7 -27 21 s8 20 27 20h149c19 0 27 -6 27 -20"],120453:[563,0,600,9,591,"591 543c0 -14 -9 -21 -27 -21h-31l-209 -522h-57l-200 522h-31c-18 0 -27 7 -27 21s9 20 27 20h151c18 0 27 -6 27 -20s-9 -21 -27 -21h-77l186 -481h3l193 481h-78c-18 0 -27 7 -27 21c0 13 8 20 27 20h150c18 0 27 -6 27 -20"],120454:[563,0,600,20,580,"580 543c0 -14 -9 -21 -27 -21h-20l-57 -522h-64l-112 400l-115 -400h-63l-55 522h-20c-18 0 -27 7 -27 21c0 13 9 20 27 20h149c19 0 28 -7 28 -20c0 -14 -9 -21 -28 -21h-88l51 -476l112 392h62l109 -392l52 476h-91c-18 0 -27 7 -27 21c0 13 9 20 27 20h150 c18 0 27 -7 27 -20"],120455:[563,0,600,40,560,"560 21c0 -14 -9 -21 -27 -21h-132c-18 0 -27 7 -27 21c0 13 9 20 27 20h57l-160 214l-159 -214h59c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-131c-18 0 -27 7 -27 21c0 13 9 20 27 20h22l183 247l-174 234h-20c-18 0 -27 7 -27 21c0 13 9 20 27 20h110 c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-38l150 -201l148 201h-40c-18 0 -27 7 -27 21c0 13 9 20 27 20h111c18 0 27 -6 27 -20s-9 -21 -27 -21h-20l-174 -234l186 -247h22c18 0 27 -7 27 -20"],120456:[563,0,600,51,549,"549 543c0 -13 -11 -21 -27 -21h-24l-176 -268v-213h105c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-251c-18 0 -27 7 -27 21c0 13 9 20 27 20h105v213l-179 268h-24c-18 0 -27 7 -27 21c0 13 9 20 27 20h111c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-38l152 -227 l149 227h-40c-19 0 -28 7 -28 21c0 13 9 20 28 20h110c17 0 27 -8 27 -20"],120457:[563,0,600,103,497,"497 0h-394v59l328 463h-269v-118c0 -19 -7 -28 -20 -28c-14 0 -21 9 -21 28v159h349v-58l-328 -464h314v141c0 18 6 27 20 27s21 -9 21 -27v-182"],120458:[431,16,600,72,541,"541 21c0 -14 -9 -21 -27 -21h-95v67c-61 -57 -121 -83 -191 -83c-93 0 -156 52 -156 128c0 87 86 146 211 146c46 0 77 -5 136 -21v71c0 49 -50 82 -123 82c-36 0 -64 -6 -142 -30c-4 -1 -10 -2 -10 -2c-10 0 -19 9 -19 20c0 10 6 17 17 21c55 19 120 32 157 32 c93 0 161 -52 161 -123v-267h54c18 0 27 -7 27 -20zM419 112v90c-36 9 -84 15 -128 15c-106 0 -178 -43 -178 -106c0 -52 45 -86 114 -86c71 0 125 24 192 87"],120459:[604,16,600,22,541,"541 210c0 -125 -97 -226 -217 -226c-73 0 -133 34 -180 104v-88h-95c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v522h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h95v-276c50 71 106 103 180 103c122 0 217 -97 217 -221zM500 205c0 104 -78 185 -178 185 c-99 0 -178 -81 -178 -182s79 -183 178 -183c97 0 178 82 178 180"],120460:[431,16,600,84,535,"535 88c0 -12 -15 -30 -43 -49c-51 -35 -117 -55 -183 -55c-131 0 -225 92 -225 220c0 132 96 227 230 227c61 0 115 -19 156 -55v13c0 19 7 28 21 28c13 0 20 -9 20 -28v-91c0 -18 -7 -27 -20 -27s-19 7 -21 24c-4 53 -75 95 -159 95c-110 0 -186 -75 -186 -185 c0 -105 77 -180 186 -180c73 0 135 24 187 72c8 8 11 10 18 10c10 0 19 -9 19 -19"],120461:[604,16,600,63,583,"583 21c0 -14 -9 -21 -27 -21h-95v89c-47 -70 -107 -105 -182 -105c-119 0 -216 101 -216 224s97 223 216 223c75 0 133 -33 182 -104v236h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h95v-563h54c18 0 27 -7 27 -20zM461 206c0 104 -78 184 -179 184 c-99 0 -178 -81 -178 -182c0 -102 79 -183 179 -183c98 0 178 81 178 181"],120462:[431,16,600,63,520,"520 199h-416c14 -105 94 -174 202 -174c62 0 135 22 175 54c7 5 11 7 16 7c10 0 19 -9 19 -20c0 -35 -120 -82 -211 -82c-135 0 -242 103 -242 233c0 121 100 214 228 214c96 0 176 -51 212 -134c14 -33 17 -52 17 -98zM478 240c-16 91 -90 150 -187 150 s-169 -58 -187 -150h374"],120463:[604,0,600,105,541,"541 571c0 -12 -9 -20 -21 -20c0 0 -2 0 -50 6c-27 3 -66 6 -88 6c-66 0 -111 -35 -111 -85v-61h189c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-189v-335h178c18 0 27 -7 27 -20c0 -14 -10 -21 -27 -21h-317c-18 0 -27 7 -27 21c0 13 9 20 27 20h98v335h-88 c-18 0 -27 7 -27 21c0 13 9 20 27 20h88v61c0 73 64 126 154 126c38 0 107 -7 139 -13c12 -3 18 -10 18 -20"],120464:[431,186,600,63,562,"562 397c0 -14 -9 -21 -27 -21h-54v-404c0 -41 -13 -72 -43 -104c-35 -37 -72 -54 -122 -54h-114c-18 0 -27 7 -27 21c0 13 9 20 27 20h116c68 0 122 55 122 123v104c-45 -66 -99 -97 -171 -97c-113 0 -206 107 -206 223s93 223 206 223c73 0 126 -30 171 -97v83h95 c18 0 27 -7 27 -20zM440 206c0 97 -73 184 -168 184c-94 0 -168 -88 -168 -182c0 -95 75 -182 168 -182s168 87 168 180"],120465:[604,0,600,43,551,"551 21c0 -14 -9 -21 -28 -21h-131c-18 0 -27 7 -27 21c0 13 9 20 27 20h45v247c0 66 -58 102 -123 102c-56 0 -84 -17 -138 -81l-11 -13v-255h45c19 0 28 -7 28 -20c0 -14 -10 -21 -28 -21h-132c-17 0 -27 7 -27 21c0 13 9 20 27 20h46v522h-54c-18 0 -27 7 -27 21 c0 13 9 20 27 20h95v-257c51 61 93 84 154 84c93 0 159 -59 159 -140v-250h45c19 0 28 -7 28 -20"],120466:[610,0,600,92,508,"508 21c0 -14 -10 -21 -28 -21h-361c-18 0 -27 7 -27 21c0 13 9 20 27 20h160v335h-118c-18 0 -27 7 -27 21c0 13 9 20 27 20h159v-376h160c19 0 28 -7 28 -20zM350 559c0 -26 -23 -49 -50 -49s-50 23 -50 50s23 50 50 50c28 0 50 -23 50 -51"],120467:[610,186,600,147,458,"458 -28c0 -93 -64 -158 -155 -158h-129c-18 0 -27 7 -27 21c0 13 9 20 27 20h128c66 0 115 49 115 117v404h-241c-18 0 -27 7 -27 21c0 13 9 20 27 20h282v-445zM438 559c0 -26 -23 -49 -50 -49s-50 23 -50 50s23 50 50 50c28 0 50 -23 50 -51"],120468:[604,0,600,63,541,"541 21c0 -14 -9 -21 -27 -21h-131c-18 0 -27 7 -27 21c0 13 9 20 27 20h28l-180 178l-46 -39v-180h-95c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v522h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h95v-375l173 147h-22c-18 0 -27 7 -27 21c0 13 9 20 27 20h130 c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-47l-157 -131l207 -204h45c18 0 27 -7 27 -20"],120469:[604,0,600,92,508,"508 21c0 -14 -10 -21 -28 -21h-361c-18 0 -27 7 -27 21c0 13 9 20 27 20h160v522h-117c-18 0 -27 7 -27 21c0 13 9 20 27 20h158v-563h160c19 0 28 -7 28 -20"],120470:[431,0,600,11,593,"593 21c0 -14 -9 -21 -27 -21h-74v319c0 38 -31 71 -66 71c-36 0 -66 -24 -104 -82v-267h34c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-74v316c0 39 -31 74 -65 74c-35 0 -67 -25 -105 -82v-267h34c18 0 27 -7 27 -20c0 -14 -10 -21 -27 -21h-109c-17 0 -26 7 -26 21 c0 13 9 20 27 20h34v335h-34c-18 0 -27 7 -27 21c0 13 9 20 27 20h74v-52c34 48 63 66 105 66c43 0 75 -23 97 -71c39 50 72 71 113 71c58 0 105 -49 105 -108v-282h34c18 0 27 -7 27 -20"],120471:[431,0,600,53,541,"541 21c0 -14 -9 -21 -27 -21h-109c-18 0 -27 7 -27 21c0 13 9 20 27 20h34v247c0 64 -58 102 -120 102c-78 0 -107 -36 -152 -96v-253h45c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-131c-19 0 -28 7 -28 21c0 13 9 20 28 20h45v335h-34c-18 0 -27 7 -27 21 c0 13 9 20 27 20h75v-69c58 64 94 83 156 83c89 0 157 -59 157 -136v-254h34c18 0 27 -7 27 -20"],120472:[431,16,600,72,528,"528 205c0 -122 -102 -221 -228 -221c-127 0 -228 99 -228 224c0 123 101 223 228 223c128 0 228 -99 228 -226zM487 205c0 105 -82 185 -187 185c-104 0 -187 -81 -187 -182c0 -102 83 -183 187 -183c103 0 187 81 187 180"],120473:[431,186,600,22,541,"541 209c0 -119 -95 -224 -218 -224c-77 0 -133 30 -179 96v-226h98c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-193c-18 0 -27 7 -27 21c0 13 9 20 27 20h54v521h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h95v-82c53 69 103 96 179 96c124 0 218 -103 218 -222zM500 207 c0 97 -77 183 -178 183c-99 0 -178 -87 -178 -181c0 -95 79 -183 178 -183c98 0 178 88 178 181"],120474:[431,186,600,63,583,"583 -165c0 -14 -9 -21 -27 -21h-193c-18 0 -27 7 -27 21c0 13 9 20 27 20h98v226c-46 -66 -102 -96 -180 -96c-123 0 -218 105 -218 224s95 222 219 222c77 0 132 -30 179 -96v82h95c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-54v-521h54c18 0 27 -7 27 -20zM461 207 c0 97 -78 183 -179 183c-100 0 -178 -86 -178 -181s78 -183 178 -183c99 0 179 88 179 181"],120475:[427,0,600,84,541,"541 365c0 -12 -9 -21 -21 -21c-7 0 -9 1 -16 8c-24 23 -44 34 -66 34c-45 0 -80 -23 -190 -124v-221h179c17 0 27 -8 27 -21c0 -12 -10 -20 -27 -20h-316c-17 0 -27 8 -27 21c0 12 10 20 27 20h96v335h-75c-17 0 -27 8 -27 21c0 12 10 20 27 20h116v-102 c93 84 142 112 193 112c29 0 51 -9 77 -31c17 -14 23 -22 23 -31"],120476:[431,16,600,103,497,"497 116c0 -76 -83 -132 -196 -132c-65 0 -115 17 -157 54v-11c0 -18 -7 -27 -20 -27c-14 0 -21 9 -21 27v83c0 18 7 27 21 27c12 0 20 -9 20 -22v-7c0 -46 69 -83 154 -83c88 0 154 39 154 92c0 46 -44 78 -152 90c-142 16 -176 52 -176 111c0 65 73 113 171 113 c57 0 102 -15 137 -46v4c0 17 8 28 21 28s20 -9 20 -28v-69c0 -18 -7 -27 -20 -27c-12 0 -19 7 -21 23c-5 45 -57 74 -133 74c-74 0 -130 -32 -130 -75c0 -60 62 -56 148 -70c119 -19 180 -58 180 -129"],120477:[563,16,600,43,499,"499 51c0 -29 -114 -67 -199 -67c-94 0 -155 48 -155 123v269h-74c-19 0 -28 7 -28 21c0 13 9 20 28 20h74v119c0 18 7 27 21 27s20 -8 20 -27v-119h220c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-220v-267c0 -51 43 -84 112 -84c56 0 127 17 166 40c8 5 11 6 16 6 c10 0 19 -10 19 -20"],120478:[417,16,600,43,541,"541 21c0 -14 -9 -21 -27 -21h-75v66c-55 -54 -116 -82 -182 -82c-80 0 -133 52 -133 131v261h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h95v-302c0 -50 40 -90 91 -90c67 0 128 30 183 90v261h-74c-19 0 -28 7 -28 21c0 13 9 20 28 20h115v-376h34c18 0 27 -7 27 -20"],120479:[417,0,600,30,570,"570 397c0 -14 -9 -21 -27 -21h-41l-166 -376h-70l-168 376h-41c-18 0 -27 7 -27 21c0 13 9 20 27 20h151c19 0 28 -7 28 -20c0 -14 -9 -21 -28 -21h-65l150 -335h19l147 335h-68c-18 0 -27 7 -27 21c0 13 9 20 27 20h152c18 0 27 -7 27 -20"],120480:[417,0,600,30,570,"570 397c0 -14 -9 -21 -27 -21h-19l-83 -376h-50l-91 259l-89 -259h-51l-84 376h-19c-18 0 -27 7 -27 21c0 13 9 20 27 20h111c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-53l72 -320l86 255h51l89 -255l69 320h-50c-18 0 -27 7 -27 21c0 13 9 20 27 20h111 c18 0 27 -7 27 -20"],120481:[417,0,600,51,549,"549 21c0 -14 -9 -21 -27 -21h-132c-18 0 -27 7 -27 21c0 13 9 20 27 20h65l-155 149l-157 -149h68c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-133c-18 0 -27 7 -27 21c0 13 9 20 27 20h9l184 178l-163 157h-7c-18 0 -27 7 -27 21c0 13 9 20 27 20h111c18 0 27 -6 27 -20 s-9 -21 -27 -21h-46l134 -130l137 130h-48c-18 0 -27 7 -27 21c0 13 9 20 27 20h110c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-7l-163 -157l184 -178h9c18 0 27 -7 27 -20"],120482:[417,186,600,51,549,"549 397c0 -14 -9 -21 -27 -21h-14l-256 -521h65c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-233c-18 0 -27 7 -27 21c0 13 9 20 27 20h127l71 145l-188 376h-16c-18 0 -27 7 -27 21c0 13 9 20 27 20h115c18 0 27 -7 27 -20c0 -14 -9 -21 -27 -21h-52l164 -331l161 331 h-54c-18 0 -27 7 -27 21c0 13 9 20 27 20h110c18 0 27 -7 27 -20"],120483:[417,0,600,115,489,"489 0h-374v36l301 340h-251v-55c0 -18 -7 -27 -20 -27c-14 0 -21 9 -21 27v96h350v-36l-303 -340h277v56c0 18 7 27 21 27c13 0 20 -9 20 -27v-97"],120822:[618,15,600,113,487,"487 251c0 -158 -76 -266 -187 -266s-187 108 -187 266v100c0 159 76 267 187 267s187 -108 187 -267v-100zM446 257v89c0 110 -45 231 -146 231s-146 -121 -146 -231v-89c0 -110 45 -231 146 -231s146 121 146 231"],120823:[612,0,600,113,487,"487 21c0 -14 -9 -21 -27 -21h-319c-18 0 -28 7 -28 21c0 13 9 20 28 20h139v516l-132 -42l-14 -3c-9 0 -19 10 -19 20c0 11 5 17 21 22l185 58v-571h139c18 0 27 -7 27 -20"],120824:[618,0,600,84,478,"478 0h-394v60l236 222c94 92 113 120 113 165c0 69 -67 130 -143 130c-68 0 -130 -45 -146 -105c-4 -14 -10 -20 -21 -20c-10 0 -19 9 -19 18c0 71 98 148 186 148c98 0 184 -81 184 -172c0 -59 -72 -142 -144 -209l-207 -193v-3h314v36c0 18 7 27 21 27 c13 0 20 -9 20 -27v-77"],120825:[618,15,600,96,499,"499 168c0 -101 -94 -183 -209 -183c-63 0 -194 46 -194 84c0 10 9 19 19 19c6 0 10 -2 17 -7c47 -36 103 -55 159 -55c91 0 167 65 167 142c0 78 -82 144 -179 144c-18 0 -27 7 -27 21c0 13 10 20 27 20c50 0 65 1 87 11c42 18 70 56 70 99c0 65 -59 114 -136 114 c-56 0 -105 -20 -134 -54c-10 -12 -13 -14 -21 -14c-11 0 -20 9 -20 19c0 39 102 90 176 90c100 0 176 -67 176 -154c0 -64 -41 -105 -103 -136c78 -32 125 -92 125 -160"],120826:[604,0,600,105,478,"478 21c0 -14 -9 -21 -27 -21h-151c-18 0 -27 7 -27 21c0 13 9 20 27 20h76v128h-271v47l228 388h84v-394h34c18 0 27 -7 27 -21c0 -13 -9 -20 -27 -20h-34v-128h34c18 0 27 -7 27 -20zM376 210v353h-24l-208 -353h232"],120827:[604,15,600,96,499,"499 201c0 -126 -85 -216 -204 -216c-72 0 -199 59 -199 97c0 11 9 20 20 20c6 0 10 -2 17 -9c48 -44 102 -67 160 -67c98 0 165 72 165 177c0 89 -58 151 -142 151c-40 0 -84 -11 -126 -33c-12 -6 -17 -8 -22 -8c-11 0 -19 9 -19 22v269h282c19 0 28 -7 28 -20 c0 -14 -9 -21 -28 -21h-241v-198c51 21 88 30 132 30c102 0 177 -82 177 -194"],120828:[618,15,600,136,510,"510 178c0 -108 -76 -193 -173 -193c-118 0 -201 122 -201 297c0 195 129 336 292 336c43 0 79 -16 79 -35c0 -11 -8 -20 -19 -20c-9 0 -28 14 -64 14c-123 0 -249 -115 -249 -292c0 -9 1 -24 2 -43c41 82 95 122 166 122c91 0 167 -84 167 -186zM469 178 c0 79 -57 145 -127 145c-60 0 -104 -35 -159 -135c27 -105 76 -162 155 -162c74 0 131 66 131 152"],120829:[604,1,600,105,478,"478 539l-163 -519c-5 -16 -10 -21 -20 -21c-11 0 -20 9 -20 20c0 3 1 9 2 13l160 513v18h-291v-35c0 -19 -7 -28 -20 -28c-14 0 -21 9 -21 28v76h373v-65"],120830:[618,15,600,113,487,"487 161c0 -97 -84 -176 -187 -176s-187 79 -187 176c0 66 39 118 112 152c-70 36 -102 79 -102 140c0 90 81 165 177 165s177 -75 177 -165c0 -61 -31 -104 -102 -140c73 -33 112 -86 112 -152zM436 450c0 71 -60 127 -136 127s-136 -56 -136 -126 c0 -66 60 -118 136 -118c75 0 136 52 136 117zM446 160c0 76 -63 133 -146 133c-82 0 -146 -58 -146 -132c0 -75 65 -135 146 -135c80 0 146 60 146 134"],120831:[618,15,600,136,510,"510 321c0 -195 -129 -336 -292 -336c-43 0 -79 16 -79 35c0 11 8 20 19 20c8 0 28 -14 64 -14c123 0 249 114 249 292c0 9 -1 24 -2 43c-41 -82 -95 -122 -166 -122c-91 0 -167 84 -167 186c0 108 76 193 173 193c118 0 201 -122 201 -297zM463 415 c-28 105 -76 162 -155 162c-74 0 -131 -66 -131 -152c0 -79 57 -145 127 -145c60 0 104 34 159 135"]};MathJax.Ajax.loadComplete(MathJax.OutputJax.SVG.fontDir+"/Monospace/Regular/Main.js");
mrehayden1/cdnjs
ajax/libs/mathjax/2.4.0/jax/output/SVG/fonts/Gyre-Termes/Monospace/Regular/Main.js
JavaScript
mit
20,915
(function(){"use strict";function a(a){var b=this,c={db:null};if(a)for(var d in a)c[d]=a[d];return new l(function(a,d){var e=m.open(c.name,c.version);e.onerror=function(){d(e.error)},e.onupgradeneeded=function(){e.result.createObjectStore(c.storeName)},e.onsuccess=function(){c.db=e.result,b._dbInfo=c,a()}})}function b(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new l(function(b,d){c.ready().then(function(){var e=c._dbInfo,f=e.db.transaction(e.storeName,"readonly").objectStore(e.storeName),g=f.get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null),b(a)},g.onerror=function(){d(g.error)}})["catch"](d)});return j(d,b),d}function c(a,b,c){var d=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new l(function(c,e){d.ready().then(function(){var f=d._dbInfo,g=f.db.transaction(f.storeName,"readwrite").objectStore(f.storeName);null===b&&(b=void 0);var h=g.put(b,a);h.onsuccess=function(){void 0===b&&(b=null),c(b)},h.onerror=function(){e(h.error)}})["catch"](e)});return j(e,c),e}function d(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new l(function(b,d){c.ready().then(function(){var e=c._dbInfo,f=e.db.transaction(e.storeName,"readwrite").objectStore(e.storeName),g=f["delete"](a);g.onsuccess=function(){b()},g.onerror=function(){d(g.error)},g.onabort=function(a){var b=a.target.error;"QuotaExceededError"===b&&d(b)}})["catch"](d)});return j(d,b),d}function e(a){var b=this,c=new l(function(a,c){b.ready().then(function(){var d=b._dbInfo,e=d.db.transaction(d.storeName,"readwrite").objectStore(d.storeName),f=e.clear();f.onsuccess=function(){a()},f.onerror=function(){c(f.error)}})["catch"](c)});return j(c,a),c}function f(a){var b=this,c=new l(function(a,c){b.ready().then(function(){var d=b._dbInfo,e=d.db.transaction(d.storeName,"readonly").objectStore(d.storeName),f=e.count();f.onsuccess=function(){a(f.result)},f.onerror=function(){c(f.error)}})["catch"](c)});return i(c,a),c}function g(a,b){var c=this,d=new l(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c._dbInfo,f=e.db.transaction(e.storeName,"readonly").objectStore(e.storeName),g=!1,h=f.openCursor();h.onsuccess=function(){var c=h.result;return c?void(0===a?b(c.key):g?b(c.key):(g=!0,c.advance(a))):void b(null)},h.onerror=function(){d(h.error)}})["catch"](d)});return i(d,b),d}function h(a){var b=this,c=new l(function(a,c){b.ready().then(function(){var d=b._dbInfo,e=d.db.transaction(d.storeName,"readonly").objectStore(d.storeName),f=e.openCursor(),g=[];f.onsuccess=function(){var b=f.result;return b?(g.push(b.key),void b["continue"]()):void a(g)},f.onerror=function(){c(f.error)}})["catch"](c)});return i(c,a),c}function i(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}function j(a,b){b&&a.then(function(a){k(b,a)},function(a){b(a)})}function k(a,b){return a?setTimeout(function(){return a(null,b)},0):void 0}var l="undefined"!=typeof module&&module.exports?require("promise"):this.Promise,m=m||this.indexedDB||this.webkitIndexedDB||this.mozIndexedDB||this.OIndexedDB||this.msIndexedDB;if(m){var n={_driver:"asyncStorage",_initStorage:a,getItem:b,setItem:c,removeItem:d,clear:e,length:f,key:g,keys:h};"function"==typeof define&&define.amd?define("asyncStorage",function(){return n}):"undefined"!=typeof module&&module.exports?module.exports=n:this.asyncStorage=n}}).call(window),function(){"use strict";function a(a){var b=this,c={};if(a)for(var d in a)c[d]=a[d];return c.keyPrefix=c.name+"/",b._dbInfo=c,m.resolve()}function b(a){var b=this,c=new m(function(a,c){b.ready().then(function(){n.clear(),a()})["catch"](c)});return l(c,a),c}function c(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new m(function(b,d){c.ready().then(function(){try{var e=c._dbInfo,f=n.getItem(e.keyPrefix+a);f&&(f=h(f)),b(f)}catch(g){d(g)}})["catch"](d)});return l(d,b),d}function d(a,b){var c=this,d=new m(function(b,d){c.ready().then(function(){var d,e=c._dbInfo;try{d=n.key(a)}catch(f){d=null}d&&(d=d.substring(e.keyPrefix.length)),b(d)})["catch"](d)});return l(d,b),d}function e(a){var b=this,c=new m(function(a,c){b.ready().then(function(){for(var c=b._dbInfo,d=n.length,e=[],f=0;d>f;f++)e.push(n.key(f).substring(c.keyPrefix.length));a(e)})["catch"](c)});return l(c,a),c}function f(a){var b=this,c=new m(function(a,c){b.ready().then(function(){var b=n.length;a(b)})["catch"](c)});return l(c,a),c}function g(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new m(function(b,d){c.ready().then(function(){var d=c._dbInfo;n.removeItem(d.keyPrefix+a),b()})["catch"](d)});return l(d,b),d}function h(a){if(a.substring(0,q)!==p)return JSON.parse(a);for(var b=a.substring(C),c=a.substring(q,C),d=new ArrayBuffer(2*b.length),e=new Uint16Array(d),f=b.length-1;f>=0;f--)e[f]=b.charCodeAt(f);switch(c){case r:return d;case s:return new Blob([d]);case t:return new Int8Array(d);case u:return new Uint8Array(d);case v:return new Uint8ClampedArray(d);case w:return new Int16Array(d);case y:return new Uint16Array(d);case x:return new Int32Array(d);case z:return new Uint32Array(d);case A:return new Float32Array(d);case B:return new Float64Array(d);default:throw new Error("Unkown type: "+c)}}function i(a){var b="",c=new Uint16Array(a);try{b=String.fromCharCode.apply(null,c)}catch(d){for(var e=0;e<c.length;e++)b+=String.fromCharCode(c[e])}return b}function j(a,b){var c="";if(a&&(c=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,e=p;a instanceof ArrayBuffer?(d=a,e+=r):(d=a.buffer,"[object Int8Array]"===c?e+=t:"[object Uint8Array]"===c?e+=u:"[object Uint8ClampedArray]"===c?e+=v:"[object Int16Array]"===c?e+=w:"[object Uint16Array]"===c?e+=y:"[object Int32Array]"===c?e+=x:"[object Uint32Array]"===c?e+=z:"[object Float32Array]"===c?e+=A:"[object Float64Array]"===c?e+=B:b(new Error("Failed to get type for BinaryArray"))),b(e+i(d))}else if("[object Blob]"===c){var f=new FileReader;f.onload=function(){var a=i(this.result);b(p+s+a)},f.readAsArrayBuffer(a)}else try{b(JSON.stringify(a))}catch(g){window.console.error("Couldn't convert value into a JSON string: ",a),b(g)}}function k(a,b,c){var d=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new m(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b;j(b,function(b,g){if(g)e(g);else{try{var h=d._dbInfo;n.setItem(h.keyPrefix+a,b)}catch(i){("QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&e(i)}c(f)}})})["catch"](e)});return l(e,c),e}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var m="undefined"!=typeof module&&module.exports?require("promise"):this.Promise,n=null;try{if(!(this.localStorage&&"setItem"in this.localStorage))return;n=this.localStorage}catch(o){return}var p="__lfsc__:",q=p.length,r="arbf",s="blob",t="si08",u="ui08",v="uic8",w="si16",x="si32",y="ur16",z="ui32",A="fl32",B="fl64",C=q+r.length,D={_driver:"localStorageWrapper",_initStorage:a,getItem:c,setItem:k,removeItem:g,clear:b,length:f,key:d,keys:e};"function"==typeof define&&define.amd?define("localStorageWrapper",function(){return D}):"undefined"!=typeof module&&module.exports?module.exports=D:this.localStorageWrapper=D}.call(window),function(){"use strict";function a(a){var b=this,c={db:null};if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];return new n(function(d,e){try{c.db=o(c.name,String(c.version),c.description,c.size)}catch(f){return b.setDriver("localStorageWrapper").then(function(){return b._initStorage(a)}).then(d)["catch"](e)}c.db.transaction(function(a){a.executeSql("CREATE TABLE IF NOT EXISTS "+c.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b._dbInfo=c,d()},function(a,b){e(b)})})})}function b(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new n(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=j(d)),b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function c(a,b,c){var d=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new n(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b;k(b,function(b,g){if(g)e(g);else{var h=d._dbInfo;h.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+h.storeName+" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})}})})["catch"](e)});return l(e,c),e}function d(a,b){var c=this;"string"!=typeof a&&(window.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new n(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.storeName+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function e(a){var b=this,c=new n(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.storeName,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function f(a){var b=this,c=new n(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.storeName,[],function(b,c){var d=c.rows.item(0).c;a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function g(a,b){var c=this,d=new n(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function h(a){var b=this,c=new n(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.storeName,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function i(a){var b,c=new Uint8Array(a),d="";for(b=0;b<c.length;b+=3)d+=m[c[b]>>2],d+=m[(3&c[b])<<4|c[b+1]>>4],d+=m[(15&c[b+1])<<2|c[b+2]>>6],d+=m[63&c[b+2]];return c.length%3===2?d=d.substring(0,d.length-1)+"=":c.length%3===1&&(d=d.substring(0,d.length-2)+"=="),d}function j(a){if(a.substring(0,q)!==p)return JSON.parse(a);var b,c,d,e,f,g=a.substring(C),h=a.substring(q,C),i=.75*g.length,j=g.length,k=0;"="===g[g.length-1]&&(i--,"="===g[g.length-2]&&i--);var l=new ArrayBuffer(i),n=new Uint8Array(l);for(b=0;j>b;b+=4)c=m.indexOf(g[b]),d=m.indexOf(g[b+1]),e=m.indexOf(g[b+2]),f=m.indexOf(g[b+3]),n[k++]=c<<2|d>>4,n[k++]=(15&d)<<4|e>>2,n[k++]=(3&e)<<6|63&f;switch(h){case r:return l;case s:return new Blob([l]);case t:return new Int8Array(l);case u:return new Uint8Array(l);case v:return new Uint8ClampedArray(l);case w:return new Int16Array(l);case y:return new Uint16Array(l);case x:return new Int32Array(l);case z:return new Uint32Array(l);case A:return new Float32Array(l);case B:return new Float64Array(l);default:throw new Error("Unkown type: "+h)}}function k(a,b){var c="";if(a&&(c=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,e=p;a instanceof ArrayBuffer?(d=a,e+=r):(d=a.buffer,"[object Int8Array]"===c?e+=t:"[object Uint8Array]"===c?e+=u:"[object Uint8ClampedArray]"===c?e+=v:"[object Int16Array]"===c?e+=w:"[object Uint16Array]"===c?e+=y:"[object Int32Array]"===c?e+=x:"[object Uint32Array]"===c?e+=z:"[object Float32Array]"===c?e+=A:"[object Float64Array]"===c?e+=B:b(new Error("Failed to get type for BinaryArray"))),b(e+i(d))}else if("[object Blob]"===c){var f=new FileReader;f.onload=function(){var a=i(this.result);b(p+s+a)},f.readAsArrayBuffer(a)}else try{b(JSON.stringify(a))}catch(g){window.console.error("Couldn't convert value into a JSON string: ",a),b(null,g)}}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"!=typeof module&&module.exports?require("promise"):this.Promise,o=this.openDatabase,p="__lfsc__:",q=p.length,r="arbf",s="blob",t="si08",u="ui08",v="uic8",w="si16",x="si32",y="ur16",z="ui32",A="fl32",B="fl64",C=q+r.length;if(o){var D={_driver:"webSQLStorage",_initStorage:a,getItem:b,setItem:c,removeItem:d,clear:e,length:f,key:g,keys:h};"function"==typeof define&&define.amd?define("webSQLStorage",function(){return D}):"undefined"!=typeof module&&module.exports?module.exports=D:this.webSQLStorage=D}}.call(window),function(){"use strict";function a(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(arguments[0][c]=b[c])}return arguments[0]}function b(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,c)})}}function c(c){this._config=a({},i,c),this._driverSet=null,this._ready=!1,this._dbInfo=null;for(var d=0;d<g.length;d++)b(this,g[d]);this.setDriver(f)}var d="undefined"!=typeof module&&module.exports?require("promise"):this.Promise,e={INDEXEDDB:"asyncStorage",LOCALSTORAGE:"localStorageWrapper",WEBSQL:"webSQLStorage"},f=[e.INDEXEDDB,e.WEBSQL,e.LOCALSTORAGE],g=["clear","getItem","key","keys","length","removeItem","setItem"],h={DEFINE:1,EXPORT:2,WINDOW:3},i={description:"",name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},j=h.WINDOW;"function"==typeof define&&define.amd?j=h.DEFINE:"undefined"!=typeof module&&module.exports&&(j=h.EXPORT);var k=function(a){var b=b||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.OIndexedDB||a.msIndexedDB,c={};return c[e.WEBSQL]=!!a.openDatabase,c[e.INDEXEDDB]=!!function(){try{return b&&"function"==typeof b.open&&null===b.open("_localforage_spec_test",1).onupgradeneeded}catch(a){return!1}}(),c[e.LOCALSTORAGE]=!!function(){try{return localStorage&&"function"==typeof localStorage.setItem}catch(a){return!1}}(),c}(this),l=this;c.prototype.INDEXEDDB=e.INDEXEDDB,c.prototype.LOCALSTORAGE=e.LOCALSTORAGE,c.prototype.WEBSQL=e.WEBSQL,c.prototype.config=function(a){if("object"==typeof a){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this._config[b]=a[b];return!0}return"string"==typeof a?this._config[a]:this._config},c.prototype.driver=function(){return this._driver||null},c.prototype.ready=function(a){var b=this,c=new d(function(a,c){b._driverSet.then(function(){null===b._ready&&(b._ready=b._initStorage(b._config)),b._ready.then(a,c)})["catch"](c)});return c.then(a,a),c},c.prototype.setDriver=function(a,b,c){var e=this;return"string"==typeof a&&(a=[a]),this._driverSet=new d(function(b,c){var f=e._getFirstSupportedDriver(a);if(!f){var g=new Error("No available storage method found.");return e._driverSet=d.reject(g),void c(g)}if(e._dbInfo=null,e._ready=null,j===h.DEFINE)return void require([f],function(a){e._extend(a),b()});if(j===h.EXPORT){var i;switch(f){case e.INDEXEDDB:i=require("./drivers/indexeddb");break;case e.LOCALSTORAGE:i=require("./drivers/localstorage");break;case e.WEBSQL:i=require("./drivers/websql")}e._extend(i)}else e._extend(l[f]);b()}),this._driverSet.then(b,c),this._driverSet},c.prototype.supports=function(a){return!!k[a]},c.prototype._extend=function(b){a(this,b)},c.prototype._getFirstSupportedDriver=function(a){var b=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};if(a&&b(a))for(var c=0;c<a.length;c++){var d=a[c];if(this.supports(d))return d}return null},c.prototype.createInstance=function(a){return new c(a)};var m=new c;j===h.DEFINE?define("localforage",function(){return m}):j===h.EXPORT?module.exports=m:this.localforage=m}.call(window);
StoneCypher/cdnjs
ajax/libs/localforage/1.0.0/localforage.nopromises.min.js
JavaScript
mit
16,122
//! moment.js locale configuration //! locale : German (Switzerland) [de-ch] //! author : sschueller : https://github.com/sschueller // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de# import moment from '../moment'; function processRelativeTime(number, withoutSuffix, key, isFuture) { var format = { 'm': ['eine Minute', 'einer Minute'], 'h': ['eine Stunde', 'einer Stunde'], 'd': ['ein Tag', 'einem Tag'], 'dd': [number + ' Tage', number + ' Tagen'], 'M': ['ein Monat', 'einem Monat'], 'MM': [number + ' Monate', number + ' Monaten'], 'y': ['ein Jahr', 'einem Jahr'], 'yy': [number + ' Jahre', number + ' Jahren'] }; return withoutSuffix ? format[key][0] : format[key][1]; } export default moment.defineLocale('de-ch', { months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), monthsShort : 'Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'), monthsParseExact : true, weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), weekdaysParseExact : true, longDateFormat : { LT: 'HH.mm', LTS: 'HH.mm.ss', L : 'DD.MM.YYYY', LL : 'D. MMMM YYYY', LLL : 'D. MMMM YYYY HH.mm', LLLL : 'dddd, D. MMMM YYYY HH.mm' }, calendar : { sameDay: '[heute um] LT [Uhr]', sameElse: 'L', nextDay: '[morgen um] LT [Uhr]', nextWeek: 'dddd [um] LT [Uhr]', lastDay: '[gestern um] LT [Uhr]', lastWeek: '[letzten] dddd [um] LT [Uhr]' }, relativeTime : { future : 'in %s', past : 'vor %s', s : 'ein paar Sekunden', m : processRelativeTime, mm : '%d Minuten', h : processRelativeTime, hh : '%d Stunden', d : processRelativeTime, dd : processRelativeTime, M : processRelativeTime, MM : processRelativeTime, y : processRelativeTime, yy : processRelativeTime }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week. doy : 4 // The week that contains Jan 4th is the first week of the year. } });
Attune-GH/attune
functions/node_modules/moment/src/locale/de-ch.js
JavaScript
mit
2,430
/** * Pastie theme * * @author pygments.org * @author pastie.org * @author Simon Potter * @version 1.0 */ pre { /* original is white background with no border */ background-color: #F8F8FF; border: 1px solid #DEDEDE; word-wrap: break-word; margin: 0; padding: 10px; color: #000; font-size: 13px; line-height: 16px; margin-bottom: 20px } pre, code { font-family: monospace; } pre .comment { color: #888; } pre .keyword, pre .selector, pre .storage.module, pre .storage.class, pre .storage.function { color: #080; font-weight: bold; } pre .keyword.operator { color: #000; font-weight: normal; } pre .constant.language { color: #038; font-weight:bold; } pre .constant.symbol, pre .class, pre .constant { color: #036; font-weight: bold; } pre .keyword.namespace, pre .entity.name.class { color: #B06; font-weight: bold; } pre .constant.numeric { color: #00D; font-weight: bold; } pre .string, pre .comment.docstring { color: #D20; background-color: #FFF0F0; } pre .string.regexp { background-color: #FFF0FF; color: #808; } pre .variable.instance { color: #33B; } pre .entity.name.function { color: #06B; font-weight: bold; } pre .support.tag-name, pre .entity.tag.script, pre .entity.tag.style { color: #070; } pre .support.attribute { color: #007; font-style: italic; } pre .entity.name.tag, pre .storage.type { color: #070; font-weight: bold; } pre .variable.self, pre .support.function { color: #038; font-weight: bold; } pre .entity.function, pre .support.magic, pre.support.method { color: #C00; font-weight: bold; }
Kaakati/cdnjs
ajax/libs/rainbow/1.2.0/themes/pastie.css
CSS
mit
1,702
/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojo._base.fx"]){ dojo._hasResource["dojo._base.fx"]=true; dojo.provide("dojo._base.fx"); dojo.require("dojo._base.Color"); dojo.require("dojo._base.connect"); dojo.require("dojo._base.lang"); dojo.require("dojo._base.html"); (function(){ var d=dojo; var _1=d._mixin; dojo._Line=function(_2,_3){ this.start=_2; this.end=_3; }; dojo._Line.prototype.getValue=function(n){ return ((this.end-this.start)*n)+this.start; }; dojo.Animation=function(_4){ _1(this,_4); if(d.isArray(this.curve)){ this.curve=new d._Line(this.curve[0],this.curve[1]); } }; d._Animation=d.Animation; d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){ var _5=this._percent,_6=this.easing; return _6?_6(_5):_5; },_fire:function(_7,_8){ var a=_8||[]; if(this[_7]){ if(d.config.debugAtAllCosts){ this[_7].apply(this,a); }else{ try{ this[_7].apply(this,a); } catch(e){ console.error("exception in animation handler for:",_7); console.error(e); } } } return this; },play:function(_9,_a){ var _b=this; if(_b._delayTimer){ _b._clearTimer(); } if(_a){ _b._stopTimer(); _b._active=_b._paused=false; _b._percent=0; }else{ if(_b._active&&!_b._paused){ return _b; } } _b._fire("beforeBegin",[_b.node]); var de=_9||_b.delay,_c=dojo.hitch(_b,"_play",_a); if(de>0){ _b._delayTimer=setTimeout(_c,de); return _b; } _c(); return _b; },_play:function(_d){ var _e=this; if(_e._delayTimer){ _e._clearTimer(); } _e._startTime=new Date().valueOf(); if(_e._paused){ _e._startTime-=_e.duration*_e._percent; } _e._endTime=_e._startTime+_e.duration; _e._active=true; _e._paused=false; var _f=_e.curve.getValue(_e._getStep()); if(!_e._percent){ if(!_e._startRepeatCount){ _e._startRepeatCount=_e.repeat; } _e._fire("onBegin",[_f]); } _e._fire("onPlay",[_f]); _e._cycle(); return _e; },pause:function(){ var _10=this; if(_10._delayTimer){ _10._clearTimer(); } _10._stopTimer(); if(!_10._active){ return _10; } _10._paused=true; _10._fire("onPause",[_10.curve.getValue(_10._getStep())]); return _10; },gotoPercent:function(_11,_12){ var _13=this; _13._stopTimer(); _13._active=_13._paused=true; _13._percent=_11; if(_12){ _13.play(); } return _13; },stop:function(_14){ var _15=this; if(_15._delayTimer){ _15._clearTimer(); } if(!_15._timer){ return _15; } _15._stopTimer(); if(_14){ _15._percent=1; } _15._fire("onStop",[_15.curve.getValue(_15._getStep())]); _15._active=_15._paused=false; return _15; },status:function(){ if(this._active){ return this._paused?"paused":"playing"; } return "stopped"; },_cycle:function(){ var _16=this; if(_16._active){ var _17=new Date().valueOf(); var _18=(_17-_16._startTime)/(_16._endTime-_16._startTime); if(_18>=1){ _18=1; } _16._percent=_18; if(_16.easing){ _18=_16.easing(_18); } _16._fire("onAnimate",[_16.curve.getValue(_18)]); if(_16._percent<1){ _16._startTimer(); }else{ _16._active=false; if(_16.repeat>0){ _16.repeat--; _16.play(null,true); }else{ if(_16.repeat==-1){ _16.play(null,true); }else{ if(_16._startRepeatCount){ _16.repeat=_16._startRepeatCount; _16._startRepeatCount=0; } } } _16._percent=0; _16._fire("onEnd",[_16.node]); !_16.repeat&&_16._stopTimer(); } } return _16; },_clearTimer:function(){ clearTimeout(this._delayTimer); delete this._delayTimer; }}); var ctr=0,_19=[],_1a=null,_1b={run:function(){ }}; d.extend(d.Animation,{_startTimer:function(){ if(!this._timer){ this._timer=d.connect(_1b,"run",this,"_cycle"); ctr++; } if(!_1a){ _1a=setInterval(d.hitch(_1b,"run"),this.rate); } },_stopTimer:function(){ if(this._timer){ d.disconnect(this._timer); this._timer=null; ctr--; } if(ctr<=0){ clearInterval(_1a); _1a=null; ctr=0; } }}); var _1c=d.isIE?function(_1d){ var ns=_1d.style; if(!ns.width.length&&d.style(_1d,"width")=="auto"){ ns.width="auto"; } }:function(){ }; dojo._fade=function(_1e){ _1e.node=d.byId(_1e.node); var _1f=_1({properties:{}},_1e),_20=(_1f.properties.opacity={}); _20.start=!("start" in _1f)?function(){ return +d.style(_1f.node,"opacity")||0; }:_1f.start; _20.end=_1f.end; var _21=d.animateProperty(_1f); d.connect(_21,"beforeBegin",d.partial(_1c,_1f.node)); return _21; }; dojo.fadeIn=function(_22){ return d._fade(_1({end:1},_22)); }; dojo.fadeOut=function(_23){ return d._fade(_1({end:0},_23)); }; dojo._defaultEasing=function(n){ return 0.5+((Math.sin((n+1.5)*Math.PI))/2); }; var _24=function(_25){ this._properties=_25; for(var p in _25){ var _26=_25[p]; if(_26.start instanceof d.Color){ _26.tempColor=new d.Color(); } } }; _24.prototype.getValue=function(r){ var ret={}; for(var p in this._properties){ var _27=this._properties[p],_28=_27.start; if(_28 instanceof d.Color){ ret[p]=d.blendColors(_28,_27.end,r,_27.tempColor).toCss(); }else{ if(!d.isArray(_28)){ ret[p]=((_27.end-_28)*r)+_28+(p!="opacity"?_27.units||"px":0); } } } return ret; }; dojo.animateProperty=function(_29){ var n=_29.node=d.byId(_29.node); if(!_29.easing){ _29.easing=d._defaultEasing; } var _2a=new d.Animation(_29); d.connect(_2a,"beforeBegin",_2a,function(){ var pm={}; for(var p in this.properties){ if(p=="width"||p=="height"){ this.node.display="block"; } var _2b=this.properties[p]; if(d.isFunction(_2b)){ _2b=_2b(n); } _2b=pm[p]=_1({},(d.isObject(_2b)?_2b:{end:_2b})); if(d.isFunction(_2b.start)){ _2b.start=_2b.start(n); } if(d.isFunction(_2b.end)){ _2b.end=_2b.end(n); } var _2c=(p.toLowerCase().indexOf("color")>=0); function _2d(_2e,p){ var v={height:_2e.offsetHeight,width:_2e.offsetWidth}[p]; if(v!==undefined){ return v; } v=d.style(_2e,p); return (p=="opacity")?+v:(_2c?v:parseFloat(v)); }; if(!("end" in _2b)){ _2b.end=_2d(n,p); }else{ if(!("start" in _2b)){ _2b.start=_2d(n,p); } } if(_2c){ _2b.start=new d.Color(_2b.start); _2b.end=new d.Color(_2b.end); }else{ _2b.start=(p=="opacity")?+_2b.start:parseFloat(_2b.start); } } this.curve=new _24(pm); }); d.connect(_2a,"onAnimate",d.hitch(d,"style",_2a.node)); return _2a; }; dojo.anim=function(_2f,_30,_31,_32,_33,_34){ return d.animateProperty({node:_2f,duration:_31||d.Animation.prototype.duration,properties:_30,easing:_32,onEnd:_33}).play(_34||0); }; })(); }
itvsai/cdnjs
ajax/libs/dojo/1.4.0/_base/fx.js
JavaScript
mit
6,221
/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojo.dnd.Mover"]){ dojo._hasResource["dojo.dnd.Mover"]=true; dojo.provide("dojo.dnd.Mover"); dojo.require("dojo.dnd.common"); dojo.require("dojo.dnd.autoscroll"); dojo.declare("dojo.dnd.Mover",null,{constructor:function(_1,e,_2){ this.node=dojo.byId(_1); this.marginBox={l:e.pageX,t:e.pageY}; this.mouseButton=e.button; var h=this.host=_2,d=_1.ownerDocument,_3=dojo.connect(d,"onmousemove",this,"onFirstMove"); this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_3]; if(h&&h.onMoveStart){ h.onMoveStart(this); } },onMouseMove:function(e){ dojo.dnd.autoScroll(e); var m=this.marginBox; this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY}); dojo.stopEvent(e); },onMouseUp:function(e){ if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){ this.destroy(); } dojo.stopEvent(e); },onFirstMove:function(){ var s=this.node.style,l,t,h=this.host; switch(s.position){ case "relative": case "absolute": l=Math.round(parseFloat(s.left)); t=Math.round(parseFloat(s.top)); break; default: s.position="absolute"; var m=dojo.marginBox(this.node); var b=dojo.doc.body; var bs=dojo.getComputedStyle(b); var bm=dojo._getMarginBox(b,bs); var bc=dojo._getContentBox(b,bs); l=m.l-(bc.l-bm.l); t=m.t-(bc.t-bm.t); break; } this.marginBox.l=l-this.marginBox.l; this.marginBox.t=t-this.marginBox.t; if(h&&h.onFirstMove){ h.onFirstMove(this); } dojo.disconnect(this.events.pop()); },destroy:function(){ dojo.forEach(this.events,dojo.disconnect); var h=this.host; if(h&&h.onMoveStop){ h.onMoveStop(this); } this.events=this.node=this.host=null; }}); }
melvinsembrano/cdnjs
ajax/libs/dojo/1.4.0/dnd/Mover.js
JavaScript
mit
1,935
(function(a){a.fn.validationEngineLanguage=function(){};a.validationEngineLanguage={newLang:function(){a.validationEngineLanguage.allRules={required:{regex:"none",alertText:"* Campo richiesto",alertTextCheckboxMultiple:"* Per favore selezionare un'opzione",alertTextCheckboxe:"* E' richiesta la selezione della casella"},requiredInFunction:{func:function(d,e,c,b){return(d.val()=="test")?true:false},alertText:"* Field must equal test"},length:{regex:"none",alertText:"* Fra ",alertText2:" e ",alertText3:" caratteri permessi"},maxCheckbox:{regex:"none",alertText:"* Numero di caselle da selezionare in eccesso"},groupRequired:{regex:"none",alertText:"* You must fill one of the following fields"},minCheckbox:{regex:"none",alertText:"* Per favore selezionare ",alertText2:" opzioni"},equals:{regex:"none",alertText:"* I campi non corrispondono"},creditCard:{regex:"none",alertText:"* Non valido numero di carta di credito"},phone:{regex:/^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,alertText:"* Numero di telefono non corretto"},email:{regex:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,alertText:"* Indirizzo non corretto"},integer:{regex:/^[\-\+]?\d+$/,alertText:"* Numero intero non corretto"},number:{regex:/^[\-\+]?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)$/,alertText:"* Numero decimale non corretto"},date:{regex:/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,alertText:"* Data non corretta, re-inserire secondo formato AAAA-MM-GG"},ipv4:{regex:/^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,alertText:"* IP non corretto"},url:{regex:/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,alertText:"* URL non corretta"},onlyNumber:{regex:/^[0-9\ ]+$/,alertText:"* Solo numeri"},onlyLetter:{regex:/^[a-zA-Z\ \']+$/,alertText:"* Solo lettere"},validate2fields:{nname:"validate2fields",alertText:"* Occorre inserire nome e cognome"},noSpecialCharacters:{regex:/^[0-9a-zA-Z]+$/,alertText:"* Caratteri speciali non permessi"},ajaxUserCall:{file:"ajaxValidateFieldName",extraData:"name=eric",alertTextLoad:"* Caricamento, attendere per favore",alertText:"* Questo user � gi� stato utilizzato"},ajaxNameCall:{file:"ajaxValidateFieldName",alertText:"* Questo nome � gi� stato utilizzato",alertTextOk:"* Questo nome � disponibile",alertTextLoad:"* Caricamento, attendere per favore"}}}};a.validationEngineLanguage.newLang()})(jQuery);
siddii/cdnjs
ajax/libs/jQuery-Validation-Engine/2.6.2/languages/jquery.validationEngine-it.min.js
JavaScript
mit
4,469
YUI.add('io-xdr', function(Y) { /** Extends IO to provide an alternate, Flash transport, for making cross-domain requests. @module io @submodule io-xdr @for IO **/ /** Fires when the XDR transport is ready for use. @event io:xdrReady **/ var E_XDR_READY = Y.publish('io:xdrReady', { fireOnce: true }), /** Map of stored configuration objects when using Flash as the transport for cross-domain requests. @property _cB @private @type {Object} **/ _cB = {}, /** Map of transaction simulated readyState values when XDomainRequest is the transport. @property _rS @private @type {Object} **/ _rS = {}, // Document reference d = Y.config.doc, // Window reference w = Y.config.win, // XDomainRequest cross-origin request detection xdr = w && w.XDomainRequest; /** Method that creates the Flash transport swf. @method _swf @private @param {String} uri - location of io.swf. @param {String} yid - YUI sandbox id. @param {String} yid - IO instance id. **/ function _swf(uri, yid, uid) { var o = '<object id="io_swf" type="application/x-shockwave-flash" data="' + uri + '" width="0" height="0">' + '<param name="movie" value="' + uri + '">' + '<param name="FlashVars" value="yid=' + yid + '&uid=' + uid + '">' + '<param name="allowScriptAccess" value="always">' + '</object>', c = d.createElement('div'); d.body.appendChild(c); c.innerHTML = o; } /** Creates a response object for XDR transactions, for success and failure cases. @method _data @private @param {Object} o - Transaction object generated by _create() in io-base. @param {Boolean} u - Configuration xdr.use. @param {Boolean} d - Configuration xdr.dataType. @return {Object} **/ function _data(o, u, d) { if (u === 'flash') { o.c.responseText = decodeURI(o.c.responseText); } if (d === 'xml') { o.c.responseXML = Y.DataType.XML.parse(o.c.responseText); } return o; } /** Method for intiating an XDR transaction abort. @method _abort @private @param {Object} o - Transaction object generated by _create() in io-base. @param {Object} c - configuration object for the transaction. **/ function _abort(o, c) { return o.c.abort(o.id, c); } /** Method for determining if an XDR transaction has completed and all data are received. @method _isInProgress @private @param {Object} o - Transaction object generated by _create() in io-base. **/ function _isInProgress(o) { return xdr ? _rS[o.id] !== 4 : o.c.isInProgress(o.id); } Y.mix(Y.IO.prototype, { /** Map of io transports. @property _transport @private @type {Object} **/ _transport: {}, /** Sets event handlers for XDomainRequest transactions. @method _ieEvt @private @static @param {Object} o - Transaction object generated by _create() in io-base. @param {Object} c - configuration object for the transaction. **/ _ieEvt: function(o, c) { var io = this, i = o.id, t = 'timeout'; o.c.onprogress = function() { _rS[i] = 3; }; o.c.onload = function() { _rS[i] = 4; io.xdrResponse('success', o, c); }; o.c.onerror = function() { _rS[i] = 4; io.xdrResponse('failure', o, c); }; if (c[t]) { o.c.ontimeout = function() { _rS[i] = 4; io.xdrResponse(t, o, c); }; o.c[t] = c[t]; } }, /** Method for accessing the transport's interface for making a cross-domain transaction. @method xdr @param {String} uri - qualified path to transaction resource. @param {Object} o - Transaction object generated by _create() in io-base. @param {Object} c - configuration object for the transaction. **/ xdr: function(uri, o, c) { var io = this; if (c.xdr.use === 'flash') { // The configuration object cannot be serialized safely // across Flash's ExternalInterface. _cB[o.id] = c; w.setTimeout(function() { try { o.c.send(uri, { id: o.id, uid: o.uid, method: c.method, data: c.data, headers: c.headers }); } catch(e) { io.xdrResponse('transport error', o, c); delete _cB[o.id]; } }, Y.io.xdr.delay); } else if (xdr) { io._ieEvt(o, c); o.c.open(c.method || 'GET', uri); o.c.send(c.data); } else { o.c.send(uri, o, c); } return { id: o.id, abort: function() { return o.c ? _abort(o, c) : false; }, isInProgress: function() { return o.c ? _isInProgress(o.id) : false; }, io: io }; }, /** Response controller for cross-domain requests when using the Flash transport or IE8's XDomainRequest object. @method xdrResponse @param {String} e Event name @param {Object} o Transaction object generated by _create() in io-base. @param {Object} c Configuration object for the transaction. @return {Object} **/ xdrResponse: function(e, o, c) { c = _cB[o.id] ? _cB[o.id] : c; var io = this, m = xdr ? _rS : _cB, u = c.xdr.use, d = c.xdr.dataType; switch (e) { case 'start': io.start(o, c); break; //case 'complete': //This case is not used by Flash or XDomainRequest. //io.complete(o, c); //break; case 'success': io.success(_data(o, u, d), c); delete m[o.id]; break; case 'timeout': case 'abort': case 'transport error': o.c = { status: 0, statusText: e }; case 'failure': io.failure(_data(o, u, d), c); delete m[o.id]; break; } }, /** Fires event "io:xdrReady" @method _xdrReady @private @param {Number} yid - YUI sandbox id. @param {Number} uid - IO instance id. **/ _xdrReady: function(yid, uid) { Y.fire(E_XDR_READY, yid, uid); }, /** Initializes the desired transport. @method transport @param {Object} o - object of transport configurations. **/ transport: function(c) { if (c.id === 'flash') { _swf(Y.UA.ie ? c.src + '?d=' + new Date().valueOf().toString() : c.src, Y.id, c.uid); Y.IO.transports.flash = function() { return d.getElementById('io_swf'); }; } } }); /** Fires event "io:xdrReady" @method xdrReady @protected @static @param {Number} yid - YUI sandbox id. @param {Number} uid - IO instance id. **/ Y.io.xdrReady = function(yid, uid){ var io = Y.io._map[uid]; Y.io.xdr.delay = 0; io._xdrReady.apply(io, [yid, uid]); }; Y.io.xdrResponse = function(e, o, c){ var io = Y.io._map[o.uid]; io.xdrResponse.apply(io, [e, o, c]); }; Y.io.transport = function(c){ var io = Y.io._map['io:0'] || new Y.IO(); c.uid = io._uid; io.transport.apply(io, [c]); }; /** Delay value to calling the Flash transport, in the event io.swf has not finished loading. Once the E_XDR_READY event is fired, this value will be set to 0. @property delay @static @type {Number} **/ Y.io.xdr = { delay : 100 }; }, '@VERSION@' ,{requires:['io-base','datatype-xml-parse']});
rndme/cdnjs
ajax/libs/yui/3.5.1/io-xdr/io-xdr-debug.js
JavaScript
mit
7,779
YUI.add('escape', function (Y, NAME) { /** Provides utility methods for escaping strings. @module escape @class Escape @static @since 3.3.0 **/ var HTML_CHARS = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#x27;', '/': '&#x2F;', '`': '&#x60;' }, Escape = { // -- Public Static Methods ------------------------------------------------ /** Returns a copy of the specified string with special HTML characters escaped. The following characters will be converted to their corresponding character entities: & < > " ' / ` This implementation is based on the [OWASP HTML escaping recommendations][1]. In addition to the characters in the OWASP recommendations, we also escape the <code>&#x60;</code> character, since IE interprets it as an attribute delimiter. If _string_ is not already a string, it will be coerced to a string. [1]: http://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet @method html @param {String} string String to escape. @return {String} Escaped string. @static **/ html: function (string) { return (string + '').replace(/[&<>"'\/`]/g, Escape._htmlReplacer); }, /** Returns a copy of the specified string with special regular expression characters escaped, allowing the string to be used safely inside a regex. The following characters, and all whitespace characters, are escaped: - $ ^ * ( ) + [ ] { } | \ , . ? If _string_ is not already a string, it will be coerced to a string. @method regex @param {String} string String to escape. @return {String} Escaped string. @static **/ regex: function (string) { // There's no need to escape !, =, and : since they only have meaning // when they follow a parenthesized ?, as in (?:...), and we already // escape parens and question marks. return (string + '').replace(/[\-$\^*()+\[\]{}|\\,.?\s]/g, '\\$&'); }, // -- Protected Static Methods --------------------------------------------- /** * Regex replacer for HTML escaping. * * @method _htmlReplacer * @param {String} match Matched character (must exist in HTML_CHARS). * @return {String} HTML entity. * @static * @protected */ _htmlReplacer: function (match) { return HTML_CHARS[match]; } }; Escape.regexp = Escape.regex; Y.Escape = Escape; }, '@VERSION@', {"requires": ["yui-base"]});
staabm/cdnjs
ajax/libs/yui/3.10.0/escape/escape-debug.js
JavaScript
mit
2,566
/*! * Qoopido.js library v3.5.8, 2014-10-27 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */ !function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,i,o,s){"use strict";function l(e){var t,n,r;for(t in b)n=b[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function u(e,t,n){var r=this,i=l(e),s=o.createEvent(i.type);s[i.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function a(e){var t;if("string"==typeof e)try{d.test(e)===!0?(t=e.replace(d,"$1").toLowerCase(),e=o.createElement(t)):e=o.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}var f="object",c="string",m=e["function/unique/uuid"],p="textContent"in o.createElement("a")?"textContent":"innerText",d=new RegExp("^<(\\w+)\\s*/>$"),h=new RegExp("^[^-]+"),v=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,g={},y=e["hook/css"],b={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^mouse|pointer|contextmenu|touch|click|dblclick|drag|drop"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r=this;e=a(e),r.type=e.tagName,r.element=e,r._listener=r._listener||{},"object"==typeof t&&null!==t&&r.setAttributes(t),"object"==typeof n&&null!==n&&r.setStyles(n)},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(h),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[p]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[p]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===c?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,n=this,r={},i=0;if(e)for(e=typeof e===c?e.split(" "):e;(t=e[i])!==s;i++)r[t]=n.element.getAttributes(t);return r},setAttribute:function(e,t){var n=this;return e&&typeof e===c&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===f&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===c&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,n=this,r=0;if(e)for(e=typeof e===c?e.split(" "):e;(t=e[r])!==s;r++)n.element.removeAttribute(t);return n},getStyle:function(e){var t=this;return e&&typeof e===c?y.process("get",t.element,e):void 0},getStyles:function(e){var t,n=this,r={},i=0;if(e)for(e=typeof e===c?e.split(" "):e;(t=e[i])!==s;i++)r[t]=y.process("get",n.element,t);return r},setStyle:function(e,t){var n=this;return e&&typeof e===c&&y.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===f&&!e.length)for(t in e)y.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===c&&t.setStyle(e,""),t},removeStyles:function(e){var t,n=this,r=0;if(e)for(e=typeof e===c?e.split(" "):e;(t=e[r])!==s;r++)n.setStyle(t,"");return n},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&(!e||n.matches(e))&&r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=t.previousSibling)1===t.nodeType&&(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=t.nextSibling)1===t.nodeType&&(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t;if(!e)return this.element.previousSibling;for(t=this.element.previousSibling;t;t=t.previousSibling)if(1===t.nodeType&&t.matches(e))return t},next:function(e){var t;if(!e)return this.element.nextSibling;for(t=this.element.nextSibling;t;t=t.nextSibling)if(1===t.nodeType&&t.matches(e))return t},find:function(e){return this.element.querySelectorAll(e)},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this.element;return!(e.offsetWidth<=0&&e.offsetHeight<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t,n=this;return e&&!n.hasClass(e)&&(t=n.element.className.split(" "),t.push(e),n.element.className=t.join(" ")),n},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"))),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||a(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||a(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||a(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e),n.parentNode.replaceChild(e,n)),t},hide:function(){return this.setStyle("display","none")},show:function(){return this.removeStyle("display")},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,o=r.element,l=arguments.length>2?arguments[1]:null,a=arguments.length>2?arguments[2]:arguments[1],f=a._quid||(a._quid=m()),c=0;for(t=t.split(" ");(n=t[c])!==s;c++){var p=n+"-"+f,d=function(t){var n,o=t._quid||(t._quid=m());g[o]||(g[o]=v&&v.obtain(t)||e["dom/event"].create(t)),t=g[o],n=t.delegate,i.clearTimeout(t._timeout),(!l||t.target.matches(l))&&a.call(t.target,t,t.originalEvent.detail),n&&(delete t.delegate,u.call(r,n,null,t._quid)),t._timeout=i.setTimeout(function(){delete g[o],delete t._timeout,t.dispose&&t.dispose()},5e3)};d.type=n,r._listener[p]=d,o.addEventListener(n,d)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],i=(arguments.length>3?arguments[3]:arguments[2])!==!1,o=function(n){t.off(i===!0?n.type:e,o),r.call(t,n,n.originalEvent.detail)};return r._quid=o._quid=m(),n?t.on(e,n,o):t.on(e,o),t},off:function(e,t){var n,r,i,o=this,l=o.element,u=0;for(e=e.split(" ");(n=e[u])!==s;u++)r=t._quid&&n+"-"+t._quid||null,i=r&&o._listener[r]||null,i?(l.removeEventListener(n,i),delete o._listener[r]):l.removeEventListener(n,t);return o},emit:function(e,t){var n=this;return u.call(n,e,t),n}})});
ramda/jsdelivr
files/qoopido.js/3.5.8/dom/element.js
JavaScript
mit
8,002
/*! * Audio5js: HTML5 Audio Compatibility Layer * https://github.com/zohararad/audio5js * License MIT (c) Zohar Arad 2013 */ (function ($win, ns, factory) { "use strict"; if (typeof (module) !== 'undefined' && module.exports) { // CommonJS module.exports = factory(ns, $win); } else if (typeof (define) === 'function' && define.amd) { // AMD define(function () { return factory(ns, $win); }); } else { // <script> $win[ns] = factory(ns, $win); } }(window, 'Audio5js', function (ns, $win) { "use strict"; var ActiveXObject = $win.ActiveXObject; /** * AudioError Class * @param {String} message error message * @constructor */ function AudioError(message) { this.message = message; } AudioError.prototype = new Error(); /** * Clones an object * @param obj object to clone * @return {Object} cloned object */ function cloneObject(obj) { var clone = {}, i; for (i in obj) { if (typeof (obj[i]) === "object") { clone[i] = cloneObject(obj[i]); } else { clone[i] = obj[i]; } } return clone; } /** * Extend an object with a mixin * @param {Object} target target object to extend * @param {Object} mixin object to mix into target * @return {*} extended object */ var extend = function (target, mixin) { var name, m = cloneObject(mixin); for (name in m) { if (m.hasOwnProperty(name)) { target[name] = m[name]; } } return target; }; /** * Extend an object's prototype with a mixin * @param {Object} target target object to extend * @param {Object} mixin object to mix into target * @return {*} extended object */ var include = function (target, mixin) { return extend(target.prototype, mixin); }; var Pubsub = { channels: {}, //hash of subscribed channels /** * Subscribe to event on a channel * @param {String} evt name of channel / event to subscribe * @param {Function} fn the callback to execute on message publishing * @param {Object} ctx the context in which the callback should be executed */ on: function (evt, fn, ctx) { this.channels[evt] = this.channels[evt] || []; this.channels[evt].push({fn: fn, ctx: ctx}); }, /** * Unsubscribe from an event on a channel * @param {String} evt name of channel / event to unsubscribe * @param {Function} fn the callback used when subscribing to the event */ off: function (evt, fn) { if (this.channels[evt] === undefined) { return; } var i, l; for (i = 0, l = this.channels[evt].length; i < l; i++) { var sub = this.channels[evt][i].fn; if (sub === fn) { this.channels[evt].splice(i, 1); break; } } }, /** * Publish a message on a channel. Accepts **args after event name * @param {String} evt name of channel / event to trigger */ trigger: function (evt) { if (this.channels.hasOwnProperty(evt)) { var args = Array.prototype.slice.call(arguments, 1); var i, l; for (i = 0, l = this.channels[evt].length; i < l; i++) { var sub = this.channels[evt][i]; if (typeof (sub.fn) === 'function') { sub.fn.apply(sub.ctx, args); } } } } }; var util = { /** * Flash embed code string with cross-browser support. */ flash_embed_code: (function () { var prefix; var s = '<param name="movie" value="$2?playerInstance=' + ns + '.flash.instances[\'$1\']&datetime=$3"/>' + '<param name="wmode" value="transparent"/>' + '<param name="allowscriptaccess" value="always" />' + '</object>'; if (ActiveXObject) { prefix = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1" height="1" id="$1">'; } else { prefix = '<object type="application/x-shockwave-flash" data="$2?playerInstance=' + ns + '.flash.instances[\'$1\']&datetime=$3" width="1" height="1" id="$1" >'; } return prefix + s; }()), /** * Check if browser supports audio mime type. * @param {String} mime_type audio mime type to check * @return {Boolean} whether browser supports passed audio mime type */ can_play: function (mime_type) { var a = document.createElement('audio'); var mime_str; switch (mime_type) { case 'mp3': mime_str = 'audio/mpeg; codecs="mp3"'; break; case 'vorbis': mime_str = 'audio/ogg; codecs="vorbis"'; break; case 'opus': mime_str = 'audio/ogg; codecs="opus"'; break; case 'webm': mime_str = 'audio/webm; codecs="vorbis"'; break; case 'mp4': mime_str = 'audio/mp4; codecs="mp4a.40.5"'; break; case 'wav': mime_str = 'audio/wav; codecs="1"'; break; } if (mime_str === undefined) { throw new Error('Unspecified Audio Mime Type'); } else { return !!a.canPlayType && a.canPlayType(mime_str) !== ''; } }, /** * Boolean flag indicating whether the browser has Flash installed or not */ has_flash: (function () { var r = false; if (navigator.plugins && navigator.plugins.length && navigator.plugins['Shockwave Flash']) { r = true; } else if (navigator.mimeTypes && navigator.mimeTypes.length) { var mimeType = navigator.mimeTypes['application/x-shockwave-flash']; r = mimeType && mimeType.enabledPlugin; } else { try { var ax = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); r = typeof (ax) === 'object'; } catch (e) {} } return r; }()), /** * Embed Flash MP3 player SWF to DOM * @param {String} swf_location location of MP3 player SWF * @param {String} id swf unique ID used for resolving callbacks from ExternalInterface to Javascript */ embedFlash: function (swf_location, id) { var d = document.createElement('div'); d.style.position = 'absolute'; d.style.width = '1px'; d.style.height = '1px'; d.style.top = '-2px'; var flashSource = this.flash_embed_code.replace(/\$1/g, id); flashSource = flashSource.replace(/\$2/g, swf_location); flashSource = flashSource.replace(/\$3/g, (new Date().getTime() + Math.random())); // Ensure swf is not pulled from cache d.innerHTML = flashSource; document.body.appendChild(d); return document.getElementById(id); }, /** * Formats seconds into a time string hh:mm:ss. * @param {Number} seconds seconds to format as string * @return {String} formatted time string */ formatTime: function (seconds) { var hours = parseInt(seconds / 3600, 10) % 24; var minutes = parseInt(seconds / 60, 10) % 60; var secs = parseInt(seconds % 60, 10); var result, fragment = (minutes < 10 ? "0" + minutes : minutes) + ":" + (secs < 10 ? "0" + secs : secs); if (hours > 0) { result = (hours < 10 ? "0" + hours : hours) + ":" + fragment; } else { result = fragment; } return result; } }; util.use_flash = util.can_play('mp3'); var Audio5js, FlashAudioPlayer, HTML5AudioPlayer; /** * Common audio attributes object. Mixed into audio players. * @type {Object} */ var AudioAttributes = { playing: false, /** {Boolean} player playback state */ vol: 1, /** {Float} audio volume */ duration: 0, /** {Float} audio duration (sec) */ position: 0, /** {Float} audio position (sec) */ load_percent: 0, /** {Float} audio file load percent (%) */ seekable: false /** {Boolean} is loaded audio seekable */ }; /** * Flash MP3 Audio Player Class * @constructor */ FlashAudioPlayer = function () { if (util.use_flash && !util.has_flash) { throw new Error('Flash Plugin Missing'); } else { include(FlashAudioPlayer, Pubsub); include(FlashAudioPlayer, AudioAttributes); } }; FlashAudioPlayer.prototype = { /** * Initialize the player * @param {String} swf_src path to audio player SWF file */ init: function (swf_src) { Audio5js.flash.count += 1; this.id = ns + Audio5js.flash.count; Audio5js.flash.instances[this.id] = this; this.embed(swf_src); }, /** * Embed audio player SWF in page and assign reference to audio instance variable * @param {String} swf_src path to audio player SWF file */ embed: function (swf_src) { this.audio = util.embedFlash(swf_src, this.id); }, /** * ExternalInterface callback indicating SWF is ready */ eiReady: function () { this.trigger('ready'); }, /** * ExternalInterface timeupdate callback. Fires as long as playhead position is updated (audio is being played). * @param {Float} position audio playback position (sec) * @param {Float} duration audio total duration (sec) * @param {Boolean} seekable is audio seekable or not (download or streaming) */ eiTimeUpdate: function (position, duration, seekable) { this.position = position; this.duration = duration; this.seekable = seekable; if (this.playing) { this.trigger('timeupdate', position, (this.seekable ? duration : null)); } }, /** * ExternalInterface download progress callback. Fires as long as audio file is downloaded by browser. * @param {Float} percent audio download percent */ eiProgress: function (percent) { this.load_percent = percent; this.trigger('progress', percent); }, /** * ExternalInterface audio load error callback. * @param {String} msg error message */ eiLoadError: function (msg) { this.trigger('error', msg); }, /** * ExternalInterface audio play callback. Fires when audio starts playing. */ eiPlay: function () { this.playing = true; this.trigger('play'); }, /** * ExternalInterface audio pause callback. Fires when audio is paused. */ eiPause: function () { this.playing = false; this.trigger('pause'); }, /** * ExternalInterface audio ended callback. Fires when audio playback ended. */ eiEnded: function () { this.playing = false; this.trigger('ended'); }, /** * ExternalInterface audio ended callback. Fires when audio playback ended. */ eiCanPlay: function () { this.trigger('canplay'); }, /** * Resets audio position and parameters. Invoked once audio is loaded. */ reset: function () { this.seekable = false; this.duration = 0; this.position = 0; this.load_percent = 0; }, /** * Load audio from url. * @param {String} url URL of audio to load */ load: function (url) { this.reset(); this.audio.load(url); }, /** * Play audio */ play: function () { this.audio.pplay(); }, /** * Pause audio */ pause: function () { this.audio.ppause(); }, /** * Get / Set audio volume * @param {Float} v audio volume to set between 0 - 1. * @return {Float} current audio volume */ volume: function (v) { if (v !== undefined && !isNaN(parseInt(v, 10))) { this.audio.setVolume(v); this.vol = v; } else { return this.vol; } }, /** * Seek audio to position * @param {Float} position audio position in seconds to seek to. */ seek: function (position) { try { this.audio.seekTo(position); this.position = position; } catch (e) {} } }; /** * HTML5 Audio Player * @constructor */ HTML5AudioPlayer = function () { include(HTML5AudioPlayer, Pubsub); include(HTML5AudioPlayer, AudioAttributes); }; HTML5AudioPlayer.prototype = { /** * Initialize the player instance */ init: function () { this.audio = new Audio(); this.audio.autoplay = false; this.audio.preload = 'auto'; this.audio.autobuffer = true; this.bindEvents(); this.trigger('ready'); }, /** * Bind DOM events to Audio object */ bindEvents: function () { this.audio.addEventListener('timeupdate', this.onTimeUpdate.bind(this)); this.audio.addEventListener('play', this.onPlay.bind(this)); this.audio.addEventListener('pause', this.onPause.bind(this)); this.audio.addEventListener('ended', this.onEnded.bind(this)); this.audio.addEventListener('canplay', this.onLoad.bind(this)); this.audio.addEventListener('error', this.onError.bind(this)); }, /** * Audio play event handler. Triggered when audio starts playing. */ onPlay: function () { this.playing = true; this.trigger('play'); }, /** * Audio pause event handler. Triggered when audio is paused. */ onPause: function () { this.playing = false; this.trigger('pause'); }, /** * Audio ended event handler. Triggered when audio playback has ended. */ onEnded: function () { this.playing = false; this.trigger('ended'); }, /** * Audio timeupdate event handler. Triggered as long as playhead position is updated (audio is being played). */ onTimeUpdate: function () { if (this.audio.buffered !== null && this.audio.buffered.length && this.playing) { this.position = this.audio.currentTime; this.duration = this.audio.duration === Infinity ? null : this.audio.duration; this.trigger('timeupdate', this.position, this.duration); } }, /** * Audio canplay event handler. Triggered when audio is loaded and can be played. * Resets player parameters and starts audio download progress timer. */ onLoad: function () { this.seekable = this.audio.seekable && this.audio.seekable.length > 0; if (this.seekable) { this.timer = setInterval(this.onProgress.bind(this), 250); } this.trigger('canplay'); }, /** * Audio download progress timer callback. Check audio's download percentage. * Called periodically as soon as the audio loads and can be played. * Cancelled when audio has fully download or when a new audio file has been loaded to the player. */ onProgress: function () { if (this.audio.buffered !== null && this.audio.buffered.length) { this.load_percent = parseInt(((this.audio.buffered.end(this.audio.buffered.length - 1) / this.audio.duration) * 100), 10); this.trigger('progress', this.load_percent); if (this.load_percent >= 100) { this.clearLoadProgress(); } } }, /** * Audio error event handler * @param e error event */ onError: function (e) { this.trigger('error', e); }, /** * Clears periodical audio download progress callback. */ clearLoadProgress: function () { if (this.timer !== undefined) { clearInterval(this.timer); delete this.timer; } }, /** * Resets audio position and parameters. */ reset: function () { this.clearLoadProgress(); this.seekable = false; this.duration = 0; this.position = 0; this.load_percent = 0; }, /** * Load audio from url. * @param {String} url URL of audio to load */ load: function (url) { this.reset(); this.audio.setAttribute('src', url); this.audio.load(); }, /** * Play audio */ play: function () { this.audio.play(); }, /** * Pause audio */ pause: function () { this.audio.pause(); }, /** * Get / Set audio volume * @param {Float} v audio volume to set between 0 - 1. * @return {Float} current audio volume */ volume: function (v) { if (v !== undefined && !isNaN(parseInt(v, 10))) { this.audio.setVolume(v); this.vol = v; } else { return this.vol; } }, /** * Seek audio to position * @param {Float} position audio position in seconds to seek to. */ seek: function (position) { this.position = position; this.audio.currentTime = position; this.play(); } }; /** * Default settings object * @type {Object} */ var settings = { /** * {String} path to Flash audio player SWF file */ swf_path: '/swf/audiojs.swf', /** * {Boolean} flag indicating whether to throw errors to the page or trigger an error event */ throw_errors: true, /** * {Boolean} flag indicating whether to format player duration and position to hh:mm:ss or pass as raw seconds */ format_time: true, /** * {Array} list of codecs to try and use when initializing the player. Used to selectively initialize the internal audio player based on codec support */ codecs: ['mp3'] }; /** * Audio5js Audio Player * @param {Object} s player settings object * @constructor */ Audio5js = function (s) { include(Audio5js, Pubsub); include(Audio5js, AudioAttributes); s = s || {}; var k; for (k in settings) { if (settings.hasOwnProperty(k) && !s.hasOwnProperty(k)) { s[k] = settings[k]; } } this.init(s); }; /** * Global object holding flash-based player instances. * Used to create a bridge between Flash's ExternalInterface calls and FlashAudioPlayer instances * @type {Object} */ Audio5js.flash = { instances: { }, /** FlashAudioPlayer instance hash */ count: 0 /** FlashAudioPlayer instance count */ }; /** * Check if browser can play a given audio mime type. * @param {String} mime_type audio mime type to check. * @return {Boolean} is audio mime type supported by browser or not */ Audio5js.can_play = function (mime_type) { return util.can_play(mime_type); }; Audio5js.prototype = { /** * Initialize player instance. * @param {Object} s player settings object */ init: function (s) { this.settings = s; this.audio = this.getPlayer(); this.bindAudioEvents(); if (this.settings.use_flash) { this.audio.init(s.swf_path); } else { this.audio.init(); } }, /** * Gets a new audio player instance based on codec support as defined in settings.codecs array. * Defaults to MP3 player either HTML or Flash based. * @return {FlashAudioPlayer,HTML5AudioPlayer} audio player instance */ getPlayer: function () { var i, l, player; for (i = 0, l = this.settings.codecs.length; i < l; i++) { var codec = this.settings.codecs[i]; if (Audio5js.can_play(codec)) { player = new HTML5AudioPlayer(); this.settings.use_flash = false; this.settings.player = { engine: 'html', codec: codec }; break; } } if (player === undefined) { // here we double check for mp3 support instead of defaulting to Flash in case user overrode the settings.codecs array with an empty array. this.settings.use_flash = !Audio5js.can_play('mp3'); player = this.settings.use_flash ? new FlashAudioPlayer() : new HTML5AudioPlayer(); this.settings.player = { engine: (this.settings.use_flash ? 'flash' : 'html'), codec: 'mp3' }; } return player; }, /** * Bind events from audio object to internal callbacks */ bindAudioEvents: function () { this.audio.on('ready', this.onReady, this); this.audio.on('play', this.onPlay, this); this.audio.on('pause', this.onPause, this); this.audio.on('ended', this.onEnded, this); this.audio.on('canplay', this.onCanPlay, this); this.audio.on('timeupdate', this.onTimeUpdate, this); this.audio.on('progress', this.onProgress, this); this.audio.on('error', this.onError, this); }, /** * Load audio from URL * @param {String} url URL of audio to load */ load: function (url) { this.audio.load(url); this.trigger('load'); }, /** * Play audio */ play: function () { this.audio.play(); }, /** * Pause audio */ pause: function () { this.audio.pause(); }, /** * Toggle audio play / pause */ playPause: function () { this[this.playing ? 'pause' : 'play'](); }, /** * Get / Set audio volume * @param {Float} v audio volume to set between 0 - 1. * @return {Float} current audio volume */ volume: function (v) { if (v !== undefined && !isNaN(parseInt(v, 10))) { this.audio.volume(v); this.vol = v; } else { return this.vol; } }, /** * Seek audio to position * @param {Float} position audio position in seconds to seek to. */ seek: function (position) { this.audio.seek(position); this.position = position; }, /** * Callback for audio ready event. Indicates audio is ready for playback. * Looks for ready callback in settings object and invokes it in the context of player instance */ onReady: function () { if (typeof (this.settings.ready) === 'function') { this.settings.ready.call(this, this.settings.player); } }, /** * Audio play event handler */ onPlay: function () { this.playing = true; this.trigger('play'); }, /** * Audio pause event handler */ onPause: function () { this.playing = false; this.trigger('pause'); }, /** * Playback end event handler */ onEnded: function () { this.playing = false; this.trigger('ended'); }, /** * Audio error event handler */ onError: function () { var error = new AudioError('Audio Error. Failed to Load Audio'); if (this.settings.throw_errors) { throw error; } else { this.trigger('error', error); } }, /** * Audio canplay event handler. Triggered when enough audio has been loaded to by played. */ onCanPlay: function () { this.trigger('canplay'); }, /** * Playback time update event handler * @param {Float} position play head position (sec) * @param {Float} duration audio duration (sec) */ onTimeUpdate: function (position, duration) { this.position = this.settings.format_time ? util.formatTime(position) : position; if (this.duration !== duration) { this.duration = this.settings.format_time && duration !== null ? util.formatTime(duration) : duration; } this.trigger('timeupdate', this.position, this.duration); }, /** * Audio download progress event handler * @param {Float} loaded audio download percent */ onProgress: function (loaded) { this.load_percent = loaded; this.trigger('progress', loaded); } }; return Audio5js; }));
NMastracchio/cdnjs
ajax/libs/audio5js/0.1.0/audio5.js
JavaScript
mit
23,334
/* * /MathJax/jax/output/SVG/fonts/STIX-Web/Variants/Italic/Main.js * * Copyright (c) 2009-2014 The MathJax Consortium * * 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. */ MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_Variants-italic"]={directory:"Variants/Italic",family:"STIXMathJax_Variants",style:"italic",id:"STIXWEBVARIANTSI",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],57901:[677,45,852,43,812,"793 65l19 -15c-28 -54 -75 -81 -130 -81c-74 0 -100 50 -103 191h-238c-87 -119 -137 -205 -213 -205c-47 0 -85 38 -85 83c0 34 18 60 53 60c48 0 37 -53 69 -53c48 0 109 89 142 139l322 493h28l27 -539c2 -37 12 -107 49 -107c16 0 44 8 60 34zM578 200l-13 305 l-201 -305c-3 -4 -6 -10 -6 -13c0 -1 1 -1 1 -2c7 0 25 11 32 15h187"],57902:[670,3,724,35,709,"325 522l3 -2c70 95 154 150 274 150c62 0 107 -43 107 -104c0 -96 -114 -164 -173 -183c82 -8 155 -52 155 -151c0 -146 -199 -235 -333 -235c-41 0 -86 6 -121 32l11 22c32 -16 74 -20 107 -20c124 0 229 100 229 200c0 62 -52 114 -173 114h-66l11 38h19 c79 0 250 44 250 161c0 50 -29 79 -85 79c-47 0 -103 -34 -130 -62c-54 -54 -93 -123 -142 -291l-37 -128c-24 -83 -42 -130 -127 -140c-19 -2 -43 -2 -69 -2l9 24c41 0 52 23 92 162l104 363c3 9 3 17 3 24c0 18 -11 30 -42 30h-22l4 24c55 5 125 15 185 35"],57903:[671,11,569,43,586,"514 140l15 -16c-4 -6 -89 -135 -250 -135c-118 0 -236 66 -236 230c0 221 168 402 357 444c24 5 46 8 67 8c72 0 119 -35 119 -94c0 -32 -31 -85 -75 -85c-37 0 -56 25 -56 52c0 51 50 42 50 69c0 15 -27 23 -48 23c-104 0 -212 -75 -268 -214 c-23 -58 -39 -125 -39 -208c0 -128 74 -182 162 -182c101 0 186 91 202 108"],57904:[662,0,801,34,788,"49 534l-15 19c45 43 91 69 142 85c64 20 134 24 213 24c307 0 399 -67 399 -240s-114 -422 -479 -422h-257l7 24c42 0 59 24 77 87l97 337c14 48 33 98 33 121c0 22 -9 37 -45 37c-79 0 -145 -50 -172 -72zM381 586l-145 -499c-4 -13 -5 -21 -5 -26c0 -18 21 -21 59 -21 c95 0 388 40 388 378c0 130 -62 204 -247 204c-24 0 -45 -17 -50 -36"],57905:[670,4,553,40,599,"511 152l16 -18c-52 -55 -110 -92 -172 -114c-46 -17 -95 -24 -147 -24c-83 0 -168 37 -168 119c0 123 118 200 213 238c-44 21 -82 41 -82 110c0 116 174 207 274 207c90 0 154 -32 154 -99c0 -18 -17 -77 -72 -77c-28 0 -54 21 -54 49c0 40 30 47 30 60 c0 26 -15 34 -47 34c-101 0 -199 -71 -199 -144c0 -56 56 -88 134 -88h68l-9 -38c-112 0 -303 -88 -303 -227c0 -61 51 -90 125 -90c83 0 188 49 239 102"],57906:[662,0,652,43,710,"59 534l-16 18c104 97 200 110 295 110c210 0 372 -19 372 -117c0 -43 -24 -80 -68 -80c-30 0 -57 20 -57 47c1 55 47 36 47 63c0 28 -89 47 -180 47c-40 0 -55 -8 -67 -49l-57 -196h218l-13 -40h-216l-44 -149c-53 -178 -112 -188 -213 -188l8 24c36 0 59 25 78 92 l118 405c4 14 10 36 10 52c0 22 -10 33 -46 33c-83 0 -146 -50 -169 -72"],57907:[671,131,580,40,580,"425 91l-5 2c-45 -36 -106 -55 -166 -55c-109 0 -214 64 -214 204c0 234 224 429 421 429c72 0 119 -35 119 -94c0 -32 -34 -83 -78 -83c-30 0 -53 23 -53 50c0 49 50 45 50 66c0 16 -24 26 -48 26c-104 0 -210 -81 -268 -213c-25 -57 -36 -103 -36 -186 c0 -112 59 -156 130 -156c115 0 233 89 258 232l23 4c2 -10 2 -22 2 -34c0 -111 -54 -279 -163 -357c-54 -39 -107 -57 -186 -57c-71 0 -125 22 -154 54l15 19c23 -26 90 -38 131 -38c95 0 186 92 222 187"],57908:[664,21,831,41,845,"845 662l-10 -24c-43 0 -51 -27 -69 -92l-120 -427c-6 -20 -7 -38 -7 -52c0 -28 16 -41 54 -41c26 0 43 8 63 27l15 -19c-33 -38 -97 -55 -138 -55c-42 0 -106 21 -106 84c0 11 1 22 5 35l71 252c-9 -4 -22 -13 -30 -13h-258l-68 -244c-24 -85 -82 -93 -189 -93l10 24 c42 4 60 25 78 88l95 341c2 6 27 104 27 121c0 22 -7 34 -39 34c-72 0 -143 -50 -172 -75l-16 18c46 53 140 113 268 113c52 0 72 -25 72 -75c0 -26 -9 -60 -21 -102l-36 -123c11 2 20 13 30 13h257l56 194c26 89 70 91 178 91"],57909:[662,0,575,38,591,"591 662l-6 -24c-94 0 -135 -5 -167 -117l-118 -410c-1 -4 -3 -13 -3 -24c0 -24 24 -32 48 -32c51 0 110 18 168 73l18 -19c-84 -82 -174 -109 -289 -109h-204l6 24c75 0 124 0 156 112l104 362c6 21 18 56 18 76c0 26 -21 32 -48 32c-42 0 -122 -25 -168 -73l-17 19 c73 72 148 110 314 110h188"],57910:[662,120,632,31,785,"785 662l-9 -24c-87 0 -115 -33 -136 -105l-126 -440c-42 -146 -150 -213 -284 -213c-111 0 -199 49 -199 135c0 50 34 91 78 91c34 0 53 -22 53 -55c0 -40 -36 -49 -36 -66c0 -50 49 -65 110 -65c144 0 172 177 210 310l93 322c3 9 4 17 4 24c0 35 -30 44 -65 44 c-138 0 -213 -128 -245 -193h-28c37 95 116 235 295 235h285"],57911:[670,13,809,30,783,"308 449l6 -3c89 99 235 224 354 224c73 0 115 -43 115 -104c0 -54 -32 -103 -82 -103c-30 0 -50 24 -50 51c0 56 55 37 55 77c0 18 -15 39 -45 39c-94 0 -218 -93 -330 -229c45 -204 160 -349 279 -349c44 0 103 29 135 74l20 -16c-44 -58 -103 -123 -220 -123 c-134 0 -249 153 -281 280l-40 -140c-34 -120 -72 -127 -194 -127l7 24c41 0 62 39 97 163l103 362c3 9 4 16 4 23c0 21 -18 30 -47 30c-6 0 -11 0 -18 -1l5 25c58 6 126 16 187 36"],57912:[670,7,693,30,653,"636 143l17 -18c-59 -60 -152 -132 -276 -132c-36 0 -62 5 -88 11c-33 7 -64 15 -110 15c-44 0 -104 -19 -149 -19l6 24c33 0 61 25 78 93l70 284c48 193 203 269 304 269c71 0 97 -55 97 -110c0 -50 -36 -83 -81 -83c-30 0 -50 24 -50 51c0 48 50 41 50 64 c0 17 -7 38 -58 38c-185 0 -130 -365 -265 -538v-4c25 17 83 22 114 22c103 0 80 -50 168 -50c58 0 118 31 173 83"],57913:[671,45,1166,40,1128,"1113 54l15 -19c-35 -49 -87 -67 -142 -67c-23 0 -88 13 -88 80c0 6 0 12 5 54l44 395h-3l-412 -489h-15c-58 123 -106 245 -140 406h-1c-21 -87 -54 -253 -131 -375c-32 -51 -67 -84 -118 -84c-49 0 -87 37 -87 84c0 34 18 60 53 60c48 0 41 -57 73 -57 c18 0 43 17 60 47c73 126 136 473 159 582h30c45 -191 92 -381 169 -540l457 540h27l-61 -557c-1 -9 -2 -19 -2 -29c0 -30 10 -58 44 -58c32 0 54 17 64 27"],57914:[795,37,957,40,1064,"671 125h1c141 466 168 561 191 596c30 46 67 74 114 74c49 0 87 -37 87 -84c0 -34 -18 -60 -53 -60c-48 0 -41 57 -73 57c-54 0 -71 -73 -81 -104l-191 -628h-20c-94 128 -185 279 -258 476h-2c-36 -174 -105 -489 -259 -489c-49 0 -87 37 -87 84c0 34 18 60 53 60 c48 0 41 -57 73 -57c120 0 182 454 218 621h27c78 -195 155 -410 260 -546"],57915:[669,10,737,38,729,"360 662l6 -23c-116 -34 -221 -213 -221 -409c0 -137 69 -200 165 -200c75 0 163 54 226 142c51 72 84 165 84 288c0 100 -58 153 -117 153s-118 -42 -118 -108c0 -25 11 -37 36 -37c9 0 17 5 35 5c25 0 29 -16 29 -33c0 -37 -40 -72 -80 -72c-58 0 -87 44 -87 100 c0 99 114 201 240 201c116 0 171 -107 171 -210c0 -116 -61 -243 -134 -322c-84 -90 -193 -147 -321 -147c-129 0 -236 73 -236 223c0 249 180 427 322 449"],57916:[662,0,667,38,709,"290 662h99c278 0 320 -63 320 -160c0 -93 -67 -274 -395 -274l9 24c178 17 283 114 283 246c0 91 -48 124 -178 124c-35 0 -43 -16 -56 -60l-126 -443c-20 -70 -70 -119 -191 -119l8 24c42 0 58 35 82 117l89 305c15 53 30 103 30 126c0 22 -10 34 -46 34 c-87 0 -136 -54 -162 -72l-18 19c98 94 183 109 252 109"],57917:[671,131,744,43,704,"680 9h24c-41 -132 -146 -140 -232 -140c-94 0 -186 53 -274 76c-46 12 -87 19 -124 19v24c114 43 213 49 268 60c142 28 244 177 244 336c0 105 -7 246 -149 246c-171 0 -290 -168 -290 -345c0 -88 64 -145 145 -145c41 0 84 7 128 42l14 -18c-46 -45 -126 -74 -207 -74 c-60 0 -118 19 -154 68c-18 25 -30 57 -30 96c0 214 205 417 412 417c164 0 238 -113 238 -243c0 -158 -90 -305 -244 -383c-34 -17 -99 -39 -141 -45l-1 -4c69 -22 170 -74 242 -74c76 0 119 46 131 87"],57918:[662,3,854,38,816,"800 129l16 -18c-52 -55 -121 -114 -192 -114c-143 0 -129 149 -211 243c-14 16 -77 51 -82 51l9 23c178 17 271 120 271 189c0 92 -49 117 -179 117c-35 0 -43 -12 -49 -34l-116 -396c-27 -93 -63 -190 -211 -190l9 24c42 0 57 35 81 117l91 315c14 47 30 93 30 116 c0 22 -10 36 -46 36c-87 0 -138 -52 -167 -73l-16 19c104 108 200 108 350 108c278 0 327 -54 327 -146c0 -71 -43 -166 -253 -221v-4c149 -57 84 -232 195 -232c58 0 107 35 143 70"],57919:[671,0,634,38,671,"38 193l26 3c10 -61 40 -113 114 -139c30 -11 64 -16 98 -16c102 0 203 48 203 152c0 112 -275 84 -275 271c0 142 196 207 274 207c105 0 193 -29 193 -102c0 -30 -18 -79 -69 -79c-28 0 -56 22 -56 50c0 40 30 45 30 60c0 34 -60 34 -98 34c-46 0 -188 -34 -188 -141 c0 -128 308 -98 308 -278c0 -94 -146 -215 -316 -215c-179 0 -244 86 -244 193"],57920:[721,0,509,41,730,"712 721l18 -15c-60 -98 -161 -141 -301 -147l-108 -372c-51 -176 -112 -187 -213 -187l9 24c40 0 63 38 84 112l93 324c12 43 25 86 25 108c0 21 -17 32 -35 32c-52 0 -145 -22 -223 -123l-20 14c84 122 175 172 386 172c40 0 70 -6 101 -6c79 0 154 18 184 64"],57921:[672,13,817,37,950,"355 489l-75 -257c-12 -41 -23 -80 -23 -110c0 -37 21 -85 72 -85c291 0 266 406 398 559c36 42 69 76 137 76c63 0 86 -35 86 -73c0 -40 -19 -85 -68 -85c-28 0 -50 18 -50 41c0 34 17 33 17 43c0 12 -6 18 -22 18c-51 0 -97 -89 -125 -153c-73 -168 -96 -476 -386 -476 c-49 0 -169 9 -169 121c0 20 3 43 10 69l78 277c6 20 26 96 26 113c0 22 -5 39 -37 39c-72 0 -136 -44 -172 -71l-15 19c47 42 139 108 267 108c55 0 72 -28 72 -67c0 -32 -9 -66 -21 -106"],57922:[677,33,638,33,680,"335 112l5 -6c51 40 156 130 227 231c42 60 73 120 73 175c0 61 -24 87 -62 87c-31 0 -24 -49 -70 -49c-33 0 -50 23 -50 54c0 42 36 73 83 73c46 0 87 -12 116 -59c17 -26 23 -66 23 -93c0 -83 -45 -166 -108 -245c-96 -119 -234 -228 -324 -310l-29 -3 c12 103 25 222 25 346c0 136 -16 309 -132 309c-25 0 -48 -6 -64 -19l-15 19c35 29 71 40 108 40c187 0 206 -202 206 -378c0 -45 -8 -140 -12 -172"],57923:[685,32,956,33,998,"724 115l6 -3c49 58 127 132 182 237c28 54 46 110 46 158c0 70 -21 108 -61 108c-23 0 -15 -50 -56 -50c-34 0 -50 26 -50 54c0 46 37 66 83 66c79 0 124 -76 124 -171c0 -211 -230 -409 -340 -546h-26v68c0 169 -6 379 -89 491h-7l-323 -559h-30c21 130 45 292 45 442 c0 122 -32 216 -134 216c-16 0 -35 -9 -46 -18l-15 19c36 29 73 35 110 35c173 0 188 -164 188 -321c0 -23 -1 -55 -3 -82h6l197 342l45 49c77 -83 151 -265 151 -432c0 -36 0 -67 -3 -103"],57924:[672,13,692,38,739,"444 473l10 -95c115 53 226 106 226 177c0 10 -4 24 -19 24c-10 0 -6 -12 -33 -12c-22 0 -34 23 -34 47c0 34 28 58 69 58c36 0 76 -31 76 -95c0 -97 -101 -157 -278 -240l25 -172c8 -58 25 -103 67 -103c16 0 41 7 57 33l19 -14c-26 -54 -66 -81 -120 -81 c-61 0 -105 33 -122 171l-16 129c-215 -107 -273 -154 -273 -207c0 -9 2 -14 8 -14s12 9 26 9c31 0 40 -18 40 -42c0 -27 -22 -59 -71 -59c-33 0 -63 26 -63 79c0 112 137 179 328 276l-24 153c-6 38 -20 105 -64 105c-16 0 -43 -8 -58 -34l-22 10c26 54 70 86 124 86 c64 0 107 -47 122 -189"],57925:[675,131,719,34,763,"462 119l3 -4c60 39 256 277 256 393c0 61 -24 95 -59 95c-29 0 -23 -47 -66 -47c-31 0 -47 21 -47 50c0 39 35 69 78 69c74 0 136 -47 136 -153c0 -191 -365 -653 -600 -653c-106 0 -126 81 -129 144l22 10c24 -55 65 -73 120 -73c53 0 110 18 187 85 c0 86 -5 196 -16 290c-14 125 -48 293 -151 293c-17 0 -55 -7 -77 -23l-16 18c42 40 85 49 127 49c167 0 200 -186 222 -353c6 -45 10 -158 10 -190"],57926:[664,94,752,38,714,"714 662l-6 -21c-27 -4 -54 -34 -89 -76l-160 -190h110l-17 -38h-126c-90 -102 -174 -202 -270 -286c10 2 21 2 31 2c137 0 205 -94 327 -94c76 0 119 46 133 87h22c-41 -132 -146 -140 -232 -140c-94 0 -186 51 -274 76c-43 12 -81 18 -116 18h-9l3 19 c28 14 77 43 121 89c73 74 142 149 211 229h-112l15 38h130l153 183l-7 5c-11 -1 -24 -2 -34 -2c-78 0 -95 48 -161 48c-86 0 -155 -80 -174 -108l-20 11c67 102 174 152 266 152c43 0 98 -22 145 -22c58 0 88 20 140 20"],57954:[460,11,570,56,514,"326 460h8c102 0 180 -67 180 -187c0 -101 -65 -208 -152 -256c-39 -21 -85 -28 -131 -28c-102 0 -175 71 -175 168c0 181 125 303 270 303zM414 323c0 53 -22 115 -82 115c-44 0 -82 -28 -111 -73c-52 -80 -65 -160 -65 -243c0 -55 24 -109 77 -109c47 0 88 34 116 72 c51 70 65 176 65 238"],57958:[460,0,570,100,415,"204 419l204 41c4 0 7 -1 7 -7c0 -5 -2 -13 -3 -18l-103 -359c-4 -13 -7 -24 -7 -32c0 -20 16 -29 69 -29v-15h-271v15c75 4 98 25 114 80l69 243c5 16 8 30 8 41c0 19 -10 30 -41 30c-12 0 -27 -2 -46 -5v15"],57962:[460,0,570,59,487,"156 288l-21 7c39 115 118 165 202 165c76 0 150 -46 150 -142c0 -84 -75 -145 -286 -247h142c57 0 78 20 103 70l17 -7l-51 -134h-353v17l239 148c57 35 102 66 102 129c0 35 -19 93 -94 93c-74 0 -115 -31 -150 -99"],57966:[461,217,570,40,513,"206 352l-17 7c43 72 107 102 182 102c74 0 142 -37 142 -122c0 -74 -44 -133 -131 -173v-3c51 -20 82 -55 82 -128c0 -79 -47 -140 -104 -190c-49 -43 -133 -62 -205 -62s-115 31 -115 64c0 25 21 36 47 36c19 0 37 -6 64 -30c26 -23 52 -32 71 -32c33 0 78 18 103 46 c26 31 39 79 39 126c0 108 -64 130 -160 130h-24v20c57 9 127 23 166 45c49 28 80 79 80 140c0 55 -35 91 -88 91c-43 0 -96 -20 -132 -67"],57970:[450,217,570,17,542,"542 450l-127 -440h86l-20 -72h-86l-45 -155h-100l45 155h-278l20 71l460 441h45zM404 318l-3 1l-320 -309h234"],57974:[450,218,570,23,536,"536 450l-31 -80h-247l-41 -87c123 -14 252 -85 252 -221c0 -145 -126 -280 -326 -280c-76 0 -87 9 -108 28c-9 9 -12 20 -12 30c0 27 20 46 59 46c66 0 59 -62 131 -62c81 0 169 91 169 192c0 137 -141 180 -243 180v25l110 229h287"],57978:[668,10,570,28,553,"553 668l-2 -17c-145 -32 -271 -100 -337 -244l3 -3c52 22 77 25 116 25c103 0 169 -61 169 -164c0 -125 -92 -275 -287 -275c-135 0 -187 98 -187 213c0 110 57 221 156 312c103 94 231 140 369 153zM216 18h2c39 0 71 16 96 41c51 50 78 134 78 203 c0 72 -31 129 -105 129c-52 0 -92 -38 -111 -73c-31 -57 -49 -128 -49 -192c0 -60 33 -108 89 -108"],57982:[450,217,570,40,543,"543 434l-408 -651h-79l384 587h-224c-79 0 -116 -15 -157 -82l-19 6l91 156h402"],57986:[668,10,570,50,519,"243 352v1c-72 71 -101 111 -101 165c0 96 91 150 198 150s179 -53 179 -134c0 -78 -49 -125 -169 -161v-1c86 -79 132 -123 132 -196c0 -111 -109 -186 -233 -186c-102 0 -199 47 -199 166c0 94 73 161 193 196zM445 525c0 71 -43 115 -107 115s-102 -35 -102 -100 c0 -42 16 -70 94 -143c87 41 115 89 115 128zM389 150c0 57 -15 73 -122 179c-90 -34 -141 -98 -141 -185c0 -82 63 -126 131 -126c79 0 132 63 132 132"],57990:[460,217,570,23,526,"355 53l-3 3c-52 -22 -77 -25 -116 -25c-103 0 -169 61 -169 164c0 125 91 265 272 265c135 0 187 -98 187 -213c0 -110 -57 -221 -156 -312c-103 -94 -209 -139 -347 -152l2 18c150 41 264 108 330 252zM338 432h-2c-39 0 -71 -16 -96 -41c-51 -50 -63 -120 -63 -189 c0 -72 42 -124 97 -124c41 0 71 14 98 43c31 57 55 139 55 203c0 60 -33 108 -89 108"]};MathJax.Ajax.loadComplete(MathJax.OutputJax.SVG.fontDir+"/Variants/Italic/Main.js");
jamzgoodguy/cdnjs
ajax/libs/mathjax/2.4.0/jax/output/SVG/fonts/STIX-Web/Variants/Italic/Main.js
JavaScript
mit
14,147
<?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\Component\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\DefinitionDecorator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; /** * This replaces all DefinitionDecorator instances with their equivalent fully * merged Definition instance. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ class ResolveDefinitionTemplatesPass implements CompilerPassInterface { private $container; private $compiler; private $formatter; /** * Process the ContainerBuilder to replace DefinitionDecorator instances with their real Definition instances. * * @param ContainerBuilder $container */ public function process(ContainerBuilder $container) { $this->container = $container; $this->compiler = $container->getCompiler(); $this->formatter = $this->compiler->getLoggingFormatter(); foreach (array_keys($container->getDefinitions()) as $id) { // yes, we are specifically fetching the definition from the // container to ensure we are not operating on stale data $definition = $container->getDefinition($id); if (!$definition instanceof DefinitionDecorator || $definition->isAbstract()) { continue; } $this->resolveDefinition($id, $definition); } } /** * Resolves the definition * * @param string $id The definition identifier * @param DefinitionDecorator $definition * * @return Definition * * @throws \RuntimeException When the definition is invalid */ private function resolveDefinition($id, DefinitionDecorator $definition) { if (!$this->container->hasDefinition($parent = $definition->getParent())) { throw new RuntimeException(sprintf('The parent definition "%s" defined for definition "%s" does not exist.', $parent, $id)); } $parentDef = $this->container->getDefinition($parent); if ($parentDef instanceof DefinitionDecorator) { $parentDef = $this->resolveDefinition($parent, $parentDef); } $this->compiler->addLogMessage($this->formatter->formatResolveInheritance($this, $id, $parent)); $def = new Definition(); // merge in parent definition // purposely ignored attributes: scope, abstract, tags $def->setClass($parentDef->getClass()); $def->setArguments($parentDef->getArguments()); $def->setMethodCalls($parentDef->getMethodCalls()); $def->setProperties($parentDef->getProperties()); $def->setFactoryClass($parentDef->getFactoryClass()); $def->setFactoryMethod($parentDef->getFactoryMethod()); $def->setFactoryService($parentDef->getFactoryService()); $def->setConfigurator($parentDef->getConfigurator()); $def->setFile($parentDef->getFile()); $def->setPublic($parentDef->isPublic()); $def->setLazy($parentDef->isLazy()); // overwrite with values specified in the decorator $changes = $definition->getChanges(); if (isset($changes['class'])) { $def->setClass($definition->getClass()); } if (isset($changes['factory_class'])) { $def->setFactoryClass($definition->getFactoryClass()); } if (isset($changes['factory_method'])) { $def->setFactoryMethod($definition->getFactoryMethod()); } if (isset($changes['factory_service'])) { $def->setFactoryService($definition->getFactoryService()); } if (isset($changes['configurator'])) { $def->setConfigurator($definition->getConfigurator()); } if (isset($changes['file'])) { $def->setFile($definition->getFile()); } if (isset($changes['public'])) { $def->setPublic($definition->isPublic()); } if (isset($changes['lazy'])) { $def->setLazy($definition->isLazy()); } // merge arguments foreach ($definition->getArguments() as $k => $v) { if (is_numeric($k)) { $def->addArgument($v); continue; } if (0 !== strpos($k, 'index_')) { throw new RuntimeException(sprintf('Invalid argument key "%s" found.', $k)); } $index = (integer) substr($k, strlen('index_')); $def->replaceArgument($index, $v); } // merge properties foreach ($definition->getProperties() as $k => $v) { $def->setProperty($k, $v); } // append method calls if (count($calls = $definition->getMethodCalls()) > 0) { $def->setMethodCalls(array_merge($def->getMethodCalls(), $calls)); } // these attributes are always taken from the child $def->setAbstract($definition->isAbstract()); $def->setScope($definition->getScope()); $def->setTags($definition->getTags()); // set new definition on container $this->container->setDefinition($id, $def); return $def; } }
wojjaskula/Symfo
vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveDefinitionTemplatesPass.php
PHP
mit
5,550