-
Notifications
You must be signed in to change notification settings - Fork 0
/
libras.js
2 lines (2 loc) · 347 KB
/
libras.js
1
2
/*! For license information please see vlibras-plugin.js.LICENSE */
window.VLibras=function(n){var e={};function t(s){if(e[s])return e[s].exports;var r=e[s]={i:s,l:!1,exports:{}};return n[s].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=n,t.c=e,t.d=function(n,e,s){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:s})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(s,r,function(e){return n[e]}.bind(null,r));return s},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s="./widget/src/index.js")}({"../vlibras-player-webjs/node_modules/component-emitter/index.js":function(module,exports,__webpack_require__){eval("\r\n/**\r\n * Expose `Emitter`.\r\n */\r\n\r\nif (true) {\r\n module.exports = Emitter;\r\n}\r\n\r\n/**\r\n * Initialize a new `Emitter`.\r\n *\r\n * @api public\r\n */\r\n\r\nfunction Emitter(obj) {\r\n if (obj) return mixin(obj);\r\n};\r\n\r\n/**\r\n * Mixin the emitter properties.\r\n *\r\n * @param {Object} obj\r\n * @return {Object}\r\n * @api private\r\n */\r\n\r\nfunction mixin(obj) {\r\n for (var key in Emitter.prototype) {\r\n obj[key] = Emitter.prototype[key];\r\n }\r\n return obj;\r\n}\r\n\r\n/**\r\n * Listen on the given `event` with `fn`.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.on =\r\nEmitter.prototype.addEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n .push(fn);\r\n return this;\r\n};\r\n\r\n/**\r\n * Adds an `event` listener that will be invoked a single\r\n * time then automatically removed.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.once = function(event, fn){\r\n function on() {\r\n this.off(event, on);\r\n fn.apply(this, arguments);\r\n }\r\n\r\n on.fn = fn;\r\n this.on(event, on);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove the given callback for `event` or all\r\n * registered callbacks.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.off =\r\nEmitter.prototype.removeListener =\r\nEmitter.prototype.removeAllListeners =\r\nEmitter.prototype.removeEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n\r\n // all\r\n if (0 == arguments.length) {\r\n this._callbacks = {};\r\n return this;\r\n }\r\n\r\n // specific event\r\n var callbacks = this._callbacks['$' + event];\r\n if (!callbacks) return this;\r\n\r\n // remove all handlers\r\n if (1 == arguments.length) {\r\n delete this._callbacks['$' + event];\r\n return this;\r\n }\r\n\r\n // remove specific handler\r\n var cb;\r\n for (var i = 0; i < callbacks.length; i++) {\r\n cb = callbacks[i];\r\n if (cb === fn || cb.fn === fn) {\r\n callbacks.splice(i, 1);\r\n break;\r\n }\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Emit `event` with the given args.\r\n *\r\n * @param {String} event\r\n * @param {Mixed} ...\r\n * @return {Emitter}\r\n */\r\n\r\nEmitter.prototype.emit = function(event){\r\n this._callbacks = this._callbacks || {};\r\n var args = [].slice.call(arguments, 1)\r\n , callbacks = this._callbacks['$' + event];\r\n\r\n if (callbacks) {\r\n callbacks = callbacks.slice(0);\r\n for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n callbacks[i].apply(this, args);\r\n }\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Return array of callbacks for `event`.\r\n *\r\n * @param {String} event\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.listeners = function(event){\r\n this._callbacks = this._callbacks || {};\r\n return this._callbacks['$' + event] || [];\r\n};\r\n\r\n/**\r\n * Check if this emitter has `event` handlers.\r\n *\r\n * @param {String} event\r\n * @return {Boolean}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.hasListeners = function(event){\r\n return !! this.listeners(event).length;\r\n};\r\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/component-emitter/index.js?")},"../vlibras-player-webjs/node_modules/inherits/inherits_browser.js":function(module,exports){eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/inherits/inherits_browser.js?")},"../vlibras-player-webjs/node_modules/object-assign/index.js":function(module,exports,__webpack_require__){"use strict";eval("/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/object-assign/index.js?")},"../vlibras-player-webjs/node_modules/reduce-component/index.js":function(module,exports){eval("\n/**\n * Reduce `arr` with `fn`.\n *\n * @param {Array} arr\n * @param {Function} fn\n * @param {Mixed} initial\n *\n * TODO: combatible error handling?\n */\n\nmodule.exports = function(arr, fn, initial){ \n var idx = 0;\n var len = arr.length;\n var curr = arguments.length == 3\n ? initial\n : arr[idx++];\n\n while (idx < len) {\n curr = fn.call(null, curr, arr[idx], ++idx, arr);\n }\n \n return curr;\n};\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/reduce-component/index.js?")},"../vlibras-player-webjs/node_modules/superagent/lib/client.js":function(module,exports,__webpack_require__){eval("/**\n * Module dependencies.\n */\n\nvar Emitter = __webpack_require__(/*! emitter */ \"../vlibras-player-webjs/node_modules/component-emitter/index.js\");\nvar reduce = __webpack_require__(/*! reduce */ \"../vlibras-player-webjs/node_modules/reduce-component/index.js\");\nvar requestBase = __webpack_require__(/*! ./request-base */ \"../vlibras-player-webjs/node_modules/superagent/lib/request-base.js\");\nvar isObject = __webpack_require__(/*! ./is-object */ \"../vlibras-player-webjs/node_modules/superagent/lib/is-object.js\");\n\n/**\n * Root reference for iframes.\n */\n\nvar root;\nif (typeof window !== 'undefined') { // Browser window\n root = window;\n} else if (typeof self !== 'undefined') { // Web Worker\n root = self;\n} else { // Other environments\n root = this;\n}\n\n/**\n * Noop.\n */\n\nfunction noop(){};\n\n/**\n * Check if `obj` is a host object,\n * we don't want to serialize these :)\n *\n * TODO: future proof, move to compoent land\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\n\nfunction isHost(obj) {\n var str = {}.toString.call(obj);\n\n switch (str) {\n case '[object File]':\n case '[object Blob]':\n case '[object FormData]':\n return true;\n default:\n return false;\n }\n}\n\n/**\n * Expose `request`.\n */\n\nvar request = module.exports = __webpack_require__(/*! ./request */ \"../vlibras-player-webjs/node_modules/superagent/lib/request.js\").bind(null, Request);\n\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest\n && (!root.location || 'file:' != root.location.protocol\n || !root.ActiveXObject)) {\n return new XMLHttpRequest;\n } else {\n try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {}\n }\n return false;\n};\n\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\nvar trim = ''.trim\n ? function(s) { return s.trim(); }\n : function(s) { return s.replace(/(^\\s*|\\s*$)/g, ''); };\n\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n for (var key in obj) {\n if (null != obj[key]) {\n pushEncodedKeyValuePair(pairs, key, obj[key]);\n }\n }\n return pairs.join('&');\n}\n\n/**\n * Helps 'serialize' with serializing arrays.\n * Mutates the pairs array.\n *\n * @param {Array} pairs\n * @param {String} key\n * @param {Mixed} val\n */\n\nfunction pushEncodedKeyValuePair(pairs, key, val) {\n if (Array.isArray(val)) {\n return val.forEach(function(v) {\n pushEncodedKeyValuePair(pairs, key, v);\n });\n }\n pairs.push(encodeURIComponent(key)\n + '=' + encodeURIComponent(val));\n}\n\n/**\n * Expose serialization method.\n */\n\n request.serializeObject = serialize;\n\n /**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var parts;\n var pair;\n\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n parts = pair.split('=');\n obj[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);\n }\n\n return obj;\n}\n\n/**\n * Expose parser.\n */\n\nrequest.parseString = parseString;\n\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'application/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n 'form': 'application/x-www-form-urlencoded',\n 'form-data': 'application/x-www-form-urlencoded'\n};\n\n/**\n * Default serialization map.\n *\n * superagent.serialize['application/xml'] = function(obj){\n * return 'generated xml here';\n * };\n *\n */\n\n request.serialize = {\n 'application/x-www-form-urlencoded': serialize,\n 'application/json': JSON.stringify\n };\n\n /**\n * Default parsers.\n *\n * superagent.parse['application/xml'] = function(str){\n * return { object parsed from str };\n * };\n *\n */\n\nrequest.parse = {\n 'application/x-www-form-urlencoded': parseString,\n 'application/json': JSON.parse\n};\n\n/**\n * Parse the given header `str` into\n * an object containing the mapped fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseHeader(str) {\n var lines = str.split(/\\r?\\n/);\n var fields = {};\n var index;\n var line;\n var field;\n var val;\n\n lines.pop(); // trailing CRLF\n\n for (var i = 0, len = lines.length; i < len; ++i) {\n line = lines[i];\n index = line.indexOf(':');\n field = line.slice(0, index).toLowerCase();\n val = trim(line.slice(index + 1));\n fields[field] = val;\n }\n\n return fields;\n}\n\n/**\n * Check if `mime` is json or has +json structured syntax suffix.\n *\n * @param {String} mime\n * @return {Boolean}\n * @api private\n */\n\nfunction isJSON(mime) {\n return /[\\/+]json\\b/.test(mime);\n}\n\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nfunction type(str){\n return str.split(/ *; */).shift();\n};\n\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction params(str){\n return reduce(str.split(/ *; */), function(obj, str){\n var parts = str.split(/ *= */)\n , key = parts.shift()\n , val = parts.shift();\n\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n\n/**\n * Initialize a new `Response` with the given `xhr`.\n *\n * - set flags (.ok, .error, etc)\n * - parse header\n *\n * Examples:\n *\n * Aliasing `superagent` as `request` is nice:\n *\n * request = superagent;\n *\n * We can use the promise-like API, or pass callbacks:\n *\n * request.get('/').end(function(res){});\n * request.get('/', function(res){});\n *\n * Sending data can be chained:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' })\n * .end(function(res){});\n *\n * Or passed to `.send()`:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' }, function(res){});\n *\n * Or passed to `.post()`:\n *\n * request\n * .post('/user', { name: 'tj' })\n * .end(function(res){});\n *\n * Or further reduced to a single call for simple cases:\n *\n * request\n * .post('/user', { name: 'tj' }, function(res){});\n *\n * @param {XMLHTTPRequest} xhr\n * @param {Object} options\n * @api private\n */\n\nfunction Response(req, options) {\n options = options || {};\n this.req = req;\n this.xhr = this.req.xhr;\n // responseText is accessible only if responseType is '' or 'text' and on older browsers\n this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined')\n ? this.xhr.responseText\n : null;\n this.statusText = this.req.xhr.statusText;\n this.setStatusProperties(this.xhr.status);\n this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders());\n // getAllResponseHeaders sometimes falsely returns \"\" for CORS requests, but\n // getResponseHeader still works. so we get content-type even if getting\n // other headers fails.\n this.header['content-type'] = this.xhr.getResponseHeader('content-type');\n this.setHeaderProperties(this.header);\n this.body = this.req.method != 'HEAD'\n ? this.parseBody(this.text ? this.text : this.xhr.response)\n : null;\n}\n\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nResponse.prototype.get = function(field){\n return this.header[field.toLowerCase()];\n};\n\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\nResponse.prototype.setHeaderProperties = function(header){\n // content-type\n var ct = this.header['content-type'] || '';\n this.type = type(ct);\n\n // params\n var obj = params(ct);\n for (var key in obj) this[key] = obj[key];\n};\n\n/**\n * Parse the given body `str`.\n *\n * Used for auto-parsing of bodies. Parsers\n * are defined on the `superagent.parse` object.\n *\n * @param {String} str\n * @return {Mixed}\n * @api private\n */\n\nResponse.prototype.parseBody = function(str){\n var parse = request.parse[this.type];\n if (!parse && isJSON(this.type)) {\n parse = request.parse['application/json'];\n }\n return parse && str && (str.length || str instanceof Object)\n ? parse(str)\n : null;\n};\n\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\nResponse.prototype.setStatusProperties = function(status){\n // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n if (status === 1223) {\n status = 204;\n }\n\n var type = status / 100 | 0;\n\n // status / class\n this.status = this.statusCode = status;\n this.statusType = type;\n\n // basics\n this.info = 1 == type;\n this.ok = 2 == type;\n this.clientError = 4 == type;\n this.serverError = 5 == type;\n this.error = (4 == type || 5 == type)\n ? this.toError()\n : false;\n\n // sugar\n this.accepted = 202 == status;\n this.noContent = 204 == status;\n this.badRequest = 400 == status;\n this.unauthorized = 401 == status;\n this.notAcceptable = 406 == status;\n this.notFound = 404 == status;\n this.forbidden = 403 == status;\n};\n\n/**\n * Return an `Error` representative of this response.\n *\n * @return {Error}\n * @api public\n */\n\nResponse.prototype.toError = function(){\n var req = this.req;\n var method = req.method;\n var url = req.url;\n\n var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')';\n var err = new Error(msg);\n err.status = this.status;\n err.method = method;\n err.url = url;\n\n return err;\n};\n\n/**\n * Expose `Response`.\n */\n\nrequest.Response = Response;\n\n/**\n * Initialize a new `Request` with the given `method` and `url`.\n *\n * @param {String} method\n * @param {String} url\n * @api public\n */\n\nfunction Request(method, url) {\n var self = this;\n this._query = this._query || [];\n this.method = method;\n this.url = url;\n this.header = {}; // preserves header name case\n this._header = {}; // coerces header names to lowercase\n this.on('end', function(){\n var err = null;\n var res = null;\n\n try {\n res = new Response(self);\n } catch(e) {\n err = new Error('Parser is unable to parse the response');\n err.parse = true;\n err.original = e;\n // issue #675: return the raw response if the response parsing fails\n err.rawResponse = self.xhr && self.xhr.responseText ? self.xhr.responseText : null;\n // issue #876: return the http status code if the response parsing fails\n err.statusCode = self.xhr && self.xhr.status ? self.xhr.status : null;\n return self.callback(err);\n }\n\n self.emit('response', res);\n\n if (err) {\n return self.callback(err, res);\n }\n\n if (res.status >= 200 && res.status < 300) {\n return self.callback(err, res);\n }\n\n var new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n\n self.callback(new_err, res);\n });\n}\n\n/**\n * Mixin `Emitter` and `requestBase`.\n */\n\nEmitter(Request.prototype);\nfor (var key in requestBase) {\n Request.prototype[key] = requestBase[key];\n}\n\n/**\n * Abort the request, and clear potential timeout.\n *\n * @return {Request}\n * @api public\n */\n\nRequest.prototype.abort = function(){\n if (this.aborted) return;\n this.aborted = true;\n this.xhr && this.xhr.abort();\n this.clearTimeout();\n this.emit('abort');\n return this;\n};\n\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function(type){\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n\n/**\n * Set responseType to `val`. Presently valid responseTypes are 'blob' and \n * 'arraybuffer'.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.responseType = function(val){\n this._responseType = val;\n return this;\n};\n\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function(type){\n this.set('Accept', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} pass\n * @param {Object} options with 'type' property 'auto' or 'basic' (default 'basic')\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function(user, pass, options){\n if (!options) {\n options = {\n type: 'basic'\n }\n }\n\n switch (options.type) {\n case 'basic':\n var str = btoa(user + ':' + pass);\n this.set('Authorization', 'Basic ' + str);\n break;\n\n case 'auto':\n this.username = user;\n this.password = pass;\n break;\n }\n return this;\n};\n\n/**\n* Add query-string `val`.\n*\n* Examples:\n*\n* request.get('/shoes')\n* .query('size=10')\n* .query({ color: 'blue' })\n*\n* @param {Object|String} val\n* @return {Request} for chaining\n* @api public\n*/\n\nRequest.prototype.query = function(val){\n if ('string' != typeof val) val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `filename`.\n *\n * ``` js\n * request.post('/upload')\n * .attach(new Blob(['<a id=\"a\"><b id=\"b\">hey!</b></a>'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String} filename\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function(field, file, filename){\n this._getFormData().append(field, file, filename || file.name);\n return this;\n};\n\nRequest.prototype._getFormData = function(){\n if (!this._formData) {\n this._formData = new root.FormData();\n }\n return this._formData;\n};\n\n/**\n * Send `data` as the request body, defaulting the `.type()` to \"json\" when\n * an object is given.\n *\n * Examples:\n *\n * // manual json\n * request.post('/user')\n * .type('json')\n * .send('{\"name\":\"tj\"}')\n * .end(callback)\n *\n * // auto json\n * request.post('/user')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // manual x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send('name=tj')\n * .end(callback)\n *\n * // auto x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // defaults to x-www-form-urlencoded\n * request.post('/user')\n * .send('name=tobi')\n * .send('species=ferret')\n * .end(callback)\n *\n * @param {String|Object} data\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.send = function(data){\n var obj = isObject(data);\n var type = this._header['content-type'];\n\n // merge\n if (obj && isObject(this._data)) {\n for (var key in data) {\n this._data[key] = data[key];\n }\n } else if ('string' == typeof data) {\n if (!type) this.type('form');\n type = this._header['content-type'];\n if ('application/x-www-form-urlencoded' == type) {\n this._data = this._data\n ? this._data + '&' + data\n : data;\n } else {\n this._data = (this._data || '') + data;\n }\n } else {\n this._data = data;\n }\n\n if (!obj || isHost(data)) return this;\n if (!type) this.type('json');\n return this;\n};\n\n/**\n * @deprecated\n */\nResponse.prototype.parse = function serialize(fn){\n if (root.console) {\n console.warn(\"Client-side parse() method has been renamed to serialize(). This method is not compatible with superagent v2.0\");\n }\n this.serialize(fn);\n return this;\n};\n\nResponse.prototype.serialize = function serialize(fn){\n this._parser = fn;\n return this;\n};\n\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function(err, res){\n var fn = this._callback;\n this.clearTimeout();\n fn(err, res);\n};\n\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function(){\n var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n err.crossDomain = true;\n\n err.status = this.status;\n err.method = this.method;\n err.url = this.url;\n\n this.callback(err);\n};\n\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequest.prototype.timeoutError = function(){\n var timeout = this._timeout;\n var err = new Error('timeout of ' + timeout + 'ms exceeded');\n err.timeout = timeout;\n this.callback(err);\n};\n\n/**\n * Enable transmission of cookies with x-domain requests.\n *\n * Note that for this to work the origin must not be\n * using \"Access-Control-Allow-Origin\" with a wildcard,\n * and also must set \"Access-Control-Allow-Credentials\"\n * to \"true\".\n *\n * @api public\n */\n\nRequest.prototype.withCredentials = function(){\n this._withCredentials = true;\n return this;\n};\n\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function(fn){\n var self = this;\n var xhr = this.xhr = request.getXHR();\n var query = this._query.join('&');\n var timeout = this._timeout;\n var data = this._formData || this._data;\n\n // store callback\n this._callback = fn || noop;\n\n // state change\n xhr.onreadystatechange = function(){\n if (4 != xhr.readyState) return;\n\n // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n var status;\n try { status = xhr.status } catch(e) { status = 0; }\n\n if (0 == status) {\n if (self.timedout) return self.timeoutError();\n if (self.aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n };\n\n // progress\n var handleProgress = function(e){\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n }\n e.direction = 'download';\n self.emit('progress', e);\n };\n if (this.hasListeners('progress')) {\n xhr.onprogress = handleProgress;\n }\n try {\n if (xhr.upload && this.hasListeners('progress')) {\n xhr.upload.onprogress = handleProgress;\n }\n } catch(e) {\n // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n\n // timeout\n if (timeout && !this._timer) {\n this._timer = setTimeout(function(){\n self.timedout = true;\n self.abort();\n }, timeout);\n }\n\n // querystring\n if (query) {\n query = request.serializeObject(query);\n this.url += ~this.url.indexOf('?')\n ? '&' + query\n : '?' + query;\n }\n\n // initiate request\n if (this.username && this.password) {\n xhr.open(this.method, this.url, true, this.username, this.password);\n } else {\n xhr.open(this.method, this.url, true);\n }\n\n // CORS\n if (this._withCredentials) xhr.withCredentials = true;\n\n // body\n if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !isHost(data)) {\n // serialize stuff\n var contentType = this._header['content-type'];\n var serialize = this._parser || request.serialize[contentType ? contentType.split(';')[0] : ''];\n if (!serialize && isJSON(contentType)) serialize = request.serialize['application/json'];\n if (serialize) data = serialize(data);\n }\n\n // set header fields\n for (var field in this.header) {\n if (null == this.header[field]) continue;\n xhr.setRequestHeader(field, this.header[field]);\n }\n\n if (this._responseType) {\n xhr.responseType = this._responseType;\n }\n\n // send stuff\n this.emit('request', this);\n\n // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n // We need null here if data is undefined\n xhr.send(typeof data !== 'undefined' ? data : null);\n return this;\n};\n\n\n/**\n * Expose `Request`.\n */\n\nrequest.Request = Request;\n\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.get = function(url, data, fn){\n var req = request('GET', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.head = function(url, data, fn){\n var req = request('HEAD', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * DELETE `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nfunction del(url, fn){\n var req = request('DELETE', url);\n if (fn) req.end(fn);\n return req;\n};\n\nrequest['del'] = del;\nrequest['delete'] = del;\n\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function(url, data, fn){\n var req = request('PATCH', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.post = function(url, data, fn){\n var req = request('POST', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.put = function(url, data, fn){\n var req = request('PUT', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/superagent/lib/client.js?")},"../vlibras-player-webjs/node_modules/superagent/lib/is-object.js":function(module,exports){eval("/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\n\nfunction isObject(obj) {\n return null != obj && 'object' == typeof obj;\n}\n\nmodule.exports = isObject;\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/superagent/lib/is-object.js?")},"../vlibras-player-webjs/node_modules/superagent/lib/request-base.js":function(module,exports,__webpack_require__){eval("/**\n * Module of mixed-in functions shared between node and client code\n */\nvar isObject = __webpack_require__(/*! ./is-object */ \"../vlibras-player-webjs/node_modules/superagent/lib/is-object.js\");\n\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\nexports.clearTimeout = function _clearTimeout(){\n this._timeout = 0;\n clearTimeout(this._timer);\n return this;\n};\n\n/**\n * Force given parser\n *\n * Sets the body parser no matter type.\n *\n * @param {Function}\n * @api public\n */\n\nexports.parse = function parse(fn){\n this._parser = fn;\n return this;\n};\n\n/**\n * Set timeout to `ms`.\n *\n * @param {Number} ms\n * @return {Request} for chaining\n * @api public\n */\n\nexports.timeout = function timeout(ms){\n this._timeout = ms;\n return this;\n};\n\n/**\n * Faux promise support\n *\n * @param {Function} fulfill\n * @param {Function} reject\n * @return {Request}\n */\n\nexports.then = function then(fulfill, reject) {\n return this.end(function(err, res) {\n err ? reject(err) : fulfill(res);\n });\n}\n\n/**\n * Allow for extension\n */\n\nexports.use = function use(fn) {\n fn(this);\n return this;\n}\n\n\n/**\n * Get request header `field`.\n * Case-insensitive.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nexports.get = function(field){\n return this._header[field.toLowerCase()];\n};\n\n/**\n * Get case-insensitive header `field` value.\n * This is a deprecated internal API. Use `.get(field)` instead.\n *\n * (getHeader is no longer used internally by the superagent code base)\n *\n * @param {String} field\n * @return {String}\n * @api private\n * @deprecated\n */\n\nexports.getHeader = exports.get;\n\n/**\n * Set header `field` to `val`, or multiple fields with one object.\n * Case-insensitive.\n *\n * Examples:\n *\n * req.get('/')\n * .set('Accept', 'application/json')\n * .set('X-API-Key', 'foobar')\n * .end(callback);\n *\n * req.get('/')\n * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })\n * .end(callback);\n *\n * @param {String|Object} field\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nexports.set = function(field, val){\n if (isObject(field)) {\n for (var key in field) {\n this.set(key, field[key]);\n }\n return this;\n }\n this._header[field.toLowerCase()] = val;\n this.header[field] = val;\n return this;\n};\n\n/**\n * Remove header `field`.\n * Case-insensitive.\n *\n * Example:\n *\n * req.get('/')\n * .unset('User-Agent')\n * .end(callback);\n *\n * @param {String} field\n */\nexports.unset = function(field){\n delete this._header[field.toLowerCase()];\n delete this.header[field];\n return this;\n};\n\n/**\n * Write the field `name` and `val` for \"multipart/form-data\"\n * request bodies.\n *\n * ``` js\n * request.post('/upload')\n * .field('foo', 'bar')\n * .end(callback);\n * ```\n *\n * @param {String} name\n * @param {String|Blob|File|Buffer|fs.ReadStream} val\n * @return {Request} for chaining\n * @api public\n */\nexports.field = function(name, val) {\n this._getFormData().append(name, val);\n return this;\n};\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/superagent/lib/request-base.js?")},"../vlibras-player-webjs/node_modules/superagent/lib/request.js":function(module,exports){eval("// The node and browser modules expose versions of this with the\n// appropriate constructor function bound as first argument\n/**\n * Issue a request:\n *\n * Examples:\n *\n * request('GET', '/users').end(callback)\n * request('/users').end(callback)\n * request('/users', callback)\n *\n * @param {String} method\n * @param {String|Function} url or callback\n * @return {Request}\n * @api public\n */\n\nfunction request(RequestConstructor, method, url) {\n // callback\n if ('function' == typeof url) {\n return new RequestConstructor('GET', method).end(url);\n }\n\n // url first\n if (2 == arguments.length) {\n return new RequestConstructor('GET', method);\n }\n\n return new RequestConstructor(method, url);\n}\n\nmodule.exports = request;\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/superagent/lib/request.js?")},"../vlibras-player-webjs/node_modules/url-join/lib/url-join.js":function(module,exports,__webpack_require__){eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (name, context, definition) {\n if ( true && module.exports) module.exports = definition();\n else if (true) !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n else {}\n})('urljoin', this, function () {\n\n function normalize (strArray) {\n var resultArray = [];\n\n // If the first part is a plain protocol, we combine it with the next part.\n if (strArray[0].match(/^[^/:]+:\\/*$/) && strArray.length > 1) {\n var first = strArray.shift();\n strArray[0] = first + strArray[0];\n }\n\n // There must be two or three slashes in the file protocol, two slashes in anything else.\n if (strArray[0].match(/^file:\\/\\/\\//)) {\n strArray[0] = strArray[0].replace(/^([^/:]+):\\/*/, '$1:///');\n } else {\n strArray[0] = strArray[0].replace(/^([^/:]+):\\/*/, '$1://');\n }\n\n for (var i = 0; i < strArray.length; i++) {\n var component = strArray[i];\n\n if (typeof component !== 'string') {\n throw new TypeError('Url must be a string. Received ' + component);\n }\n\n if (component === '') { continue; }\n\n if (i > 0) {\n // Removing the starting slashes for each component but the first.\n component = component.replace(/^[\\/]+/, '');\n }\n if (i < strArray.length - 1) {\n // Removing the ending slashes for each component but the last.\n component = component.replace(/[\\/]+$/, '');\n } else {\n // For the last component we will combine multiple slashes to a single one.\n component = component.replace(/[\\/]+$/, '/');\n }\n\n resultArray.push(component);\n\n }\n\n var str = resultArray.join('/');\n // Each input component is now separated by a single slash except the possible first plain protocol part.\n\n // remove trailing slash before parameters or hash\n str = str.replace(/\\/(\\?|&|#[^!])/g, '$1');\n\n // replace ? in parameters with &\n var parts = str.split('?');\n str = parts.shift() + (parts.length > 0 ? '?': '') + parts.join('&');\n\n return str;\n }\n\n return function () {\n var input;\n\n if (typeof arguments[0] === 'object') {\n input = arguments[0];\n } else {\n input = [].slice.call(arguments);\n }\n\n return normalize(input);\n };\n\n});\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/node_modules/url-join/lib/url-join.js?")},"../vlibras-player-webjs/src/GlosaTranslator.js":function(module,exports,__webpack_require__){eval("var request = __webpack_require__(/*! superagent */ \"../vlibras-player-webjs/node_modules/superagent/lib/client.js\");\n\nfunction GlosaTranslator(endpoint) {\n this.endpoint = endpoint;\n}\n\nGlosaTranslator.prototype.translate = function (text, callback) {\n // console.log('Translate: ' + text);\n\n request.post(this.endpoint, { text: text }).end(\n function (err, response) {\n if (err) {\n callback(undefined, err);\n return;\n }\n\n callback(response.text);\n }\n );\n};\n\nmodule.exports = GlosaTranslator;\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/src/GlosaTranslator.js?")},"../vlibras-player-webjs/src/Player.js":function(module,exports,__webpack_require__){eval("var window = __webpack_require__(/*! window */ \"window\");\nvar assign = __webpack_require__(/*! object-assign */ \"../vlibras-player-webjs/node_modules/object-assign/index.js\");\nvar inherits = __webpack_require__(/*! inherits */ \"../vlibras-player-webjs/node_modules/inherits/inherits_browser.js\");\nvar path = __webpack_require__(/*! path */ \"./node_modules/path-browserify/index.js\");\nvar url = __webpack_require__(/*! url-join */ \"../vlibras-player-webjs/node_modules/url-join/lib/url-join.js\");\nvar EventEmitter = __webpack_require__(/*! events */ \"./node_modules/events/events.js\").EventEmitter;\n\nvar config = __webpack_require__(/*! ./config.js */ \"../vlibras-player-webjs/src/config.js\");\nvar PlayerManagerAdapter = __webpack_require__(/*! ./PlayerManagerAdapter.js */ \"../vlibras-player-webjs/src/PlayerManagerAdapter.js\");\nvar GlosaTranslator = __webpack_require__(/*! ./GlosaTranslator.js */ \"../vlibras-player-webjs/src/GlosaTranslator.js\");\nvar globalGlosaLenght = '';\n\nvar document = window.document;\n\nconst STATUSES = {\n idle: 'idle',\n preparing: 'preparing',\n playing: 'playing',\n};\n\nfunction Player(options) {\n this.options = assign({\n translator: config.translatorUrl,\n targetPath: 'target',\n }, options);\n\n this.playerManager = new PlayerManagerAdapter();\n this.translator = new GlosaTranslator(this.options.translator);\n\n this.translated = false;\n this.text = undefined;\n this.gloss = undefined;\n this.loaded = false;\n this.progress = null;\n this.gameContainer = null;\n this.player = null;\n this.status = STATUSES.idle;\n\n this.playerManager.on('load', () => {\n this.loaded = true;\n this.emit('load');\n\n this.playerManager.setBaseUrl(config.dictionaryUrl);\n\n if (this.options.onLoad) {\n this.options.onLoad();\n } else {\n this.play(null, true);\n }\n\n });\n\n this.playerManager.on('progress', (progress) => {\n this.emit('animation:progress', progress);\n });\n\n this.playerManager.on('stateChange', (isPlaying, isPaused, isLoading) => {\n if (isPaused) {\n this.emit('animation:pause');\n } else if (isPlaying && !isPaused) {\n this.emit('animation:play');\n this.changeStatus(STATUSES.playing);\n } else if (!isPlaying && !isLoading) {\n this.emit('animation:end');\n this.changeStatus(STATUSES.idle);\n }\n });\n\n this.playerManager.on('CounterGloss', (counter, glosaLenght) => {\n this.emit('response:glosa', counter, glosaLenght);\n globalGlosaLenght = glosaLenght;\n });\n\n this.playerManager.on('FinishWelcome', (bool) => {\n this.emit('stop:welcome', bool);\n });\n\n\n}\n\ninherits(Player, EventEmitter);\n\nPlayer.prototype.translate = function (text) {\n this.emit('translate:start');\n\n if (this.loaded) {\n this.stop();\n }\n\n this.text = text;\n\n this.translator.translate(text, (gloss, error) => {\n if (error) {\n this.play(text.toUpperCase());\n this.emit('error', 'translation_error');\n return;\n }\n \n // console.log('Translator answer:', gloss);\n this.play(gloss, true);\n this.emit('translate:end');\n });\n};\n\nPlayer.prototype.play = function (glosa, fromTranslation = false) {\n\n this.translated = fromTranslation;\n this.gloss = glosa || this.gloss;\n \n if (this.gloss !== undefined && this.loaded) {\n this.changeStatus(STATUSES.preparing);\n this.playerManager.play(this.gloss);\n }\n};\n\nPlayer.prototype.playWellcome = function () {\n this.playerManager.playWellcome();\n};\n\nPlayer.prototype.continue = function () {\n this.playerManager.play();\n};\n\nPlayer.prototype.repeat = function () {\n this.play();\n};\n\nPlayer.prototype.pause = function () {\n this.playerManager.pause();\n};\n\nPlayer.prototype.stop = function () {\n this.playerManager.stop();\n};\n\nPlayer.prototype.setSpeed = function (speed) {\n this.playerManager.setSpeed(speed);\n};\n\nPlayer.prototype.setPersonalization = function (personalization) {\n this.playerManager.setPersonalization(personalization);\n};\n\nPlayer.prototype.changeAvatar = function (avatarName) {\n this.playerManager.changeAvatar(avatarName);\n};\n\nPlayer.prototype.toggleSubtitle = function () {\n this.playerManager.toggleSubtitle();\n};\n\nPlayer.prototype.setRegion = function (region) {\n this.playerManager.setRegion(region);\n};\n\nPlayer.prototype.load = function (wrapper) {\n this.gameContainer = document.createElement('div');\n this.gameContainer.setAttribute(\"id\", \"gameContainer\");\n this.gameContainer.classList.add('emscripten');\n\n if ('function' == typeof this.options.progress) {\n this.progress = new this.options.progress(wrapper);\n }\n\n wrapper.appendChild(this.gameContainer);\n\n this._initializeTarget();\n};\n\nPlayer.prototype._getTargetScript = function () {\n // console.log('Target Script: ' + url(this.options.targetPath, 'UnityLoader.js'));\n return url(this.options.targetPath, 'UnityLoader.js');\n //return path.join(this.options.targetPath, 'UnityLoader.js');\n};\n\nPlayer.prototype._initializeTarget = function () {\n //const targetSetup = path.join(this.options.targetPath, 'playerweb.json');\n // console.log('Target Setup: ' + url(this.options.targetPath, 'playerweb.json'));\n const targetSetup = url(this.options.targetPath, 'playerweb.json');\n const targetScript = document.createElement('script');\n\n targetScript.src = this._getTargetScript();\n targetScript.onload = () => {\n this.player = UnityLoader.instantiate(\"gameContainer\", targetSetup, {\n compatibilityCheck: (_, accept, deny) => {\n if (UnityLoader.SystemInfo.hasWebGL) {\n // console.log('Seu navegador suporta WEBGL');\n return accept();\n }\n\n this.onError('unsupported');\n alert('Seu navegador não suporta WEBGL');\n console.error('Seu navegador não suporta WEBGL');\n deny();\n },\n });\n\n this.playerManager.setPlayerReference(this.player);\n };\n\n document.body.appendChild(targetScript);\n};\n\nPlayer.prototype.changeStatus = function (status) {\n switch (status) { \n case STATUSES.idle: \n if (this.status === STATUSES.playing) {\n this.status = status;\n this.emit('gloss:end', globalGlosaLenght);\n }\n break;\n\n case STATUSES.preparing:\n this.status = status;\n break;\n\n case STATUSES.playing: \n if (this.status === STATUSES.preparing) {\n this.status = status;\n this.emit('gloss:start');\n }\n break;\n }\n};\n\nmodule.exports = Player;\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/src/Player.js?")},"../vlibras-player-webjs/src/PlayerManagerAdapter.js":function(module,exports,__webpack_require__){eval("var window = __webpack_require__(/*! window */ \"window\");\nvar inherits = __webpack_require__(/*! inherits */ \"../vlibras-player-webjs/node_modules/inherits/inherits_browser.js\");\nvar EventEmitter = __webpack_require__(/*! events */ \"./node_modules/events/events.js\").EventEmitter;\n\nvar GAME_OBJECT = 'PlayerManager';\n\nfunction PlayerManagerAdapter() {\n if (PlayerManagerAdapter.instance) return PlayerManagerAdapter.instance;\n\n this.subtitle = true;\n\n this.on('load', function () {\n this._send('initRandomAnimationsProcess');\n }.bind(this));\n\n PlayerManagerAdapter.instance = this;\n}\n\ninherits(PlayerManagerAdapter, EventEmitter);\n\nPlayerManagerAdapter.prototype.setPlayerReference = function (player) {\n this.player = player;\n};\n\nPlayerManagerAdapter.prototype._send = function (method, params) {\n this.player.SendMessage(GAME_OBJECT, method, params);\n};\n\nPlayerManagerAdapter.prototype.play = function (glosa) {\n if (glosa) {\n this._send('playNow', glosa);\n } else {\n this._send('setPauseState', 0);\n }\n};\n\nPlayerManagerAdapter.prototype.setPersonalization = function (personalization) {\n this.player.SendMessage('Avatar', 'setURL', personalization);\n};\n\nPlayerManagerAdapter.prototype.pause = function () {\n this._send('setPauseState', 1);\n};\n\nPlayerManagerAdapter.prototype.stop = function () {\n this._send('stopAll');\n};\n\nPlayerManagerAdapter.prototype.setSpeed = function (speed) {\n this._send('setSlider', speed);\n};\n\nPlayerManagerAdapter.prototype.toggleSubtitle = function () {\n this.subtitle = !this.subtitle;\n this._send('setSubtitlesState', toInt(this.subtitle));\n};\n\nPlayerManagerAdapter.prototype.setRegion = function (region) {\n this._send('setRegion', region);\n};\n\nPlayerManagerAdapter.prototype.playWellcome = function () {\n this._send('playWellcome');\n};\n\nPlayerManagerAdapter.prototype.changeAvatar = function (avatarName) {\n this._send('Change', avatarName);\n};\n\n\nPlayerManagerAdapter.prototype.setBaseUrl = function (url) {\n this._send('setBaseUrl', url);\n};\n\nwindow.onLoadPlayer = function () {\n PlayerManagerAdapter.instance.emit('load');\n};\n\nwindow.updateProgress = function (progress) {\n PlayerManagerAdapter.instance.emit('progress', progress);\n};\n\nwindow.onPlayingStateChange = function (\n isPlaying, isPaused, isPlayingIntervalAnimation, isLoading, isRepeatable) {\n PlayerManagerAdapter.instance.emit(\n 'stateChange', toBoolean(isPlaying), toBoolean(isPaused), toBoolean(isLoading)\n );\n};\n\nwindow.CounterGloss = function (counter, glosaLenght) {\n PlayerManagerAdapter.instance.emit(\n 'CounterGloss', counter, glosaLenght\n );\n};\n\nwindow.FinishWelcome = function (bool) {\n PlayerManagerAdapter.instance.emit(\n 'FinishWelcome', bool\n );\n};\n\nfunction toInt(boolean) {\n return !boolean ? 0 : 1;\n};\n\nfunction toBoolean(bool) {\n return bool != 'False';\n};\n\nmodule.exports = PlayerManagerAdapter;\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/src/PlayerManagerAdapter.js?")},"../vlibras-player-webjs/src/config.js":function(module,exports){eval("exports.translatorUrl = 'https://traducao2.vlibras.gov.br/translate';\nexports.dictionaryUrl = 'https://dicionario2.vlibras.gov.br/2018.3.1/WEBGL/';\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/src/config.js?")},"../vlibras-player-webjs/src/index.js":function(module,exports,__webpack_require__){eval('var window = __webpack_require__(/*! window */ "window");\nvar Player = __webpack_require__(/*! ./Player.js */ "../vlibras-player-webjs/src/Player.js");\n\nvar VLibras = {\n Player: Player\n};\n\nwindow.VLibras = VLibras;\nmodule.exports = VLibras;\n\n\n//# sourceURL=webpack://VLibras/../vlibras-player-webjs/src/index.js?')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/nouislider/distribute/nouislider.min.css":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "/*! nouislider - 8.5.1 - 2016-04-24 16:00:30 */\\n.noUi-target, .noUi-target * {\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -ms-touch-action: none;\\n touch-action: none;\\n -ms-user-select: none;\\n -moz-user-select: none;\\n user-select: none;\\n -moz-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.noUi-target {\\n position: relative;\\n direction: ltr; }\\n\\n.noUi-base {\\n width: 100%;\\n height: 100%;\\n position: relative;\\n z-index: 1; }\\n\\n.noUi-origin {\\n position: absolute;\\n right: 0;\\n top: 0;\\n left: 0;\\n bottom: 0; }\\n\\n.noUi-handle {\\n position: relative;\\n z-index: 1; }\\n\\n.noUi-stacking .noUi-handle {\\n z-index: 10; }\\n\\n.noUi-state-tap .noUi-origin {\\n -webkit-transition: left .3s,top .3s;\\n transition: left .3s,top .3s; }\\n\\n.noUi-state-drag * {\\n cursor: inherit !important; }\\n\\n.noUi-base, .noUi-handle {\\n -webkit-transform: translate3d(0, 0, 0);\\n transform: translate3d(0, 0, 0); }\\n\\n.noUi-horizontal {\\n height: 18px; }\\n\\n.noUi-horizontal .noUi-handle {\\n width: 34px;\\n height: 28px;\\n left: -17px;\\n top: -6px; }\\n\\n.noUi-vertical {\\n width: 18px; }\\n\\n.noUi-vertical .noUi-handle {\\n width: 28px;\\n height: 34px;\\n left: -6px;\\n top: -17px; }\\n\\n.noUi-background {\\n background: #FAFAFA;\\n box-shadow: inset 0 1px 1px #f0f0f0; }\\n\\n.noUi-connect {\\n background: #3FB8AF;\\n box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);\\n -webkit-transition: background 450ms;\\n transition: background 450ms; }\\n\\n.noUi-origin {\\n border-radius: 2px; }\\n\\n.noUi-target {\\n border-radius: 4px;\\n border: 1px solid #D3D3D3;\\n box-shadow: inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB; }\\n\\n.noUi-target.noUi-connect {\\n box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45), 0 3px 6px -5px #BBB; }\\n\\n.noUi-draggable {\\n cursor: w-resize; }\\n\\n.noUi-vertical .noUi-draggable {\\n cursor: n-resize; }\\n\\n.noUi-handle {\\n border: 1px solid #D9D9D9;\\n border-radius: 3px;\\n background: #FFF;\\n cursor: default;\\n box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB; }\\n\\n.noUi-active {\\n box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB; }\\n\\n.noUi-handle:after, .noUi-handle:before {\\n content: \\"\\";\\n display: block;\\n position: absolute;\\n height: 14px;\\n width: 1px;\\n background: #E8E7E6;\\n left: 14px;\\n top: 6px; }\\n\\n.noUi-handle:after {\\n left: 17px; }\\n\\n.noUi-vertical .noUi-handle:after, .noUi-vertical .noUi-handle:before {\\n width: 14px;\\n height: 1px;\\n left: 6px;\\n top: 14px; }\\n\\n.noUi-vertical .noUi-handle:after {\\n top: 17px; }\\n\\n[disabled] .noUi-connect, [disabled].noUi-connect {\\n background: #B8B8B8; }\\n\\n[disabled] .noUi-handle, [disabled].noUi-origin {\\n cursor: not-allowed; }\\n\\n.noUi-pips, .noUi-pips * {\\n -moz-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.noUi-pips {\\n position: absolute;\\n color: #999; }\\n\\n.noUi-value {\\n position: absolute;\\n text-align: center; }\\n\\n.noUi-value-sub {\\n color: #ccc;\\n font-size: 10px; }\\n\\n.noUi-marker {\\n position: absolute;\\n background: #CCC; }\\n\\n.noUi-marker-large, .noUi-marker-sub {\\n background: #AAA; }\\n\\n.noUi-pips-horizontal {\\n padding: 10px 0;\\n height: 80px;\\n top: 100%;\\n left: 0;\\n width: 100%; }\\n\\n.noUi-value-horizontal {\\n -webkit-transform: translate3d(-50%, 50%, 0);\\n transform: translate3d(-50%, 50%, 0); }\\n\\n.noUi-marker-horizontal.noUi-marker {\\n margin-left: -1px;\\n width: 2px;\\n height: 5px; }\\n\\n.noUi-marker-horizontal.noUi-marker-sub {\\n height: 10px; }\\n\\n.noUi-marker-horizontal.noUi-marker-large {\\n height: 15px; }\\n\\n.noUi-pips-vertical {\\n padding: 0 10px;\\n height: 100%;\\n top: 0;\\n left: 100%; }\\n\\n.noUi-value-vertical {\\n -webkit-transform: translate3d(0, -50%, 0);\\n transform: translate3d(0, -50%, 0);\\n padding-left: 25px; }\\n\\n.noUi-marker-vertical.noUi-marker {\\n width: 5px;\\n height: 2px;\\n margin-top: -1px; }\\n\\n.noUi-marker-vertical.noUi-marker-sub {\\n width: 10px; }\\n\\n.noUi-marker-vertical.noUi-marker-large {\\n width: 15px; }\\n\\n.noUi-tooltip {\\n display: block;\\n position: absolute;\\n border: 1px solid #D9D9D9;\\n border-radius: 3px;\\n background: #fff;\\n padding: 5px;\\n text-align: center; }\\n\\n.noUi-horizontal .noUi-handle-lower .noUi-tooltip {\\n top: -32px; }\\n\\n.noUi-horizontal .noUi-handle-upper .noUi-tooltip {\\n bottom: -32px; }\\n\\n.noUi-vertical .noUi-handle-lower .noUi-tooltip {\\n left: 120%; }\\n\\n.noUi-vertical .noUi-handle-upper .noUi-tooltip {\\n right: 120%; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./node_modules/nouislider/distribute/nouislider.min.css?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Box/box.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] .vpw-box {\\n width: calc(100%);\\n height: 40px;\\n font-size: 1em;\\n color: #000;\\n opacity: 1;\\n position: relative;\\n background-color: #003F86;\\n color: #ffffff;\\n background-size: 100% 100%;\\n z-index: 2; }\\n [vp] .vpw-box .vpw-mes {\\n position: absolute;\\n left: 50%;\\n top: 50%;\\n transform: translate(-50%, -50%);\\n font-size: 15px !important;\\n font-family: \'Open Sans\', sans-serif; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Box/box.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/ChangeAvatar/change-avatar.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] [vp-change-avatar] {\\n display: flex;\\n flex-direction: row;\\n justify-content: flex-end;\\n position: absolute;\\n z-index: 2;\\n visibility: hidden;\\n max-width: 100%;\\n opacity: 1;\\n transition: max-width 0s, visibility 0s, opacity 0.4s;\\n left: 13px;\\n top: 50px; }\\n [vp] [vp-change-avatar] .vp-button-change-avatar {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n z-index: 1;\\n cursor: pointer;\\n background: rgba(0, 0, 0, 0.3);\\n border-radius: 50px;\\n width: 32px;\\n height: 32px;\\n box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.45); }\\n [vp] [vp-change-avatar] .vp-button-change-avatar .change-avatar-icon {\\n width: 22px;\\n margin-right: 1px;\\n filter: brightness(0) invert(1);\\n display: none; }\\n [vp] [vp-change-avatar] .vp-button-change-avatar .active {\\n display: block; }\\n [vp] [vp-change-avatar].vp-disabled {\\n visibility: visible; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/ChangeAvatar/change-avatar.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Controls/controls.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] .vpw-controls {\\n display: -webkit-box;\\n display: -webkit-flex;\\n display: -moz-flex;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-align: center;\\n -ms-flex-align: center;\\n -webkit-align-items: center;\\n -moz-align-items: center;\\n align-items: center;\\n width: calc(100% - 10px);\\n height: 60px;\\n background-size: 100% 100%;\\n background: white;\\n width: 100%; }\\n [vp] .vpw-controls .vpw-controls-subtitles, [vp] .vpw-controls .vpw-controls-slider {\\n margin: 0 9px;\\n cursor: pointer; }\\n [vp] .vpw-controls .vpw-controls-play .vpw-component-play {\\n display: block;\\n margin: 0 8.5px;\\n cursor: pointer; }\\n [vp] .vpw-controls .vpw-controls-play .vpw-component-pause {\\n display: none; }\\n [vp] .vpw-controls .vpw-controls-play .vpw-component-restart {\\n display: none; }\\n [vp] .vpw-controls.vpw-playing .vpw-controls-play .vpw-component-play {\\n display: none; }\\n [vp] .vpw-controls.vpw-playing .vpw-controls-play .vpw-component-pause {\\n display: block;\\n margin: 0 11px;\\n cursor: pointer; }\\n [vp] .vpw-controls.vpw-playing .vpw-controls-play .vpw-component-restart {\\n display: none; }\\n [vp] .vpw-controls.vpw-stopped .vpw-controls-play .vpw-component-play {\\n display: none; }\\n [vp] .vpw-controls.vpw-stopped .vpw-controls-play .vpw-component-pause {\\n display: none; }\\n [vp] .vpw-controls.vpw-stopped .vpw-controls-play .vpw-component-restart {\\n display: block;\\n margin: 0 2px;\\n cursor: pointer; }\\n [vp] .vpw-controls.vpw-subtitles .vpw-controls-subtitles .vpw-legenda-habilitar {\\n display: block; }\\n [vp] .vpw-controls.vpw-subtitles .vpw-controls-subtitles .vpw-legenda-desabilitar {\\n display: none; }\\n [vp] .vpw-controls .vpw-controls-subtitles .vpw-legenda-habilitar {\\n display: none; }\\n [vp] .vpw-controls .vpw-controls-subtitles .vpw-legenda-desabilitar {\\n display: block; }\\n\\n@-webkit-keyframes spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n /* Chrome, Opera 15+, Safari 3.1+ */\\n -ms-transform: rotate(0deg);\\n /* IE 9 */\\n transform: rotate(0deg);\\n /* Firefox 16+, IE 10+, Opera */ }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n /* Chrome, Opera 15+, Safari 3.1+ */\\n -ms-transform: rotate(360deg);\\n /* IE 9 */\\n transform: rotate(360deg);\\n /* Firefox 16+, IE 10+, Opera */ } }\\n\\n@keyframes spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n /* Chrome, Opera 15+, Safari 3.1+ */\\n -ms-transform: rotate(0deg);\\n /* IE 9 */\\n transform: rotate(0deg);\\n /* Firefox 16+, IE 10+, Opera */ }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n /* Chrome, Opera 15+, Safari 3.1+ */\\n -ms-transform: rotate(360deg);\\n /* IE 9 */\\n transform: rotate(360deg);\\n /* Firefox 16+, IE 10+, Opera */ } }\\n\\n[vp] .vpw-speed-default {\\n border: 1px solid grey;\\n border-radius: 3px 3px 3px 3px;\\n padding: 3px 4px;\\n height: 100%;\\n color: grey;\\n font-size: 15px;\\n cursor: pointer;\\n font-family: \'Open Sans\', sans-serif; }\\n\\n[vp] .vpw-img-default {\\n display: none;\\n padding: 2px;\\n padding-left: 2.2px;\\n cursor: pointer; }\\n\\n[vp] .vpw-border-default {\\n display: none;\\n border: 1px solid #999999;\\n border-radius: 0px 0px 3px 3px; }\\n\\n[vp] .vpw-elem-speed {\\n display: none;\\n position: absolute;\\n bottom: 22px;\\n cursor: pointer; }\\n\\n[vp] .vpw-block-speed {\\n list-style-type: none;\\n background-color: #003F86;\\n color: white;\\n font-size: 10px;\\n width: 25.5px;\\n text-align: center; }\\n\\n[vp] .vpw-block-speed:hover {\\n color: #67C8D5; }\\n\\n[vp] .vpw-controls-speed {\\n position: relative;\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -khtml-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none; }\\n\\n[vp] .vpw-controls-speed-number {\\n width: 25.5px;\\n padding-left: 0px;\\n margin-top: 0px;\\n margin-bottom: 0px;\\n font-family: \'Open Sans\', sans-serif; }\\n\\n[vp] .vpw-block-speed-3 {\\n border-radius: 5px 5px 0px 0px; }\\n\\n[vp] .vpw-controls-slider {\\n -webkit-appearance: none;\\n width: 50%;\\n margin: 2.5px 0;\\n height: 7px;\\n background-color: transparent; }\\n [vp] .vpw-controls-slider .vpw-slider {\\n width: 100%;\\n height: 7px; }\\n [vp] .vpw-controls-slider .vpw-slider.noUi-target {\\n box-shadow: none;\\n border: 0; }\\n [vp] .vpw-controls-slider .vpw-slider.noUi-connect {\\n background-color: #003F86; }\\n [vp] .vpw-controls-slider .vpw-slider .noUi-background {\\n background-color: #B8B8B8;\\n box-shadow: none; }\\n [vp] .vpw-controls-slider .vpw-slider .noUi-origin {\\n border-radius: 1px; }\\n [vp] .vpw-controls-slider .vpw-slider .noUi-handle {\\n width: 0px;\\n height: 0px;\\n left: -8px;\\n top: -8px;\\n border-radius: 50%; }\\n [vp] .vpw-controls-slider .vpw-slider .noUi-handle:after, [vp] .vpw-controls-slider .vpw-slider .noUi-handle:before {\\n display: none; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Controls/controls.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Dictionary/dictionary.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] .vpw-dictionary {\\n display: none;\\n position: relative;\\n width: 100%;\\n height: calc(100% - 40px);\\n min-width: 300px;\\n min-height: 300px;\\n font-family: \'Open Sans\', sans-serif;\\n background-color: white; }\\n [vp] .vpw-dictionary.active {\\n display: block; }\\n [vp] .vpw-dictionary .vpw-panel {\\n position: relative;\\n height: 114px;\\n background-color: white; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-bar {\\n text-align: center;\\n padding-top: 20px; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-search {\\n position: absolute;\\n width: 80%;\\n left: 50%;\\n transform: translateX(-50%);\\n margin-top: 20px; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-search input {\\n position: absolute;\\n width: 100%;\\n left: 50%;\\n transform: translateX(-50%);\\n padding: 10px 10px 10px 10px;\\n border-radius: 6px;\\n border: 1px solid #DDD;\\n outline: none; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-search input:focus {\\n border: 1px solid #00ddf9; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-search .vpw-icon {\\n display: block;\\n position: relative; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-search .vpw-icon img {\\n position: absolute;\\n height: 24px;\\n width: 24px;\\n top: 6px;\\n right: 7px; }\\n [vp] .vpw-dictionary .vpw-dict-container {\\n position: absolute;\\n width: 80%;\\n height: 68%;\\n left: 50%;\\n transform: translateX(-50%); }\\n [vp] .vpw-dictionary .vpw-dict-container ul {\\n height: 100%;\\n margin: 0;\\n padding: 0;\\n overflow-y: scroll;\\n list-style-type: none; }\\n [vp] .vpw-dictionary .vpw-dict-container ul::-webkit-scrollbar {\\n width: 8px; }\\n [vp] .vpw-dictionary .vpw-dict-container ul::-webkit-scrollbar-track {\\n background-color: #DDD; }\\n [vp] .vpw-dictionary .vpw-dict-container ul::-webkit-scrollbar-thumb {\\n background-color: #BCBCBC; }\\n [vp] .vpw-dictionary .vpw-dict-container ul li {\\n font-size: 14px;\\n cursor: pointer; }\\n [vp] .vpw-dictionary .vpw-dict-container ul li:hover {\\n background-color: #EAEAEA;\\n -webkit-transition: brackground-color 0.3s;\\n transition: brackground-color 0.4s; }\\n [vp] .vpw-dictionary .vpw-dict-container ul li.margin {\\n height: 114px; }\\n [vp] .vpw-dictionary .vpw-dict-container ul li:not(.margin) {\\n padding: 9px 10px 9px 10px; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Dictionary/dictionary.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/InfoScreen/info-screen.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] .vpw-info-screen {\\n position: relative;\\n padding: 1em;\\n width: 100%;\\n height: calc(100% - 40px);\\n z-index: 4;\\n background-color: white;\\n color: black;\\n font-family: \\"Open Sans\\", sans-serif;\\n text-align: center;\\n align-items: center;\\n -webkit-align-items: center;\\n font-size: 11px;\\n display: none;\\n -webkit-box-sizing: border-box;\\n -moz-box-sizing: border-box;\\n box-sizing: border-box; }\\n [vp] .vpw-info-screen.active {\\n display: -webkit-flex;\\n display: flex; }\\n [vp] .vpw-info-screen .vpw-arrow {\\n flex-grow: 1;\\n -webkit-flex-grow: 1;\\n visibility: hidden; }\\n [vp] .vpw-info-screen .vpw-arrow.active {\\n visibility: visible; }\\n [vp] .vpw-info-screen #vpw-info-tabset {\\n position: relative;\\n top: 0;\\n flex-grow: 4;\\n display: -webkit-flex;\\n display: flex;\\n flex-direction: column;\\n -webkit-flex-direction: column;\\n padding: 0;\\n height: 100%;\\n width: 100%;\\n align-items: center;\\n -webkit-align-items: center; }\\n [vp] .vpw-info-screen #vpw-info-main {\\n max-width: 600px;\\n font-family: \\"Open Sans\\", sans-serif;\\n flex-direction: column;\\n -webkit-flex-direction: column; }\\n [vp] .vpw-info-screen #vpw-info-main.active {\\n display: flex;\\n align-content: center;\\n justify-content: center;\\n align-items: center; }\\n [vp] .vpw-info-screen #vpw-info-logo img {\\n height: 90px; }\\n [vp] .vpw-info-screen #vpw-info-realizadores {\\n height: 100%;\\n min-width: 230px;\\n width: 50%;\\n flex-direction: column;\\n align-items: stretch;\\n -webkit-flex-direction: column;\\n -webkit-align-items: stretch; }\\n [vp] .vpw-info-screen #vpw-info-realizadores #vpw-realiz {\\n font-size: 20px; }\\n [vp] .vpw-info-screen #vpw-info-realizadores.active {\\n display: flex;\\n align-content: center;\\n justify-content: center;\\n align-items: center; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-siz {\\n max-width: 55% !important; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo {\\n margin-top: -2px;\\n margin: 0.5em 0.35em;\\n min-width: 10%;\\n max-width: 29%;\\n max-height: 15vh; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo .vpw-short-ver {\\n max-width: none;\\n min-height: 16px; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo-group {\\n display: flex;\\n padding: 0.5% 2%;\\n flex-direction: row;\\n flex-wrap: wrap;\\n align-items: center;\\n justify-content: space-around;\\n -webkit-flex-direction: row;\\n -webkit-flex-wrap: wrap;\\n -webkit-align-items: center;\\n -webkit-justify-content: space-around;\\n line-height: 1.1; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo-group .p-separator {\\n margin-top: 10px;\\n margin-bottom: 10px;\\n width: 118px; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo-group .format-text {\\n margin: 0px; }\\n [vp] .vpw-info-screen .vpw-info-tab {\\n flex-grow: 3;\\n -webkit-flex-grow: 3;\\n display: none; }\\n [vp] .vpw-info-screen .vpw-info-tab .vpw-info-tab-label {\\n position: absolute;\\n top: 0%;\\n font-size: 16px;\\n font-family: \\"Open Sans\\", sans-serif; }\\n [vp] .vpw-info-screen .vpw-info-tab .vpw-info-tab-label-two {\\n font-size: 16px;\\n font-family: \\"Open Sans\\", sans-serif;\\n margin-top: 10px; }\\n [vp] .vpw-info-screen .vpw-info-tab.active {\\n display: block; }\\n [vp] .vpw-info-screen #vpw-info-meta p {\\n margin: 0.5em 0 0; }\\n [vp] .vpw-info-screen #vpw-info-meta a {\\n text-decoration: none; }\\n [vp] .vpw-info-screen .vpw-info-bullet {\\n background-size: 15px 15px;\\n display: inline-block;\\n width: 15px;\\n height: 15px;\\n content: \\"\\"; }\\n [vp] .vpw-info-screen #vpw-info-tab-bullets {\\n width: 100%;\\n height: auto;\\n position: absolute;\\n bottom: 0%;\\n text-align: center;\\n flex-grow: 1;\\n -webkit-flex-grow: 1;\\n cursor: pointer; }\\n [vp] .vpw-info-screen .vpw-close-btn {\\n position: absolute;\\n top: 8px;\\n right: 6px;\\n z-index: 4; }\\n [vp] .vpw-info-screen .vpw-close-btn img.icon {\\n width: 34px;\\n height: 34px; }\\n\\n@media only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {\\n [vp] #vpw-info-realizadores .vpw-logo {\\n margin: 0.5em 0.35em;\\n min-width: 10%;\\n max-width: 50%;\\n max-height: 18vh; } }\\n\\n@media only screen and (max-height: 360px) {\\n [vp] #vpw-info-main {\\n font-size: 0.84em; } }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/InfoScreen/info-screen.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/MessageBox/message-box.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] .vpw-message-box {\\n top: -5em;\\n left: 0;\\n width: 100%;\\n padding: 1em;\\n font-size: 13px;\\n word-wrap: break-word;\\n color: #000;\\n opacity: 0;\\n -moz-transition: all .15s ease .15s;\\n -webkit-transition: all .15s ease .15s;\\n transition: all .15s ease .15s;\\n -moz-box-shadow: 0px 2px 5px #888888;\\n -webkit-box-shadow: 0px 2px 5px #888888;\\n box-shadow: 0px 2px 5px #888888;\\n text-align: center;\\n font-family: \'Open Sans\', sans-serif; }\\n [vp] .vpw-message-box.active {\\n top: 0;\\n opacity: 1; }\\n [vp] .vpw-message-box.info {\\n background-color: #003F86;\\n color: white; }\\n [vp] .vpw-message-box.warning {\\n background-color: #003F86;\\n color: white; }\\n [vp] .vpw-message-box.success {\\n background-color: #003F86;\\n color: white; }\\n [vp] .vpw-message-box.default {\\n background-color: #003F86;\\n color: white; }\\n [vp] .vpw-message-box a {\\n color: inherit; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/MessageBox/message-box.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/RateBox/rate-box.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] [vp-rate-box] {\\n display: flex;\\n flex-direction: row;\\n justify-content: flex-end;\\n position: absolute;\\n width: 100%;\\n bottom: 68px;\\n overflow: hidden;\\n z-index: 2; }\\n [vp] [vp-rate-box] .vp-container {\\n display: flex;\\n flex-direction: column;\\n width: 100%;\\n padding-top: 10px;\\n padding-bottom: 10px;\\n background-color: rgba(255, 255, 255, 0.96);\\n max-height: 0;\\n transform: translateY(69px);\\n transition: max-height 0s, transform 0.4s linear 0.05s; }\\n [vp] [vp-rate-box] .vp-container .vp-text {\\n text-align: center;\\n font-size: 14px;\\n font-weight: bold;\\n color: #003f86; }\\n [vp] [vp-rate-box] .vp-container .vp-buttons {\\n display: flex;\\n flex-direction: row;\\n justify-content: center;\\n margin-top: 10px; }\\n [vp] [vp-rate-box] .vp-container .vp-buttons .vp-button {\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n font-size: 13px;\\n font-weight: bold;\\n color: #545454;\\n cursor: pointer; }\\n [vp] [vp-rate-box] .vp-container .vp-buttons .vp-button:not(:last-child) {\\n margin-right: 22px; }\\n [vp] [vp-rate-box] .vp-container .vp-buttons .vp-button img {\\n height: 22px;\\n margin-right: 6px; }\\n [vp] [vp-rate-box].vp-enabled {\\n z-index: 4; }\\n [vp] [vp-rate-box].vp-enabled .vp-container {\\n max-height: 100%;\\n transform: translateY(0);\\n transition: transform 0.4s, max-height 0s linear 0.4s; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateBox/rate-box.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/RateButton/rate-button.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] [vp-rate-button] {\\n display: flex;\\n flex-direction: row;\\n justify-content: flex-end;\\n position: absolute;\\n width: 100%;\\n bottom: 60px;\\n z-index: 2;\\n visibility: hidden;\\n max-width: 0;\\n opacity: 0;\\n transition: max-width 0s, visibility 0s, opacity 0.4s; }\\n [vp] [vp-rate-button] .vp-button {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n margin-right: 26px;\\n margin-bottom: 20px;\\n z-index: 1;\\n cursor: pointer; }\\n [vp] [vp-rate-button] .vp-button img {\\n width: 43px;\\n margin-right: -13px;\\n margin-bottom: -13px;\\n max-width: none; }\\n [vp] [vp-rate-button].vp-enabled {\\n z-index: 2;\\n visibility: visible;\\n max-width: 100%;\\n opacity: 1; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateButton/rate-button.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Settings/settings.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "@charset \\"UTF-8\\";\\n[vp] .vpw-vlibras-span {\\n font-family: \\"Open Sans\\", sans-serif; }\\n\\n[vp] .vpw-settings {\\n position: relative;\\n width: 100%;\\n height: calc(100% - 40px); }\\n [vp] .vpw-settings .vpw-content {\\n position: relative;\\n top: 0;\\n left: 0;\\n width: 100%;\\n height: 100%;\\n z-index: 6;\\n background-color: #003f86;\\n color: white; }\\n [vp] .vpw-settings .vpw-content .vpw-flag {\\n position: absolute;\\n height: 24px;\\n margin-top: -12px;\\n margin-left: 4px;\\n border: none;\\n border-radius: 5px; }\\n [vp] .vpw-settings .vpw-content > .vpw-bar {\\n position: absolute;\\n width: 100%;\\n height: 54px; }\\n [vp] .vpw-settings .vpw-content > .vpw-bar .vpw-title {\\n position: absolute;\\n top: 16px;\\n left: 50px;\\n color: #6481b8;\\n font-size: 12px;\\n font-weight: bold; }\\n [vp] .vpw-settings .vpw-content > ul {\\n list-style-type: none;\\n margin: 0;\\n padding: 0 11%;\\n font-family: \\"Open Sans\\", sans-serif; }\\n [vp] .vpw-settings .vpw-content > ul li {\\n position: relative;\\n padding: 19px 0;\\n color: white;\\n border-bottom: 0; }\\n [vp] .vpw-settings .vpw-content > ul li .vpw-name {\\n position: absolute;\\n left: 0px;\\n margin-top: -10px;\\n font-size: 14px; }\\n [vp] .vpw-settings .vpw-content > ul li .vpw-percent {\\n float: right;\\n margin-top: -7px;\\n font-size: 11px;\\n color: rgba(255, 255, 255, 0.6);\\n width: 30px;\\n margin-right: -6px;\\n margin-left: -4px;\\n text-align: center; }\\n [vp] .vpw-settings .vpw-content > ul li .arrow-right-opac,\\n [vp] .vpw-settings .vpw-content > ul li .arrow-left-opac {\\n margin-top: -13px;\\n width: 25px;\\n float: right; }\\n [vp] .vpw-settings .vpw-content > ul li:hover {\\n color: #67c8d5; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-position {\\n display: none; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-opacity {\\n display: none; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-localism {\\n padding: 24px 0; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-localism .vpw-flag {\\n right: 27px;\\n height: 24px; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-localism .vpw-abbrev {\\n position: absolute;\\n right: 0px;\\n margin-top: -9px;\\n font-size: 14px;\\n font-weight: bold; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-localism .vpw-arrow {\\n position: absolute;\\n right: 16px;\\n height: 13px;\\n margin-top: -6px; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism {\\n position: absolute;\\n top: 0;\\n left: 0;\\n width: 100%;\\n height: 100%;\\n z-index: 7;\\n background-color: white;\\n border: 1px solid rgba(0, 0, 0, 0.2);\\n border-radius: 2px; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism:not(.active) {\\n visibility: hidden;\\n opacity: 0;\\n -webkit-transition: visibility 0s, opacity 0.3s;\\n transition: visibility 0s, opacity 0.3s; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism.active {\\n visibility: visible;\\n opacity: 1;\\n -webkit-transition: visibility 0s, opacity 0.3s;\\n transition: visibility 0s, opacity 0.3s; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-name {\\n position: absolute;\\n margin-top: -7px;\\n margin-left: 9px;\\n font-size: 14px;\\n font-weight: bold; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-national {\\n position: relative;\\n width: calc(33.33%);\\n margin-top: 6px;\\n padding-top: 16px;\\n display: flex;\\n flex-direction: row;\\n justify-content: center;\\n align-items: center; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-national .vpw-name {\\n color: black;\\n position: relative; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-national .vpw-flag {\\n position: relative; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n box-sizing: content-box;\\n padding: 0px 8px 0px 8px;\\n left: 0;\\n top: 50%;\\n transform: translateY(-50%); }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions > .vpw-container-regions {\\n display: inline-block;\\n position: relative;\\n width: 33.33%;\\n margin-bottom: 1px;\\n padding: 6px 0;\\n margin-top: 1%;\\n cursor: pointer;\\n opacity: 0.5;\\n -webkit-transition: opacity 0.3s;\\n transition: opacity 0.3s; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions > .vpw-container-regions.selected, [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions > .vpw-container-regions:hover {\\n opacity: 1;\\n -webkit-transition: opacity 0.3s;\\n transition: opacity 0.3s; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions > .vpw-container-regions .vpw-cont {\\n display: flex;\\n flex-direction: row;\\n justify-content: center;\\n align-items: center; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions > .vpw-container-regions > .vpw-cont .vpw-flag {\\n position: relative;\\n margin: 0; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions > .vpw-container-regions > .vpw-cont .vpw-name {\\n position: relative;\\n margin: 0 10px 0;\\n color: grey; }\\n [vp] .vpw-settings .vpw-content .vpw-vlibras-logo {\\n position: absolute;\\n left: 50%;\\n transform: translateX(-50%);\\n bottom: 0;\\n z-index: 6; }\\n [vp] .vpw-settings .vpw-content .vpw-vlibras-logo .vpw-vlibras-span {\\n left: 50%;\\n transform: translateX(-50%);\\n position: absolute;\\n bottom: 15%;\\n align-items: center;\\n font-size: 14px; }\\n [vp] .vpw-settings .vpw-content .vpw-vlibras-logo .vpw-logo {\\n width: 100%; }\\n [vp] .vpw-settings > .vpw-wall {\\n position: absolute;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n z-index: 5; }\\n [vp] .vpw-settings.active {\\n display: block; }\\n [vp] .vpw-settings.active .vpw-content {\\n left: 0;\\n -webkit-transition: left 0.3s;\\n transition: left 0.3s; }\\n [vp] .vpw-settings.active .vpw-wall {\\n visibility: visible; }\\n [vp] .vpw-settings:not(.active) {\\n display: none; }\\n [vp] .vpw-settings:not(.active) .vpw-content {\\n left: 0;\\n visibility: hidden;\\n -webkit-transition: left 0.3s;\\n transition: left 0.3s; }\\n [vp] .vpw-settings:not(.active) .vpw-wall {\\n visibility: hidden; }\\n [vp] .vpw-settings .vpw-clickable {\\n cursor: pointer; }\\n [vp] .vpw-settings .vpw-clickable:not(:hover) {\\n background-color: inherit;\\n -webkit-transition: 0.12s background-color;\\n transition: 0.12s background-color; }\\n [vp] .vpw-settings .vpw-clickable:hover {\\n -webkit-transition: 0.2s background-color;\\n transition: 0.2s background-color; }\\n\\n[vp] .vpw-controls-dictionary:not(.vpw-loading-dictionary):before {\\n content: \\"Dicionário\\";\\n font-size: 14px;\\n position: absolute;\\n margin-top: -11px; }\\n\\n[vp] .vpw-controls-dictionary.vpw-loading-dictionary {\\n min-width: 22px;\\n min-height: 22px;\\n margin-top: -17px;\\n position: absolute;\\n border-left: 3px solid rgba(255, 255, 255, 0.2);\\n border-top: 3px solid rgba(255, 255, 255, 0.6);\\n border-bottom: 3px solid white;\\n border-right: 3px solid rgba(255, 255, 255, 0.6);\\n border-style: inset;\\n border-radius: 50%;\\n -webkit-animation: spin 1.5s linear infinite;\\n animation: spin 0.8s linear infinite; }\\n\\n/*@media (min-width: 600px) {\\n .vpw-settings {\\n &.active {\\n visibility: visible;\\n left: 0;\\n\\n -webkit-transition: visibility 0s, left 0.3s;\\n transition: visibility 0s, left 0.3s;\\n }\\n\\n &:not(.active) {\\n visibility: hidden;\\n left: -220px;\\n\\n -webkit-transition: visibility 0.3s, left 0.3s;\\n transition: visibility 0.3s, left 0.3s;\\n }\\n\\n .vpw-content {\\n left: -220px;\\n width: 220px;\\n\\n\\n .vpw-bar {\\n height: 66px;\\n\\n\\n .vpw-btn-back {\\n width: 30px;\\n height: 30px;\\n margin-top: 18px;\\n margin-left: 18px;\\n }\\n\\n .vpw-title {\\n top: 25px;\\n left: 60px;\\n font-size: 1em;\\n }\\n }\\n }\\n }\\n}*/\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Settings/settings.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Settings/switch.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] {\\n /* Hide default HTML checkbox */\\n /* The slider */\\n /* Rounded sliders */ }\\n [vp] .vpw-switch {\\n position: relative;\\n display: inline-block;\\n width: 60px;\\n height: 21px;\\n float: right;\\n margin-top: -12px; }\\n [vp] .vpw-switch input {\\n opacity: 0;\\n width: 0;\\n height: 0; }\\n [vp] .vpw-slider-check {\\n position: absolute;\\n cursor: pointer;\\n top: 0;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n background-color: #2196F3; }\\n [vp] .vpw-slider-check:before {\\n position: absolute;\\n content: \\"\\";\\n height: 26px;\\n width: 26px;\\n left: 4px;\\n bottom: 4px;\\n background-color: white; }\\n [vp] input:checked + .vpw-slider-check {\\n background-color: #2196F3; }\\n [vp] input:focus + .vpw-slider-check {\\n box-shadow: 0 0 1px #ccc; }\\n [vp] input:checked + .vpw-slider-check:before {\\n -webkit-transform: translateX(26px);\\n -ms-transform: translateX(26px);\\n transform: translateX(26px); }\\n [vp] .vpw-slider-check.vpw-round {\\n border-radius: 34px; }\\n [vp] .vpw-slider-check.vpw-round:before {\\n border-radius: 50%;\\n top: -3px; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Settings/switch.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SettingsBtn/settings-btn.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] .vpw-settings-btn {\\n position: absolute;\\n z-index: 1;\\n height: 100%;\\n width: 100%;\\n cursor: pointer; }\\n [vp] .vpw-settings-btn .vpw-settings-btn-menu {\\n display: none;\\n position: absolute;\\n top: 50%;\\n transform: translateY(-50%);\\n width: 20px;\\n height: 18px;\\n left: 20px; }\\n [vp] .vpw-settings-btn .vpw-settings-btn-menu.active {\\n display: block; }\\n [vp] .vpw-settings-btn .vpw-settings-btn-close {\\n display: none;\\n position: absolute;\\n top: 50%;\\n transform: translateY(-50%);\\n right: 5px; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsBtn/settings-btn.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SettingsCloseBtn/settings-close-btn.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] .vpw-btn-close {\\n position: absolute;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n display: none;\\n z-index: 7;\\n cursor: pointer; }\\n [vp] .vpw-btn-close.active {\\n display: block; }\\n [vp] .vpw-btn-close .vpw-img {\\n position: absolute;\\n top: 50%;\\n transform: translateY(-50%);\\n width: 37.92px;\\n height: 37.92px;\\n right: 5px; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsCloseBtn/settings-close-btn.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SuggestionButton/suggestion-button.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] [vp-suggestion-button] {\\n display: flex;\\n flex-direction: row;\\n justify-content: flex-end;\\n position: absolute;\\n width: 100%;\\n bottom: 68px;\\n z-index: 2; }\\n [vp] [vp-suggestion-button] .vp-bounderies {\\n width: 100%;\\n overflow: hidden; }\\n [vp] [vp-suggestion-button] .vp-bounderies .vp-container {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n padding-top: 10px;\\n padding-bottom: 10px;\\n background-color: rgba(255, 255, 255, 0.96);\\n z-index: 1;\\n transform: translateY(69px);\\n transition: transform 0.4s;\\n transition-delay: 0.4s; }\\n [vp] [vp-suggestion-button] .vp-bounderies .vp-container .vp-open-screen-button {\\n margin-bottom: 16px; }\\n [vp] [vp-suggestion-button] .vp-button-container {\\n position: absolute;\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n bottom: 0;\\n width: 100%;\\n padding-bottom: 10px;\\n z-index: 1;\\n opacity: 0;\\n transition: opacity 0.4s; }\\n [vp] [vp-suggestion-button] .vp-button-container .vp-close-button {\\n position: absolute;\\n bottom: -13px; }\\n [vp] [vp-suggestion-button].vp-enabled {\\n z-index: 4; }\\n [vp] [vp-suggestion-button].vp-enabled .vp-container {\\n transform: translateY(0);\\n transition-delay: 0s; }\\n [vp] [vp-suggestion-button].vp-enabled .vp-button-container {\\n opacity: 1;\\n transition-delay: 0.4s; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionButton/suggestion-button.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SuggestionScreen/suggestion-screen.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] [vp-suggestion-screen] {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n position: absolute;\\n top: 45px;\\n right: 0;\\n bottom: 0;\\n width: 100%;\\n padding: 16px;\\n background-color: white;\\n z-index: 3;\\n left: 100%;\\n transition: left 0.4s ease-in;\\n /* Track */\\n /* Handle */\\n /* Handle on hover */ }\\n [vp] [vp-suggestion-screen] ::-webkit-scrollbar {\\n width: 10px; }\\n [vp] [vp-suggestion-screen] ::-webkit-scrollbar-track {\\n background: #d1d1d1f1 !important; }\\n [vp] [vp-suggestion-screen] ::-webkit-scrollbar-thumb {\\n background: #8b8b99; }\\n [vp] [vp-suggestion-screen] ::-webkit-scrollbar-thumb:hover {\\n background: #555; }\\n [vp] [vp-suggestion-screen] .vp-dropdown-suggest {\\n display: none;\\n font-family: \\"Open Sans\\", sans-serif; }\\n [vp] [vp-suggestion-screen] .vp-dropdown-suggest.vp-enabled {\\n display: block;\\n position: absolute;\\n height: 54px;\\n width: 120px;\\n overflow: hidden auto;\\n color: white;\\n background: #003f86;\\n border-radius: 3px;\\n font-weight: 600;\\n list-style-type: none;\\n padding: 0px; }\\n [vp] [vp-suggestion-screen] .vp-dropdown-item {\\n cursor: pointer;\\n font-size: 12px;\\n margin: 5px 0px -4px 6px; }\\n [vp] [vp-suggestion-screen] .vp-dropdown-item:hover {\\n color: #80b6f3; }\\n [vp] [vp-suggestion-screen] .vp-title {\\n text-align: center;\\n font-size: 14px;\\n font-weight: bold;\\n color: #003f86; }\\n [vp] [vp-suggestion-screen] .vp-text {\\n display: none;\\n flex: 1;\\n align-self: stretch;\\n margin-top: 10px;\\n margin-left: 20px;\\n margin-right: 20px;\\n padding: 8px 10px 6px;\\n font-size: 12px;\\n border: none;\\n border-radius: 12px;\\n background-color: #efeff2; }\\n [vp] [vp-suggestion-screen] .vp-close-button {\\n margin-top: 8px; }\\n [vp] [vp-suggestion-screen].vp-enabled {\\n left: 0;\\n transition: left 0.4s ease-out 0.8s; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionScreen/suggestion-screen.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/scss/styles.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vp] [vp-blue-button] {\\n padding: 7px;\\n border-radius: 6px;\\n font-size: 12px;\\n text-align: center;\\n font-weight: bold;\\n color: white;\\n background-color: #003f86;\\n cursor: pointer;\\n margin: 10px 5px;\\n align-self: center; }\\n\\n[vp] [vp-visualize-signal-button] {\\n padding: 7px;\\n border-radius: 6px;\\n font-size: 12px;\\n text-align: center;\\n font-weight: bold;\\n color: #003f86;\\n background: white;\\n border: 1px solid #003f86;\\n cursor: pointer;\\n margin: 10px 5px;\\n align-self: center; }\\n\\n[vp] [vp-sugestion-area] {\\n display: flex; }\\n\\n[vp] [vp-close-button] {\\n display: flex;\\n flex-direction: row;\\n justify-content: center;\\n align-items: center;\\n width: 28px;\\n height: 28px;\\n border-radius: 14px;\\n background-color: #b3b3b3;\\n cursor: pointer; }\\n [vp] [vp-close-button] img {\\n width: 100%; }\\n\\n#gameContainer {\\n background: #ebebeb !important; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./plugin/scss/styles.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/components/AccessButton/styles.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vw] [vw-access-button] {\\n display: none;\\n width: 140px;\\n text-align: center;\\n cursor: pointer;\\n margin: 0px 0px 0px -100px;\\n max-width: none; }\\n [vw] [vw-access-button].active {\\n display: block; }\\n [vw] [vw-access-button] .access-button {\\n width: 27%;\\n float: right; }\\n [vw] [vw-access-button] span {\\n font-size: 13px;\\n color: #004088; }\\n [vw] [vw-access-button] .access-button:hover + .pop-up {\\n width: 68%; }\\n [vw] [vw-access-button] .pop-up {\\n float: right;\\n width: 0%;\\n margin-right: 6px;\\n -webkit-transition: width 2s;\\n /* For Safari 3.1 to 6.0 */\\n transition: width 0.5s; }\\n [vw] [vw-access-button] .pop-up.left {\\n float: left !important;\\n margin-right: 0px; }\\n [vw] [vw-access-button] .access-button.left {\\n float: left !important;\\n margin-right: 6px; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./widget/src/components/AccessButton/styles.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/components/PluginWrapper/styles.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, ".vw-links {\\n top: -100px;\\n left: -100px;\\n position: absolute; }\\n .vw-links .vw-tooltip {\\n position: relative;\\n opacity: 1; }\\n .vw-links .vw-tooltip__item {\\n text-align: center;\\n position: absolute;\\n min-width: 123px;\\n padding: 8px;\\n visibility: hidden;\\n opacity: 0;\\n background: white;\\n transition: all 0.25s cubic-bezier(0, 0, 0.2, 1);\\n color: #484848;\\n border: 1px solid #cecece;\\n border-radius: 3px;\\n font-weight: 500;\\n box-shadow: 0 2px 1px #bcbcbc;\\n z-index: 4; }\\n .vw-links .vw-tooltip__item:after {\\n content: \\"\\";\\n display: block;\\n position: absolute;\\n width: 0;\\n height: 0;\\n border-style: solid; }\\n .vw-links .vw-tooltip__initiator {\\n cursor: pointer;\\n z-index: 5; }\\n .vw-links .vw-tooltip .vw-tooltip__item {\\n top: calc(100% + 1em);\\n left: 50%;\\n transform: translate3d(-50%, -15px, 0); }\\n .vw-links .vw-tooltip .vw-tooltip__item:after {\\n top: -0.5em;\\n left: 50%;\\n transform: translate3d(-50%, 0, 0);\\n border-width: 0 0.5em 0.5em 0.5em;\\n border-color: transparent transparent white transparent;\\n -webkit-filter: drop-shadow(1px 2px 1px #bcbcbc);\\n filter: drop-shadow(1px -1px 1px #bcbcbc); }\\n .vw-links .vw-tooltip.active > .vw-tooltip__item {\\n transform: translate3d(-50%, 0, 0);\\n visibility: visible;\\n opacity: 1; }\\n\\n[vw].maximize [vw-plugin-wrapper] {\\n width: 100%;\\n height: 100% !important;\\n max-height: initial !important; }\\n\\n[vw].left [vw-plugin-wrapper] {\\n float: left; }\\n\\n[vw] [vw-plugin-wrapper] {\\n display: none;\\n width: 300px;\\n height: 100%;\\n float: right;\\n overflow: hidden;\\n background: white;\\n -moz-border-radius: 20px;\\n -webkit-border-radius: 20px;\\n -webkit-box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.15);\\n -moz-box-shadow: 0px 0px 9px 0px rgba(121, 76, 76, 0.15);\\n box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.15); }\\n [vw] [vw-plugin-wrapper].active {\\n display: -webkit-flex;\\n display: flex;\\n flex-direction: column;\\n -webkit-flex-direction: column;\\n height: 450px;\\n max-width: 100%;\\n overflow: hidden;\\n min-height: 100%; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./widget/src/components/PluginWrapper/styles.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/scss/reset.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "[vw] {\\n /* HTML5 display-role reset for older browsers */ }\\n [vw] html, [vw] body, [vw] div, [vw] span, [vw] applet, [vw] object, [vw] iframe,\\n [vw] h1, [vw] h2, [vw] h3, [vw] h4, [vw] h5, [vw] h6, [vw] p, [vw] blockquote, [vw] pre,\\n [vw] a, [vw] abbr, [vw] acronym, [vw] address, [vw] big, [vw] cite, [vw] code,\\n [vw] del, [vw] dfn, [vw] em, [vw] img, [vw] ins, [vw] kbd, [vw] q, [vw] s, [vw] samp,\\n [vw] small, [vw] strike, [vw] strong, [vw] sub, [vw] sup, [vw] tt, [vw] var,\\n [vw] b, [vw] u, [vw] i, [vw] center,\\n [vw] dl, [vw] dt, [vw] dd, [vw] ol, [vw] ul, [vw] li,\\n [vw] fieldset, [vw] form, [vw] label, [vw] legend,\\n [vw] table, [vw] caption, [vw] tbody, [vw] tfoot, [vw] thead, [vw] tr, [vw] th, [vw] td,\\n [vw] article, [vw] aside, [vw] canvas, [vw] details, [vw] embed,\\n [vw] figure, [vw] figcaption, [vw] footer, [vw] header, [vw] hgroup,\\n [vw] menu, [vw] nav, [vw] output, [vw] ruby, [vw] section, [vw] summary,\\n [vw] time, [vw] mark, [vw] audio, [vw] video {\\n margin: 0;\\n padding: 0;\\n border: 0;\\n font-size: 100%;\\n font: inherit;\\n vertical-align: baseline;\\n display: block; }\\n [vw] article, [vw] aside, [vw] details, [vw] figcaption, [vw] figure,\\n [vw] footer, [vw] header, [vw] hgroup, [vw] menu, [vw] nav, [vw] section {\\n display: block; }\\n [vw] img {\\n width: unset; }\\n [vw] body {\\n line-height: 1; }\\n [vw] ol, [vw] ul {\\n list-style: none; }\\n [vw] blockquote, [vw] q {\\n quotes: none; }\\n [vw] blockquote:before, [vw] blockquote:after,\\n [vw] q:before, [vw] q:after {\\n content: \'\';\\n content: none; }\\n [vw] table {\\n border-collapse: collapse;\\n border-spacing: 0; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./widget/src/scss/reset.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/scss/styles.scss":function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);\n// Module\nexports.push([module.i, "@media (max-width: 450px) {\\n div[vw] canvas {\\n min-height: unset !important;\\n min-width: unset !important;\\n -webkit-filter: blur(0px);\\n -moz-filter: blur(0px);\\n -ms-filter: blur(0px);\\n -o-filter: blur(0px);\\n filter: blur(0px);\\n min-height: calc(0.35 * 680px) !important;\\n min-width: calc(0.35 * 420px) !important; }\\n div[vw] [vw-plugin-wrapper].active {\\n height: 358px !important;\\n width: 210px !important; }\\n #gameContainer {\\n display: flex !important;\\n justify-content: center !important;\\n top: -75px !important;\\n left: -90px !important;\\n width: 100% !important;\\n height: 70% !important; }\\n [vp] [vp-controls] {\\n left: 36% !important;\\n bottom: 20% !important;\\n background: white; }\\n [vp] .vpw-controls-slider {\\n width: 27% !important; }\\n [vp] .vpw-box .vpw-mes {\\n left: 36% !important;\\n font-size: 12px !important; }\\n [vp] .vpw-settings-btn .vpw-settings-btn-close,\\n [vp] .vpw-btn-close .vpw-img {\\n right: 100px; }\\n [vp] [vp-rate-box].vp-enabled .vp-container {\\n margin-right: 70px;\\n margin-bottom: 80px; }\\n [vp] [vp-rate-button] .vp-button {\\n margin-right: 110px;\\n margin-bottom: 130px; }\\n [vp] [vp-rate-button] .vp-button img {\\n width: 32px;\\n margin-bottom: -37px;\\n margin-right: -14px; }\\n [vp] .vpw-message-box {\\n font-size: 0.7em; }\\n [vp] .vpw-message-box .vpw-message {\\n margin-left: 10px;\\n margin-right: 93px;\\n margin-bottom: 3px; }\\n [vp] .vpw-settings .vpw-content .vpw-vlibras-logo {\\n left: 39%;\\n bottom: 125px; }\\n [vp] .vpw-settings .vpw-content > ul {\\n margin-left: -20px; }\\n [vp] .vpw-settings .vpw-content > ul li .vpw-name {\\n font-size: 12px; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-localism .vpw-flag {\\n right: 88px;\\n height: 24px; }\\n [vp] .vpw-switch {\\n width: 48px;\\n height: 15px;\\n margin-top: -10px;\\n right: 64px; }\\n [vp] .vpw-slider-check.vpw-round:before {\\n top: -3px; }\\n [vp] .vpw-slider-check:before {\\n height: 21px;\\n width: 20px;\\n left: -20;\\n bottom: 4px; }\\n [vp] .vpw-settings .vpw-content .vpw-vlibras-logo .vpw-logo {\\n width: 51%;\\n margin-left: 32px; }\\n [vp] .vpw-settings .vpw-content .vpw-vlibras-logo .vpw-vlibras-span {\\n left: 44%;\\n bottom: 5%; }\\n [vp] .vpw-settings .vpw-content .vpw-vlibras-logo {\\n left: 39%;\\n transform: translateX(-50%);\\n bottom: 125px; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-localism .vpw-abbrev {\\n right: 65px; }\\n [vp] .vpw-controls-dictionary:not(.vpw-loading-dictionary):before {\\n font-size: 12px; }\\n [vp] .vpw-info-screen #vpw-info-tab-bullets {\\n right: 47px;\\n bottom: 100px; }\\n [vp] .vpw-info-screen .vpw-arrow-right.active {\\n right: 94px;\\n position: absolute;\\n top: 137px;\\n z-index: 4; }\\n [vp] .vpw-info-screen .vpw-arrow-left.active {\\n right: initial;\\n position: absolute;\\n top: 137px;\\n z-index: 4; }\\n [vp] .vpw-info-screen #vpw-info-main.active {\\n font-size: 0.7125em;\\n margin-right: 99px;\\n margin-bottom: 136px; }\\n [vp] .vpw-info-screen .vpw-info-tab .vpw-info-tab-label {\\n margin-top: -8px;\\n font-size: 14px; }\\n [vp] .vpw-info-screen .vpw-info-tab .vpw-info-tab-label-two {\\n font-size: 14px;\\n margin-top: 6px; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo.ufpb {\\n max-width: 20%; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo-group.text {\\n display: block; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo-group.logo1 {\\n max-width: 70%; }\\n [vp] .vpw-info-screen #vpw-info-realizadores .vpw-logo-group.logo2 {\\n max-width: 86%; }\\n [vp] .vpw-info-screen #vpw-info-realizadores.active {\\n font-size: 0.8125em;\\n margin-right: 81px;\\n margin-bottom: 113px; }\\n [vp] .vpw-settings .vpw-content .vpw-flag {\\n height: 18px; }\\n [vp] .vpw-settings\\n.vpw-content\\n> .vpw-localism\\n.vpw-regions\\n> .vpw-container-regions {\\n margin-top: -1%;\\n margin-bottom: -2px; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism {\\n width: 71%; }\\n [vp] .vpw-settings .vpw-content > .vpw-localism .vpw-regions {\\n left: -3px !important; }\\n [vp] .vpw-settings .vpw-content > ul .vpw-opacity {\\n margin-right: 56px; }\\n [vp] .vpw-dictionary .vpw-dict-container {\\n width: 64%;\\n height: 44%;\\n left: 44%; }\\n [vp] .vpw-bar .vpw-title {\\n margin-right: 40px; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-search input {\\n width: 73%;\\n left: 39%; }\\n [vp] .vpw-dictionary .vpw-panel .vpw-search .vpw-icon img {\\n right: 70px; }\\n [vp] [vp-dictionary] {\\n right: 18px !important; }\\n [vp] .vpw-dictionary .vpw-dict-container ul li:not(.margin) {\\n padding: 5px; }\\n [vp] [vp-suggestion-button].vp-enabled {\\n right: 40px;\\n bottom: 150px !important; }\\n [vp] [vp-suggestion-screen] {\\n width: 72%;\\n height: 60%;\\n top: 41px; }\\n [vp] [vp-change-avatar] {\\n left: 9px;\\n top: 265px; }\\n [vp] [vp-change-avatar] .vp-button-change-avatar {\\n width: 30px;\\n height: 30px; }\\n [vp] [vp-change-avatar] .vp-button-change-avatar .change-avatar-female {\\n width: 15px; }\\n [vp] [vp-change-avatar] .vp-button-change-avatar .change-avatar-male {\\n width: 15px; } }\\n\\ndiv[vw] {\\n position: fixed;\\n max-width: 95vw;\\n right: 0;\\n top: 60%;\\n margin-top: -32vh;\\n z-index: 99999999;\\n display: none;\\n font-family: Arial;\\n color: #000;\\n line-height: 1.3; }\\n div[vw].enabled {\\n display: block; }\\n div[vw].active {\\n margin-top: -285px; }\\n div[vw].maximize {\\n top: 6vh;\\n left: 6vh;\\n right: 6vh;\\n bottom: 6vh;\\n max-width: initial;\\n margin-top: 0; }\\n div[vw].left {\\n left: 0;\\n right: initial; }\\n div[vw] #gameContainer {\\n position: absolute !important;\\n top: -25px;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n margin: auto !important;\\n min-height: calc(0.7 * 450px);\\n min-width: calc(0.9 * 300px);\\n width: 100%;\\n height: 80%;\\n overflow: hidden;\\n -moz-border-radius: 10px;\\n -webkit-border-radius: 10px;\\n border-radius: 0px;\\n background: none !important; }\\n div[vw] #gameContainer canvas {\\n min-height: calc(0.7 * 450px);\\n min-width: calc(0.9 * 300px);\\n height: 100%;\\n width: 100%;\\n -webkit-filter: blur(0px);\\n -moz-filter: blur(0px);\\n -ms-filter: blur(0px);\\n -o-filter: blur(0px);\\n filter: blur(0px); }\\n div[vw] [vp] {\\n position: relative;\\n height: 100%;\\n width: 100%;\\n min-width: 300px;\\n min-height: 450px;\\n z-index: 1;\\n overflow: hidden; }\\n div[vw] [vp] [vp-message-box] {\\n position: absolute;\\n z-index: 5; }\\n div[vw] [vp] [vp-info-screen] {\\n z-index: 3; }\\n div[vw] [vp] [vp-info-screen] #info-text {\\n font-size: 1em !important; }\\n div[vw] [vp] [vp-info-screen] #info-realizadores {\\n font-size: 11px !important; }\\n div[vw] [vp] [vp-controls] {\\n position: absolute;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n left: 50%;\\n transform: translateX(-50%);\\n bottom: 0%;\\n max-width: 900px;\\n z-index: 2; }\\n div[vw] [vp] [vp-settings-btn] {\\n z-index: 2; }\\n div[vw] [vp] [vp-dictionary] {\\n z-index: 8; }\\n div[vw] [vp] [vp-rate-box] {\\n bottom: 58px; }\\n div[vw] [vp] [vp-suggestion-button].vp-enabled,\\n div[vw] [vp] [vp-suggestion-button] {\\n bottom: 58px; }\\n div[vw] [vp] [vp-suggestion-screen] {\\n top: 41px; }\\n\\n.vw-text:hover {\\n background-color: rgba(0, 63, 134, 0.2);\\n color: #000;\\n cursor: pointer; }\\n\\n.vw-text-active {\\n background-color: rgba(30, 63, 134, 0.2);\\n color: #000; }\\n", ""]);\n\n\n//# sourceURL=webpack://VLibras/./widget/src/scss/styles.scss?./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js')},"./node_modules/css-loader/dist/runtime/api.js":function(module,exports,__webpack_require__){"use strict";eval('\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return "@media ".concat(item[2], "{").concat(content, "}");\n }\n\n return content;\n }).join(\'\');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === \'string\') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \'\']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = modules[_i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = "(".concat(item[2], ") and (").concat(mediaQuery, ")");\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || \'\'; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === \'function\') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return "/*# sourceURL=".concat(cssMapping.sourceRoot).concat(source, " */");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\'\\n\');\n }\n\n return [content].join(\'\\n\');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);\n return "/*# ".concat(data, " */");\n}\n\n//# sourceURL=webpack://VLibras/./node_modules/css-loader/dist/runtime/api.js?')},"./node_modules/events/events.js":function(module,exports,__webpack_require__){"use strict";eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction $getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return $getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = $getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n ReflectApply(this.listener, this.target, args);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\n\n//# sourceURL=webpack://VLibras/./node_modules/events/events.js?")},"./node_modules/hasharray/index.js":function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__(/*! ./src/HashArray.js */ "./node_modules/hasharray/src/HashArray.js");\n\n//# sourceURL=webpack://VLibras/./node_modules/hasharray/index.js?')},"./node_modules/hasharray/src/HashArray.js":function(module,exports,__webpack_require__){eval("/*===========================================================================*\\\n * Requires\n\\*===========================================================================*/\nvar JClass = __webpack_require__(/*! jclass */ \"./node_modules/jclass/index.js\");\n\n/*===========================================================================*\\\n * HashArray\n\\*===========================================================================*/\nvar HashArray = JClass._extend({\n //-----------------------------------\n // Constructor\n //-----------------------------------\n init: function(keyFields, callback, options) {\n keyFields = keyFields instanceof Array ? keyFields : [keyFields];\n\n this._map = {};\n this._list = [];\n this.callback = callback;\n\n this.keyFields = keyFields;\n\n this.isHashArray = true;\n \n this.options = options || {\n ignoreDuplicates: false\n };\n\n if (callback) {\n callback('construct');\n }\n },\n //-----------------------------------\n // add()\n //-----------------------------------\n addOne: function (obj) {\n var needsDupCheck = false;\n for (var key in this.keyFields) {\n key = this.keyFields[key];\n var inst = this.objectAt(obj, key);\n if (inst) {\n if (this.has(inst)) {\n if (this.options.ignoreDuplicates)\n return;\n if (this._map[inst].indexOf(obj) != -1) {\n // Cannot add the same item twice\n needsDupCheck = true;\n continue;\n }\n this._map[inst].push(obj);\n }\n else this._map[inst] = [obj];\n }\n }\n\n if (!needsDupCheck || this._list.indexOf(obj) == -1)\n this._list.push(obj);\n },\n add: function() {\n for (var i = 0; i < arguments.length; i++) {\n this.addOne(arguments[i]);\n }\n\n if (this.callback) {\n this.callback('add', Array.prototype.slice.call(arguments, 0));\n }\n \n return this;\n },\n addAll: function (arr) {\n if (arr.length < 100)\n this.add.apply(this, arr);\n else {\n for (var i = 0; i < arr.length; i++)\n this.add(arr[i]);\n }\n \n return this;\n },\n addMap: function(key, obj) {\n this._map[key] = obj;\n if (this.callback) {\n this.callback('addMap', {\n key: key,\n obj: obj\n });\n }\n \n return this;\n },\n //-----------------------------------\n // Intersection, union, etc.\n //-----------------------------------\n /**\n * Returns a new HashArray that contains the intersection between this (A) and the hasharray passed in (B). Returns A ^ B.\n */\n intersection: function (other) {\n var self = this;\n\n if (!other || !other.isHashArray)\n throw Error('Cannot HashArray.intersection() on a non-hasharray object. You passed in: ', other);\n\n var ret = this.clone(null, true),\n allItems = this.clone(null, true).addAll(this.all.concat(other.all));\n\n allItems.all.forEach(function (item) {\n if (self.collides(item) && other.collides(item))\n ret.add(item);\n });\n\n return ret;\n },\n /**\n * Returns a new HashArray that contains the complement (difference) between this hash array (A) and the hasharray passed in (B). Returns A - B.\n */\n complement: function (other) {\n var self = this;\n\n if (!other || !other.isHashArray)\n throw Error('Cannot HashArray.complement() on a non-hasharray object. You passed in: ', other);\n\n var ret = this.clone(null, true);\n\n this.all.forEach(function (item) {\n if (!other.collides(item))\n ret.add(item);\n });\n\n return ret;\n },\n //-----------------------------------\n // Retrieval\n //-----------------------------------\n get: function(key) {\n return (!(this._map[key] instanceof Array) || this._map[key].length != 1) ? this._map[key] : this._map[key][0];\n },\n getAll: function(keys) {\n keys = keys instanceof Array ? keys : [keys];\n\n if (keys[0] == '*')\n return this.all;\n\n var res = new HashArray(this.keyFields);\n for (var key in keys)\n res.add.apply(res, this.getAsArray(keys[key]));\n\n return res.all;\n },\n getAsArray: function(key) {\n return this._map[key] || [];\n },\n getUniqueRandomIntegers: function (count, min, max) {\n var res = [], map = {};\n\n count = Math.min(Math.max(max - min, 1), count);\n \n while (res.length < count)\n {\n var r = Math.floor(min + (Math.random() * (max + 1)));\n if (map[r]) continue;\n map[r] = true;\n res.push(r);\n }\n\n return res;\n },\n sample: function (count, keys) {\n // http://en.wikipedia.org/wiki/Image_(mathematics)\n var image = this.all,\n ixs = {},\n res = [];\n\n if (keys)\n image = this.getAll(keys);\n\n var rand = this.getUniqueRandomIntegers(count, 0, image.length - 1);\n\n for (var i = 0; i < rand.length; i++)\n res.push(image[rand[i]]);\n\n return res;\n },\n //-----------------------------------\n // Peeking\n //-----------------------------------\n has: function(key) {\n return this._map.hasOwnProperty(key);\n },\n collides: function (item) {\n for (var k in this.keyFields)\n if (this.has(this.objectAt(item, this.keyFields[k])))\n return true;\n \n return false;\n },\n hasMultiple: function(key) {\n return this._map[key] instanceof Array;\n },\n //-----------------------------------\n // Removal\n //-----------------------------------\n removeByKey: function() {\n var removed = [];\n for (var i = 0; i < arguments.length; i++) {\n var key = arguments[i];\n var items = this._map[key].concat();\n if (items) {\n removed = removed.concat(items);\n for (var j in items) {\n var item = items[j];\n for (var ix in this.keyFields) {\n var key2 = this.objectAt(item, this.keyFields[ix]);\n if (key2 && this.has(key2)) {\n var ix = this._map[key2].indexOf(item);\n if (ix != -1) {\n this._map[key2].splice(ix, 1);\n }\n\n if (this._map[key2].length == 0)\n delete this._map[key2];\n }\n }\n\n this._list.splice(this._list.indexOf(item), 1);\n }\n }\n delete this._map[key];\n }\n\n if (this.callback) {\n this.callback('removeByKey', removed);\n }\n \n return this;\n },\n remove: function() {\n for (var i = 0; i < arguments.length; i++) {\n var item = arguments[i];\n for (var ix in this.keyFields) {\n var key = this.objectAt(item, this.keyFields[ix]);\n if (key) {\n var ix = this._map[key].indexOf(item);\n if (ix != -1)\n this._map[key].splice(ix, 1);\n else\n throw new Error('HashArray: attempting to remove an object that was never added!' + key);\n\n if (this._map[key].length == 0)\n delete this._map[key];\n }\n }\n\n var ix = this._list.indexOf(item);\n\n if (ix != -1)\n this._list.splice(ix, 1);\n else\n throw new Error('HashArray: attempting to remove an object that was never added!' + key);\n }\n\n if (this.callback) {\n this.callback('remove', arguments);\n }\n \n return this;\n },\n removeAll: function() {\n var old = this._list.concat();\n this._map = {};\n this._list = [];\n\n if (this.callback) {\n this.callback('remove', old);\n }\n \n return this;\n },\n //-----------------------------------\n // Utility\n //-----------------------------------\n objectAt: function(obj, path) {\n if (typeof path === 'string') {\n return obj[path];\n }\n\n var dup = path.concat();\n // else assume array.\n while (dup.length && obj) {\n obj = obj[dup.shift()];\n }\n\n return obj;\n },\n //-----------------------------------\n // Iteration\n //-----------------------------------\n forEach: function(keys, callback) {\n keys = keys instanceof Array ? keys : [keys];\n\n var objs = this.getAll(keys);\n\n objs.forEach(callback);\n \n return this;\n },\n forEachDeep: function(keys, key, callback) {\n keys = keys instanceof Array ? keys : [keys];\n\n var self = this,\n objs = this.getAll(keys);\n\n objs.forEach(function (item) {\n callback(self.objectAt(item, key), item);\n });\n \n return this;\n },\n //-----------------------------------\n // Cloning\n //-----------------------------------\n clone: function(callback, ignoreItems) {\n var n = new HashArray(this.keyFields.concat(), callback ? callback : this.callback);\n if (!ignoreItems)\n n.add.apply(n, this.all.concat());\n return n;\n },\n //-----------------------------------\n // Mathematical\n //-----------------------------------\n sum: function(keys, key, weightKey) {\n var self = this,\n ret = 0;\n this.forEachDeep(keys, key, function (value, item) {\n if (weightKey !== undefined)\n value *= self.objectAt(item, weightKey);\n\n ret += value;\n });\n return ret;\n },\n average: function(keys, key, weightKey) {\n var ret = 0,\n tot = 0,\n weightsTotal = 0,\n self = this;\n\n if (weightKey !== undefined)\n this.forEachDeep(keys, weightKey, function (value) {\n weightsTotal += value;\n })\n\n this.forEachDeep(keys, key, function (value, item) {\n if (weightKey !== undefined)\n value *= (self.objectAt(item, weightKey) / weightsTotal);\n\n ret += value;\n tot++;\n });\n\n return weightKey !== undefined ? ret : ret / tot;\n },\n //-----------------------------------\n // Filtering\n //-----------------------------------\n filter: function (keys, callbackOrKey) {\n var self = this;\n \n var callback = (typeof(callbackOrKey) == 'function') ? callbackOrKey : defaultCallback;\n\n var ha = new HashArray(this.keyFields);\n ha.addAll(this.getAll(keys).filter(callback));\n return ha;\n \n function defaultCallback(item) {\n var val = self.objectAt(item, callbackOrKey);\n return val !== undefined && val !== false;\n }\n }\n});\n\n//-----------------------------------\n// Operators\n//-----------------------------------\nObject.defineProperty(HashArray.prototype, 'all', {\n get: function () {\n return this._list;\n }\n});\n\nObject.defineProperty(HashArray.prototype, 'map', {\n get: function () {\n return this._map;\n }\n});\n\nmodule.exports = HashArray;\n\n//-----------------------------------\n// Browser\n//-----------------------------------\nif (typeof window !== 'undefined')\n window.HashArray = HashArray;\n\n//# sourceURL=webpack://VLibras/./node_modules/hasharray/src/HashArray.js?")},"./node_modules/inherits/inherits_browser.js":function(module,exports){eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n//# sourceURL=webpack://VLibras/./node_modules/inherits/inherits_browser.js?")},"./node_modules/jclass/index.js":function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * jclass v1.1.9\n * https://github.com/riga/jclass\n *\n * Marcel Rieger, 2015\n * MIT licensed, http://www.opensource.org/licenses/mit-license\n */\n\n(function(factory) {\n\n /**\n * Make jclass available in any context.\n */\n\n if (true) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n } else {}\n\n})(function() {\n\n /**\n * Helper functions.\n */\n\n /**\n * Checks whether a passed object is a function.\n *\n * @param obj - The object to check.\n * @returns {boolean}\n */\n var isFn = function(obj) {\n return obj instanceof Function;\n };\n\n /**\n * Extends a target object by one or more source objects with shallow key comparisons. Note that\n * the extension is done in-place.\n *\n * @param {object} target - The target object to extend.\n * @param {...object} source - Source objects.\n * @returns {object} The extended object.\n */\n var extend = function(target) {\n var sources = Array.prototype.slice.call(arguments, 1);\n\n // loop through all sources\n for (var i in sources) {\n var source = sources[i];\n\n // object check\n if (typeof(source) != "object") {\n continue;\n }\n\n // loop through all source attributes\n for (var key in source) {\n target[key] = source[key];\n }\n }\n\n return target;\n };\n\n\n /**\n * Default options.\n */\n\n var defaultOptions = {\n // internal object for indicating that class objects don\'t have a class object themselves,\n // may not be used by users\n _isClassObject: false\n };\n\n\n /**\n * Flags.\n */\n\n // flag to distinguish between prototype and class instantiation \n var initializing = false;\n\n\n /**\n * Base class definition.\n */\n\n // empty BaseClass implementation\n var BaseClass = function(){};\n\n // add the _subClasses entry\n BaseClass._subClasses = [];\n\n // empty init method\n BaseClass.prototype.init = function(){};\n\n\n /**\n * Extend mechanism. Returns a derived class.\n *\n * @param {object} instanceMembers - Members that will be owned by instances.\n * @param {object} classMembers - Members that will be owned by the class itself.\n * @returns {JClass}\n */\n BaseClass._extend = function(instanceMembers, classMembers, options) {\n\n // default arguments\n if (instanceMembers === undefined) {\n instanceMembers = {};\n }\n if (classMembers === undefined) {\n classMembers = {};\n }\n if (options === undefined) {\n options = {};\n }\n\n // mixin default options\n options = extend({}, defaultOptions, options);\n\n\n // sub class dummy constructor\n var JClass = function() {\n // nothing happens here when we are initializing\n if (initializing) {\n return;\n }\n\n // store a reference to the class itself\n this._class = JClass;\n\n // all construction is actually done in the init method\n if (this.init instanceof Function) {\n this.init.apply(this, arguments);\n }\n };\n\n\n // alias for readability\n var SuperClass = this;\n\n // create an instance of the super class via new\n // the flag sandwich prevents a call to the init method\n initializing = true;\n var prototype = new SuperClass();\n initializing = false;\n\n // get the prototype of the super class\n var superPrototype = SuperClass.prototype;\n\n // the instance of the super class is our new prototype\n JClass.prototype = prototype;\n\n // enforce the constructor to be what we expect\n // calls to the constructor will invoke the init method (see above)\n JClass.prototype.constructor = JClass;\n\n // store a reference to the super class\n JClass._superClass = SuperClass;\n\n // store references to all extending classes\n JClass._subClasses = [];\n SuperClass._subClasses.push(JClass);\n\n // make this class extendable as well\n JClass._extend = SuperClass._extend;\n\n\n // _extends returns true if the class itself extended "target"\n // in any hierarchy, e.g. every class extends "JClass" itself\n JClass._extends = function(target) {\n // this function operates recursive, so stop when the super class is our BaseClass\n if (this._superClass == BaseClass) {\n return false;\n }\n\n // success case\n if (target == this._superClass || target == BaseClass) {\n return true;\n }\n\n // continue with the next super class\n return this._superClass._extends(target);\n };\n\n\n // propagate instance members directly to the created protoype,\n // the member is either a normal member or a descriptor\n for (var key in instanceMembers) {\n var property = Object.getOwnPropertyDescriptor(instanceMembers, key);\n var member = property.value;\n\n // descriptor flag set?\n if (member !== null && typeof(member) == "object" && member.descriptor) {\n Object.defineProperty(prototype, key, member);\n\n // getter/setter syntax\n } else if (!("value" in property) && ("set" in property || "get" in property)) {\n Object.defineProperty(prototype, key, property);\n\n // normal member, simple assignment\n } else {\n prototype[key] = member;\n\n // if both member and the super member are distinct functions\n // add the super member to the member as "_super"\n var superMember = superPrototype[key];\n if (isFn(member) && isFn(superMember) && member !== superMember) {\n member._super = superMember;\n }\n }\n }\n\n\n // propagate class members to the _members object\n if (!options._isClassObject) {\n // try to find the super class of the _members object \n var ClassMembersSuperClass = SuperClass._members === undefined ?\n BaseClass : SuperClass._members._class;\n\n // create the actual class of the _members instance\n // with an updated version of our options\n var opts = extend({}, options, { _isClassObject: true });\n var ClassMembersClass = ClassMembersSuperClass._extend(classMembers, {}, opts);\n\n // store the actual JClass in ClassMembersClass\n ClassMembersClass._instanceClass = JClass;\n\n // create the _members instance\n JClass._members = new ClassMembersClass();\n }\n\n\n // return the new class\n return JClass;\n };\n\n\n /**\n * Converts arbitrary protoype-style classes to our JClass definition.\n *\n * @param {function} cls - The class to convert.\n * @returns {JClass}\n */\n BaseClass._convert = function(cls, options) {\n // the properties consist of the class\' prototype\n var instanceMembers = cls.prototype;\n\n // add the constructor function\n instanceMembers.init = function() {\n // simply create an instance of our target class\n var origin = this._origin = BaseClass._construct(cls, arguments);\n\n // add properties for each own property in _origin\n Object.keys(origin).forEach(function(key) {\n if (!origin.hasOwnProperty(key)) {\n return;\n }\n\n Object.defineProperty(this, key, {\n get: function() {\n return origin[key];\n }\n });\n }, this);\n };\n\n // finally, create and return our new class\n return BaseClass._extend(instanceMembers, {}, options);\n };\n\n\n /**\n * Returns an instance of a class with a list of arguments. This provides an apply-like\n * constructor usage. Note that this approach does not work with native constructors (e.g. String\n * or Boolean).\n *\n * @param {Class|JClass} cls - The class to instantiate. This may be a JClass or a prototype-based\n * class.\n * @param {array} [args=[]] - Arguments to pass to the constructor.\n * @returns {instance}\n */\n BaseClass._construct = function(cls, args) {\n // empty default args\n if (args === undefined) {\n args = [];\n }\n\n // create a class wrapper that calls cls like a function\n var Class = function() {\n return cls.apply(this, args);\n };\n\n // copy the prototype\n Class.prototype = cls.prototype;\n\n // return a new instance\n return new Class();\n };\n\n\n /**\n * Returns a property descriptor of the super class.\n *\n * @param {JClass|instance} cls - A JClass or an instance of a JClass to retrieve the property\n * descriptor from.\n * @param {string} prop - The name of the property descriptor to get.\n * @returns {object}\n */\n BaseClass._superDescriptor = function(cls, prop) {\n // if cls is an instance, use its class\n if ("_class" in cls && cls instanceof cls._class) {\n cls = cls._class;\n }\n\n // a JClass?\n if ("_extends" in cls && cls._extends instanceof Function && cls._extends(this)) {\n return Object.getOwnPropertyDescriptor(cls._superClass.prototype, prop);\n } else {\n return undefined;\n }\n };\n\n\n /**\n * Return the BaseClass.\n */\n\n return BaseClass;\n});\n\n\n//# sourceURL=webpack://VLibras/./node_modules/jclass/index.js?')},"./node_modules/nouislider/distribute/nouislider.js":function(module,exports,__webpack_require__){eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! nouislider - 8.5.1 - 2016-04-24 16:00:29 */\r\n\r\n(function (factory) {\r\n\r\n if ( true ) {\r\n\r\n // AMD. Register as an anonymous module.\r\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\r\n } else {}\r\n\r\n}(function( ){\r\n\r\n\t'use strict';\r\n\r\n\r\n\t// Removes duplicates from an array.\r\n\tfunction unique(array) {\r\n\t\treturn array.filter(function(a){\r\n\t\t\treturn !this[a] ? this[a] = true : false;\r\n\t\t}, {});\r\n\t}\r\n\r\n\t// Round a value to the closest 'to'.\r\n\tfunction closest ( value, to ) {\r\n\t\treturn Math.round(value / to) * to;\r\n\t}\r\n\r\n\t// Current position of an element relative to the document.\r\n\tfunction offset ( elem ) {\r\n\r\n\tvar rect = elem.getBoundingClientRect(),\r\n\t\tdoc = elem.ownerDocument,\r\n\t\tdocElem = doc.documentElement,\r\n\t\tpageOffset = getPageOffset();\r\n\r\n\t\t// getBoundingClientRect contains left scroll in Chrome on Android.\r\n\t\t// I haven't found a feature detection that proves this. Worst case\r\n\t\t// scenario on mis-match: the 'tap' feature on horizontal sliders breaks.\r\n\t\tif ( /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) ) {\r\n\t\t\tpageOffset.x = 0;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\ttop: rect.top + pageOffset.y - docElem.clientTop,\r\n\t\t\tleft: rect.left + pageOffset.x - docElem.clientLeft\r\n\t\t};\r\n\t}\r\n\r\n\t// Checks whether a value is numerical.\r\n\tfunction isNumeric ( a ) {\r\n\t\treturn typeof a === 'number' && !isNaN( a ) && isFinite( a );\r\n\t}\r\n\r\n\t// Sets a class and removes it after [duration] ms.\r\n\tfunction addClassFor ( element, className, duration ) {\r\n\t\taddClass(element, className);\r\n\t\tsetTimeout(function(){\r\n\t\t\tremoveClass(element, className);\r\n\t\t}, duration);\r\n\t}\r\n\r\n\t// Limits a value to 0 - 100\r\n\tfunction limit ( a ) {\r\n\t\treturn Math.max(Math.min(a, 100), 0);\r\n\t}\r\n\r\n\t// Wraps a variable as an array, if it isn't one yet.\r\n\tfunction asArray ( a ) {\r\n\t\treturn Array.isArray(a) ? a : [a];\r\n\t}\r\n\r\n\t// Counts decimals\r\n\tfunction countDecimals ( numStr ) {\r\n\t\tvar pieces = numStr.split(\".\");\r\n\t\treturn pieces.length > 1 ? pieces[1].length : 0;\r\n\t}\r\n\r\n\t// http://youmightnotneedjquery.com/#add_class\r\n\tfunction addClass ( el, className ) {\r\n\t\tif ( el.classList ) {\r\n\t\t\tel.classList.add(className);\r\n\t\t} else {\r\n\t\t\tel.className += ' ' + className;\r\n\t\t}\r\n\t}\r\n\r\n\t// http://youmightnotneedjquery.com/#remove_class\r\n\tfunction removeClass ( el, className ) {\r\n\t\tif ( el.classList ) {\r\n\t\t\tel.classList.remove(className);\r\n\t\t} else {\r\n\t\t\tel.className = el.className.replace(new RegExp('(^|\\\\b)' + className.split(' ').join('|') + '(\\\\b|$)', 'gi'), ' ');\r\n\t\t}\r\n\t}\r\n\r\n\t// https://plainjs.com/javascript/attributes/adding-removing-and-testing-for-classes-9/\r\n\tfunction hasClass ( el, className ) {\r\n\t\treturn el.classList ? el.classList.contains(className) : new RegExp('\\\\b' + className + '\\\\b').test(el.className);\r\n\t}\r\n\r\n\t// https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY#Notes\r\n\tfunction getPageOffset ( ) {\r\n\r\n\t\tvar supportPageOffset = window.pageXOffset !== undefined,\r\n\t\t\tisCSS1Compat = ((document.compatMode || \"\") === \"CSS1Compat\"),\r\n\t\t\tx = supportPageOffset ? window.pageXOffset : isCSS1Compat ? document.documentElement.scrollLeft : document.body.scrollLeft,\r\n\t\t\ty = supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop;\r\n\r\n\t\treturn {\r\n\t\t\tx: x,\r\n\t\t\ty: y\r\n\t\t};\r\n\t}\r\n\r\n\t// we provide a function to compute constants instead\r\n\t// of accessing window.* as soon as the module needs it\r\n\t// so that we do not compute anything if not needed\r\n\tfunction getActions ( ) {\r\n\r\n\t\t// Determine the events to bind. IE11 implements pointerEvents without\r\n\t\t// a prefix, which breaks compatibility with the IE10 implementation.\r\n\t\treturn window.navigator.pointerEnabled ? {\r\n\t\t\tstart: 'pointerdown',\r\n\t\t\tmove: 'pointermove',\r\n\t\t\tend: 'pointerup'\r\n\t\t} : window.navigator.msPointerEnabled ? {\r\n\t\t\tstart: 'MSPointerDown',\r\n\t\t\tmove: 'MSPointerMove',\r\n\t\t\tend: 'MSPointerUp'\r\n\t\t} : {\r\n\t\t\tstart: 'mousedown touchstart',\r\n\t\t\tmove: 'mousemove touchmove',\r\n\t\t\tend: 'mouseup touchend'\r\n\t\t};\r\n\t}\r\n\r\n\r\n// Value calculation\r\n\r\n\t// Determine the size of a sub-range in relation to a full range.\r\n\tfunction subRangeRatio ( pa, pb ) {\r\n\t\treturn (100 / (pb - pa));\r\n\t}\r\n\r\n\t// (percentage) How many percent is this value of this range?\r\n\tfunction fromPercentage ( range, value ) {\r\n\t\treturn (value * 100) / ( range[1] - range[0] );\r\n\t}\r\n\r\n\t// (percentage) Where is this value on this range?\r\n\tfunction toPercentage ( range, value ) {\r\n\t\treturn fromPercentage( range, range[0] < 0 ?\r\n\t\t\tvalue + Math.abs(range[0]) :\r\n\t\t\t\tvalue - range[0] );\r\n\t}\r\n\r\n\t// (value) How much is this percentage on this range?\r\n\tfunction isPercentage ( range, value ) {\r\n\t\treturn ((value * ( range[1] - range[0] )) / 100) + range[0];\r\n\t}\r\n\r\n\r\n// Range conversion\r\n\r\n\tfunction getJ ( value, arr ) {\r\n\r\n\t\tvar j = 1;\r\n\r\n\t\twhile ( value >= arr[j] ){\r\n\t\t\tj += 1;\r\n\t\t}\r\n\r\n\t\treturn j;\r\n\t}\r\n\r\n\t// (percentage) Input a value, find where, on a scale of 0-100, it applies.\r\n\tfunction toStepping ( xVal, xPct, value ) {\r\n\r\n\t\tif ( value >= xVal.slice(-1)[0] ){\r\n\t\t\treturn 100;\r\n\t\t}\r\n\r\n\t\tvar j = getJ( value, xVal ), va, vb, pa, pb;\r\n\r\n\t\tva = xVal[j-1];\r\n\t\tvb = xVal[j];\r\n\t\tpa = xPct[j-1];\r\n\t\tpb = xPct[j];\r\n\r\n\t\treturn pa + (toPercentage([va, vb], value) / subRangeRatio (pa, pb));\r\n\t}\r\n\r\n\t// (value) Input a percentage, find where it is on the specified range.\r\n\tfunction fromStepping ( xVal, xPct, value ) {\r\n\r\n\t\t// There is no range group that fits 100\r\n\t\tif ( value >= 100 ){\r\n\t\t\treturn xVal.slice(-1)[0];\r\n\t\t}\r\n\r\n\t\tvar j = getJ( value, xPct ), va, vb, pa, pb;\r\n\r\n\t\tva = xVal[j-1];\r\n\t\tvb = xVal[j];\r\n\t\tpa = xPct[j-1];\r\n\t\tpb = xPct[j];\r\n\r\n\t\treturn isPercentage([va, vb], (value - pa) * subRangeRatio (pa, pb));\r\n\t}\r\n\r\n\t// (percentage) Get the step that applies at a certain value.\r\n\tfunction getStep ( xPct, xSteps, snap, value ) {\r\n\r\n\t\tif ( value === 100 ) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\r\n\t\tvar j = getJ( value, xPct ), a, b;\r\n\r\n\t\t// If 'snap' is set, steps are used as fixed points on the slider.\r\n\t\tif ( snap ) {\r\n\r\n\t\t\ta = xPct[j-1];\r\n\t\t\tb = xPct[j];\r\n\r\n\t\t\t// Find the closest position, a or b.\r\n\t\t\tif ((value - a) > ((b-a)/2)){\r\n\t\t\t\treturn b;\r\n\t\t\t}\r\n\r\n\t\t\treturn a;\r\n\t\t}\r\n\r\n\t\tif ( !xSteps[j-1] ){\r\n\t\t\treturn value;\r\n\t\t}\r\n\r\n\t\treturn xPct[j-1] + closest(\r\n\t\t\tvalue - xPct[j-1],\r\n\t\t\txSteps[j-1]\r\n\t\t);\r\n\t}\r\n\r\n\r\n// Entry parsing\r\n\r\n\tfunction handleEntryPoint ( index, value, that ) {\r\n\r\n\t\tvar percentage;\r\n\r\n\t\t// Wrap numerical input in an array.\r\n\t\tif ( typeof value === \"number\" ) {\r\n\t\t\tvalue = [value];\r\n\t\t}\r\n\r\n\t\t// Reject any invalid input, by testing whether value is an array.\r\n\t\tif ( Object.prototype.toString.call( value ) !== '[object Array]' ){\r\n\t\t\tthrow new Error(\"noUiSlider: 'range' contains invalid value.\");\r\n\t\t}\r\n\r\n\t\t// Covert min/max syntax to 0 and 100.\r\n\t\tif ( index === 'min' ) {\r\n\t\t\tpercentage = 0;\r\n\t\t} else if ( index === 'max' ) {\r\n\t\t\tpercentage = 100;\r\n\t\t} else {\r\n\t\t\tpercentage = parseFloat( index );\r\n\t\t}\r\n\r\n\t\t// Check for correct input.\r\n\t\tif ( !isNumeric( percentage ) || !isNumeric( value[0] ) ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'range' value isn't numeric.\");\r\n\t\t}\r\n\r\n\t\t// Store values.\r\n\t\tthat.xPct.push( percentage );\r\n\t\tthat.xVal.push( value[0] );\r\n\r\n\t\t// NaN will evaluate to false too, but to keep\r\n\t\t// logging clear, set step explicitly. Make sure\r\n\t\t// not to override the 'step' setting with false.\r\n\t\tif ( !percentage ) {\r\n\t\t\tif ( !isNaN( value[1] ) ) {\r\n\t\t\t\tthat.xSteps[0] = value[1];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthat.xSteps.push( isNaN(value[1]) ? false : value[1] );\r\n\t\t}\r\n\t}\r\n\r\n\tfunction handleStepPoint ( i, n, that ) {\r\n\r\n\t\t// Ignore 'false' stepping.\r\n\t\tif ( !n ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Factor to range ratio\r\n\t\tthat.xSteps[i] = fromPercentage([\r\n\t\t\t that.xVal[i]\r\n\t\t\t,that.xVal[i+1]\r\n\t\t], n) / subRangeRatio (\r\n\t\t\tthat.xPct[i],\r\n\t\t\tthat.xPct[i+1] );\r\n\t}\r\n\r\n\r\n// Interface\r\n\r\n\t// The interface to Spectrum handles all direction-based\r\n\t// conversions, so the above values are unaware.\r\n\r\n\tfunction Spectrum ( entry, snap, direction, singleStep ) {\r\n\r\n\t\tthis.xPct = [];\r\n\t\tthis.xVal = [];\r\n\t\tthis.xSteps = [ singleStep || false ];\r\n\t\tthis.xNumSteps = [ false ];\r\n\r\n\t\tthis.snap = snap;\r\n\t\tthis.direction = direction;\r\n\r\n\t\tvar index, ordered = [ /* [0, 'min'], [1, '50%'], [2, 'max'] */ ];\r\n\r\n\t\t// Map the object keys to an array.\r\n\t\tfor ( index in entry ) {\r\n\t\t\tif ( entry.hasOwnProperty(index) ) {\r\n\t\t\t\tordered.push([entry[index], index]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Sort all entries by value (numeric sort).\r\n\t\tif ( ordered.length && typeof ordered[0][0] === \"object\" ) {\r\n\t\t\tordered.sort(function(a, b) { return a[0][0] - b[0][0]; });\r\n\t\t} else {\r\n\t\t\tordered.sort(function(a, b) { return a[0] - b[0]; });\r\n\t\t}\r\n\r\n\r\n\t\t// Convert all entries to subranges.\r\n\t\tfor ( index = 0; index < ordered.length; index++ ) {\r\n\t\t\thandleEntryPoint(ordered[index][1], ordered[index][0], this);\r\n\t\t}\r\n\r\n\t\t// Store the actual step values.\r\n\t\t// xSteps is sorted in the same order as xPct and xVal.\r\n\t\tthis.xNumSteps = this.xSteps.slice(0);\r\n\r\n\t\t// Convert all numeric steps to the percentage of the subrange they represent.\r\n\t\tfor ( index = 0; index < this.xNumSteps.length; index++ ) {\r\n\t\t\thandleStepPoint(index, this.xNumSteps[index], this);\r\n\t\t}\r\n\t}\r\n\r\n\tSpectrum.prototype.getMargin = function ( value ) {\r\n\t\treturn this.xPct.length === 2 ? fromPercentage(this.xVal, value) : false;\r\n\t};\r\n\r\n\tSpectrum.prototype.toStepping = function ( value ) {\r\n\r\n\t\tvalue = toStepping( this.xVal, this.xPct, value );\r\n\r\n\t\t// Invert the value if this is a right-to-left slider.\r\n\t\tif ( this.direction ) {\r\n\t\t\tvalue = 100 - value;\r\n\t\t}\r\n\r\n\t\treturn value;\r\n\t};\r\n\r\n\tSpectrum.prototype.fromStepping = function ( value ) {\r\n\r\n\t\t// Invert the value if this is a right-to-left slider.\r\n\t\tif ( this.direction ) {\r\n\t\t\tvalue = 100 - value;\r\n\t\t}\r\n\r\n\t\treturn fromStepping( this.xVal, this.xPct, value );\r\n\t};\r\n\r\n\tSpectrum.prototype.getStep = function ( value ) {\r\n\r\n\t\t// Find the proper step for rtl sliders by search in inverse direction.\r\n\t\t// Fixes issue #262.\r\n\t\tif ( this.direction ) {\r\n\t\t\tvalue = 100 - value;\r\n\t\t}\r\n\r\n\t\tvalue = getStep(this.xPct, this.xSteps, this.snap, value );\r\n\r\n\t\tif ( this.direction ) {\r\n\t\t\tvalue = 100 - value;\r\n\t\t}\r\n\r\n\t\treturn value;\r\n\t};\r\n\r\n\tSpectrum.prototype.getApplicableStep = function ( value ) {\r\n\r\n\t\t// If the value is 100%, return the negative step twice.\r\n\t\tvar j = getJ(value, this.xPct), offset = value === 100 ? 2 : 1;\r\n\t\treturn [this.xNumSteps[j-2], this.xVal[j-offset], this.xNumSteps[j-offset]];\r\n\t};\r\n\r\n\t// Outside testing\r\n\tSpectrum.prototype.convert = function ( value ) {\r\n\t\treturn this.getStep(this.toStepping(value));\r\n\t};\r\n\r\n/*\tEvery input option is tested and parsed. This'll prevent\r\n\tendless validation in internal methods. These tests are\r\n\tstructured with an item for every option available. An\r\n\toption can be marked as required by setting the 'r' flag.\r\n\tThe testing function is provided with three arguments:\r\n\t\t- The provided value for the option;\r\n\t\t- A reference to the options object;\r\n\t\t- The name for the option;\r\n\r\n\tThe testing function returns false when an error is detected,\r\n\tor true when everything is OK. It can also modify the option\r\n\tobject, to make sure all values can be correctly looped elsewhere. */\r\n\r\n\tvar defaultFormatter = { 'to': function( value ){\r\n\t\treturn value !== undefined && value.toFixed(2);\r\n\t}, 'from': Number };\r\n\r\n\tfunction testStep ( parsed, entry ) {\r\n\r\n\t\tif ( !isNumeric( entry ) ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'step' is not numeric.\");\r\n\t\t}\r\n\r\n\t\t// The step option can still be used to set stepping\r\n\t\t// for linear sliders. Overwritten if set in 'range'.\r\n\t\tparsed.singleStep = entry;\r\n\t}\r\n\r\n\tfunction testRange ( parsed, entry ) {\r\n\r\n\t\t// Filter incorrect input.\r\n\t\tif ( typeof entry !== 'object' || Array.isArray(entry) ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'range' is not an object.\");\r\n\t\t}\r\n\r\n\t\t// Catch missing start or end.\r\n\t\tif ( entry.min === undefined || entry.max === undefined ) {\r\n\t\t\tthrow new Error(\"noUiSlider: Missing 'min' or 'max' in 'range'.\");\r\n\t\t}\r\n\r\n\t\t// Catch equal start or end.\r\n\t\tif ( entry.min === entry.max ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'range' 'min' and 'max' cannot be equal.\");\r\n\t\t}\r\n\r\n\t\tparsed.spectrum = new Spectrum(entry, parsed.snap, parsed.dir, parsed.singleStep);\r\n\t}\r\n\r\n\tfunction testStart ( parsed, entry ) {\r\n\r\n\t\tentry = asArray(entry);\r\n\r\n\t\t// Validate input. Values aren't tested, as the public .val method\r\n\t\t// will always provide a valid location.\r\n\t\tif ( !Array.isArray( entry ) || !entry.length || entry.length > 2 ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'start' option is incorrect.\");\r\n\t\t}\r\n\r\n\t\t// Store the number of handles.\r\n\t\tparsed.handles = entry.length;\r\n\r\n\t\t// When the slider is initialized, the .val method will\r\n\t\t// be called with the start options.\r\n\t\tparsed.start = entry;\r\n\t}\r\n\r\n\tfunction testSnap ( parsed, entry ) {\r\n\r\n\t\t// Enforce 100% stepping within subranges.\r\n\t\tparsed.snap = entry;\r\n\r\n\t\tif ( typeof entry !== 'boolean' ){\r\n\t\t\tthrow new Error(\"noUiSlider: 'snap' option must be a boolean.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testAnimate ( parsed, entry ) {\r\n\r\n\t\t// Enforce 100% stepping within subranges.\r\n\t\tparsed.animate = entry;\r\n\r\n\t\tif ( typeof entry !== 'boolean' ){\r\n\t\t\tthrow new Error(\"noUiSlider: 'animate' option must be a boolean.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testAnimationDuration ( parsed, entry ) {\r\n\r\n\t\tparsed.animationDuration = entry;\r\n\r\n\t\tif ( typeof entry !== 'number' ){\r\n\t\t\tthrow new Error(\"noUiSlider: 'animationDuration' option must be a number.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testConnect ( parsed, entry ) {\r\n\r\n\t\tif ( entry === 'lower' && parsed.handles === 1 ) {\r\n\t\t\tparsed.connect = 1;\r\n\t\t} else if ( entry === 'upper' && parsed.handles === 1 ) {\r\n\t\t\tparsed.connect = 2;\r\n\t\t} else if ( entry === true && parsed.handles === 2 ) {\r\n\t\t\tparsed.connect = 3;\r\n\t\t} else if ( entry === false ) {\r\n\t\t\tparsed.connect = 0;\r\n\t\t} else {\r\n\t\t\tthrow new Error(\"noUiSlider: 'connect' option doesn't match handle count.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testOrientation ( parsed, entry ) {\r\n\r\n\t\t// Set orientation to an a numerical value for easy\r\n\t\t// array selection.\r\n\t\tswitch ( entry ){\r\n\t\t case 'horizontal':\r\n\t\t\tparsed.ort = 0;\r\n\t\t\tbreak;\r\n\t\t case 'vertical':\r\n\t\t\tparsed.ort = 1;\r\n\t\t\tbreak;\r\n\t\t default:\r\n\t\t\tthrow new Error(\"noUiSlider: 'orientation' option is invalid.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testMargin ( parsed, entry ) {\r\n\r\n\t\tif ( !isNumeric(entry) ){\r\n\t\t\tthrow new Error(\"noUiSlider: 'margin' option must be numeric.\");\r\n\t\t}\r\n\r\n\t\t// Issue #582\r\n\t\tif ( entry === 0 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tparsed.margin = parsed.spectrum.getMargin(entry);\r\n\r\n\t\tif ( !parsed.margin ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'margin' option is only supported on linear sliders.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testLimit ( parsed, entry ) {\r\n\r\n\t\tif ( !isNumeric(entry) ){\r\n\t\t\tthrow new Error(\"noUiSlider: 'limit' option must be numeric.\");\r\n\t\t}\r\n\r\n\t\tparsed.limit = parsed.spectrum.getMargin(entry);\r\n\r\n\t\tif ( !parsed.limit ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'limit' option is only supported on linear sliders.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testDirection ( parsed, entry ) {\r\n\r\n\t\t// Set direction as a numerical value for easy parsing.\r\n\t\t// Invert connection for RTL sliders, so that the proper\r\n\t\t// handles get the connect/background classes.\r\n\t\tswitch ( entry ) {\r\n\t\t case 'ltr':\r\n\t\t\tparsed.dir = 0;\r\n\t\t\tbreak;\r\n\t\t case 'rtl':\r\n\t\t\tparsed.dir = 1;\r\n\t\t\tparsed.connect = [0,2,1,3][parsed.connect];\r\n\t\t\tbreak;\r\n\t\t default:\r\n\t\t\tthrow new Error(\"noUiSlider: 'direction' option was not recognized.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testBehaviour ( parsed, entry ) {\r\n\r\n\t\t// Make sure the input is a string.\r\n\t\tif ( typeof entry !== 'string' ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'behaviour' must be a string containing options.\");\r\n\t\t}\r\n\r\n\t\t// Check if the string contains any keywords.\r\n\t\t// None are required.\r\n\t\tvar tap = entry.indexOf('tap') >= 0,\r\n\t\t\tdrag = entry.indexOf('drag') >= 0,\r\n\t\t\tfixed = entry.indexOf('fixed') >= 0,\r\n\t\t\tsnap = entry.indexOf('snap') >= 0,\r\n\t\t\thover = entry.indexOf('hover') >= 0;\r\n\r\n\t\t// Fix #472\r\n\t\tif ( drag && !parsed.connect ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'drag' behaviour must be used with 'connect': true.\");\r\n\t\t}\r\n\r\n\t\tparsed.events = {\r\n\t\t\ttap: tap || snap,\r\n\t\t\tdrag: drag,\r\n\t\t\tfixed: fixed,\r\n\t\t\tsnap: snap,\r\n\t\t\thover: hover\r\n\t\t};\r\n\t}\r\n\r\n\tfunction testTooltips ( parsed, entry ) {\r\n\r\n\t\tvar i;\r\n\r\n\t\tif ( entry === false ) {\r\n\t\t\treturn;\r\n\t\t} else if ( entry === true ) {\r\n\r\n\t\t\tparsed.tooltips = [];\r\n\r\n\t\t\tfor ( i = 0; i < parsed.handles; i++ ) {\r\n\t\t\t\tparsed.tooltips.push(true);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\r\n\t\t\tparsed.tooltips = asArray(entry);\r\n\r\n\t\t\tif ( parsed.tooltips.length !== parsed.handles ) {\r\n\t\t\t\tthrow new Error(\"noUiSlider: must pass a formatter for all handles.\");\r\n\t\t\t}\r\n\r\n\t\t\tparsed.tooltips.forEach(function(formatter){\r\n\t\t\t\tif ( typeof formatter !== 'boolean' && (typeof formatter !== 'object' || typeof formatter.to !== 'function') ) {\r\n\t\t\t\t\tthrow new Error(\"noUiSlider: 'tooltips' must be passed a formatter or 'false'.\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tfunction testFormat ( parsed, entry ) {\r\n\r\n\t\tparsed.format = entry;\r\n\r\n\t\t// Any object with a to and from method is supported.\r\n\t\tif ( typeof entry.to === 'function' && typeof entry.from === 'function' ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tthrow new Error(\"noUiSlider: 'format' requires 'to' and 'from' methods.\");\r\n\t}\r\n\r\n\tfunction testCssPrefix ( parsed, entry ) {\r\n\r\n\t\tif ( entry !== undefined && typeof entry !== 'string' && entry !== false ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'cssPrefix' must be a string or `false`.\");\r\n\t\t}\r\n\r\n\t\tparsed.cssPrefix = entry;\r\n\t}\r\n\r\n\tfunction testCssClasses ( parsed, entry ) {\r\n\r\n\t\tif ( entry !== undefined && typeof entry !== 'object' ) {\r\n\t\t\tthrow new Error(\"noUiSlider: 'cssClasses' must be an object.\");\r\n\t\t}\r\n\r\n\t\tif ( typeof parsed.cssPrefix === 'string' ) {\r\n\t\t\tparsed.cssClasses = {};\r\n\r\n\t\t\tfor ( var key in entry ) {\r\n\t\t\t\tif ( !entry.hasOwnProperty(key) ) { continue; }\r\n\r\n\t\t\t\tparsed.cssClasses[key] = parsed.cssPrefix + entry[key];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tparsed.cssClasses = entry;\r\n\t\t}\r\n\t}\r\n\r\n\t// Test all developer settings and parse to assumption-safe values.\r\n\tfunction testOptions ( options ) {\r\n\r\n\t\t// To prove a fix for #537, freeze options here.\r\n\t\t// If the object is modified, an error will be thrown.\r\n\t\t// Object.freeze(options);\r\n\r\n\t\tvar parsed = {\r\n\t\t\tmargin: 0,\r\n\t\t\tlimit: 0,\r\n\t\t\tanimate: true,\r\n\t\t\tanimationDuration: 300,\r\n\t\t\tformat: defaultFormatter\r\n\t\t}, tests;\r\n\r\n\t\t// Tests are executed in the order they are presented here.\r\n\t\ttests = {\r\n\t\t\t'step': { r: false, t: testStep },\r\n\t\t\t'start': { r: true, t: testStart },\r\n\t\t\t'connect': { r: true, t: testConnect },\r\n\t\t\t'direction': { r: true, t: testDirection },\r\n\t\t\t'snap': { r: false, t: testSnap },\r\n\t\t\t'animate': { r: false, t: testAnimate },\r\n\t\t\t'animationDuration': { r: false, t: testAnimationDuration },\r\n\t\t\t'range': { r: true, t: testRange },\r\n\t\t\t'orientation': { r: false, t: testOrientation },\r\n\t\t\t'margin': { r: false, t: testMargin },\r\n\t\t\t'limit': { r: false, t: testLimit },\r\n\t\t\t'behaviour': { r: true, t: testBehaviour },\r\n\t\t\t'format': { r: false, t: testFormat },\r\n\t\t\t'tooltips': { r: false, t: testTooltips },\r\n\t\t\t'cssPrefix': { r: false, t: testCssPrefix },\r\n\t\t\t'cssClasses': { r: false, t: testCssClasses }\r\n\t\t};\r\n\r\n\t\tvar defaults = {\r\n\t\t\t'connect': false,\r\n\t\t\t'direction': 'ltr',\r\n\t\t\t'behaviour': 'tap',\r\n\t\t\t'orientation': 'horizontal',\r\n\t\t\t'cssPrefix' : 'noUi-',\r\n\t\t\t'cssClasses': {\r\n\t\t\t\ttarget: 'target',\r\n\t\t\t\tbase: 'base',\r\n\t\t\t\torigin: 'origin',\r\n\t\t\t\thandle: 'handle',\r\n\t\t\t\thandleLower: 'handle-lower',\r\n\t\t\t\thandleUpper: 'handle-upper',\r\n\t\t\t\thorizontal: 'horizontal',\r\n\t\t\t\tvertical: 'vertical',\r\n\t\t\t\tbackground: 'background',\r\n\t\t\t\tconnect: 'connect',\r\n\t\t\t\tltr: 'ltr',\r\n\t\t\t\trtl: 'rtl',\r\n\t\t\t\tdraggable: 'draggable',\r\n\t\t\t\tdrag: 'state-drag',\r\n\t\t\t\ttap: 'state-tap',\r\n\t\t\t\tactive: 'active',\r\n\t\t\t\tstacking: 'stacking',\r\n\t\t\t\ttooltip: 'tooltip',\r\n\t\t\t\tpips: 'pips',\r\n\t\t\t\tpipsHorizontal: 'pips-horizontal',\r\n\t\t\t\tpipsVertical: 'pips-vertical',\r\n\t\t\t\tmarker: 'marker',\r\n\t\t\t\tmarkerHorizontal: 'marker-horizontal',\r\n\t\t\t\tmarkerVertical: 'marker-vertical',\r\n\t\t\t\tmarkerNormal: 'marker-normal',\r\n\t\t\t\tmarkerLarge: 'marker-large',\r\n\t\t\t\tmarkerSub: 'marker-sub',\r\n\t\t\t\tvalue: 'value',\r\n\t\t\t\tvalueHorizontal: 'value-horizontal',\r\n\t\t\t\tvalueVertical: 'value-vertical',\r\n\t\t\t\tvalueNormal: 'value-normal',\r\n\t\t\t\tvalueLarge: 'value-large',\r\n\t\t\t\tvalueSub: 'value-sub'\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// Run all options through a testing mechanism to ensure correct\r\n\t\t// input. It should be noted that options might get modified to\r\n\t\t// be handled properly. E.g. wrapping integers in arrays.\r\n\t\tObject.keys(tests).forEach(function( name ){\r\n\r\n\t\t\t// If the option isn't set, but it is required, throw an error.\r\n\t\t\tif ( options[name] === undefined && defaults[name] === undefined ) {\r\n\r\n\t\t\t\tif ( tests[name].r ) {\r\n\t\t\t\t\tthrow new Error(\"noUiSlider: '\" + name + \"' is required.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\ttests[name].t( parsed, options[name] === undefined ? defaults[name] : options[name] );\r\n\t\t});\r\n\r\n\t\t// Forward pips options\r\n\t\tparsed.pips = options.pips;\r\n\r\n\t\t// Pre-define the styles.\r\n\t\tparsed.style = parsed.ort ? 'top' : 'left';\r\n\r\n\t\treturn parsed;\r\n\t}\r\n\r\n\r\nfunction closure ( target, options, originalOptions ){\r\n\tvar\r\n\t\tactions = getActions( ),\r\n\t\t// All variables local to 'closure' are prefixed with 'scope_'\r\n\t\tscope_Target = target,\r\n\t\tscope_Locations = [-1, -1],\r\n\t\tscope_Base,\r\n\t\tscope_Handles,\r\n\t\tscope_Spectrum = options.spectrum,\r\n\t\tscope_Values = [],\r\n\t\tscope_Events = {},\r\n\t\tscope_Self;\r\n\r\n\r\n\t// Delimit proposed values for handle positions.\r\n\tfunction getPositions ( a, b, delimit ) {\r\n\r\n\t\t// Add movement to current position.\r\n\t\tvar c = a + b[0], d = a + b[1];\r\n\r\n\t\t// Only alter the other position on drag,\r\n\t\t// not on standard sliding.\r\n\t\tif ( delimit ) {\r\n\t\t\tif ( c < 0 ) {\r\n\t\t\t\td += Math.abs(c);\r\n\t\t\t}\r\n\t\t\tif ( d > 100 ) {\r\n\t\t\t\tc -= ( d - 100 );\r\n\t\t\t}\r\n\r\n\t\t\t// Limit values to 0 and 100.\r\n\t\t\treturn [limit(c), limit(d)];\r\n\t\t}\r\n\r\n\t\treturn [c,d];\r\n\t}\r\n\r\n\t// Provide a clean event with standardized offset values.\r\n\tfunction fixEvent ( e, pageOffset ) {\r\n\r\n\t\t// Prevent scrolling and panning on touch events, while\r\n\t\t// attempting to slide. The tap event also depends on this.\r\n\t\te.preventDefault();\r\n\r\n\t\t// Filter the event to register the type, which can be\r\n\t\t// touch, mouse or pointer. Offset changes need to be\r\n\t\t// made on an event specific basis.\r\n\t\tvar touch = e.type.indexOf('touch') === 0,\r\n\t\t\tmouse = e.type.indexOf('mouse') === 0,\r\n\t\t\tpointer = e.type.indexOf('pointer') === 0,\r\n\t\t\tx,y, event = e;\r\n\r\n\t\t// IE10 implemented pointer events with a prefix;\r\n\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\r\n\t\t\tpointer = true;\r\n\t\t}\r\n\r\n\t\tif ( touch ) {\r\n\t\t\t// noUiSlider supports one movement at a time,\r\n\t\t\t// so we can select the first 'changedTouch'.\r\n\t\t\tx = e.changedTouches[0].pageX;\r\n\t\t\ty = e.changedTouches[0].pageY;\r\n\t\t}\r\n\r\n\t\tpageOffset = pageOffset || getPageOffset();\r\n\r\n\t\tif ( mouse || pointer ) {\r\n\t\t\tx = e.clientX + pageOffset.x;\r\n\t\t\ty = e.clientY + pageOffset.y;\r\n\t\t}\r\n\r\n\t\tevent.pageOffset = pageOffset;\r\n\t\tevent.points = [x, y];\r\n\t\tevent.cursor = mouse || pointer; // Fix #435\r\n\r\n\t\treturn event;\r\n\t}\r\n\r\n\t// Append a handle to the base.\r\n\tfunction addHandle ( direction, index ) {\r\n\r\n\t\tvar origin = document.createElement('div'),\r\n\t\t\thandle = document.createElement('div'),\r\n\t\t\tclassModifier = [options.cssClasses.handleLower, options.cssClasses.handleUpper];\r\n\r\n\t\tif ( direction ) {\r\n\t\t\tclassModifier.reverse();\r\n\t\t}\r\n\r\n\t\taddClass(handle, options.cssClasses.handle);\r\n\t\taddClass(handle, classModifier[index]);\r\n\r\n\t\taddClass(origin, options.cssClasses.origin);\r\n\t\torigin.appendChild(handle);\r\n\r\n\t\treturn origin;\r\n\t}\r\n\r\n\t// Add the proper connection classes.\r\n\tfunction addConnection ( connect, target, handles ) {\r\n\r\n\t\t// Apply the required connection classes to the elements\r\n\t\t// that need them. Some classes are made up for several\r\n\t\t// segments listed in the class list, to allow easy\r\n\t\t// renaming and provide a minor compression benefit.\r\n\t\tswitch ( connect ) {\r\n\t\t\tcase 1:\taddClass(target, options.cssClasses.connect);\r\n\t\t\t\t\taddClass(handles[0], options.cssClasses.background);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 3: addClass(handles[1], options.cssClasses.background);\r\n\t\t\t\t\t/* falls through */\r\n\t\t\tcase 2: addClass(handles[0], options.cssClasses.connect);\r\n\t\t\t\t\t/* falls through */\r\n\t\t\tcase 0: addClass(target, options.cssClasses.background);\r\n\t\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\t// Add handles to the slider base.\r\n\tfunction addHandles ( nrHandles, direction, base ) {\r\n\r\n\t\tvar index, handles = [];\r\n\r\n\t\t// Append handles.\r\n\t\tfor ( index = 0; index < nrHandles; index += 1 ) {\r\n\r\n\t\t\t// Keep a list of all added handles.\r\n\t\t\thandles.push( base.appendChild(addHandle( direction, index )) );\r\n\t\t}\r\n\r\n\t\treturn handles;\r\n\t}\r\n\r\n\t// Initialize a single slider.\r\n\tfunction addSlider ( direction, orientation, target ) {\r\n\r\n\t\t// Apply classes and data to the target.\r\n\t\taddClass(target, options.cssClasses.target);\r\n\r\n\t\tif ( direction === 0 ) {\r\n\t\t\taddClass(target, options.cssClasses.ltr);\r\n\t\t} else {\r\n\t\t\taddClass(target, options.cssClasses.rtl);\r\n\t\t}\r\n\r\n\t\tif ( orientation === 0 ) {\r\n\t\t\taddClass(target, options.cssClasses.horizontal);\r\n\t\t} else {\r\n\t\t\taddClass(target, options.cssClasses.vertical);\r\n\t\t}\r\n\r\n\t\tvar div = document.createElement('div');\r\n\t\taddClass(div, options.cssClasses.base);\r\n\t\ttarget.appendChild(div);\r\n\t\treturn div;\r\n\t}\r\n\r\n\r\n\tfunction addTooltip ( handle, index ) {\r\n\r\n\t\tif ( !options.tooltips[index] ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar element = document.createElement('div');\r\n\t\telement.className = options.cssClasses.tooltip;\r\n\t\treturn handle.firstChild.appendChild(element);\r\n\t}\r\n\r\n\t// The tooltips option is a shorthand for using the 'update' event.\r\n\tfunction tooltips ( ) {\r\n\r\n\t\tif ( options.dir ) {\r\n\t\t\toptions.tooltips.reverse();\r\n\t\t}\r\n\r\n\t\t// Tooltips are added with options.tooltips in original order.\r\n\t\tvar tips = scope_Handles.map(addTooltip);\r\n\r\n\t\tif ( options.dir ) {\r\n\t\t\ttips.reverse();\r\n\t\t\toptions.tooltips.reverse();\r\n\t\t}\r\n\r\n\t\tbindEvent('update', function(f, o, r) {\r\n\t\t\tif ( tips[o] ) {\r\n\t\t\t\ttips[o].innerHTML = options.tooltips[o] === true ? f[o] : options.tooltips[o].to(r[o]);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tfunction getGroup ( mode, values, stepped ) {\r\n\r\n\t\t// Use the range.\r\n\t\tif ( mode === 'range' || mode === 'steps' ) {\r\n\t\t\treturn scope_Spectrum.xVal;\r\n\t\t}\r\n\r\n\t\tif ( mode === 'count' ) {\r\n\r\n\t\t\t// Divide 0 - 100 in 'count' parts.\r\n\t\t\tvar spread = ( 100 / (values-1) ), v, i = 0;\r\n\t\t\tvalues = [];\r\n\r\n\t\t\t// List these parts and have them handled as 'positions'.\r\n\t\t\twhile ((v=i++*spread) <= 100 ) {\r\n\t\t\t\tvalues.push(v);\r\n\t\t\t}\r\n\r\n\t\t\tmode = 'positions';\r\n\t\t}\r\n\r\n\t\tif ( mode === 'positions' ) {\r\n\r\n\t\t\t// Map all percentages to on-range values.\r\n\t\t\treturn values.map(function( value ){\r\n\t\t\t\treturn scope_Spectrum.fromStepping( stepped ? scope_Spectrum.getStep( value ) : value );\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif ( mode === 'values' ) {\r\n\r\n\t\t\t// If the value must be stepped, it needs to be converted to a percentage first.\r\n\t\t\tif ( stepped ) {\r\n\r\n\t\t\t\treturn values.map(function( value ){\r\n\r\n\t\t\t\t\t// Convert to percentage, apply step, return to value.\r\n\t\t\t\t\treturn scope_Spectrum.fromStepping( scope_Spectrum.getStep( scope_Spectrum.toStepping( value ) ) );\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Otherwise, we can simply use the values.\r\n\t\t\treturn values;\r\n\t\t}\r\n\t}\r\n\r\n\tfunction generateSpread ( density, mode, group ) {\r\n\r\n\t\tfunction safeIncrement(value, increment) {\r\n\t\t\t// Avoid floating point variance by dropping the smallest decimal places.\r\n\t\t\treturn (value + increment).toFixed(7) / 1;\r\n\t\t}\r\n\r\n\t\tvar originalSpectrumDirection = scope_Spectrum.direction,\r\n\t\t\tindexes = {},\r\n\t\t\tfirstInRange = scope_Spectrum.xVal[0],\r\n\t\t\tlastInRange = scope_Spectrum.xVal[scope_Spectrum.xVal.length-1],\r\n\t\t\tignoreFirst = false,\r\n\t\t\tignoreLast = false,\r\n\t\t\tprevPct = 0;\r\n\r\n\t\t// This function loops the spectrum in an ltr linear fashion,\r\n\t\t// while the toStepping method is direction aware. Trick it into\r\n\t\t// believing it is ltr.\r\n\t\tscope_Spectrum.direction = 0;\r\n\r\n\t\t// Create a copy of the group, sort it and filter away all duplicates.\r\n\t\tgroup = unique(group.slice().sort(function(a, b){ return a - b; }));\r\n\r\n\t\t// Make sure the range starts with the first element.\r\n\t\tif ( group[0] !== firstInRange ) {\r\n\t\t\tgroup.unshift(firstInRange);\r\n\t\t\tignoreFirst = true;\r\n\t\t}\r\n\r\n\t\t// Likewise for the last one.\r\n\t\tif ( group[group.length - 1] !== lastInRange ) {\r\n\t\t\tgroup.push(lastInRange);\r\n\t\t\tignoreLast = true;\r\n\t\t}\r\n\r\n\t\tgroup.forEach(function ( current, index ) {\r\n\r\n\t\t\t// Get the current step and the lower + upper positions.\r\n\t\t\tvar step, i, q,\r\n\t\t\t\tlow = current,\r\n\t\t\t\thigh = group[index+1],\r\n\t\t\t\tnewPct, pctDifference, pctPos, type,\r\n\t\t\t\tsteps, realSteps, stepsize;\r\n\r\n\t\t\t// When using 'steps' mode, use the provided steps.\r\n\t\t\t// Otherwise, we'll step on to the next subrange.\r\n\t\t\tif ( mode === 'steps' ) {\r\n\t\t\t\tstep = scope_Spectrum.xNumSteps[ index ];\r\n\t\t\t}\r\n\r\n\t\t\t// Default to a 'full' step.\r\n\t\t\tif ( !step ) {\r\n\t\t\t\tstep = high-low;\r\n\t\t\t}\r\n\r\n\t\t\t// Low can be 0, so test for false. If high is undefined,\r\n\t\t\t// we are at the last subrange. Index 0 is already handled.\r\n\t\t\tif ( low === false || high === undefined ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Find all steps in the subrange.\r\n\t\t\tfor ( i = low; i <= high; i = safeIncrement(i, step) ) {\r\n\r\n\t\t\t\t// Get the percentage value for the current step,\r\n\t\t\t\t// calculate the size for the subrange.\r\n\t\t\t\tnewPct = scope_Spectrum.toStepping( i );\r\n\t\t\t\tpctDifference = newPct - prevPct;\r\n\r\n\t\t\t\tsteps = pctDifference / density;\r\n\t\t\t\trealSteps = Math.round(steps);\r\n\r\n\t\t\t\t// This ratio represents the ammount of percentage-space a point indicates.\r\n\t\t\t\t// For a density 1 the points/percentage = 1. For density 2, that percentage needs to be re-devided.\r\n\t\t\t\t// Round the percentage offset to an even number, then divide by two\r\n\t\t\t\t// to spread the offset on both sides of the range.\r\n\t\t\t\tstepsize = pctDifference/realSteps;\r\n\r\n\t\t\t\t// Divide all points evenly, adding the correct number to this subrange.\r\n\t\t\t\t// Run up to <= so that 100% gets a point, event if ignoreLast is set.\r\n\t\t\t\tfor ( q = 1; q <= realSteps; q += 1 ) {\r\n\r\n\t\t\t\t\t// The ratio between the rounded value and the actual size might be ~1% off.\r\n\t\t\t\t\t// Correct the percentage offset by the number of points\r\n\t\t\t\t\t// per subrange. density = 1 will result in 100 points on the\r\n\t\t\t\t\t// full range, 2 for 50, 4 for 25, etc.\r\n\t\t\t\t\tpctPos = prevPct + ( q * stepsize );\r\n\t\t\t\t\tindexes[pctPos.toFixed(5)] = ['x', 0];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Determine the point type.\r\n\t\t\t\ttype = (group.indexOf(i) > -1) ? 1 : ( mode === 'steps' ? 2 : 0 );\r\n\r\n\t\t\t\t// Enforce the 'ignoreFirst' option by overwriting the type for 0.\r\n\t\t\t\tif ( !index && ignoreFirst ) {\r\n\t\t\t\t\ttype = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( !(i === high && ignoreLast)) {\r\n\t\t\t\t\t// Mark the 'type' of this point. 0 = plain, 1 = real value, 2 = step value.\r\n\t\t\t\t\tindexes[newPct.toFixed(5)] = [i, type];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Update the percentage count.\r\n\t\t\t\tprevPct = newPct;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Reset the spectrum.\r\n\t\tscope_Spectrum.direction = originalSpectrumDirection;\r\n\r\n\t\treturn indexes;\r\n\t}\r\n\r\n\tfunction addMarking ( spread, filterFunc, formatter ) {\r\n\r\n\t\tvar element = document.createElement('div'),\r\n\t\t\tout = '',\r\n\t\t\tvalueSizeClasses = [\r\n\t\t\t\toptions.cssClasses.valueNormal,\r\n\t\t\t\toptions.cssClasses.valueLarge,\r\n\t\t\t\toptions.cssClasses.valueSub\r\n\t\t\t],\r\n\t\t\tmarkerSizeClasses = [\r\n\t\t\t\toptions.cssClasses.markerNormal,\r\n\t\t\t\toptions.cssClasses.markerLarge,\r\n\t\t\t\toptions.cssClasses.markerSub\r\n\t\t\t],\r\n\t\t\tvalueOrientationClasses = [\r\n\t\t\t\toptions.cssClasses.valueHorizontal,\r\n\t\t\t\toptions.cssClasses.valueVertical\r\n\t\t\t],\r\n\t\t\tmarkerOrientationClasses = [\r\n\t\t\t\toptions.cssClasses.markerHorizontal,\r\n\t\t\t\toptions.cssClasses.markerVertical\r\n\t\t\t];\r\n\r\n\t\taddClass(element, options.cssClasses.pips);\r\n\t\taddClass(element, options.ort === 0 ? options.cssClasses.pipsHorizontal : options.cssClasses.pipsVertical);\r\n\r\n\t\tfunction getClasses( type, source ){\r\n\t\t\tvar a = source === options.cssClasses.value,\r\n\t\t\t\torientationClasses = a ? valueOrientationClasses : markerOrientationClasses,\r\n\t\t\t\tsizeClasses = a ? valueSizeClasses : markerSizeClasses;\r\n\r\n\t\t\treturn source + ' ' + orientationClasses[options.ort] + ' ' + sizeClasses[type];\r\n\t\t}\r\n\r\n\t\tfunction getTags( offset, source, values ) {\r\n\t\t\treturn 'class=\"' + getClasses(values[1], source) + '\" style=\"' + options.style + ': ' + offset + '%\"';\r\n\t\t}\r\n\r\n\t\tfunction addSpread ( offset, values ){\r\n\r\n\t\t\tif ( scope_Spectrum.direction ) {\r\n\t\t\t\toffset = 100 - offset;\r\n\t\t\t}\r\n\r\n\t\t\t// Apply the filter function, if it is set.\r\n\t\t\tvalues[1] = (values[1] && filterFunc) ? filterFunc(values[0], values[1]) : values[1];\r\n\r\n\t\t\t// Add a marker for every point\r\n\t\t\tout += '<div ' + getTags(offset, options.cssClasses.marker, values) + '></div>';\r\n\r\n\t\t\t// Values are only appended for points marked '1' or '2'.\r\n\t\t\tif ( values[1] ) {\r\n\t\t\t\tout += '<div ' + getTags(offset, options.cssClasses.value, values) + '>' + formatter.to(values[0]) + '</div>';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Append all points.\r\n\t\tObject.keys(spread).forEach(function(a){\r\n\t\t\taddSpread(a, spread[a]);\r\n\t\t});\r\n\r\n\t\telement.innerHTML = out;\r\n\r\n\t\treturn element;\r\n\t}\r\n\r\n\tfunction pips ( grid ) {\r\n\r\n\tvar mode = grid.mode,\r\n\t\tdensity = grid.density || 1,\r\n\t\tfilter = grid.filter || false,\r\n\t\tvalues = grid.values || false,\r\n\t\tstepped = grid.stepped || false,\r\n\t\tgroup = getGroup( mode, values, stepped ),\r\n\t\tspread = generateSpread( density, mode, group ),\r\n\t\tformat = grid.format || {\r\n\t\t\tto: Math.round\r\n\t\t};\r\n\r\n\t\treturn scope_Target.appendChild(addMarking(\r\n\t\t\tspread,\r\n\t\t\tfilter,\r\n\t\t\tformat\r\n\t\t));\r\n\t}\r\n\r\n\r\n\t// Shorthand for base dimensions.\r\n\tfunction baseSize ( ) {\r\n\t\tvar rect = scope_Base.getBoundingClientRect(), alt = 'offset' + ['Width', 'Height'][options.ort];\r\n\t\treturn options.ort === 0 ? (rect.width||scope_Base[alt]) : (rect.height||scope_Base[alt]);\r\n\t}\r\n\r\n\t// External event handling\r\n\tfunction fireEvent ( event, handleNumber, tap ) {\r\n\r\n\t\tvar i;\r\n\r\n\t\t// During initialization, do not fire events.\r\n\t\tfor ( i = 0; i < options.handles; i++ ) {\r\n\t\t\tif ( scope_Locations[i] === -1 ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( handleNumber !== undefined && options.handles !== 1 ) {\r\n\t\t\thandleNumber = Math.abs(handleNumber - options.dir);\r\n\t\t}\r\n\r\n\t\tObject.keys(scope_Events).forEach(function( targetEvent ) {\r\n\r\n\t\t\tvar eventType = targetEvent.split('.')[0];\r\n\r\n\t\t\tif ( event === eventType ) {\r\n\t\t\t\tscope_Events[targetEvent].forEach(function( callback ) {\r\n\r\n\t\t\t\t\tcallback.call(\r\n\t\t\t\t\t\t// Use the slider public API as the scope ('this')\r\n\t\t\t\t\t\tscope_Self,\r\n\t\t\t\t\t\t// Return values as array, so arg_1[arg_2] is always valid.\r\n\t\t\t\t\t\tasArray(valueGet()),\r\n\t\t\t\t\t\t// Handle index, 0 or 1\r\n\t\t\t\t\t\thandleNumber,\r\n\t\t\t\t\t\t// Unformatted slider values\r\n\t\t\t\t\t\tasArray(inSliderOrder(Array.prototype.slice.call(scope_Values))),\r\n\t\t\t\t\t\t// Event is fired by tap, true or false\r\n\t\t\t\t\t\ttap || false,\r\n\t\t\t\t\t\t// Left offset of the handle, in relation to the slider\r\n\t\t\t\t\t\tscope_Locations\r\n\t\t\t\t\t);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t// Returns the input array, respecting the slider direction configuration.\r\n\tfunction inSliderOrder ( values ) {\r\n\r\n\t\t// If only one handle is used, return a single value.\r\n\t\tif ( values.length === 1 ){\r\n\t\t\treturn values[0];\r\n\t\t}\r\n\r\n\t\tif ( options.dir ) {\r\n\t\t\treturn values.reverse();\r\n\t\t}\r\n\r\n\t\treturn values;\r\n\t}\r\n\r\n\r\n\t// Handler for attaching events trough a proxy.\r\n\tfunction attach ( events, element, callback, data ) {\r\n\r\n\t\t// This function can be used to 'filter' events to the slider.\r\n\t\t// element is a node, not a nodeList\r\n\r\n\t\tvar method = function ( e ){\r\n\r\n\t\t\tif ( scope_Target.hasAttribute('disabled') ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// Stop if an active 'tap' transition is taking place.\r\n\t\t\tif ( hasClass(scope_Target, options.cssClasses.tap) ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\te = fixEvent(e, data.pageOffset);\r\n\r\n\t\t\t// Ignore right or middle clicks on start #454\r\n\t\t\tif ( events === actions.start && e.buttons !== undefined && e.buttons > 1 ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// Ignore right or middle clicks on start #454\r\n\t\t\tif ( data.hover && e.buttons ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\te.calcPoint = e.points[ options.ort ];\r\n\r\n\t\t\t// Call the event handler with the event [ and additional data ].\r\n\t\t\tcallback ( e, data );\r\n\r\n\t\t}, methods = [];\r\n\r\n\t\t// Bind a closure on the target for every event type.\r\n\t\tevents.split(' ').forEach(function( eventName ){\r\n\t\t\telement.addEventListener(eventName, method, false);\r\n\t\t\tmethods.push([eventName, method]);\r\n\t\t});\r\n\r\n\t\treturn methods;\r\n\t}\r\n\r\n\t// Handle movement on document for handle and range drag.\r\n\tfunction move ( event, data ) {\r\n\r\n\t\t// Fix #498\r\n\t\t// Check value of .buttons in 'start' to work around a bug in IE10 mobile (data.buttonsProperty).\r\n\t\t// https://connect.microsoft.com/IE/feedback/details/927005/mobile-ie10-windows-phone-buttons-property-of-pointermove-event-always-zero\r\n\t\t// IE9 has .buttons and .which zero on mousemove.\r\n\t\t// Firefox breaks the spec MDN defines.\r\n\t\tif ( navigator.appVersion.indexOf(\"MSIE 9\") === -1 && event.buttons === 0 && data.buttonsProperty !== 0 ) {\r\n\t\t\treturn end(event, data);\r\n\t\t}\r\n\r\n\t\tvar handles = data.handles || scope_Handles, positions, state = false,\r\n\t\t\tproposal = ((event.calcPoint - data.start) * 100) / data.baseSize,\r\n\t\t\thandleNumber = handles[0] === scope_Handles[0] ? 0 : 1, i;\r\n\r\n\t\t// Calculate relative positions for the handles.\r\n\t\tpositions = getPositions( proposal, data.positions, handles.length > 1);\r\n\r\n\t\tstate = setHandle ( handles[0], positions[handleNumber], handles.length === 1 );\r\n\r\n\t\tif ( handles.length > 1 ) {\r\n\r\n\t\t\tstate = setHandle ( handles[1], positions[handleNumber?0:1], false ) || state;\r\n\r\n\t\t\tif ( state ) {\r\n\t\t\t\t// fire for both handles\r\n\t\t\t\tfor ( i = 0; i < data.handles.length; i++ ) {\r\n\t\t\t\t\tfireEvent('slide', i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if ( state ) {\r\n\t\t\t// Fire for a single handle\r\n\t\t\tfireEvent('slide', handleNumber);\r\n\t\t}\r\n\t}\r\n\r\n\t// Unbind move events on document, call callbacks.\r\n\tfunction end ( event, data ) {\r\n\r\n\t\t// The handle is no longer active, so remove the class.\r\n\t\tvar active = scope_Base.querySelector( '.' + options.cssClasses.active ),\r\n\t\t\thandleNumber = data.handles[0] === scope_Handles[0] ? 0 : 1;\r\n\r\n\t\tif ( active !== null ) {\r\n\t\t\tremoveClass(active, options.cssClasses.active);\r\n\t\t}\r\n\r\n\t\t// Remove cursor styles and text-selection events bound to the body.\r\n\t\tif ( event.cursor ) {\r\n\t\t\tdocument.body.style.cursor = '';\r\n\t\t\tdocument.body.removeEventListener('selectstart', document.body.noUiListener);\r\n\t\t}\r\n\r\n\t\tvar d = document.documentElement;\r\n\r\n\t\t// Unbind the move and end events, which are added on 'start'.\r\n\t\td.noUiListeners.forEach(function( c ) {\r\n\t\t\td.removeEventListener(c[0], c[1]);\r\n\t\t});\r\n\r\n\t\t// Remove dragging class.\r\n\t\tremoveClass(scope_Target, options.cssClasses.drag);\r\n\r\n\t\t// Fire the change and set events.\r\n\t\tfireEvent('set', handleNumber);\r\n\t\tfireEvent('change', handleNumber);\r\n\r\n\t\t// If this is a standard handle movement, fire the end event.\r\n\t\tif ( data.handleNumber !== undefined ) {\r\n\t\t\tfireEvent('end', data.handleNumber);\r\n\t\t}\r\n\t}\r\n\r\n\t// Fire 'end' when a mouse or pen leaves the document.\r\n\tfunction documentLeave ( event, data ) {\r\n\t\tif ( event.type === \"mouseout\" && event.target.nodeName === \"HTML\" && event.relatedTarget === null ){\r\n\t\t\tend ( event, data );\r\n\t\t}\r\n\t}\r\n\r\n\t// Bind move events on document.\r\n\tfunction start ( event, data ) {\r\n\r\n\t\tvar d = document.documentElement;\r\n\r\n\t\t// Mark the handle as 'active' so it can be styled.\r\n\t\tif ( data.handles.length === 1 ) {\r\n\t\t\t// Support 'disabled' handles\r\n\t\t\tif ( data.handles[0].hasAttribute('disabled') ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\taddClass(data.handles[0].children[0], options.cssClasses.active);\r\n\t\t}\r\n\r\n\t\t// Fix #551, where a handle gets selected instead of dragged.\r\n\t\tevent.preventDefault();\r\n\r\n\t\t// A drag should never propagate up to the 'tap' event.\r\n\t\tevent.stopPropagation();\r\n\r\n\t\t// Attach the move and end events.\r\n\t\tvar moveEvent = attach(actions.move, d, move, {\r\n\t\t\tstart: event.calcPoint,\r\n\t\t\tbaseSize: baseSize(),\r\n\t\t\tpageOffset: event.pageOffset,\r\n\t\t\thandles: data.handles,\r\n\t\t\thandleNumber: data.handleNumber,\r\n\t\t\tbuttonsProperty: event.buttons,\r\n\t\t\tpositions: [\r\n\t\t\t\tscope_Locations[0],\r\n\t\t\t\tscope_Locations[scope_Handles.length - 1]\r\n\t\t\t]\r\n\t\t}), endEvent = attach(actions.end, d, end, {\r\n\t\t\thandles: data.handles,\r\n\t\t\thandleNumber: data.handleNumber\r\n\t\t});\r\n\r\n\t\tvar outEvent = attach(\"mouseout\", d, documentLeave, {\r\n\t\t\thandles: data.handles,\r\n\t\t\thandleNumber: data.handleNumber\r\n\t\t});\r\n\r\n\t\td.noUiListeners = moveEvent.concat(endEvent, outEvent);\r\n\r\n\t\t// Text selection isn't an issue on touch devices,\r\n\t\t// so adding cursor styles can be skipped.\r\n\t\tif ( event.cursor ) {\r\n\r\n\t\t\t// Prevent the 'I' cursor and extend the range-drag cursor.\r\n\t\t\tdocument.body.style.cursor = getComputedStyle(event.target).cursor;\r\n\r\n\t\t\t// Mark the target with a dragging state.\r\n\t\t\tif ( scope_Handles.length > 1 ) {\r\n\t\t\t\taddClass(scope_Target, options.cssClasses.drag);\r\n\t\t\t}\r\n\r\n\t\t\tvar f = function(){\r\n\t\t\t\treturn false;\r\n\t\t\t};\r\n\r\n\t\t\tdocument.body.noUiListener = f;\r\n\r\n\t\t\t// Prevent text selection when dragging the handles.\r\n\t\t\tdocument.body.addEventListener('selectstart', f, false);\r\n\t\t}\r\n\r\n\t\tif ( data.handleNumber !== undefined ) {\r\n\t\t\tfireEvent('start', data.handleNumber);\r\n\t\t}\r\n\t}\r\n\r\n\t// Move closest handle to tapped location.\r\n\tfunction tap ( event ) {\r\n\r\n\t\tvar location = event.calcPoint, total = 0, handleNumber, to;\r\n\r\n\t\t// The tap event shouldn't propagate up and cause 'edge' to run.\r\n\t\tevent.stopPropagation();\r\n\r\n\t\t// Add up the handle offsets.\r\n\t\tscope_Handles.forEach(function(a){\r\n\t\t\ttotal += offset(a)[ options.style ];\r\n\t\t});\r\n\r\n\t\t// Find the handle closest to the tapped position.\r\n\t\thandleNumber = ( location < total/2 || scope_Handles.length === 1 ) ? 0 : 1;\r\n\r\n\t\t// Check if handler is not disablet if yes set number to the next handler\r\n\t\tif (scope_Handles[handleNumber].hasAttribute('disabled')) {\r\n\t\t\thandleNumber = handleNumber ? 0 : 1;\r\n\t\t}\r\n\r\n\t\tlocation -= offset(scope_Base)[ options.style ];\r\n\r\n\t\t// Calculate the new position.\r\n\t\tto = ( location * 100 ) / baseSize();\r\n\r\n\t\tif ( !options.events.snap ) {\r\n\t\t\t// Flag the slider as it is now in a transitional state.\r\n\t\t\t// Transition takes a configurable amount of ms (default 300). Re-enable the slider after that.\r\n\t\t\taddClassFor( scope_Target, options.cssClasses.tap, options.animationDuration );\r\n\t\t}\r\n\r\n\t\t// Support 'disabled' handles\r\n\t\tif ( scope_Handles[handleNumber].hasAttribute('disabled') ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// Find the closest handle and calculate the tapped point.\r\n\t\t// The set handle to the new position.\r\n\t\tsetHandle( scope_Handles[handleNumber], to );\r\n\r\n\t\tfireEvent('slide', handleNumber, true);\r\n\t\tfireEvent('set', handleNumber, true);\r\n\t\tfireEvent('change', handleNumber, true);\r\n\r\n\t\tif ( options.events.snap ) {\r\n\t\t\tstart(event, { handles: [scope_Handles[handleNumber]] });\r\n\t\t}\r\n\t}\r\n\r\n\t// Fires a 'hover' event for a hovered mouse/pen position.\r\n\tfunction hover ( event ) {\r\n\r\n\t\tvar location = event.calcPoint - offset(scope_Base)[ options.style ],\r\n\t\t\tto = scope_Spectrum.getStep(( location * 100 ) / baseSize()),\r\n\t\t\tvalue = scope_Spectrum.fromStepping( to );\r\n\r\n\t\tObject.keys(scope_Events).forEach(function( targetEvent ) {\r\n\t\t\tif ( 'hover' === targetEvent.split('.')[0] ) {\r\n\t\t\t\tscope_Events[targetEvent].forEach(function( callback ) {\r\n\t\t\t\t\tcallback.call( scope_Self, value );\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t// Attach events to several slider parts.\r\n\tfunction events ( behaviour ) {\r\n\r\n\t\t// Attach the standard drag event to the handles.\r\n\t\tif ( !behaviour.fixed ) {\r\n\r\n\t\t\tscope_Handles.forEach(function( handle, index ){\r\n\r\n\t\t\t\t// These events are only bound to the visual handle\r\n\t\t\t\t// element, not the 'real' origin element.\r\n\t\t\t\tattach ( actions.start, handle.children[0], start, {\r\n\t\t\t\t\thandles: [ handle ],\r\n\t\t\t\t\thandleNumber: index\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// Attach the tap event to the slider base.\r\n\t\tif ( behaviour.tap ) {\r\n\r\n\t\t\tattach ( actions.start, scope_Base, tap, {\r\n\t\t\t\thandles: scope_Handles\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// Fire hover events\r\n\t\tif ( behaviour.hover ) {\r\n\t\t\tattach ( actions.move, scope_Base, hover, { hover: true } );\r\n\t\t}\r\n\r\n\t\t// Make the range draggable.\r\n\t\tif ( behaviour.drag ){\r\n\r\n\t\t\tvar drag = [scope_Base.querySelector( '.' + options.cssClasses.connect )];\r\n\t\t\taddClass(drag[0], options.cssClasses.draggable);\r\n\r\n\t\t\t// When the range is fixed, the entire range can\r\n\t\t\t// be dragged by the handles. The handle in the first\r\n\t\t\t// origin will propagate the start event upward,\r\n\t\t\t// but it needs to be bound manually on the other.\r\n\t\t\tif ( behaviour.fixed ) {\r\n\t\t\t\tdrag.push(scope_Handles[(drag[0] === scope_Handles[0] ? 1 : 0)].children[0]);\r\n\t\t\t}\r\n\r\n\t\t\tdrag.forEach(function( element ) {\r\n\t\t\t\tattach ( actions.start, element, start, {\r\n\t\t\t\t\thandles: scope_Handles\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t// Test suggested values and apply margin, step.\r\n\tfunction setHandle ( handle, to, noLimitOption ) {\r\n\r\n\t\tvar trigger = handle !== scope_Handles[0] ? 1 : 0,\r\n\t\t\tlowerMargin = scope_Locations[0] + options.margin,\r\n\t\t\tupperMargin = scope_Locations[1] - options.margin,\r\n\t\t\tlowerLimit = scope_Locations[0] + options.limit,\r\n\t\t\tupperLimit = scope_Locations[1] - options.limit;\r\n\r\n\t\t// For sliders with multiple handles,\r\n\t\t// limit movement to the other handle.\r\n\t\t// Apply the margin option by adding it to the handle positions.\r\n\t\tif ( scope_Handles.length > 1 ) {\r\n\t\t\tto = trigger ? Math.max( to, lowerMargin ) : Math.min( to, upperMargin );\r\n\t\t}\r\n\r\n\t\t// The limit option has the opposite effect, limiting handles to a\r\n\t\t// maximum distance from another. Limit must be > 0, as otherwise\r\n\t\t// handles would be unmoveable. 'noLimitOption' is set to 'false'\r\n\t\t// for the .val() method, except for pass 4/4.\r\n\t\tif ( noLimitOption !== false && options.limit && scope_Handles.length > 1 ) {\r\n\t\t\tto = trigger ? Math.min ( to, lowerLimit ) : Math.max( to, upperLimit );\r\n\t\t}\r\n\r\n\t\t// Handle the step option.\r\n\t\tto = scope_Spectrum.getStep( to );\r\n\r\n\t\t// Limit percentage to the 0 - 100 range\r\n\t\tto = limit(to);\r\n\r\n\t\t// Return false if handle can't move\r\n\t\tif ( to === scope_Locations[trigger] ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// Set the handle to the new position.\r\n\t\t// Use requestAnimationFrame for efficient painting.\r\n\t\t// No significant effect in Chrome, Edge sees dramatic\r\n\t\t// performace improvements.\r\n\t\tif ( window.requestAnimationFrame ) {\r\n\t\t\twindow.requestAnimationFrame(function(){\r\n\t\t\t\thandle.style[options.style] = to + '%';\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\thandle.style[options.style] = to + '%';\r\n\t\t}\r\n\r\n\t\t// Force proper handle stacking\r\n\t\tif ( !handle.previousSibling ) {\r\n\t\t\tremoveClass(handle, options.cssClasses.stacking);\r\n\t\t\tif ( to > 50 ) {\r\n\t\t\t\taddClass(handle, options.cssClasses.stacking);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Update locations.\r\n\t\tscope_Locations[trigger] = to;\r\n\r\n\t\t// Convert the value to the slider stepping/range.\r\n\t\tscope_Values[trigger] = scope_Spectrum.fromStepping( to );\r\n\r\n\t\tfireEvent('update', trigger);\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\t// Loop values from value method and apply them.\r\n\tfunction setValues ( count, values ) {\r\n\r\n\t\tvar i, trigger, to;\r\n\r\n\t\t// With the limit option, we'll need another limiting pass.\r\n\t\tif ( options.limit ) {\r\n\t\t\tcount += 1;\r\n\t\t}\r\n\r\n\t\t// If there are multiple handles to be set run the setting\r\n\t\t// mechanism twice for the first handle, to make sure it\r\n\t\t// can be bounced of the second one properly.\r\n\t\tfor ( i = 0; i < count; i += 1 ) {\r\n\r\n\t\t\ttrigger = i%2;\r\n\r\n\t\t\t// Get the current argument from the array.\r\n\t\t\tto = values[trigger];\r\n\r\n\t\t\t// Setting with null indicates an 'ignore'.\r\n\t\t\t// Inputting 'false' is invalid.\r\n\t\t\tif ( to !== null && to !== false ) {\r\n\r\n\t\t\t\t// If a formatted number was passed, attemt to decode it.\r\n\t\t\t\tif ( typeof to === 'number' ) {\r\n\t\t\t\t\tto = String(to);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tto = options.format.from( to );\r\n\r\n\t\t\t\t// Request an update for all links if the value was invalid.\r\n\t\t\t\t// Do so too if setting the handle fails.\r\n\t\t\t\tif ( to === false || isNaN(to) || setHandle( scope_Handles[trigger], scope_Spectrum.toStepping( to ), i === (3 - options.dir) ) === false ) {\r\n\t\t\t\t\tfireEvent('update', trigger);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Set the slider value.\r\n\tfunction valueSet ( input, fireSetEvent ) {\r\n\r\n\t\tvar count, values = asArray( input ), i;\r\n\r\n\t\t// Event fires by default\r\n\t\tfireSetEvent = (fireSetEvent === undefined ? true : !!fireSetEvent);\r\n\r\n\t\t// The RTL settings is implemented by reversing the front-end,\r\n\t\t// internal mechanisms are the same.\r\n\t\tif ( options.dir && options.handles > 1 ) {\r\n\t\t\tvalues.reverse();\r\n\t\t}\r\n\r\n\t\t// Animation is optional.\r\n\t\t// Make sure the initial values where set before using animated placement.\r\n\t\tif ( options.animate && scope_Locations[0] !== -1 ) {\r\n\t\t\taddClassFor( scope_Target, options.cssClasses.tap, options.animationDuration );\r\n\t\t}\r\n\r\n\t\t// Determine how often to set the handles.\r\n\t\tcount = scope_Handles.length > 1 ? 3 : 1;\r\n\r\n\t\tif ( values.length === 1 ) {\r\n\t\t\tcount = 1;\r\n\t\t}\r\n\r\n\t\tsetValues ( count, values );\r\n\r\n\t\t// Fire the 'set' event for both handles.\r\n\t\tfor ( i = 0; i < scope_Handles.length; i++ ) {\r\n\r\n\t\t\t// Fire the event only for handles that received a new value, as per #579\r\n\t\t\tif ( values[i] !== null && fireSetEvent ) {\r\n\t\t\t\tfireEvent('set', i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Get the slider value.\r\n\tfunction valueGet ( ) {\r\n\r\n\t\tvar i, retour = [];\r\n\r\n\t\t// Get the value from all handles.\r\n\t\tfor ( i = 0; i < options.handles; i += 1 ){\r\n\t\t\tretour[i] = options.format.to( scope_Values[i] );\r\n\t\t}\r\n\r\n\t\treturn inSliderOrder( retour );\r\n\t}\r\n\r\n\t// Removes classes from the root and empties it.\r\n\tfunction destroy ( ) {\r\n\r\n\t\tfor ( var key in options.cssClasses ) {\r\n\t\t\tif ( !options.cssClasses.hasOwnProperty(key) ) { continue; }\r\n\t\t\tremoveClass(scope_Target, options.cssClasses[key]);\r\n\t\t}\r\n\r\n\t\twhile (scope_Target.firstChild) {\r\n\t\t\tscope_Target.removeChild(scope_Target.firstChild);\r\n\t\t}\r\n\r\n\t\tdelete scope_Target.noUiSlider;\r\n\t}\r\n\r\n\t// Get the current step size for the slider.\r\n\tfunction getCurrentStep ( ) {\r\n\r\n\t\t// Check all locations, map them to their stepping point.\r\n\t\t// Get the step point, then find it in the input list.\r\n\t\tvar retour = scope_Locations.map(function( location, index ){\r\n\r\n\t\t\tvar step = scope_Spectrum.getApplicableStep( location ),\r\n\r\n\t\t\t\t// As per #391, the comparison for the decrement step can have some rounding issues.\r\n\t\t\t\t// Round the value to the precision used in the step.\r\n\t\t\t\tstepDecimals = countDecimals(String(step[2])),\r\n\r\n\t\t\t\t// Get the current numeric value\r\n\t\t\t\tvalue = scope_Values[index],\r\n\r\n\t\t\t\t// To move the slider 'one step up', the current step value needs to be added.\r\n\t\t\t\t// Use null if we are at the maximum slider value.\r\n\t\t\t\tincrement = location === 100 ? null : step[2],\r\n\r\n\t\t\t\t// Going 'one step down' might put the slider in a different sub-range, so we\r\n\t\t\t\t// need to switch between the current or the previous step.\r\n\t\t\t\tprev = Number((value - step[2]).toFixed(stepDecimals)),\r\n\r\n\t\t\t\t// If the value fits the step, return the current step value. Otherwise, use the\r\n\t\t\t\t// previous step. Return null if the slider is at its minimum value.\r\n\t\t\t\tdecrement = location === 0 ? null : (prev >= step[1]) ? step[2] : (step[0] || false);\r\n\r\n\t\t\treturn [decrement, increment];\r\n\t\t});\r\n\r\n\t\t// Return values in the proper order.\r\n\t\treturn inSliderOrder( retour );\r\n\t}\r\n\r\n\t// Attach an event to this slider, possibly including a namespace\r\n\tfunction bindEvent ( namespacedEvent, callback ) {\r\n\t\tscope_Events[namespacedEvent] = scope_Events[namespacedEvent] || [];\r\n\t\tscope_Events[namespacedEvent].push(callback);\r\n\r\n\t\t// If the event bound is 'update,' fire it immediately for all handles.\r\n\t\tif ( namespacedEvent.split('.')[0] === 'update' ) {\r\n\t\t\tscope_Handles.forEach(function(a, index){\r\n\t\t\t\tfireEvent('update', index);\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\t// Undo attachment of event\r\n\tfunction removeEvent ( namespacedEvent ) {\r\n\r\n\t\tvar event = namespacedEvent && namespacedEvent.split('.')[0],\r\n\t\t\tnamespace = event && namespacedEvent.substring(event.length);\r\n\r\n\t\tObject.keys(scope_Events).forEach(function( bind ){\r\n\r\n\t\t\tvar tEvent = bind.split('.')[0],\r\n\t\t\t\ttNamespace = bind.substring(tEvent.length);\r\n\r\n\t\t\tif ( (!event || event === tEvent) && (!namespace || namespace === tNamespace) ) {\r\n\t\t\t\tdelete scope_Events[bind];\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t// Updateable: margin, limit, step, range, animate, snap\r\n\tfunction updateOptions ( optionsToUpdate, fireSetEvent ) {\r\n\r\n\t\t// Spectrum is created using the range, snap, direction and step options.\r\n\t\t// 'snap' and 'step' can be updated, 'direction' cannot, due to event binding.\r\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\r\n\t\tvar v = valueGet(), newOptions = testOptions({\r\n\t\t\tstart: [0, 0],\r\n\t\t\tmargin: optionsToUpdate.margin,\r\n\t\t\tlimit: optionsToUpdate.limit,\r\n\t\t\tstep: optionsToUpdate.step === undefined ? options.singleStep : optionsToUpdate.step,\r\n\t\t\trange: optionsToUpdate.range,\r\n\t\t\tanimate: optionsToUpdate.animate,\r\n\t\t\tsnap: optionsToUpdate.snap === undefined ? options.snap : optionsToUpdate.snap\r\n\t\t});\r\n\r\n\t\t['margin', 'limit', 'range', 'animate'].forEach(function(name){\r\n\r\n\t\t\t// Only change options that we're actually passed to update.\r\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\r\n\t\t\t\toptions[name] = optionsToUpdate[name];\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Save current spectrum direction as testOptions in testRange call\r\n\t\t// doesn't rely on current direction\r\n\t\tnewOptions.spectrum.direction = scope_Spectrum.direction;\r\n\t\tscope_Spectrum = newOptions.spectrum;\r\n\r\n\t\t// Invalidate the current positioning so valueSet forces an update.\r\n\t\tscope_Locations = [-1, -1];\r\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\r\n\t}\r\n\r\n\r\n\t// Throw an error if the slider was already initialized.\r\n\tif ( scope_Target.noUiSlider ) {\r\n\t\tthrow new Error('Slider was already initialized.');\r\n\t}\r\n\r\n\t// Create the base element, initialise HTML and set classes.\r\n\t// Add handles and links.\r\n\tscope_Base = addSlider( options.dir, options.ort, scope_Target );\r\n\tscope_Handles = addHandles( options.handles, options.dir, scope_Base );\r\n\r\n\t// Set the connect classes.\r\n\taddConnection ( options.connect, scope_Target, scope_Handles );\r\n\r\n\tif ( options.pips ) {\r\n\t\tpips(options.pips);\r\n\t}\r\n\r\n\tif ( options.tooltips ) {\r\n\t\ttooltips();\r\n\t}\r\n\r\n\tscope_Self = {\r\n\t\tdestroy: destroy,\r\n\t\tsteps: getCurrentStep,\r\n\t\ton: bindEvent,\r\n\t\toff: removeEvent,\r\n\t\tget: valueGet,\r\n\t\tset: valueSet,\r\n\t\tupdateOptions: updateOptions,\r\n\t\toptions: originalOptions, // Issue #600\r\n\t\ttarget: scope_Target, // Issue #597\r\n\t\tpips: pips // Issue #594\r\n\t};\r\n\r\n\t// Attach user events.\r\n\tevents( options.events );\r\n\r\n\treturn scope_Self;\r\n\r\n}\r\n\r\n\r\n\t// Run the standard initializer\r\n\tfunction initialize ( target, originalOptions ) {\r\n\r\n\t\tif ( !target.nodeName ) {\r\n\t\t\tthrow new Error('noUiSlider.create requires a single element.');\r\n\t\t}\r\n\r\n\t\t// Test the options and create the slider environment;\r\n\t\tvar options = testOptions( originalOptions, target ),\r\n\t\t\tslider = closure( target, options, originalOptions );\r\n\r\n\t\t// Use the public value method to set the start values.\r\n\t\tslider.set(options.start);\r\n\r\n\t\ttarget.noUiSlider = slider;\r\n\t\treturn slider;\r\n\t}\r\n\r\n\t// Use an object instead of a function for future expansibility;\r\n\treturn {\r\n\t\tcreate: initialize\r\n\t};\r\n\r\n}));\n\n//# sourceURL=webpack://VLibras/./node_modules/nouislider/distribute/nouislider.js?")},"./node_modules/nouislider/distribute/nouislider.min.css":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../css-loader/dist/cjs.js!../../sass-loader/dist/cjs.js!./nouislider.min.css */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/nouislider/distribute/nouislider.min.css");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./node_modules/nouislider/distribute/nouislider.min.css?')},"./node_modules/path-browserify/index.js":function(module,exports,__webpack_require__){eval("/* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://VLibras/./node_modules/path-browserify/index.js?")},"./node_modules/process/browser.js":function(module,exports){eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//# sourceURL=webpack://VLibras/./node_modules/process/browser.js?")},"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":function(module,exports,__webpack_require__){"use strict";eval("\n\nvar stylesInDom = {};\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nfunction listToStyles(list, options) {\n var styles = [];\n var newStyles = {};\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var css = item[1];\n var media = item[2];\n var sourceMap = item[3];\n var part = {\n css: css,\n media: media,\n sourceMap: sourceMap\n };\n\n if (!newStyles[id]) {\n styles.push(newStyles[id] = {\n id: id,\n parts: [part]\n });\n } else {\n newStyles[id].parts.push(part);\n }\n }\n\n return styles;\n}\n\nfunction addStylesToDom(styles, options) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i];\n var domStyle = stylesInDom[item.id];\n var j = 0;\n\n if (domStyle) {\n domStyle.refs++;\n\n for (; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j]);\n }\n\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j], options));\n }\n } else {\n var parts = [];\n\n for (; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j], options));\n }\n\n stylesInDom[item.id] = {\n id: item.id,\n refs: 1,\n parts: parts\n };\n }\n }\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n\n if (typeof options.attributes.nonce === 'undefined') {\n var nonce = true ? __webpack_require__.nc : undefined;\n\n if (nonce) {\n options.attributes.nonce = nonce;\n }\n }\n\n Object.keys(options.attributes).forEach(function (key) {\n style.setAttribute(key, options.attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n }\n\n if (sourceMap && btoa) {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n options.attributes = typeof options.attributes === 'object' ? options.attributes : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n // tags it will allow on a page\n\n if (!options.singleton && typeof options.singleton !== 'boolean') {\n options.singleton = isOldIE();\n }\n\n var styles = listToStyles(list, options);\n addStylesToDom(styles, options);\n return function update(newList) {\n var mayRemove = [];\n\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i];\n var domStyle = stylesInDom[item.id];\n\n if (domStyle) {\n domStyle.refs--;\n mayRemove.push(domStyle);\n }\n }\n\n if (newList) {\n var newStyles = listToStyles(newList, options);\n addStylesToDom(newStyles, options);\n }\n\n for (var _i = 0; _i < mayRemove.length; _i++) {\n var _domStyle = mayRemove[_i];\n\n if (_domStyle.refs === 0) {\n for (var j = 0; j < _domStyle.parts.length; j++) {\n _domStyle.parts[j]();\n }\n\n delete stylesInDom[_domStyle.id];\n }\n }\n };\n};\n\n//# sourceURL=webpack://VLibras/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?")},"./node_modules/textarea-caret/index.js":function(module,exports,__webpack_require__){eval("/* jshint browser: true */\n\n(function () {\n\n// We'll copy the properties below into the mirror div.\n// Note that some browsers, such as Firefox, do not concatenate properties\n// into their shorthand (e.g. padding-top, padding-bottom etc. -> padding),\n// so we have to list every single property explicitly.\nvar properties = [\n 'direction', // RTL support\n 'boxSizing',\n 'width', // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does\n 'height',\n 'overflowX',\n 'overflowY', // copy the scrollbar for IE\n\n 'borderTopWidth',\n 'borderRightWidth',\n 'borderBottomWidth',\n 'borderLeftWidth',\n 'borderStyle',\n\n 'paddingTop',\n 'paddingRight',\n 'paddingBottom',\n 'paddingLeft',\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/font\n 'fontStyle',\n 'fontVariant',\n 'fontWeight',\n 'fontStretch',\n 'fontSize',\n 'fontSizeAdjust',\n 'lineHeight',\n 'fontFamily',\n\n 'textAlign',\n 'textTransform',\n 'textIndent',\n 'textDecoration', // might not make a difference, but better be safe\n\n 'letterSpacing',\n 'wordSpacing',\n\n 'tabSize',\n 'MozTabSize'\n\n];\n\nvar isBrowser = (typeof window !== 'undefined');\nvar isFirefox = (isBrowser && window.mozInnerScreenX != null);\n\nfunction getCaretCoordinates(element, position, options) {\n if (!isBrowser) {\n throw new Error('textarea-caret-position#getCaretCoordinates should only be called in a browser');\n }\n\n var debug = options && options.debug || false;\n if (debug) {\n var el = document.querySelector('#input-textarea-caret-position-mirror-div');\n if (el) el.parentNode.removeChild(el);\n }\n\n // The mirror div will replicate the textarea's style\n var div = document.createElement('div');\n div.id = 'input-textarea-caret-position-mirror-div';\n document.body.appendChild(div);\n\n var style = div.style;\n var computed = window.getComputedStyle ? window.getComputedStyle(element) : element.currentStyle; // currentStyle for IE < 9\n var isInput = element.nodeName === 'INPUT';\n\n // Default textarea styles\n style.whiteSpace = 'pre-wrap';\n if (!isInput)\n style.wordWrap = 'break-word'; // only for textarea-s\n\n // Position off-screen\n style.position = 'absolute'; // required to return coordinates properly\n if (!debug)\n style.visibility = 'hidden'; // not 'display: none' because we want rendering\n\n // Transfer the element's properties to the div\n properties.forEach(function (prop) {\n if (isInput && prop === 'lineHeight') {\n // Special case for <input>s because text is rendered centered and line height may be != height\n style.lineHeight = computed.height;\n } else {\n style[prop] = computed[prop];\n }\n });\n\n if (isFirefox) {\n // Firefox lies about the overflow property for textareas: https://bugzilla.mozilla.org/show_bug.cgi?id=984275\n if (element.scrollHeight > parseInt(computed.height))\n style.overflowY = 'scroll';\n } else {\n style.overflow = 'hidden'; // for Chrome to not render a scrollbar; IE keeps overflowY = 'scroll'\n }\n\n div.textContent = element.value.substring(0, position);\n // The second special handling for input type=\"text\" vs textarea:\n // spaces need to be replaced with non-breaking spaces - http://stackoverflow.com/a/13402035/1269037\n if (isInput)\n div.textContent = div.textContent.replace(/\\s/g, '\\u00a0');\n\n var span = document.createElement('span');\n // Wrapping must be replicated *exactly*, including when a long word gets\n // onto the next line, with whitespace at the end of the line before (#7).\n // The *only* reliable way to do that is to copy the *entire* rest of the\n // textarea's content into the <span> created at the caret position.\n // For inputs, just '.' would be enough, but no need to bother.\n span.textContent = element.value.substring(position) || '.'; // || because a completely empty faux span doesn't render at all\n div.appendChild(span);\n\n var coordinates = {\n top: span.offsetTop + parseInt(computed['borderTopWidth']),\n left: span.offsetLeft + parseInt(computed['borderLeftWidth']),\n height: parseInt(computed['lineHeight'])\n };\n\n if (debug) {\n span.style.backgroundColor = '#aaa';\n } else {\n document.body.removeChild(div);\n }\n\n return coordinates;\n}\n\nif ( true && typeof module.exports != 'undefined') {\n module.exports = getCaretCoordinates;\n} else if(isBrowser) {\n window.getCaretCoordinates = getCaretCoordinates;\n}\n\n}());\n\n\n//# sourceURL=webpack://VLibras/./node_modules/textarea-caret/index.js?")},"./node_modules/trie-search/index.js":function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__(/*! ./src/TrieSearch */ "./node_modules/trie-search/src/TrieSearch.js");\n\n//# sourceURL=webpack://VLibras/./node_modules/trie-search/index.js?')},"./node_modules/trie-search/src/TrieSearch.js":function(module,exports,__webpack_require__){eval("var HashArray = __webpack_require__(/*! hasharray */ \"./node_modules/hasharray/index.js\");\n\nvar MAX_CACHE_SIZE = 64;\n\nvar IS_WHITESPACE = /^[\\s]*$/;\n\nvar DEFAULT_INTERNATIONALIZE_EXPAND_REGEXES = [\n {\n regex: /[åäà áâãæ]/ig,\n alternate: 'a'\n },\n {\n regex: /[èéêë]/ig,\n alternate: 'e'\n },\n {\n regex: /[ìÃîï]/ig,\n alternate: 'i'\n },\n {\n regex: /[òóôõö]/ig,\n alternate: 'o'\n },\n {\n regex: /[ùúûü]/ig,\n alternate: 'u'\n },\n {\n regex: /[æ]/ig,\n alternate: 'ae'\n }\n];\n\nString.prototype.replaceCharAt=function(index, replacement) {\n return this.substr(0, index) + replacement + this.substr(index + replacement.length);\n};\n\nvar TrieSearch = function (keyFields, options) {\n this.options = options || {};\n\n // Default ignoreCase to true\n this.options.ignoreCase = (this.options.ignoreCase === undefined) ? true : this.options.ignoreCase;\n this.options.maxCacheSize = this.options.maxCacheSize || MAX_CACHE_SIZE;\n this.options.cache = this.options.hasOwnProperty('cache') ? this.options.cache : true;\n this.options.splitOnRegEx = this.options.hasOwnProperty('splitOnRegEx') ? this.options.splitOnRegEx : /\\s/g;\n this.options.splitOnGetRegEx = this.options.hasOwnProperty('splitOnGetRegEx') ? this.options.splitOnGetRegEx : this.options.splitOnRegEx;\n this.options.min = this.options.min || 1;\n this.options.keepAll = this.options.hasOwnProperty('keepAll') ? this.options.keepAll : false;\n this.options.keepAllKey = this.options.hasOwnProperty('keepAllKey') ? this.options.keepAllKey : 'id';\n this.options.idFieldOrFunction = this.options.hasOwnProperty('idFieldOrFunction') ? this.options.idFieldOrFunction : undefined;\n this.options.expandRegexes = this.options.expandRegexes || DEFAULT_INTERNATIONALIZE_EXPAND_REGEXES;\n this.options.insertFullUnsplitKey = this.options.hasOwnProperty('insertFullUnsplitKey') ? this.options.insertFullUnsplitKey : false;\n\n this.keyFields = keyFields ? (keyFields instanceof Array ? keyFields : [keyFields]) : [];\n this.root = {};\n this.size = 0;\n\n if (this.options.cache) {\n this.getCache = new HashArray('key');\n }\n};\n\nfunction deepLookup(obj, keys) {\n return keys.length === 1 ? obj[keys[0]] : deepLookup(obj[keys[0]], keys.slice(1, keys.length));\n}\n\nTrieSearch.prototype = {\n add: function (obj, customKeys) {\n if (this.options.cache)\n this.clearCache();\n\n // Someone might have called add via an array forEach where the second param is a number\n if (typeof customKeys === 'number') {\n customKeys = undefined;\n }\n\n var keyFields = customKeys || this.keyFields;\n\n for (var k in keyFields)\n {\n var key = keyFields[k],\n isKeyArr = key instanceof Array,\n val = isKeyArr ? deepLookup(obj, key) : obj[key];\n\n if (!val) continue;\n\n val = val.toString();\n\n var expandedValues = this.expandString(val);\n\n for (var v = 0; v < expandedValues.length; v++) {\n var expandedValue = expandedValues[v];\n\n this.map(expandedValue, obj);\n }\n }\n },\n /**\n * By default using the options.expandRegexes, given a string like 'ö är bra', this will expand it to:\n *\n * ['ö är bra', 'o är bra', 'ö ar bra', 'o ar bra']\n *\n * By default this was built to allow for internationalization, but it could be also be expanded to\n * allow for word alternates, etc. like spelling alternates ('teh' and 'the').\n *\n * This is used for insertion! This should not be used for lookup since if a person explicitly types\n * 'ä' they probably do not want to see all results for 'a'.\n *\n * @param value The string to find alternates for.\n * @returns {Array} Always returns an array even if no matches.\n */\n expandString: function(value) {\n var values = [value];\n\n if (this.options.expandRegexes && this.options.expandRegexes.length) {\n for (var i = 0; i < this.options.expandRegexes.length; i++) {\n var er = this.options.expandRegexes[i];\n var match;\n\n while((match = er.regex.exec(value)) !== null) {\n var alternateValue = value.replaceCharAt(match.index, er.alternate);\n values.push(alternateValue);\n }\n }\n }\n\n return values;\n },\n addAll: function (arr, customKeys) {\n for (var i = 0; i < arr.length; i++)\n this.add(arr[i], customKeys);\n },\n reset: function () {\n this.root = {};\n this.size = 0;\n },\n clearCache: function () {\n // if (this.getCache && !this.getCache._list.length) {\n // return;\n // }\n this.getCache = new HashArray('key');\n },\n cleanCache: function () {\n while (this.getCache.all.length > this.options.maxCacheSize)\n this.getCache.remove(this.getCache.all[0]);\n },\n addFromObject: function (obj, valueField) {\n if (this.options.cache)\n this.clearCache();\n\n valueField = valueField || 'value';\n\n if (this.keyFields.indexOf('_key_') == -1)\n this.keyFields.push('_key_');\n\n for (var key in obj)\n {\n var o = {_key_: key};\n o[valueField] = obj[key];\n this.add(o);\n }\n },\n map: function (key, value) {\n if (this.options.splitOnRegEx && this.options.splitOnRegEx.test(key))\n {\n var phrases = key.split(this.options.splitOnRegEx);\n var emptySplitMatch = phrases.filter(function(p) { return IS_WHITESPACE.test(p); });\n var selfMatch = phrases.filter(function(p) { return p === key; });\n var selfIsOnlyMatch = selfMatch.length + emptySplitMatch.length === phrases.length;\n\n // There is an edge case that a RegEx with a positive lookeahed like:\n // /?=[A-Z]/ // Split on capital letters for a camelcase sentence\n // Will then match again when we call map, creating an infinite stack loop.\n if (!selfIsOnlyMatch) {\n for (var i = 0, l = phrases.length; i < l; i++) {\n if (!IS_WHITESPACE.test(phrases[i])) {\n this.map(phrases[i], value);\n }\n }\n\n if (!this.options.insertFullUnsplitKey) {\n return;\n }\n }\n }\n\n if (this.options.cache)\n this.clearCache();\n\n if (this.options.keepAll) {\n this.indexed = this.indexed || new HashArray([this.options.keepAllKey]);\n this.indexed.add(value);\n }\n\n if (this.options.ignoreCase) {\n key = key.toLowerCase();\n }\n\n var keyArr = this.keyToArr(key),\n self = this;\n\n insert(keyArr, value, this.root);\n\n function insert(keyArr, value, node) {\n if (keyArr.length == 0)\n {\n node['value'] = node['value'] || [];\n node['value'].push(value);\n return; \n }\n\n var k = keyArr.shift();\n\n if (!node[k])\n self.size++;\n\n node[k] = node[k] || {};\n\n insert(keyArr, value, node[k])\n }\n },\n keyToArr: function (key) {\n var keyArr;\n \n if (this.options.min && this.options.min > 1)\n {\n if (key.length < this.options.min)\n return [];\n\n keyArr = [key.substr(0, this.options.min)];\n keyArr = keyArr.concat(key.substr(this.options.min).split(''));\n }\n else keyArr = key.split('');\n\n return keyArr;\n },\n findNode: function (key) {\n if (this.options.min > 0 && key.length < this.options.min)\n return [];\n\n return f(this.keyToArr(key), this.root);\n\n function f(keyArr, node) {\n if (!node) return undefined;\n if (keyArr.length == 0) return node;\n\n var k = keyArr.shift();\n return f(keyArr, node[k]);\n }\n },\n _getCacheKey: function(phrase, limit){\n var cacheKey = phrase\n if(limit) {\n cacheKey = phrase + \"_\" + limit\n }\n return cacheKey\n },\n _get: function (phrase, limit) {\n phrase = this.options.ignoreCase ? phrase.toLowerCase() : phrase;\n \n var c, node;\n if (this.options.cache && (c = this.getCache.get(this._getCacheKey(phrase, limit))))\n return c.value;\n\n var ret = undefined,\n haKeyFields = this.options.indexField ? [this.options.indexField] : this.keyFields,\n words = this.options.splitOnGetRegEx ? phrase.split(this.options.splitOnGetRegEx) : [phrase];\n\n for (var w = 0, l = words.length; w < l; w++)\n {\n if (this.options.min && words[w].length < this.options.min)\n continue;\n\n var temp = new HashArray(haKeyFields);\n\n if (node = this.findNode(words[w]))\n aggregate(node, temp);\n\n ret = ret ? ret.intersection(temp) : temp;\n }\n \n var v = ret ? ret.all : [];\n\n if (this.options.cache)\n {\n var cacheKey = this._getCacheKey(phrase, limit)\n this.getCache.add({key: cacheKey, value: v});\n this.cleanCache();\n }\n\n return v;\n \n function aggregate(node, ha) {\n if(limit && ha.all.length === limit) {\n return\n }\n\n if (node.value && node.value.length) {\n if(!limit || (ha.all.length + node.value.length) < limit) {\n ha.addAll(node.value);\n } else {\n // Limit is less than the number of entries in the node.value + ha combined\n ha.addAll(node.value.slice(0, limit - ha.all.length))\n return\n }\n }\n\n for (var k in node) {\n if (limit && ha.all.length === limit){\n return\n }\n if (k != 'value') {\n aggregate(node[k], ha);\n }\n }\n }\n },\n get: function (phrases, reducer, limit) {\n var self = this,\n haKeyFields = this.options.indexField ? [this.options.indexField] : this.keyFields,\n ret = undefined,\n accumulator = undefined;\n\n if (reducer && !this.options.idFieldOrFunction) {\n throw new Error('To use the accumulator, you must specify and idFieldOrFunction');\n }\n\n phrases = (phrases instanceof Array) ? phrases : [phrases];\n\n for (var i = 0, l = phrases.length; i < l; i++)\n {\n var matches = this._get(phrases[i], limit);\n\n if (reducer) {\n accumulator = reducer(accumulator, phrases[i], matches, this);\n } else {\n ret = ret ? ret.addAll(matches) : new HashArray(haKeyFields).addAll(matches);\n }\n }\n\n if (!reducer) {\n return ret.all;\n }\n\n return accumulator;\n },\n getId: function (item) {\n return typeof this.options.idFieldOrFunction === 'function' ? this.options.idFieldOrFunction(item) : item[this.options.idFieldOrFunction];\n }\n};\n\nTrieSearch.UNION_REDUCER = function(accumulator, phrase, matches, trie) {\n if (accumulator === undefined) {\n return matches;\n }\n\n var map = {}, i, id;\n var maxLength = Math.max(accumulator.length, matches.length);\n var results = [];\n var l = 0;\n\n // One loop, O(N) for max length of accumulator or matches.\n for (i = 0; i < maxLength; i++) {\n if (i < accumulator.length) {\n id = trie.getId(accumulator[i]);\n map[id] = map[id] ? map[id] : 0;\n map[id]++;\n\n if (map[id] === 2) {\n results[l++] = accumulator[i];\n }\n }\n\n if (i < matches.length) {\n id = trie.getId(matches[i]);\n map[id] = map[id] ? map[id] : 0;\n map[id]++;\n\n if (map[id] === 2) {\n results[l++] = matches[i];\n }\n }\n }\n\n return results;\n};\n\nmodule.exports = TrieSearch;\n\n\n//# sourceURL=webpack://VLibras/./node_modules/trie-search/src/TrieSearch.js?")},"./node_modules/url-join/lib/url-join.js":function(module,exports,__webpack_require__){eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (name, context, definition) {\n if ( true && module.exports) module.exports = definition();\n else if (true) !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n else {}\n})('urljoin', this, function () {\n\n function normalize (strArray) {\n var resultArray = [];\n\n // If the first part is a plain protocol, we combine it with the next part.\n if (strArray[0].match(/^[^/:]+:\\/*$/) && strArray.length > 1) {\n var first = strArray.shift();\n strArray[0] = first + strArray[0];\n }\n\n // There must be two or three slashes in the file protocol, two slashes in anything else.\n if (strArray[0].match(/^file:\\/\\/\\//)) {\n strArray[0] = strArray[0].replace(/^([^/:]+):\\/*/, '$1:///');\n } else {\n strArray[0] = strArray[0].replace(/^([^/:]+):\\/*/, '$1://');\n }\n\n for (var i = 0; i < strArray.length; i++) {\n var component = strArray[i];\n\n if (typeof component !== 'string') {\n throw new TypeError('Url must be a string. Received ' + component);\n }\n\n if (component === '') { continue; }\n\n if (i > 0) {\n // Removing the starting slashes for each component but the first.\n component = component.replace(/^[\\/]+/, '');\n }\n if (i < strArray.length - 1) {\n // Removing the ending slashes for each component but the last.\n component = component.replace(/[\\/]+$/, '');\n } else {\n // For the last component we will combine multiple slashes to a single one.\n component = component.replace(/[\\/]+$/, '/');\n }\n\n resultArray.push(component);\n\n }\n\n var str = resultArray.join('/');\n // Each input component is now separated by a single slash except the possible first plain protocol part.\n\n // remove trailing slash before parameters or hash\n str = str.replace(/\\/(\\?|&|#[^!])/g, '$1');\n\n // replace ? in parameters with &\n var parts = str.split('?');\n str = parts.shift() + (parts.length > 0 ? '?': '') + parts.join('&');\n\n return str;\n }\n\n return function () {\n var input;\n\n if (typeof arguments[0] === 'object') {\n input = arguments[0];\n } else {\n input = [].slice.call(arguments);\n }\n\n return normalize(input);\n };\n\n});\n\n\n//# sourceURL=webpack://VLibras/./node_modules/url-join/lib/url-join.js?")},"./plugin/Plugin.js":function(module,exports,__webpack_require__){eval('var VLibras = __webpack_require__(/*! vlibras */ "../vlibras-player-webjs/src/index.js");\n\nvar Settings = __webpack_require__(/*! components/Settings */ "./plugin/components/Settings/index.js");\nvar SettingsBtn = __webpack_require__(/*! components/SettingsBtn */ "./plugin/components/SettingsBtn/index.js");\nvar InfoScreen = __webpack_require__(/*! components/InfoScreen */ "./plugin/components/InfoScreen/index.js");\nvar Dictionary = __webpack_require__(/*! components/Dictionary */ "./plugin/components/Dictionary/index.js");\nvar Controls = __webpack_require__(/*! components/Controls */ "./plugin/components/Controls/index.js");\n\nvar MessageBox = __webpack_require__(/*! components/MessageBox */ "./plugin/components/MessageBox/index.js");\nvar Box = __webpack_require__(/*! components/Box */ "./plugin/components/Box/index.js");\nvar SettingsCloseBtn = __webpack_require__(/*! components/SettingsCloseBtn */ "./plugin/components/SettingsCloseBtn/index.js");\nvar CloseScreen = __webpack_require__(/*! components/CloseScreen */ "./plugin/components/CloseScreen/index.js");\nvar RateButton = __webpack_require__(/*! components/RateButton */ "./plugin/components/RateButton/index.js");\nvar RateBox = __webpack_require__(/*! components/RateBox */ "./plugin/components/RateBox/index.js");\nvar SuggestionButton = __webpack_require__(/*! components/SuggestionButton */ "./plugin/components/SuggestionButton/index.js");\nvar SuggestionScreen = __webpack_require__(/*! components/SuggestionScreen */ "./plugin/components/SuggestionScreen/index.js");\nvar ChangeAvatar = __webpack_require__(/*! components/ChangeAvatar */ "./plugin/components/ChangeAvatar/index.js");\n\nvar url = __webpack_require__(/*! url-join */ "./node_modules/url-join/lib/url-join.js");\n\n__webpack_require__(/*! ./scss/styles.scss */ "./plugin/scss/styles.scss");\n\nfunction Plugin(options) {\n this.player = new VLibras.Player({\n onLoad: options.playWellcome && (() => this.player.playWellcome()),\n targetPath: options.rootPath ? url(options.rootPath, "/target") : "target",\n personalization: options.personalization,\n opacity: options.opacity,\n wrapper: options.wrapper,\n });\n\n this.opacity = options.opacity;\n this.wrapper = options.wrapper;\n\n if (this.opacity) {\n if (\n this.opacity == 0.0 ||\n this.opacity == 0.25 ||\n this.opacity == 0.5 ||\n this.opacity == 0.75 ||\n this.opacity == 1.0\n ) {\n this.opacity = parseFloat(this.opacity);\n } else {\n this.opacity = 0.0;\n }\n } else {\n this.opacity = 0.0;\n }\n\n this.rootPath = options.rootPath;\n this.personalization = options.personalization;\n this.element = document.querySelector("[vp]");\n\n this.dictionary = new Dictionary(this.player);\n this.controls = new Controls(this.player, this.dictionary);\n this.Box = new Box();\n this.info = new InfoScreen(this.Box);\n this.settings = new Settings(\n this.player,\n this.info,\n this.Box,\n this.dictionary,\n options,\n this.opacity\n );\n this.settingBtnClose = new SettingsCloseBtn();\n this.closeScreen = new CloseScreen(\n this.dictionary,\n this.info,\n this.settings,\n this.settingBtnClose\n );\n this.settingsBtn = new SettingsBtn(\n this.player,\n this.settings,\n this.settingBtnClose,\n options\n );\n this.messageBox = new MessageBox();\n this.suggestionScreen = new SuggestionScreen(this.player);\n this.suggestionButton = new SuggestionButton(this.suggestionScreen);\n this.rateBox = new RateBox(this.suggestionButton, this.messageBox);\n this.rateButton = new RateButton(this.rateBox);\n this.ChangeAvatar = new ChangeAvatar(this.player);\n\n this.loadingRef = null;\n\n this.messageBox.load(this.element.querySelector("[vp-message-box]"));\n this.rateButton.load(this.element.querySelector("[vp-rate-button]"));\n this.rateBox.load(this.element.querySelector("[vp-rate-box]"));\n this.suggestionButton.load(\n this.element.querySelector("[vp-suggestion-button]")\n );\n this.suggestionScreen.load(\n this.element.querySelector("[vp-suggestion-screen]")\n );\n //this.ChangeAvatar.load(this.element.querySelector(\'[vp-change-avatar]\'));\n\n this.player.load(this.element);\n\n this.player.on("load", () => {\n if (this.personalization == undefined) {\n this.player.setPersonalization("");\n } else {\n this.player.setPersonalization(this.personalization);\n }\n\n if (this.wrapper)\n this.wrapper.style.background = `rgba(235,235,235, ${1 - this.opacity})`;\n\n this.controls.load(this.element.querySelector("[vp-controls]"));\n this.Box.load(this.element.querySelector("[vp-box]"));\n this.settingBtnClose.load(\n this.element\n .querySelector("[vp-box]")\n .querySelector("[settings-btn-close]"),\n this.closeScreen\n );\n this.settingsBtn.load(\n this.element.querySelector("[vp-box]").querySelector("[settings-btn]"),\n () => this.dictionary.load(\n this.element.querySelector("[vp-dictionary]"),\n this.closeScreen,\n ),\n this.element.querySelector("[vp-dictionary]"),\n this.rootPath \n );\n this.settings.load(this.element.querySelector("[vp-settings]"));\n this.info.load(this.element.querySelector("[vp-info-screen]"));\n this.ChangeAvatar.load(this.element.querySelector("[vp-change-avatar]"));\n\n this.loadImages();\n });\n\n this.info.on("show", () => {\n this.player.pause();\n });\n\n window.addEventListener("vp-widget-close", (event) => {\n this.player.stop();\n this.rateButton.hide();\n this.rateBox.hide();\n this.suggestionButton.hide();\n this.suggestionScreen.hide();\n });\n\n var control = 0;\n this.player.on("translate:start", () => {\n control = 1;\n this.ChangeAvatar.hide();\n this.rateButton.hide();\n this.controls.setProgress();\n this.loadingRef = this.messageBox.show("info", "Traduzindo...");\n });\n\n this.player.on("translate:end", () => {\n this.messageBox.hide(this.loadingRef);\n });\n\n this.player.on("gloss:start", () => {\n control = 0;\n // console.log(\'GLOSS : START\');\n this.ChangeAvatar.hide();\n this.rateButton.hide();\n this.rateBox.hide();\n this.suggestionButton.hide();\n this.suggestionScreen.hide();\n });\n\n this.player.on("gloss:end", (globalGlosaLenght) => {\n if (control == 0) {\n this.ChangeAvatar.show();\n }\n\n if (this.player.translated && control == 0) {\n this.suggestionScreen.setGloss(this.player.gloss);\n this.rateButton.show();\n }\n\n control = 0;\n });\n\n this.player.on("stop:welcome", (bool) => {\n if (bool) {\n this.ChangeAvatar.show();\n }\n });\n\n this.player.on(\n "error",\n function (err) {\n switch (err) {\n case "compatibility_error":\n this.messageBox.show(\n "warning",\n "O seu computador não suporta o WebGL. Por favor, atualize os drivers de vÃdeo."\n );\n break;\n case "translation_error":\n this.messageBox.show(\n "warning",\n "Não foi possÃvel estabelecer conexão com o serviço de tradução do VLibras.",\n 3000\n );\n break;\n case "internal_error":\n this.messageBox.show(\n "warning",\n "Ops! Ocorreu um problema, por favor entre em contato com a gente."\n );\n break;\n }\n }.bind(this)\n );\n\n this.loadFont();\n this.loadImages();\n}\n\nPlugin.prototype.translate = function (text) {\n this.player.translate(text);\n};\n\nPlugin.prototype.sendReview = function (rate, review) {\n const body = JSON.stringify({\n text: this.player.text,\n translation: this.player.gloss,\n rating: rate,\n review,\n });\n\n const http = new XMLHttpRequest();\n http.open("POST", "https://traducao2.vlibras.gov.br/review");\n http.setRequestHeader("Content-type", "application/json");\n http.send(body);\n http.onload = () => {\n this.rateBox.hide();\n this.suggestionScreen.hide();\n this.messageBox.show("success", "Obrigado pela contribuição!", 3000);\n };\n};\n\nPlugin.prototype.buildAbsolutePath = function (path) {\n return this.rootPath ? this.rootPath + "/" + path : path;\n};\n\nPlugin.prototype.loadImages = function () {\n this.element.querySelectorAll("img[data-src]").forEach((image) => {\n const imagePath = image.attributes["data-src"].value;\n image.src = this.buildAbsolutePath(imagePath);\n });\n};\n\nPlugin.prototype.loadFont = function () {\n const fontPath = this.buildAbsolutePath("assets/OpenSans-Semibold.ttf");\n const font = new FontFace("Open Sans", "url(" + fontPath + ")");\n\n font\n .load()\n .then((loaded) => {\n document.fonts.add(loaded);\n })\n .catch((error) => {\n console.error("Error loading font face:", error);\n });\n};\n\nmodule.exports = Plugin;\n\n\n//# sourceURL=webpack://VLibras/./plugin/Plugin.js?')},"./plugin/components/Box/box.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<span class=\\"vpw-mes\\">VLIBRAS</span>\\n<div settings-btn></div>\\n<div settings-btn-close></div>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/Box/box.html?')},"./plugin/components/Box/box.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./box.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Box/box.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Box/box.scss?')},"./plugin/components/Box/index.js":function(module,exports,__webpack_require__){eval("var BoxTlp = __webpack_require__(/*! ./box.html */ \"./plugin/components/Box/box.html\").default;\n__webpack_require__(/*! ./box.scss */ \"./plugin/components/Box/box.scss\");\n\n\nfunction Box() {\n this.element = null;\n this.message = null;\n}\n\nBox.prototype.load = function (element) {\n \n\n this.element = element;\n this.element.classList.add('vpw-box');\n this.element.innerHTML = BoxTlp;\n // this.element.querySelector('.mes').innerHTML = 'VLIBRAS';\n\n // this.message = {\n // text: 'message'\n // };\n\n // return this.message;\n\n};\n\n\n\n\nmodule.exports = Box;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Box/index.js?")},"./plugin/components/ChangeAvatar/change-avatar.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<span class=\\"vp-button-change-avatar\\">\\n <img class=\\"change-avatar-icon avatar-male\\" data-src=\\"assets/Icaro-azul.svg\\" />\\n <img class=\\"change-avatar-icon avatar-female active\\" data-src=\\"assets/Hozana-azul.svg\\" />\\n <img class=\\"change-avatar-icon avatar-children\\" data-src=\\"assets/Guga-azul.svg\\" />\\n</span>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/ChangeAvatar/change-avatar.html?')},"./plugin/components/ChangeAvatar/change-avatar.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./change-avatar.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/ChangeAvatar/change-avatar.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/ChangeAvatar/change-avatar.scss?')},"./plugin/components/ChangeAvatar/index.js":function(module,exports,__webpack_require__){eval("var template = __webpack_require__(/*! ./change-avatar.html */ \"./plugin/components/ChangeAvatar/change-avatar.html\").default;\n__webpack_require__(/*! ./change-avatar.scss */ \"./plugin/components/ChangeAvatar/change-avatar.scss\");\n\nfunction ChangeAvatar(player) {\n this.player = player;\n this.element = null;\n}\n\nChangeAvatar.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = template;\n const button = this.element.querySelector('.vp-button-change-avatar');\n let actualAvatar = 1;\n\n button.addEventListener('click', () => {\n switch(actualAvatar) {\n case 1: \n button.querySelector('.avatar-female').classList.remove('active');\n button.querySelector('.avatar-children').classList.add('active');\n this.player.changeAvatar(\"hozana\");\n break;\n case 2: \n button.querySelector('.avatar-children').classList.remove('active');\n button.querySelector('.avatar-male').classList.add('active');\n this.player.changeAvatar(\"guga\");\n break;\n case 3:\n button.querySelector('.avatar-male').classList.remove('active');\n button.querySelector('.avatar-female').classList.add('active');\n this.player.changeAvatar(\"icaro\");\n break;\n }\n actualAvatar = (actualAvatar % 3) + 1\n });\n};\n\n\n\nChangeAvatar.prototype.show = function () {\n this.enabled = true;\n this.element.classList.add('vp-disabled');\n};\n\nChangeAvatar.prototype.hide = function () {\n if (this.element != undefined) {\n this.enabled = false;\n this.element.classList.remove('vp-disabled');\n }\n};\n\n\nmodule.exports = ChangeAvatar;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/ChangeAvatar/index.js?")},"./plugin/components/CloseScreen/index.js":function(module,exports){eval("function CloseScreen(dictionary, info, settings, settingsBtnClose){\n this.dictionary = dictionary;\n this.info = info;\n this.settings = settings;\n this.settingsBtnClose = settingsBtnClose;\n}\n\nCloseScreen.prototype.closeDict = function(){\n if(this.dictionary.visible){\n this.dictionary.hide();\n }\n};\n\nCloseScreen.prototype.closeInfo= function(){\n if(this.info.visible){\n this.info.hide();\n }\n}\n\n\nCloseScreen.prototype.closeSettings= function(){\n if(this.settings.visible){\n this.settings.hide(true);\n }\n}\n\nCloseScreen.prototype.closeAll = function(){\n this.closeDict();\n this.closeInfo();\n this.closeSettings();\n this.settingsBtnClose.element.classList.remove('active');\n this.settings.showMenu();\n}\n\nmodule.exports = CloseScreen;\n\n//# sourceURL=webpack://VLibras/./plugin/components/CloseScreen/index.js?")},"./plugin/components/Controls/controls.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<span class=\\"vpw-controls-play\\">\\n\\t<img class=\\"vpw-component-play\\" data-src=\\"assets/component-play.svg\\">\\n\\t<img class=\\"vpw-component-pause\\" data-src=\\"assets/component-pause.svg\\">\\n\\t<img class=\\"vpw-component-restart\\" data-src=\\"assets/component-restart.svg\\">\\n</span>\\n\\n<div class=\\"vpw-controls-slider\\">\\n\\t<div class=\\"vpw-slider\\"></div>\\n</div>\\n<div class=\\"vpw-controls-speed\\">\\n\\t<div class=\\"vpw-elem-speed\\">\\n\\t\\t<ul class=\\"vpw-controls-speed-number\\">\\n\\t\\t\\t<li class=\\"vpw-block-speed vpw-block-speed-3\\" >x3</li>\\n\\t\\t\\t<li class=\\"vpw-block-speed vpw-block-speed-2\\" >x2</li>\\n\\t\\t\\t<li class=\\"vpw-block-speed vpw-block-speed-1\\" >x1</li>\\n\\t\\t\\t<li class=\\"vpw-block-speed vpw-block-speed-05\\" >x0.5</li>\\n\\t\\t</ul>\\n\\t</div>\\n\\t<div class=\\"vpw-button-speed\\">\\n\\t\\t<span class=\\"vpw-speed-default\\">x1</span>\\n\\t\\t<p class=\\"vpw-border-default\\"> <img class=\\"vpw-img-default\\" data-src=\\"assets/running.svg\\"></img> </p>\\n\\t</div>\\n</div>\\n\\n<span class=\\"vpw-controls-subtitles\\">\\n\\t<img class=\\"vpw-legenda-habilitar\\" data-src=\\"assets/component-legenda-habilitar.svg\\">\\n\\t<img class=\\"vpw-legenda-desabilitar\\" data-src=\\"assets/component-legenda-desabilitar.svg\\">\\n</span>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/Controls/controls.html?')},"./plugin/components/Controls/controls.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./controls.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Controls/controls.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Controls/controls.scss?')},"./plugin/components/Controls/index.js":function(module,exports,__webpack_require__){eval("var noUiSlider = __webpack_require__(/*! nouislider */ \"./node_modules/nouislider/distribute/nouislider.js\");\n__webpack_require__(/*! nouislider/distribute/nouislider.min.css */ \"./node_modules/nouislider/distribute/nouislider.min.css\");\n\nvar controlsTpl = __webpack_require__(/*! ./controls.html */ \"./plugin/components/Controls/controls.html\").default;\n__webpack_require__(/*! ./controls.scss */ \"./plugin/components/Controls/controls.scss\");\n\nfunction Controls(player, dictionary) {\n this.player = player;\n this.dictionary = dictionary;\n\n this.player.on('animation:play', function () {\n // console.log('animation:play');\n this.element.classList.remove('vpw-stopped');\n this.element.classList.add('vpw-playing');\n }.bind(this));\n\n this.player.on('animation:pause', function () {\n // console.log('animation:pause');\n this.element.classList.remove('vpw-playing');\n this.element.classList.remove('vpw-stopped');\n }.bind(this));\n\n this.player.on('animation:end', function () {\n // console.log('animation:end');\n this.element.classList.remove('vpw-playing');\n this.element.classList.add('vpw-stopped');\n }.bind(this));\n\n this.player.on('response:glosa', function (counter, glosaLenght) {\n counter=counter-2\n\n console.log(counter + ' ' + glosaLenght);\n if (counter != -1) {\n var slider = this.element.querySelector('.vpw-controls-slider .vpw-slider');\n\n slider.noUiSlider.updateOptions({\n range: {\n 'min': 0,\n 'max': glosaLenght\n }\n });\n\n slider.noUiSlider.set([counter, glosaLenght]);\n }\n \n }.bind(this));\n\n this.player.on('gloss:end', function (globalGlosaLenght) {\n globalGlosaLenght=globalGlosaLenght\n var slider = this.element.querySelector('.vpw-controls-slider .vpw-slider');\n\n slider.noUiSlider.updateOptions({\n range: {\n 'min': 0,\n 'max': globalGlosaLenght\n }\n });\n\n slider.noUiSlider.set([globalGlosaLenght, globalGlosaLenght]);\n\n }.bind(this));\n\n}\n\nControls.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = controlsTpl;\n this.element.classList.add('vpw-controls');\n this.element.classList.add('vpw-subtitles');\n\n var play = this.element.querySelector('.vpw-controls-play');\n var subtitles = this.element.querySelector('.vpw-controls-subtitles');\n var speed_default = this.element.querySelector('.vpw-speed-default');\n var speednumber = this.element.querySelector('.vpw-controls-speed-number');\n var elem_speed = this.element.querySelector('.vpw-elem-speed');\n var speed05 = this.element.querySelector('.vpw-block-speed-05');\n var speed1 = this.element.querySelector('.vpw-block-speed-1');\n var speed2 = this.element.querySelector('.vpw-block-speed-2');\n var speed3 = this.element.querySelector('.vpw-block-speed-3');\n var slider = this.element.querySelector('.vpw-controls-slider .vpw-slider');\n var img = this.element.querySelector('.vpw-img-default');\n var button = this.element.querySelector('.vpw-button-speed');\n var border = this.element.querySelector('.vpw-border-default');\n\n\n noUiSlider.create(slider, {\n start: 0.0,\n step: 0.05,\n connect: 'lower',\n range: {\n min: 0.2,\n max: 200\n }\n });\n slider.setAttribute('disabled', true);\n\n\n\n\n play.addEventListener('click', function () {\n if (this.element.classList.contains('vpw-playing')) {\n this.player.pause();\n } else if(this.element.classList.contains('vpw-stopped')) {\n this.player.repeat();\n } else {\n this.player.continue();\n }\n }.bind(this));\n\n subtitles.addEventListener('click', function () {\n this.element.classList.toggle('vpw-subtitles');\n this.player.toggleSubtitle();\n }.bind(this));\n\n\n var visibility = false;\n var speed_value;\n\n\n button.addEventListener('click', function() {\n if (visibility) {\n img.style.display = 'none';\n border.style.display = 'none';\n speed_default.style.display = 'block';\n visibility = false;\n elem_speed.style.display = \"none\";\n speed_default.innerHTML = speed_value;\n\n } else {\n img.style.display = 'block';\n border.style.display = 'block';\n speed_default.style.display = 'none';\n\n speed_value = speed_default.innerHTML;\n speed_default.innerHTML = '';\n\n elem_speed.style.display = \"block\";\n visibility = true;\n\n }\n\n\n }.bind(this));\n\n speed05.addEventListener('click', () => {\n this.setSpeed(0.5, '0.5x', elem_speed, speed_default, img, border);\n speed_default.style.padding = '6px 2.5px 5px 2.5px'\n speed_default.style.fontSize = '11px'\n visibility = false; \n\n });\n\n speed1.addEventListener('click', () => {\n this.setSpeed(1.0, 'x1', elem_speed, speed_default, img, border);\n visibility = false; \n });\n\n speed2.addEventListener('click', () => {\n this.setSpeed(1.5, 'x2', elem_speed, speed_default, img, border);\n visibility = false; \n\n });\n speed3.addEventListener('click', () => {\n this.setSpeed(2.0, 'x3', elem_speed, speed_default, img, border);\n visibility = false; \n\n });\n\n\n};\n\n\nControls.prototype.setSpeed = function (speed, label, elem_speed, speed_default, img, border) {\n img.style.display = 'none';\n border.style.display = 'none';\n speed_default.style.display = 'block';\n speed_default.style.color = 'grey';\n speed_default.style.border = '1px solid grey';\n speed_default.style.borderRadius = '3px 3px 3px 3px';\n speed_default.innerHTML = label;\n speed_default.style.padding = '3px 4px';\n speed_default.style.fontSize = '15px';\n elem_speed.style.display = \"none\";\n\n this.player.setSpeed(parseFloat(speed));\n } \n\n Controls.prototype.setProgress = function () {\n if (this.element != undefined) {\n var slider = this.element.querySelector('.vpw-controls-slider .vpw-slider');\n\n slider.noUiSlider.updateOptions({\n range: {\n 'min': 0,\n 'max': 2\n }\n });\n\n slider.noUiSlider.set([0, 0]);\n }\n }\n\nmodule.exports = Controls;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Controls/index.js?")},"./plugin/components/Dictionary/dictionary.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div class=\\"vpw-panel\\">\\n <div class=\\"vpw-bar\\">\\n <span class=\\"vpw-title\\">Dicionário</span>\\n <img class=\\"vpw-btn-close\\" data-src=\\"assets/Close.png\\">\\n </div>\\n\\n <div class=\\"vpw-search\\">\\n <input type=\\"text\\">\\n <span class=\\"vpw-icon\\">\\n <img data-src=\\"assets/search.jpg\\">\\n </span>\\n </div>\\n</div>\\n\\n<div class=\\"vpw-dict-container\\">\\n <ul></ul>\\n</div>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/Dictionary/dictionary.html?')},"./plugin/components/Dictionary/dictionary.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./dictionary.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Dictionary/dictionary.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Dictionary/dictionary.scss?')},"./plugin/components/Dictionary/index.js":function(module,exports,__webpack_require__){eval('var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js");\nvar EventEmitter = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter;\n\nvar dictionaryTpl = __webpack_require__(/*! ./dictionary.html */ "./plugin/components/Dictionary/dictionary.html").default;\n__webpack_require__(/*! ./dictionary.scss */ "./plugin/components/Dictionary/dictionary.scss");\n\nvar Trie = __webpack_require__(/*! ./trie.js */ "./plugin/components/Dictionary/trie.js");\n// var NonBlockingProcess = require(\'./non-blocking-process.js\');\n\nfunction Dictionary(player) {\n this.visible = false;\n this.player = player;\n this.closeScreen = null;\n}\n\ninherits(Dictionary, EventEmitter);\n\nDictionary.prototype.load = function (element, closeScreen) {\n this.element = element;\n this.element.innerHTML = dictionaryTpl;\n this.element.classList.add("vpw-dictionary");\n this.closeScreen = closeScreen;\n\n // Close button\n // this.element.querySelector(\'.panel .bar .btn-close\')\n // .addEventListener(\'click\', this.hide.bind(this));\n\n // Signs trie\n this.signs = null;\n\n // List\n this.list = this.element.querySelector("ul");\n\n // Insert item method\n this.list._insert = function (word) {\n var item = document.createElement("li");\n\n if (word.indexOf("&") != -1) {\n regex = word.replace("&", "(");\n regex = regex + ")";\n item.innerHTML = regex;\n item.addEventListener("click", this._onItemClick.bind(this, word));\n this.list.appendChild(item);\n } else {\n item.innerHTML = word;\n item.addEventListener("click", this._onItemClick.bind(this, word));\n this.list.appendChild(item);\n }\n }.bind(this);\n\n // Request and load list\n var xhr = new XMLHttpRequest();\n xhr.open(\n "get",\n "https://dicionario2.vlibras.gov.br/signs?version=2018.3.1",\n true\n );\n xhr.responseType = "text";\n xhr.onload = function () {\n if (xhr.status == 200) {\n var json = JSON.parse(xhr.response);\n\n this.signs = new Trie(json);\n\n this.signs.loadSigns("", this.list._insert.bind(this.list));\n document\n .querySelector(".vpw-controls-dictionary.vpw-loading-dictionary")\n .classList.remove("vpw-loading-dictionary");\n } else console.error("Bad answer for signs, status: " + xhr.status);\n }.bind(this);\n xhr.send();\n\n this.defaultItem = this.list.querySelector("li");\n\n // Clear list method\n this.list._clear = function () {\n this.list.innerHTML = "";\n }.bind(this);\n\n // Search\n this.element.querySelector(".vpw-panel .vpw-search input").addEventListener(\n "keydown",\n function (event) {\n this.list._clear();\n this.signs.loadSigns(\n event.target.value.toUpperCase(),\n this.list._insert.bind(this.list)\n );\n }.bind(this)\n );\n\n // this.hide();\n};\n\nDictionary.prototype._onItemClick = function (event, word) {\n this.closeScreen.closeAll();\n this.player.play(event);\n};\n\nDictionary.prototype.toggle = function () {\n if (this.visible) this.hide();\n else this.show();\n};\n\nDictionary.prototype.hide = function () {\n this.visible = false;\n this.element.classList.remove("active");\n this.emit("hide");\n};\n\nDictionary.prototype.show = function () {\n this.visible = true;\n this.element.classList.add("active");\n this.emit("show");\n};\n\nmodule.exports = Dictionary;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Dictionary/index.js?')},"./plugin/components/Dictionary/trie.js":function(module,exports){eval("var Trie = function(jsonData) {\n\ttry {\n\t\tif (typeof jsonData === 'string') {\n\t\t\tthis.root = JSON.parse(jsonData).root;\n\t\t} else {\n\t\t\tthis.root = jsonData.root;\n\t\t}\n\n\t} catch (error) {\n\t\tthis.root = { children: {}, end: true };\n\t\tconsole.error('Failed to parse Prefix Tree from JSON\\n' + error);\n\t}\n}\n\nTrie.prototype.loadSigns = function(keyWord, insertElement) {\n\n\tvar search = function(node, word) {\n\t\tif (node.end) {\n\t\t\tinsertElement(word);\n\t\t}\n\n\t\tvar childrenKeys = Object.keys(node.children);\n\n\t\tfor (var i = 0, len = childrenKeys.length; i < len; ++i) {\n\t\t\tsearch(node.children[childrenKeys[i]], word + childrenKeys[i]);\n\t\t}\n\t};\n\n\tvar currentNode = this.root;\n\tkeyWord = keyWord.toUpperCase();\n\n\tif (keyWord !== undefined) {\n\t\tfor (var i = 0, len = keyWord.length; i < len; ++i) {\n\t\t\ttry {\n\t\t\t\tcurrentNode = currentNode.children[keyWord[i]];\n\t\t\t} catch (error) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(currentNode === undefined) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\tsearch(currentNode, keyWord);\n};\n\nmodule.exports = Trie;\n\n//# sourceURL=webpack://VLibras/./plugin/components/Dictionary/trie.js?")},"./plugin/components/InfoScreen/index.js":function(module,exports,__webpack_require__){eval("\nvar inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\nvar EventEmitter = __webpack_require__(/*! events */ \"./node_modules/events/events.js\").EventEmitter;\n\nvar infoScreenTpl = __webpack_require__(/*! ./info-screen.html */ \"./plugin/components/InfoScreen/info-screen.html\").default;\n__webpack_require__(/*! ./info-screen.scss */ \"./plugin/components/InfoScreen/info-screen.scss\");\n\nfunction InfoScreen(box) {\n // this.settingBtnClose = settingBtnClose;\n this.visible = false;\n this.box = box;\n}\n\ninherits(InfoScreen, EventEmitter);\n\nInfoScreen.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = infoScreenTpl;\n this.element.classList.add('vpw-info-screen');\n\n var main = this.element.querySelector('#vpw-info-main');\n var realizadores = this.element.querySelector('#vpw-info-realizadores');\n var left = this.element.querySelector('.vpw-arrow-left');\n var right = this.element.querySelector('.vpw-arrow-right');\n var bullets = this.element.querySelectorAll('.vpw-info-bullet');\n var bullet_src_imgs = {\n first: bullets[0].attributes['data-src'].value,\n second:bullets[1].attributes['data-src'].value\n };\n \n \n \n\n \n\n left.addEventListener('click', function() {\n realizadores.classList.remove('active');\n main.classList.add('active');\n\n this.classList.remove('active');\n right.classList.add('active');\n srcTmp = bullets[0].src;\n bullets[0].src = bullets[1].src;\n bullets[1].src = srcTmp;\n // bullets[0].classList.add('active');\n });\n\n right.addEventListener('click', function() {\n main.classList.remove('active');\n realizadores.classList.add('active');\n\n this.classList.remove('active');\n left.classList.add('active');\n\n srcTmp = bullets[0].src;\n bullets[0].src = bullets[1].src;\n bullets[1].src = srcTmp;\n });\n\n // this.settingBtnClose.element.firstChild.addEventListener('click', function() {\n // this.hide();\n // this.settingBtnClose.element.firstChild.style.visibility = 'hidden;'\n // }.bind(this));\n\n // this.hide();\n};\n\nInfoScreen.prototype.toggle = function () {\n if (this.visible) this.hide();\n else this.show();\n};\n\nInfoScreen.prototype.hide = function () {\n this.visible = false;\n // this.settingBtnClose.element.firstChild.style.visibility = 'hidden';\n // this.box.element.querySelector('[settings-btn]').style.visibility = 'visible';\n this.element.classList.remove('active');\n this.emit('hide');\n};\n\nInfoScreen.prototype.show = function () {\n // this.settingBtnClose.element.firstChild.style.visibility = 'visible';\n // this.box.element.querySelector('[settings-btn]').style.visibility = 'hidden';\n this.visible = true;\n this.element.classList.add('active');\n this.emit('show');\n};\n\nmodule.exports = InfoScreen;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/InfoScreen/index.js?")},"./plugin/components/InfoScreen/info-screen.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div class=\\"vpw-arrow vpw-arrow-left\\">\\n <img data-src=\\"assets/ToLeft-2019.png\\" />\\n</div>\\n<div id=\\"vpw-info-tabset\\">\\n <div id=\\"vpw-info-main\\" class=\\"vpw-info-tab active\\">\\n <div id=\\"vpw-info-logo\\">\\n <img data-src=\\"assets/logo.png\\" />\\n </div>\\n <div id=\\"vpw-info-meta\\">\\n <p>Versão 5.2.0</p>\\n <a href=\\"http://vlibras.gov.br\\" target=\\"_blank\\">vlibras.gov.br</a>\\n </div>\\n <div id=\\"vpw-info-text\\">\\n <p>\\n O VLibras é uma ferramenta gratuita (de código aberto e distribuição\\n livre) que faz a tradução automática da LÃngua Portuguesa para a LÃngua\\n Brasileira de Sinais (Libras). Pode ser instalado em qualquer site ou no\\n computador, e também em tablets e smartphones.\\n </p>\\n <p>\\n Resultado de uma parceria entre a Secretaria de Governo Digital do\\n Ministério da Economia e a Universidade Federal da ParaÃba (UFPB), o\\n VLibras foi desenvolvido para melhorar o acesso das pessoas surdas\\n usuárias de Libras à informação e à comunicação.\\n </p>\\n </div>\\n </div>\\n <div id=\\"vpw-info-realizadores\\" class=\\"vpw-info-tab\\">\\n <span class=\\"vpw-info-tab-label\\">Contatos</span>\\n\\n <div class=\\"vpw-logo-group text\\">\\n <p class=\\"format-text\\">Universidade Federal da ParaÃba</p>\\n <p class=\\"format-text\\">Centro de Informática</p>\\n <p class=\\"format-text\\">Núcleo de Pesquisa e Extensão LAVID</p>\\n <p class=\\"format-text\\">contato@lavid.ufpb.br</p>\\n\\n <p class=\\"p-separator\\"></p>\\n\\n <p class=\\"format-text\\">Ministério da Economia</p>\\n <p class=\\"format-text\\">Secretaria de Governo Digital</p>\\n <p class=\\"format-text\\">govbr@planejamento.gov.br</p>\\n </div>\\n\\n <span class=\\"vpw-info-tab-label-two\\">Realizadores</span>\\n\\n <div class=\\"vpw-logo-group logo1\\">\\n <img class=\\"vpw-logo vpw-siz\\" data-src=\\"assets/about_min_eco.png\\" />\\n <img class=\\"vpw-logo vpw-siz\\" data-src=\\"assets/camdeputados.png\\" />\\n </div>\\n\\n <div class=\\"vpw-logo-group logo2\\">\\n <img class=\\"vpw-logo\\" data-src=\\"assets/about_lavid.png\\" />\\n <img class=\\"vpw-logo ufpb\\" data-src=\\"assets/about_ufpb.png\\" />\\n <img class=\\"vpw-logo\\" data-src=\\"assets/about_rnp.png\\" />\\n </div>\\n </div>\\n <div id=\\"vpw-info-tab-bullets\\">\\n <img class=\\"vpw-info-bullet active\\" data-src=\\"assets/CounterOn-1.png\\" />\\n <img class=\\"vpw-info-bullet\\" data-src=\\"assets/CounterOff.png\\" />\\n </div>\\n</div>\\n<div class=\\"vpw-arrow vpw-arrow-right active\\">\\n <img data-src=\\"assets/ToRight-2019.png\\" />\\n</div>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/InfoScreen/info-screen.html?')},"./plugin/components/InfoScreen/info-screen.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./info-screen.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/InfoScreen/info-screen.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/InfoScreen/info-screen.scss?')},"./plugin/components/MessageBox/index.js":function(module,exports,__webpack_require__){eval("__webpack_require__(/*! ./message-box.scss */ \"./plugin/components/MessageBox/message-box.scss\");\n\nvar messageBoxTlp = '<span class=\"vpw-message\"></span>';\n\nfunction MessageBox() {\n this.element = null;\n this.message = null;\n}\n\nMessageBox.LEVELS = ['info', 'warning', 'success', 'default'];\n\nMessageBox.prototype.load = function (element) {\n this.element = element;\n this.element.classList.add('vpw-message-box');\n this.element.innerHTML = messageBoxTlp;\n\n this.hide();\n};\n\nMessageBox.prototype.hide = function(message) {\n if (message !== this.message) return;\n\n this.message = null;\n this.element.classList.remove('active');\n\n MessageBox.LEVELS.forEach(function(level) {\n this.element.classList.remove(level);\n }, this);\n};\n\nMessageBox.prototype.show = function(level, message, time) {\n var self = this;\n\n level = MessageBox.LEVELS.indexOf(level) == -1 ? 'info' : level;\n\n this.hide();\n\n self.element.classList.add('active');\n self.element.classList.add(level);\n self.element.querySelector('.vpw-message').innerHTML = message;\n\n self.message = {\n text: message\n };\n\n var ref = self.message;\n if (time) {\n setTimeout(function () {\n self.hide(ref);\n }, time + 1);\n }\n\n return this.message;\n};\n\nmodule.exports = MessageBox;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/MessageBox/index.js?")},"./plugin/components/MessageBox/message-box.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./message-box.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/MessageBox/message-box.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/MessageBox/message-box.scss?')},"./plugin/components/RateBox/index.js":function(module,exports,__webpack_require__){eval("var template = __webpack_require__(/*! ./rate-box.html */ \"./plugin/components/RateBox/rate-box.html\").default;\n__webpack_require__(/*! ./rate-box.scss */ \"./plugin/components/RateBox/rate-box.scss\");\n\nfunction RateBox(suggestionButton, messageBox) {\n this.element = null;\n this.suggestionButton = suggestionButton;\n this.messageBox = messageBox;\n}\n\nRateBox.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = template;\n\n const thumbUp = this.element.querySelector('.vp-thumb-up');\n const thumbDown = this.element.querySelector('.vp-thumb-down');\n\n thumbUp.addEventListener('click', () => {\n window.plugin.sendReview('good');\n });\n\n thumbDown.addEventListener('click', () => {\n this.hide();\n this.suggestionButton.show('bad');\n });\n};\n\nRateBox.prototype.show = function () {\n this.element.classList.add('vp-enabled');\n};\n\nRateBox.prototype.hide = function () {\n this.element.classList.remove('vp-enabled');\n};\n\nmodule.exports = RateBox;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateBox/index.js?")},"./plugin/components/RateBox/rate-box.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div class=\\"vp-container\\">\\n <div class=\\"vp-text\\">\\n Gostou da tradução?\\n </div>\\n\\n <div class=\\"vp-buttons\\">\\n <span class=\\"vp-button vp-thumb-up\\">\\n <img data-src=\\"assets/thumb-up.svg\\" />\\n Sim\\n </span>\\n\\n <span class=\\"vp-button vp-thumb-down\\">\\n <img data-src=\\"assets/thumb-down.svg\\" />\\n Não\\n </span>\\n </div>\\n</div>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateBox/rate-box.html?')},"./plugin/components/RateBox/rate-box.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./rate-box.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/RateBox/rate-box.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateBox/rate-box.scss?')},"./plugin/components/RateButton/index.js":function(module,exports,__webpack_require__){eval("var template = __webpack_require__(/*! ./rate-button.html */ \"./plugin/components/RateButton/rate-button.html\").default;\n__webpack_require__(/*! ./rate-button.scss */ \"./plugin/components/RateButton/rate-button.scss\");\n\nfunction RateButton(rateBox) {\n this.element = null;\n this.rateBox = rateBox;\n}\n\nRateButton.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = template;\n \n this.enabled = false;\n \n const button = this.element.querySelector('.vp-button');\n\n button.addEventListener('click', () => {\n if (this.enabled) {\n this.hide();\n this.rateBox.show();\n }\n });\n};\n\nRateButton.prototype.show = function () {\n this.enabled = true;\n this.element.classList.add('vp-enabled');\n};\n\nRateButton.prototype.hide = function () {\n this.enabled = false;\n this.element.classList.remove('vp-enabled');\n};\n\nmodule.exports = RateButton;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateButton/index.js?")},"./plugin/components/RateButton/rate-button.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<span class=\\"vp-button\\">\\n <img data-src=\\"assets/rate-button.png\\" />\\n</span>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateButton/rate-button.html?')},"./plugin/components/RateButton/rate-button.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./rate-button.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/RateButton/rate-button.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/RateButton/rate-button.scss?')},"./plugin/components/Settings/index.js":function(module,exports,__webpack_require__){eval("var inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\nvar EventEmitter = __webpack_require__(/*! events */ \"./node_modules/events/events.js\").EventEmitter;\n\nvar settingsTpl = __webpack_require__(/*! ./settings.html */ \"./plugin/components/Settings/settings.html\").default;\n__webpack_require__(/*! ./settings.scss */ \"./plugin/components/Settings/settings.scss\");\n__webpack_require__(/*! ./switch.scss */ \"./plugin/components/Settings/switch.scss\");\n\nfunction Settings(player, infoScreen, menu, dictionary,option,opacity) {\n this.visible = false;\n this.player = player;\n this.infoScreen = infoScreen;\n // this.btnClose = btnClose;\n this.menu = menu;\n this.dictionary = dictionary;\n \n enable = option.enableMoveWindow;\n opacity_user = opacity;\n}\n\ninherits(Settings, EventEmitter);\n\nSettings.prototype.load = function (element) {\n this.menu = this.menu.element.querySelector('[settings-btn]').firstChild;\n\n this.element = element;\n this.element.innerHTML = settingsTpl;\n this.element.classList.add('vpw-settings');\n\n\n // Localism panel\n this.localism = this.element.querySelector('.vpw-content > .vpw-localism');\n \n this.dictionaryBtn = this.element.querySelector('.vpw-dict');\n\n \n // Close events\n\n // this.btnClose.element.firstChild.addEventListener('click',this.hide.bind(this))\n // Selected region\n this.selectedRegion = this.element.querySelector('.vpw-content > ul .vpw-localism');\n\n if (enable) {\n this.position = this.element.querySelector('.vpw-content > ul .vpw-position');\n this.position.style.display = 'block';\n this.position_op = this.element.querySelector('.vpw-content > ul .vpw-opacity');\n this.position_op.style.display = 'block';\n }\n\n this.selectedRegion._name = this.selectedRegion.querySelector('.vpw-abbrev');\n this.selectedRegion._flag = this.selectedRegion.querySelector('img.vpw-flag');\n this.selectedRegion.addEventListener('click', function() {\n this.localism.classList.toggle('active');\n }.bind(this));\n\n this.dictionaryBtn.addEventListener('click', function(event){\n // console.log(event.target);\n this.loadingDic = this.element.querySelector('.vpw-controls-dictionary');\n if (!(this.loadingDic.classList.contains('vpw-loading-dictionary')))\n { \n this.element.classList.remove('active');\n this.dictionary.show();\n this.player.pause();\n }\n }.bind(this));\n \n var OnLeft = 1;\n var selector = this.element.querySelector('input[name=checkbox]')\n\n this.element.querySelector('.vpw-content > ul .vpw-position')\n .addEventListener('click', function() {\n if(OnLeft){\n window.dispatchEvent(new CustomEvent('vp-widget-wrapper-set-side', {detail: {right: true}})); \n OnLeft=0;\n selector.checked = false;\n }\n else{\n window.dispatchEvent(new CustomEvent('vp-widget-wrapper-set-side', {detail: {right: false}})); \n OnLeft=1;\n selector.checked = true;\n }\n }.bind(this));\n\n //\n\n this.opacity = this.element.querySelector('.vpw-content > ul .vpw-opacity');\n this.opacity_button_left = this.opacity.querySelector('img.arrow-left-opac');\n this.opacity_button_right = this.opacity.querySelector('img.arrow-right-opac');\n this.percent = this.opacity.querySelector('span.vpw-percent');\n\n\n var opacity = opacity_user;\n this.percent.innerHTML = opacity*100 + '%';\n \n this.opacity_button_right.addEventListener('click', function() {\n\n if(opacity){\n opacity-=0.25\n } else {\n opacity=0\n }\n this.percent.innerHTML = opacity*100 + '%';\n window.dispatchEvent(new CustomEvent('vw-change-opacity', {detail: 1-opacity})); \n\n }.bind(this));\n\n this.opacity_button_left.addEventListener('click', function() {\n\n if(opacity < 1.0){\n opacity+=0.25\n } else {\n opacity=1.0\n }\n\n if (opacity > 1) {\n opacity=1.0\n }\n\n this.percent.innerHTML = opacity*100 + '%';\n window.dispatchEvent(new CustomEvent('vw-change-opacity', {detail: 1-opacity})); \n\n }.bind(this));\n\n\n this.element.querySelector('.vpw-content > ul .vpw-about')\n .addEventListener('click', function() {\n this.hide(false);\n this.infoScreen.show();\n }.bind(this));\n\n\n // About button\n this.element.querySelector('.vpw-content > ul .vpw-about')\n .addEventListener('click', function() {\n this.hide(false);\n this.infoScreen.show();\n }.bind(this));\n\n\n // National\n this.national = this.localism.querySelector('.vpw-national');\n this.national._data = nationalData;\n this.national.classList.add('vpw-selected');\n this.national.addEventListener('click', function() {\n this.setRegion(this.national);\n }.bind(this));\n\n // Selected region\n this.region = this.national;\n\n // Creates regions grid\n var regions = this.localism.querySelector('.vpw-regions');\n var regionHTML = __webpack_require__(/*! ./region.html */ \"./plugin/components/Settings/region.html\").default;\n\n for (var i in regionsData) {\n var data = regionsData[i];\n\n var region = document.createElement('div');\n region.classList.add('vpw-container-regions');\n region.innerHTML = regionHTML;\n\n region._data = data;\n region._setRegion = this.setRegion.bind(this);\n\n region.querySelector('img.vpw-flag').setAttribute(\"data-src\", data.flag);\n region.querySelector('.vpw-name').innerHTML = data.name;\n region.addEventListener('click', function() {\n this._setRegion(this);\n });\n\n regions.appendChild(region);\n }\n\n // Elements to apply blur filter\n this.gameContainer = document.querySelector('div#gameContainer');\n this.controlsElement = document.querySelector('.vpw-controls');\n\n // this.hide();\n};\n\nSettings.prototype.setRegion = function (region) {\n // Deactivate localism panel\n this.localism.classList.remove('active');\n // this.menu.element.firstChild.classList.add('active');\n \n\n // Select new region\n this.region.classList.remove('vpw-selected');\n this.region = region;\n this.region.classList.add('vpw-selected');\n\n // Updates selected region\n this.selectedRegion._name.innerHTML = this.region._data.name;\n if(window.plugin.rootPath){\n this.selectedRegion._flag.src = window.plugin.rootPath + '/' + this.region._data.flag;\n } else {\n this.selectedRegion._flag.src = this.region._data.flag;\n }\n\n // Sends to player\n this.player.setRegion(this.region._data.path);\n};\n\nSettings.prototype.toggle = function () {\n if (this.visible) this.hide();\n else this.show();\n};\n\nSettings.prototype.hide = function (menuOn) {\n this.visible = false;\n this.element.classList.remove('active');\n this.localism.classList.remove('active');\n // this.btnClose.element.firstChild.style.visibility = 'hidden';\n if(menuOn){\n this.menu.classList.add('active');\n }\n\n // Removes blur filter\n this.gameContainer.classList.remove('vpw-blur');\n this.controlsElement.classList.remove('vpw-blur');\n \n this.emit('hide');\n};\n\nSettings.prototype.showMenu = function(){\n this.menu.classList.add('active');\n};\n\nSettings.prototype.show = function () {\n this.visible = true;\n this.element.classList.add('active');\n // this.btnClose.element.firstChild.style.visibility = 'visible';\n this.menu.classList.remove('active');\n \n\n // Apply blur filter\n this.gameContainer.classList.add('vpw-blur');\n this.controlsElement.classList.add('vpw-blur');\n \n this.emit('show');\n};\n\nmodule.exports = Settings;\n\nvar nationalData = { name: 'BR', path: '', flag: 'assets/brazil.png' };\nvar regionsData = [\n { name: 'AC', path: 'AC', flag: 'assets/1AC.png' },\n { name: 'MA', path: 'MA', flag: 'assets/10MA.png' },\n { name: 'RJ', path: 'RJ', flag: 'assets/19RJ.png' },\n { name: 'AL', path: 'AL', flag: 'assets/2AL.png' },\n { name: 'MT', path: 'MT', flag: 'assets/11MT.png' },\n { name: 'RN', path: 'RN', flag: 'assets/20RN.png' },\n { name: 'AP', path: 'AP', flag: 'assets/3AP.png' },\n { name: 'MS', path: 'MS', flag: 'assets/12MS.png' },\n { name: 'RS', path: 'RS', flag: 'assets/21RS.png' },\n { name: 'AM', path: 'AM', flag: 'assets/4AM.png' },\n { name: 'MG', path: 'MG', flag: 'assets/13MG.png' },\n { name: 'RO', path: 'RO', flag: 'assets/22RO.png' },\n { name: 'BA', path: 'BA', flag: 'assets/5BA.png' },\n { name: 'PA', path: 'PA', flag: 'assets/14PA.png' },\n { name: 'RR', path: 'RR', flag: 'assets/23RR.png' },\n { name: 'DF', path: 'DF', flag: 'assets/7DF.png' },\n { name: 'PB', path: 'PB', flag: 'assets/15PB.png' },\n { name: 'SC', path: 'SC', flag: 'assets/24SC.png' },\n { name: 'CE', path: 'CE', flag: 'assets/6CE.png' },\n { name: 'PR', path: 'PR', flag: 'assets/16PR.png' },\n { name: 'SP', path: 'SP', flag: 'assets/25SP.png' },\n { name: 'ES', path: 'ES', flag: 'assets/8ES.png' },\n { name: 'PE', path: 'PE', flag: 'assets/17PE.png' },\n { name: 'SE', path: 'SE', flag: 'assets/26SE.png' },\n { name: 'GO', path: 'GO', flag: 'assets/9GO.png' },\n { name: 'PI', path: 'PI', flag: 'assets/18PI.png' },\n { name: 'TO', path: 'TO', flag: 'assets/27TO.png' }\n];\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Settings/index.js?")},"./plugin/components/Settings/region.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div class=\\"vpw-cont\\">\\n <img class=\\"vpw-flag\\" data-src=\\"\\">\\n <span class=\\"vpw-name\\"></span>\\n</div>\\n\\n\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/Settings/region.html?')},"./plugin/components/Settings/settings.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div class=\\"vpw-content\\">\\n <ul>\\n <li class=\\"vpw-localism vpw-clickable\\">\\n <div class=\\"vpw-container-localism\\">\\n <span class=\\"vpw-name\\">Regionalismo</span>\\n <img class=\\"vpw-flag\\" data-src=\\"assets/brazil.png\\">\\n <img class=\\"vpw-flag2\\" data-src=\\"\\" style=\\"display: none\\">\\n <span class=\\"vpw-abbrev\\">BR</span>\\n \x3c!-- <img class=\\"arrow\\" data-src=\\"assets/expander.png\\"> --\x3e\\n </div>\\n </li>\\n <li class=\\"vpw-dict vpw-clickable vpw-loading-dictionary\\">\\n <div class=\\"vpw-container-dict\\">\\n <span class=\\"vpw-controls-dictionary vpw-loading-dictionary\\"></span>\\n </div>\\n </li>\\n <li class=\\"vpw-position vpw-clickable\\">\\n <div class=\\"vpw-container-position\\">\\n <span class=\\"vpw-name\\">Posicionamento da tela</span>\\n <label class=\\"vpw-switch\\">\\n <input checked disabled type=\\"checkbox\\" name=\\"checkbox\\">\\n <span class=\\"vpw-slider-check vpw-round\\"></span>\\n </label>\\n </div>\\n </li>\\n\\n <li class=\\"vpw-opacity vpw-clickable\\">\\n <div class=\\"vpw-container-opacity\\">\\n <span class=\\"vpw-name\\">Transparência</span>\\n <img class=\\"arrow-left-opac\\" data-src=\\"assets/arrow-left-opac.png\\">\\n <span class=\\"vpw-percent\\"> </span>\\n <img class=\\"arrow-right-opac\\" data-src=\\"assets/arrow-right-opac.png\\">\\n\\n\\n </div>\\n </li>\\n\\n\\n <li class=\\"vpw-about vpw-clickable\\">\\n <div class=\\"vpw-container-about\\">\\n <span class=\\"vpw-name\\">Sobre</span>\\n </div>\\n </li>\\n </ul>\\n\\n <div class=\\"vpw-localism\\">\\n <div class=\\"vpw-national vpw-clickable\\">\\n <img class=\\"vpw-flag\\" data-src=\\"assets/brazil.png\\">\\n <span class=\\"vpw-name\\">BR</span>\\n </div>\\n <div class=\\"vpw-regions\\"></div>\\n </div>\\n <div class=\\"vpw-vlibras-logo\\">\\n <span class=\\"vpw-vlibras-span\\">VLIBRAS</span>\\n <img class=\\"vpw-logo\\" data-src=\\"assets/logoicon.png\\">\\n </div>\\n</div>\\n\\n<div class=\\"vpw-wall\\"></div>");\n\n//# sourceURL=webpack://VLibras/./plugin/components/Settings/settings.html?')},"./plugin/components/Settings/settings.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./settings.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Settings/settings.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Settings/settings.scss?')},"./plugin/components/Settings/switch.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./switch.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/Settings/switch.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/Settings/switch.scss?')},"./plugin/components/SettingsBtn/index.js":function(module,exports,__webpack_require__){eval("var settingsBtnTpl = __webpack_require__(/*! ./settings-btn.html */ \"./plugin/components/SettingsBtn/settings-btn.html\").default;\n__webpack_require__(/*! ./settings-btn.scss */ \"./plugin/components/SettingsBtn/settings-btn.scss\");\n\nfunction SettingsBtn(player, screen, settingsBtnClose,option) {\n this.player = player;\n this.screen = screen;\n this.settingsBtnClose = settingsBtnClose;\n enable = option.enableMoveWindow;\n}\n\nSettingsBtn.prototype.load = function (element, loadDictionary, elementDict, rootPath ) {\n this.element = element;\n this.element.innerHTML = settingsBtnTpl;\n this.element.classList.add('vpw-settings-btn');\n var fistTime = true;\n\n var btn_menu = this.element.querySelector('.vpw-settings-btn-menu');\n btn_menu.classList.add('active');\n var btn_close = this.element.querySelector('.vpw-settings-btn-close');\n\n if (enable) {\n btn_close.style.display = 'block';\n }\n\n\n btn_menu.addEventListener('click', function () {\n this.element.classList.toggle('active');\n if (fistTime) {\n loadDictionary();\n elementDict.querySelectorAll(\"img[data-src]\").forEach((image) => {\n const imagePath = image.attributes[\"data-src\"].value;\n image.src = rootPath ? rootPath + \"/\" + imagePath : imagePath;\n });\n fistTime = false;\n }\n if(this.settingsBtnClose.element.classList.contains('active')){\n this.settingsBtnClose.element.classList.remove('active');\n }else{\n this.settingsBtnClose.element.classList.add('active');\n }\n this.player.pause();\n this.screen.toggle();\n }.bind(this));\n\n btn_close.addEventListener('click', function () {\n window.dispatchEvent(new CustomEvent('vp-widget-close', {detail: {close: true}})); \n }.bind(this));\n\n};\n\nmodule.exports = SettingsBtn;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsBtn/index.js?")},"./plugin/components/SettingsBtn/settings-btn.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<img class=\\"vpw-settings-btn-menu\\" data-src=\\"assets/component-menu.png\\">\\n<img class=\\"vpw-settings-btn-close\\" data-src=\\"assets/close.svg\\">\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsBtn/settings-btn.html?')},"./plugin/components/SettingsBtn/settings-btn.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./settings-btn.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SettingsBtn/settings-btn.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsBtn/settings-btn.scss?')},"./plugin/components/SettingsCloseBtn/index.js":function(module,exports,__webpack_require__){eval("var btn_close_Tpl = __webpack_require__(/*! ./settings-close-btn.html */ \"./plugin/components/SettingsCloseBtn/settings-close-btn.html\").default;\n__webpack_require__(/*! ./settings-close-btn.scss */ \"./plugin/components/SettingsCloseBtn/settings-close-btn.scss\");\n\nfunction SettingsCloseBtn(){\n this.closeScreen = null;\n this.element = null;\n}\n\nSettingsCloseBtn.prototype.load = function(element, closeScreen){\n this.element = element;\n this.closeScreen = closeScreen;\n this.element.innerHTML = btn_close_Tpl;\n this.element.classList.add('vpw-btn-close');\n this.element.addEventListener('click', function(){\n this.closeScreen.closeAll();\n this.element.classList.remove('active')\n \n }.bind(this));\n \n};\n\n\n\nmodule.exports = SettingsCloseBtn;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsCloseBtn/index.js?")},"./plugin/components/SettingsCloseBtn/settings-close-btn.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<img class=\\"vpw-img\\" data-src=\\"assets/Close-2019.png\\">\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsCloseBtn/settings-close-btn.html?')},"./plugin/components/SettingsCloseBtn/settings-close-btn.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./settings-close-btn.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SettingsCloseBtn/settings-close-btn.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SettingsCloseBtn/settings-close-btn.scss?')},"./plugin/components/SuggestionButton/index.js":function(module,exports,__webpack_require__){eval("var template = __webpack_require__(/*! ./suggestion-button.html */ \"./plugin/components/SuggestionButton/suggestion-button.html\").default;\n__webpack_require__(/*! ./suggestion-button.scss */ \"./plugin/components/SuggestionButton/suggestion-button.scss\");\n\nfunction SuggestionButton(suggestionScreen) {\n this.element = null;\n this.suggestionScreen = suggestionScreen;\n}\n\nSuggestionButton.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = template;\n\n const openScreen = this.element.querySelector('.vp-open-screen-button');\n const close = this.element.querySelector('.vp-close-button');\n\n openScreen.addEventListener('click', () => {\n this.suggestionScreen.show(this.rate);\n this.hide();\n });\n\n close.addEventListener('click', () => {\n this.hide();\n });\n};\n\nSuggestionButton.prototype.show = function (rate) {\n this.rate = rate;\n this.element.classList.add('vp-enabled');\n};\n\nSuggestionButton.prototype.hide = function () {\n this.element.classList.remove('vp-enabled');\n};\n\nmodule.exports = SuggestionButton;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionButton/index.js?")},"./plugin/components/SuggestionButton/suggestion-button.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div class=\\"vp-bounderies\\">\\n <div class=\\"vp-container\\">\\n <span vp-blue-button class=\\"vp-open-screen-button\\">\\n Sugerir edição\\n </span>\\n </div>\\n</div>\\n\\n<div class=\\"vp-button-container\\">\\n <span vp-close-button class=\\"vp-close-button\\">\\n <img data-src=\\"assets/close.svg\\" />\\n </span>\\n</div>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionButton/suggestion-button.html?')},"./plugin/components/SuggestionButton/suggestion-button.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./suggestion-button.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SuggestionButton/suggestion-button.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionButton/suggestion-button.scss?')},"./plugin/components/SuggestionScreen/index.js":function(module,exports,__webpack_require__){eval('var template = __webpack_require__(/*! ./suggestion-screen.html */ "./plugin/components/SuggestionScreen/suggestion-screen.html").default;\n__webpack_require__(/*! ./suggestion-screen.scss */ "./plugin/components/SuggestionScreen/suggestion-screen.scss");\n\nvar TrieSearch = __webpack_require__(/*! trie-search */ "./node_modules/trie-search/index.js");\nvar getCaretCoordinates = __webpack_require__(/*! textarea-caret */ "./node_modules/textarea-caret/index.js");\n\nfunction SuggestionScreen(player) {\n this.element = null;\n this.player = player;\n this.signsList = [];\n}\n\nfunction getInputSelection(el) {\n var start = 0,\n end = 0;\n\n if (!el) {\n return { start: start, end: end };\n }\n\n if (\n typeof el.selectionStart == "number" &&\n typeof el.selectionEnd == "number"\n ) {\n return { start: el.selectionStart, end: el.selectionEnd };\n }\n\n if (!document) {\n return { start: start, end: end };\n }\n\n var range = document.selection.createRange();\n\n if (!range && range.parentElement() !== el) {\n return { start: start, end: end };\n }\n\n var len = el.value.length;\n var normalizedValue = el.value.replace(/\\r\\n/g, "\\n");\n var textInputRange = el.createTextRange();\n\n textInputRange.moveToBookmark(range.getBookmark());\n\n var endRange = el.createTextRange();\n\n endRange.collapse(false);\n\n if (textInputRange.compareEndPoints("StartToEnd", endRange) > -1) {\n start = end = len;\n } else {\n start = -textInputRange.moveStart("character", -len);\n start += normalizedValue.slice(0, start).split("\\n").length - 1;\n\n if (textInputRange.compareEndPoints("EndToEnd", endRange) > -1) {\n end = len;\n } else {\n end = -textInputRange.moveEnd("character", -len);\n end += normalizedValue.slice(0, end).split("\\n").length - 1;\n }\n }\n\n return { start: start, end: end };\n}\n\nconst getWordBySelectionIndex = (sentence, index) => {\n if (sentence.charAt(index) === " ")\n return { wordToSuggest: "", begin: 0, newEnd: 0 };\n\n const lastSpaceBeforeSelection = sentence\n .substring(0, index + 1)\n .lastIndexOf(" ");\n const lastIndexOfSpace = sentence\n .substring(index + 1, sentence.length)\n .indexOf(" ");\n const firstSpaceAfterSelection =\n lastIndexOfSpace === -1 ? sentence.length : index + 1 + lastIndexOfSpace;\n\n return {\n wordToSuggest: sentence.substring(\n lastSpaceBeforeSelection + 1,\n firstSpaceAfterSelection\n ),\n begin: lastSpaceBeforeSelection + 1,\n newEnd: firstSpaceAfterSelection,\n };\n};\n\nconst replaceByStartAndEnd = (string, replacement, start, end) => {\n return `${string.substring(0, start)}${replacement}${string.substring(\n end,\n string.length\n )}`;\n};\n\nSuggestionScreen.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = template;\n\n this.rate = null;\n this.textElement = this.element.querySelector(".vp-text");\n\n const send = this.element.querySelector(".vp-send-button");\n const visualize = this.element.querySelector(".vp-visualize-signal-button");\n const close = this.element.querySelector(".vp-close-button");\n const dropdownSuggest = this.element.querySelector(".vp-dropdown-suggest");\n let actualBegin = 0;\n let actualEnd = 0;\n\n send.addEventListener("click", () => {\n window.plugin.sendReview(this.rate, this.textElement.value);\n });\n\n close.addEventListener("click", () => {\n this.hide();\n });\n\n const setOption = (name) => {\n this.textElement.value = replaceByStartAndEnd(\n this.textElement.value,\n name,\n actualBegin,\n actualEnd\n ).toUpperCase();\n\n dropdownSuggest.classList.remove("vp-enabled");\n };\n\n visualize.addEventListener("click", () => {\n let openAfterEnd = true;\n this.hide();\n this.player.play(this.textElement.value);\n this.player.on("gloss:end", () => {\n if (openAfterEnd) this.show();\n openAfterEnd = false;\n });\n });\n\n const buildSelect = (listOfSuggestions, end) => {\n const caret = getCaretCoordinates(this.textElement, end);\n\n listOfSuggestions.map((item) => {\n const opt = document.createElement("li");\n opt.appendChild(document.createTextNode(item.name));\n opt.value = item.name;\n opt.classList.add("vp-dropdown-item");\n opt.onclick = () => {\n setOption(item.name);\n };\n dropdownSuggest.appendChild(opt);\n });\n\n if (listOfSuggestions.length === 1) dropdownSuggest.style.height = "24px";\n else if (listOfSuggestions.length === 2)\n dropdownSuggest.style.height = "40px";\n else dropdownSuggest.style.height = "54px";\n\n dropdownSuggest.classList.add("vp-enabled");\n let left = caret.left + 25;\n if (left > 180) left = left - 50;\n dropdownSuggest.style.left = left.toString() + "px";\n dropdownSuggest.style.top = (caret.top + 60).toString() + "px";\n };\n\n const setWordToReplace = (begin, newEnd) => {\n actualBegin = begin;\n actualEnd = newEnd;\n };\n\n this.textElement.addEventListener("input", () => {\n const { end } = getInputSelection(this.textElement);\n\n const { wordToSuggest, begin, newEnd } = getWordBySelectionIndex(\n this.textElement.value,\n end - 1\n );\n setWordToReplace(begin, newEnd);\n\n while (dropdownSuggest.firstChild) {\n dropdownSuggest.removeChild(dropdownSuggest.firstChild);\n }\n\n if (wordToSuggest && wordToSuggest.length >= 2) {\n var ts = new TrieSearch("name");\n ts.addAll(this.signsList);\n const listOfSuggestions = ts.get(wordToSuggest);\n if (listOfSuggestions.length == 0)\n dropdownSuggest.classList.remove("vp-enabled");\n else buildSelect(listOfSuggestions, end);\n } else {\n dropdownSuggest.classList.remove("vp-enabled");\n }\n });\n\n var xhr = new XMLHttpRequest();\n xhr.open("get", "https://repository-dth.vlibras.gov.br/api/signs", true);\n xhr.responseType = "text";\n xhr.onload = function () {\n if (xhr.status == 200) {\n this.signsList = JSON.parse(xhr.response).map((item) => ({ name: item }));\n } else {\n console.error("Bad answer for get signs list, status: " + xhr.status);\n }\n }.bind(this);\n xhr.send();\n};\n\nSuggestionScreen.prototype.setGloss = function (gloss) {\n this.textElement.value = gloss;\n};\n\nSuggestionScreen.prototype.show = function (rate) {\n this.element.querySelector(".vp-text").style.display = "block";\n this.rate = rate;\n this.element.classList.add("vp-enabled");\n};\n\nSuggestionScreen.prototype.hide = function () {\n this.element.querySelector(".vp-text").style.display = "none";\n this.element.classList.remove("vp-enabled");\n};\n\nmodule.exports = SuggestionScreen;\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionScreen/index.js?')},"./plugin/components/SuggestionScreen/suggestion-screen.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<span class=\\"vp-title\\"> A glosa está correta? </span>\\n\\n<textarea class=\\"vp-text\\"> </textarea>\\n<ul class=\\"vp-dropdown-suggest\\"></ul>\\n\\n<div vp-sugestion-area>\\n <span vp-visualize-signal-button class=\\"vp-visualize-signal-button\\">\\n Ver em LIBRAS\\n </span>\\n <span vp-blue-button class=\\"vp-send-button\\"> Enviar Sugestão </span>\\n</div>\\n\\n<span vp-close-button class=\\"vp-close-button\\">\\n <img data-src=\\"assets/close.svg\\" />\\n</span>\\n");\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionScreen/suggestion-screen.html?')},"./plugin/components/SuggestionScreen/suggestion-screen.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./suggestion-screen.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/components/SuggestionScreen/suggestion-screen.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/components/SuggestionScreen/suggestion-screen.scss?')},"./plugin/scss/styles.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./styles.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./plugin/scss/styles.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./plugin/scss/styles.scss?')},"./widget/src/Widget.js":function(module,exports,__webpack_require__){eval("const AccessButton = __webpack_require__(/*! ./components/AccessButton */ \"./widget/src/components/AccessButton/index.js\");\nconst PluginWrapper = __webpack_require__(/*! ./components/PluginWrapper */ \"./widget/src/components/PluginWrapper/index.js\");\n\n__webpack_require__(/*! ./scss/reset.scss */ \"./widget/src/scss/reset.scss\");\n__webpack_require__(/*! ./scss/styles.scss */ \"./widget/src/scss/styles.scss\");\n\nmodule.exports = function Widget(rootPath, personalization, opacity) {\n const widgetWrapper = new PluginWrapper();\n const accessButton = new AccessButton(rootPath, widgetWrapper, personalization, opacity);\n var temp_f;\n\n\n if(window.onload) {\n \ttemp_f = window.onload;\n \t}\n\n window.onload = () => {\n\n\t \tif(temp_f) {\n\t temp_f();\n\t }\n\n \tthis.element = document.querySelector('[vw]');\n\n\t\tconst wrapper = document.querySelector('[vw-plugin-wrapper]');\n\t\tconst access = document.querySelector('[vw-access-button]');\n\n\t\taccessButton.load(document.querySelector('[vw-access-button]'), this.element);\n\t\twidgetWrapper.load(document.querySelector('[vw-plugin-wrapper]'));\n\n\t\twindow.addEventListener('vp-widget-wrapper-set-side', (event) => {\n\t\t\tif (event.detail.right) {\n\t\t\t\tthis.element.style.left = '0';\n\t\t\t\tthis.element.style.right = 'initial';\n\t\t\t\taccess.querySelector('.access-button').classList.add(\"left\");\n\t\t\t\taccess.querySelector('.pop-up').classList.add(\"left\");\n\t\t\t\tdocument.querySelector('[vw-access-button]').style.margin = \"0px -100px 0px 0px\"; \n\n\t\t\t} else {\n\t\t\t\tthis.element.style.right = '0';\n\t\t\t\tthis.element.style.left = 'initial';\n\t\t\t\taccess.querySelector('.access-button').classList.remove(\"left\");\n\t\t\t\taccess.querySelector('.pop-up').classList.remove(\"left\");\n\t\t\t\tdocument.querySelector('[vw-access-button]').style.margin = \"0px 0px 0px -100px\"; \n\t\t\t}\n\t\t});\n\n\t\twindow.addEventListener('vp-widget-close', (event) => {\n\t\t\taccess.classList.toggle('active');\n\t\t\twrapper.classList.toggle('active');\n\n\t\t\tdocument.body.removeChild(document.querySelector('.vw-links'))\n\n\t\t\tvar tagsTexts = document.querySelectorAll('.vw-text');\n\t\t\tfor (var i = 0; i < tagsTexts.length; i++) {\n\t\t\t\tvar parent = tagsTexts[i].parentNode;\n\t\t\t\tparent.innerHTML = tagsTexts[i].innerHTML;\n\t\t\t}\t\n });\n\n\twindow.addEventListener('vw-change-opacity', (event) => {\n\t\twrapper.style.background = `rgba(235,235,235, ${event.detail})`;\n\t\t//wrapper.setAttribute( 'style', `background: rgba(235, 235, 235, ${event.detail})`);\n\t});\n\n\n this.element.querySelectorAll('img[data-src]').forEach((image) => {\n\t\t\tconst imagePath = image.attributes['data-src'].value;\n image.src = rootPath ? rootPath + '/' + imagePath : imagePath;\n });\n };\n}\n\n\n//# sourceURL=webpack://VLibras/./widget/src/Widget.js?")},"./widget/src/components/AccessButton/index.js":function(module,exports,__webpack_require__){eval("const template = __webpack_require__(/*! ./template.html */ \"./widget/src/components/AccessButton/template.html\").default;\n__webpack_require__(/*! ./styles.scss */ \"./widget/src/components/AccessButton/styles.scss\");\n\nfunction AccessButton(rootPath, pluginWrapper, personalization, opacity) {\n this.personalization = personalization;\n this.rootPath = rootPath;\n this.pluginWrapper = pluginWrapper;\n this.vw_links = null;\n this.currentElement = null;\n this.currentSpanElement = null;\n this.opacity = opacity;\n}\n\nAccessButton.prototype.load = function (element, vw) {\n this.element = element;\n this.element.innerHTML = template;\n this.element.addEventListener('click', () => {\n this.element.classList.toggle('active');\n this.pluginWrapper.element.classList.toggle('active');\n\n\n window.plugin = (window.plugin || new window.VLibras.Plugin({\n enableMoveWindow: true,\n playWellcome: true,\n rootPath: this.rootPath,\n personalization: this.personalization,\n opacity: this.opacity,\n wrapper: this.pluginWrapper.element,\n }));\n\n this.addTagsTexts(vw);\n \n });\n \n};\n\nmodule.exports = AccessButton;\n\nvar control = 0;\n\nfunction updatePosition(){\n if(this.currentElement != null && this.vw_links!= null && this.currentSpanElement != null){\n positionElement = getPosition(this.currentElement);\n var width = this.currentSpanElement.offsetWidth;\n var height = this.currentSpanElement.offsetHeight;\n this.vw_links.style.top = (positionElement.y + (height/2)) + 'px';\n this.vw_links.style.left = (positionElement.x + (width/2)) + 'px';\n }\n}\n\nfunction hasParent(el, fn) {\n var node = el.parentElement;\n \n while ( node != null ) { \n if (fn(node)) return node;\n node = node.parentElement;\n }\n \n return false;\n}\n\nfunction getPosition(elem) {\n var xPos = 0;\n var yPos = 0;\n \n var box = elem.getBoundingClientRect();\n\n var body = document.body;\n var docEl = document.documentElement;\n\n var scrollTop = window.pageYOffset || docEl.scrollTop || body.scrollTop;\n var scrollLeft = window.pageXOffset || docEl.scrollLeft || body.scrollLeft;\n\n var clientTop = docEl.clientTop || body.clientTop || 0;\n var clientLeft = docEl.clientLeft || body.clientLeft || 0;\n\n var top = box.top + scrollTop - clientTop;\n var left = box.left + scrollLeft - clientLeft;\n\n return { y: Math.round(top), x: Math.round(left) };\n return {\n x: xPos,\n y: yPos\n };\n}\n\nfunction createAccessLinkBox(){\n var template = __webpack_require__(/*! ./tooltip.html */ \"./widget/src/components/AccessButton/tooltip.html\").default; \n let div = document.createElement('div');\n div.className = 'vw-links';\n div.innerHTML = template;\n document.body.appendChild(div);\n}\n\nAccessButton.prototype.divBox = function(linkContent, event){\n nodeAnchor = hasParent(linkContent, function (parent) { \n return parent.nodeName == 'A'; \n });\n if(!nodeAnchor){\n return;\n }\n event.stopPropagation();\n this.currentElement = nodeAnchor;\n this.currentSpanElement = linkContent;\n positionElement = getPosition(nodeAnchor);\n var width = linkContent.offsetWidth;\n var height = linkContent.offsetHeight;\n\n anchorElement = this.vw_links.querySelector('a');\n anchorElement.href = nodeAnchor.href;\n this.vw_links.style.top = (positionElement.y + (height/2)) + 'px';\n this.vw_links.style.left = (positionElement.x + (width/2)) + 'px';\n this.vw_links.firstChild.classList.add('active');\n\n}\n\nAccessButton.prototype.addTagsTexts = function (vw) {\n self = this;\n getAllNodeTexts(document.body, function (node) {\n if (vw.contains(node)) return;\n node.innerHTML = '<vlibraswidget>' + node.innerHTML + '</vlibraswidget>';\n const span = node.querySelector('vlibraswidget');\n if(!span)\n return;\n span.classList.add('vw-text');\n span.addEventListener('click', function (e) {\n e.preventDefault();\n self.divBox(this, e); \n if (control) window.plugin.player.stop();\n window.plugin.player.translate(this.textContent);\n deactivateAll();\n this.classList.add('vw-text-active');\n control++;\n });\n }, function(textNode, parent) {\n if (/^\\s+$/.test(textNode.nodeValue)) {\n return true;\n }\n return false;\n });\n createAccessLinkBox();\n this.vw_links = document.body.getElementsByClassName('vw-links')[0];\n document.body.onclick = function(e){\n if(this.vw_links!= null){\n this.vw_links.firstChild.classList.remove('active');\n }\n }.bind(this);\n window.addEventListener(\"scroll\", updatePosition.bind(this), false);\n window.addEventListener(\"resize\", updatePosition.bind(this), false);\n}\n\n\n\nfunction getAllNodeTexts(root, callback) {\n var noop = function () {};\n var headElements = ['SCRIPT', 'TITLE', 'META', 'STYLE', 'LINK', 'BASE'];\n\n for(var i = 0; i < root.childNodes.length; i++) {\n var node = root.childNodes[i];\n var anyText = false;\n\n if (headElements.indexOf(node.tagName) != -1) {\n continue;\n }\n\n for(var j = 0; j < node.childNodes.length; j++) {\n var child = node.childNodes[j];\n if (child.nodeType == Node.TEXT_NODE && child.nodeValue.trim() != '') {\n anyText = true;\n break;\n } \n }\n\n if (anyText) {\n (callback || noop)(node);\n } else {\n getAllNodeTexts(node, callback);\n }\n }\n}\n\nfunction deactivateAll() {\n var active = document.querySelector('.vw-text.vw-text-active');\n if (active) {\n active.classList.remove('vw-text-active');\n }\n}\n\n\n//# sourceURL=webpack://VLibras/./widget/src/components/AccessButton/index.js?")},"./widget/src/components/AccessButton/styles.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./styles.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/components/AccessButton/styles.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./widget/src/components/AccessButton/styles.scss?')},"./widget/src/components/AccessButton/template.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<img class=\\"access-button\\" data-src=\\"assets/component-ac.png\\" alt=\\"Conteúdo acessÃvel em libras usando o VLibras Widget com opções dos Avatares Ãcaro ou Hozana.\\" />\\n<img class=\\"pop-up\\"data-src=\\"assets/popup.png\\" alt=\\"Conteúdo acessÃvel em libras usando o VLibras Widget com opções dos Avatares Ãcaro ou Hozana.\\" />");\n\n//# sourceURL=webpack://VLibras/./widget/src/components/AccessButton/template.html?')},"./widget/src/components/AccessButton/tooltip.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div class=\\"vw-tooltip\\">\\n <div class=\\"vw-tooltip__item\\">\\n <a href=\\"\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\" >Acessar Link</a>\\n </div>\\n</div>");\n\n//# sourceURL=webpack://VLibras/./widget/src/components/AccessButton/tooltip.html?')},"./widget/src/components/PluginWrapper/index.js":function(module,exports,__webpack_require__){eval('const template = __webpack_require__(/*! ./template.html */ "./widget/src/components/PluginWrapper/template.html").default;\n__webpack_require__(/*! ./styles.scss */ "./widget/src/components/PluginWrapper/styles.scss");\n\nfunction PluginWrapper() { \n\t\n}\n\nPluginWrapper.prototype.load = function (element) {\n this.element = element;\n this.element.innerHTML = template;\n};\n\nmodule.exports = PluginWrapper;\n\n\n//# sourceURL=webpack://VLibras/./widget/src/components/PluginWrapper/index.js?')},"./widget/src/components/PluginWrapper/styles.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./styles.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/components/PluginWrapper/styles.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./widget/src/components/PluginWrapper/styles.scss?')},"./widget/src/components/PluginWrapper/template.html":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = ("<div vp>\\n <div vp-box></div>\\n <div vp-message-box></div>\\n <div vp-settings></div>\\n <div vp-settings-btn></div>\\n <div vp-info-screen></div>\\n <div vp-dictionary></div>\\n <div vp-suggestion-screen></div>\\n <div vp-suggestion-button></div>\\n <div vp-rate-box></div>\\n <div vp-rate-button></div>\\n <div vp-controls></div>\\n <div vp-change-avatar></div>\\n</div>\\n");\n\n//# sourceURL=webpack://VLibras/./widget/src/components/PluginWrapper/template.html?')},"./widget/src/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Widget", function() { return Widget; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Plugin", function() { return Plugin; });\nconst Plugin = __webpack_require__(/*! ../../plugin/Plugin */ "./plugin/Plugin.js");\nconst Widget = __webpack_require__(/*! ./Widget */ "./widget/src/Widget.js");\n\n\n\n\n//# sourceURL=webpack://VLibras/./widget/src/index.js?')},"./widget/src/scss/reset.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./reset.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/scss/reset.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./widget/src/scss/reset.scss?')},"./widget/src/scss/styles.scss":function(module,exports,__webpack_require__){eval('var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./styles.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./widget/src/scss/styles.scss");\n\nif (typeof content === \'string\') {\n content = [[module.i, content, \'\']];\n}\n\nvar options = {}\n\noptions.insert = "head";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://VLibras/./widget/src/scss/styles.scss?')},window:function(module,exports){eval('(function() { module.exports = window["window"]; }());\n\n//# sourceURL=webpack://VLibras/external_%22window%22?')}});